@livx.cc/agentx 0.99.78 → 0.99.79
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-BBlKI8uD.d.ts → Agent-BK-heHrw.d.ts} +4 -0
- package/dist/cli.d.ts +24 -2
- package/dist/cli.js +686 -245
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +27 -2
- package/dist/index.js +296 -47
- package/dist/index.js.map +1 -1
- package/dist/mcp.client.js +59 -2
- package/dist/mcp.client.js.map +1 -1
- package/dist/tools.shell.d.ts +23 -1
- package/dist/tools.shell.js +157 -19
- package/dist/tools.shell.js.map +1 -1
- package/package.json +4 -4
|
@@ -353,6 +353,10 @@ declare class AgentOptions {
|
|
|
353
353
|
model: string;
|
|
354
354
|
systemPrompt: string;
|
|
355
355
|
tools: AgentTool[];
|
|
356
|
+
/** claude-code/* only: which agentx tools reach it as the in-process `agentx` MCP server (ccBridge.ts). 'memory' =
|
|
357
|
+
* the ones Claude Code has no native twin for (CC_BRIDGED); 'all' = every tool this agent has — for an agent whose
|
|
358
|
+
* tools ARE its job (the duplex reflex: Act/Think/Hold…), run with Claude Code's own tools off (providerOptions.tools: []). */
|
|
359
|
+
ccBridge: 'memory' | 'all';
|
|
356
360
|
maxSteps: number;
|
|
357
361
|
/** Hard ceiling on accumulated tokens (prompt+completion) across the run; cache READS count at 0.1×
|
|
358
362
|
* (their real price) so a fat cached context doesn't trip the guard on healthy turns. 0 = unbounded. */
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-BK-heHrw.js';
|
|
3
3
|
import { IFilesystem } from '@livx.cc/wcli/core';
|
|
4
4
|
import { M as Message, U as UserQuestion, H as HostBridge, c as ContentPart, o as MessageContent } from './tools-lC3jn60o.js';
|
|
5
5
|
|
|
@@ -160,6 +160,25 @@ interface Args {
|
|
|
160
160
|
autoRoute?: boolean;
|
|
161
161
|
}
|
|
162
162
|
declare function parseArgs(argv: string[]): Args;
|
|
163
|
+
/** Can `model` be called here: its provider runs keyless, or has a key (config or env — call after the .env/Bodify loads). */
|
|
164
|
+
declare function modelUsable(model: string, apiKeys: Record<string, string | undefined>): boolean;
|
|
165
|
+
/** The duplex tiers' models — the reflex (--voice-model / config reflexModel / DuplexAgent's default, groq) and the Think
|
|
166
|
+
* tier (default anthropic opus) — each swapped for one that can run here when its provider has no key, instead of every
|
|
167
|
+
* voice turn failing on "API key is required". The stand-in follows what the user CAN run: an Anthropic key → Haiku (fast)
|
|
168
|
+
* / the default Think; a keyless claude-code/* act model → claude-code/haiku (a routing-only reflex: DuplexAgent bridges
|
|
169
|
+
* its tools in, Claude Code's own tools off) / claude-code/opus; else the act model itself (never a cursor/* reflex).
|
|
170
|
+
* `notes` = one line per swap (stderr + the duplex `ready` event). */
|
|
171
|
+
declare function duplexModels(o: {
|
|
172
|
+
voiceModel?: string;
|
|
173
|
+
reflexModel?: string;
|
|
174
|
+
thinkModel?: string | false;
|
|
175
|
+
actModel: string;
|
|
176
|
+
apiKeys: Record<string, string | undefined>;
|
|
177
|
+
}): {
|
|
178
|
+
reflexModel?: string;
|
|
179
|
+
thinkModel?: string | false;
|
|
180
|
+
notes: string[];
|
|
181
|
+
};
|
|
163
182
|
declare function makeHost(format?: 'text' | 'json' | 'stream-json', opts?: {
|
|
164
183
|
stream?: boolean;
|
|
165
184
|
}): HostBridge & {
|
|
@@ -329,6 +348,9 @@ declare function readMultiline(readLine: (continuing: boolean) => Promise<string
|
|
|
329
348
|
declare function runTurn(agent: Agent, store: SessionStore, session: SessionData, task: string, cp?: Checkpoints, cwd?: string, sendFn?: (content: MessageContent) => Promise<RunResult>): Promise<{
|
|
330
349
|
ok: boolean;
|
|
331
350
|
res?: RunResult;
|
|
351
|
+
error?: unknown;
|
|
332
352
|
}>;
|
|
353
|
+
/** A failed duplex turn's cause, for the host to show: the provider's message, and for a missing key what to set. */
|
|
354
|
+
declare function duplexError(e: unknown, reflexModel: string): string;
|
|
333
355
|
|
|
334
|
-
export { type PermMode, abortActiveTurn, appendMemoryNote, cacheMultipliers, condenseReplay, costOf, estimateTranscriptTokens, expandMentions, exportMarkdown, fmtUsd, formatHistory, formatStatus, formatTranscriptFull, jsonResult, makeHost, mcpMentionResolver, mentionRefs, parseArgs, pastePathClassifier, readImageParts, readMultiline, resolvePermMode, runShellLine, runTurn, setMcpMentionResolver, summarizeResult, turnCost };
|
|
356
|
+
export { type PermMode, abortActiveTurn, appendMemoryNote, cacheMultipliers, condenseReplay, costOf, duplexError, duplexModels, estimateTranscriptTokens, expandMentions, exportMarkdown, fmtUsd, formatHistory, formatStatus, formatTranscriptFull, jsonResult, makeHost, mcpMentionResolver, mentionRefs, modelUsable, parseArgs, pastePathClassifier, readImageParts, readMultiline, resolvePermMode, runShellLine, runTurn, setMcpMentionResolver, summarizeResult, turnCost };
|