@livx.cc/agentx 0.96.4 → 0.96.5

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.d.ts CHANGED
@@ -143,6 +143,7 @@ interface Args {
143
143
  hardenNet?: boolean;
144
144
  worktree?: string;
145
145
  updateCheck?: boolean;
146
+ update?: boolean;
146
147
  }
147
148
  declare function parseArgs(argv: string[]): Args;
148
149
  /** Hooks that render tool activity to stderr: a preToolUse header, and for edits a colorized diff.
package/dist/cli.js CHANGED
@@ -10167,6 +10167,7 @@ function parseArgs(argv) {
10167
10167
  else if (x === "--vfs" || x === "--sandbox") a.vfs = true;
10168
10168
  else if (x === "--scratch") a.scratch = true;
10169
10169
  else if (x === "--no-scratch") a.scratch = false;
10170
+ else if (x === "--update") a.update = true;
10170
10171
  else if (x === "--no-update-check") a.updateCheck = false;
10171
10172
  else if (x === "--boddb") a.boddb = val(++i, x);
10172
10173
  else if (x === "--seed") a.seed = true;
@@ -10238,6 +10239,7 @@ Flags:
10238
10239
  --plan plan mode: edits blocked until you approve a plan
10239
10240
  --ask confirm each mutating tool (bash/Shell/Write/Edit/\u2026)
10240
10241
  --yes, -y auto-approve mutating tools (no prompts) \u2014 for trusted/unattended runs
10242
+ --update check for updates and exit (no keys needed)
10241
10243
  --no-update-check skip the automatic update check on startup
10242
10244
  --verbose, --debug verbose logs (sets DEBUG=* \u2014 tool args, hook decisions, retries)
10243
10245
  --allowedTools <l> comma-list of tools to allow w/o asking, e.g. "Edit,Shell(git *)"
@@ -13285,6 +13287,12 @@ async function main() {
13285
13287
  console.log(HELP);
13286
13288
  return;
13287
13289
  }
13290
+ if (args.update) {
13291
+ const msg = await checkForUpdate(VERSION).catch(() => null);
13292
+ if (msg) console.log(msg);
13293
+ else console.log("\u2713 up to date (v" + VERSION + ")");
13294
+ return;
13295
+ }
13288
13296
  if (args.debug) process.env.DEBUG ||= "*";
13289
13297
  if (args.print && !args.task && !process.stdin.isTTY) args.task = (await readAllStdin()).trim();
13290
13298
  let worktreeCleanup;
@@ -13330,7 +13338,7 @@ async function main() {
13330
13338
  await loadBodifySecrets();
13331
13339
  const apiKeys = { ...cfg.apiKeys, ...apiKeysFromEnv() };
13332
13340
  if (!Object.keys(apiKeys).length) {
13333
- console.error(red("No provider key found. Set ANTHROPIC_API_KEY (or OPENAI_API_KEY / GOOGLE_API_KEY / GROQ_API_KEY), e.g. in .env."));
13341
+ console.error(red("No provider key found. Set ANTHROPIC_API_KEY (or OPENAI_API_KEY / GOOGLE_API_KEY / GROQ_API_KEY) in ~/.agent/.env, or set BODIFY_API_KEY + BODIFY_APP_ID to pull from Bodify."));
13334
13342
  process.exit(1);
13335
13343
  }
13336
13344
  const ai = new AIClient({