plural-agent 0.2.2__tar.gz → 0.2.3__tar.gz

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 (382) hide show
  1. {plural_agent-0.2.2 → plural_agent-0.2.3}/PKG-INFO +2 -2
  2. {plural_agent-0.2.2 → plural_agent-0.2.3}/README.md +1 -1
  3. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/package.json +1 -1
  4. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/link.ts +2 -0
  5. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/projection.ts +1 -0
  6. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/protocol/commands.schema.json +85 -0
  7. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/protocol/commands.ts +34 -0
  8. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/protocol/events.schema.json +212 -3
  9. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/protocol/events.ts +78 -1
  10. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/protocol/index.ts +1 -0
  11. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/reduce.ts +8 -0
  12. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/session.ts +7 -0
  13. plural_agent-0.2.3/client/test/admission.test.ts +97 -0
  14. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/fixtures/golden.json +860 -1
  15. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/link.test.ts +12 -0
  16. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/support/host.ts +3 -0
  17. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/configuration.md +4 -0
  18. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/protocol.md +2 -0
  19. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/self-hosting.md +3 -3
  20. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/threat-model.md +2 -0
  21. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/usage.md +29 -5
  22. {plural_agent-0.2.2 → plural_agent-0.2.3}/install.sh +20 -1
  23. {plural_agent-0.2.2 → plural_agent-0.2.3}/package-lock.json +3 -3
  24. {plural_agent-0.2.2 → plural_agent-0.2.3}/scripts/gen_fixtures.py +20 -0
  25. plural_agent-0.2.3/src/plural/__init__.py +1 -0
  26. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/cli/main.py +11 -6
  27. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/client/projection.py +5 -0
  28. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/client/reconnect.py +8 -2
  29. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/chat.py +1 -22
  30. plural_agent-0.2.3/src/plural/core/joins.py +43 -0
  31. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/ports.py +4 -0
  32. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/roles.py +6 -0
  33. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/state.py +13 -0
  34. plural_agent-0.2.3/src/plural/core/visibility.py +28 -0
  35. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/actor.py +161 -7
  36. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/bootstrap.py +16 -3
  37. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/config.py +5 -1
  38. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/gateway.py +25 -4
  39. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/inbox.py +6 -0
  40. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/invites.py +22 -0
  41. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/publisher.py +1 -1
  42. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/transport/direct.py +19 -4
  43. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/commands.py +21 -0
  44. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/events.py +37 -1
  45. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/models.py +27 -1
  46. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/relay/rooms.py +11 -4
  47. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/support.py +1 -1
  48. plural_agent-0.2.3/tests/e2e/test_admission.py +329 -0
  49. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/integration/test_relay_limits.py +15 -1
  50. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_chat.py +8 -6
  51. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_cli.py +1 -1
  52. plural_agent-0.2.3/tests/unit/test_joins.py +189 -0
  53. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/package.json +1 -1
  54. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/App.tsx +62 -6
  55. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/cli.tsx +7 -2
  56. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/commands.ts +1 -1
  57. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Cards.tsx +2 -1
  58. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Inbox.tsx +29 -3
  59. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/SettingsDialog.tsx +6 -1
  60. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Sidebar.tsx +6 -1
  61. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Splash.tsx +13 -2
  62. plural_agent-0.2.3/tui/src/failure.ts +24 -0
  63. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/sessions.ts +8 -1
  64. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/settingsModel.ts +31 -1
  65. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/update.ts +7 -0
  66. plural_agent-0.2.3/tui/test/admission.test.tsx +200 -0
  67. plural_agent-0.2.3/tui/test/failure.test.tsx +94 -0
  68. plural_agent-0.2.3/tui/test/installer.test.ts +75 -0
  69. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/model-tab.test.tsx +3 -3
  70. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/update.test.ts +17 -1
  71. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/package.json +1 -1
  72. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/InviteDialog.tsx +13 -6
  73. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/inbox/Inbox.module.css +1 -0
  74. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/inbox/Inbox.tsx +4 -1
  75. plural_agent-0.2.3/web/src/components/inbox/JoinCard.test.tsx +30 -0
  76. plural_agent-0.2.3/web/src/components/inbox/JoinCard.tsx +38 -0
  77. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/inbox/items.ts +3 -1
  78. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/People.tsx +2 -2
  79. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/hooks/useHotkeys.ts +3 -0
  80. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/hooks/useSession.ts +3 -2
  81. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/hooks/useSubmit.ts +22 -1
  82. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/commands.ts +1 -1
  83. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/links.test.ts +7 -0
  84. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/saved.ts +1 -1
  85. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/screens/JoinScreen.tsx +6 -6
  86. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/screens/RoomScreen.tsx +5 -3
  87. plural_agent-0.2.2/src/plural/__init__.py +0 -1
  88. {plural_agent-0.2.2 → plural_agent-0.2.3}/.github/workflows/ci.yml +0 -0
  89. {plural_agent-0.2.2 → plural_agent-0.2.3}/.github/workflows/release.yml +0 -0
  90. {plural_agent-0.2.2 → plural_agent-0.2.3}/.gitignore +0 -0
  91. {plural_agent-0.2.2 → plural_agent-0.2.3}/CONTRIBUTING.md +0 -0
  92. {plural_agent-0.2.2 → plural_agent-0.2.3}/LICENSE +0 -0
  93. {plural_agent-0.2.2 → plural_agent-0.2.3}/SECURITY.md +0 -0
  94. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/chat.ts +0 -0
  95. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/decode.ts +0 -0
  96. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/diff.ts +0 -0
  97. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/feed.ts +0 -0
  98. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/index.ts +0 -0
  99. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/presenter.ts +0 -0
  100. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/slash.ts +0 -0
  101. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/tools.ts +0 -0
  102. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/src/wire.ts +0 -0
  103. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/chat.test.ts +0 -0
  104. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/golden.test.ts +0 -0
  105. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/presenter.test.ts +0 -0
  106. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/projection.test.ts +0 -0
  107. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/queue.test.ts +0 -0
  108. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/relay.test.ts +0 -0
  109. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/test/session.test.ts +0 -0
  110. {plural_agent-0.2.2 → plural_agent-0.2.3}/client/tsconfig.json +0 -0
  111. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/Caddyfile +0 -0
  112. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/cloud-init.yaml +0 -0
  113. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/docker-compose.yml +0 -0
  114. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/host-entrypoint.sh +0 -0
  115. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/host.Dockerfile +0 -0
  116. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/launchd/dev.plural.host.plist +0 -0
  117. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/railway/host.json +0 -0
  118. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/railway/relay.json +0 -0
  119. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/relay.Dockerfile +0 -0
  120. {plural_agent-0.2.2 → plural_agent-0.2.3}/deploy/systemd/plural-host.service +0 -0
  121. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/adr/0001-hexagonal-event-sourced-host.md +0 -0
  122. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/adr/0002-own-harness-official-sdk-providers.md +0 -0
  123. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/adr/0003-simple-compaction.md +0 -0
  124. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/adr/0004-prompt-modes.md +0 -0
  125. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/adr/0005-typescript-client.md +0 -0
  126. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/adr/0006-fullscreen-opentui.md +0 -0
  127. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/assets/logo.png +0 -0
  128. {plural_agent-0.2.2 → plural_agent-0.2.3}/docs/development.md +0 -0
  129. {plural_agent-0.2.2 → plural_agent-0.2.3}/package.json +0 -0
  130. {plural_agent-0.2.2 → plural_agent-0.2.3}/pyproject.toml +0 -0
  131. {plural_agent-0.2.2 → plural_agent-0.2.3}/render.yaml +0 -0
  132. {plural_agent-0.2.2 → plural_agent-0.2.3}/scripts/gen_schema.py +0 -0
  133. {plural_agent-0.2.2 → plural_agent-0.2.3}/scripts/install-native-renderer.sh +0 -0
  134. {plural_agent-0.2.2 → plural_agent-0.2.3}/scripts/install.sh +0 -0
  135. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/__init__.py +0 -0
  136. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/compaction.py +0 -0
  137. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/context.py +0 -0
  138. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/events.py +0 -0
  139. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/gate.py +0 -0
  140. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/interrupt.py +0 -0
  141. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/loop.py +0 -0
  142. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/mcp.py +0 -0
  143. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/messages.py +0 -0
  144. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/__init__.py +0 -0
  145. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/anthropic_api.py +0 -0
  146. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/anthropic_oauth.py +0 -0
  147. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/base.py +0 -0
  148. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/claude_code.py +0 -0
  149. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/codex_cli.py +0 -0
  150. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/fake.py +0 -0
  151. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/openai_compat.py +0 -0
  152. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/providers/web_search.py +0 -0
  153. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/sandbox/__init__.py +0 -0
  154. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/sandbox/base.py +0 -0
  155. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/sandbox/local.py +0 -0
  156. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/skills.py +0 -0
  157. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/__init__.py +0 -0
  158. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/base.py +0 -0
  159. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/bash.py +0 -0
  160. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/diffs.py +0 -0
  161. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/edit.py +0 -0
  162. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/glob.py +0 -0
  163. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/grep.py +0 -0
  164. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/ls.py +0 -0
  165. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/read.py +0 -0
  166. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/registry.py +0 -0
  167. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/search.py +0 -0
  168. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/skills.py +0 -0
  169. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/streaming.py +0 -0
  170. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/truncation.py +0 -0
  171. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/web.py +0 -0
  172. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/agent/tools/write.py +0 -0
  173. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/cli/__init__.py +0 -0
  174. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/client/__init__.py +0 -0
  175. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/client/connection.py +0 -0
  176. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/__init__.py +0 -0
  177. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/approvals.py +0 -0
  178. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/errors.py +0 -0
  179. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/policies.py +0 -0
  180. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/policy/__init__.py +0 -0
  181. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/policy/engine.py +0 -0
  182. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/policy/rejections.py +0 -0
  183. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/policy/rules.py +0 -0
  184. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/proposals.py +0 -0
  185. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/core/provenance.py +0 -0
  186. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/__init__.py +0 -0
  187. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/agent_run.py +0 -0
  188. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/approval_registry.py +0 -0
  189. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/attachments.py +0 -0
  190. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/control.py +0 -0
  191. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/history.py +0 -0
  192. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/policy_gate.py +0 -0
  193. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/system.py +0 -0
  194. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/transport/__init__.py +0 -0
  195. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/transport/base.py +0 -0
  196. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/host/transport/relay_link.py +0 -0
  197. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/__init__.py +0 -0
  198. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/capability.py +0 -0
  199. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/codec.py +0 -0
  200. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/envelope.py +0 -0
  201. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/protocol/relay.py +0 -0
  202. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/relay/__init__.py +0 -0
  203. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/relay/app.py +0 -0
  204. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/relay/limits.py +0 -0
  205. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/security/__init__.py +0 -0
  206. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/security/keys.py +0 -0
  207. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/security/secrets.py +0 -0
  208. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/security/tokens.py +0 -0
  209. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/storage/__init__.py +0 -0
  210. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/storage/jsonl_export.py +0 -0
  211. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/storage/migrations/0001_init.sql +0 -0
  212. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/storage/migrations/__init__.py +0 -0
  213. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/storage/sessions.py +0 -0
  214. {plural_agent-0.2.2 → plural_agent-0.2.3}/src/plural/storage/sqlite_store.py +0 -0
  215. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/__init__.py +0 -0
  216. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/conftest.py +0 -0
  217. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/doubles.py +0 -0
  218. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/__init__.py +0 -0
  219. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/conftest.py +0 -0
  220. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_abort.py +0 -0
  221. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_agent_control.py +0 -0
  222. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_chat.py +0 -0
  223. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_compaction.py +0 -0
  224. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_flow.py +0 -0
  225. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_history.py +0 -0
  226. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_mcp.py +0 -0
  227. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_permission_mode.py +0 -0
  228. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_policy.py +0 -0
  229. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_prompt_mode.py +0 -0
  230. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_queue.py +0 -0
  231. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_rejections.py +0 -0
  232. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_relay_recovery.py +0 -0
  233. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_skills.py +0 -0
  234. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_tool_output.py +0 -0
  235. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/e2e/test_typing.py +0 -0
  236. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/fixtures/echo_mcp.py +0 -0
  237. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/fixtures/protocol/prompt_submit.json +0 -0
  238. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/harness/test_compaction.py +0 -0
  239. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/harness/test_loop.py +0 -0
  240. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/harness/test_swap.py +0 -0
  241. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/harness/test_tool_streaming.py +0 -0
  242. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/integration/test_host_control.py +0 -0
  243. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/integration/test_host_flow.py +0 -0
  244. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/integration/test_host_process.py +0 -0
  245. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/loop_support.py +0 -0
  246. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_anthropic_oauth.py +0 -0
  247. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_attachments.py +0 -0
  248. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_bootstrap.py +0 -0
  249. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_claude_code.py +0 -0
  250. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_codex_cli.py +0 -0
  251. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_context.py +0 -0
  252. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_control.py +0 -0
  253. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_history.py +0 -0
  254. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_line_stream.py +0 -0
  255. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_mcp.py +0 -0
  256. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_policies.py +0 -0
  257. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_policy.py +0 -0
  258. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_policy_gate.py +0 -0
  259. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_projection.py +0 -0
  260. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_protocol.py +0 -0
  261. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_providers.py +0 -0
  262. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_rejections.py +0 -0
  263. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_roles.py +0 -0
  264. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_security.py +0 -0
  265. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_sessions.py +0 -0
  266. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_skills.py +0 -0
  267. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_sqlite_store.py +0 -0
  268. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_state.py +0 -0
  269. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_tools.py +0 -0
  270. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_web_search.py +0 -0
  271. {plural_agent-0.2.2 → plural_agent-0.2.3}/tests/unit/test_web_tools.py +0 -0
  272. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/bunfig.toml +0 -0
  273. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/dev/demo.tsx +0 -0
  274. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/agent.ts +0 -0
  275. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/alerts.ts +0 -0
  276. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/anthropicOAuth.ts +0 -0
  277. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/args.ts +0 -0
  278. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/code.ts +0 -0
  279. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Composer.tsx +0 -0
  280. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Spinner.tsx +0 -0
  281. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/StatusBar.tsx +0 -0
  282. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Toast.tsx +0 -0
  283. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/TopBar.tsx +0 -0
  284. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Tray.tsx +0 -0
  285. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/components/Working.tsx +0 -0
  286. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/control.ts +0 -0
  287. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/credentials.ts +0 -0
  288. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/feed.ts +0 -0
  289. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/host-process.ts +0 -0
  290. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/joined.ts +0 -0
  291. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/lib/clipboard.ts +0 -0
  292. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/lib/diff.ts +0 -0
  293. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/lib/highlight.ts +0 -0
  294. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/lib/progress.ts +0 -0
  295. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/lib/tools.ts +0 -0
  296. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/lib/wrap.ts +0 -0
  297. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/logo.ts +0 -0
  298. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/mcpCatalog.ts +0 -0
  299. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/options.ts +0 -0
  300. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/picker.tsx +0 -0
  301. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/presets.ts +0 -0
  302. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/print.ts +0 -0
  303. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/settings.ts +0 -0
  304. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/share.ts +0 -0
  305. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/startup.ts +0 -0
  306. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/syntax.ts +0 -0
  307. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/theme.ts +0 -0
  308. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/trays.ts +0 -0
  309. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/src/tunnel.ts +0 -0
  310. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/alerts.test.tsx +0 -0
  311. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/anthropic-oauth.test.ts +0 -0
  312. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/app.test.tsx +0 -0
  313. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/args.test.ts +0 -0
  314. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/chat.test.tsx +0 -0
  315. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/commands.test.ts +0 -0
  316. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/diff.test.ts +0 -0
  317. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/e2e.test.tsx +0 -0
  318. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/feed.test.ts +0 -0
  319. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/headless.test.ts +0 -0
  320. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/highlight.test.ts +0 -0
  321. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/options.test.ts +0 -0
  322. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/paste.test.tsx +0 -0
  323. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/picker.test.tsx +0 -0
  324. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/print-e2e.test.ts +0 -0
  325. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/resume.test.ts +0 -0
  326. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/sessions.test.ts +0 -0
  327. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/settings.test.ts +0 -0
  328. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/setup.ts +0 -0
  329. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/share.test.ts +0 -0
  330. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/startup.test.tsx +0 -0
  331. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/stores.test.ts +0 -0
  332. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/support/fake-session.ts +0 -0
  333. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/toast.test.tsx +0 -0
  334. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/test/tunnel.test.ts +0 -0
  335. {plural_agent-0.2.2 → plural_agent-0.2.3}/tui/tsconfig.json +0 -0
  336. {plural_agent-0.2.2 → plural_agent-0.2.3}/uv.lock +0 -0
  337. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/index.html +0 -0
  338. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/App.tsx +0 -0
  339. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/Composer.module.css +0 -0
  340. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/Composer.tsx +0 -0
  341. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/InviteDialog.module.css +0 -0
  342. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/Logo.tsx +0 -0
  343. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/TopBar.module.css +0 -0
  344. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/TopBar.tsx +0 -0
  345. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/Feed.module.css +0 -0
  346. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/Feed.test.tsx +0 -0
  347. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/Feed.tsx +0 -0
  348. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/Markdown.module.css +0 -0
  349. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/Markdown.test.tsx +0 -0
  350. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/Markdown.tsx +0 -0
  351. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/ToolLine.module.css +0 -0
  352. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/feed/ToolLine.tsx +0 -0
  353. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/inbox/ApprovalCard.tsx +0 -0
  354. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/inbox/ProposalCard.tsx +0 -0
  355. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/AgentStatus.tsx +0 -0
  356. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/PromptMode.tsx +0 -0
  357. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/Queue.tsx +0 -0
  358. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/Rules.tsx +0 -0
  359. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/Section.tsx +0 -0
  360. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/Sidebar.module.css +0 -0
  361. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/components/side/Sidebar.tsx +0 -0
  362. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/hooks/useNow.ts +0 -0
  363. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/hooks/useStickToBottom.ts +0 -0
  364. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/hooks/useToast.ts +0 -0
  365. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/hooks/useTyping.ts +0 -0
  366. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/alert.test.ts +0 -0
  367. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/alert.ts +0 -0
  368. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/clipboard.ts +0 -0
  369. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/colors.ts +0 -0
  370. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/commands.test.ts +0 -0
  371. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/cx.ts +0 -0
  372. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/links.ts +0 -0
  373. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/lib/logo-grid.ts +0 -0
  374. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/main.tsx +0 -0
  375. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/screens/JoinScreen.module.css +0 -0
  376. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/screens/RoomScreen.module.css +0 -0
  377. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/styles/base.css +0 -0
  378. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/styles/tokens.css +0 -0
  379. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/src/vite-env.d.ts +0 -0
  380. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/tsconfig.json +0 -0
  381. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/vercel.json +0 -0
  382. {plural_agent-0.2.2 → plural_agent-0.2.3}/web/vite.config.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: plural-agent
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Multiplayer sessions for one AI agent: shared context, host approvals, attribution, isolation.
5
5
  Project-URL: Homepage, https://github.com/Plural-Organization/Plural
