compose-agentsmd 3.2.5 → 3.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -68,7 +68,7 @@ compose-agentsmd edit-rules
68
68
  compose-agentsmd apply-rules
69
69
  ```
70
70
 
71
- `edit-rules` clones the GitHub source into the workspace (or reuses it). `apply-rules` pushes the workspace (if clean) and regenerates `AGENTS.md` by refreshing the cache. If your `source` is a local path, `edit-rules` will just print that path and `apply-rules` will skip the push.
71
+ `edit-rules` clones the GitHub source into the workspace (or reuses it), then prints the workspace path, rules directory, and next steps. `apply-rules` pushes the workspace (if clean) and regenerates `AGENTS.md` by refreshing the cache. If your `source` is a local path, `edit-rules` points to the local workspace and `apply-rules` skips the push.
72
72
 
73
73
  ## Project ruleset format
74
74
 
@@ -755,7 +755,17 @@ const main = async () => {
755
755
  if (ruleset.source.startsWith("github:")) {
756
756
  workspaceRoot = ensureWorkspaceForGithubSource(ruleset.source);
757
757
  }
758
- process.stdout.write(`Rules workspace: ${workspaceRoot}\n`);
758
+ const rulesDirectory = ruleset.source.startsWith("github:")
759
+ ? path.join(workspaceRoot, "rules")
760
+ : resolveLocalRulesRoot(rulesetDir, ruleset.source);
761
+ process.stdout.write([
762
+ `Rules workspace: ${workspaceRoot}`,
763
+ `Rules directory: ${rulesDirectory}`,
764
+ "Next steps:",
765
+ `- Edit rule files under: ${rulesDirectory}`,
766
+ "- If this source is GitHub, commit and push the workspace changes before apply-rules.",
767
+ "- Run compose-agentsmd apply-rules from your project root to apply updates and regenerate AGENTS.md."
768
+ ].join("\n") + "\n");
759
769
  return;
760
770
  }
761
771
  if (command === "init") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compose-agentsmd",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "CLI tools for composing per-project AGENTS.md files from modular rule sets",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -3,6 +3,7 @@
3
3
  - `compose-agentsmd` intentionally regenerates `AGENTS.md`; any resulting `AGENTS.md` diff is expected and must not be treated as an unexpected external change.
4
4
  - If `compose-agentsmd` is not available, install it via npm: `npm install -g compose-agentsmd`.
5
5
  - To update shared rules, run `compose-agentsmd edit-rules`, edit the workspace rules, then run `compose-agentsmd apply-rules`.
6
+ - `compose-agentsmd apply-rules` pushes the rules workspace when `source` is GitHub (if the workspace is clean), then regenerates `AGENTS.md` with refreshed rules.
6
7
  - Do not edit `AGENTS.md` directly; update the source rules and regenerate.
7
8
  - `tools/tool-rules.md` is the shared rule source for all repositories that use compose-agentsmd.
8
9
  - Before applying any rule updates, present the planned changes first (prefer a colorized diff-style preview), ask for explicit approval, then make the edits.