agent-afk 5.321.0 → 5.321.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.
- package/dist/agent/trace/cost.d.ts +3 -1
- package/dist/cli/commands/doctor-slot-endpoints.d.ts +0 -1
- package/dist/cli.mjs +384 -384
- package/dist/index.mjs +190 -190
- package/dist/telegram.mjs +202 -202
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SessionCostSource = 'closures+seal' | 'closures' | 'seal' | 'none';
|
|
1
|
+
export type SessionCostSource = 'closures+seal' | 'closures' | 'closures-incomplete' | 'seal' | 'none';
|
|
2
2
|
export interface CostTokens {
|
|
3
3
|
input?: number;
|
|
4
4
|
output?: number;
|
|
@@ -24,7 +24,9 @@ export declare class SessionCostAccumulator {
|
|
|
24
24
|
private readonly tokens;
|
|
25
25
|
private sealRoot;
|
|
26
26
|
private sealSubagent;
|
|
27
|
+
private sealIncomplete;
|
|
27
28
|
add(event: CostEventLike): void;
|
|
28
29
|
result(): SessionCostBreakdown;
|
|
30
|
+
private tokenTotals;
|
|
29
31
|
}
|
|
30
32
|
export declare function computeSessionCost(events: Iterable<CostEventLike>): SessionCostBreakdown;
|
|
@@ -5,7 +5,6 @@ export interface SlotEndpointDeps {
|
|
|
5
5
|
bindings?: ModelSlots;
|
|
6
6
|
timeoutMs?: number;
|
|
7
7
|
fetchImpl?: typeof fetch;
|
|
8
|
-
isAnthropicRouted?: (slot: SlotName, bindings: ModelSlots) => Promise<boolean>;
|
|
9
8
|
routeOf?: (slot: SlotName, bindings: ModelSlots) => Promise<string>;
|
|
10
9
|
}
|
|
11
10
|
export declare function sanitizeUrl(raw: string): string;
|