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.
- package/CHANGELOG.md +25 -0
- package/README.md +46 -4
- package/dist/cli.js +1927 -509
- package/dist/cli.js.map +1 -1
- package/dist/commands/lock.d.ts +3 -0
- package/dist/commands/lock.d.ts.map +1 -0
- package/dist/commands/lock.js +160 -0
- package/dist/commands/lock.js.map +1 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +60 -0
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +50 -0
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/commands/skills.js +299 -20
- package/dist/commands/skills.js.map +1 -1
- package/dist/core/installLock.d.ts +54 -0
- package/dist/core/installLock.d.ts.map +1 -0
- package/dist/core/installLock.js +274 -0
- package/dist/core/installLock.js.map +1 -0
- package/dist/core/skillSecurityScanner.d.ts +28 -0
- package/dist/core/skillSecurityScanner.d.ts.map +1 -0
- package/dist/core/skillSecurityScanner.js +167 -0
- package/dist/core/skillSecurityScanner.js.map +1 -0
- package/dist/core/skillsManager.d.ts +12 -0
- package/dist/core/skillsManager.d.ts.map +1 -1
- package/dist/core/skillsManager.js +373 -14
- package/dist/core/skillsManager.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lockfile.d.ts +68 -0
- package/dist/types/lockfile.d.ts.map +1 -0
- package/dist/types/lockfile.js +2 -0
- package/dist/types/lockfile.js.map +1 -0
- package/dist/types/plugins.d.ts +1 -1
- package/dist/types/plugins.d.ts.map +1 -1
- package/dist/types/skills.d.ts +4 -1
- package/dist/types/skills.d.ts.map +1 -1
- package/dist/utils/lockSource.d.ts +9 -0
- package/dist/utils/lockSource.d.ts.map +1 -0
- package/dist/utils/lockSource.js +59 -0
- package/dist/utils/lockSource.js.map +1 -0
- package/dist/utils/promptUtils.d.ts +13 -2
- package/dist/utils/promptUtils.d.ts.map +1 -1
- package/dist/utils/promptUtils.js +61 -3
- package/dist/utils/promptUtils.js.map +1 -1
- 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
|
|
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
|
-
|
|
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
|
-
│
|
|
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
|