@acmecloud/core 1.0.7 → 1.0.8
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/tools/index.js +4 -0
- package/package.json +1 -1
- package/src/tools/index.ts +3 -0
package/dist/tools/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import * as diff from "diff";
|
|
|
12
12
|
import { replaceCode } from "./edit.js";
|
|
13
13
|
import { getLspClientForFile } from "./lsp-client.js";
|
|
14
14
|
import { executeBatch, BATCH_WHITELIST } from "./batch.js";
|
|
15
|
+
import { executeBrowserAction } from "./browser.js";
|
|
15
16
|
const execAsync = promisify(exec);
|
|
16
17
|
// ── Constants (from opencode patterns) ──
|
|
17
18
|
const DEFAULT_READ_LIMIT = 2000;
|
|
@@ -967,6 +968,9 @@ export const toolExecutors = {
|
|
|
967
968
|
batch: async (args) => {
|
|
968
969
|
return executeBatch(args, toolExecutors);
|
|
969
970
|
},
|
|
971
|
+
browser_action: async (args) => {
|
|
972
|
+
return executeBrowserAction(args);
|
|
973
|
+
},
|
|
970
974
|
};
|
|
971
975
|
// Create AI SDK tool objects (with execute) for the agent
|
|
972
976
|
const tool = (options) => createTool(options);
|
package/package.json
CHANGED
package/src/tools/index.ts
CHANGED
|
@@ -1095,6 +1095,9 @@ export const toolExecutors: Record<string, (args: any) => Promise<string>> = {
|
|
|
1095
1095
|
batch: async (args) => {
|
|
1096
1096
|
return executeBatch(args, toolExecutors);
|
|
1097
1097
|
},
|
|
1098
|
+
browser_action: async (args) => {
|
|
1099
|
+
return executeBrowserAction(args);
|
|
1100
|
+
},
|
|
1098
1101
|
};
|
|
1099
1102
|
|
|
1100
1103
|
// Create AI SDK tool objects (with execute) for the agent
|