switchroom 0.15.37 → 0.15.38

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 (72) hide show
  1. package/dist/agent-scheduler/index.js +89 -89
  2. package/dist/auth-broker/index.js +89 -89
  3. package/dist/cli/autoaccept-poll.js +13 -7
  4. package/dist/cli/drive-write-pretool.mjs +10 -10
  5. package/dist/cli/notion-write-pretool.mjs +91 -91
  6. package/dist/cli/skill-validate-pretool.mjs +72 -72
  7. package/dist/cli/switchroom.js +821 -572
  8. package/dist/cli/ui/index.html +87 -17
  9. package/dist/host-control/main.js +158 -158
  10. package/dist/vault/approvals/kernel-server.js +91 -91
  11. package/dist/vault/broker/server.js +92 -92
  12. package/package.json +1 -1
  13. package/profiles/_base/cron-session.sh.hbs +1 -1
  14. package/profiles/_base/start.sh.hbs +1 -1
  15. package/skills/switchroom-manage/SKILL.md +1 -1
  16. package/skills/switchroom-runtime/SKILL.md +1 -1
  17. package/telegram-plugin/answer-stream.ts +1 -1
  18. package/telegram-plugin/bridge/bridge.ts +18 -1
  19. package/telegram-plugin/bridge/ipc-client.ts +4 -1
  20. package/telegram-plugin/bridge/tool-filter.ts +77 -0
  21. package/telegram-plugin/chat-lock.ts +1 -1
  22. package/telegram-plugin/credits-watch.ts +1 -1
  23. package/telegram-plugin/dist/bridge/bridge.js +141 -115
  24. package/telegram-plugin/dist/gateway/gateway.js +318 -207
  25. package/telegram-plugin/dist/server.js +193 -164
  26. package/telegram-plugin/gateway/auto-classify-mid-turn.ts +1 -1
  27. package/telegram-plugin/gateway/boot-card.ts +5 -1
  28. package/telegram-plugin/gateway/boot-probes.ts +62 -0
  29. package/telegram-plugin/gateway/cron-session.ts +1 -1
  30. package/telegram-plugin/gateway/gateway.ts +133 -12
  31. package/telegram-plugin/gateway/grant-restart.ts +1 -1
  32. package/telegram-plugin/gateway/inbound-delivery-machine-dispatch.ts +1 -1
  33. package/telegram-plugin/gateway/inbound-delivery-machine-shadow.ts +1 -1
  34. package/telegram-plugin/gateway/inbound-delivery-machine.ts +1 -1
  35. package/telegram-plugin/gateway/interrupt-defer.ts +1 -1
  36. package/telegram-plugin/gateway/ipc-protocol.ts +12 -0
  37. package/telegram-plugin/gateway/permission-card-origin.ts +62 -0
  38. package/telegram-plugin/gateway/permission-timeout.ts +70 -0
  39. package/telegram-plugin/gateway/prefix-warmup.ts +1 -1
  40. package/telegram-plugin/gateway/webhook-ingest-server.test.ts +1 -1
  41. package/telegram-plugin/gateway/webhook-ingest-server.ts +1 -1
  42. package/telegram-plugin/hooks/subagent-tracker-pretool.mjs +1 -1
  43. package/telegram-plugin/interrupt-marker.ts +1 -1
  44. package/telegram-plugin/over-ping-safety-net.ts +1 -1
  45. package/telegram-plugin/scoped-approval.ts +1 -1
  46. package/telegram-plugin/secret-detect/vault-error.ts +1 -1
  47. package/telegram-plugin/silence-poke.ts +2 -2
  48. package/telegram-plugin/silent-reply-anchor.ts +1 -1
  49. package/telegram-plugin/slot-banner-driver.ts +1 -1
  50. package/telegram-plugin/startup-reset.ts +1 -1
  51. package/telegram-plugin/tests/boot-probes-connections.test.ts +66 -0
  52. package/telegram-plugin/tests/gateway-startup-reset.test.ts +1 -1
  53. package/telegram-plugin/tests/inbound-delivery-machine.test.ts +1 -1
  54. package/telegram-plugin/tests/permission-card-origin.test.ts +97 -0
  55. package/telegram-plugin/tests/permission-card-routing.test.ts +23 -0
  56. package/telegram-plugin/tests/permission-no-repeat-wiring.test.ts +76 -0
  57. package/telegram-plugin/tests/permission-timeout.test.ts +87 -0
  58. package/telegram-plugin/tests/scoped-approval.test.ts +1 -1
  59. package/telegram-plugin/tests/silence-poke.test.ts +1 -1
  60. package/telegram-plugin/tests/tool-filter.test.ts +87 -0
  61. package/telegram-plugin/tests/turn-flush-safety.test.ts +1 -1
  62. package/telegram-plugin/turn-flush-safety.ts +1 -1
  63. package/telegram-plugin/uat/assertions.ts +1 -1
  64. package/telegram-plugin/uat/scenarios/bg-sub-agent-dispatch-dm.test.ts +1 -1
  65. package/telegram-plugin/uat/scenarios/fuzz-extended-dm.test.ts +1 -1
  66. package/telegram-plugin/uat/scenarios/jtbd-fast-ack-dm.test.ts +1 -1
  67. package/telegram-plugin/uat/scenarios/jtbd-fast-trivial-dm.test.ts +2 -2
  68. package/telegram-plugin/uat/scenarios/jtbd-forwarded-burst-dm.test.ts +1 -1
  69. package/telegram-plugin/uat/scenarios/jtbd-memory-survives-restart-dm.test.ts +1 -1
  70. package/telegram-plugin/uat/scenarios/jtbd-rapid-followup-dm.test.ts +1 -1
  71. package/telegram-plugin/uat/scenarios/jtbd-reflective-status-reaction-dm.test.ts +1 -1
  72. package/telegram-plugin/uat/scenarios/jtbd-wake-audit-content-dm.test.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * JTBD scenario — memory survives across restart (the "fleet differentiator").
