nexrall-code 0.5.67 → 0.5.69
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 +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -64764,6 +64764,21 @@ var SELECTABLE_MODELS = [
|
|
|
64764
64764
|
"deepseek-v4-flash",
|
|
64765
64765
|
"qwen3.7-max"
|
|
64766
64766
|
];
|
|
64767
|
+
var MODEL_COST_MULTIPLIER = {
|
|
64768
|
+
"claude-sonnet-5": 1.5,
|
|
64769
|
+
"claude-opus-5": 3,
|
|
64770
|
+
"claude-fable-5": 5,
|
|
64771
|
+
"gpt-5.4": 2,
|
|
64772
|
+
"gpt-5.4-mini": 0.5,
|
|
64773
|
+
"gpt-4.1": 1,
|
|
64774
|
+
"deepseek-v4-pro": 0.1,
|
|
64775
|
+
"deepseek-v4-flash": 0.05,
|
|
64776
|
+
"qwen3.7-max": 1
|
|
64777
|
+
};
|
|
64778
|
+
function modelWithCostHint(id) {
|
|
64779
|
+
const mult = MODEL_COST_MULTIPLIER[id];
|
|
64780
|
+
return mult === void 0 ? id : `${id} (${mult}x)`;
|
|
64781
|
+
}
|
|
64767
64782
|
var NO_VISION_MODELS = /* @__PURE__ */ new Set(["deepseek-v4-pro", "deepseek-v4-flash", "qwen3.7-max"]);
|
|
64768
64783
|
var NO_PDF_MODELS = /* @__PURE__ */ new Set([
|
|
64769
64784
|
"gpt-5.4",
|
|
@@ -65497,6 +65512,8 @@ ${text}` : "");
|
|
|
65497
65512
|
checkpoints.commitTurn();
|
|
65498
65513
|
updateTitle();
|
|
65499
65514
|
saveSession(sessionId, sessionTitle, workDir, messages);
|
|
65515
|
+
await new Promise((r2) => setImmediate(r2));
|
|
65516
|
+
process.exit(0);
|
|
65500
65517
|
} catch (err) {
|
|
65501
65518
|
const salvaged = (0, import_code_core3.salvageHistory)(err);
|
|
65502
65519
|
if (salvaged) {
|
|
@@ -65828,7 +65845,7 @@ ${dirList}`;
|
|
|
65828
65845
|
const requested = arg.trim();
|
|
65829
65846
|
if (!requested) {
|
|
65830
65847
|
console.log(source_default.dim(` Current: ${source_default.cyan(resolveModelLabel(modelAlias))}`));
|
|
65831
|
-
console.log(source_default.dim(` Options: ${SELECTABLE_MODELS.join(" \xB7 ")}`));
|
|
65848
|
+
console.log(source_default.dim(` Options: ${SELECTABLE_MODELS.map(modelWithCostHint).join(" \xB7 ")}`));
|
|
65832
65849
|
} else if (SELECTABLE_MODELS.includes(normaliseModelId(requested))) {
|
|
65833
65850
|
modelAlias = normaliseModelId(requested);
|
|
65834
65851
|
console.log(source_default.green(` Model \u2192 ${source_default.bold(resolveModelLabel(modelAlias))}`));
|