agent.libx.js 0.87.1 → 0.87.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-WTkHB8RY.d.ts → Agent-tfPQy4k5.d.ts} +2 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- 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, g as RunResult } from './Agent-
|
|
2
|
-
export { A as Agent, D as DEFAULT_MUTATING, b as Decision, P as PermissionOptions, c as PermissionPolicy, d as PermissionRule, e as PreToolUseDecision, R as RecordingHooks, f as RecordingLifecycle, T as ToolUse, h as ToolUseMeta, i as composeHooks, p as planMode } from './Agent-
|
|
1
|
+
import { a as AgentOptions, H as Hooks, g as RunResult } from './Agent-tfPQy4k5.js';
|
|
2
|
+
export { A as Agent, D as DEFAULT_MUTATING, b as Decision, P as PermissionOptions, c as PermissionPolicy, d as PermissionRule, e as PreToolUseDecision, R as RecordingHooks, f as RecordingLifecycle, T as ToolUse, h as ToolUseMeta, i as composeHooks, p as planMode } from './Agent-tfPQy4k5.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';
|
package/dist/index.js
CHANGED
|
@@ -2553,6 +2553,8 @@ var AgentOptions = class {
|
|
|
2553
2553
|
/** Opt-in: after a write-class tool runs, run `command` over the VFS and append any failure to the tool result.
|
|
2554
2554
|
* `tools` defaults to ['Write','Edit','MultiEdit','ApplyEdits']. */
|
|
2555
2555
|
autoTest;
|
|
2556
|
+
/** Provider-specific options forwarded to ai.chat() (e.g. cursor mcpServers, cwd). */
|
|
2557
|
+
providerOptions;
|
|
2556
2558
|
};
|
|
2557
2559
|
var Agent = class _Agent {
|
|
2558
2560
|
options;
|
|
@@ -2751,10 +2753,10 @@ var Agent = class _Agent {
|
|
|
2751
2753
|
const sent = this.trimContext();
|
|
2752
2754
|
try {
|
|
2753
2755
|
if (useStream) {
|
|
2754
|
-
const r = await o.ai.chat({ model: o.model, messages: sent, tools: wireTools, stream: true, signal: o.signal });
|
|
2756
|
+
const r = await o.ai.chat({ model: o.model, messages: sent, tools: wireTools, stream: true, signal: o.signal, providerOptions: o.providerOptions });
|
|
2755
2757
|
res = await this.consumeStream(r);
|
|
2756
2758
|
} else {
|
|
2757
|
-
const r = await o.ai.chat({ model: o.model, messages: sent, tools: wireTools, stream: false, signal: o.signal });
|
|
2759
|
+
const r = await o.ai.chat({ model: o.model, messages: sent, tools: wireTools, stream: false, signal: o.signal, providerOptions: o.providerOptions });
|
|
2758
2760
|
res = r;
|
|
2759
2761
|
}
|
|
2760
2762
|
} catch (err) {
|