@livx.cc/agentx 0.95.1 → 0.95.3
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-1DRfsYaK.d.ts → Agent-DRe91tAy.d.ts} +5 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +592 -430
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +13 -6
- package/dist/index.js +401 -241
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AgentOptions, H as Hooks, h as RunResult, A as Agent } from './Agent-
|
|
2
|
-
export { C as ChatFragment, D as DEFAULT_MUTATING, b as Decision, P as PermissionOptions, c as PermissionPolicy, d as PermissionRule, e as PreToolUseDecision, R as ReasoningEffort, f as RecordingHooks, g as RecordingLifecycle, T as ToolUse, i as ToolUseMeta, j as composeHooks, p as planMode, r as reasoningToChatFragment } from './Agent-
|
|
1
|
+
import { a as AgentOptions, H as Hooks, h as RunResult, A as Agent } from './Agent-DRe91tAy.js';
|
|
2
|
+
export { C as ChatFragment, D as DEFAULT_MUTATING, b as Decision, P as PermissionOptions, c as PermissionPolicy, d as PermissionRule, e as PreToolUseDecision, R as ReasoningEffort, f as RecordingHooks, g as RecordingLifecycle, T as ToolUse, i as ToolUseMeta, j as composeHooks, p as planMode, r as reasoningToChatFragment } from './Agent-DRe91tAy.js';
|
|
3
3
|
import { IFilesystem, FileMetadata } from '@livx.cc/wcli/core';
|
|
4
4
|
export { CommandExecutor, FileMetadata, IFilesystem, IndexedDbFilesystem, MemFilesystem, registerHeadlessCommands } from '@livx.cc/wcli/core';
|
|
5
5
|
import { BodDB } from '@bod.ee/db';
|
|
@@ -931,11 +931,15 @@ declare class DuplexAgent {
|
|
|
931
931
|
* re-dispatch — so the only remaining move is to voice a short ack and end. A genuinely NEW Act is
|
|
932
932
|
* still allowed (parallel independent work). During a re-ack pass, block every tool. */
|
|
933
933
|
private dispatchGuard;
|
|
934
|
-
/** True when the just-finished turn
|
|
934
|
+
/** True when the just-finished turn voiced NOTHING — dead air to repair. Two ways this happens:
|
|
935
|
+
* (a) a dispatch with no spoken ack, and (b) an INLINE turn whose `final` channel came back empty —
|
|
936
|
+
* gpt-oss harmony sometimes puts the whole reply in `analysis` (→ thinking_delta, suppressed in
|
|
937
|
+
* voice) and emits an empty `final`, so no text_delta ever streams. Both ship silence; both repair.
|
|
935
938
|
* Requires a host: without one there's no stream to detect speech on (and no one to speak to). */
|
|
936
|
-
private get
|
|
937
|
-
/** A
|
|
938
|
-
*
|
|
939
|
+
private get silentTurn();
|
|
940
|
+
/** A turn that voiced nothing is dead air. Re-prompt the reflex ONCE so the LLM itself voices a short
|
|
941
|
+
* line (no template). If it STILL says nothing, fall back to a minimal line so silence never ships.
|
|
942
|
+
* Wording adapts to whether work was dispatched (an ack) or the inline reply was simply lost. */
|
|
939
943
|
private ackIfSilent;
|
|
940
944
|
/** One user turn: the voice agent streams the reply (and may Act/Think). Serialized with re-voice turns. */
|
|
941
945
|
send(content: MessageContent): Promise<RunResult>;
|
|
@@ -1035,6 +1039,9 @@ interface TaskToolOptions {
|
|
|
1035
1039
|
maxParallel?: number;
|
|
1036
1040
|
/** Parent hooks — `onSubagentStop` fires with each child's summary when it finishes. */
|
|
1037
1041
|
hooks?: Hooks;
|
|
1042
|
+
/** Origin-anchored real-disk dir for child transcript traces (see `AgentOptions.traceDir`). Passed
|
|
1043
|
+
* down UNCHANGED to nested children so every level writes to the same origin `.agent`. */
|
|
1044
|
+
traceDir?: string;
|
|
1038
1045
|
}
|
|
1039
1046
|
/**
|
|
1040
1047
|
* `Task` tool — spawn a CHILD agent over the same VFS with its own step budget,
|