6
6
  Project-URL: Issues, https://github.com/Plural-Organization/Plural/issues
@@ -86,7 +86,7 @@ plural
86
86
 
87
87
  come back to a session later with `plural -r` (or `plural -c` for the latest one of this folder), and ask once from a script with `plural -p "…"`. see [usage](docs/usage.md).
88
88
 
89
- the first line in the conversation is an invite. send it to a teammate:
89
+ the first line in the conversation is the room link. send it to a teammate, now or later: it does not expire, and you let each person in:
90
90
 
91
91
  ```bash
92
92
  plural join "ws://…"
@@ -50,7 +50,7 @@ plural
50
50
 
51
51
  come back to a session later with `plural -r` (or `plural -c` for the latest one of this folder), and ask once from a script with `plural -p "…"`. see [usage](docs/usage.md).
52
52
 
53
- the first line in the conversation is an invite. send it to a teammate:
53
+ the first line in the conversation is the room link. send it to a teammate, now or later: it does not expire, and you let each person in:
54
54
 
55
55
  ```bash
56
56
  plural join "ws://…"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plural/client",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -3,6 +3,7 @@ export interface JoinLink {
3
3
  room: string;
4
4
  invite: string | null;
5
5
  token: string | null;
6
+ join: string | null;
6
7
  }
