@cortexkit/anthropic-auth-core 2.13.1 → 2.14.0
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.
|
@@ -14,14 +14,14 @@ export interface SessionToolWait {
|
|
|
14
14
|
/** Epoch milliseconds when the oldest running plan tool started. */
|
|
15
15
|
since: number;
|
|
16
16
|
}
|
|
17
|
-
export declare const CACHE_WARM_STOP_REASONS: readonly ['cost-cap', 'count-cap', 'outside-hours', 'session-ended', 'unsupported'];
|
|
17
|
+
export declare const CACHE_WARM_STOP_REASONS: readonly ['cost-cap', 'count-cap', 'deadline-missed', 'outside-hours', 'session-ended', 'unsupported'];
|
|
18
18
|
/** Billing rejects unknown stop reasons; omit them rather than guessing. */
|
|
19
19
|
export declare function isCacheWarmStopReason(value: unknown): value is (typeof CACHE_WARM_STOP_REASONS)[number];
|
|
20
20
|
/**
|
|
21
21
|
* The stop reasons the llm-runner contract defines today; any other string is
|
|
22
22
|
* accepted too, for reasons that contract adds later.
|
|
23
23
|
*/
|
|
24
|
-
export type CacheWarmStopReason = 'cost-cap' | 'count-cap' | 'outside-hours' | 'session-ended' | 'unsupported' | (string & Record<never, never>);
|
|
24
|
+
export type CacheWarmStopReason = 'cost-cap' | 'count-cap' | 'deadline-missed' | 'outside-hours' | 'session-ended' | 'unsupported' | (string & Record<never, never>);
|
|
25
25
|
export interface CacheTouchInput {
|
|
26
26
|
/** Integer epoch milliseconds when the provider answered. */
|
|
27
27
|
at: number;
|
|
@@ -13,7 +13,9 @@ export declare function withSessionCacheReportHandoff<Args extends unknown[], T>
|
|
|
13
13
|
* routing report bridge, not auth, resends its newest failed touch.
|
|
14
14
|
*/
|
|
15
15
|
export declare function reportSessionCacheTouch(sessionId: string, input: CacheTouchInput): void;
|
|
16
|
-
/**
|
|
16
|
+
/** Only in-memory terminal removals report stops; startup drops and closed lifetimes are silent. */
|
|
17
|
+
export type SessionCacheWarmStopReason = CacheWarmStoppedInput['reason'];
|
|
18
|
+
export declare function isSessionCacheWarmStopReason(value: unknown): value is SessionCacheWarmStopReason;
|
|
17
19
|
export declare function reportSessionCacheWarmStopped(sessionId: string, input: CacheWarmStoppedInput): boolean;
|
|
18
20
|
/** Apply only a lifetime override; the host still chooses breakpoint placement. */
|
|
19
21
|
export declare function applySessionCacheTtl(body: Record<string, unknown>, ttl: SessionCacheTtl | undefined): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/anthropic-auth-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepublishOnly": "bun run build"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@cortexkit/common-auth": "0.
|
|
34
|
+
"@cortexkit/common-auth": "0.51.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@cortexkit/claustrum-client": "0.18.0",
|