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 +39 -35
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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: "<
|
|
14557
|
-
summary: "
|
|
14558
|
-
argCompleter: ["
|
|
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 <
|
|
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
|
-
"
|
|
15209
|
-
"
|
|
15210
|
-
"
|
|
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 === "
|
|
15980
|
+
if (name === "auto") {
|
|
15981
|
+
const p = PRESETS.auto;
|
|
15981
15982
|
loop2.configure({
|
|
15982
|
-
model:
|
|
15983
|
-
|
|
15984
|
-
|
|
15985
|
-
|
|
15983
|
+
model: p.model,
|
|
15984
|
+
autoEscalate: p.autoEscalate,
|
|
15985
|
+
reasoningEffort: p.reasoningEffort,
|
|
15986
|
+
harvest: p.harvest,
|
|
15987
|
+
branch: p.branch
|
|
15986
15988
|
});
|
|
15987
|
-
applyAndPersist(
|
|
15988
|
-
return { info: "preset \u2192
|
|
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 === "
|
|
15992
|
+
if (name === "flash") {
|
|
15993
|
+
const p = PRESETS.flash;
|
|
15991
15994
|
loop2.configure({
|
|
15992
|
-
model:
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
|
|
15995
|
+
model: p.model,
|
|
15996
|
+
autoEscalate: p.autoEscalate,
|
|
15997
|
+
reasoningEffort: p.reasoningEffort,
|
|
15998
|
+
harvest: p.harvest,
|
|
15999
|
+
branch: p.branch
|
|
15996
16000
|
});
|
|
15997
|
-
applyAndPersist(
|
|
15998
|
-
return { info: "preset \u2192
|
|
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 === "
|
|
16004
|
+
if (name === "pro") {
|
|
16005
|
+
const p = PRESETS.pro;
|
|
16001
16006
|
loop2.configure({
|
|
16002
|
-
model:
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16007
|
+
model: p.model,
|
|
16008
|
+
autoEscalate: p.autoEscalate,
|
|
16009
|
+
reasoningEffort: p.reasoningEffort,
|
|
16010
|
+
harvest: p.harvest,
|
|
16011
|
+
branch: p.branch
|
|
16006
16012
|
});
|
|
16007
|
-
applyAndPersist(
|
|
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 <
|
|
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 ?? "
|
|
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
|
|
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
|
|
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>", "
|
|
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)
|