caplets 0.17.9 → 0.18.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 +71 -19
- package/dist/index.js +12058 -2444
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="
|
|
2
|
+
<img src="docs/assets/caplets-icon.png" alt="Caplets logo" width="140" height="140" />
|
|
3
3
|
|
|
4
4
|
<h1>Caplets</h1>
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://www.npmjs.com/package/caplets"><img alt="npm" src="https://img.shields.io/npm/v/caplets?style=flat-square&color=E0582F" /></a>
|
|
13
13
|
<a href="https://github.com/spiritledsoftware/caplets/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/spiritledsoftware/caplets/ci.yml?branch=main&style=flat-square&label=ci&color=E0582F" /></a>
|
|
14
14
|
<a href="LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-F6E8C8?style=flat-square&labelColor=1F2018" /></a>
|
|
15
|
-
<img alt="Node
|
|
15
|
+
<img alt="Node 24+" src="https://img.shields.io/badge/node-%3E%3D24-F6E8C8?style=flat-square&labelColor=1F2018" />
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
<p>
|
|
@@ -47,7 +47,7 @@ In the deterministic benchmark, 106 flat tools became 3 top-level capabilities w
|
|
|
47
47
|
|
|
48
48
|
## Quick Start
|
|
49
49
|
|
|
50
|
-
Caplets requires Node.js
|
|
50
|
+
Caplets requires Node.js 24 or newer.
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
53
|
npm install -g caplets
|
|
@@ -134,33 +134,85 @@ Completions include command names, options, common enum values, configured Caple
|
|
|
134
134
|
|
|
135
135
|
Backends that require OAuth or token auth may need `caplets auth login <server>` before live downstream completions can return richer results. Completion never starts interactive login flows.
|
|
136
136
|
|
|
137
|
-
## Agent
|
|
137
|
+
## Agent Integrations
|
|
138
138
|
|
|
139
139
|
Use Caplets as a normal MCP server everywhere, or install a native agent integration when
|
|
140
140
|
your coding agent supports one.
|
|
141
141
|
|
|
142
|
-
| Agent | Install
|
|
143
|
-
| -------------- |
|
|
144
|
-
| Any MCP client | Add `caplets serve`
|
|
145
|
-
| Claude Code | `
|
|
146
|
-
| Codex | `
|
|
147
|
-
| OpenCode | Install [`@caplets/opencode`](packages/opencode/README.md)
|
|
148
|
-
| Pi | Install [`@caplets/pi`](packages/pi/README.md)
|
|
142
|
+
| Agent | Install | What It Provides |
|
|
143
|
+
| -------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
|
|
144
|
+
| Any MCP client | Add `caplets serve` or `caplets attach` manually in MCP config | Universal progressive-disclosure gateway |
|
|
145
|
+
| Claude Code | Add `caplets serve` or `caplets attach` manually in MCP config | Local or remote/Cloud progressive-disclosure gateway |
|
|
146
|
+
| Codex | Add `caplets serve` or `caplets attach` manually in MCP config | Local or remote/Cloud progressive-disclosure gateway |
|
|
147
|
+
| OpenCode | Install [`@caplets/opencode`](packages/opencode/README.md) | Native `caplets_<id>` tools and prompt guidance hooks |
|
|
148
|
+
| Pi | Install [`@caplets/pi`](packages/pi/README.md) | Native `caplets_<id>` tools with Pi prompt snippets/guidelines |
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
lives under `plugins/caplets/`, with agent-specific manifests in `.codex-plugin/` and
|
|
152
|
-
`.claude-plugin/`, a shared `skills/` directory, and shared `mcp.json` config. The
|
|
153
|
-
repo-level `.agents/plugins/marketplace.json` and `.claude-plugin/marketplace.json`
|
|
154
|
-
files only advertise that installable plugin root.
|
|
150
|
+
Manual local MCP config:
|
|
155
151
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"mcpServers": {
|
|
155
|
+
"caplets": {
|
|
156
|
+
"command": "caplets",
|
|
157
|
+
"args": ["serve"]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Manual remote or Cloud MCP config:
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"mcpServers": {
|
|
168
|
+
"caplets": {
|
|
169
|
+
"command": "caplets",
|
|
170
|
+
"args": ["attach"]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
For Caplets Cloud, authenticate once and set the remote selection environment for the agent:
|
|
177
|
+
|
|
178
|
+
```sh
|
|
179
|
+
caplets cloud auth login
|
|
180
|
+
export CAPLETS_MODE=cloud
|
|
181
|
+
export CAPLETS_REMOTE_URL=https://cloud.caplets.dev
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
For a self-hosted remote:
|
|
185
|
+
|
|
186
|
+
```sh
|
|
187
|
+
export CAPLETS_MODE=remote
|
|
188
|
+
export CAPLETS_REMOTE_URL=https://caplets.example.com/caplets
|
|
189
|
+
export CAPLETS_REMOTE_TOKEN=...
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Core Alchemy
|
|
193
|
+
|
|
194
|
+
Core Alchemy deploys the public landing page from `apps/landing`. It does not deploy the private Cloud Worker or Cloud dashboard; those belong to the nested Cloud repository.
|
|
159
195
|
|
|
160
196
|
### Remote Caplets service
|
|
161
197
|
|
|
162
198
|
OpenCode and Pi can use native `caplets_<id>` tools backed by a remote Caplets HTTP service. Codex, Claude Code, and any MCP client can connect to the same remote MCP endpoint directly.
|
|
163
199
|
|
|
200
|
+
Hosted Caplets Cloud uses browser-mediated Cloud Auth:
|
|
201
|
+
|
|
202
|
+
```sh
|
|
203
|
+
caplets cloud auth login --workspace personal
|
|
204
|
+
caplets cloud auth status
|
|
205
|
+
caplets cloud auth workspaces
|
|
206
|
+
caplets cloud auth switch team
|
|
207
|
+
caplets cloud auth logout
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Cloud Auth stores one Selected Workspace locally. `caplets attach --workspace <workspace>` must match that saved workspace; switch explicitly before attaching another hosted workspace. Self-hosted remotes continue to use `CAPLETS_REMOTE_URL`, `CAPLETS_REMOTE_TOKEN`, or Basic Auth credentials.
|
|
211
|
+
|
|
212
|
+
Access tokens are short-lived. The CLI refreshes expired hosted credentials before attach, persists the rotated refresh token returned by Cloud, and treats revoked refresh credentials as a fresh-login requirement. `caplets cloud auth logout` clears local credentials; Cloud logout revokes the refresh credential family so rotated refresh tokens stop working together.
|
|
213
|
+
|
|
214
|
+
Use `caplets attach --once` for a finite Project Binding smoke test, or `caplets attach` to run a remote-backed MCP server over stdio or HTTP with Project Binding and local overlay.
|
|
215
|
+
|
|
164
216
|
Start a local HTTP service. `--path` is the service base path; Caplets mounts MCP,
|
|
165
217
|
control, and health endpoints underneath it:
|
|
166
218
|
|