🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@askalf/dario

Package Overview
Dependencies
Maintainers
1
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@askalf/dario - npm Package Compare versions

Comparing version
4.8.79
to
4.8.80
+29
-0
dist/proxy.d.ts

@@ -102,2 +102,17 @@ import { type IncomingMessage } from 'node:http';

/**
* Detect upstream's HARD effort rejection — a model with NO output_config.effort
* support at all (it predates the parameter), distinct from the SOFT level
* rejection parsed by parseEffortRejection:
*
* 400 {"type":"invalid_request_error","message":"This model does not
* support the effort parameter."}
*
* Observed live 2026-06-16 on claude-opus-4-1-20250805 and
* claude-sonnet-4-5-20250929 — the autodetected catalog exposes pre-effort
* models, and the box's DARIO_EFFORT=max pin hard-400s them. There is no
* supported tier to clamp to here, so effort must be STRIPPED — modelled as
* an EMPTY supported set in effortSupportByModel. Exported for tests.
*/
export declare function isEffortParamUnsupported(body: string): boolean;
/**
* Pick the strongest effort level a model says it supports. Preference is

@@ -110,2 +125,16 @@ * descending capability — the caller asked for more than the model can do,

/**
* Parse upstream's max_tokens-cap rejection:
*
* 400 {"type":"invalid_request_error","message":"max_tokens: 64000 > 32000,
* which is the maximum allowed number of output tokens for
* claude-opus-4-1-20250805."}
*
* Observed live 2026-06-16 — dario pins DEFAULT_MAX_TOKENS (64000, CC 2.1.143's
* wire default), but the autodetected catalog exposes older models with a lower
* per-model output cap (e.g. opus-4-1: 32000). Returns the model's cap (the
* clamp target) or null for any other 400. Same learn-once-and-cache shape as
* parseEffortRejection. Exported for tests.
*/
export declare function parseMaxTokensRejection(body: string): number | null;
/**
* Resolve an inbound API path to its upstream target + forwarding mode.

@@ -112,0 +141,0 @@ * Allowlist semantics — anything unlisted is 403'd (prevents SSRF through

+1
-1
{
"name": "@askalf/dario",
"version": "4.8.79",
"version": "4.8.80",
"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,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is too big to display