switchroom 0.21.6 → 0.21.8

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 (43) hide show
  1. package/bin/autoaccept.exp +21 -1
  2. package/bin/tmp-reaper.sh +234 -0
  3. package/dist/agent-scheduler/index.js +1 -1
  4. package/dist/auth-broker/index.js +2 -2
  5. package/dist/cli/autoaccept-poll.js +95 -7
  6. package/dist/cli/notion-write-pretool.mjs +1 -1
  7. package/dist/cli/switchroom.js +3432 -2751
  8. package/dist/host-control/main.js +177 -13
  9. package/dist/vault/approvals/kernel-server.js +2 -2
  10. package/dist/vault/broker/server.js +2 -2
  11. package/package.json +6 -4
  12. package/profiles/_base/start.sh.hbs +115 -0
  13. package/profiles/_shared/local-time.md.hbs +6 -0
  14. package/profiles/default/CLAUDE.md.hbs +0 -12
  15. package/telegram-plugin/bunfig.toml +12 -4
  16. package/telegram-plugin/dist/gateway/gateway.js +1017 -465
  17. package/telegram-plugin/gateway/agent-process-liveness.ts +558 -0
  18. package/telegram-plugin/gateway/approval-hold.ts +32 -1
  19. package/telegram-plugin/gateway/approval-outcome-sources.ts +274 -0
  20. package/telegram-plugin/gateway/bridge-dead-watchdog.ts +21 -9
  21. package/telegram-plugin/gateway/callback-query-handlers.ts +87 -15
  22. package/telegram-plugin/gateway/eval-case-proposal-inbound-builders.ts +197 -0
  23. package/telegram-plugin/gateway/gateway.ts +12 -10
  24. package/telegram-plugin/gateway/pending-inbound-buffer.ts +167 -11
  25. package/telegram-plugin/gateway/self-improve-proposal-wiring.test.ts +333 -0
  26. package/telegram-plugin/gateway/self-improve-proposal-wiring.ts +152 -3
  27. package/telegram-plugin/gateway/subagent-handback-marker.ts +19 -0
  28. package/telegram-plugin/tests/agent-process-liveness.test.ts +406 -0
  29. package/telegram-plugin/tests/approval-hold-record.test.ts +21 -8
  30. package/telegram-plugin/tests/boot-resume-gateway-only-respawn.test.ts +752 -0
  31. package/telegram-plugin/tests/boot-resume-guard-wiring.test.ts +203 -0
  32. package/telegram-plugin/tests/callback-query-handlers.test.ts +143 -1
  33. package/telegram-plugin/tests/eval-case-proposal-inbound-builders.test.ts +144 -0
  34. package/telegram-plugin/tests/framework-fallback-drains-parked.test.ts +7 -1
  35. package/telegram-plugin/tests/hermes-messages-paging.test.ts +149 -0
  36. package/telegram-plugin/tests/hermes-session-search.test.ts +146 -0
  37. package/telegram-plugin/tests/parked-turn-start-preload.test.ts +65 -0
  38. package/telegram-plugin/tests/pending-inbound-buffer.test.ts +443 -2
  39. package/telegram-plugin/tests/queued-card-surface.test.ts +9 -1
  40. package/telegram-plugin/tests/stream-render-golden.test.ts +10 -1
  41. package/telegram-plugin/tests/subagent-handback-marker.test.ts +14 -0
  42. package/telegram-plugin/tests/turn-mint-defers-until-dequeue.test.ts +7 -1
  43. package/telegram-plugin/tests/turn-supersede-finalizes-prior-card.test.ts +7 -1
@@ -3,12 +3,20 @@
3
3
  #
4
4
  # bun reads the bunfig.toml in its CWD only, so this file exists purely to load
5
5
  # the same shared-state hermeticity preloads as the repo-root bunfig.toml. Keep
6
- # the two in sync; `npm run lint:agent-state-dir-hermeticity` and
7
- # `npm run lint:hindsight-bank-hermeticity` fail if either bunfig stops loading
8
- # either guard. Rationale lives in tests/vitest-setup/agent-state-dir-guard.mjs
9
- # and tests/vitest-setup/hindsight-bank-guard.mjs.
6
+ # the two in sync; `npm run lint:agent-state-dir-hermeticity`,
7
+ # `npm run lint:hindsight-bank-hermeticity` and
8
+ # `npm run lint:parked-turn-start-hermeticity` fail if either bunfig stops
9
+ # loading any of the three guards. Rationale lives in
10
+ # tests/vitest-setup/agent-state-dir-guard.mjs,
11
+ # tests/vitest-setup/hindsight-bank-guard.mjs and
12
+ # tests/vitest-setup/parked-turn-start-guard.mjs.
13
+ #
14
+ # This is the bunfig CI's full plugin sweep reads, so the parked-turn-start
15
+ # guard's blast radius is exactly the ~657-file one-process run that #4611
16
+ # poisoned.
10
17
  [test]
11
18
  preload = [
12
19
  "../tests/vitest-setup/agent-state-dir-guard.mjs",
13
20
  "../tests/vitest-setup/hindsight-bank-guard.mjs",
21
+ "../tests/vitest-setup/parked-turn-start-guard.mjs",
14
22
  ]