itermbot 1.0.13 → 1.0.14
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/package.json +1 -1
- package/src/external-modules.d.ts +3 -0
- package/test/integration/chat-flow.integration.test.mjs +1 -1
- package/test/integration/live-iterm-llm.integration.test.mjs +1 -1
- package/test/unit/tool-call-recovery-bootstrap.test.mjs +1 -1
- package/test/unit/tool-call-recovery-core.test.mjs +1 -1
- package/test/unit/tool-call-recovery-scope.test.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare module "@botbotgo/agent" {
|
|
2
2
|
export function createAgentDeepRuntime(...args: any[]): any;
|
|
3
3
|
export function createAgentReactRuntime(...args: any[]): any;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module "@botbotgo/agent/recovery" {
|
|
4
7
|
export function runWithTextToolCallRecovery(...args: any[]): Promise<any>;
|
|
5
8
|
}
|
|
6
9
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
setDirectCommandTranslationPrompt,
|
|
6
6
|
tryHandleDirectTargetPanelCommand,
|
|
7
7
|
} from "../../dist/iterm/direct-command-router.js";
|
|
8
|
-
import { runWithTextToolCallRecovery } from "@botbotgo/agent";
|
|
8
|
+
import { runWithTextToolCallRecovery } from "@botbotgo/agent/recovery";
|
|
9
9
|
|
|
10
10
|
setDirectCommandTranslationPrompt([
|
|
11
11
|
"You convert a user's single terminal request into exactly one safe shell command.",
|
|
@@ -9,7 +9,7 @@ import { resolveConfigPath } from "@botbotgo/common/config";
|
|
|
9
9
|
import { createAgentModel } from "@botbotgo/model";
|
|
10
10
|
import { createAgentTools } from "@botbotgo/toolkit";
|
|
11
11
|
import { itermListCurrentWindowSessions } from "@botbotgo/toolkit-builtin/iterm";
|
|
12
|
-
import { runWithTextToolCallRecovery } from "@botbotgo/agent";
|
|
12
|
+
import { runWithTextToolCallRecovery } from "@botbotgo/agent/recovery";
|
|
13
13
|
import { runLlmHealthCheck } from "../../dist/startup/diagnostics.js";
|
|
14
14
|
import { tryHandleDirectTargetPanelCommand } from "../../dist/iterm/direct-command-router.js";
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import test, { beforeEach } from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
3
|
import { AgentContextTokens } from "@botbotgo/common";
|
|
4
|
-
import { runWithTextToolCallRecovery } from "@botbotgo/agent";
|
|
4
|
+
import { runWithTextToolCallRecovery } from "@botbotgo/agent/recovery";
|
|
5
5
|
|
|
6
6
|
beforeEach(() => {
|
|
7
7
|
delete process.env.ITB_BOOTSTRAP_EVIDENCE_COMMAND;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import test, { beforeEach } from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
3
|
import { AgentContextTokens } from "@botbotgo/common";
|
|
4
|
-
import { runWithTextToolCallRecovery } from "@botbotgo/agent";
|
|
4
|
+
import { runWithTextToolCallRecovery } from "@botbotgo/agent/recovery";
|
|
5
5
|
|
|
6
6
|
beforeEach(() => {
|
|
7
7
|
delete process.env.ITB_BOOTSTRAP_EVIDENCE_COMMAND;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import test, { beforeEach } from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
3
|
import { AgentContextTokens } from "@botbotgo/common";
|
|
4
|
-
import { runWithTextToolCallRecovery } from "@botbotgo/agent";
|
|
4
|
+
import { runWithTextToolCallRecovery } from "@botbotgo/agent/recovery";
|
|
5
5
|
|
|
6
6
|
beforeEach(() => {
|
|
7
7
|
delete process.env.ITB_BOOTSTRAP_EVIDENCE_COMMAND;
|