@blockrun/clawrouter 0.12.281 → 0.12.283
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/README.md +20 -20
- package/dist/cli.js +515 -150
- package/dist/index.d.ts +14 -0
- package/dist/index.js +480 -115
- package/docs/9-free-ai-models-zero-cost-blockrun.md +5 -5
- package/docs/anthropic-cost-savings.md +1 -1
- package/docs/anthropic-third-party-harness-changes.md +3 -3
- package/docs/clawrouter-vs-openrouter-llm-routing-comparison.md +3 -3
- package/docs/configuration.md +6 -0
- package/package.json +2 -2
- package/skills/clawrouter/SKILL.md +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -966,6 +966,7 @@ declare const DEFAULT_SESSION_CONFIG: SessionConfig;
|
|
|
966
966
|
*/
|
|
967
967
|
declare class SessionStore {
|
|
968
968
|
private sessions;
|
|
969
|
+
private sessionHolds;
|
|
969
970
|
private config;
|
|
970
971
|
private cleanupInterval;
|
|
971
972
|
constructor(config?: Partial<SessionConfig>);
|
|
@@ -1036,6 +1037,19 @@ declare class SessionStore {
|
|
|
1036
1037
|
* Get the total accumulated cost for a session in USD.
|
|
1037
1038
|
*/
|
|
1038
1039
|
getSessionCostUsd(sessionId: string): number;
|
|
1040
|
+
/**
|
|
1041
|
+
* Get the total accumulated cost for a session in USDC micros.
|
|
1042
|
+
*/
|
|
1043
|
+
getSessionCostMicros(sessionId: string): bigint;
|
|
1044
|
+
/**
|
|
1045
|
+
* Budget held by a session's in-flight requests (USDC micros) — admitted
|
|
1046
|
+
* against the strict cap but not yet spent. See session-spend.ts.
|
|
1047
|
+
*/
|
|
1048
|
+
getSessionHoldMicros(sessionId: string): bigint;
|
|
1049
|
+
/**
|
|
1050
|
+
* Grow (positive) or release (negative) a session's in-flight hold.
|
|
1051
|
+
*/
|
|
1052
|
+
adjustSessionHold(sessionId: string, deltaMicros: bigint): void;
|
|
1039
1053
|
/**
|
|
1040
1054
|
* Stop the cleanup interval.
|
|
1041
1055
|
*/
|