agentinit 1.19.0 → 1.20.1

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 (48) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +46 -4
  3. package/dist/cli.js +1927 -509
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/lock.d.ts +3 -0
  6. package/dist/commands/lock.d.ts.map +1 -0
  7. package/dist/commands/lock.js +160 -0
  8. package/dist/commands/lock.js.map +1 -0
  9. package/dist/commands/mcp.d.ts.map +1 -1
  10. package/dist/commands/mcp.js +60 -0
  11. package/dist/commands/mcp.js.map +1 -1
  12. package/dist/commands/rules.d.ts.map +1 -1
  13. package/dist/commands/rules.js +50 -0
  14. package/dist/commands/rules.js.map +1 -1
  15. package/dist/commands/skills.d.ts.map +1 -1
  16. package/dist/commands/skills.js +299 -20
  17. package/dist/commands/skills.js.map +1 -1
  18. package/dist/core/installLock.d.ts +54 -0
  19. package/dist/core/installLock.d.ts.map +1 -0
  20. package/dist/core/installLock.js +274 -0
  21. package/dist/core/installLock.js.map +1 -0
  22. package/dist/core/skillSecurityScanner.d.ts +28 -0
  23. package/dist/core/skillSecurityScanner.d.ts.map +1 -0
  24. package/dist/core/skillSecurityScanner.js +167 -0
  25. package/dist/core/skillSecurityScanner.js.map +1 -0
  26. package/dist/core/skillsManager.d.ts +12 -0
  27. package/dist/core/skillsManager.d.ts.map +1 -1
  28. package/dist/core/skillsManager.js +373 -14
  29. package/dist/core/skillsManager.js.map +1 -1
  30. package/dist/types/index.d.ts +1 -0
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/lockfile.d.ts +68 -0
  33. package/dist/types/lockfile.d.ts.map +1 -0
  34. package/dist/types/lockfile.js +2 -0
  35. package/dist/types/lockfile.js.map +1 -0
  36. package/dist/types/plugins.d.ts +1 -1
  37. package/dist/types/plugins.d.ts.map +1 -1
  38. package/dist/types/skills.d.ts +4 -1
  39. package/dist/types/skills.d.ts.map +1 -1
  40. package/dist/utils/lockSource.d.ts +9 -0
  41. package/dist/utils/lockSource.d.ts.map +1 -0
  42. package/dist/utils/lockSource.js +59 -0
  43. package/dist/utils/lockSource.js.map +1 -0
  44. package/dist/utils/promptUtils.d.ts +13 -2
  45. package/dist/utils/promptUtils.d.ts.map +1 -1
  46. package/dist/utils/promptUtils.js +61 -3
  47. package/dist/utils/promptUtils.js.map +1 -1
  48. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## [1.20.1](https://github.com/agentinit/agentinit/compare/v1.20.0...v1.20.1) (2026-04-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * harden skill source replay and scan enforcement ([cf0efa1](https://github.com/agentinit/agentinit/commit/cf0efa17009515e1a5835b7a9c81b675a84bc91c))
