@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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AgentOptions, H as Hooks, h as RunResult, A as Agent } from './Agent-1DRfsYaK.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-1DRfsYaK.js';
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 dispatched a task but voiced nothing — dead air to repair.
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 silentDispatch();
937
- /** A dispatch with no spoken text is dead air. Re-prompt the reflex ONCE so the LLM itself voices a
938
- * short ack (no template). If it STILL says nothing, fall back to a minimal line so silence never ships. */
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,