@askalf/dario 4.8.129 → 4.8.130

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.
@@ -362,11 +362,12 @@ export declare function parseEffortSuffix(model: string): {
362
362
  * defaulted to `high`; dario special-cased it. A fresh live replay on 2026-07-01
363
363
  * through the deployed proxy (CC 2.1.198's verbatim fable body, only
364
364
  * output_config.effort mutated) shows the redeployed fable now ANSWERS all three
365
- * — high/xhigh/max → end_turn, zero refusals and CC 2.1.198 itself sends
366
- * `effort: xhigh` on fable (same as opus). So the clamp + the fable-only default
367
- * are gone: fable now takes the general path (default 'max', no clamp), matching
368
- * how dario treats opus. `model` is retained in the signature for callers and in
369
- * case a future model needs per-family effort handling again.
365
+ * — high/xhigh/max → end_turn, zero refusals. So the clamp + the fable-only
366
+ * default are gone: fable now takes the general path (no clamp), matching how
367
+ * dario treats opus. The general default is `high` (see resolveEffort below)
368
+ * a clean-room 2.1.199 capture shows CC sends `high` on every family; earlier
369
+ * `xhigh` sightings were from configured captures. `model` is retained in the
370
+ * signature in case a future model needs per-family effort handling again.
370
371
  *
371
372
  * Exported for tests.
372
373
  */
@@ -1111,17 +1111,28 @@ function normalizeEffortForWire(effort) {
1111
1111
  * defaulted to `high`; dario special-cased it. A fresh live replay on 2026-07-01
1112
1112
  * through the deployed proxy (CC 2.1.198's verbatim fable body, only
1113
1113
  * output_config.effort mutated) shows the redeployed fable now ANSWERS all three
1114
- * — high/xhigh/max → end_turn, zero refusals and CC 2.1.198 itself sends
1115
- * `effort: xhigh` on fable (same as opus). So the clamp + the fable-only default
1116
- * are gone: fable now takes the general path (default 'max', no clamp), matching
1117
- * how dario treats opus. `model` is retained in the signature for callers and in
1118
- * case a future model needs per-family effort handling again.
1114
+ * — high/xhigh/max → end_turn, zero refusals. So the clamp + the fable-only
1115
+ * default are gone: fable now takes the general path (no clamp), matching how
1116
+ * dario treats opus. The general default is `high` (see resolveEffort below)
1117
+ * a clean-room 2.1.199 capture shows CC sends `high` on every family; earlier
1118
+ * `xhigh` sightings were from configured captures. `model` is retained in the
1119
+ * signature in case a future model needs per-family effort handling again.
1119
1120
  *
1120
1121
  * Exported for tests.
1121
1122
  */
1122
1123
  export function resolveEffort(flag, clientBody, model) {
1123
1124
  void model; // no per-family effort handling at present (see FABLE CLAMP note above)
1124
- const familyDefault = 'max';
1125
+ // Match real CC's wire value. A clean-room capture (fresh HOME, no config) of
1126
+ // CC 2.1.199 sends `effort: high` on every adaptive-thinking model (opus-4-8,
1127
+ // sonnet-5, fable-5, opus-4-6, sonnet-4-6 — verified 2026-07-03). The prior
1128
+ // default `'max'` was the reasoning ceiling and diverged from CC on two
1129
+ // counts: it's not what CC sends, and `max` effort + unbounded adaptive
1130
+ // thinking makes the model reason until it exhausts `max_tokens` — on prompts
1131
+ // over ~5K input tokens the thinking phase consumes the entire budget, so the
1132
+ // stream ends `stop_reason: max_tokens` with ZERO text blocks (dario#658). CC
1133
+ // at `high` thinks proportionally and leaves room for text. Operators who
1134
+ // want a higher tier still pin it via `--effort` / DARIO_EFFORT.
1135
+ const familyDefault = 'high';
1125
1136
  if (flag === undefined)
1126
1137
  return familyDefault;
1127
1138
  if (flag === 'client') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "4.8.129",
3
+ "version": "4.8.130",
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": {