@askalf/dario 4.8.149 → 4.8.150
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/dist/cc-template.js +17 -5
- package/package.json +1 -1
package/dist/cc-template.js
CHANGED
|
@@ -1353,14 +1353,26 @@ export function dedupeToolsByName(tools) {
|
|
|
1353
1353
|
* same anti-replay posture as the main-loop marker: none of them appear at
|
|
1354
1354
|
* system[1] in any known non-CC framework's wire shape.
|
|
1355
1355
|
*
|
|
1356
|
-
*
|
|
1357
|
-
*
|
|
1358
|
-
*
|
|
1359
|
-
*
|
|
1356
|
+
* The built-in named agents (Explore, Plan) carry their own specialist
|
|
1357
|
+
* prompts — neither opens with the main-loop or general-purpose markers, so
|
|
1358
|
+
* they missed the v4.8.148 detector and stayed on the template path. That
|
|
1359
|
+
* was the #678 reporter's residual: on v4.8.148, forced parallel sub-agents
|
|
1360
|
+
* (a "read every file" prompt CC routes to Explore-type agents) still burned
|
|
1361
|
+
* ~3x the direct per-spawn cost. Openers are the exact bytes from the CC
|
|
1362
|
+
* v2.1.205 bundle; the drift-watch pipeline is the guard when they move.
|
|
1363
|
+
*
|
|
1364
|
+
* Known gap: CUSTOM agents (~/.claude/agents) put operator-authored
|
|
1365
|
+
* definition text at system[1] with no stable CC marker — those still ride
|
|
1366
|
+
* the template path. There is no universal appended sentinel to key on (the
|
|
1367
|
+
* report-instruction sentence is baked into the general-purpose prompt only),
|
|
1368
|
+
* so a durable structural discriminator (e.g. billing block + claude-cli
|
|
1369
|
+
* user-agent) is a design decision for a follow-up.
|
|
1360
1370
|
*/
|
|
1361
1371
|
const CC_ORIGIN_SYSTEM_OPENERS = [
|
|
1362
1372
|
'You are Claude Code', // main loop, cli entrypoint
|
|
1363
|
-
'You are an agent for Claude Code', // sub-
|
|
1373
|
+
'You are an agent for Claude Code', // general-purpose sub-agent (Task/Agent tool)
|
|
1374
|
+
'You are a file search specialist for Claude Code', // built-in Explore agent (exact bytes, CC v2.1.205 bundle)
|
|
1375
|
+
'You are a software architect and planning specialist for Claude Code', // built-in Plan agent (exact bytes, CC v2.1.205 bundle)
|
|
1364
1376
|
'You are a security monitor for autonomous AI coding agents', // auto-mode permission classifier
|
|
1365
1377
|
];
|
|
1366
1378
|
export function isGenuineCCClient(clientBody) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askalf/dario",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.150",
|
|
4
4
|
"description": "Use your Claude Pro/Max subscription in any tool — Cursor, Cline, Aider, the Agent SDK, your scripts — at subscription pricing, not per-token API bills. One local Anthropic + OpenAI-compatible endpoint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|