omnius 1.0.56 → 1.0.57

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 CHANGED
@@ -104,7 +104,8 @@ function loadConfig() {
104
104
  const dryRun = process.env["OMNIUS_DRY_RUN"] !== void 0 ? parseBool(process.env["OMNIUS_DRY_RUN"]) : fromFile.dryRun ?? DEFAULT_CONFIG.dryRun;
105
105
  const verbose = process.env["OMNIUS_VERBOSE"] !== void 0 ? parseBool(process.env["OMNIUS_VERBOSE"]) : fromFile.verbose ?? DEFAULT_CONFIG.verbose;
106
106
  const dbPath = process.env["OMNIUS_DB_PATH"] ?? fromFile.dbPath ?? DEFAULT_CONFIG.dbPath;
107
- return { backendUrl: backendUrl2, model, backendType, apiKey, maxRetries, timeoutMs, dryRun, verbose, debug: fromFile.debug ?? DEFAULT_CONFIG.debug, dbPath };
107
+ const thinking = process.env["OMNIUS_THINK"] !== void 0 ? parseBool(process.env["OMNIUS_THINK"]) : process.env["OMNIUS_THINKING"] !== void 0 ? parseBool(process.env["OMNIUS_THINKING"]) : fromFile.thinking ?? DEFAULT_CONFIG.thinking ?? false;
108
+ return { backendUrl: backendUrl2, model, backendType, apiKey, maxRetries, timeoutMs, dryRun, verbose, debug: fromFile.debug ?? DEFAULT_CONFIG.debug, dbPath, thinking };
108
109
  }
