claudish 12.2.1 → 12.3.0

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -8
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -901,7 +901,7 @@ var init_onepassword_config = __esm(() => {
901
901
  });
902
902
 
903
903
  // src/version.ts
904
- var VERSION = "12.2.1";
904
+ var VERSION = "12.3.0";
905
905
 
906
906
  // src/logger.ts
907
907
  import { appendFile, existsSync as existsSync2, mkdirSync, readdirSync, unlinkSync, writeFileSync as writeFileSync2 } from "fs";
@@ -30248,6 +30248,9 @@ function decideLaunchRole(facts) {
30248
30248
  return "never";
30249
30249
  return "interactive-launch";
30250
30250
  }
30251
+ function decideTuiRole(env = process.env) {
30252
+ return inMcpSession(env) ? "never" : "tui";
30253
+ }
30251
30254
  var role = "never", fixed = false;
30252
30255
  var init_prompt_role = __esm(() => {
30253
30256
  init_child_env();
@@ -30919,7 +30922,8 @@ function displayPath2(path) {
30919
30922
  return path.startsWith(`${home}/`) ? `~${path.slice(home.length)}` : path;
30920
30923
  }
30921
30924
  function describeMuseSigningSource(opts = {}) {
30922
- if (opts.probed && lastRejection) {
30925
+ const signedAndLive = opts.signedWith !== undefined && opts.failure === undefined;
30926
+ if (opts.probed && lastRejection && !signedAndLive) {
30923
30927
  return { present: false, label: "Muse Code login rejected", detail: lastRejection };
30924
30928
  }
30925
30929
  if (opts.signedWith) {
@@ -63910,7 +63914,7 @@ function clampPaneSize(cols, rows) {
63910
63914
  function samePaneSize(a, b) {
63911
63915
  return !!a && !!b && a.cols === b.cols && a.rows === b.rows;
63912
63916
  }
63913
- var DEFAULT_PANE_COLS = 160, DEFAULT_PANE_ROWS = 50, MIN_PANE_COLS = 80, MAX_PANE_COLS = 9999, MIN_PANE_ROWS = 24, MAX_PANE_ROWS = 9999, MAX_PANE_CELLS = 4000000, RESIZE_QUIET_MS = 2000;
63917
+ var DEFAULT_PANE_COLS = 160, DEFAULT_PANE_ROWS = 50, MIN_PANE_COLS = 40, MAX_PANE_COLS = 9999, MIN_PANE_ROWS = 24, MAX_PANE_ROWS = 9999, MAX_PANE_CELLS = 4000000, RESIZE_QUIET_MS = 2000;
63914
63918
 
63915
63919
  // src/pane/process-identity.ts
63916
63920
  import { execFile, execFileSync as execFileSync2 } from "child_process";
@@ -65971,7 +65975,8 @@ function isUnnamedChoice(lines) {
65971
65975
  const yesNo = lines.some((l) => /^\s*(\u276F\s*)?(\d+\.\s+)?(Yes|No)\b|\(esc\)/.test(l));
65972
65976
  if (numbered && yesNo)
65973
65977
  return true;
65974
- return lines.some((l) => /Press Enter to continue/.test(l) || SELECT_FOOTER2.test(l));
65978
+ const flat = flatText(lines);
65979
+ return /Press Enter to continue/.test(flat) || SELECT_FOOTER2.test(flat);
65975
65980
  }
65976
65981
  function nameBootScreen(s) {
65977
65982
  const named = namedDialog(flatText(s.lines));
@@ -73096,7 +73101,7 @@ Use with: run_prompt(model="${suggested}", prompt="your prompt")`;
73096
73101
  },
73097
73102
  cols: {
73098
73103
  type: "integer",
73099
- description: "For 'resize' (required): the terminal width in columns, clamped to 80\u20139999. The " + "answer {run_id, path, slot, cols, rows, changed, seq} reports the size set."
73104
+ description: "For 'resize' (required): the terminal width in columns, clamped to 40\u20139999. The " + "answer {run_id, path, slot, cols, rows, changed, seq} reports the size set."
73100
73105
  },
73101
73106
  rows: {
73102
73107
  type: "integer",
@@ -73700,12 +73705,12 @@ Report manually at https://github.com/anthropics/claudish/issues${autoSendHint}`
73700
73705
  });
73701
73706
  tools.push({
73702
73707
  name: "resize_session",
73703
- description: "Set a session's terminal size: the child gets a real SIGWINCH and Claude Code reflows. " + "Allowed at any time, mid-turn included; the last call wins. The size is clamped to " + "cols 80\u20139999, rows 24\u20139999 and at most 4 000 000 cells (magmux's limits); the answer " + "{session_id, cols, rows, changed, seq, pending?} reports the size set. `seq` is the screen's seq after the resize: the next capture_session " + "shows the new cols/rows. `changed:false` = already that size. `pending:true` = the pane " + "is starting or its socket is reconnecting; the size is applied then. A finished session " + "answers its last size with changed:false. Errors are a JSON ContractError " + "(`resize_unsupported` when the installed magmux has no resize op).",
73708
+ description: "Set a session's terminal size: the child gets a real SIGWINCH and Claude Code reflows. " + "Allowed at any time, mid-turn included; the last call wins. The size is clamped to " + "cols 40\u20139999, rows 24\u20139999 and at most 4 000 000 cells (claudish's floor, magmux's " + "ceiling); the answer " + "{session_id, cols, rows, changed, seq, pending?} reports the size set. `seq` is the screen's seq after the resize: the next capture_session " + "shows the new cols/rows. `changed:false` = already that size. `pending:true` = the pane " + "is starting or its socket is reconnecting; the size is applied then. A finished session " + "answers its last size with changed:false. Errors are a JSON ContractError " + "(`resize_unsupported` when the installed magmux has no resize op).",
73704
73709
  inputSchema: {
73705
73710
  type: "object",
73706
73711
  properties: {
73707
73712
  session_id: { type: "string", description: "Session ID from create_session" },
73708
- cols: { type: "integer", description: "Terminal width in columns (clamped to 80\u20139999)" },
73713
+ cols: { type: "integer", description: "Terminal width in columns (clamped to 40\u20139999)" },
73709
73714
  rows: {
73710
73715
  type: "integer",
73711
73716
  description: "Terminal height in rows (clamped to 24\u20139999 and 4 000 000 cells)"
@@ -83243,7 +83248,7 @@ import { createCliRenderer as createCliRenderer3 } from "@opentui/core";
83243
83248
  import { createRoot as createRoot3 } from "@opentui/react";
83244
83249
  import { jsx as jsx28 } from "@opentui/react/jsx-runtime";
83245
83250
  async function startConfigTui() {
83246
- setCredentialPromptRole("tui");
83251
+ setCredentialPromptRole(decideTuiRole());
83247
83252
  ensureEndpointsRegistered();
83248
83253
  setStderrQuiet(true);
83249
83254
  const loginRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudish",
3
- "version": "12.2.1",
3
+ "version": "12.3.0",
4
4
  "description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -60,10 +60,10 @@
60
60
  "ai"
61
61
  ],
62
62
  "optionalDependencies": {
63
- "@claudish/magmux-darwin-arm64": "12.2.1",
64
- "@claudish/magmux-darwin-x64": "12.2.1",
65
- "@claudish/magmux-linux-arm64": "12.2.1",
66
- "@claudish/magmux-linux-x64": "12.2.1"
63
+ "@claudish/magmux-darwin-arm64": "12.3.0",
64
+ "@claudish/magmux-darwin-x64": "12.3.0",
65
+ "@claudish/magmux-linux-arm64": "12.3.0",
66
+ "@claudish/magmux-linux-x64": "12.3.0"
67
67
  },
68
68
  "author": "Jack Rudenko <i@madappgang.com>",
69
69
  "license": "MIT",