claudish 12.1.0 → 12.1.2
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 +10 -14
- 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.1.
|
|
904
|
+
var VERSION = "12.1.2";
|
|
905
905
|
|
|
906
906
|
// src/logger.ts
|
|
907
907
|
import { appendFile, existsSync as existsSync2, mkdirSync, readdirSync, unlinkSync, writeFileSync as writeFileSync2 } from "fs";
|
|
@@ -64232,12 +64232,6 @@ function mintPaneId(kind, label) {
|
|
|
64232
64232
|
throw new Error(`minted an invalid pane id: ${id}`);
|
|
64233
64233
|
return id;
|
|
64234
64234
|
}
|
|
64235
|
-
function sockPathFor(root, id) {
|
|
64236
|
-
const p = sockPathOf(root, id);
|
|
64237
|
-
if (Buffer.byteLength(p) >= 100)
|
|
64238
|
-
throw new PaneRootError(`pane socket path ${p} is ${Buffer.byteLength(p)} bytes; it must be < 100`);
|
|
64239
|
-
return p;
|
|
64240
|
-
}
|
|
64241
64235
|
function isStrippedFromChildEnv(key) {
|
|
64242
64236
|
return STRIPPED_CHILD_VARS.includes(key) || key.startsWith("MAGMUX_") || TERMINAL_IDENTITY_VARS.includes(key) || TERMINAL_IDENTITY_PREFIXES.some((p) => key.startsWith(p)) || HOST_IDENTITY_VARS.includes(key);
|
|
64243
64237
|
}
|
|
@@ -64252,6 +64246,8 @@ function buildPaneEnv(input) {
|
|
|
64252
64246
|
env.LINES = String(input.rows ?? DEFAULT_PANE_ROWS);
|
|
64253
64247
|
if (input.parentEnv.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC === undefined)
|
|
64254
64248
|
env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = "1";
|
|
64249
|
+
if (input.parentEnv.CLAUDE_CODE_NATIVE_CURSOR === undefined)
|
|
64250
|
+
env.CLAUDE_CODE_NATIVE_CURSOR = "1";
|
|
64255
64251
|
Object.assign(env, input.slotEnv);
|
|
64256
64252
|
env[ENV.CLAUDISH_PANE_CHILD] = "1";
|
|
64257
64253
|
env[ENV.CLAUDISH_PANE_CWD] = input.cwd;
|
|
@@ -64402,7 +64398,7 @@ async function probeMagmux(binary) {
|
|
|
64402
64398
|
if (!version)
|
|
64403
64399
|
version = await readMagmuxVersion(found);
|
|
64404
64400
|
if (!version || !versionAtLeast(version, MIN_MAGMUX_VERSION))
|
|
64405
|
-
throw new MagmuxUnavailableError(`magmux_unavailable: ${found} is version ${version || "unknown"}; panes need >= ${MIN_MAGMUX_VERSION} (the Claude Code input gate bound to a named transcript); upgrade: brew upgrade MadAppGang/tap/magmux`);
|
|
64401
|
+
throw new MagmuxUnavailableError(`magmux_unavailable: ${found} is version ${version || "unknown"}; panes need >= ${MIN_MAGMUX_VERSION} (a socket at any path depth, and the Claude Code input gate bound to a named transcript); upgrade: brew upgrade MadAppGang/tap/magmux`);
|
|
64406
64402
|
return { binary: found, version };
|
|
64407
64403
|
}
|
|
64408
64404
|
async function readMagmuxVersion(found) {
|
|
@@ -64491,7 +64487,7 @@ function spawnPaneMagmux(input) {
|
|
|
64491
64487
|
proc.on("error", () => {});
|
|
64492
64488
|
return proc;
|
|
64493
64489
|
}
|
|
64494
|
-
var SOCK_ROOT, PaneRootError, OWNER_START36, TERMINAL_IDENTITY_VARS, TERMINAL_IDENTITY_PREFIXES, HOST_IDENTITY_VARS, LINUX_ENV_STRING_LIMIT = 131000, PaneEnvTooLargeError, OWN_ARGV, TRANSPORT_BREAKERS, IDENTITY_BREAKERS, PRINT_ONLY_FLAGS, MODE_FLAGS, SUBCOMMAND_WORDS, CLAUDE_CODE_VALUE_FLAGS, KNOWN_CLAUDISH_FLAGS, MIN_MAGMUX_VERSION = "0.
|
|
64490
|
+
var SOCK_ROOT, PaneRootError, OWNER_START36, TERMINAL_IDENTITY_VARS, TERMINAL_IDENTITY_PREFIXES, HOST_IDENTITY_VARS, LINUX_ENV_STRING_LIMIT = 131000, PaneEnvTooLargeError, OWN_ARGV, TRANSPORT_BREAKERS, IDENTITY_BREAKERS, PRINT_ONLY_FLAGS, MODE_FLAGS, SUBCOMMAND_WORDS, CLAUDE_CODE_VALUE_FLAGS, KNOWN_CLAUDISH_FLAGS, MIN_MAGMUX_VERSION = "0.18.0", MagmuxUnavailableError, magmuxCache, magmuxProbes, execFileAsync, ClaudishNotFoundError, SHELL_SHIM = `#!/bin/sh
|
|
64495
64491
|
[ "$1" = -l ] && shift
|
|
64496
64492
|
exec /bin/sh "$@"
|
|
64497
64493
|
`, FATAL_MAGMUX_STDERR;
|
|
@@ -64670,7 +64666,7 @@ var init_pane_launch = __esm(() => {
|
|
|
64670
64666
|
ClaudishNotFoundError = class ClaudishNotFoundError extends Error {
|
|
64671
64667
|
code = "pane_lost";
|
|
64672
64668
|
};
|
|
64673
|
-
FATAL_MAGMUX_STDERR = /ignoring --id|
|
|
64669
|
+
FATAL_MAGMUX_STDERR = /ignoring --id|magmux: (?:--sock-dir|MAGMUX_SOCK_DIR) |magmux: socket/;
|
|
64674
64670
|
});
|
|
64675
64671
|
|
|
64676
64672
|
// src/pane/magmux-client.ts
|
|
@@ -69012,7 +69008,7 @@ function preparePane(o, root, parentEnv) {
|
|
|
69012
69008
|
let dirs = null;
|
|
69013
69009
|
try {
|
|
69014
69010
|
const paneId = mintPaneId(o.kind, o.label);
|
|
69015
|
-
const sockPath =
|
|
69011
|
+
const sockPath = sockPathOf(root, paneId);
|
|
69016
69012
|
const cwd = realpathSync4(o.cwd);
|
|
69017
69013
|
const launch = o.claudishSpawn ?? resolveClaudishLaunch(parentEnv);
|
|
69018
69014
|
dirs = createLaunchDirs(root);
|
|
@@ -73389,7 +73385,7 @@ Report manually at https://github.com/anthropics/claudish/issues${autoSendHint}`
|
|
|
73389
73385
|
});
|
|
73390
73386
|
tools.push({
|
|
73391
73387
|
name: "create_session",
|
|
73392
|
-
description: "Create a new claudish proxy session for an external model: an interactive Claude Code running " + "it in its own headless magmux pane. Returns at once with state STARTING; nothing is " + "pushed while it runs: poll list_sessions (about once every 10 s) for its state, then " + "call get_output once it is COMPLETED. With a prompt it is one-shot (it ends when that turn " +
|
|
73388
|
+
description: "Create a new claudish proxy session for an external model: an interactive Claude Code running " + "it in its own headless magmux pane. Returns at once with state STARTING; nothing is " + "pushed while it runs: poll list_sessions (about once every 10 s) for its state, then " + "call get_output once it is COMPLETED. With a prompt it is one-shot (it ends when that turn " + `settles); without one it is interactive and waits for send_input. Needs magmux >= ${MIN_MAGMUX_VERSION} ` + "(darwin and linux).",
|
|
73393
73389
|
inputSchema: {
|
|
73394
73390
|
type: "object",
|
|
73395
73391
|
properties: {
|
|
@@ -73845,7 +73841,7 @@ var init_mcp_server = __esm(() => {
|
|
|
73845
73841
|
prompt_not_accepted: "the REPL never took the prompt \u2014 read the evidence screen; retry",
|
|
73846
73842
|
prompt_not_read: "the child never read all of its task file \u2014 check that its agent or tool flags allow " + "Read and that the model can call tools; `what` says which lines were read",
|
|
73847
73843
|
child_exited: "read the evidence screen, then retry or drop the model",
|
|
73848
|
-
pane_lost:
|
|
73844
|
+
pane_lost: `magmux died \u2014 check \`magmux --version\` \u2265 ${MIN_MAGMUX_VERSION} and retry`,
|
|
73849
73845
|
blocked: "the child asked a question team cannot answer \u2014 make the prompt self-contained or use " + "create_session",
|
|
73850
73846
|
api_error: "retry once, or route via a different provider (or@<model>)",
|
|
73851
73847
|
refused: "the model refused \u2014 rephrase or drop the model",
|
|
@@ -74418,7 +74414,7 @@ Options (run / run-and-judge):
|
|
|
74418
74414
|
--timeout <secs> Grid modes only: magmux's own per-pane timeout (default: 300).
|
|
74419
74415
|
json mode has no deadline \u2014 nothing kills a working model.
|
|
74420
74416
|
json mode runs each model as an interactive pane in a headless
|
|
74421
|
-
magmux (>=
|
|
74417
|
+
magmux (>= ${MIN_MAGMUX_VERSION}; darwin and linux).
|
|
74422
74418
|
--grid Show all models in a magmux grid with live output + status bar
|
|
74423
74419
|
--mode <m> run only: json (default, panes), default (the grid, as --grid)
|
|
74424
74420
|
or interactive (as --interactive)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.2",
|
|
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.1.
|
|
64
|
-
"@claudish/magmux-darwin-x64": "12.1.
|
|
65
|
-
"@claudish/magmux-linux-arm64": "12.1.
|
|
66
|
-
"@claudish/magmux-linux-x64": "12.1.
|
|
63
|
+
"@claudish/magmux-darwin-arm64": "12.1.2",
|
|
64
|
+
"@claudish/magmux-darwin-x64": "12.1.2",
|
|
65
|
+
"@claudish/magmux-linux-arm64": "12.1.2",
|
|
66
|
+
"@claudish/magmux-linux-x64": "12.1.2"
|
|
67
67
|
},
|
|
68
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
69
69
|
"license": "MIT",
|