Repository navigation
feat(instructions)!: generate targets from instructions files - #30
Merged
Merged
Conversation
- Add '.' as the project's own instructions source, 'instructions export', and '--replace' on 'instructions update --apply'. - Report foreign targets and kept edited targets; give remedies for unowned targets, invalid links and changed own files. - 'instructions init' creates .agent/instructions/<name>.md. - Update, instruction update and install reports move to schema version 2; source listings add level, description and paths. - Give the demo script's instructions files front matter.
- 'instructions add' names the sections each target received. - Report a kept edited target as differing from its generated version. - Treat doctor's foreignTarget as an error and give remedies for a stale lock; show the user scope's export root as '~'.
Declare this repository's guide with the agents-tools shared package route and test isolation units, and track the declaration and lock.
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
Adapts the CLI to core's generated instruction targets (agents-tools/core#37) and prepares release 0.2.0.
Package.swiftdepends on core"0.2.0"..<"0.3.0", resolved to the published core 0.2.0.agents instructions add . <names…>andagents instructions list .use the project's own instructions in.agent/instructions/.agents instructions export [--root <dir>…] [--json]maps the locked targets of the user scope and each project to their sections.agents instructions update --apply --replacetakes over target files that agents did not generate; add and update printTake over <path>, which agents did not generatewith the diff. A file agents did not generate also stopsinstallandremove, with remedies that keep the lock.instructions addnames the sections each target received; removal reports an edited target it leaves in place.agents instructions init <name>creates.agent/instructions/<name>.mdwith front matter.schemaVersion: 2: instruction targets dropadoptedSectionsandconflicts, addforeign, and reportdriftasclean,driftedormissing. Source listings addlevel,descriptionandpaths. Doctor'sforeignTargetandinvalidLinkare errors.BuildInfo.versionis0.2.0; the changes, breaking ones marked, are listed under## [0.2.0]inCHANGELOG.md.Validation
swift build: passenv -u CODEX_HOME -u CLAUDE_CONFIG_DIR -u XDG_CONFIG_HOME -u XDG_STATE_HOME -u XDG_CACHE_HOME swift test: 111 tests pass against core 0.2.0swift build -c release: pass;agents --versionprintsagents 0.2.0swift format lint --strict --configuration .swift-format --recursive Package.swift Sources Tests: cleandb02bcb24426f4add0393444f868f1bffdf06f9d;terminal checkpasses against the release build.Documentation
Documentation/Reference/CLI.md, the JSON schemas inDocumentation/Reference/Schemas/(newinstructions-export.schema.json),README.mdandCHANGELOG.mddescribe the new commands and reports.