@livx.cc/agentx 0.99.72 → 0.99.73
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-CuXPAfSY.d.ts → Agent-CSFGRC-I.d.ts} +9 -2
- package/dist/cli.d.ts +3 -6
- package/dist/cli.js +698 -425
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +447 -192
- package/dist/index.js.map +1 -1
- package/dist/{mcp-DGd2If0Z.d.ts → mcp-8_lBApgs.d.ts} +1 -1
- package/dist/mcp.client.d.ts +2 -2
- package/dist/{tools-DV4SkkQs.d.ts → tools-wVQBhYwm.d.ts} +3 -3
- package/dist/tools.shell.d.ts +1 -1
- package/dist/tools.shell.js +26 -16
- package/dist/tools.shell.js.map +1 -1
- package/package.json +5 -2
|
@@ -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-wVQBhYwm.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `--model auto`: per-turn model routing. A classifier (Jev by default — injected, so a regex or
|
|
@@ -401,6 +401,9 @@ declare class AgentOptions {
|
|
|
401
401
|
* `maxTokens`: that is the cumulative SPEND kill-switch, and a spend budget must never be able to
|
|
402
402
|
* drive destructive compaction (`--max-tokens 50000` would otherwise shred the transcript). */
|
|
403
403
|
contextWindow: number;
|
|
404
|
+
/** Does a model take image input? true/false from the host's model catalog; undefined = unknown (images are tried,
|
|
405
|
+
* and turned off for the run when the adapter refuses them). Unset = always try. */
|
|
406
|
+
imageInput?: (model: string) => boolean | undefined;
|
|
404
407
|
/** Pagination ceiling for a SINGLE tool result (bytes). A result over this is cropped to page 1 with
|
|
405
408
|
* a marker telling the model it was cropped (refine the query, or page further). Guards against one
|
|
406
409
|
* Grep/Read/MCP call blowing the whole context window. 0 = off. Default 60k (~15k tokens). */
|
|
@@ -737,6 +740,10 @@ declare class Agent {
|
|
|
737
740
|
* 3. token-aware backstop (`maxContextTokens`) — drop oldest messages until under an estimated token ceiling.
|
|
738
741
|
* With every knob off, returns the transcript unchanged (same reference).
|
|
739
742
|
*/
|
|
743
|
+
/** Set when the model refused image parts this run: tool image Reads go as text stubs from then on. */
|
|
744
|
+
private imagesOff;
|
|
745
|
+
/** Send tool image Reads as images? Known models by their catalog flag; unknown ones try (and latch off on refusal). */
|
|
746
|
+
sendsImages(): boolean;
|
|
740
747
|
trimContext(): Message[];
|
|
741
748
|
}
|
|
742
749
|
/** ~4 chars/token estimate over content + serialized tool_calls. THE estimator — the CLI footer,
|
|
@@ -744,6 +751,6 @@ declare class Agent {
|
|
|
744
751
|
* drift apart. Images are weighed AS SENT (`sendBytes`): only the recent window's refs cost their
|
|
745
752
|
* file, stale ones cost the stub. Budgeting a ref at full file size while the wire carries a 50-byte
|
|
746
753
|
* stub made `/compact` chase a target it could never reach and drop-oldest the conversation away. */
|
|
747
|
-
declare function estimateTokens(m: Message[], keepRecentImages?: number): number;
|
|
754
|
+
declare function estimateTokens(m: Message[], keepRecentImages?: number, vision?: boolean): number;
|
|
748
755
|
|
|
749
756
|
export { Agent as A, type ChatFragment as C, DEFAULT_MUTATING as D, type Hooks as H, ModelRouter as M, PermissionOptions as P, type ReasoningEffort as R, type Tier as T, AgentOptions as a, type Classification as b, type Classifier as c, type CompactResult as d, type Decision as e, ModelRouterOptions as f, PermissionPolicy as g, type PermissionRule as h, type PreToolUseDecision as i, RecordingHooks as j, RecordingLifecycle as k, type RouteDecision as l, type RouterState as m, type RunResult as n, type ToolUse as o, type ToolUseMeta as p, claudeCodeDisallowedTools as q, composeHooks as r, estimateTokens as s, jevAvailable as t, jevClassifier as u, pickTier as v, planMode as w, reasoningToChatFragment as x };
|
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-CSFGRC-I.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-wVQBhYwm.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* On-disk session store for the CLI: each conversation is one JSON file at
|
|
@@ -225,10 +225,7 @@ declare function turnCost(model: string, usage?: {
|
|
|
225
225
|
}): number;
|
|
226
226
|
/** Format a USD amount: 2 decimals at $1+, 4 below (agent turns are sub-cent). */
|
|
227
227
|
declare function fmtUsd(n: number): string;
|
|
228
|
-
|
|
229
|
-
* Weighs images AS SENT (`sendBytes`): only the recent window's refs cost their file; stale ones cost
|
|
230
|
-
* the stub — otherwise every old screenshot would stay immortal and fake a "90% full" warning. */
|
|
231
|
-
declare function estimateTranscriptTokens(messages: Message[], keepRecentImages?: number): number;
|
|
228
|
+
declare function estimateTranscriptTokens(messages: Message[], keepRecentImages?: number, vision?: boolean): number;
|
|
232
229
|
/** One-screen session status (model, dir, fs-mode, tools, permission posture, turns/tokens). Pure. */
|
|
233
230
|
declare function formatStatus(s: {
|
|
234
231
|
model: string;
|