reasonix 0.12.14 → 0.12.15

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/index.js CHANGED
@@ -14553,9 +14553,9 @@ var SLASH_COMMANDS = [
14553
14553
  { cmd: "status", summary: "current model, flags, context, session" },
14554
14554
  {
14555
14555
  cmd: "preset",
14556
- argsHint: "<fast|smart|max>",
14557
- summary: "one-tap model + harvest + branch bundle",
14558
- argCompleter: ["fast", "smart", "max"]
14556
+ argsHint: "<auto|flash|pro>",
14557
+ summary: "model bundle \u2014 auto escalates flash \u2192 pro, flash/pro lock",
14558
+ argCompleter: ["auto", "flash", "pro"]
14559
14559
  },
14560
14560
  {
14561
14561
  cmd: "model",
@@ -15143,7 +15143,7 @@ var help = () => ({
15143
15143
  " /help this message",
15144
15144
  " /keys keyboard shortcuts + prompt prefixes (!, @, /)",
15145
15145
  " /status show current settings",
15146
- " /preset <fast|smart|max> one-tap presets \u2014 see below",
15146
+ " /preset <auto|flash|pro> model bundle \u2014 see below",
15147
15147
  " /model <id> deepseek-v4-flash or deepseek-v4-pro",
15148
15148
  " /pro [off] arm v4-pro for NEXT turn only (one-shot, auto-disarms)",
15149
15149
  " /harvest [on|off] Pillar 2: structured plan-state extraction (OPT-IN \u2014 costs extra)",
@@ -15205,9 +15205,9 @@ var help = () => ({
15205
15205
  " Trailing sentence punctuation (./,/)) is stripped automatically.",
15206
15206
  "",
15207
15207
  "Presets (branch + harvest are NEVER auto-enabled \u2014 opt-in only):",
15208
- " fast v4-flash \xB7 effort=high cheapest \xB7 quick Q&A, one-line edits",
15209
- " smart v4-flash \xB7 effort=max \u2190 default \xB7 day-to-day coding",
15210
- " max v4-pro \xB7 effort=max ~12\xD7 fast \xB7 hard single-shots",
15208
+ " auto v4-flash \u2192 v4-pro on hard turns \u2190 default \xB7 cheap when easy, smart when hard",
15209
+ " flash v4-flash always cheapest \xB7 predictable per-turn cost",
15210
+ " pro v4-pro always ~3\xD7 flash (5/31) \xB7 hard multi-turn work",
15211
15211
  "",
15212
15212
  "Sessions (auto-enabled by default, named 'default'):",
15213
15213
  " reasonix chat --session <name> use a different named session",
@@ -15977,39 +15977,43 @@ var preset = (args, loop2) => {
15977
15977
  } catch {
15978
15978
  }
15979
15979
  };
15980
- if (name === "fast" || name === "default") {
15980
+ if (name === "auto") {
15981
+ const p = PRESETS.auto;
15981
15982
  loop2.configure({
15982
- model: "deepseek-v4-flash",
15983
- reasoningEffort: "high",
15984
- harvest: false,
15985
- branch: 1
15983
+ model: p.model,
15984
+ autoEscalate: p.autoEscalate,
15985
+ reasoningEffort: p.reasoningEffort,
15986
+ harvest: p.harvest,
15987
+ branch: p.branch
15986
15988
  });
15987
- applyAndPersist("high");
15988
- return { info: "preset \u2192 fast (v4-flash \xB7 effort=high \xB7 cheapest)" };
15989
+ applyAndPersist(p.reasoningEffort);
15990
+ return { info: "preset \u2192 auto (v4-flash \u2192 v4-pro on hard turns \xB7 default)" };
15989
15991
  }
15990
- if (name === "smart") {
15992
+ if (name === "flash") {
15993
+ const p = PRESETS.flash;
15991
15994
  loop2.configure({
15992
- model: "deepseek-v4-flash",
15993
- reasoningEffort: "max",
15994
- harvest: false,
15995
- branch: 1
15995
+ model: p.model,
15996
+ autoEscalate: p.autoEscalate,
15997
+ reasoningEffort: p.reasoningEffort,
15998
+ harvest: p.harvest,
15999
+ branch: p.branch
15996
16000
  });
15997
- applyAndPersist("max");
15998
- return { info: "preset \u2192 smart (v4-flash \xB7 effort=max \xB7 default \xB7 ~1.5\xD7 fast)" };
16001
+ applyAndPersist(p.reasoningEffort);
16002
+ return { info: "preset \u2192 flash (v4-flash always \xB7 cheapest \xB7 /pro still bumps one turn)" };
15999
16003
  }
16000
- if (name === "max" || name === "best") {
16004
+ if (name === "pro") {
16005
+ const p = PRESETS.pro;
16001
16006
  loop2.configure({
16002
- model: "deepseek-v4-pro",
16003
- reasoningEffort: "max",
16004
- harvest: false,
16005
- branch: 1
16007
+ model: p.model,
16008
+ autoEscalate: p.autoEscalate,
16009
+ reasoningEffort: p.reasoningEffort,
16010
+ harvest: p.harvest,
16011
+ branch: p.branch
16006
16012
  });
16007
- applyAndPersist("max");
16008
- return {
16009
- info: "preset \u2192 max (v4-pro \xB7 effort=max \xB7 ~12\xD7 fast \xB7 save for hard tasks, or use /pro for a single-turn bump)"
16010
- };
16013
+ applyAndPersist(p.reasoningEffort);
16014
+ return { info: "preset \u2192 pro (v4-pro always \xB7 ~3\xD7 flash \xB7 for hard multi-turn work)" };
16011
16015
  }
16012
- return { info: "usage: /preset <fast|smart|max>" };
16016
+ return { info: "usage: /preset <auto|flash|pro>" };
16013
16017
  };
16014
16018
  var branch = (args, loop2) => {
16015
16019
  const raw = (args[0] ?? "").toLowerCase();
@@ -21065,7 +21069,7 @@ function Wizard({ onComplete, onCancel, existingApiKey, initial }) {
21065
21069
  const [step, setStep] = useState15(existingApiKey ? "preset" : "apiKey");
21066
21070
  const [data, setData] = useState15({
21067
21071
  apiKey: existingApiKey ?? "",
21068
- preset: initial?.preset ?? "fast",
21072
+ preset: initial?.preset ?? "auto",
21069
21073
  selectedCatalog: deriveInitialCatalog(initial?.mcp ?? []),
21070
21074
  catalogArgs: {}
21071
21075
  });
@@ -21510,7 +21514,7 @@ program.command("setup").description("Interactive wizard \u2014 API key, preset,
21510
21514
  await setupCommand({});
21511
21515
  });
21512
21516
  program.command("code [dir]").description(
21513
- "Code-editing chat \u2014 filesystem tools rooted at <dir> (default: cwd), coding system prompt, v4-flash. Model proposes SEARCH/REPLACE blocks; Reasonix applies them to disk. Use /preset max or /pro to escalate to v4-pro on hard tasks."
21517
+ "Code-editing chat \u2014 filesystem tools rooted at <dir> (default: cwd), coding system prompt, v4-flash baseline. Model proposes SEARCH/REPLACE blocks; Reasonix applies them to disk. Use /preset pro or /pro to lock v4-pro on hard tasks."
21514
21518
  ).option("-m, --model <id>", "Override default model (v4-flash)").option("--no-session", "Disable session persistence for this run").option("-r, --resume", "Skip the session picker \u2014 always continue prior messages").option("-n, --new", "Skip the session picker \u2014 always wipe prior messages and start fresh").option("--transcript <path>", "Write a JSONL transcript to this path").option(
21515
21519
  "--harvest",
21516
21520
  "Opt-in Pillar-2 plan-state extraction. Adds one flash call per turn; off by default (no preset enables it)."
@@ -21531,7 +21535,7 @@ program.command("code [dir]").description(
21531
21535
  });
21532
21536
  program.command("chat").description("Interactive Ink TUI with live cache/cost panel.").option("-m, --model <id>", "DeepSeek model id (overrides preset)").option("-s, --system <prompt>", "System prompt (pinned in the immutable prefix)", DEFAULT_SYSTEM).option("--transcript <path>", "Write a JSONL transcript to this path").option(
21533
21537
  "--preset <name>",
21534
- "Model + effort bundle. One of: fast (flash\xB7high), smart (flash\xB7max, default), max (pro\xB7max). Overrides config.preset."
21538
+ "Model bundle. One of: auto (flash \u2192 pro on hard turns, default), flash (always flash), pro (always pro). Overrides config.preset."
21535
21539
  ).option(
21536
21540
  "--harvest",
21537
21541
  "Opt-in Pillar-2 plan-state extraction. Off by default \u2014 no preset enables it."
@@ -21584,7 +21588,7 @@ program.command("chat").description("Interactive Ink TUI with live cache/cost pa
21584
21588
  noDashboard: opts.dashboard === false
21585
21589
  });
21586
21590
  });
21587
- program.command("run <task>").description("Run a single task non-interactively, streaming output.").option("-m, --model <id>", "DeepSeek model id (overrides preset)").option("-s, --system <prompt>", "System prompt", DEFAULT_SYSTEM).option("--preset <name>", "Bundle of model + harvest + branch: fast | smart | max").option("--harvest", "Extract typed plan state from R1 reasoning (Pillar 2)").option(
21591
+ program.command("run <task>").description("Run a single task non-interactively, streaming output.").option("-m, --model <id>", "DeepSeek model id (overrides preset)").option("-s, --system <prompt>", "System prompt", DEFAULT_SYSTEM).option("--preset <name>", "Model bundle: auto | flash | pro (default: auto)").option("--harvest", "Extract typed plan state from R1 reasoning (Pillar 2)").option(
21588
21592
  "--branch <n>",
21589
21593
  "Self-consistency: run N parallel samples per turn and pick the most confident",
21590
21594
  (v) => Number.parseInt(v, 10)