7
+ * **skills:** preserve prefixes across installs and updates ([6a0c7b3](https://github.com/agentinit/agentinit/commit/6a0c7b3f4c16bf9ee8cb60a3a94b852755f412fa))
8
+
9
+ # [1.20.0](https://github.com/agentinit/agentinit/compare/v1.19.0...v1.20.0) (2026-04-22)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **skills:** repair missing agent installs from canonical store ([c1b2c15](https://github.com/agentinit/agentinit/commit/c1b2c156880c96768cb29ccef659bca40b336cc0))
15
+
16
+
17
+ ### Features
18
+
19
+ * **lock:** add install lock tracking and skill updates ([ae27369](https://github.com/agentinit/agentinit/commit/ae27369378028370675fc78a10497526e954df2a))
20
+
1
21
  # [1.19.0](https://github.com/agentinit/agentinit/compare/v1.18.2...v1.19.0) (2026-04-12)
2
22
 
3
23
 
@@ -25,6 +45,11 @@
25
45
  ### Bug Fixes
26
46
 
27
47
  * **skills:** compare installed skill payloads before prompting for updates
48
+ * **lock:** treat global installs as shared targets and warn when lock persistence fails
49
+
50
+ ### Features
51
+
52
+ * **lock:** add lock inspection commands and tracked skill updates
28
53
 
29
54
  # [1.18.0](https://github.com/agentinit/agentinit/compare/v1.17.2...v1.18.0) (2026-04-04)
30
55
 
package/README.md CHANGED
@@ -171,7 +171,7 @@ agentinit rules add --global --agent claude --template git,write_tests
171
171
 
172
172
  ### `agentinit skills`
173
173
 
174
- Install, list, and remove reusable agent skills from marketplaces, local paths, or GitHub repositories.
174
+ Install, list, update, and remove reusable agent skills from marketplaces, local paths, or hosted Git repositories.
175
175
 
176
176
  **Examples:**
177
177
  ```bash
@@ -188,6 +188,12 @@ agentinit skills add ./skills
188
188
 
189
189
  # Install a skill stored in a repository subdirectory
190
190
  agentinit skills add owner/repo/path/to/skill
191
+ agentinit skills add gitlab:group/repo//path/to/skill
192
+ agentinit skills add bitbucket:workspace/repo/path/to/skill
193
+
194
+ # Install from GitLab or Bitbucket
195
+ agentinit skills add gitlab:group/repo
196
+ agentinit skills add bitbucket:workspace/repo
191
197
 
192
198
  # Install marketplace-hosted skills explicitly
193
199
  agentinit skills add claude/skill-creator
@@ -208,20 +214,53 @@ agentinit skills add owner/repo --global --agent agents
208
214
  # Force copied installs instead of canonical symlink installs
209
215
  agentinit skills add ./skills --copy
210
216
 
217
+ # Prefix installed skill names for grouping
218
+ agentinit skills add owner/repo --prefix marketing-
219
+
211
220
  # Install every bundled plugin from a multi-plugin Claude bundle
212
221
  agentinit skills add owner/repo --all
213
222
 
223
+ # Control security scanning
224
+ agentinit skills add owner/repo
225
+ agentinit skills add owner/repo --no-scan
226
+ agentinit skills add owner/repo --allow-risky
227
+
214
228
  # Review and clean up installed skills
215
229
  agentinit skills list
216
230
  agentinit skills list --agent agents
231
+ agentinit skills update openai-docs
232
+ agentinit skills update openai-docs --everywhere
217
233
  agentinit skills remove openai-docs
218
234
  ```
219
235
 
220
236
  If a GitHub or local Claude bundle contains multiple plugins, `agentinit skills add` prompts you to choose one or more bundled plugins to inspect or install. Press `Space` to select, `A` to select or deselect all, and `Enter` to confirm. Use `--all` to skip the prompt and install or inspect every bundled plugin. In non-interactive `--yes` mode, ambiguous multi-plugin bundles still fail unless `--all` is provided.
221
237
 
222
- Skills are installed into a canonical store by default (`.agents/skills/` for project, `~/.agents/skills/` for global), with agent-specific paths symlinked automatically. Bare skill names resolve from your configured default marketplace, falling back to the public catalog at `vercel-labs/agent-skills`. Use `./name` for local paths, `owner/repo` for GitHub repos, or `--from <marketplace>` for explicit marketplace sources.
238
+ Skills are installed into a canonical store by default (`.agents/skills/` for project, `~/.agents/skills/` for global), with agent-specific paths symlinked automatically. Bare skill names resolve from your configured default marketplace, falling back to the public catalog at `vercel-labs/agent-skills`. Use `./name` for local paths, `owner/repo` for GitHub repos, `gitlab:group/repo` for GitLab repos, `gitlab:group/repo//path/to/skill` for GitLab subdirectories, `bitbucket:workspace/repo` for Bitbucket, or `--from <marketplace>` for explicit marketplace sources.
239
+
240
+ When you re-run `agentinit skills add`, AgentInit compares the installed skill payload with the source before overwriting anything. Unchanged skills are reported as already up to date. If an installed skill has changed, interactive runs ask for confirmation before replacing it, while `--yes` applies the update automatically. Use `--prefix <text>` to prepend installed skill names for grouping, or press `P` during the interactive skill picker to set it on the fly. Installs are security-scanned by default; risky helper scripts are blocked, while risky Markdown guidance is surfaced as a warning. Use `--no-scan` to skip scanning or `--allow-risky` to proceed when high-risk executable patterns are detected.
241
+
242
+ `agentinit skills update [name]` replays tracked project-scoped installs from their original source in the current project. Use `agentinit skills update <name> --everywhere` to update that skill across every tracked target, including global installs.
243
+
244
+ ### `agentinit lock`
245
+
246
+ Inspect and maintain the global install lock at `~/.agentinit/lock.json`. The lock records successful skill, MCP, and rules changes so AgentInit can report current installations, find stale project paths, detect skill drift, and update tracked skills later.
247
+
248
+ **Examples:**
249
+ ```bash
250
+ # List current tracked installs across projects
251
+ agentinit lock list
252
+ agentinit lock list --kind skill --agent claude
253
+
254
+ # Show a summary and optionally compare skill files with their install hashes
255
+ agentinit lock status
256
+ agentinit lock status --check-drift
257
+
258
+ # Remove entries for projects that no longer exist
259
+ agentinit lock prune --dry-run
260
+ agentinit lock prune
261
+ ```
223
262
 
224
- When you re-run `agentinit skills add`, AgentInit now compares the installed skill payload with the source before overwriting anything. Unchanged skills are reported as already up to date. If an installed skill has changed, interactive runs ask for confirmation before replacing it, while `--yes` applies the update automatically.
263
+ The lock is stored with user-only permissions when supported by the operating system. It can include absolute project paths, agent config paths, skill install paths, source repository or marketplace names, sanitized MCP URLs, and MCP command names. Do not share this file if those paths or source names are sensitive.
225
264
 
226
265
  ### `agentinit plugins`
227
266
 
@@ -487,10 +526,13 @@ src/
487
526
  │ ├── init.ts # Project initialization
488
527
  │ ├── detect.ts # Stack detection
489
528
  │ ├── sync.ts # Configuration sync
490
- └── mcp.ts # MCP management
529
+ ├── mcp.ts # MCP management
530
+ │ ├── skills.ts # Skill installation and updates
531
+ │ └── lock.ts # Global install lock inspection
491
532
  ├── core/ # Core functionality
492
533
  │ ├── agentDetector.ts # Agent detection
493
534
  │ ├── stackDetector.ts # Stack analysis
535
+ │ ├── installLock.ts # Global install lock state
494
536
  │ ├── templateEngine.ts # Template processing
495
537
  │ └── propagator.ts # Config sync engine
496
538
  ├── registry/ # MCP registry