@livx.cc/agentx 0.99.14 → 0.99.16
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-CsVuR2O0.d.ts → Agent-CvLBalJE.d.ts} +13 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1647 -1519
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +5 -551
- package/dist/index.js +1651 -1556
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -370,6 +370,19 @@ declare class Agent {
|
|
|
370
370
|
* `options.tools` — otherwise a constructor-passed tool resurrects on the next prepare()
|
|
371
371
|
* rebuild (and re-adding it via addTools() would then DUPLICATE it in the wire schema). */
|
|
372
372
|
removeTools(names: Set<string> | string[]): number;
|
|
373
|
+
/** Messages the host queued to steer the RUNNING turn (Claude-Code-style mid-turn input). The loop
|
|
374
|
+
* drains them at each step boundary — after tool results are appended, before the next model call —
|
|
375
|
+
* so they ride along with the latest tool results. A no-op between turns (nothing drains it). */
|
|
376
|
+
private pendingInjections;
|
|
377
|
+
/** Queue a user message into the in-flight turn. It lands as a `user` message at the next step
|
|
378
|
+
* boundary; if the model was about to stop, the injection re-opens the loop so it's never lost.
|
|
379
|
+
* Pushing onto `transcript` directly from outside would race the loop — this drains inside it. */
|
|
380
|
+
inject(content: MessageContent): void;
|
|
381
|
+
/** Drop any queued-but-unconsumed injections. The REPL calls this after a LOCAL command (/cmd, !bash)
|
|
382
|
+
* — which runs no send() to drain them — so a mid-command steer can't leak into the next real turn. */
|
|
383
|
+
clearInjections(): void;
|
|
384
|
+
/** Fold any host-injected messages into the transcript as user turns. Returns true if any landed. */
|
|
385
|
+
private drainInjections;
|
|
373
386
|
constructor(options?: Partial<AgentOptions>);
|
|
374
387
|
/** Build the tool context from the resolved fs + options. Idempotent-safe: called once (ctor or ensureFs). */
|
|
375
388
|
private buildCtx;
|
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-
|
|
2
|
+
import { H as Hooks, h as RunResult, R as ReasoningEffort, A as Agent } from './Agent-CvLBalJE.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
|
|