agentinit 1.22.1 → 1.23.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 (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +41 -0
  3. package/dist/cli.js +928 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/agent.d.ts +3 -0
  6. package/dist/commands/agent.d.ts.map +1 -0
  7. package/dist/commands/agent.js +303 -0
  8. package/dist/commands/agent.js.map +1 -0
  9. package/dist/commands/config.d.ts.map +1 -1
  10. package/dist/commands/config.js +55 -1
  11. package/dist/commands/config.js.map +1 -1
  12. package/dist/core/agentSettings/adapters/claude.d.ts +3 -0
  13. package/dist/core/agentSettings/adapters/claude.d.ts.map +1 -0
  14. package/dist/core/agentSettings/adapters/claude.js +147 -0
  15. package/dist/core/agentSettings/adapters/claude.js.map +1 -0
  16. package/dist/core/agentSettings/registry.d.ts +6 -0
  17. package/dist/core/agentSettings/registry.d.ts.map +1 -0
  18. package/dist/core/agentSettings/registry.js +20 -0
  19. package/dist/core/agentSettings/registry.js.map +1 -0
  20. package/dist/core/agentSettings/settingsManager.d.ts +12 -0
  21. package/dist/core/agentSettings/settingsManager.d.ts.map +1 -0
  22. package/dist/core/agentSettings/settingsManager.js +399 -0
  23. package/dist/core/agentSettings/settingsManager.js.map +1 -0
  24. package/dist/core/agentSettings/types.d.ts +93 -0
  25. package/dist/core/agentSettings/types.d.ts.map +1 -0
  26. package/dist/core/agentSettings/types.js +2 -0
  27. package/dist/core/agentSettings/types.js.map +1 -0
  28. package/dist/core/agentSettings/valueParser.d.ts +3 -0
  29. package/dist/core/agentSettings/valueParser.d.ts.map +1 -0
  30. package/dist/core/agentSettings/valueParser.js +60 -0
  31. package/dist/core/agentSettings/valueParser.js.map +1 -0
  32. package/dist/core/userConfig.d.ts +5 -0
  33. package/dist/core/userConfig.d.ts.map +1 -1
  34. package/dist/core/userConfig.js +33 -0
  35. package/dist/core/userConfig.js.map +1 -1
  36. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # [1.23.0](https://github.com/agentinit/agentinit/compare/v1.22.1...v1.23.0) (2026-04-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **agent:** expose effective settings scope ([7d71c9a](https://github.com/agentinit/agentinit/commit/7d71c9ad60761dc0623e7d2611da1e7d8ca6b050))
7
+
8
+
9
+ ### Features
10
+
11
+ * **agent:** add registry-backed Claude settings commands ([b28ce3a](https://github.com/agentinit/agentinit/commit/b28ce3ac8f8fc9d7d08dcdd4318a3fd1b3cf558c))
12
+ * **agent:** default omitted scope to global ([033fd26](https://github.com/agentinit/agentinit/commit/033fd26649ea67b585b205965198271d4ee15865))
13
+
1
14
  ## [1.22.1](https://github.com/agentinit/agentinit/compare/v1.22.0...v1.22.1) (2026-04-28)
2
15
 
3
16
 
@@ -72,11 +85,16 @@
72
85
 
73
86
  ### Bug Fixes
74
87
 
88
+ * **agent:** default omitted settings scopes to global with config and env overrides
89
+ * **agent:** keep raw command-executing Claude settings out of the public settings command
90
+ * **agent:** separate JSON output from JSON value parsing
75
91
  * **skills:** compare installed skill payloads before prompting for updates
76
92
  * **lock:** treat global installs as shared targets and warn when lock persistence fails
77
93
 
78
94
  ### Features
79
95
 
96
+ * **agent:** add typed Claude hook add, list, and remove commands
97
+ * **agent:** add registry-backed Claude settings command MVP
80
98
  * **lock:** add lock inspection commands and tracked skill updates
81
99
 
82
100
  # [1.18.0](https://github.com/agentinit/agentinit/compare/v1.17.2...v1.18.0) (2026-04-04)
package/README.md CHANGED
@@ -374,6 +374,11 @@ agentinit config marketplaces add acme https://github.com/acme/marketplace.git -
374
374
  agentinit config marketplaces default claude
375
375
  agentinit config marketplaces clear-default
376
376
 
377
+ # Manage the default scope used by `agentinit agent` when no scope flag is provided
378
+ agentinit config agent-settings scope
379
+ agentinit config agent-settings scope project
380
+ agentinit config agent-settings clear-scope
381
+
377
382
  # Manage exact verified GitHub fallback repos
378
383
  agentinit config verified-repos list
379
384
  agentinit config verified-repos add acme/private-plugin
@@ -384,6 +389,42 @@ Custom marketplaces use the standard AgentInit repository layout: `skills`, `mcp
384
389
 
385
390
  Verified GitHub repos must be exact `owner/repo` entries. They only affect how AgentInit labels marketplace-to-GitHub fallback sources; they do not bypass install parsing or other safety checks.
386
391
 
392
+ ### `agentinit agent`
393
+
394
+ Manage registry-backed native agent settings. The initial implementation supports safe Claude Code settings and typed hook operations; command-executing settings such as status lines, sandbox overrides, and AgentInit-managed plugin state are intentionally not exposed as raw settings.
395
+
396
+ When you omit `--global`, `--project`, and `--local`, `agentinit agent` now defaults to `global`. You can override that default with `AGENTINIT_AGENT_DEFAULT_SCOPE=global|project|local` or persist a user preference with `agentinit config agent-settings scope <scope>`. This also applies to hook commands, so pass `--project` or `--local` when a hook should stay repo-scoped.
397
+ See [docs/agent-command-reference.md](docs/agent-command-reference.md) for the full command reference and examples.
398
+
399
+ **Examples:**
400
+ ```bash
401
+ # Review supported agents and settings
402
+ agentinit agent list
403
+ agentinit agent schema claude --json
404
+
405
+ # Set typed Claude settings
406
+ agentinit agent set claude model sonnet
407
+ agentinit agent set claude permissions.defaultMode acceptEdits --project
408
+ agentinit agent set claude env '{"AGENTINIT_TEST":"1"}' --value-json
409
+
410
+ # Add and inspect Claude hooks without replacing the whole hooks object
411
+ agentinit agent hook add claude after-tool-use --command "npm run lint" --matcher "Edit|Write" --name lint-after-edit
412
+ agentinit agent hook list claude post-tool-use --json
413
+ agentinit agent hook remove claude post-tool-use lint-after-edit --matcher "Edit|Write"
414
+
415
+ # Read settings in human or JSON form
416
+ agentinit agent get claude model --json
417
+
418
+ # Preview or remove a setting
419
+ agentinit agent set claude effortLevel high --dry-run
420
+ agentinit agent unset claude effortLevel
421
+
422
+ # Persist a different default scope if you want repo-local behavior
423
+ agentinit config agent-settings scope project
424
+ ```
425
+
426
+ Use `--value-json` when the value itself is JSON. Use `--json` when the command output should be machine-readable.
427
+
387
428
  ### `agentinit revert`
388
429
 
389
430
  Revert files and backups managed by `agentinit apply` or `agentinit sync`.