@livx.cc/agentx 0.99.13 → 0.99.15

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.
@@ -324,6 +324,16 @@ declare class AgentOptions {
324
324
  * `'off'`/undefined = none; `'low'|'medium'|'high'` or a raw token budget. Mapped to the
325
325
  * provider-specific request shape via {@link reasoningToChatFragment}; explicit `providerOptions` wins. */
326
326
  reasoning?: ReasoningEffort;
327
+ /** Seed a fresh `run()` with prior conversation turns (real role/content messages) so the model
328
+ * sees history as structured turns instead of a flattened text blob. They are inserted AFTER the
329
+ * stable system prompt and BEFORE the current user turn — so the cached system(+tools) prefix never
330
+ * shifts. Turns are normalized before sending (empties dropped, adjacent same-role coalesced, and the
331
+ * first tail turn forced to `user`) so the transcript is always a valid Anthropic alternation ending
332
+ * at the current user prompt. Unset/empty ⇒ current behavior, byte-for-byte. */
333
+ priorMessages?: Array<{
334
+ role: 'user' | 'assistant';
335
+ content: MessageContent;
336
+ }>;
327
337
  }
328
338
  /**
329
339
  * The agentic loop: chat() -> dispatch tool_calls over the VFS -> thread results
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bun
2
- import { H as Hooks, h as RunResult, R as ReasoningEffort, A as Agent } from './Agent-DYMSg21f.js';
2
+ import { H as Hooks, h as RunResult, R as ReasoningEffort, A as Agent } from './Agent-CsVuR2O0.js';
3
3
  import { IFilesystem } from '@livx.cc/wcli/core';
4
4
  import { M as Message, H as HostBridge, c as ContentPart, e as MessageContent } from './tools-DKf3hN4M.js';
5
5