@askalf/dario 3.37.0 → 3.37.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.
@@ -248,14 +248,14 @@ export declare const DEFAULT_MAX_TOKENS = 32000;
248
248
  * Sonnet; pinning to 32k silently truncated its output capacity).
249
249
  */
250
250
  export declare function resolveMaxTokens(flag: number | 'client' | undefined, clientBody: Record<string, unknown>): number;
251
- /** Valid values for the `--effort` flag. `'client'` passes through the client's own `output_config.effort` (falling back to `'high'` if the client didn't send one). dario#87. */
252
- export type EffortValue = 'low' | 'medium' | 'high' | 'xhigh' | 'client';
251
+ /** Valid values for the `--effort` flag. Mirrors CC's `--effort` set as of v2.1.126 (`low|medium|high|xhigh|max`) plus dario's pseudo-value `'client'` for passthrough. `'client'` passes through the client's own `output_config.effort` (falling back to `'high'` if the client didn't send one). dario#87, `'max'` added in dario#190. */
252
+ export type EffortValue = 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'client';
253
253
  export declare const VALID_EFFORT_VALUES: ReadonlyArray<EffortValue>;
254
254
  /**
255
255
  * Resolve the outbound `output_config.effort` value.
256
256
  *
257
257
  * undefined / 'high' → 'high' (current default, matches CC 2.1.116 wire value)
258
- * 'low' / 'medium' / 'xhigh' → pin to that value
258
+ * 'low' / 'medium' / 'xhigh' / 'max' → pin to that value
259
259
  * 'client' → extract from `clientBody.output_config.effort`; fall back
260
260
  * to 'high' if the client didn't send one or sent a non-string
261
261
  *
@@ -884,12 +884,12 @@ export function resolveMaxTokens(flag, clientBody) {
884
884
  }
885
885
  return flag;
886
886
  }
887
- export const VALID_EFFORT_VALUES = ['low', 'medium', 'high', 'xhigh', 'client'];
887
+ export const VALID_EFFORT_VALUES = ['low', 'medium', 'high', 'xhigh', 'max', 'client'];
888
888
  /**
889
889
  * Resolve the outbound `output_config.effort` value.
890
890
  *
891
891
  * undefined / 'high' → 'high' (current default, matches CC 2.1.116 wire value)
892
- * 'low' / 'medium' / 'xhigh' → pin to that value
892
+ * 'low' / 'medium' / 'xhigh' / 'max' → pin to that value
893
893
  * 'client' → extract from `clientBody.output_config.effort`; fall back
894
894
  * to 'high' if the client didn't send one or sent a non-string
895
895
  *
package/dist/cli.js CHANGED
@@ -957,12 +957,15 @@ async function help() {
957
957
  dario returns 504 "queue-timeout"
958
958
  (default: 60000).
959
959
  Env: DARIO_QUEUE_TIMEOUT_MS. (dario#80)
960
- --effort=<low|medium|high|xhigh|client>
960
+ --effort=<low|medium|high|xhigh|max|client>
961
961
  Override the outbound output_config.effort
962
962
  on non-haiku requests. Default (unset)
963
963
  pins 'high' — matches CC 2.1.116's wire
964
- value. 'client' passes through what the
965
- client sent (falls back to 'high' if none).
964
+ value. 'max' is CC's highest reasoning
965
+ budget (added in CC v2.1.x; verified in
966
+ v2.1.126). 'client' passes through what
967
+ the client sent (falls back to 'high' if
968
+ none).
966
969
  WARNING: non-'high' values may cause
967
970
  Anthropic's classifier to flip requests
968
971
  to 'overage' billing; watch -v logs for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "3.37.0",
3
+ "version": "3.37.1",
4
4
  "description": "A local LLM router. One endpoint, every provider — Claude subscriptions, OpenAI, OpenRouter, Groq, local LiteLLM, any OpenAI-compat endpoint — your tools don't need to change.",
5
5
  "type": "module",
6
6
  "bin": {