claudish 12.1.0 → 12.1.1
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 +8 -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.1";
|
|
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
|
}
|
|
@@ -64402,7 +64396,7 @@ async function probeMagmux(binary) {
|
|
|
64402
64396
|
if (!version)
|
|
64403
64397
|
version = await readMagmuxVersion(found);
|
|
64404
64398
|
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`);
|
|
64399
|
+
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
64400
|
return { binary: found, version };
|
|
64407
64401
|
}
|
|
64408
64402
|
async function readMagmuxVersion(found) {
|
|
@@ -64491,7 +64485,7 @@ function spawnPaneMagmux(input) {
|
|
|
64491
64485
|
proc.on("error", () => {});
|
|
64492
64486
|
return proc;
|
|
64493
64487
|
}
|
|
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.
|
|
64488
|
+
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
64489
|
[ "$1" = -l ] && shift
|
|
64496
64490
|
exec /bin/sh "$@"
|
|
64497
64491
|
`, FATAL_MAGMUX_STDERR;
|
|
@@ -64670,7 +64664,7 @@ var init_pane_launch = __esm(() => {
|
|
|
64670
64664
|
ClaudishNotFoundError = class ClaudishNotFoundError extends Error {
|
|
64671
64665
|
code = "pane_lost";
|
|
64672
64666
|
};
|
|
64673
|
-
FATAL_MAGMUX_STDERR = /ignoring --id|
|
|
64667
|
+
FATAL_MAGMUX_STDERR = /ignoring --id|magmux: (?:--sock-dir|MAGMUX_SOCK_DIR) |magmux: socket/;
|
|
64674
64668
|
});
|
|
64675
64669
|
|
|
64676
64670
|
// src/pane/magmux-client.ts
|
|
@@ -69012,7 +69006,7 @@ function preparePane(o, root, parentEnv) {
|
|
|
69012
69006
|
let dirs = null;
|
|
69013
69007
|
try {
|
|
69014
69008
|
const paneId = mintPaneId(o.kind, o.label);
|
|
69015
|
-
const sockPath =
|
|
69009
|
+
const sockPath = sockPathOf(root, paneId);
|
|
69016
69010
|
const cwd = realpathSync4(o.cwd);
|
|
69017
69011
|
const launch = o.claudishSpawn ?? resolveClaudishLaunch(parentEnv);
|
|
69018
69012
|
dirs = createLaunchDirs(root);
|
|
@@ -73389,7 +73383,7 @@ Report manually at https://github.com/anthropics/claudish/issues${autoSendHint}`
|
|
|
73389
73383
|
});
|
|
73390
73384
|
tools.push({
|
|
73391
73385
|
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 " +
|
|
73386
|
+
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
73387
|
inputSchema: {
|
|
73394
73388
|
type: "object",
|
|
73395
73389
|
properties: {
|
|
@@ -73845,7 +73839,7 @@ var init_mcp_server = __esm(() => {
|
|
|
73845
73839
|
prompt_not_accepted: "the REPL never took the prompt \u2014 read the evidence screen; retry",
|
|
73846
73840
|
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
73841
|
child_exited: "read the evidence screen, then retry or drop the model",
|
|
73848
|
-
pane_lost:
|
|
73842
|
+
pane_lost: `magmux died \u2014 check \`magmux --version\` \u2265 ${MIN_MAGMUX_VERSION} and retry`,
|
|
73849
73843
|
blocked: "the child asked a question team cannot answer \u2014 make the prompt self-contained or use " + "create_session",
|
|
73850
73844
|
api_error: "retry once, or route via a different provider (or@<model>)",
|
|
73851
73845
|
refused: "the model refused \u2014 rephrase or drop the model",
|
|
@@ -74418,7 +74412,7 @@ Options (run / run-and-judge):
|
|
|
74418
74412
|
--timeout <secs> Grid modes only: magmux's own per-pane timeout (default: 300).
|
|
74419
74413
|
json mode has no deadline \u2014 nothing kills a working model.
|
|
74420
74414
|
json mode runs each model as an interactive pane in a headless
|
|
74421
|
-
magmux (>=
|
|
74415
|
+
magmux (>= ${MIN_MAGMUX_VERSION}; darwin and linux).
|
|
74422
74416
|
--grid Show all models in a magmux grid with live output + status bar
|
|
74423
74417
|
--mode <m> run only: json (default, panes), default (the grid, as --grid)
|
|
74424
74418
|
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.1",
|
|
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.1",
|
|
64
|
+
"@claudish/magmux-darwin-x64": "12.1.1",
|
|
65
|
+
"@claudish/magmux-linux-arm64": "12.1.1",
|
|
66
|
+
"@claudish/magmux-linux-x64": "12.1.1"
|
|
67
67
|
},
|
|
68
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
69
69
|
"license": "MIT",
|