@askalf/dario 4.8.92 → 4.8.93

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "_version": "2.1.186",
3
- "_captured": "2026-06-23T05:37:45.965Z",
2
+ "_version": "2.1.187",
3
+ "_captured": "2026-06-24T06:27:30.671Z",
4
4
  "_source": "bundled",
5
5
  "_schemaVersion": 3,
6
6
  "agent_identity": "You are a Claude agent, built on Anthropic's Claude Agent SDK.",
@@ -1269,16 +1269,13 @@
1269
1269
  ],
1270
1270
  "tool_names": [
1271
1271
  "Agent",
1272
- "AskUserQuestion",
1273
1272
  "Bash",
1274
1273
  "CronCreate",
1275
1274
  "CronDelete",
1276
1275
  "CronList",
1277
1276
  "DesignSync",
1278
1277
  "Edit",
1279
- "EnterPlanMode",
1280
1278
  "EnterWorktree",
1281
- "ExitPlanMode",
1282
1279
  "ExitWorktree",
1283
1280
  "Monitor",
1284
1281
  "NotebookEdit",
@@ -1324,7 +1321,7 @@
1324
1321
  "anthropic_beta": "claude-code-20250219,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,advisor-tool-2026-03-01,effort-2025-11-24",
1325
1322
  "header_values": {
1326
1323
  "accept": "application/json",
1327
- "user-agent": "claude-cli/2.1.186 (external, sdk-cli)",
1324
+ "user-agent": "claude-cli/2.1.187 (external, sdk-cli)",
1328
1325
  "x-stainless-arch": "x64",
1329
1326
  "x-stainless-lang": "js",
1330
1327
  "x-stainless-os": "Linux",
@@ -1349,5 +1346,5 @@
1349
1346
  "output_config",
1350
1347
  "stream"
1351
1348
  ],
1352
- "_supportedMaxTested": "2.1.186"
1349
+ "_supportedMaxTested": "2.1.187"
1353
1350
  }
@@ -33,6 +33,23 @@ export declare const PLATFORM_ONLY_TOOLS: Record<string, Set<string>>;
33
33
  export declare function filterToolsForPlatform<T extends {
34
34
  name: string;
35
35
  }>(tools: T[], platform: string): T[];
36
+ /**
37
+ * Tools CC only advertises in an INTERACTIVE session. The bake captures CC
38
+ * headlessly (`claude --print -p hi`, see live-fingerprint.ts), and CC v2.1.187
39
+ * dropped these plan-mode / clarification tools in `--print` mode — so a fresh
40
+ * headless capture no longer carries them even though every real interactive CC
41
+ * client still advertises them. Like PLATFORM_ONLY_TOOLS, the bundled template
42
+ * must stay a SUPERSET: register them here so a headless auto-rebake preserves
43
+ * them from the previous bundle instead of dropping them. Dropping them broke
44
+ * buildCCRequest's advertise-respects-client contract (the v4.8.93 regression):
45
+ * dario advertises only the intersection of the client's declared tools and this
46
+ * template, so a missing AskUserQuestion meant dario could not advertise it even
47
+ * when a full CC client declared it. Unlike PLATFORM_ONLY_TOOLS these are NOT
48
+ * platform-filtered — they stay in CC_TOOL_DEFINITIONS on every host so a client
49
+ * that declares them is always honored. Add new interactive-only tools here as
50
+ * CC adds them.
51
+ */
52
+ export declare const INTERACTIVE_ONLY_TOOLS: Set<string>;
36
53
  /** CC's exact tool definitions for the current platform — filtered from the bundled union. */
37
54
  export declare const CC_TOOL_DEFINITIONS: {
38
55
  name: string;
@@ -43,6 +43,27 @@ export function filterToolsForPlatform(tools, platform) {
43
43
  return true;
44
44
  });
45
45
  }
46
+ /**
47
+ * Tools CC only advertises in an INTERACTIVE session. The bake captures CC
48
+ * headlessly (`claude --print -p hi`, see live-fingerprint.ts), and CC v2.1.187
49
+ * dropped these plan-mode / clarification tools in `--print` mode — so a fresh
50
+ * headless capture no longer carries them even though every real interactive CC
51
+ * client still advertises them. Like PLATFORM_ONLY_TOOLS, the bundled template
52
+ * must stay a SUPERSET: register them here so a headless auto-rebake preserves
53
+ * them from the previous bundle instead of dropping them. Dropping them broke
54
+ * buildCCRequest's advertise-respects-client contract (the v4.8.93 regression):
55
+ * dario advertises only the intersection of the client's declared tools and this
56
+ * template, so a missing AskUserQuestion meant dario could not advertise it even
57
+ * when a full CC client declared it. Unlike PLATFORM_ONLY_TOOLS these are NOT
58
+ * platform-filtered — they stay in CC_TOOL_DEFINITIONS on every host so a client
59
+ * that declares them is always honored. Add new interactive-only tools here as
60
+ * CC adds them.
61
+ */
62
+ export const INTERACTIVE_ONLY_TOOLS = new Set([
63
+ 'AskUserQuestion',
64
+ 'EnterPlanMode',
65
+ 'ExitPlanMode',
66
+ ]);
46
67
  /** CC's exact tool definitions for the current platform — filtered from the bundled union. */
47
68
  export const CC_TOOL_DEFINITIONS = filterToolsForPlatform(TEMPLATE.tools, process.platform);
48
69
  /** CC's own tool names, EXACT case ("Read", "Bash", "Agent", …). A CC client's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "4.8.92",
3
+ "version": "4.8.93",
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": {