fix(init): inject WORKSPACE-RULES into AGENTS.md during workspace init#14
Merged
fix(init): inject WORKSPACE-RULES into AGENTS.md during workspace init#14
Conversation
Deploying allagents with
|
| Latest commit: |
a230177
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0b6c027a.allagents.pages.dev |
| Branch Preview URL: | https://fix-agents-template.allagents.pages.dev |
- Remove dummy AGENTS.md template with placeholder content - Create AGENTS.md with only WORKSPACE-RULES when none exists - Inject WORKSPACE-RULES into existing AGENTS.md (idempotent) - Refactor to single ensureWorkspaceRules() function with optional override - Simplify rules content by removing redundant heading
- Read version dynamically from package.json in CLI
Cloudflare Pages builds don't have a .git directory, causing prek install to fail. Make prek install conditional on .git existing.
255339a to
553a0d2
Compare
The test, lint, and typecheck scripts don't accept file arguments - they run on the whole project. Disabling pass_filenames prevents prek from appending changed files to these commands. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ensureWorkspaceRules()function with optional overrideTest plan
allagents workspace init /tmp/testcreates AGENTS.md with only WORKSPACE-RULESallagents workspace init /tmp/testwith existing AGENTS.md injects rulesallagents --versionshows 0.1.7🤖 Generated with Claude Code