@margay/ccl-core 1.3.5-rc.7 → 1.3.6-alpha.1
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 +28 -7
- package/dist/cli.js +2207 -735
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -63,12 +63,18 @@ configuration.
|
|
|
63
63
|
| Claude OAuth | Claude subscription sessions | Run `ccl` and follow the login prompt, or use `/login` |
|
|
64
64
|
| Anthropic API key | Direct Anthropic API use | Set `ANTHROPIC_API_KEY=<key>` or pass `--api-key <key>` |
|
|
65
65
|
|
|
66
|
-
Gateway configuration is saved to `~/.ccl/gateway.json
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
Gateway configuration is saved to `~/.ccl/gateway.json`. CCL records the
|
|
67
|
+
credential type and binds it to the normalized Gateway URL. `/gateway register`
|
|
68
|
+
accepts only the returned Gateway JWT and verifies it with the same Gateway's
|
|
69
|
+
`/auth/me`; `/gateway login` verifies a Gateway-owned credential before saving
|
|
70
|
+
it. Do not paste an upstream model-provider API key into either command or into
|
|
71
|
+
`CCL_GATEWAY_KEY`.
|
|
72
|
+
|
|
73
|
+
If a parent terminal explicitly exports a Gateway configuration, use all four
|
|
74
|
+
variables as one atomic set: `CCL_GATEWAY_URL`, `CCL_GATEWAY_KEY`,
|
|
75
|
+
`CCL_GATEWAY_CREDENTIAL_TYPE`, and `CCL_GATEWAY_ISSUER`. Prefer the slash
|
|
76
|
+
commands so CCL creates this metadata safely. `/gateway doctor` reports and
|
|
77
|
+
quarantines untyped opaque or issuer-mismatched credentials before any request.
|
|
72
78
|
|
|
73
79
|
## Gateway Commands
|
|
74
80
|
|
|
@@ -178,6 +184,20 @@ ccl -p "summarize this diff" --model sonnet
|
|
|
178
184
|
ccl -p "generate a migration plan" --model deepseek-v4-pro --effort high
|
|
179
185
|
```
|
|
180
186
|
|
|
187
|
+
Capability pools use explicit `cost-first ranking` and `quality-first ranking`
|
|
188
|
+
policies. For `visual-ui-analysis`, the current cost-first ranking is Qwen 3.8
|
|
189
|
+
Flash → DeepSeek V4 Flash Vision Exp → Grok 4.5; the quality-first ranking is
|
|
190
|
+
Qwen 3.8 Flash → Grok 4.5 → K3 / Moonshot Platform. DeepSeek Vision remains
|
|
191
|
+
experimental. The hidden K3 visual route is reported as canonical model
|
|
192
|
+
`kimi-platform/kimi-k3`.
|
|
193
|
+
|
|
194
|
+
Anthropic Messages remains the transport for the main Agent, planning, editing,
|
|
195
|
+
tool calling, Advisor, Critic, and general subagent loops. Native OpenAI Chat
|
|
196
|
+
Completions support is deliberately bounded to zero-tool, one-shot visual
|
|
197
|
+
analysis and context compaction. These consumers select and pin one configured
|
|
198
|
+
model before the request; they do not convert protocols, vote on normal results,
|
|
199
|
+
or automatically escalate to another model after a completed answer.
|
|
200
|
+
|
|
181
201
|
## Workflows
|
|
182
202
|
|
|
183
203
|
The `workflow` command and `/workflows` slash command run multi-step task
|
|
@@ -232,7 +252,8 @@ SDK references:
|
|
|
232
252
|
|
|
233
253
|
| Variable | Purpose |
|
|
234
254
|
|---|---|
|
|
235
|
-
| `CCL_GATEWAY_URL`, `CCL_GATEWAY_KEY` | Margay gateway URL and
|
|
255
|
+
| `CCL_GATEWAY_URL`, `CCL_GATEWAY_KEY` | Margay gateway URL and credential; prefer `/gateway login` over manual export |
|
|
256
|
+
| `CCL_GATEWAY_CREDENTIAL_TYPE`, `CCL_GATEWAY_ISSUER` | Credential admission metadata; required as an atomic pair for opaque environment credentials |
|
|
236
257
|
| `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL` | Direct Anthropic API-key channel |
|
|
237
258
|
| `CCL_MODEL` | Default model |
|
|
238
259
|
| `CCL_ROUTING_PRIORITY` | Default routing preference, usually `cost` or `quality` |
|