🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@askalf/dario

Package Overview
Dependencies
Maintainers
1
Versions
371
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
5.1.1
to
5.2.0
+22
-0
dist/cc-template.d.ts

@@ -459,2 +459,24 @@ /**

/**
* The cache control the CLIENT asked for, read from its own stamps — or
* CC_CACHE_CONTROL when it stamped nothing.
*
* Real CC implements the subscription-vs-overage TTL selection itself:
* on included subscription usage it sends `ttl:'1h'` on every breakpoint
* plus `extended-cache-ttl-2025-04-11` in `anthropic-beta`, and drops to
* bare 5m stamps when drawing on usage credits (loopback capture of CC
* v2.1.209 under subscription OAuth, 2026-07-14 — dario#678; docs:
* code.claude.com/docs/en/prompt-caching#cache-lifetime). The client's
* stamps are therefore the billing-correct answer, and dario mirrors them
* instead of overwriting with the 5m default — deleting them forced every
* proxied subscription session onto a 5m cache, so any >5-minute pause
* re-paid cache creation on the full prefix.
*
* The ttl is mirrored only when the client's `anthropic-beta` also carries
* `extended-cache-ttl-` (CC always sends the pair together); a ttl stamp
* without the enabling beta is not a shape real CC produces, and forwarding
* half of it risks an upstream 400. DARIO_CACHE_TTL_5M=1 restores the
* pre-fix behavior (always bare 5m) as the operator escape hatch.
*/
export declare function effectiveCacheControl(clientBody: Record<string, unknown>, clientBeta?: string): CacheControl;
/**
* Place CC-style prompt-cache breakpoints on the conversation. The system

@@ -461,0 +483,0 @@ * prompt is already cached at build time (2 system breakpoints); this adds a

+1
-1
{
"name": "@askalf/dario",
"version": "5.1.1",
"version": "5.2.0",
"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

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

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