@livx.cc/agentx 0.99.29 → 0.99.30
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-qoEmC4ic.d.ts → Agent-DC7FEEjF.d.ts} +4 -2
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +10 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -4
- 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, i as RunResult, A as Agent } from './Agent-
|
|
2
|
-
export { C as ChatFragment, b as CompactResult, D as DEFAULT_MUTATING, c as Decision, P as PermissionOptions, d as PermissionPolicy, e as PermissionRule, f as PreToolUseDecision, R as ReasoningEffort, g as RecordingHooks, h as RecordingLifecycle, T as ToolUse, j as ToolUseMeta, k as composeHooks, l as estimateTokens, p as planMode, r as reasoningToChatFragment } from './Agent-
|
|
1
|
+
import { a as AgentOptions, H as Hooks, i as RunResult, A as Agent } from './Agent-DC7FEEjF.js';
|
|
2
|
+
export { C as ChatFragment, b as CompactResult, D as DEFAULT_MUTATING, c as Decision, P as PermissionOptions, d as PermissionPolicy, e as PermissionRule, f as PreToolUseDecision, R as ReasoningEffort, g as RecordingHooks, h as RecordingLifecycle, T as ToolUse, j as ToolUseMeta, k as composeHooks, l as estimateTokens, p as planMode, r as reasoningToChatFragment } from './Agent-DC7FEEjF.js';
|
|
3
3
|
export { MODEL_ALIASES, ModelSwitch, ResolveModelSwitchOpts, modelShortLabel, resolveModelAlias, resolveModelSwitch } from './models.js';
|
|
4
4
|
import { IFilesystem, FileMetadata } from '@livx.cc/wcli/core';
|
|
5
5
|
export { CommandExecutor, FileMetadata, IFilesystem, IndexedDbFilesystem, MemFilesystem, registerHeadlessCommands } from '@livx.cc/wcli/core';
|
package/dist/index.js
CHANGED
|
@@ -3580,8 +3580,10 @@ var AgentOptions = class {
|
|
|
3580
3580
|
/** Stream tokens from the model. Takes effect only with a `host.notify`; off => current (non-stream) behavior. */
|
|
3581
3581
|
stream = false;
|
|
3582
3582
|
/** Closure reflex for delegated runtimes (cursor/claude-code): when such a turn ends on a tool call with
|
|
3583
|
-
* no assistant text after it (the runtime went silent post-work), nudge ONE more step
|
|
3584
|
-
*
|
|
3583
|
+
* no assistant text after it (the runtime went silent post-work), nudge ONE more step to ANSWER the user
|
|
3584
|
+
* from the tool results already in the transcript — so the turn delivers a reply instead of trailing off
|
|
3585
|
+
* mid-narration. Deliberately not a "summarize what you did" nudge: that produced process reports and
|
|
3586
|
+
* permission-asking instead of answers (see the nudge text in runLoop).
|
|
3585
3587
|
* Fires at most once per run and only for delegated runtimes (native turns never emit the trigger). */
|
|
3586
3588
|
closeDelegatedTurns = true;
|
|
3587
3589
|
/** Fold the dropped middle of an over-long transcript into a synthetic summary (edge-safe, no LLM). Off => drop-oldest. */
|
|
@@ -4083,8 +4085,11 @@ var Agent = class _Agent {
|
|
|
4083
4085
|
if (this.drainInjections()) continue;
|
|
4084
4086
|
if (o.closeDelegatedTurns && res.endedOnToolNoText && !closureNudged && steps < o.maxSteps) {
|
|
4085
4087
|
closureNudged = true;
|
|
4086
|
-
log6.verbose("delegated turn went silent after a tool \u2014 nudging a closing
|
|
4087
|
-
this.transcript.push({
|
|
4088
|
+
log6.verbose("delegated turn went silent after a tool \u2014 nudging a closing answer");
|
|
4089
|
+
this.transcript.push({
|
|
4090
|
+
role: "user",
|
|
4091
|
+
content: "You ran tools but did not reply. Answer the user now using the tool results above; if a tool failed, say so plainly. Do NOT re-run those tools, do NOT narrate what you did, and do NOT ask for permission to continue."
|
|
4092
|
+
});
|
|
4088
4093
|
continue;
|
|
4089
4094
|
}
|
|
4090
4095
|
log6.verbose(`completed in ${steps} step(s)`);
|