@cleocode/caamp 0.1.0 → 0.3.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.
- package/README.md +152 -32
- package/dist/{chunk-63BH7QMR.js → chunk-PCWTRJV2.js} +201 -90
- package/dist/chunk-PCWTRJV2.js.map +1 -0
- package/dist/cli.d.ts +0 -0
- package/dist/cli.js +405 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1491 -60
- package/dist/index.js +9 -1
- package/dist/index.js.map +0 -0
- package/package.json +16 -13
- package/providers/registry.json +455 -5
- package/dist/chunk-63BH7QMR.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,84 +1,204 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="public/banner.png" alt="CAAMP - Central AI Agent Managed Packages" width="100%" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
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>
|
|
8
|
+
<img src="https://img.shields.io/node/v/@cleocode/caamp" alt="node version" />
|
|
9
|
+
<img src="https://img.shields.io/badge/providers-28%2B-green" alt="providers" />
|
|
10
|
+
<img src="https://img.shields.io/badge/TypeScript-strict-blue" alt="typescript" />
|
|
11
|
+
</p>
|
|
12
|
+
|
|
1
13
|
# CAAMP - Central AI Agent Managed Packages
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
**One CLI to manage Skills, MCP servers, and instruction files across 28+ AI coding agents.**
|
|
16
|
+
|
|
17
|
+
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.
|
|
4
18
|
|
|
5
19
|
## Install
|
|
6
20
|
|
|
7
21
|
```bash
|
|
8
|
-
|
|
22
|
+
# Global install (recommended)
|
|
23
|
+
npm install -g @cleocode/caamp
|
|
24
|
+
|
|
25
|
+
# Or run directly with npx
|
|
26
|
+
npx @cleocode/caamp <command>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
After global install, use `caamp` directly:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
caamp providers list
|
|
33
|
+
caamp providers detect
|
|
34
|
+
caamp mcp install @anthropic/mcp-server-fetch
|
|
35
|
+
caamp skills install owner/repo
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Library Usage
|
|
39
|
+
|
|
40
|
+
CAAMP also exports a full programmatic API:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm install @cleocode/caamp
|
|
9
44
|
```
|
|
10
45
|
|
|
11
|
-
|
|
46
|
+
```typescript
|
|
47
|
+
import {
|
|
48
|
+
getAllProviders,
|
|
49
|
+
getInstalledProviders,
|
|
50
|
+
listAllMcpServers,
|
|
51
|
+
installSkill,
|
|
52
|
+
detectAllProviders,
|
|
53
|
+
} from "@cleocode/caamp";
|
|
54
|
+
|
|
55
|
+
// Get all 28+ registered providers
|
|
56
|
+
const providers = getAllProviders();
|
|
57
|
+
|
|
58
|
+
// Detect which agents are installed on this system
|
|
59
|
+
const installed = getInstalledProviders();
|
|
60
|
+
|
|
61
|
+
// List MCP servers across all installed providers
|
|
62
|
+
const servers = await listAllMcpServers(installed, "global");
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
See [API Reference](docs/API-REFERENCE.md) for full documentation of all 82 exported symbols.
|
|
66
|
+
|
|
67
|
+
## CLI Commands
|
|
12
68
|
|
|
13
69
|
### Providers
|
|
14
70
|
|
|
15
71
|
```bash
|
|
16
72
|
caamp providers list # List all 28+ supported providers
|
|
73
|
+
caamp providers list --tier high # Filter by priority tier
|
|
17
74
|
caamp providers detect # Auto-detect installed providers
|
|
18
|
-
caamp providers
|
|
75
|
+
caamp providers detect --project # Detect project-level configs
|
|
76
|
+
caamp providers show <id> # Show provider details + all paths
|
|
19
77
|
```
|
|
20
78
|
|
|
21
79
|
### Skills
|
|
22
80
|
|
|
23
81
|
```bash
|
|
24
|
-
caamp skills install <source> # Install from GitHub/marketplace
|
|
25
|
-
caamp skills remove [name] # Remove skill(s)
|
|
82
|
+
caamp skills install <source> # Install from GitHub/URL/marketplace
|
|
83
|
+
caamp skills remove [name] # Remove skill(s) + symlinks
|
|
26
84
|
caamp skills list [-g] # List installed skills
|
|
27
|
-
caamp skills find [query] # Search marketplace
|
|
28
|
-
caamp skills init [name] # Create new
|
|
29
|
-
caamp skills validate [path] # Validate SKILL.md
|
|
30
|
-
caamp skills audit [path] # Security scan (46+ rules, SARIF)
|
|
31
|
-
caamp skills check # Check for updates
|
|
85
|
+
caamp skills find [query] # Search marketplace (agentskills.in + skills.sh)
|
|
86
|
+
caamp skills init [name] # Create new SKILL.md template
|
|
87
|
+
caamp skills validate [path] # Validate SKILL.md format
|
|
88
|
+
caamp skills audit [path] # Security scan (46+ rules, SARIF output)
|
|
89
|
+
caamp skills check # Check for available updates
|
|
90
|
+
caamp skills update # Update all outdated skills
|
|
32
91
|
```
|
|
33
92
|
|
|
34
93
|
### MCP Servers
|
|
35
94
|
|
|
36
95
|
```bash
|
|
37
96
|
caamp mcp install <source> # Install MCP server to agent configs
|
|
38
|
-
caamp mcp remove <name> # Remove MCP server
|
|
39
|
-
caamp mcp list # List configured servers
|
|
40
|
-
caamp mcp
|
|
97
|
+
caamp mcp remove <name> # Remove MCP server from configs
|
|
98
|
+
caamp mcp list # List configured MCP servers
|
|
99
|
+
caamp mcp list -a cursor # List for a specific agent
|
|
100
|
+
caamp mcp detect # Auto-detect MCP configurations
|
|
41
101
|
```
|
|
42
102
|
|
|
43
103
|
### Instructions
|
|
44
104
|
|
|
45
105
|
```bash
|
|
46
106
|
caamp instructions inject # Inject blocks into instruction files
|
|
47
|
-
caamp instructions check # Check injection status
|
|
48
|
-
caamp instructions update # Update all injections
|
|
107
|
+
caamp instructions check # Check injection status across providers
|
|
108
|
+
caamp instructions update # Update all instruction file injections
|
|
49
109
|
```
|
|
50
110
|
|
|
51
111
|
### Config
|
|
52
112
|
|
|
53
113
|
```bash
|
|
54
|
-
caamp config show <provider> # Show provider config
|
|
114
|
+
caamp config show <provider> # Show provider config contents
|
|
55
115
|
caamp config path <provider> # Show config file path
|
|
56
116
|
```
|
|
57
117
|
|
|
58
118
|
## Global Flags
|
|
59
119
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
--
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
120
|
+
| Flag | Description |
|
|
121
|
+
|------|-------------|
|
|
122
|
+
| `-a, --agent <name>` | Target specific agent(s), repeatable |
|
|
123
|
+
| `-g, --global` | Use global/user scope (default: project) |
|
|
124
|
+
| `-y, --yes` | Skip confirmation prompts |
|
|
125
|
+
| `--all` | Target all detected agents |
|
|
126
|
+
| `--json` | JSON output format |
|
|
127
|
+
| `--dry-run` | Preview changes without writing |
|
|
68
128
|
|
|
69
129
|
## Supported Providers
|
|
70
130
|
|
|
131
|
+
CAAMP supports **46 AI coding agents** across 3 priority tiers:
|
|
132
|
+
|
|
71
133
|
| Priority | Providers |
|
|
72
134
|
|----------|-----------|
|
|
73
|
-
| High | Claude Code, Cursor, Windsurf |
|
|
74
|
-
| Medium | Codex, Gemini CLI, GitHub Copilot, OpenCode, Cline, Kimi, VS Code, Zed, Claude Desktop |
|
|
75
|
-
| Low | Roo, Continue, Goose, Antigravity, Kiro, Amp, Trae, Aide, Pear AI, Void AI, Cody, Kilo Code, Qwen Code, OpenHands, CodeBuddy, CodeStory |
|
|
135
|
+
| **High** | Claude Code, Cursor, Windsurf |
|
|
136
|
+
| **Medium** | Codex CLI, Gemini CLI, GitHub Copilot, OpenCode, Cline, Kimi, VS Code, Zed, Claude Desktop |
|
|
137
|
+
| **Low** | Roo, Continue, Goose, Antigravity, Kiro, Amp, Trae, Aide, Pear AI, Void AI, Cody, Kilo Code, Qwen Code, OpenHands, CodeBuddy, CodeStory, Aider, Amazon Q Developer, Tabnine, Augment, JetBrains AI, Devin, Replit Agent, Mentat, Sourcery, Blackbox AI, Double, Codegen, Sweep, Supermaven, Copilot CLI, SWE-Agent, Forge, Gemini Code Assist |
|
|
138
|
+
|
|
139
|
+
### Config Key Mapping
|
|
140
|
+
|
|
141
|
+
Each provider uses a different key name for MCP server configuration:
|
|
142
|
+
|
|
143
|
+
| Config Key | Providers |
|
|
144
|
+
|------------|-----------|
|
|
145
|
+
| `mcpServers` | Claude Code, Cursor, Windsurf, Gemini CLI, GitHub Copilot, Cline, Kimi, and 12 others |
|
|
146
|
+
| `mcp_servers` | Codex |
|
|
147
|
+
| `extensions` | Goose |
|
|
148
|
+
| `mcp` | OpenCode |
|
|
149
|
+
| `servers` | VS Code |
|
|
150
|
+
| `context_servers` | Zed |
|
|
151
|
+
|
|
152
|
+
### Instruction File Mapping
|
|
153
|
+
|
|
154
|
+
| File | Providers |
|
|
155
|
+
|------|-----------|
|
|
156
|
+
| `CLAUDE.md` | Claude Code, Claude Desktop |
|
|
157
|
+
| `GEMINI.md` | Gemini CLI |
|
|
158
|
+
| `AGENTS.md` | All other providers (Cursor, Windsurf, Codex, Kimi, etc.) |
|
|
159
|
+
|
|
160
|
+
## Architecture
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
┌─────────────────────────────────────────────────┐
|
|
164
|
+
│ CLI Layer │
|
|
165
|
+
│ providers │ skills │ mcp │ instructions │ config│
|
|
166
|
+
├─────────────────────────────────────────────────┤
|
|
167
|
+
│ Core Layer │
|
|
168
|
+
│ registry │ formats │ skills │ mcp │ │
|
|
169
|
+
│ marketplace │ sources │ instructions │
|
|
170
|
+
├─────────────────────────────────────────────────┤
|
|
171
|
+
│ Data Layer │
|
|
172
|
+
│ providers/registry.json │ lock files │ configs │
|
|
173
|
+
└─────────────────────────────────────────────────┘
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
- **Provider Registry**: Single `providers/registry.json` with all 28 provider definitions
|
|
177
|
+
- **Format Handlers**: JSON, JSONC (comment-preserving), YAML, TOML
|
|
178
|
+
- **Skills Model**: Canonical copy + symlinks (install once, link to all agents)
|
|
179
|
+
- **MCP Transforms**: Per-agent config shape transforms for Goose, Zed, OpenCode, Codex, Cursor
|
|
180
|
+
- **Lock File**: Tracks all installations at `~/.agents/.caamp-lock.json`
|
|
181
|
+
|
|
182
|
+
## Documentation
|
|
183
|
+
|
|
184
|
+
| Document | Description |
|
|
185
|
+
|----------|-------------|
|
|
186
|
+
| [API Reference](docs/API-REFERENCE.md) | Full library API (82 exports with signatures and examples) |
|
|
187
|
+
| [Generated API Docs](docs/api/) | Auto-generated from TSDoc (run `npm run docs:api`) |
|
|
188
|
+
| [Vision & Architecture](claudedocs/VISION.md) | Project vision, design philosophy, and architecture |
|
|
189
|
+
| [Product Requirements](claudedocs/PRD.md) | Full PRD with user stories and feature requirements |
|
|
190
|
+
| [Technical Specification](claudedocs/specs/CAAMP-SPEC.md) | RFC 2119 spec covering all subsystems |
|
|
191
|
+
| [Gap Analysis & Roadmap](claudedocs/GAP-ANALYSIS.md) | Current state vs plan, v0.2.0+ roadmap |
|
|
192
|
+
|
|
193
|
+
## Contributing
|
|
194
|
+
|
|
195
|
+
Provider definitions live in `providers/registry.json`. To add a new AI coding agent:
|
|
76
196
|
|
|
77
|
-
|
|
197
|
+
1. Add a provider entry to `providers/registry.json` with all required fields
|
|
198
|
+
2. Run `npm test` to validate the registry
|
|
199
|
+
3. Submit a PR
|
|
78
200
|
|
|
79
|
-
-
|
|
80
|
-
- `GEMINI.md` - Gemini CLI only
|
|
81
|
-
- `AGENTS.md` - All other providers (Cursor, Windsurf, Codex, Kimi, etc.)
|
|
201
|
+
See the [Technical Specification](claudedocs/specs/CAAMP-SPEC.md#3-provider-registry-specification) for the full provider schema.
|
|
82
202
|
|
|
83
203
|
## License
|
|
84
204
|
|