@cleocode/caamp 2026.11.11 → 2026.11.12-rc.ci.729

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 (2) hide show
  1. package/README.md +81 -73
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  <p align="center">
6
6
  <a href="https://www.npmjs.com/package/@cleocode/caamp"><img src="https://img.shields.io/npm/v/@cleocode/caamp?color=blue" alt="npm version" /></a>
7
- <a href="https://github.com/kryptobaseddev/caamp/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@cleocode/caamp" alt="license" /></a>
7
+ <a href="../../LICENSE"><img src="https://img.shields.io/npm/l/@cleocode/caamp" alt="license" /></a>
8
8
  <img src="https://img.shields.io/node/v/@cleocode/caamp" alt="node version" />
9
- <img src="https://img.shields.io/badge/providers-44-green" alt="providers" />
9
+ <img src="https://img.shields.io/badge/providers-46-green" alt="providers" />
10
10
  <img src="https://img.shields.io/badge/TypeScript-strict-blue" alt="typescript" />
11
11
  <a href="https://codluv.gitbook.io/caamp/"><img src="https://img.shields.io/badge/docs-GitBook-blue?logo=gitbook" alt="docs" /></a>
12
12
  </p>
@@ -15,16 +15,16 @@
15
15
 
16
16
  > Part of [CLEO](https://github.com/kryptobaseddev/cleo#readme). Start with the root README; run `cleo <command> --help` for any command.
17
17
 
18
- **One CLI to manage Skills, MCP servers, and instruction files across 44 AI coding agents.**
18
+ **One CLI to manage Skills, MCP servers, and instruction files across 46 AI coding agents.**
19
19
 
20
- CAAMP is a unified provider registry and package manager for AI coding agents. It replaces the need to manually configure each agent's MCP servers, skills, and instruction files individually -- handling the differences in config formats (JSON, JSONC, YAML, TOML), config keys (`mcpServers`, `mcp_servers`, `extensions`, `mcp`, `servers`, `context_servers`), and file paths across all supported providers.
20
+ CAAMP (`@cleocode/caamp`, bin `caamp`) is the provider registry and package manager for AI coding agents. It replaces the need to manually configure each agent's MCP servers, skills, and instruction files individually, handling the differences in config formats (JSON, JSONC, YAML, TOML), config keys (`mcpServers`, `mcp_servers`, `extensions`, `mcp`, `servers`, `context_servers`, `amp.mcpServers`), and file paths across all supported providers.
21
21
 
22
- CAAMP adopts LAFS for agent-facing output contracts. Protocol authority lives in the standalone LAFS repository and package.
22
+ CAAMP uses LAFS for agent-facing output: commands print a LAFS JSON envelope by default and human-readable output with `--human`. The protocol lives in `@cleocode/lafs` ([`packages/lafs`](../lafs/lafs.md)).
23
23
 
24
24
  ## Install
25
25
 
26
26
  ```bash
27
- # Global install (recommended)
27
+ # Global install
28
28
  npm install -g @cleocode/caamp
29
29
 
30
30
  # Or run directly with npx
@@ -36,13 +36,13 @@ After global install, use `caamp` directly:
36
36
  ```bash
37
37
  caamp providers list
38
38
  caamp providers detect
39
- caamp mcp install fetch --provider claude-desktop -- npx -y @modelcontextprotocol/server-fetch
39
+ caamp mcp install fetch --provider claude-desktop --scope global -- npx -y @modelcontextprotocol/server-fetch
40
40
  caamp skills install owner/repo
41
41
  ```
42
42
 
43
43
  ## Library Usage
44
44
 
45
- CAAMP also exports a full programmatic API:
45
+ CAAMP also exports a programmatic API:
46
46
 
47
47
  ```bash
48
48
  npm install @cleocode/caamp
@@ -63,8 +63,8 @@ const providers = getAllProviders();
63
63
  // Detect which agents are installed on this system
64
64
  const installed = getInstalledProviders();
65
65
 
66
- // List MCP servers across all installed providers
67
- const servers = await listAllMcpServers(installed, "global");
66
+ // List MCP servers for every MCP-capable provider, keyed by provider id
67
+ const servers = await listAllMcpServers("global");
68
68
  ```
69
69
 
70
70
  ### Querying Provider Capabilities
@@ -80,69 +80,75 @@ import {
80
80
  // Get capabilities for a specific provider
81
81
  const caps = getProviderCapabilities("claude-code");
82
82
  console.log(caps?.spawn.supportsSubagents); // true
83
- console.log(caps?.hooks.supported); // ["onSessionStart", ...]
83
+ console.log(caps?.hooks.supported); // ["SessionStart", "SessionEnd", ...]
84
84
 
85
85
  // Find all providers that support spawning subagents
86
86
  const spawnCapable = getSpawnCapableProviders();
87
87
 
88
88
  // Find providers supporting a specific hook event
89
- const hookProviders = getProvidersByHookEvent("onToolComplete");
89
+ const hookProviders = getProvidersByHookEvent("PostToolUse");
90
90
 
91
91
  // Get full skills precedence map
92
92
  const skillsMap = buildSkillsMap();
93
93
  ```
94
94
 
95
- See [API Reference](https://codluv.gitbook.io/caamp/api-and-reference/api-reference) for full programmatic API documentation.
95
+ Subpath exports: `@cleocode/caamp/hooks` (hook event normalization and provider mappings) and `@cleocode/caamp/atomic` (locked, atomic config-file writes). See the [API Reference](docs/API-REFERENCE.md) for the full programmatic API.
96
96
 
97
97
  ## CLI Commands
98
98
 
99
+ Root options: `-v, --verbose`, `-q, --quiet`, and `--human` (output is JSON for LLM agents by default).
100
+
99
101
  ### Providers
100
102
 
101
103
  ```bash
102
- caamp providers list # List all supported providers
103
- caamp providers list --tier high # Filter by priority tier
104
- caamp providers detect # Auto-detect installed providers
105
- caamp providers detect --project # Detect project-level configs
106
- caamp providers show <id> # Show provider details + all paths
104
+ caamp providers list # List all supported providers
105
+ caamp providers list --tier high # Filter by priority tier
106
+ caamp providers detect # Auto-detect installed providers
107
+ caamp providers detect --project # Include project-level detection
108
+ caamp providers show <id> # Show provider details
109
+ caamp providers skills-map # Skills path map for all providers
110
+ caamp providers hooks # Hook support summary (also: hooks matrix, hooks translate <event>)
111
+ caamp providers capabilities # Capability matrix (--filter spawn.supportsSubagents)
107
112
  ```
108
113
 
109
114
  ### Skills
110
115
 
111
116
  ```bash
112
- caamp skills install <source> # Install from GitHub/URL/marketplace
113
- caamp skills remove [name] # Remove skill(s) + symlinks
117
+ caamp skills install <source> # Install from GitHub/URL/marketplace/skill library
118
+ caamp skills remove [name] # Remove skill(s) + provider symlinks
114
119
  caamp skills list [-g] # List installed skills
115
120
  caamp skills find [query] # Search marketplace (agentskills.in + skills.sh)
116
- caamp skills find [query] --recommend --top 5 # Ranked recommendations + CHOOSE flow
117
- caamp skills find [query] --recommend --json # LAFS envelope JSON for agent consumers
121
+ caamp skills find [query] --recommend --top 5 # Ranked recommendations
118
122
  caamp skills init [name] # Create new SKILL.md template
119
123
  caamp skills validate [path] # Validate SKILL.md format
120
- caamp skills audit [path] # Security scan (46+ rules, SARIF output)
124
+ caamp skills audit [path] # Security scan (44 rules, --sarif for SARIF output)
121
125
  caamp skills check # Check for available updates
122
126
  caamp skills update # Update all outdated skills
123
127
  ```
124
128
 
125
- Recommendation criteria flags:
129
+ Recommendation criteria flags (`skills find --recommend`):
126
130
 
127
131
  ```bash
128
- --must-have <term> # repeatable and comma-delimited
129
- --prefer <term> # soft preference signal
130
- --exclude <term> # hard exclusion signal
131
- --details # expanded JSON evidence fields
132
- --select <index> # select from ranked CHOOSE list
132
+ --must-have <term> # required criteria term, repeatable
133
+ --prefer <term> # preferred criteria term, repeatable
134
+ --exclude <term> # excluded criteria term, repeatable
135
+ --details # expanded machine output
136
+ --select <indexes> # pre-select recommendation ranks (comma-separated)
133
137
  ```
134
138
 
135
139
  ### MCP Servers
136
140
 
141
+ Every `mcp` verb takes `--scope project|global` (default `project`) and `--project-dir <path>`.
142
+
137
143
  ```bash
138
- caamp mcp detect # Auto-detect MCP-configured providers
144
+ caamp mcp detect # Providers with MCP config files on disk
139
145
  caamp mcp list # List servers across every MCP-capable provider
140
146
  caamp mcp list --provider cursor # List for a specific provider
141
147
  caamp mcp install <name> --provider <id> -- <command> [args] # Install via inline command
142
148
  caamp mcp install <name> --provider <id> --from server.json # Install via JSON file
143
149
  caamp mcp install <name> --provider <id> --env KEY=VAL -- ... # With env vars
144
150
  caamp mcp remove <name> --provider <id> # Remove from a single provider
145
- caamp mcp remove <name> --all-providers # Remove from every provider
151
+ caamp mcp remove <name> --all-providers # Remove from every MCP-capable provider
146
152
  ```
147
153
 
148
154
  ### Instructions
@@ -156,39 +162,35 @@ caamp instructions update # Update all instruction file injections
156
162
  ### Config
157
163
 
158
164
  ```bash
159
- caamp config show <provider> # Show provider config contents
160
- caamp config path <provider> # Show config file path
161
- caamp doctor # Diagnose configuration and health issues
165
+ caamp config show <provider> # Show provider config contents
166
+ caamp config path <provider> [scope] # Show config file path (scope: project or global)
167
+ caamp doctor # Diagnose configuration and health issues
162
168
  ```
163
169
 
164
170
  ### Advanced (LAFS-compliant wrappers)
165
171
 
166
172
  ```bash
167
173
  caamp advanced providers --min-tier medium --details
168
- caamp advanced batch --mcp-file ./mcp-batch.json --skills-file ./skills-batch.json
169
- caamp advanced conflicts --mcp-file ./mcp-batch.json
170
- caamp advanced apply --mcp-file ./mcp-batch.json --policy skip
174
+ caamp advanced batch --skills-file ./skills-batch.json
171
175
  caamp advanced instructions --content-file ./AGENT-BLOCK.md --scope project
172
- caamp advanced configure -a claude-code --global-mcp-file ./global-mcp.json --project-mcp-file ./project-mcp.json
173
176
  ```
174
177
 
175
178
  ### Pi harness verbs (deprecated)
176
179
 
177
- `caamp pi …` still ships but prints a deprecation warning: ADR-098 retires the
178
- Pi/CleoOS harness, and the `caamp pi` verbs, `harness/pi.ts` and the Pi
179
- exclusivity mode are removed after a release ships the freeze. Pi stays a
180
- normal provider in the registry (medium priority), like any other.
180
+ `caamp pi …` (`extensions`, `sessions`, `models`, `prompts`, `themes`, `cant`) still works but prints a deprecation notice first: ADR-098 retires the Pi/CleoOS harness. The `caamp pi` verbs, `core/harness/pi.ts` and the Pi exclusivity mode are deleted after a release has shipped the freeze. The default exclusivity mode is already `legacy` (T13995): CAAMP prefers no harness and targets the installed high-tier providers; `auto` and `force-pi` remain explicit opt-ins (`CAAMP_EXCLUSIVITY_MODE`). Pi stays a normal provider in the registry (medium priority), like any other.
181
181
 
182
- ## Global Flags
182
+ ## Common Flags
183
+
184
+ These are per-command options; run `caamp <command> --help` to see which a command takes.
183
185
 
184
186
  | Flag | Description |
185
187
  |------|-------------|
186
188
  | `-a, --agent <name>` | Target specific agent(s), repeatable |
187
189
  | `-g, --global` | Use global/user scope (default: project) |
188
190
  | `-y, --yes` | Skip confirmation prompts |
189
- | `--all` | Target all detected agents |
190
- | `--json` | JSON output format |
191
- | `--dry-run` | Preview changes without writing |
191
+ | `--all` | Target all detected (or all known) agents |
192
+ | `--json` / `--human` | JSON envelope (default) or human-readable output |
193
+ | `--dry-run` | Preview changes without writing (`instructions inject`) |
192
194
 
193
195
  ## Supported Providers
194
196
 
@@ -197,8 +199,8 @@ CAAMP supports **46 AI coding agents** across 3 priority tiers (`packages/caamp/
197
199
  | Priority | Providers |
198
200
  |----------|-----------|
199
201
  | **High** | Claude Code, Cursor, Windsurf |
200
- | **Medium** | Codex CLI, Gemini CLI, GitHub Copilot, OpenCode, Cline, Kimi, VS Code, Zed, Claude Desktop, Amazon Q Developer, GitHub Copilot CLI, Pi Coding Agent, OpenAI SDK (Vercel AI SDK) |
201
- | **Low** | Roo, Continue, Goose, Antigravity, Kiro, Amp, Trae, Aide, Pear AI, Void AI, Cody, Kilo Code, Qwen Code, OpenHands, CodeBuddy, CodeStory, Aider, Tabnine, Augment, JetBrains AI, Devin, Replit Agent, Mentat, Sourcery, Blackbox AI, Double, Codegen, SWE-Agent, Forge, Gemini Code Assist |
202
+ | **Medium** | Codex CLI, Gemini CLI, GitHub Copilot, OpenCode, Cline, Kimi Coding, VS Code, Zed, Claude Desktop, Amazon Q Developer, GitHub Copilot CLI, Pi Coding Agent, OpenAI SDK (Vercel AI SDK) |
203
+ | **Low** | Roo Code, Continue, Goose, Antigravity, Kiro, Amp, Trae, Aide, Pear AI, Void AI, Sourcegraph Cody, Kilo Code, Qwen Code, OpenHands, CodeBuddy, CodeStory, Aider, Tabnine, Augment Code, Devin, Mentat, Blackbox AI, Sourcery, Replit Agent, JetBrains AI Assistant, Codegen, Double, SWE-Agent, Forge, Gemini Code Assist |
202
204
 
203
205
  ### Config Key Mapping
204
206
 
@@ -206,20 +208,23 @@ Each provider uses a different key name for MCP server configuration:
206
208
 
207
209
  | Config Key | Providers |
208
210
  |------------|-----------|
209
- | `mcpServers` | Claude Code, Cursor, Windsurf, Gemini CLI, GitHub Copilot, Cline, Kimi, and 12 others |
210
- | `mcp_servers` | Codex |
211
+ | `mcpServers` | 38 providers, including Claude Code, Cursor, Windsurf, Gemini CLI, GitHub Copilot, Cline, Kimi Coding and Claude Desktop |
212
+ | `mcp_servers` | Codex CLI |
211
213
  | `extensions` | Goose |
212
214
  | `mcp` | OpenCode |
213
215
  | `servers` | VS Code |
214
216
  | `context_servers` | Zed |
217
+ | `amp.mcpServers` | Amp |
218
+
219
+ Pi Coding Agent and OpenAI SDK have no MCP config.
215
220
 
216
221
  ### Instruction File Mapping
217
222
 
218
223
  | File | Providers |
219
224
  |------|-----------|
220
225
  | `CLAUDE.md` | Claude Code, Claude Desktop |
221
- | `GEMINI.md` | Gemini CLI |
222
- | `AGENTS.md` | All other providers (Cursor, Windsurf, Codex, Kimi, etc.) |
226
+ | `GEMINI.md` | Gemini CLI, Gemini Code Assist |
227
+ | `AGENTS.md` | All other providers (Cursor, Windsurf, Codex CLI, Kimi Coding, etc.) |
223
228
 
224
229
  ## Architecture
225
230
 
@@ -227,41 +232,44 @@ Each provider uses a different key name for MCP server configuration:
227
232
  ┌─────────────────────────────────────────────────┐
228
233
  │ CLI Layer │
229
234
  │ providers │ skills │ mcp │ instructions │ config│
235
+ │ doctor │ advanced │ pi (deprecated) │
230
236
  ├─────────────────────────────────────────────────┤
231
237
  │ Core Layer │
232
- │ registry │ formats │ skills │ mcp │ │
233
- │ marketplace │ sources │ instructions │
238
+ │ registry │ formats │ skills │ mcp │ hooks │
239
+ │ marketplace │ sources │ instructions │ harness │
234
240
  ├─────────────────────────────────────────────────┤
235
241
  │ Data Layer │
236
- │ providers/registry.json │ lock files │ configs │
242
+ │ providers/registry.json │ hook-mappings.json │
243
+ │ lock file │ provider configs │
237
244
  └─────────────────────────────────────────────────┘
238
245
  ```
239
246
 
240
247
  - **Provider Registry**: Single `providers/registry.json` with all provider definitions
248
+ - **Hook Mappings**: `providers/hook-mappings.json`, the canonical-to-native hook event SSoT
241
249
  - **Format Handlers**: JSON, JSONC (comment-preserving), YAML, TOML
242
- - **Skills Model**: Canonical copy + symlinks (install once, link to all agents)
243
- - **MCP Transforms**: Per-agent config shape transforms for Goose, Zed, OpenCode, Codex, Cursor
244
- - **Lock File**: Tracks all installations at `~/.agents/.caamp-lock.json`
250
+ - **Skills Model**: Canonical copy + symlinks (install once, link to all agents; copied where a link cannot be made)
251
+ - **MCP Writes**: Each provider's registry entry names its config file, format and key, and one format-agnostic writer applies them
252
+ - **Lock File**: Tracks installations at `<agents data dir>/.caamp-lock.json`, where the data dir is `$AGENTS_HOME` or the platform default (`~/.local/share/agents` on Linux, `~/Library/Application Support/agents` on macOS)
245
253
 
246
254
  ## Documentation
247
255
 
248
- **[Read the full documentation on GitBook](https://codluv.gitbook.io/caamp/)**
256
+ **[Read the full documentation on GitBook](https://codluv.gitbook.io/caamp/)**. The same guides ship in this package:
249
257
 
250
258
  | Document | Description |
251
259
  |----------|-------------|
252
- | [API Reference](https://codluv.gitbook.io/caamp/api-and-reference/api-reference) | Full library API (signatures and examples) |
253
- | [Advanced CLI](https://codluv.gitbook.io/caamp/advanced-usage/advanced-cli) | LAFS-compliant advanced command wrappers and input/output schemas |
254
- | [Advanced Recipes](https://codluv.gitbook.io/caamp/advanced-usage/advanced-recipes) | Production TypeScript patterns for tier filtering, rollback, conflict handling, and dual-scope operations |
255
- | [Provider Configuration Guide](https://codluv.gitbook.io/caamp/user-guides/provider-configuration) | Config keys, formats, scopes, and provider mapping guidance |
256
- | [Migration Guide](https://codluv.gitbook.io/caamp/getting-started/migration-v1) | Upgrade notes for moving to v1.0.0 |
257
- | [Troubleshooting](https://codluv.gitbook.io/caamp/user-guides/troubleshooting) | Common failure modes and remediation steps |
258
- | [CLI Help Examples](https://codluv.gitbook.io/caamp/user-guides/cli-help-examples) | `--help` command examples for every command group |
259
- | [Skills Recommendations](https://codluv.gitbook.io/caamp/advanced-usage/skills-recommendations) | Marketplace search and recommendation engine |
260
- | [Contributing](https://codluv.gitbook.io/caamp/contributing/contributing) | Development workflow and PR expectations |
261
- | [Security Policy](https://codluv.gitbook.io/caamp/contributing/security) | Private vulnerability disclosure process |
262
- | [LAFS Compliance Profile](https://codluv.gitbook.io/caamp/api-and-reference/lafs-compliance) | CAAMP-specific LAFS adoption scope and compliance mapping |
263
- | [Agents Directory Standard](https://codluv.gitbook.io/caamp/api-and-reference/agents-directory-standard) | `.agents/` standard directory structure |
264
- | [LAFS Specification](https://github.com/kryptobaseddev/lafs/blob/main/lafs.md) | Canonical cross-language LLM-agent-first protocol |
260
+ | [API Reference](docs/API-REFERENCE.md) | Full library API (signatures and examples) |
261
+ | [Advanced CLI](docs/ADVANCED-CLI.md) | LAFS-compliant advanced command wrappers and input/output schemas |
262
+ | [Advanced Recipes](docs/ADVANCED-RECIPES.md) | TypeScript patterns for tier filtering, rollback, conflict handling, and dual-scope operations |
263
+ | [Provider Configuration Guide](docs/PROVIDER-CONFIGURATION.md) | Config keys, formats, scopes, and provider mapping guidance |
264
+ | [Migration Guide](docs/MIGRATION-v1.md) | Upgrade notes for moving to v1.0.0 |
265
+ | [Troubleshooting](docs/TROUBLESHOOTING.md) | Common failure modes and remediation steps |
266
+ | [CLI Help Examples](docs/CLI-HELP-EXAMPLES.md) | `--help` command examples for every command group |
267
+ | [Skills Recommendations](docs/SKILLS-RECOMMENDATIONS.md) | Marketplace search and recommendation engine |
268
+ | [Contributing](CONTRIBUTING.md) | Development workflow and PR expectations |
269
+ | [Security Policy](SECURITY.md) | Private vulnerability disclosure process |
270
+ | [LAFS Compliance Profile](docs/LAFS_COMPLIANCE.md) | CAAMP-specific LAFS adoption scope and compliance mapping |
271
+ | [Agents Directory Standard](docs/AGENTS-DIRECTORY-STANDARD.md) | `.agents/` standard directory structure |
272
+ | [LAFS Specification](../lafs/lafs.md) | Canonical cross-language LLM-agent-first protocol |
265
273
  | [Technical Specification](claudedocs/specs/CAAMP-SPEC.md) | RFC 2119 spec covering all subsystems |
266
274
  | [Vision & Architecture](claudedocs/VISION.md) | Project vision, design philosophy, and architecture |
267
275
  | [Gap Analysis & Roadmap](claudedocs/GAP-ANALYSIS.md) | Current state vs plan, v0.2.0+ roadmap |
@@ -271,7 +279,7 @@ Each provider uses a different key name for MCP server configuration:
271
279
  Provider definitions live in `providers/registry.json`. To add a new AI coding agent:
272
280
 
273
281
  1. Add a provider entry to `providers/registry.json` with all required fields
274
- 2. Run `npm test` to validate the registry
282
+ 2. Run the package tests (`pnpm --filter @cleocode/caamp test`) to validate the registry
275
283
  3. Submit a PR
276
284
 
277
285
  See the [Technical Specification](claudedocs/specs/CAAMP-SPEC.md#3-provider-registry-specification) for the full provider schema.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/caamp",
3
- "version": "2026.11.11",
3
+ "version": "2026.11.12-rc.ci.729",
4
4
  "description": "Central AI Agent Managed Packages - unified provider registry and package manager for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,14 +58,14 @@
58
58
  "jsonc-parser": "^3.3.1",
59
59
  "picocolors": "^1.1.1",
60
60
  "simple-git": "3.33.0",
61
- "@cleocode/contracts": "2026.11.11",
62
- "@cleocode/cant": "2026.11.11",
63
- "@cleocode/core": "2026.11.11",
64
- "@cleocode/lafs": "2026.11.11",
65
- "@cleocode/paths": "2026.11.11"
61
+ "@cleocode/cant": "2026.11.12-rc.ci.729",
62
+ "@cleocode/lafs": "2026.11.12-rc.ci.729",
63
+ "@cleocode/paths": "2026.11.12-rc.ci.729",
64
+ "@cleocode/contracts": "2026.11.12-rc.ci.729",
65
+ "@cleocode/core": "2026.11.12-rc.ci.729"
66
66
  },
67
67
  "peerDependencies": {
68
- "@cleocode/core": "2026.11.11"
68
+ "@cleocode/core": "2026.11.12-rc.ci.729"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "@cleocode/core": {