@livx.cc/agentx 0.99.73 → 0.99.75
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-CSFGRC-I.d.ts → Agent-BBlKI8uD.d.ts} +8 -1
- package/dist/cli.d.ts +7 -2
- package/dist/cli.js +168 -296
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +44 -173
- package/dist/index.js.map +1 -1
- package/dist/{mcp-8_lBApgs.d.ts → mcp-BhTxN2I7.d.ts} +1 -1
- package/dist/mcp.client.d.ts +2 -2
- package/dist/{tools-wVQBhYwm.d.ts → tools-lC3jn60o.d.ts} +2 -2
- package/dist/tools.shell.d.ts +1 -1
- package/dist/tools.shell.js +2 -7
- package/dist/tools.shell.js.map +1 -1
- package/package.json +3 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IFilesystem } from '@livx.cc/wcli/core';
|
|
2
|
-
import { M as Message, o as MessageContent, H as HostBridge, A as AgentTool, C as ChatLike, k as JobRegistry, U as UserQuestion } from './tools-
|
|
2
|
+
import { M as Message, o as MessageContent, H as HostBridge, A as AgentTool, C as ChatLike, k as JobRegistry, U as UserQuestion } from './tools-lC3jn60o.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `--model auto`: per-turn model routing. A classifier (Jev by default — injected, so a regex or
|
|
@@ -308,6 +308,13 @@ interface RunResult {
|
|
|
308
308
|
cacheCreationTokens?: number;
|
|
309
309
|
cacheReadTokens?: number;
|
|
310
310
|
};
|
|
311
|
+
/** Present iff `finishReason === 'budget'`: the weighted spend vs `maxTokens`, and the last step's prompt
|
|
312
|
+
* size — a prompt near the limit means the CONVERSATION is too big for one run (compact / new chat). */
|
|
313
|
+
budget?: {
|
|
314
|
+
spent: number;
|
|
315
|
+
limit: number;
|
|
316
|
+
stepPrompt: number;
|
|
317
|
+
};
|
|
311
318
|
/** True if ANY turn's usage was estimated (provider gave none) rather than exact — lets the UI mark cost `~`. */
|
|
312
319
|
usageEstimated?: boolean;
|
|
313
320
|
/** Set by a router (`--model auto`) whose turn spans several models: the turn's USD at each model's own rate. */
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { m as RouterState, H as Hooks, n as RunResult, R as ReasoningEffort, A as Agent } from './Agent-
|
|
2
|
+
import { m as RouterState, H as Hooks, n as RunResult, R as ReasoningEffort, A as Agent } from './Agent-BBlKI8uD.js';
|
|
3
3
|
import { IFilesystem } from '@livx.cc/wcli/core';
|
|
4
|
-
import { M as Message, U as UserQuestion, H as HostBridge, c as ContentPart, o as MessageContent } from './tools-
|
|
4
|
+
import { M as Message, U as UserQuestion, H as HostBridge, c as ContentPart, o as MessageContent } from './tools-lC3jn60o.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* On-disk session store for the CLI: each conversation is one JSON file at
|
|
@@ -297,6 +297,11 @@ declare function jsonResult(res: RunResult, session: SessionData): {
|
|
|
297
297
|
sessionId: string;
|
|
298
298
|
costUsd?: number | undefined;
|
|
299
299
|
routing?: Record<string, unknown> | undefined;
|
|
300
|
+
budget?: {
|
|
301
|
+
spent: number;
|
|
302
|
+
limit: number;
|
|
303
|
+
stepPrompt: number;
|
|
304
|
+
} | undefined;
|
|
300
305
|
text: string;
|
|
301
306
|
steps: number;
|
|
302
307
|
tools: number;
|