7
8
 
8
9
  export function parseLink(raw: string): JoinLink {
@@ -24,5 +25,6 @@ export function parseLink(raw: string): JoinLink {
24
25
  room,
25
26
  invite: parsed.searchParams.get("invite"),
26
27
  token: parsed.searchParams.get("token"),
28
+ join: parsed.searchParams.get("join"),
27
29
  };
28
30
  }
@@ -9,6 +9,7 @@ export class Projection {
9
9
  compacting: { tokens: number; since: number } | null = null;
10
10
  basePolicy: PolicyRuleView[] = [];
11
11
  agent = "";
12
+ waiting = false;
12
13
  meId: string | null = null;
13
14
  ready = false;
14
15
 
@@ -1,5 +1,28 @@
1
1
  {
2
2
  "$defs": {
3
+ "AdmissionMode": {
4
+ "enum": [
5
+ "approve",
6
+ "open"
7
+ ],
8
+ "type": "string"
9
+ },
10
+ "AdmissionSet": {
11
+ "properties": {
12
+ "mode": {
13
+ "$ref": "#/$defs/AdmissionMode"
14
+ },
15
+ "type": {
16
+ "const": "link.set_admission",
17
+ "default": "link.set_admission",
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": [
22
+ "mode"
23
+ ],
24
+ "type": "object"
25
+ },
3
26
  "ApprovalDecision": {
4
27
  "enum": [
5
28
  "once",
@@ -155,6 +178,10 @@
155
178
  },
156
179
  "InviteCreate": {
157
180
  "properties": {
181
+ "reusable": {
182
+ "default": false,
183
+ "type": "boolean"
184
+ },
158
185
  "role": {
159
186
  "$ref": "#/$defs/Role",
160
187
  "default": "participant"
@@ -173,6 +200,41 @@
173
200
  },
174
201
  "type": "object"
175
202
  },
203
+ "JoinDecide": {
204
+ "properties": {
205
+ "decision": {
206
+ "enum": [
207
+ "allow",
208
+ "viewer",
209
+ "deny"
210
+ ],
211
+ "type": "string"
212
+ },
213
+ "request_id": {
214
+ "type": "string"
215
+ },
216
+ "type": {
217
+ "const": "join.decide",
218
+ "default": "join.decide",
219
+ "type": "string"
220
+ }
221
+ },
222
+ "required": [
223
+ "request_id",
224
+ "decision"
225
+ ],
226
+ "type": "object"
227
+ },
228
+ "LinkRevoke": {
229
+ "properties": {
230
+ "type": {
231
+ "const": "link.revoke",
232
+ "default": "link.revoke",
233
+ "type": "string"
234
+ }
235
+ },
236
+ "type": "object"
237
+ },
176
238
  "McpAdd": {
177
239
  "properties": {
178
240
  "args": {
@@ -561,6 +623,17 @@
561
623
  ],
562
624
  "default": null
563
625
  },
626
+ "join": {
627
+ "anyOf": [
628
+ {
629
+ "type": "string"
630
+ },
631
+ {
632
+ "type": "null"
633
+ }
634
+ ],
635
+ "default": null
636
+ },
564
637
  "name": {
565
638
  "anyOf": [
566
639
  {
@@ -700,6 +773,9 @@
700
773
  "file.attach": "#/$defs/FileAttach",
701
774
  "history.get": "#/$defs/HistoryGet",
702
775
  "invite.create": "#/$defs/InviteCreate",
776
+ "join.decide": "#/$defs/JoinDecide",
777
+ "link.revoke": "#/$defs/LinkRevoke",
778
+ "link.set_admission": "#/$defs/AdmissionSet",
703
779
  "mcp.add": "#/$defs/McpAdd",
704
780
  "mcp.import": "#/$defs/McpImport",
705
781
  "mcp.remove": "#/$defs/McpRemove",
@@ -748,6 +824,15 @@
748
824
  {
749
825
  "$ref": "#/$defs/InviteCreate"
750
826
  },
827
+ {
828
+ "$ref": "#/$defs/JoinDecide"
829
+ },
830
+ {
831
+ "$ref": "#/$defs/LinkRevoke"
832
+ },
833
+ {
834
+ "$ref": "#/$defs/AdmissionSet"
835
+ },
751
836
  {
752
837
  "$ref": "#/$defs/ParticipantSetRole"
753
838
  },
@@ -15,6 +15,11 @@ export type ProposalDecision = "approve" | "reject";
15
15
  * via the `definition` "ApprovalDecision".
16
16
  */
17
17
  export type ApprovalDecision = "once" | "always" | "reject" | "block";
18
+ /**
19
+ * This interface was referenced by `CommandsSchema`'s JSON-Schema
20
+ * via the `definition` "AdmissionMode".
21
+ */
22
+ export type AdmissionMode = "approve" | "open";
18
23
  /**
19
24
  * This interface was referenced by `CommandsSchema`'s JSON-Schema
20
25
  * via the `definition` "Role".
@@ -56,6 +61,9 @@ export interface CommandsSchema {
56
61
  | ApprovalRespond
57
62
  | RunAbort
58
63
  | InviteCreate
64
+ | JoinDecide
65
+ | LinkRevoke
66
+ | AdmissionSet
59
67
  | ParticipantSetRole
60
68
  | ParticipantRevoke
61
69
  | ContextCompact
@@ -82,6 +90,7 @@ export interface CommandsSchema {
82
90
  export interface SessionHello {
83
91
  client: ClientInfo;
84
92
  invite?: string | null;
93
+ join?: string | null;
85
94
  name?: string | null;
86
95
  since?: number | null;
87
96
  token?: string | null;
@@ -155,10 +164,35 @@ export interface RunAbort {
155
164
  * via the `definition` "InviteCreate".
156
165
  */
157
166
  export interface InviteCreate {
167
+ reusable?: boolean;
158
168
  role?: "host" | "participant" | "viewer";
159
169
  ttl_s?: number;
160
170
  type?: "invite.create";
161
171
  }
172
+ /**
173
+ * This interface was referenced by `CommandsSchema`'s JSON-Schema
174
+ * via the `definition` "JoinDecide".
175
+ */
176
+ export interface JoinDecide {
177
+ decision: "allow" | "viewer" | "deny";
178
+ request_id: string;
179
+ type?: "join.decide";
180
+ }
181
+ /**
182
+ * This interface was referenced by `CommandsSchema`'s JSON-Schema
183
+ * via the `definition` "LinkRevoke".
184
+ */
185
+ export interface LinkRevoke {
186
+ type?: "link.revoke";
187
+ }
188
+ /**
189
+ * This interface was referenced by `CommandsSchema`'s JSON-Schema
190
+ * via the `definition` "AdmissionSet".
191
+ */
192
+ export interface AdmissionSet {
193
+ mode: AdmissionMode;
194
+ type?: "link.set_admission";
195
+ }
162
196
  /**
163
197
  * This interface was referenced by `CommandsSchema`'s JSON-Schema
164
198
  * via the `definition` "ParticipantSetRole".
@@ -1,5 +1,29 @@
1
1
  {
2
2
  "$defs": {
3
+ "AdmissionChanged": {
4
+ "properties": {
5
+ "mode": {
6
+ "$ref": "#/$defs/AdmissionMode"
7
+ },
8
+ "type": {
9
+ "const": "link.admission_changed",
10
+ "default": "link.admission_changed",
11
+ "type": "string"
12
+ }
13
+ },
14
+ "required": [
15
+ "type",
16
+ "mode"
17
+ ],
18
+ "type": "object"
19
+ },
20
+ "AdmissionMode": {
21
+ "enum": [
22
+ "approve",
23
+ "open"
24
+ ],
25
+ "type": "string"
26
+ },
3
27
  "AgentChanged": {
4
28
  "properties": {
5
29
  "agent": {
@@ -554,6 +578,9 @@
554
578
  "context.usage": "#/$defs/ContextUsage",
555
579
  "error": "#/$defs/ErrorRaised",
556
580
  "invite.created": "#/$defs/InviteCreated",
581
+ "join.requested": "#/$defs/JoinRequested",
582
+ "join.resolved": "#/$defs/JoinResolved",
583
+ "link.admission_changed": "#/$defs/AdmissionChanged",
557
584
  "mcp.changed": "#/$defs/McpChanged",
558
585
  "message.delta": "#/$defs/MessageDelta",
559
586
  "message.ended": "#/$defs/MessageEnded",
@@ -572,8 +599,10 @@
572
599
  "proposal.rejected": "#/$defs/ProposalRejected",
573
600
  "run.ended": "#/$defs/RunEnded",
574
601
  "run.started": "#/$defs/RunStarted",
602
+ "session.pending": "#/$defs/JoinPending",
575
603
  "session.permission_mode_changed": "#/$defs/PermissionModeChanged",
576
604
  "session.prompt_mode_changed": "#/$defs/PromptModeChanged",
605
+ "session.refused": "#/$defs/JoinRefused",
577
606
  "session.snapshot": "#/$defs/SessionSnapshot",
578
607
  "session.welcome": "#/$defs/SessionWelcome",
579
608
  "skills.changed": "#/$defs/SkillsChanged",
@@ -612,6 +641,21 @@
612
641
  {
613
642
  "$ref": "#/$defs/AgentChanged"
614
643
  },
644
+ {
645
+ "$ref": "#/$defs/AdmissionChanged"
646
+ },
647
+ {
648
+ "$ref": "#/$defs/JoinRequested"
649
+ },
650
+ {
651
+ "$ref": "#/$defs/JoinResolved"
652
+ },
653
+ {
654
+ "$ref": "#/$defs/JoinPending"
655
+ },
656
+ {
657
+ "$ref": "#/$defs/JoinRefused"
658
+ },
615
659
  {
616
660
  "$ref": "#/$defs/PromptDequeued"
617
661
  },
@@ -724,12 +768,24 @@
724
768
  "type": "string"
725
769
  },
726
770
  "expires_at": {
727
- "format": "date-time",
728
- "type": "string"
771
+ "anyOf": [
772
+ {
773
+ "format": "date-time",
774
+ "type": "string"
775
+ },
776
+ {
777
+ "type": "null"
778
+ }
779
+ ],
780
+ "default": null
729
781
  },
730
782
  "link": {
731
783
  "type": "string"
732
784
  },
785
+ "reusable": {
786
+ "default": false,
787
+ "type": "boolean"
788
+ },
733
789
  "role": {
734
790
  "$ref": "#/$defs/Role"
735
791
  },
@@ -744,7 +800,128 @@
744
800
  "code",
745
801
  "role",
746
802
  "expires_at",
747
- "link"
803
+ "link",
804
+ "reusable"
805
+ ],
806
+ "type": "object"
807
+ },
808
+ "JoinDecision": {
809
+ "enum": [
810
+ "allow",
811
+ "viewer",
812
+ "deny",
813
+ "expired",
814
+ "gone",
815
+ "revoked"
816
+ ],
817
+ "type": "string"
818
+ },
819
+ "JoinPending": {
820
+ "properties": {
821
+ "type": {
822
+ "const": "session.pending",
823
+ "default": "session.pending",
824
+ "type": "string"
825
+ },
826
+ "waiting": {
827
+ "default": 1,
828
+ "type": "integer"
829
+ }
830
+ },
831
+ "required": [
832
+ "type",
833
+ "waiting"
834
+ ],
835
+ "type": "object"
836
+ },
837
+ "JoinRefused": {
838
+ "properties": {
839
+ "reason": {
840
+ "type": "string"
841
+ },
842
+ "type": {
843
+ "const": "session.refused",
844
+ "default": "session.refused",
845
+ "type": "string"
846
+ }
847
+ },
848
+ "required": [
849
+ "type",
850
+ "reason"
851
+ ],
852
+ "type": "object"
853
+ },
854
+ "JoinRequestView": {
855
+ "properties": {
856
+ "client": {
857
+ "type": "string"
858
+ },
859
+ "id": {
860
+ "type": "string"
861
+ },
862
+ "name": {
863
+ "type": "string"
864
+ },
865
+ "requested_at": {
866
+ "format": "date-time",
867
+ "type": "string"
868
+ }
869
+ },
870
+ "required": [
871
+ "id",
872
+ "name",
873
+ "client",
874
+ "requested_at"
875
+ ],
876
+ "type": "object"
877
+ },
878
+ "JoinRequested": {
879
+ "properties": {
880
+ "request": {
881
+ "$ref": "#/$defs/JoinRequestView"
882
+ },
883
+ "type": {
884
+ "const": "join.requested",
885
+ "default": "join.requested",
886
+ "type": "string"
887
+ }
888
+ },
889
+ "required": [
890
+ "type",
891
+ "request"
892
+ ],
893
+ "type": "object"
894
+ },
895
+ "JoinResolved": {
896
+ "properties": {
897
+ "decided_by": {
898
+ "anyOf": [
899
+ {
900
+ "type": "string"
901
+ },
902
+ {
903
+ "type": "null"
904
+ }
905
+ ],
906
+ "default": null
907
+ },
908
+ "decision": {
909
+ "$ref": "#/$defs/JoinDecision"
910
+ },
911
+ "request_id": {
912
+ "type": "string"
913
+ },
914
+ "type": {
915
+ "const": "join.resolved",
916
+ "default": "join.resolved",
917
+ "type": "string"
918
+ }
919
+ },
920
+ "required": [
921
+ "type",
922
+ "request_id",
923
+ "decision",
924
+ "decided_by"
748
925
  ],
749
926
  "type": "object"
750
927
  },
@@ -1478,6 +1655,10 @@
1478
1655
  },
1479
1656
  "SessionState": {
1480
1657
  "properties": {
1658
+ "admission": {
1659
+ "$ref": "#/$defs/AdmissionMode",
1660
+ "default": "approve"
1661
+ },
1481
1662
  "agent": {
1482
1663
  "default": "",
1483
1664
  "type": "string"
@@ -1512,6 +1693,12 @@
1512
1693
  ],
1513
1694
  "default": null
1514
1695
  },
1696
+ "join_requests": {
1697
+ "additionalProperties": {
1698
+ "$ref": "#/$defs/JoinRequestView"
1699
+ },
1700
+ "type": "object"
1701
+ },
1515
1702
  "last_seq": {
1516
1703
  "default": 0,
1517
1704
  "type": "integer"
@@ -1598,6 +1785,8 @@
1598
1785
  "last_seq",
1599
1786
  "prompt_mode",
1600
1787
  "permission_mode",
1788
+ "admission",
1789
+ "join_requests",
1601
1790
  "participants",
1602
1791
  "proposals",
1603
1792
  "approvals",
@@ -1987,6 +2176,9 @@
1987
2176
  "context.usage": "#/$defs/ContextUsage",
1988
2177
  "error": "#/$defs/ErrorRaised",
1989
2178
  "invite.created": "#/$defs/InviteCreated",
2179
+ "join.requested": "#/$defs/JoinRequested",
2180
+ "join.resolved": "#/$defs/JoinResolved",
2181
+ "link.admission_changed": "#/$defs/AdmissionChanged",
1990
2182
  "mcp.changed": "#/$defs/McpChanged",
1991
2183
  "message.delta": "#/$defs/MessageDelta",
1992
2184
  "message.ended": "#/$defs/MessageEnded",
@@ -2005,8 +2197,10 @@
2005
2197
  "proposal.rejected": "#/$defs/ProposalRejected",
2006
2198
  "run.ended": "#/$defs/RunEnded",
2007
2199
  "run.started": "#/$defs/RunStarted",
2200
+ "session.pending": "#/$defs/JoinPending",
2008
2201
  "session.permission_mode_changed": "#/$defs/PermissionModeChanged",
2009
2202
  "session.prompt_mode_changed": "#/$defs/PromptModeChanged",
2203
+ "session.refused": "#/$defs/JoinRefused",
2010
2204
  "session.snapshot": "#/$defs/SessionSnapshot",
2011
2205
  "session.welcome": "#/$defs/SessionWelcome",
2012
2206
  "skills.changed": "#/$defs/SkillsChanged",
@@ -2045,6 +2239,21 @@
2045
2239
  {
2046
2240
  "$ref": "#/$defs/AgentChanged"
2047
2241
  },
2242
+ {
2243
+ "$ref": "#/$defs/AdmissionChanged"
2244
+ },
2245
+ {
2246
+ "$ref": "#/$defs/JoinRequested"
2247
+ },
2248
+ {
2249
+ "$ref": "#/$defs/JoinResolved"
2250
+ },
2251
+ {
2252
+ "$ref": "#/$defs/JoinPending"
2253
+ },
2254
+ {
2255
+ "$ref": "#/$defs/JoinRefused"
2256
+ },
2048
2257
  {
2049
2258
  "$ref": "#/$defs/PromptDequeued"
2050
2259
  },
@@ -48,6 +48,16 @@ export type PermissionMode = "default" | "accept_edits" | "plan" | "auto";
48
48
  * via the `definition` "SkillScope".
49
49
  */
50
50
  export type SkillScope = "project" | "global";
51
+ /**
52
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
53
+ * via the `definition` "AdmissionMode".
54
+ */
55
+ export type AdmissionMode = "approve" | "open";
56
+ /**
57
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
58
+ * via the `definition` "JoinDecision".
59
+ */
60
+ export type JoinDecision = "allow" | "viewer" | "deny" | "expired" | "gone" | "revoked";
51
61
  /**
52
62
  * This interface was referenced by `EventsSchema`'s JSON-Schema
53
63
  * via the `definition` "DequeueReason".
@@ -106,6 +116,11 @@ export interface EventsSchema {
106
116
  | SkillsChanged
107
117
  | SkillsFound
108
118
  | AgentChanged
119
+ | AdmissionChanged
120
+ | JoinRequested
121
+ | JoinResolved
122
+ | JoinPending
123
+ | JoinRefused
109
124
  | PromptDequeued
110
125
  | ParticipantTyping
111
126
  | ChatPosted
@@ -270,6 +285,58 @@ export interface AgentChanged {
270
285
  agent: string;
271
286
  type: "agent.changed";
272
287
  }
288
+ /**
289
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
290
+ * via the `definition` "AdmissionChanged".
291
+ */
292
+ export interface AdmissionChanged {
293
+ mode: AdmissionMode;
294
+ type: "link.admission_changed";
295
+ }
296
+ /**
297
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
298
+ * via the `definition` "JoinRequested".
299
+ */
300
+ export interface JoinRequested {
301
+ request: JoinRequestView;
302
+ type: "join.requested";
303
+ }
304
+ /**
305
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
306
+ * via the `definition` "JoinRequestView".
307
+ */
308
+ export interface JoinRequestView {
309
+ client: string;
310
+ id: string;
311
+ name: string;
312
+ requested_at: string;
313
+ }
314
+ /**
315
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
316
+ * via the `definition` "JoinResolved".
317
+ */
318
+ export interface JoinResolved {
319
+ decided_by: string | null;
320
+ decision: JoinDecision;
321
+ request_id: string;
322
+ type: "join.resolved";
323
+ }
324
+ /**
325
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
326
+ * via the `definition` "JoinPending".
327
+ */
328
+ export interface JoinPending {
329
+ type: "session.pending";
330
+ waiting: number;
331
+ }
332
+ /**
333
+ * This interface was referenced by `EventsSchema`'s JSON-Schema
334
+ * via the `definition` "JoinRefused".
335
+ */
336
+ export interface JoinRefused {
337
+ reason: string;
338
+ type: "session.refused";
339
+ }
273
340
  /**
274
341
  * This interface was referenced by `EventsSchema`'s JSON-Schema
275
342
  * via the `definition` "PromptDequeued".
@@ -619,6 +686,7 @@ export interface SessionSnapshot {
619
686
  * via the `definition` "SessionState".
620
687
  */
621
688
  export interface SessionState {
689
+ admission: "approve" | "open";
622
690
  agent: string;
623
691
  approvals: {
624
692
  [k: string]: ApprovalView;
@@ -628,6 +696,9 @@ export interface SessionState {
628
696
  };
629
697
  chat: ChatEntry[];
630
698
  context: ContextView | null;
699
+ join_requests: {
700
+ [k: string]: JoinRequestView;
701
+ };
631
702
  last_seq: number;
632
703
  mcp: McpServerView[];
633
704
  participants: {
@@ -695,8 +766,9 @@ export interface TranscriptEntry {
695
766
  */
696
767
  export interface InviteCreated {
697
768
  code: string;
698
- expires_at: string;
769
+ expires_at: string | null;
699
770
  link: string;
771
+ reusable: boolean;
700
772
  role: Role;
701
773
  type: "invite.created";
702
774
  }
@@ -725,6 +797,11 @@ export interface EventRecord {
725
797
  | SkillsChanged
726
798
  | SkillsFound
727
799
  | AgentChanged
800
+ | AdmissionChanged
801
+ | JoinRequested
802
+ | JoinResolved
803
+ | JoinPending
804
+ | JoinRefused
728
805
  | PromptDequeued
729
806
  | ParticipantTyping
730
807
  | ChatPosted
@@ -11,6 +11,7 @@ export type {
11
11
  ApprovalView,
12
12
  AttachmentMeta,
13
13
  ChatEntry,
14
+ JoinRequestView,
14
15
  ContextView,
15
16
  Envelope,
16
17
  ErrorCode,