ninja-terminals 2.4.2 → 2.4.3
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/mcp-server.js +4 -1
- package/package.json +1 -1
- package/server.js +4 -1
package/mcp-server.js
CHANGED
|
@@ -42,7 +42,10 @@ const {
|
|
|
42
42
|
// ── Config ──────────────────────────────────────────────────
|
|
43
43
|
const PREFERRED_HTTP_PORT = parseInt(process.env.HTTP_PORT || process.env.PORT || '3300', 10);
|
|
44
44
|
let HTTP_PORT = PREFERRED_HTTP_PORT;
|
|
45
|
-
|
|
45
|
+
// Default to plain `claude` so workers use the account's current default model
|
|
46
|
+
// (no stale pinned model that breaks when retired). Override flags/model via
|
|
47
|
+
// CLAUDE_CMD env if needed.
|
|
48
|
+
const CLAUDE_CMD = process.env.CLAUDE_CMD || process.env.CLAUDE_CHROME_CMD || 'claude';
|
|
46
49
|
// Windows has no $SHELL / /bin/zsh — default to PowerShell (handles drive
|
|
47
50
|
// changes via `cd` and emits clean ANSI for status detection).
|
|
48
51
|
const IS_WIN = process.platform === 'win32';
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -38,7 +38,10 @@ const {
|
|
|
38
38
|
const PREFERRED_PORT = parseInt(process.env.PORT || process.env.HTTP_PORT || '3300', 10);
|
|
39
39
|
const BIND_HOST = process.env.NINJA_BIND_HOST || '127.0.0.1';
|
|
40
40
|
const DEFAULT_TERMINALS = parseInt(process.env.DEFAULT_TERMINALS || '4', 10);
|
|
41
|
-
|
|
41
|
+
// Default to plain `claude` so workers use the account's current default model
|
|
42
|
+
// (no stale pinned model that breaks when retired). Override flags/model via
|
|
43
|
+
// CLAUDE_CMD env if needed.
|
|
44
|
+
const CLAUDE_CMD = process.env.CLAUDE_CMD || process.env.CLAUDE_CHROME_CMD || 'claude';
|
|
42
45
|
// Windows has no $SHELL / /bin/zsh — default to PowerShell (handles drive
|
|
43
46
|
// changes via `cd` and emits clean ANSI for status detection).
|
|
44
47
|
const IS_WIN = process.platform === 'win32';
|