switchboard-router 0.9.60 → 0.9.61
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/app/.next/static/chunks/{1321-0ab72f9128c10ae8.js → 1321-8f2bc21e3e1510f8.js} +1 -1
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +11 -11
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/fx-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/metrics/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +11 -11
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/2847.js +1 -1
- package/app/.next-cli-build/server/chunks/369.js +16 -14
- package/app/.next-cli-build/server/chunks/4454.js +1 -1
- package/app/.next-cli-build/server/chunks/5139.js +1 -1
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8998.js +2 -2
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/{1321-0ab72f9128c10ae8.js → 1321-8f2bc21e3e1510f8.js} +1 -1
- package/app/open-sse/identity/tls/bin/darwin/arm64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/darwin/x64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/linux/arm64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/linux/x64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/win32/arm64/switchboard-claude-tls.exe +0 -0
- package/app/open-sse/identity/tls/bin/win32/x64/switchboard-claude-tls.exe +0 -0
- package/app/package.json +1 -1
- package/cli.js +5 -1
- package/package.json +1 -1
- package/src/shared/heapSize.js +35 -0
- /package/app/.next/static/{kn4tTYMd_zh76SjzZUnxP → buFm6Q9XY8OxLsQzoorjq}/_buildManifest.js +0 -0
- /package/app/.next/static/{kn4tTYMd_zh76SjzZUnxP → buFm6Q9XY8OxLsQzoorjq}/_ssgManifest.js +0 -0
- /package/app/.next-cli-build/static/{kn4tTYMd_zh76SjzZUnxP → buFm6Q9XY8OxLsQzoorjq}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{kn4tTYMd_zh76SjzZUnxP → buFm6Q9XY8OxLsQzoorjq}/_ssgManifest.js +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/app/package.json
CHANGED
package/cli.js
CHANGED
|
@@ -11,6 +11,7 @@ const { DEFAULT_HOST, DEFAULT_PORT, formatHelp, isLoopbackHost, parseCliArgs } =
|
|
|
11
11
|
const processTools = require("./src/cli/processManager");
|
|
12
12
|
const { findListeningPids, observeChildExit } = processTools;
|
|
13
13
|
const { probeSwitchboard, probeTcp, startHealthWatchdog, waitForSwitchboard } = require("./src/cli/serverStatus");
|
|
14
|
+
const { maxOldSpaceArgs } = require("./src/shared/heapSize");
|
|
14
15
|
|
|
15
16
|
// Subcommands (`switchboard xai video …`) run against an already-running
|
|
16
17
|
// gateway and skip the launcher flow (no arg parsing, no server spawn).
|
|
@@ -672,7 +673,10 @@ function startServer(latestVersion) {
|
|
|
672
673
|
// Boot failures abandon after maxBootFailures; watchdog respawns keep
|
|
673
674
|
// everHealthy so transient overload does not permanently quit the launcher.
|
|
674
675
|
if (resetEverHealthy) everHealthy = false;
|
|
675
|
-
|
|
676
|
+
// Heap sized to host RAM (6144 MB on ≥12 GB hosts, less on small ones);
|
|
677
|
+
// a fixed 6144 gets kernel-OOM-killed on small VPS hosts. Skipped when
|
|
678
|
+
// the operator set their own flag via NODE_OPTIONS.
|
|
679
|
+
const child = spawn(RUNTIME, [...maxOldSpaceArgs(), serverPath], {
|
|
676
680
|
cwd: standaloneDir,
|
|
677
681
|
stdio: ["ignore", "pipe", "pipe"],
|
|
678
682
|
detached: true,
|
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Host-aware V8 old-space sizing. Mirror of scripts/heapSizing.mjs — the CLI
|
|
2
|
+
// package is packed separately and cannot import from the app repo, so keep
|
|
3
|
+
// the semantics identical: explicit SWITCHBOARD_MAX_OLD_SPACE_MB wins, else
|
|
4
|
+
// half of host RAM clamped to [512, 6144] MB. A fixed 6144 invites the kernel
|
|
5
|
+
// OOM killer on small hosts long before V8 feels GC pressure.
|
|
6
|
+
const os = require("node:os");
|
|
7
|
+
|
|
8
|
+
function nodeOptionsHasMaxOldSpace(env = process.env) {
|
|
9
|
+
return /--max-old-space-size(?:=|\s)/.test((env && env.NODE_OPTIONS) || "");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function resolveMaxOldSpaceMb({ env = process.env, totalMemBytes } = {}) {
|
|
13
|
+
const override = Number.parseInt((env && env.SWITCHBOARD_MAX_OLD_SPACE_MB) || "", 10);
|
|
14
|
+
if (Number.isFinite(override) && override >= 256) return override;
|
|
15
|
+
|
|
16
|
+
let total = Number.isFinite(totalMemBytes) && totalMemBytes > 0 ? totalMemBytes : null;
|
|
17
|
+
if (!total) {
|
|
18
|
+
try {
|
|
19
|
+
const detected = os.totalmem();
|
|
20
|
+
if (Number.isFinite(detected) && detected > 0) total = detected;
|
|
21
|
+
} catch { /* fall through to fallback */ }
|
|
22
|
+
}
|
|
23
|
+
if (!total) return 2048;
|
|
24
|
+
const halfMb = Math.floor(total / (1024 * 1024) / 2);
|
|
25
|
+
return Math.min(6144, Math.max(512, halfMb));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Node CLI args to prepend, or [] when the operator already set a heap flag. */
|
|
29
|
+
function maxOldSpaceArgs(options = {}) {
|
|
30
|
+
const env = options.env ?? process.env;
|
|
31
|
+
if (nodeOptionsHasMaxOldSpace(env)) return [];
|
|
32
|
+
return [`--max-old-space-size=${resolveMaxOldSpaceMb(options)}`];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
module.exports = { resolveMaxOldSpaceMb, nodeOptionsHasMaxOldSpace, maxOldSpaceArgs };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/app/.next-cli-build/static/{kn4tTYMd_zh76SjzZUnxP → buFm6Q9XY8OxLsQzoorjq}/_ssgManifest.js
RENAMED
|
File without changes
|