@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.
Files changed (46) hide show
  1. package/dist/assets/config/config.example.yaml +7 -13
  2. package/dist/assets/deploy/cloudflare-memory/worker.ts +157 -3
  3. package/dist/assets/deploy/cloudflare-resident/worker.ts +170 -30
  4. package/dist/assets/deploy/cloudflare-sandbox/Dockerfile +22 -18
  5. package/dist/assets/deploy/cloudflare-sandbox/package.json +1 -1
  6. package/dist/assets/deploy/cloudflare-sandbox/runtime-supervisor.sh +11 -10
  7. package/dist/assets/deploy/cloudflare-sandbox/worker.ts +332 -299
  8. package/dist/assets/deploy/cloudflare-sandbox/wrangler.template.jsonc +2 -2
  9. package/dist/assets/package-lock.json +2542 -212
  10. package/dist/assets/package.json +2 -2
  11. package/dist/assets/project.json +2 -2
  12. package/dist/assets/source.json +3 -3
  13. package/dist/assets/src/agents/registry.ts +19 -34
  14. package/dist/assets/src/core/authz/policy.ts +8 -0
  15. package/dist/assets/src/core/authz/resource.ts +3 -1
  16. package/dist/assets/src/core/authz/types.ts +10 -1
  17. package/dist/assets/src/core/chatMessage.ts +1 -1
  18. package/dist/assets/src/core/coordinator/contract.ts +6 -0
  19. package/dist/assets/src/core/coordinator/driver.ts +8 -6
  20. package/dist/assets/src/core/runEvents.ts +53 -14
  21. package/dist/assets/src/core/runFriction.ts +3 -2
  22. package/dist/assets/src/core/runRecord.ts +46 -3
  23. package/dist/assets/src/core/runUsage.ts +199 -0
  24. package/dist/assets/src/core/ship/coordinator.ts +4 -2
  25. package/dist/assets/src/execution/residentDepCache.ts +34 -8
  26. package/dist/assets/src/execution/residentRebind.ts +84 -7
  27. package/dist/assets/src/execution/sandboxErrors.ts +14 -38
  28. package/dist/assets/src/execution/sandboxLifecycle.ts +78 -0
  29. package/dist/assets/web/dist/.vite/manifest.json +20 -20
  30. package/dist/assets/web/dist/assets/CostsPage-DQg30mHr.js +2 -0
  31. package/dist/assets/web/dist/assets/{ResidentDetailPage-Chvll3wy.js → ResidentDetailPage-CkVYktwT.js} +1 -1
  32. package/dist/assets/web/dist/assets/{ResidentsIndexPage-B5f8IwGF.js → ResidentsIndexPage-BLanxf27.js} +1 -1
  33. package/dist/assets/web/dist/assets/RunRoutePage-U3nwL8Df.js +13 -0
  34. package/dist/assets/web/dist/assets/{RunsIndexPage-BTJuKFTv.js → RunsIndexPage-DrIVxmpl.js} +1 -1
  35. package/dist/assets/web/dist/assets/{ScheduledPage-BVfgUBvP.js → ScheduledPage-DpqubmIm.js} +1 -1
  36. package/dist/assets/web/dist/assets/{StatusDot-CFXbAw7S.js → StatusDot-BpD9MRge.js} +1 -1
  37. package/dist/assets/web/dist/assets/{Tooltip-DcHMtbHJ.js → Tooltip-BYv0WSrA.js} +1 -1
  38. package/dist/assets/web/dist/assets/{dist-DKhqHu0V.js → dist-BZmA5qTt.js} +1 -1
  39. package/dist/assets/web/dist/assets/{main-CveRd2yk.js → main-C4GOEklV.js} +2 -2
  40. package/dist/assets/web/dist/assets/main-CAVqMbiX.css +1 -0
  41. package/dist/cli.js +9094 -9223
  42. package/package.json +1 -2
  43. package/dist/assets/src/execution/sandboxKeepalive.ts +0 -118
  44. package/dist/assets/web/dist/assets/CostsPage-5pl3HB2F.js +0 -2
  45. package/dist/assets/web/dist/assets/RunRoutePage-CRvmCuXh.js +0 -12
  46. package/dist/assets/web/dist/assets/main-xLAsdkfB.css +0 -1
@@ -1,15 +1,16 @@
1
1
  #!/bin/sh
2
- # PID 1 of the cold sandbox: keeps the container alive across a crash of the
3
- # SDK's container server (/container-server/sandbox). That server calls
4
- # process.exit(1) on any uncaught exception, and as the base image's
5
- # ENTRYPOINT it was PID 1 — so one uncaught error ended the whole container:
6
- # /workspace gone, a detached pi with it, every later /exec a 500 until the
7
- # platform noticed. Started here as a child instead, the server's exit is a
8
- # restart a second later; the disk, the detached processes and the Durable
9
- # Object's view of a running container all survive, and the SDK recreates its
10
- # session on the next command (docs/reference/specs/execution.md item 21).
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 to PID 1: forwarded to the server, and
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