nexrall-code 0.5.108 → 0.5.109
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/index.js +17 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12210,8 +12210,8 @@ var require_agentTypes = __commonJS({
|
|
|
12210
12210
|
]);
|
|
12211
12211
|
exports2.VALID_MODELS = [
|
|
12212
12212
|
"claude-sonnet-5",
|
|
12213
|
-
"claude-opus-5",
|
|
12214
|
-
"claude-fable-5",
|
|
12213
|
+
"claude-opus-5-5",
|
|
12214
|
+
"claude-fable-5-1",
|
|
12215
12215
|
"gpt-5.4",
|
|
12216
12216
|
"gpt-5.4-mini",
|
|
12217
12217
|
"gpt-4.1",
|
|
@@ -105699,8 +105699,8 @@ ${partial}` : "",
|
|
|
105699
105699
|
fast: 2e5,
|
|
105700
105700
|
// Anthropic, by real model id.
|
|
105701
105701
|
"claude-sonnet-5": 1e6,
|
|
105702
|
-
"claude-opus-5": 1e6,
|
|
105703
|
-
"claude-fable-5": 1e6,
|
|
105702
|
+
"claude-opus-5-5": 1e6,
|
|
105703
|
+
"claude-fable-5-1": 1e6,
|
|
105704
105704
|
"claude-haiku-4-5-20251001": 2e5,
|
|
105705
105705
|
// OpenAI, by real model id (measured).
|
|
105706
105706
|
"gpt-5.4": 922e3,
|
|
@@ -154737,8 +154737,8 @@ var CLI_VERSION = (() => {
|
|
|
154737
154737
|
})();
|
|
154738
154738
|
var MODEL_LABELS = {
|
|
154739
154739
|
"claude-sonnet-5": "Claude Sonnet 5",
|
|
154740
|
-
"claude-opus-5": "Claude Opus 5",
|
|
154741
|
-
"claude-fable-5": "Claude Fable 5",
|
|
154740
|
+
"claude-opus-5-5": "Claude Opus 5",
|
|
154741
|
+
"claude-fable-5-1": "Claude Fable 5",
|
|
154742
154742
|
"claude-haiku-4-5-20251001": "Claude Haiku 4.5",
|
|
154743
154743
|
"gpt-5.6-sol": "GPT-5.6 Sol",
|
|
154744
154744
|
"gpt-5.6-terra": "GPT-5.6 Terra",
|
|
@@ -154753,15 +154753,15 @@ var MODEL_LABELS = {
|
|
|
154753
154753
|
var LEGACY_MODEL_ALIASES = {
|
|
154754
154754
|
turbo: "claude-sonnet-5",
|
|
154755
154755
|
auto: "claude-sonnet-5",
|
|
154756
|
-
pro: "claude-opus-5",
|
|
154757
|
-
power: "claude-opus-5",
|
|
154758
|
-
ultra: "claude-fable-5",
|
|
154756
|
+
pro: "claude-opus-5-5",
|
|
154757
|
+
power: "claude-opus-5-5",
|
|
154758
|
+
ultra: "claude-fable-5-1",
|
|
154759
154759
|
fast: "claude-haiku-4-5-20251001"
|
|
154760
154760
|
};
|
|
154761
154761
|
var SELECTABLE_MODELS = [
|
|
154762
154762
|
"claude-sonnet-5",
|
|
154763
|
-
"claude-opus-5",
|
|
154764
|
-
"claude-fable-5",
|
|
154763
|
+
"claude-opus-5-5",
|
|
154764
|
+
"claude-fable-5-1",
|
|
154765
154765
|
"gpt-5.6-sol",
|
|
154766
154766
|
"gpt-5.6-terra",
|
|
154767
154767
|
"gpt-5.6-luna",
|
|
@@ -154774,8 +154774,8 @@ var SELECTABLE_MODELS = [
|
|
|
154774
154774
|
];
|
|
154775
154775
|
var MODEL_COST_MULTIPLIER = {
|
|
154776
154776
|
"claude-sonnet-5": 1.5,
|
|
154777
|
-
"claude-opus-5": 3,
|
|
154778
|
-
"claude-fable-5": 5,
|
|
154777
|
+
"claude-opus-5-5": 3,
|
|
154778
|
+
"claude-fable-5-1": 5,
|
|
154779
154779
|
// GPT-5.6 family (2026-07 launch, Terra/Luna repriced 2026-07-30) — same
|
|
154780
154780
|
// relative-to-gpt-4.1/qwen3.7-max (=1x) signal as every other row here,
|
|
154781
154781
|
// off backend migration 132's per-1M-token seed prices (Sol $5/$30, Terra
|
|
@@ -154822,7 +154822,7 @@ function selectableModelIds() {
|
|
|
154822
154822
|
function normaliseModelId(model) {
|
|
154823
154823
|
const raw = (model ?? "").trim();
|
|
154824
154824
|
if (!raw)
|
|
154825
|
-
return "
|
|
154825
|
+
return "deepseek-flash";
|
|
154826
154826
|
return LEGACY_MODEL_ALIASES[raw.toLowerCase()] ?? raw;
|
|
154827
154827
|
}
|
|
154828
154828
|
var MODEL_EFFORT_STYLE = {
|
|
@@ -155487,7 +155487,7 @@ function printHelp() {
|
|
|
155487
155487
|
["/worktree [list]", "Show this session's worktree isolation status, or list every worktree (start one with `nex --worktree [name]`)"],
|
|
155488
155488
|
["/peers [send <name> <msg>|broadcast <msg>]", "List other discoverable Nexrall Code sessions, message one directly, or broadcast to all"],
|
|
155489
155489
|
["/help", "Show this help"],
|
|
155490
|
-
["/model [name]", "Switch model (e.g. claude-opus-5, gpt-5.4)"],
|
|
155490
|
+
["/model [name]", "Switch model (e.g. claude-opus-5-5, gpt-5.4)"],
|
|
155491
155491
|
["/mode [ask|edit|plan|auto]", "Set agent mode"],
|
|
155492
155492
|
["/effort [level]", "Set thinking effort level (options depend on the current model \u2014 run /effort with no argument to see them)"],
|
|
155493
155493
|
["/yolo", "Auto-approve all permissions"],
|
|
@@ -157077,12 +157077,12 @@ program2.command("sessions").description("List or delete saved chat sessions").o
|
|
|
157077
157077
|
console.log(source_default.dim(" nex sessions --delete <id> to remove one"));
|
|
157078
157078
|
console.log();
|
|
157079
157079
|
});
|
|
157080
|
-
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("-w, --worktree [name]", "Isolate this session in its own worktree \u2014 a separate directory (and, in a git repo, its own branch) so it can never overwrite files another session (or you) are touching in the main checkout. Omit a name for an auto-generated one; pass an existing name to resume that same worktree.").option("-e, --effort <level>", "Thinking effort \u2014 real levels depend on the model (e.g. DeepSeek: low|high|max, Qwen: low|high); run `nex --model <id>` then `/effort` with no argument to see a model's scale").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)").option("--audit [path]", "Log every tool call (and refusal) to a JSONL trail (default: .nexrall/audit/<session>.jsonl)").argument("[prompt...]", "One-shot prompt \u2014 if omitted, starts interactive mode").action(async (promptParts, options) => {
|
|
157080
|
+
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-5 | gpt-5.4 | gpt-4.1").option("-r, --resume [id]", "Resume last session, or a specific session id").option("-w, --worktree [name]", "Isolate this session in its own worktree \u2014 a separate directory (and, in a git repo, its own branch) so it can never overwrite files another session (or you) are touching in the main checkout. Omit a name for an auto-generated one; pass an existing name to resume that same worktree.").option("-e, --effort <level>", "Thinking effort \u2014 real levels depend on the model (e.g. DeepSeek: low|high|max, Qwen: low|high); run `nex --model <id>` then `/effort` with no argument to see a model's scale").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)").option("--audit [path]", "Log every tool call (and refusal) to a JSONL trail (default: .nexrall/audit/<session>.jsonl)").argument("[prompt...]", "One-shot prompt \u2014 if omitted, starts interactive mode").action(async (promptParts, options) => {
|
|
157081
157081
|
if (!(0, import_code_core7.isAuthenticated)()) {
|
|
157082
157082
|
console.error("Not logged in. Run: nex auth");
|
|
157083
157083
|
process.exit(1);
|
|
157084
157084
|
}
|
|
157085
|
-
const model = options.model ? options.model : options.ultra ? "claude-fable-5" : options.pro ? "claude-opus-5" : options.turbo ? "claude-sonnet-5" : "
|
|
157085
|
+
const model = options.model ? options.model : options.ultra ? "claude-fable-5-1" : options.pro ? "claude-opus-5-5" : options.turbo ? "claude-sonnet-5" : "deepseek-flash";
|
|
157086
157086
|
const workDir = options.dir ? path7.resolve(options.dir) : process.cwd();
|
|
157087
157087
|
if (options.yolo)
|
|
157088
157088
|
setAutoApprove("all");
|