agentinit 1.8.1 → 1.9.0

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +15 -1
  3. package/dist/cli.js +665 -339
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/apply.d.ts +1 -0
  6. package/dist/commands/apply.d.ts.map +1 -1
  7. package/dist/commands/apply.js +8 -1
  8. package/dist/commands/apply.js.map +1 -1
  9. package/dist/commands/plugins.d.ts.map +1 -1
  10. package/dist/commands/plugins.js +2 -0
  11. package/dist/commands/plugins.js.map +1 -1
  12. package/dist/commands/skills.d.ts.map +1 -1
  13. package/dist/commands/skills.js +31 -13
  14. package/dist/commands/skills.js.map +1 -1
  15. package/dist/commands/sync.d.ts.map +1 -1
  16. package/dist/commands/sync.js +6 -0
  17. package/dist/commands/sync.js.map +1 -1
  18. package/dist/core/managedState.d.ts +1 -0
  19. package/dist/core/managedState.d.ts.map +1 -1
  20. package/dist/core/managedState.js +40 -8
  21. package/dist/core/managedState.js.map +1 -1
  22. package/dist/core/pluginManager.d.ts.map +1 -1
  23. package/dist/core/pluginManager.js +46 -33
  24. package/dist/core/pluginManager.js.map +1 -1
  25. package/dist/core/projectSkills.d.ts +3 -3
  26. package/dist/core/projectSkills.d.ts.map +1 -1
  27. package/dist/core/projectSkills.js +22 -18
  28. package/dist/core/projectSkills.js.map +1 -1
  29. package/dist/core/propagator.d.ts +2 -0
  30. package/dist/core/propagator.d.ts.map +1 -1
  31. package/dist/core/propagator.js +89 -21
  32. package/dist/core/propagator.js.map +1 -1
  33. package/dist/core/skillsManager.d.ts +18 -5
  34. package/dist/core/skillsManager.d.ts.map +1 -1
  35. package/dist/core/skillsManager.js +175 -50
  36. package/dist/core/skillsManager.js.map +1 -1
  37. package/dist/types/plugins.d.ts +4 -5
  38. package/dist/types/plugins.d.ts.map +1 -1
  39. package/dist/types/skills.d.ts +18 -2
  40. package/dist/types/skills.d.ts.map +1 -1
  41. package/dist/utils/fs.d.ts +5 -0
  42. package/dist/utils/fs.d.ts.map +1 -1
  43. package/dist/utils/fs.js +86 -1
  44. package/dist/utils/fs.js.map +1 -1
  45. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.9.0](https://github.com/agentinit/agentinit/compare/v1.8.1...v1.9.0) (2026-03-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * canonicalize shared skills and rules aliases ([9a3b47b](https://github.com/agentinit/agentinit/commit/9a3b47b242578ba022f2e7266be92d2efa47674b))
7
+
1
8
  ## [1.8.1](https://github.com/agentinit/agentinit/compare/v1.8.0...v1.8.1) (2026-03-29)
2
9
 
3
10
 
@@ -29,6 +36,7 @@
29
36
  ### Bug Fixes
30
37
 
31
38
  * fix plugin scope handling for global MCP installs/removals and targeted removals
39
+ * preserve revert semantics for canonical project skills and keep `skills remove` project-scoped by default
32
40
  * update docs and onboarding to the `mcp add|verify`, `rules add`, and `skills add` command model
33
41
 
34
42
  # [1.7.0](https://github.com/agentinit/agentinit/compare/v1.6.0...v1.7.0) (2025-10-17)
package/README.md CHANGED
@@ -96,6 +96,7 @@ agentinit apply # Sync + project skills + managed ignore
96
96
  agentinit apply --agent claude cursor # Target specific agents
97
97
  agentinit apply --dry-run # Preview changes
98
98
  agentinit apply --backup # Create sibling .agentinit.backup files
99
+ agentinit apply --copy-skills # Copy project skills instead of using canonical symlink installs
99
100
  agentinit apply --no-skills # Skip project-owned skills
100
101
  agentinit apply --gitignore-local # Write ignore entries to .git/info/exclude
101
102
  ```
@@ -170,17 +171,22 @@ Install, list, and remove reusable agent skills from local paths or GitHub repos
170
171
  # Inspect a source before installing
171
172
  agentinit skills add owner/repo --list
172
173
 
173
- # Install all discovered skills for detected agents
174
+ # Install all discovered skills for detected agents using canonical storage
174
175
  agentinit skills add ./skills
175
176
 
176
177
  # Install selected skills globally for a specific agent
177
178
  agentinit skills add owner/repo --global --agent claude --skill openai-docs
178
179
 
180
+ # Force copied installs instead of canonical symlink installs
181
+ agentinit skills add ./skills --copy
182
+
179
183
  # Review and clean up installed skills
180
184
  agentinit skills list
181
185
  agentinit skills remove openai-docs
182
186
  ```
183
187
 
188
+ Skills are installed into a canonical store by default: project installs use `.agents/skills/`, and global installs use `~/.agents/skills/`. Agent-specific paths are symlinked to that store when they differ. Use `--copy` or `--copy-skills` to force independent copies instead.
189
+
184
190
  ### `agentinit plugins`
185
191
 
186
192
  Install, inspect, search, and remove portable plugins from explicit marketplace sources, GitHub repositories, or local paths.
@@ -198,6 +204,7 @@ agentinit plugins install code-review --from claude
198
204
  # Install from GitHub or a local path
199
205
  agentinit plugins install owner/repo
200
206
  agentinit plugins install ./plugins/code-review
207
+ agentinit plugins install ./plugins/code-review --copy-skills
201
208
 
202
209
  # Inspect and remove installed plugins
203
210
  agentinit plugins list
@@ -235,6 +242,8 @@ your-project/
235
242
  ├── CLAUDE.md # Claude-specific config (synced)
236
243
  ├── .cursorrules # Cursor-specific config (synced)
237
244
  ├── AGENTS.md # Shared AGENTS.md standard for supporting agents
245
+ ├── .agents/skills/ # Canonical project skill storage
246
+ ├── .claude/skills/ # Claude skill view (often symlinks into .agents/skills)
238
247
  ├── .windsurfrules # Windsurf-specific config (synced)
239
248
  └── .agentinit/ # Managed state and internal backups
240
249
  ```
@@ -246,6 +255,9 @@ your-project/
246
255
  The `agents.md` file is the single source of truth for all agent configurations:
247
256
 
248
257
  ```markdown
258
+ ---
259
+ rules_alias: agents # optional: make AGENTS.md canonical and symlink CLAUDE.md to it
260
+ ---
249
261
  # Agent Configuration for MyProject
250
262
 
251
263
  **Stack**: typescript with next.js
@@ -275,6 +287,8 @@ This is a TypeScript project using Next.js...
275
287
 
276
288
  `AGENTS.md` is a shared standard used by multiple tools, so AgentInit does not use it by itself as an auto-detection signal.
277
289
 
290
+ When `rules_alias: agents` is set in `agents.md` frontmatter, AgentInit writes shared rules to `AGENTS.md` and makes `CLAUDE.md` a symlinked alias when Claude is targeted. If symlink creation fails, AgentInit falls back to writing a copied `CLAUDE.md`.
291
+
278
292
  | Agent | Config File | Status |
279
293
  |-------|-------------|--------|
280
294
  | Claude | `CLAUDE.md` | ✅ |