@livx.cc/agentx 0.96.6 → 0.96.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/cli.js +13 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -2
package/dist/cli.js
CHANGED
|
@@ -10240,7 +10240,7 @@ Flags:
|
|
|
10240
10240
|
--plan plan mode: edits blocked until you approve a plan
|
|
10241
10241
|
--ask confirm each mutating tool (bash/Shell/Write/Edit/\u2026)
|
|
10242
10242
|
--yes, -y auto-approve mutating tools (no prompts) \u2014 for trusted/unattended runs
|
|
10243
|
-
--update check for updates and
|
|
10243
|
+
--update check for updates and install if available (no keys needed)
|
|
10244
10244
|
--no-update-check skip the automatic update check on startup
|
|
10245
10245
|
--verbose, --debug verbose logs (sets DEBUG=* \u2014 tool args, hook decisions, retries)
|
|
10246
10246
|
--allowedTools <l> comma-list of tools to allow w/o asking, e.g. "Edit,Shell(git *)"
|
|
@@ -13057,6 +13057,10 @@ ${out}
|
|
|
13057
13057
|
} catch (e) {
|
|
13058
13058
|
err(yellow(` \u26A0 voice I/O failed to start: ${e?.message ?? e} \u2014 continuing text-only
|
|
13059
13059
|
`));
|
|
13060
|
+
try {
|
|
13061
|
+
voiceIO.stop();
|
|
13062
|
+
} catch {
|
|
13063
|
+
}
|
|
13060
13064
|
voiceIO = void 0;
|
|
13061
13065
|
return false;
|
|
13062
13066
|
}
|
|
@@ -13290,9 +13294,14 @@ async function main() {
|
|
|
13290
13294
|
}
|
|
13291
13295
|
if (args.update) {
|
|
13292
13296
|
const msg = await checkForUpdate(VERSION).catch(() => null);
|
|
13293
|
-
if (msg)
|
|
13294
|
-
|
|
13295
|
-
|
|
13297
|
+
if (!msg) {
|
|
13298
|
+
console.log("\u2713 up to date (v" + VERSION + ")");
|
|
13299
|
+
return;
|
|
13300
|
+
}
|
|
13301
|
+
console.log(msg.replace(/Run .+$/, "Installing\u2026"));
|
|
13302
|
+
const { spawnSync: spawnSync6 } = await import("child_process");
|
|
13303
|
+
const r = spawnSync6("bun", ["add", "-g", "@livx.cc/agentx"], { stdio: "inherit" });
|
|
13304
|
+
process.exit(r.status ?? 1);
|
|
13296
13305
|
}
|
|
13297
13306
|
if (args.debug) process.env.DEBUG ||= "*";
|
|
13298
13307
|
if (args.print && !args.task && !process.stdin.isTTY) args.task = (await readAllStdin()).trim();
|