Skip to content

Commit 6ac6ef4

Browse files
committed
Enhance Makefile and API documentation for cursor-based pagination
* Updated Makefile to modify the alwaysApply setting for rules and ensure proper rendering of API documentation. * Added comprehensive guidelines for writing sources with cursor-based pagination in AGENT.md files for amp, codex, and claude. * Included prerequisites, authentication methods, and pagination strategies to improve clarity and usability for developers.
1 parent 735fa7f commit 6ac6ef4

File tree

4 files changed

+2358
-4
lines changed

4 files changed

+2358
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,17 @@ format-lint: format lint
3434

3535
transpile-rules:
3636
cd ai && \
37-
uv run rules render claude && mkdir -p claude && mv CLAUDE.md claude/ && cp .rules/.message claude/ && \
38-
uv run rules render amp && mkdir -p amp && mv AGENT.md amp/ && cp .rules/.message amp/ && \
39-
uv run rules render codex && mkdir -p codex && mv AGENT.md codex/ && cp .rules/.message codex/ && \
4037
uv run rules render cody && mkdir -p cody && cp -r .sourcegraph cody/ && rm -rf .sourcegraph && cp .rules/.message cody/ && \
4138
uv run rules render cline && mkdir -p cline && cp -r .clinerules cline/ && rm -rf .clinerules && cp .rules/.message cline/ && \
4239
uv run rules render cursor && mkdir -p cursor && cp -r .cursor cursor/ && rm -rf .cursor && cp .rules/.message cursor/ && \
4340
uv run rules render continue && mkdir -p continue && cp -r .continue continue/ && rm -rf .continue && cp .rules/.message continue/ && \
4441
uv run rules render windsurf && mkdir -p windsurf && cp -r .windsurf windsurf/ && rm -rf .windsurf && cp .rules/.message windsurf/ && \
45-
uv run rules render copilot && mkdir -p copilot && cp -r .github copilot/ && rm -rf .github && cp .rules/.message copilot/ \
42+
uv run rules render copilot && mkdir -p copilot && cp -r .github copilot/ && rm -rf .github && cp .rules/.message copilot/ && \
43+
sed -i '' -E 's/^alwaysApply:[[:space:]]*false/alwaysApply: true/' .rules/*.md && \
44+
uv run rules render claude && mkdir -p claude && mv CLAUDE.md claude/ && cp .rules/.message claude/ && \
45+
uv run rules render amp && mkdir -p amp && mv AGENT.md amp/ && cp .rules/.message amp/ && \
46+
uv run rules render codex && mkdir -p codex && mv AGENT.md codex/ && cp .rules/.message codex/ && \
47+
sed -i '' -E 's/^alwaysApply:[[:space:]]*true/alwaysApply: false/' .rules/*.md
4648

4749
test:
4850
uv run pytest tests

0 commit comments

Comments
 (0)