netheriteai-code 1.0.3 → 1.0.4
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/cli.js +1 -1
- package/src/tools.js +8 -2
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import { printTable, resolveWorkspaceRoot } from "./utils.js";
|
|
|
11
11
|
|
|
12
12
|
const execFileAsync = promisify(execFile);
|
|
13
13
|
|
|
14
|
-
const VERSION = "1.0.
|
|
14
|
+
const VERSION = "1.0.4";
|
|
15
15
|
|
|
16
16
|
async function handleAutoUpdate() {
|
|
17
17
|
// If we were just restarted by an update, don't check again
|
package/src/tools.js
CHANGED
|
@@ -258,8 +258,8 @@ async function runOneCommand(root, command, args = [], hooks = {}) {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
async function runShellLine(root, commandLine, hooks = {}) {
|
|
261
|
-
const shell = isWin ? "
|
|
262
|
-
const args = isWin ? ["
|
|
261
|
+
const shell = isWin ? "cmd.exe" : "bash";
|
|
262
|
+
const args = isWin ? ["/d", "/s", "/c", commandLine] : ["-lc", commandLine];
|
|
263
263
|
const result = await runSpawnedCommand(root, shell, args, hooks);
|
|
264
264
|
return {
|
|
265
265
|
ok: true,
|
|
@@ -439,3 +439,9 @@ export async function executeToolCall(root, toolCall, hooks = {}) {
|
|
|
439
439
|
throw new Error(`Unknown tool: ${name}`);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
+
odo;
|
|
443
|
+
}
|
|
444
|
+
default:
|
|
445
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
446
|
+
}
|
|
447
|
+
}
|