3
3
  *
4
- * Serves: `reference/remember-across-sessions.md` — the JTBD says:
4
+ * Serves: `reference/jobs/remember-across-sessions.md` — the JTBD says:
5
5
  *
6
6
  * *Outcome:* The agent brings back relevant facts, preferences,
7
7
  * decisions, and open threads from past conversations, in the right
@@ -2,7 +2,7 @@
2
2
  * JTBD scenario — rapid follow-ups (steering vs queued classification).
3
3
  *
4
4
  * Live contract codified in `_shared/telegram-style.md.hbs` and
5
- * `reference/steer-or-queue-mid-flight.md` (default-flip commits
5
+ * `reference/jobs/steer-or-queue-mid-flight.md` (default-flip commits
6
6
  * `4fff90bf` + `597a58af`, 2026-04-17):
7
7
  *
8
8
  * - A mid-turn follow-up with NO prefix is `queued="true"` — new
@@ -2,7 +2,7 @@
2
2
  * JTBD scenario — reflective status reaction (#1713).
3
3
  *
4
4
  * Serves the JTBD "know what my agent is actually doing" (see
5
- * `reference/know-what-my-agent-is-doing.md`). The status reaction on
5
+ * `reference/jobs/know-what-my-agent-is-doing.md`). The status reaction on
6
6
  * the user's inbound is the *primary* ambient liveness signal — the
7
7
  * user reads it as "what is the agent doing right now". When it
8
8
  * collapses straight to 👍 mid-turn, the signal evaporates and the
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * JTBD scenario — wake-audit content visibility post-restart.
3
3
  *
4
- * Serves: `reference/restart-and-know-what-im-running.md` — the JTBD:
4
+ * Serves: `reference/jobs/restart-and-know-what-im-running.md` — the JTBD:
5
5
  *
6
6
  * *Outcome:* After any restart, the user is told what config is live.
7
7
  * Model, tools, skills, memory backend, auth state. **No need to ask.**