109
110
  function mergeConfig(base3, overrides) {
110
111
  return { ...base3, ...overrides };
@@ -122,7 +123,7 @@ function omniusConfigDir() {
122
123
  }
123
124
  function coerceConfigValue(key, value2) {
124
125
  const intKeys = /* @__PURE__ */ new Set(["maxRetries", "timeoutMs"]);
125
- const boolKeys = /* @__PURE__ */ new Set(["dryRun", "verbose"]);
126
+ const boolKeys = /* @__PURE__ */ new Set(["dryRun", "verbose", "thinking"]);
126
127
  if (intKeys.has(key)) return parseInt(value2, 10);
127
128
  if (boolKeys.has(key)) return parseBool(value2);
128
129
  return value2;
@@ -141,6 +142,7 @@ var init_config = __esm({
141
142
  dryRun: false,
142
143
  verbose: false,
143
144
  debug: false,
145
+ thinking: false,
144
146
  dbPath: join(homedir(), ".omnius", "memory.db")
145
147
  });
146
148
  VALID_BACKEND_TYPES = /* @__PURE__ */ new Set(["ollama", "vllm", "fake", "nexus"]);
@@ -538871,14 +538873,14 @@ function computeEffectiveThink(params) {
538871
538873
  return false;
538872
538874
  if (params.suppressed)
538873
538875
  return false;
538876
+ if (params.hasTools)
538877
+ return false;
538874
538878
  const userOptedIn = params.requestThink === true || params.requestThink === void 0 && params.defaultThink === true;
538875
538879
  if (userOptedIn)
538876
538880
  return true;
538877
538881
  if (params.requestThink === false)
538878
538882
  return false;
538879
- if (params.hasTools)
538880
- return false;
538881
- if (process.env["OMNIUS_THINK_AUTO"] !== "0" && Array.isArray(params.messages)) {
538883
+ if (process.env["OMNIUS_THINK_AUTO"] === "1" && Array.isArray(params.messages)) {
538882
538884
  const blob = params.messages.filter((m2) => m2.role === "user" || m2.role === "system").map((m2) => typeof m2.content === "string" ? m2.content : "").join("\n").toLowerCase();
538883
538885
  if (/\b(plan|decompose|analyze(?:\s+complex)?|step\s*by\s*step|reason through|think through|reason step)\b/.test(blob)) {
538884
538886
  return true;
@@ -539448,7 +539450,7 @@ var init_agenticRunner = __esm({
539448
539450
  disableCodebaseMap: options2?.disableCodebaseMap ?? false,
539449
539451
  sessionId: options2?.sessionId ?? "",
539450
539452
  streamEnabled: options2?.streamEnabled ?? false,
539451
- thinking: options2?.thinking ?? true,
539453
+ thinking: options2?.thinking ?? false,
539452
539454
  bruteForce: options2?.bruteForce ?? true,
539453
539455
  bruteForceMaxCycles: options2?.bruteForceMaxCycles ?? 100,
539454
539456
  allowTurnExtension: options2?.allowTurnExtension ?? true,
@@ -551687,7 +551689,7 @@ var init_nexusBackend = __esm({
551687
551689
  this.model = model;
551688
551690
  this.targetPeer = targetPeer || "";
551689
551691
  this.authKey = authKey || "";
551690
- this.thinking = thinking ?? true;
551692
+ this.thinking = thinking ?? false;
551691
551693
  }
551692
551694
  /** Reset the consecutive failure counter (called on endpoint switch / reconnect) */
551693
551695
  resetFailures() {
@@ -561997,7 +561999,7 @@ ${icon} \x1B[38;5;198m${message2}\x1B[0m
561997
561999
  function renderInfo(message2) {
561998
562000
  const redir = _contentWriteHook?.redirect?.();
561999
562001
  const dim = dimFg();
562000
- const icon = `${dim}i\x1B[0m`;
562002
+ const icon = `${dim}∙\x1B[0m`;
562001
562003
  const text = `${icon} ${dim}${message2}\x1B[0m
562002
562004
  `;
562003
562005
  if (redir) {
@@ -590707,9 +590709,9 @@ Clone a new voice: /voice clone <wav-file> [name]`);
590707
590709
  if (token === "status" || token === "?") {
590708
590710
  const cur = ctx3.config.thinking ?? false;
590709
590711
  renderInfo(`Thinking mode: ${cur ? "on" : "off"} — ${desc(cur)}`);
590710
- if (process.env["OMNIUS_THINK_AUTO"] !== "0")
590712
+ if (process.env["OMNIUS_THINK_AUTO"] === "1")
590711
590713
  renderInfo(
590712
- "Auto-heuristic active (set OMNIUS_THINK_AUTO=0 to disable) — user messages with plan/decompose/analyze/step-by-step/reason-through auto-flip to think=on, tool calls stay off."
590714
+ "Auto-heuristic active — user messages with plan/decompose/analyze/step-by-step/reason-through auto-flip to think=on, tool calls stay off."
590713
590715
  );
590714
590716
  if (process.env["OMNIUS_FORCE_NO_THINK"] === "1")
590715
590717
  renderWarning(
@@ -590720,7 +590722,7 @@ Clone a new voice: /voice clone <wav-file> [name]`);
590720
590722
  if (token === "auto") {
590721
590723
  process.env["OMNIUS_THINK_AUTO"] = "1";
590722
590724
  renderInfo(
590723
- "Thinking auto-heuristic enabled (default since 0.187.372). User message containing plan/decompose/analyze/step-by-step/reason-through auto-flips think=on; tool calls still force off. Disable with OMNIUS_THINK_AUTO=0."
590725
+ "Thinking auto-heuristic enabled. User messages containing plan/decompose/analyze/step-by-step/reason-through auto-flip think=on; tool calls still force off. Disable with OMNIUS_THINK_AUTO=0."
590724
590726
  );
590725
590727
  return "handled";
590726
590728
  }
@@ -590734,13 +590736,16 @@ Clone a new voice: /voice clone <wav-file> [name]`);
590734
590736
  let isOn;
590735
590737
  if (token === "on" || token === "true" || token === "yes" || token === "1") {
590736
590738
  isOn = true;
590737
- ctx3.config.thinking = true;
590738
590739
  } else if (token === "off" || token === "false" || token === "no" || token === "0") {
590739
590740
  isOn = false;
590740
- ctx3.config.thinking = false;
590741
590741
  } else {
590742
590742
  isOn = ctx3.thinkToggle();
590743
590743
  }
590744
+ if (token) {
590745
+ const current = ctx3.config.thinking ?? false;
590746
+ if (current !== isOn) ctx3.thinkToggle();
590747
+ }
590748
+ ctx3.config.thinking = isOn;
590744
590749
  const save2 = hasLocal ? ctx3.saveLocalSettings.bind(ctx3) : ctx3.saveSettings.bind(ctx3);
590745
590750
  save2({ thinking: isOn });
590746
590751
  renderInfo(
@@ -644336,7 +644341,9 @@ async function startInteractive(config, repoPath) {
644336
644341
  if (savedSettings.dbPath)
644337
644342
  config = { ...config, dbPath: savedSettings.dbPath };
644338
644343
  let streamEnabled = savedSettings.stream !== false;
644339
- let thinkingEnabled = savedSettings.thinking !== false;
644344
+ const savedThinking = savedSettings.thinking;
644345
+ let thinkingEnabled = typeof savedThinking === "boolean" ? savedThinking : config.thinking === true;
644346
+ config = { ...config, thinking: thinkingEnabled };
644340
644347
  let bruteForceEnabled = savedSettings.bruteforce ?? true;
644341
644348
  let currentStyle = PRESET_NAMES.includes(
644342
644349
  savedSettings.style
@@ -646565,6 +646572,7 @@ The user pasted a clipboard image saved at ${relPath}. Use the OCR, vision analy
646565
646572
  },
646566
646573
  thinkToggle() {
646567
646574
  thinkingEnabled = !thinkingEnabled;
646575
+ currentConfig = { ...currentConfig, thinking: thinkingEnabled };
646568
646576
  return thinkingEnabled;
646569
646577
  },
646570
646578
  bruteForceToggle() {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.56",
9
+ "version": "1.0.57",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",