nexrall-code 0.5.68 → 0.5.70

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -65408,7 +65408,8 @@ Set ${TRUST_ENV_VAR}=1 to confirm non-interactively, or run \`nex\` interactivel
65408
65408
  let sessionId = crypto.randomBytes(8).toString("hex");
65409
65409
  let sessionTitle = "";
65410
65410
  let agentMode = "auto";
65411
- let effortLevel = "medium";
65411
+ const VALID_EFFORT_LEVELS = ["low", "medium", "high", "extra"];
65412
+ let effortLevel = options.effort && VALID_EFFORT_LEVELS.includes(options.effort) ? options.effort : "medium";
65412
65413
  const permRules = initPermissions(workDir);
65413
65414
  const ruleCount = permRules.allow.length + permRules.ask.length + permRules.deny.length;
65414
65415
  if (ruleCount && !headless)
@@ -65512,6 +65513,8 @@ ${text}` : "");
65512
65513
  checkpoints.commitTurn();
65513
65514
  updateTitle();
65514
65515
  saveSession(sessionId, sessionTitle, workDir, messages);
65516
+ await new Promise((r2) => setImmediate(r2));
65517
+ process.exit(0);
65515
65518
  } catch (err) {
65516
65519
  const salvaged = (0, import_code_core3.salvageHistory)(err);
65517
65520
  if (salvaged) {
@@ -66552,7 +66555,7 @@ program2.command("sessions").description("List or delete saved chat sessions").o
66552
66555
  console.log(source_default.dim(" nex sessions --delete <id> to remove one"));
66553
66556
  console.log();
66554
66557
  });
66555
- program2.option("-p, --pro", "Use Claude Opus 5 (most capable)").option("-t, --turbo", "Use Claude Sonnet 5 (fast, default)").option("-u, --ultra", "Use Claude Fable 5 (most powerful)").option("-y, --yolo", "Auto-approve all tool calls (no permission prompts)").option("-d, --dir <path>", "Set working directory (default: current directory)").option("-m, --model <name>", "Explicit model, e.g. claude-opus-5 | gpt-5.4 | gpt-4.1").option("-r, --resume [id]", "Resume last session, or a specific session id").option("--no-banner", "Skip the ASCII banner (useful in scripts/pipes)").option("--output-format <fmt>", "One-shot output format: text | json | stream-json (implies auto-approve)").argument("[prompt...]", "One-shot prompt \u2014 if omitted, starts interactive mode").action(async (promptParts, options) => {
66558
+ program2.option("-p, --pro", "Use Claude Opus 5 (most capable)").option("-t, --turbo", "Use Claude Sonnet 5 (fast, default)").option("-u, --ultra", "Use Claude Fable 5 (most powerful)").option("-y, --yolo", "Auto-approve all tool calls (no permission prompts)").option("-d, --dir <path>", "Set working directory (default: current directory)").option("-m, --model <name>", "Explicit model, e.g. claude-opus-5 | gpt-5.4 | gpt-4.1").option("-r, --resume [id]", "Resume last session, or a specific session id").option("-e, --effort <level>", "Thinking effort: low | medium | high | extra (default: medium)").option("--no-banner", "Skip the ASCII banner (useful in scripts/pipes)").option("--output-format <fmt>", "One-shot output format: text | json | stream-json (implies auto-approve)").argument("[prompt...]", "One-shot prompt \u2014 if omitted, starts interactive mode").action(async (promptParts, options) => {
66556
66559
  if (!(0, import_code_core6.isAuthenticated)()) {
66557
66560
  console.error("Not logged in. Run: nex auth");
66558
66561
  process.exit(1);
@@ -66584,7 +66587,16 @@ program2.option("-p, --pro", "Use Claude Opus 5 (most capable)").option("-t, --t
66584
66587
  }
66585
66588
  outputFormat = fmt;
66586
66589
  }
66587
- await startChatSession({ model, workDir, prompt: prompt2, resume, stdinText, showBanner, outputFormat });
66590
+ let effort;
66591
+ if (options.effort) {
66592
+ const lvl = String(options.effort).toLowerCase();
66593
+ if (!["low", "medium", "high", "extra"].includes(lvl)) {
66594
+ console.error(`Invalid --effort "${options.effort}". Use: low | medium | high | extra`);
66595
+ process.exit(1);
66596
+ }
66597
+ effort = lvl;
66598
+ }
66599
+ await startChatSession({ model, workDir, prompt: prompt2, resume, stdinText, showBanner, outputFormat, effort });
66588
66600
  });
66589
66601
  program2.parse();
66590
66602
  /*! Bundled license information:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexrall-code",
3
- "version": "0.5.68",
3
+ "version": "0.5.70",
4
4
  "description": "Nexrall Code — AI coding assistant for your terminal (headless agent for scripts, CI and automation)",
5
5
  "keywords": [
6
6
  "ai",