@coreplane/switchboard 1.227.0 → 1.229.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.
- package/dist/assets/config/config.example.yaml +7 -13
- package/dist/assets/deploy/cloudflare-memory/worker.ts +157 -3
- package/dist/assets/deploy/cloudflare-resident/worker.ts +170 -30
- package/dist/assets/deploy/cloudflare-sandbox/Dockerfile +22 -18
- package/dist/assets/deploy/cloudflare-sandbox/package.json +1 -1
- package/dist/assets/deploy/cloudflare-sandbox/runtime-supervisor.sh +11 -10
- package/dist/assets/deploy/cloudflare-sandbox/worker.ts +332 -299
- package/dist/assets/deploy/cloudflare-sandbox/wrangler.template.jsonc +2 -2
- package/dist/assets/package-lock.json +2542 -212
- package/dist/assets/package.json +2 -2
- package/dist/assets/project.json +2 -2
- package/dist/assets/source.json +3 -3
- package/dist/assets/src/agents/registry.ts +19 -34
- package/dist/assets/src/core/authz/policy.ts +8 -0
- package/dist/assets/src/core/authz/resource.ts +3 -1
- package/dist/assets/src/core/authz/types.ts +10 -1
- package/dist/assets/src/core/chatMessage.ts +1 -1
- package/dist/assets/src/core/coordinator/contract.ts +6 -0
- package/dist/assets/src/core/coordinator/driver.ts +8 -6
- package/dist/assets/src/core/runEvents.ts +53 -14
- package/dist/assets/src/core/runFriction.ts +3 -2
- package/dist/assets/src/core/runRecord.ts +46 -3
- package/dist/assets/src/core/runUsage.ts +199 -0
- package/dist/assets/src/core/ship/coordinator.ts +4 -2
- package/dist/assets/src/execution/residentDepCache.ts +34 -8
- package/dist/assets/src/execution/residentRebind.ts +84 -7
- package/dist/assets/src/execution/sandboxErrors.ts +14 -38
- package/dist/assets/src/execution/sandboxLifecycle.ts +78 -0
- package/dist/assets/web/dist/.vite/manifest.json +20 -20
- package/dist/assets/web/dist/assets/CostsPage-DQg30mHr.js +2 -0
- package/dist/assets/web/dist/assets/{ResidentDetailPage-Chvll3wy.js → ResidentDetailPage-CkVYktwT.js} +1 -1
- package/dist/assets/web/dist/assets/{ResidentsIndexPage-B5f8IwGF.js → ResidentsIndexPage-BLanxf27.js} +1 -1
- package/dist/assets/web/dist/assets/RunRoutePage-U3nwL8Df.js +13 -0
- package/dist/assets/web/dist/assets/{RunsIndexPage-BTJuKFTv.js → RunsIndexPage-DrIVxmpl.js} +1 -1
- package/dist/assets/web/dist/assets/{ScheduledPage-BVfgUBvP.js → ScheduledPage-DpqubmIm.js} +1 -1
- package/dist/assets/web/dist/assets/{StatusDot-CFXbAw7S.js → StatusDot-BpD9MRge.js} +1 -1
- package/dist/assets/web/dist/assets/{Tooltip-DcHMtbHJ.js → Tooltip-BYv0WSrA.js} +1 -1
- package/dist/assets/web/dist/assets/{dist-DKhqHu0V.js → dist-BZmA5qTt.js} +1 -1
- package/dist/assets/web/dist/assets/{main-CveRd2yk.js → main-C4GOEklV.js} +2 -2
- package/dist/assets/web/dist/assets/main-CAVqMbiX.css +1 -0
- package/dist/cli.js +9094 -9223
- package/package.json +1 -2
- package/dist/assets/src/execution/sandboxKeepalive.ts +0 -118
- package/dist/assets/web/dist/assets/CostsPage-5pl3HB2F.js +0 -2
- package/dist/assets/web/dist/assets/RunRoutePage-CRvmCuXh.js +0 -12
- package/dist/assets/web/dist/assets/main-xLAsdkfB.css +0 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
#
|
|
3
|
-
# SDK's container server
|
|
4
|
-
# process.exit(1) on any
|
|
5
|
-
#
|
|
6
|
-
# /workspace gone, a detached pi
|
|
7
|
-
#
|
|
8
|
-
#
|
|
9
|
-
# Object's view of a running
|
|
10
|
-
#
|
|
2
|
+
# The cold sandbox's process supervisor, run by tini (PID 1): keeps the
|
|
3
|
+
# container alive across a crash of the SDK's container server
|
|
4
|
+
# (/container-server/sandbox). That server calls process.exit(1) on any
|
|
5
|
+
# uncaught exception, and the base image runs it as tini's one child — so one
|
|
6
|
+
# uncaught error ended the whole container: /workspace gone, a detached pi
|
|
7
|
+
# with it, every later /exec a failure until the platform noticed. Started
|
|
8
|
+
# here as a child instead, the server's exit is a restart a second later; the
|
|
9
|
+
# disk, the detached processes and the Durable Object's view of a running
|
|
10
|
+
# container all survive, and the next command starts a fresh process on the
|
|
11
|
+
# new server (docs/reference/specs/execution.md item 21).
|
|
11
12
|
#
|
|
12
|
-
# A stop from the platform is SIGTERM
|
|
13
|
+
# A stop from the platform is SIGTERM, which tini forwards here: forwarded to the server, and
|
|
13
14
|
# nothing starts again — a stop that lands during the pause between two
|
|
14
15
|
# starts, or before the new pid is known, still ends here — and the server's
|
|
15
16
|
# own exit status becomes this script's. A terminal's INT is forwarded as
|