skalpel 1.2.0 → 2.0.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 +6 -14
- package/dist/cli/index.js +339 -217
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/proxy-runner.js +22 -12
- package/dist/cli/proxy-runner.js.map +1 -1
- package/dist/index.cjs +22 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -12
- package/dist/index.js.map +1 -1
- package/dist/proxy/index.cjs +22 -12
- package/dist/proxy/index.cjs.map +1 -1
- package/dist/proxy/index.d.cts +1 -0
- package/dist/proxy/index.d.ts +1 -0
- package/dist/proxy/index.js +22 -12
- package/dist/proxy/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,10 +27,10 @@ npx skalpel --api-key sk-skalpel-YOUR_KEY --auto
|
|
|
27
27
|
|
|
28
28
|
This will:
|
|
29
29
|
- Start the local proxy on ports 18100 (Anthropic) and 18101 (OpenAI)
|
|
30
|
-
- Detect
|
|
31
|
-
- Configure
|
|
30
|
+
- Detect coding agents on your machine
|
|
31
|
+
- Configure Claude Code and Codex agents automatically
|
|
32
32
|
- Set shell environment variables in your `.bashrc`/`.zshrc`
|
|
33
|
-
- Begin optimizing
|
|
33
|
+
- Begin optimizing API traffic immediately
|
|
34
34
|
|
|
35
35
|
### Interactive Setup
|
|
36
36
|
|
|
@@ -57,17 +57,9 @@ npx skalpel doctor
|
|
|
57
57
|
|
|
58
58
|
## What Gets Configured
|
|
59
59
|
|
|
60
|
-
### Claude Code
|
|
60
|
+
### Claude Code
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
```json
|
|
65
|
-
{
|
|
66
|
-
"env": {
|
|
67
|
-
"ANTHROPIC_BASE_URL": "http://localhost:18100"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
```
|
|
62
|
+
Claude Code is auto-configured during setup. `ANTHROPIC_BASE_URL` is set in `~/.claude/settings.json` to route API calls through the proxy. Only API endpoints (`/v1/messages`, `/v1/complete`) are routed through Skalpel for optimization; auth endpoints pass directly to Anthropic.
|
|
71
63
|
|
|
72
64
|
### Shell Environment (`~/.bashrc`, `~/.zshrc`)
|
|
73
65
|
|
|
@@ -193,4 +185,4 @@ interface SkalpelClientOptions {
|
|
|
193
185
|
npx skalpel uninstall
|
|
194
186
|
```
|
|
195
187
|
|
|
196
|
-
This removes the proxy
|
|
188
|
+
This removes the proxy and cleans up shell environment variables. If a previous version of Skalpel modified `~/.claude/settings.json`, uninstall will also clean up those changes.
|