nexrall-code 0.5.69 → 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 +13 -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)
@@ -66554,7 +66555,7 @@ program2.command("sessions").description("List or delete saved chat sessions").o
66554
66555
  console.log(source_default.dim(" nex sessions --delete <id> to remove one"));
66555
66556
  console.log();
66556
66557
  });
66557
- 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) => {
66558
66559
  if (!(0, import_code_core6.isAuthenticated)()) {
66559
66560
  console.error("Not logged in. Run: nex auth");
66560
66561
  process.exit(1);
@@ -66586,7 +66587,16 @@ program2.option("-p, --pro", "Use Claude Opus 5 (most capable)").option("-t, --t
66586
66587
  }
66587
66588
  outputFormat = fmt;
66588
66589
  }
66589
- 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 });
66590
66600
  });
66591
66601
  program2.parse();
66592
66602
  /*! Bundled license information:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexrall-code",
3
- "version": "0.5.69",
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",