sessionweave-broker 0.35.0__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 (250) hide show
  1. sessionweave_broker-0.35.0/.dockerignore +13 -0
  2. sessionweave_broker-0.35.0/.env.example +127 -0
  3. sessionweave_broker-0.35.0/.github/workflows/ci.yml +42 -0
  4. sessionweave_broker-0.35.0/.github/workflows/release.yml +104 -0
  5. sessionweave_broker-0.35.0/.gitignore +18 -0
  6. sessionweave_broker-0.35.0/CHANGELOG.md +27 -0
  7. sessionweave_broker-0.35.0/Dockerfile +20 -0
  8. sessionweave_broker-0.35.0/LICENSE +202 -0
  9. sessionweave_broker-0.35.0/NOTICE +7 -0
  10. sessionweave_broker-0.35.0/PKG-INFO +976 -0
  11. sessionweave_broker-0.35.0/README.md +938 -0
  12. sessionweave_broker-0.35.0/RELEASING.md +49 -0
  13. sessionweave_broker-0.35.0/ci/check_sdk_on_pypi.py +157 -0
  14. sessionweave_broker-0.35.0/docs/guide/README.md +1042 -0
  15. sessionweave_broker-0.35.0/pyproject.toml +118 -0
  16. sessionweave_broker-0.35.0/skills/README.md +55 -0
  17. sessionweave_broker-0.35.0/skills/sessionweave-participant/SKILL.md +1801 -0
  18. sessionweave_broker-0.35.0/src/sessionweave/__init__.py +10 -0
  19. sessionweave_broker-0.35.0/src/sessionweave/_data/VENDORED.md +22 -0
  20. sessionweave_broker-0.35.0/src/sessionweave/_data/skill.md +1801 -0
  21. sessionweave_broker-0.35.0/src/sessionweave/_data/swagger-ui/swagger-ui-bundle.js +2 -0
  22. sessionweave_broker-0.35.0/src/sessionweave/_data/swagger-ui/swagger-ui-bundle.js.LICENSE.txt +106 -0
  23. sessionweave_broker-0.35.0/src/sessionweave/_data/swagger-ui/swagger-ui.css +3 -0
  24. sessionweave_broker-0.35.0/src/sessionweave/_data/vendor/marked.min.js +6 -0
  25. sessionweave_broker-0.35.0/src/sessionweave/access.py +482 -0
  26. sessionweave_broker-0.35.0/src/sessionweave/access_log_filter.py +76 -0
  27. sessionweave_broker-0.35.0/src/sessionweave/account_events.py +205 -0
  28. sessionweave_broker-0.35.0/src/sessionweave/accounts.py +845 -0
  29. sessionweave_broker-0.35.0/src/sessionweave/accounts_api.py +663 -0
  30. sessionweave_broker-0.35.0/src/sessionweave/accounts_cli.py +186 -0
  31. sessionweave_broker-0.35.0/src/sessionweave/brief.py +217 -0
  32. sessionweave_broker-0.35.0/src/sessionweave/config.py +325 -0
  33. sessionweave_broker-0.35.0/src/sessionweave/connections.py +74 -0
  34. sessionweave_broker-0.35.0/src/sessionweave/cors.py +43 -0
  35. sessionweave_broker-0.35.0/src/sessionweave/dispatcher.py +100 -0
  36. sessionweave_broker-0.35.0/src/sessionweave/docs_hub.py +180 -0
  37. sessionweave_broker-0.35.0/src/sessionweave/errors.py +65 -0
  38. sessionweave_broker-0.35.0/src/sessionweave/events_ws.py +406 -0
  39. sessionweave_broker-0.35.0/src/sessionweave/firehose.py +162 -0
  40. sessionweave_broker-0.35.0/src/sessionweave/host_cli.py +352 -0
  41. sessionweave_broker-0.35.0/src/sessionweave/http_api.py +1169 -0
  42. sessionweave_broker-0.35.0/src/sessionweave/invite.py +176 -0
  43. sessionweave_broker-0.35.0/src/sessionweave/landing.py +105 -0
  44. sessionweave_broker-0.35.0/src/sessionweave/launch.py +157 -0
  45. sessionweave_broker-0.35.0/src/sessionweave/launchers.py +648 -0
  46. sessionweave_broker-0.35.0/src/sessionweave/launches.py +605 -0
  47. sessionweave_broker-0.35.0/src/sessionweave/limits.py +261 -0
  48. sessionweave_broker-0.35.0/src/sessionweave/logging_setup.py +122 -0
  49. sessionweave_broker-0.35.0/src/sessionweave/main.py +67 -0
  50. sessionweave_broker-0.35.0/src/sessionweave/mcp_adapter.py +451 -0
  51. sessionweave_broker-0.35.0/src/sessionweave/metrics.py +192 -0
  52. sessionweave_broker-0.35.0/src/sessionweave/models.py +156 -0
  53. sessionweave_broker-0.35.0/src/sessionweave/notifications.py +117 -0
  54. sessionweave_broker-0.35.0/src/sessionweave/openapi.yaml +2647 -0
  55. sessionweave_broker-0.35.0/src/sessionweave/persistence.py +658 -0
  56. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/001_initial.sql +54 -0
  57. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/002_session_tokens.sql +10 -0
  58. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/003_accounts.sql +24 -0
  59. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/004_account_events.sql +16 -0
  60. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/005_token_networks.sql +17 -0
  61. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/006_network_approvals_expiry.sql +1 -0
  62. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/007_coordinator.sql +1 -0
  63. sessionweave_broker-0.35.0/src/sessionweave/persistence_migrations/__init__.py +3 -0
  64. sessionweave_broker-0.35.0/src/sessionweave/poller.py +224 -0
  65. sessionweave_broker-0.35.0/src/sessionweave/registry.py +663 -0
  66. sessionweave_broker-0.35.0/src/sessionweave/schemas.py +390 -0
  67. sessionweave_broker-0.35.0/src/sessionweave/server.py +1570 -0
  68. sessionweave_broker-0.35.0/src/sessionweave/session.py +2407 -0
  69. sessionweave_broker-0.35.0/src/sessionweave/skill_serve.py +78 -0
  70. sessionweave_broker-0.35.0/src/sessionweave/supervisor.py +113 -0
  71. sessionweave_broker-0.35.0/src/sessionweave/tools.py +1089 -0
  72. sessionweave_broker-0.35.0/tests/__init__.py +0 -0
  73. sessionweave_broker-0.35.0/tests/conftest.py +0 -0
  74. sessionweave_broker-0.35.0/tests/e2e/__init__.py +0 -0
  75. sessionweave_broker-0.35.0/tests/e2e/test_cockpit_browses_cold_session.py +72 -0
  76. sessionweave_broker-0.35.0/tests/e2e/test_wait_for_event_e2e.py +219 -0
  77. sessionweave_broker-0.35.0/tests/fuzz/__init__.py +0 -0
  78. sessionweave_broker-0.35.0/tests/integration/__init__.py +0 -0
  79. sessionweave_broker-0.35.0/tests/integration/accounts_fixtures.py +48 -0
  80. sessionweave_broker-0.35.0/tests/integration/client.py +165 -0
  81. sessionweave_broker-0.35.0/tests/integration/conftest.py +1 -0
  82. sessionweave_broker-0.35.0/tests/integration/harness.py +91 -0
  83. sessionweave_broker-0.35.0/tests/integration/test_access_log_redaction_live.py +77 -0
  84. sessionweave_broker-0.35.0/tests/integration/test_access_matrix.py +183 -0
  85. sessionweave_broker-0.35.0/tests/integration/test_account_caps.py +76 -0
  86. sessionweave_broker-0.35.0/tests/integration/test_account_events_api.py +128 -0
  87. sessionweave_broker-0.35.0/tests/integration/test_account_firehose_cut.py +136 -0
  88. sessionweave_broker-0.35.0/tests/integration/test_account_mode_create.py +121 -0
  89. sessionweave_broker-0.35.0/tests/integration/test_account_suspension.py +366 -0
  90. sessionweave_broker-0.35.0/tests/integration/test_accounts_api.py +367 -0
  91. sessionweave_broker-0.35.0/tests/integration/test_agent_launch.py +1105 -0
  92. sessionweave_broker-0.35.0/tests/integration/test_buffer_race.py +172 -0
  93. sessionweave_broker-0.35.0/tests/integration/test_cli_tooling_auth.py +81 -0
  94. sessionweave_broker-0.35.0/tests/integration/test_coordinator.py +333 -0
  95. sessionweave_broker-0.35.0/tests/integration/test_cors.py +36 -0
  96. sessionweave_broker-0.35.0/tests/integration/test_delete_session.py +74 -0
  97. sessionweave_broker-0.35.0/tests/integration/test_describe.py +65 -0
  98. sessionweave_broker-0.35.0/tests/integration/test_dispatch.py +627 -0
  99. sessionweave_broker-0.35.0/tests/integration/test_docs_hub.py +120 -0
  100. sessionweave_broker-0.35.0/tests/integration/test_firehose.py +113 -0
  101. sessionweave_broker-0.35.0/tests/integration/test_http_api.py +301 -0
  102. sessionweave_broker-0.35.0/tests/integration/test_info_capabilities.py +38 -0
  103. sessionweave_broker-0.35.0/tests/integration/test_invite_brief.py +60 -0
  104. sessionweave_broker-0.35.0/tests/integration/test_invite_brief_roundtrip.py +74 -0
  105. sessionweave_broker-0.35.0/tests/integration/test_join_gating.py +213 -0
  106. sessionweave_broker-0.35.0/tests/integration/test_launcher_ws.py +366 -0
  107. sessionweave_broker-0.35.0/tests/integration/test_lifecycle.py +179 -0
  108. sessionweave_broker-0.35.0/tests/integration/test_mcp_bearer_participant.py +120 -0
  109. sessionweave_broker-0.35.0/tests/integration/test_mcp_disconnect.py +136 -0
  110. sessionweave_broker-0.35.0/tests/integration/test_mcp_new_session_limit.py +45 -0
  111. sessionweave_broker-0.35.0/tests/integration/test_mcp_push_seq.py +226 -0
  112. sessionweave_broker-0.35.0/tests/integration/test_metrics_endpoint.py +22 -0
  113. sessionweave_broker-0.35.0/tests/integration/test_note_threads.py +355 -0
  114. sessionweave_broker-0.35.0/tests/integration/test_notifications.py +78 -0
  115. sessionweave_broker-0.35.0/tests/integration/test_offline_resume.py +175 -0
  116. sessionweave_broker-0.35.0/tests/integration/test_onboarding_surface.py +116 -0
  117. sessionweave_broker-0.35.0/tests/integration/test_owner_account_token.py +123 -0
  118. sessionweave_broker-0.35.0/tests/integration/test_persistence_concurrent_hydrate.py +126 -0
  119. sessionweave_broker-0.35.0/tests/integration/test_persistence_create_delete_e2e.py +63 -0
  120. sessionweave_broker-0.35.0/tests/integration/test_persistence_creator_token_one_time.py +65 -0
  121. sessionweave_broker-0.35.0/tests/integration/test_persistence_creator_token_rate_limit.py +73 -0
  122. sessionweave_broker-0.35.0/tests/integration/test_persistence_cross_restart_resume.py +85 -0
  123. sessionweave_broker-0.35.0/tests/integration/test_persistence_describe_includes_state.py +73 -0
  124. sessionweave_broker-0.35.0/tests/integration/test_persistence_events_endpoint.py +132 -0
  125. sessionweave_broker-0.35.0/tests/integration/test_persistence_failed_disk_full.py +37 -0
  126. sessionweave_broker-0.35.0/tests/integration/test_persistence_hot_cold_hydrate.py +69 -0
  127. sessionweave_broker-0.35.0/tests/integration/test_persistence_no_history_for_ephemeral.py +72 -0
  128. sessionweave_broker-0.35.0/tests/integration/test_persistence_ownership.py +112 -0
  129. sessionweave_broker-0.35.0/tests/integration/test_persistence_sweep_purges.py +95 -0
  130. sessionweave_broker-0.35.0/tests/integration/test_persistence_tokens.py +136 -0
  131. sessionweave_broker-0.35.0/tests/integration/test_persistence_writethrough_durability.py +80 -0
  132. sessionweave_broker-0.35.0/tests/integration/test_purpose.py +54 -0
  133. sessionweave_broker-0.35.0/tests/integration/test_relay_epoch.py +83 -0
  134. sessionweave_broker-0.35.0/tests/integration/test_remove_participant.py +580 -0
  135. sessionweave_broker-0.35.0/tests/integration/test_request_size_cap.py +64 -0
  136. sessionweave_broker-0.35.0/tests/integration/test_resume_with_last_acked_seq.py +211 -0
  137. sessionweave_broker-0.35.0/tests/integration/test_session_byte_budget.py +169 -0
  138. sessionweave_broker-0.35.0/tests/integration/test_session_credentials.py +159 -0
  139. sessionweave_broker-0.35.0/tests/integration/test_shutdown.py +64 -0
  140. sessionweave_broker-0.35.0/tests/integration/test_smoke.py +22 -0
  141. sessionweave_broker-0.35.0/tests/integration/test_supervision_orders.py +466 -0
  142. sessionweave_broker-0.35.0/tests/integration/test_supervision_persistence.py +94 -0
  143. sessionweave_broker-0.35.0/tests/integration/test_supervisor_notes.py +214 -0
  144. sessionweave_broker-0.35.0/tests/integration/test_token_networks_api.py +361 -0
  145. sessionweave_broker-0.35.0/tests/integration/test_token_networks_paths.py +297 -0
  146. sessionweave_broker-0.35.0/tests/integration/test_tools.py +81 -0
  147. sessionweave_broker-0.35.0/tests/integration/test_transport_security.py +85 -0
  148. sessionweave_broker-0.35.0/tests/integration/test_ttl_race_orphaned_results.py +343 -0
  149. sessionweave_broker-0.35.0/tests/integration/test_update_purpose.py +89 -0
  150. sessionweave_broker-0.35.0/tests/integration/test_validation.py +99 -0
  151. sessionweave_broker-0.35.0/tests/integration/test_wait_for_event_http.py +326 -0
  152. sessionweave_broker-0.35.0/tests/integration/test_wait_for_event_mcp.py +140 -0
  153. sessionweave_broker-0.35.0/tests/integration/test_websocket_events.py +426 -0
  154. sessionweave_broker-0.35.0/tests/integration/test_ws_seq_resume.py +336 -0
  155. sessionweave_broker-0.35.0/tests/property/__init__.py +0 -0
  156. sessionweave_broker-0.35.0/tests/property/test_invariants.py +141 -0
  157. sessionweave_broker-0.35.0/tests/property/test_persistence_buffered_consistency.py +178 -0
  158. sessionweave_broker-0.35.0/tests/property/test_persistence_byte_budget_invariant.py +196 -0
  159. sessionweave_broker-0.35.0/tests/property/test_persistence_round_trip.py +162 -0
  160. sessionweave_broker-0.35.0/tests/property/test_persistence_seq_monotonic.py +121 -0
  161. sessionweave_broker-0.35.0/tests/test_access_log_filter.py +123 -0
  162. sessionweave_broker-0.35.0/tests/test_logging_setup.py +137 -0
  163. sessionweave_broker-0.35.0/tests/unit/__init__.py +0 -0
  164. sessionweave_broker-0.35.0/tests/unit/fakes.py +24 -0
  165. sessionweave_broker-0.35.0/tests/unit/test_access.py +206 -0
  166. sessionweave_broker-0.35.0/tests/unit/test_account_events.py +144 -0
  167. sessionweave_broker-0.35.0/tests/unit/test_account_token_cap.py +34 -0
  168. sessionweave_broker-0.35.0/tests/unit/test_accounts_api_handlers.py +132 -0
  169. sessionweave_broker-0.35.0/tests/unit/test_accounts_cli.py +218 -0
  170. sessionweave_broker-0.35.0/tests/unit/test_accounts_store.py +144 -0
  171. sessionweave_broker-0.35.0/tests/unit/test_brief.py +138 -0
  172. sessionweave_broker-0.35.0/tests/unit/test_brief_no_injection_framing.py +78 -0
  173. sessionweave_broker-0.35.0/tests/unit/test_check_sdk_on_pypi.py +121 -0
  174. sessionweave_broker-0.35.0/tests/unit/test_config.py +213 -0
  175. sessionweave_broker-0.35.0/tests/unit/test_config_persistence.py +81 -0
  176. sessionweave_broker-0.35.0/tests/unit/test_connections.py +97 -0
  177. sessionweave_broker-0.35.0/tests/unit/test_cors.py +35 -0
  178. sessionweave_broker-0.35.0/tests/unit/test_create_session_auth_before_body.py +127 -0
  179. sessionweave_broker-0.35.0/tests/unit/test_dispatch_no_recipients.py +95 -0
  180. sessionweave_broker-0.35.0/tests/unit/test_dispatcher.py +158 -0
  181. sessionweave_broker-0.35.0/tests/unit/test_docs_hub.py +91 -0
  182. sessionweave_broker-0.35.0/tests/unit/test_errors.py +38 -0
  183. sessionweave_broker-0.35.0/tests/unit/test_evict_persists_left_at.py +106 -0
  184. sessionweave_broker-0.35.0/tests/unit/test_firehose.py +64 -0
  185. sessionweave_broker-0.35.0/tests/unit/test_host_cli.py +113 -0
  186. sessionweave_broker-0.35.0/tests/unit/test_http_participant_handle.py +69 -0
  187. sessionweave_broker-0.35.0/tests/unit/test_invite.py +159 -0
  188. sessionweave_broker-0.35.0/tests/unit/test_landing.py +23 -0
  189. sessionweave_broker-0.35.0/tests/unit/test_launch.py +102 -0
  190. sessionweave_broker-0.35.0/tests/unit/test_launcher_ws_guards.py +92 -0
  191. sessionweave_broker-0.35.0/tests/unit/test_launchers.py +178 -0
  192. sessionweave_broker-0.35.0/tests/unit/test_mcp2_sdk_contract.py +120 -0
  193. sessionweave_broker-0.35.0/tests/unit/test_mcp_explicit_participant.py +103 -0
  194. sessionweave_broker-0.35.0/tests/unit/test_mcp_handle_registry_lifecycle.py +181 -0
  195. sessionweave_broker-0.35.0/tests/unit/test_mcp_handle_requeue_on_failure.py +158 -0
  196. sessionweave_broker-0.35.0/tests/unit/test_mcp_new_session_limit.py +91 -0
  197. sessionweave_broker-0.35.0/tests/unit/test_mcp_param_descriptions.py +119 -0
  198. sessionweave_broker-0.35.0/tests/unit/test_mcp_requeue_after_unbind.py +93 -0
  199. sessionweave_broker-0.35.0/tests/unit/test_mcp_single_session_binding.py +141 -0
  200. sessionweave_broker-0.35.0/tests/unit/test_mcp_stateless_transport_rejected.py +56 -0
  201. sessionweave_broker-0.35.0/tests/unit/test_mcp_tool_descriptions.py +145 -0
  202. sessionweave_broker-0.35.0/tests/unit/test_metrics.py +61 -0
  203. sessionweave_broker-0.35.0/tests/unit/test_metrics_bounded_labels.py +162 -0
  204. sessionweave_broker-0.35.0/tests/unit/test_metrics_participants_active_balance.py +221 -0
  205. sessionweave_broker-0.35.0/tests/unit/test_metrics_persistence.py +46 -0
  206. sessionweave_broker-0.35.0/tests/unit/test_metrics_sessions_active_balance.py +150 -0
  207. sessionweave_broker-0.35.0/tests/unit/test_metrics_token_compare.py +38 -0
  208. sessionweave_broker-0.35.0/tests/unit/test_models.py +45 -0
  209. sessionweave_broker-0.35.0/tests/unit/test_notifications.py +53 -0
  210. sessionweave_broker-0.35.0/tests/unit/test_openapi_sync.py +93 -0
  211. sessionweave_broker-0.35.0/tests/unit/test_persistence_store_events.py +220 -0
  212. sessionweave_broker-0.35.0/tests/unit/test_persistence_store_init.py +119 -0
  213. sessionweave_broker-0.35.0/tests/unit/test_persistence_store_participants_and_sweep.py +160 -0
  214. sessionweave_broker-0.35.0/tests/unit/test_poller.py +139 -0
  215. sessionweave_broker-0.35.0/tests/unit/test_record_ack_amortized.py +122 -0
  216. sessionweave_broker-0.35.0/tests/unit/test_registry.py +151 -0
  217. sessionweave_broker-0.35.0/tests/unit/test_registry_persistence.py +124 -0
  218. sessionweave_broker-0.35.0/tests/unit/test_registry_sweep_expired.py +136 -0
  219. sessionweave_broker-0.35.0/tests/unit/test_request_size_limit.py +129 -0
  220. sessionweave_broker-0.35.0/tests/unit/test_resolve_principal.py +240 -0
  221. sessionweave_broker-0.35.0/tests/unit/test_schemas.py +149 -0
  222. sessionweave_broker-0.35.0/tests/unit/test_schemas_persistence.py +157 -0
  223. sessionweave_broker-0.35.0/tests/unit/test_server_drain.py +47 -0
  224. sessionweave_broker-0.35.0/tests/unit/test_session_auth_state.py +76 -0
  225. sessionweave_broker-0.35.0/tests/unit/test_session_cancellation.py +110 -0
  226. sessionweave_broker-0.35.0/tests/unit/test_session_command.py +194 -0
  227. sessionweave_broker-0.35.0/tests/unit/test_session_creation_mode.py +40 -0
  228. sessionweave_broker-0.35.0/tests/unit/test_session_handle_disconnect.py +136 -0
  229. sessionweave_broker-0.35.0/tests/unit/test_session_hydrate.py +160 -0
  230. sessionweave_broker-0.35.0/tests/unit/test_session_inbox.py +133 -0
  231. sessionweave_broker-0.35.0/tests/unit/test_session_membership.py +72 -0
  232. sessionweave_broker-0.35.0/tests/unit/test_session_persist_writethrough.py +172 -0
  233. sessionweave_broker-0.35.0/tests/unit/test_session_purpose.py +51 -0
  234. sessionweave_broker-0.35.0/tests/unit/test_session_resume.py +81 -0
  235. sessionweave_broker-0.35.0/tests/unit/test_session_state.py +88 -0
  236. sessionweave_broker-0.35.0/tests/unit/test_session_supervision_state.py +25 -0
  237. sessionweave_broker-0.35.0/tests/unit/test_session_update_purpose.py +77 -0
  238. sessionweave_broker-0.35.0/tests/unit/test_session_wait_for_event.py +454 -0
  239. sessionweave_broker-0.35.0/tests/unit/test_skill_bundle_sync.py +42 -0
  240. sessionweave_broker-0.35.0/tests/unit/test_skill_serve.py +90 -0
  241. sessionweave_broker-0.35.0/tests/unit/test_smoke_import.py +9 -0
  242. sessionweave_broker-0.35.0/tests/unit/test_subscriber_fairness.py +67 -0
  243. sessionweave_broker-0.35.0/tests/unit/test_supervisor.py +102 -0
  244. sessionweave_broker-0.35.0/tests/unit/test_supervisor_parse.py +80 -0
  245. sessionweave_broker-0.35.0/tests/unit/test_token_networks.py +404 -0
  246. sessionweave_broker-0.35.0/tests/unit/test_tool_describe_access.py +51 -0
  247. sessionweave_broker-0.35.0/tests/unit/test_tool_session_delete.py +102 -0
  248. sessionweave_broker-0.35.0/tests/unit/test_tool_session_get_events.py +160 -0
  249. sessionweave_broker-0.35.0/tests/unit/test_tools_session_create_persistence.py +133 -0
  250. sessionweave_broker-0.35.0/tests/unit/test_tools_wait_for_event_clamp.py +284 -0
@@ -0,0 +1,13 @@
1
+ .venv
2
+ __pycache__
3
+ *.pyc
4
+ .git
5
+ .github
6
+ .pytest_cache
7
+ .mypy_cache
8
+ .ruff_cache
9
+ docs
10
+ tests
11
+ *.egg-info
12
+ .coverage
13
+ htmlcov
@@ -0,0 +1,127 @@
1
+ # SessionWeave relay — environment configuration example
2
+ #
3
+ # Copy to `.env` and adjust. EVERY variable is OPTIONAL: the values shown are the
4
+ # built-in defaults and reproduce the relay's out-of-the-box behavior. Load with your
5
+ # process manager, e.g.:
6
+ # docker run --env-file .env -p 8765:8765 sessionweave:latest
7
+ # # or: set -a; . ./.env; set +a; sessionweave
8
+ #
9
+ # Empty value = feature disabled / derived at runtime (noted per entry).
10
+
11
+ # ── Process binding ──────────────────────────────────────────────────────────
12
+ SW_HOST=0.0.0.0
13
+ SW_PORT=8765
14
+ # Comma-separated CIDRs/IPs whose X-Forwarded-* and Host headers uvicorn will trust.
15
+ # Behind a reverse proxy / TLS terminator, set this to the proxy (and/or docker
16
+ # bridge), e.g. "172.17.0.0/16,127.0.0.1".
17
+ SW_FORWARDED_ALLOW_IPS=127.0.0.1
18
+
19
+ # ── Public addressing — used by the GET /invite/<sid> participation brief ────
20
+ # Absolute base URL the brief advertises in its curl examples. Leave EMPTY to
21
+ # derive it from the (forwarded) request. Set it when behind a proxy whose public
22
+ # URL differs from what the relay sees, e.g. https://broker.sessionweave.com
23
+ SW_PUBLIC_BASE_URL=
24
+
25
+ # ── /invite brief — optional Tier 1-3 upgrade pointers ───────────────────────
26
+ # URLs the brief points agents at for richer / persistent / autonomous participation.
27
+ # Leave EMPTY and the brief simply tells agents to "ask your operator".
28
+ SW_SKILL_URL=
29
+ SW_MCP_SNIPPET_URL=
30
+ SW_RUNNER_INSTALL_URL=
31
+
32
+ # ── Security / auth (STRONGLY recommended for multi-tenant production) ────────
33
+ # When set, GET /metrics requires `Authorization: Bearer <token>` (else open);
34
+ # the relay admin token (SW_ADMIN_TOKEN) is accepted too.
35
+ SW_METRICS_TOKEN=
36
+ # Relay-wide admin token. Grants operator access to the firehose, supervisor
37
+ # notes and session deletion for every session. Unset = no admin access.
38
+ SW_ADMIN_TOKEN=
39
+ # DNS-rebinding guard. Defaults to loopback only; add the hosts you serve under,
40
+ # comma-separated, e.g. "broker.sessionweave.com,broker.sessionweave.com:443".
41
+ SW_ALLOWED_HOSTS=
42
+ # CORS allow-list (comma-separated origins). EMPTY = wildcard "*" — safe here because
43
+ # auth is bearer-only on every request (no cookies, allow_credentials is always false).
44
+ SW_CORS_ORIGINS=
45
+ # Agent launchers (open mode): shared secret a launcher must send as
46
+ # `Authorization: Bearer` on /v1/launchers/connect. Unset = any launcher that can
47
+ # reach the broker may register (a warning is logged at startup). In account mode
48
+ # launchers authenticate with an account token instead.
49
+ SW_LAUNCHER_TOKEN=
50
+ # Seconds a launched agent has to join with its launch credential (1..3600).
51
+ SW_LAUNCH_JOIN_TIMEOUT_S=120
52
+ # Seconds a disconnected launcher has to reconnect and report its running agents
53
+ # before they are removed with reason launcher_lost (1..86400).
54
+ SW_LAUNCHER_RECONNECT_GRACE_S=300
55
+
56
+ # ── Persistence (opt-in; EMPTY = in-memory only = Zero Data Retention) ───────
57
+ # Set a path to enable DB-backed sessions, e.g. data/sessionweave.db
58
+ SW_PERSISTENCE_DB_PATH=
59
+ SW_PERSISTENCE_DB_POOL_SIZE=4
60
+ SW_PERSISTENCE_SWEEP_INTERVAL_SECONDS=60
61
+ SW_PERSISTENCE_UNTIL_DELETED_SAFETY_SECONDS=7776000
62
+
63
+ # ── Supervisor-note rate limits ──────────────────────────────────────────────
64
+ SW_SUPERVISOR_NOTES_PER_MINUTE=30
65
+ SW_SUPERVISOR_NOTES_PER_HOUR=200
66
+
67
+ # ── Firehose ─────────────────────────────────────────────────────────────────
68
+ SW_MAX_FIREHOSE_PER_SESSION=16
69
+ SW_FIREHOSE_QUEUE_CAPACITY=256
70
+
71
+ # ── Session factory defaults (applied to new sessions) ───────────────────────
72
+ SW_DEFAULT_MAX_PARTICIPANTS=16
73
+ SW_DEFAULT_MAX_PAYLOAD_BYTES=262144
74
+ SW_DEFAULT_IDLE_TTL_SECONDS=1800
75
+ SW_DEFAULT_COMMAND_TIMEOUT_SECONDS=60
76
+ SW_DEFAULT_MAX_COMMAND_TIMEOUT_SECONDS=300
77
+ SW_DEFAULT_OFFLINE_GRACE_SECONDS=300
78
+ SW_DEFAULT_MAX_PENDING_NOTIFICATIONS=1000
79
+ SW_DEFAULT_MAX_WAIT_SECONDS=600
80
+ SW_DEFAULT_MAX_CONCURRENT_WAITS_TOTAL=1000
81
+ SW_DEFAULT_MAX_WAIT_SECONDS_MCP=20
82
+ SW_DEFAULT_MAX_BUFFER_BYTES_PER_SESSION=52428800
83
+
84
+ # ── Per-session config bounds [min, max] a client may request ────────────────
85
+ # (Advanced. The factory defaults above must stay within these ranges at startup.)
86
+ SW_MIN_MAX_PARTICIPANTS=2
87
+ SW_MAX_MAX_PARTICIPANTS=256
88
+ SW_MIN_MAX_PAYLOAD_BYTES=1024
89
+ SW_MAX_MAX_PAYLOAD_BYTES=4194304
90
+ SW_MIN_IDLE_TTL_SECONDS=60
91
+ SW_MAX_IDLE_TTL_SECONDS=86400
92
+ SW_MIN_DEFAULT_COMMAND_TIMEOUT_SECONDS=1
93
+ SW_MIN_MAX_COMMAND_TIMEOUT_SECONDS=1
94
+ SW_MAX_MAX_COMMAND_TIMEOUT_SECONDS=3600
95
+ SW_MIN_OFFLINE_GRACE_SECONDS=0
96
+ SW_MAX_OFFLINE_GRACE_SECONDS=3600
97
+ SW_MIN_MAX_PENDING_NOTIFICATIONS=0
98
+ SW_MAX_MAX_PENDING_NOTIFICATIONS=100000
99
+ SW_MIN_MAX_WAIT_SECONDS=1
100
+ SW_MAX_MAX_WAIT_SECONDS=3600
101
+ SW_MIN_MAX_CONCURRENT_WAITS_TOTAL=0
102
+ SW_MAX_MAX_CONCURRENT_WAITS_TOTAL=100000
103
+ SW_MIN_MAX_WAIT_SECONDS_MCP=1
104
+ SW_MAX_MAX_WAIT_SECONDS_MCP=60
105
+ SW_MIN_MAX_BUFFER_BYTES_PER_SESSION=1048576
106
+ SW_MAX_MAX_BUFFER_BYTES_PER_SESSION=4294967296
107
+ SW_MIN_PERSISTENCE_TTL_SECONDS=3600
108
+ SW_MAX_PERSISTENCE_TTL_SECONDS=7776000
109
+ SW_MIN_PERSISTENCE_DB_POOL_SIZE=1
110
+ SW_MAX_PERSISTENCE_DB_POOL_SIZE=32
111
+ SW_MIN_PERSISTENCE_SWEEP_INTERVAL_SECONDS=10
112
+ SW_MAX_PERSISTENCE_SWEEP_INTERVAL_SECONDS=3600
113
+
114
+ # ── Logging (file output; journald/console output is unaffected) ──────────────
115
+ # Rotating log file, written by default. Set SW_LOG_FILE empty to disable.
116
+ SW_LOG_FILE=~/.sessionweave/logs/broker.log
117
+ SW_LOG_MAX_BYTES=10485760
118
+ SW_LOG_BACKUP_COUNT=5
119
+
120
+ # --- MCP transport (mcp 2.x) -------------------------------------------------
121
+ # How long the SDK keeps an idle MCP transport before terminating it. Past it
122
+ # the session id answers HTTP 404 and the client must re-initialize and call
123
+ # session_resume. This is also what reclaims a transport whose client vanished
124
+ # without a DELETE. 0 disables it, which is not recommended.
125
+ SW_MCP_SESSION_IDLE_TIMEOUT=1800
126
+ # Cap on concurrent MCP transports; beyond it the SDK answers HTTP 503.
127
+ SW_MCP_MAX_SESSIONS=10000
@@ -0,0 +1,42 @@
1
+ name: ci
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+ jobs:
7
+ test:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/setup-python@v5
12
+ with:
13
+ python-version: "3.12"
14
+ cache: 'pip'
15
+ - run: pip install -e '.[dev]'
16
+ - run: ruff check .
17
+ - run: mypy .
18
+ - run: pytest -q -m "not fuzz and not e2e"
19
+
20
+ broker-e2e:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.12"
27
+ cache: 'pip'
28
+ - run: pip install -e '.[dev]'
29
+ - run: playwright install chromium --with-deps
30
+ - run: pytest tests/e2e -v -m e2e
31
+
32
+ docker:
33
+ name: docker build (no push)
34
+ runs-on: ubuntu-latest
35
+ steps:
36
+ - uses: actions/checkout@v4
37
+ - uses: docker/setup-buildx-action@v3
38
+ - uses: docker/build-push-action@v6
39
+ with:
40
+ context: .
41
+ push: false
42
+ tags: sessionweave-broker:ci
@@ -0,0 +1,104 @@
1
+ name: release
2
+ # Tag vX.Y.Z (matching pyproject.toml) to release the broker:
3
+ # - PyPI `sessionweave-broker` (trusted publishing: a (pending) publisher for this
4
+ # repository, workflow `release.yml`, environment `pypi`)
5
+ # - GitHub release with the wheel and sdist
6
+ # - ghcr.io/reinventyoursolutions/sessionweave-broker:<tag> and :latest
7
+ # - optional: repository_dispatch to sessionweave-e2e (secret E2E_DISPATCH_TOKEN)
8
+ # No upload-artifact: Actions artifact storage shares the account quota with GHCR.
9
+ on:
10
+ push:
11
+ tags: ['v*.*.*']
12
+ permissions:
13
+ contents: read
14
+ jobs:
15
+ checks:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+ cache: 'pip'
23
+ - name: Verify tag matches pyproject version
24
+ run: |
25
+ tag_version="${GITHUB_REF_NAME#v}"
26
+ pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
27
+ [ "$tag_version" = "$pyproject_version" ] || { echo "::error::tag $GITHUB_REF_NAME != pyproject.toml $pyproject_version"; exit 1; }
28
+ - name: Guard - sessionweave-sdk must be on PyPI (dependency confusion)
29
+ run: |
30
+ python -m pip install packaging
31
+ python ci/check_sdk_on_pypi.py
32
+ - run: pip install -e '.[dev]'
33
+ - run: playwright install chromium --with-deps
34
+ - run: ruff check . && mypy . && pytest -q -m "not fuzz and not e2e"
35
+ - run: pytest tests/e2e -v -m e2e
36
+
37
+ pypi-and-release:
38
+ needs: checks
39
+ runs-on: ubuntu-latest
40
+ environment:
41
+ name: pypi
42
+ url: https://pypi.org/project/sessionweave-broker/
43
+ permissions:
44
+ id-token: write # trusted publishing (OIDC)
45
+ contents: write # GitHub release
46
+ steps:
47
+ - uses: actions/checkout@v4
48
+ - uses: actions/setup-python@v5
49
+ with:
50
+ python-version: "3.12"
51
+ - run: pip install build twine
52
+ # build only: the wheel declares sessionweave-sdk by name; it is installed
53
+ # from PyPI by users, so publish the SDK to PyPI before this release.
54
+ - run: python -m build
55
+ - run: twine check dist/*
56
+ - name: Publish to PyPI (trusted publishing)
57
+ uses: pypa/gh-action-pypi-publish@release/v1
58
+ with:
59
+ # PEP 740 provenance (the Runner's release guard can verify it)
60
+ attestations: true
61
+ - uses: softprops/action-gh-release@v2
62
+ with:
63
+ name: "Broker ${{ github.ref_name }}"
64
+ files: |
65
+ dist/*.whl
66
+ dist/*.tar.gz
67
+ generate_release_notes: true
68
+
69
+ image:
70
+ needs: checks
71
+ runs-on: ubuntu-latest
72
+ permissions:
73
+ contents: read
74
+ packages: write
75
+ steps:
76
+ - uses: actions/checkout@v4
77
+ - uses: docker/setup-qemu-action@v3
78
+ - uses: docker/setup-buildx-action@v3
79
+ - uses: docker/login-action@v3
80
+ with:
81
+ registry: ghcr.io
82
+ username: ${{ github.actor }}
83
+ password: ${{ secrets.GITHUB_TOKEN }}
84
+ - uses: docker/build-push-action@v6
85
+ with:
86
+ context: .
87
+ platforms: linux/amd64,linux/arm64
88
+ push: true
89
+ tags: |
90
+ ghcr.io/reinventyoursolutions/sessionweave-broker:${{ github.ref_name }}
91
+ ghcr.io/reinventyoursolutions/sessionweave-broker:latest
92
+
93
+ notify-e2e:
94
+ needs: [pypi-and-release, image]
95
+ runs-on: ubuntu-latest
96
+ steps:
97
+ - name: Trigger the cross-module e2e (skipped without E2E_DISPATCH_TOKEN)
98
+ env:
99
+ GH_TOKEN: ${{ secrets.E2E_DISPATCH_TOKEN }}
100
+ run: |
101
+ if [ -z "$GH_TOKEN" ]; then echo "E2E_DISPATCH_TOKEN not set; skipping"; exit 0; fi
102
+ gh api repos/ReInventYourSolutions/sessionweave-e2e/dispatches \
103
+ -f event_type=module-release \
104
+ -f "client_payload[module]=broker" -f "client_payload[ref]=$GITHUB_REF_NAME"
@@ -0,0 +1,18 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ .env
5
+ .pytest_cache/
6
+ .mypy_cache/
7
+ .ruff_cache/
8
+ .hypothesis/
9
+ *.egg-info/
10
+ build/
11
+ dist/
12
+ .coverage
13
+ htmlcov/
14
+ .DS_Store
15
+ .idea/
16
+ .vscode/
17
+ *.swp
18
+ .claude/
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ All notable changes to the SessionWeave broker (`sessionweave-broker`). Versions follow
4
+ [Semantic Versioning](https://semver.org/); releases are tagged `vX.Y.Z`.
5
+
6
+ ## 0.35.0 — first release from this repository
7
+
8
+ - **New home.** The broker now lives in its own public repository,
9
+ `ReInventYourSolutions/sessionweave-broker`, split out of the SessionWeave monorepo
10
+ with its history. Licensed under the **Apache License 2.0** (`LICENSE`, `NOTICE`).
11
+ - **Distribution renamed to `sessionweave-broker`** (was `sessionweave`), now published on
12
+ PyPI: `pipx install sessionweave-broker`. The import package `sessionweave` and the
13
+ commands (`sessionweave`, `sessionweave-join`, `sessionweave-host`,
14
+ `sessionweave-poller`, `sessionweave-accounts`) are unchanged. Container image:
15
+ `ghcr.io/reinventyoursolutions/sessionweave-broker`.
16
+ - **The Python SDK is no longer bundled.** The broker depends on
17
+ `sessionweave-sdk>=0.13.0,<0.14` (PyPI; import `sessionweave_client`). `GET /sdk` and
18
+ `GET /sdk.md` render the installed SDK's README and show
19
+ `pip install sessionweave-sdk==<installed version>`. The legacy
20
+ `GET /sdk/sessionweave-client.tar.gz` now answers `307` with the matching sdist on PyPI
21
+ (`pip install <broker>/sdk/sessionweave-client.tar.gz` keeps working with PyPI access);
22
+ an air-gapped broker no longer serves the SDK itself.
23
+ - Participant skill **0.25.2**: points at `sessionweave-sdk` and the new repositories.
24
+ - New standalone [broker guide](docs/guide/README.md).
25
+
26
+ Releases up to 0.34.1 were published from the SessionWeave monorepo (distribution
27
+ `sessionweave`, image `ghcr.io/reinventyoursolutions/sessionweave`).
@@ -0,0 +1,20 @@
1
+ # Build context: the root of this repository.
2
+ # PYTHON_IMAGE lets a build pin the base by digest (the distributed e2e does).
3
+ ARG PYTHON_IMAGE=python:3.12-slim
4
+ FROM ${PYTHON_IMAGE} AS base
5
+ WORKDIR /app
6
+
7
+ FROM base AS build
8
+ COPY pyproject.toml README.md LICENSE NOTICE ./
9
+ COPY src ./src
10
+ RUN pip install --no-cache-dir --upgrade pip \
11
+ && pip wheel -w /wheels .
12
+
13
+ FROM base AS runtime
14
+ COPY --from=build /wheels /wheels
15
+ RUN pip install --no-cache-dir --no-index --find-links /wheels sessionweave-broker && rm -rf /wheels
16
+ ENV SW_HOST=0.0.0.0 \
17
+ SW_PORT=8765
18
+ EXPOSE 8765
19
+ USER nobody
20
+ ENTRYPOINT ["sessionweave", "--host", "0.0.0.0", "--port", "8765"]
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ SessionWeave broker (sessionweave-broker)
2
+ Copyright 2026 ReInventYourSolutions
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Third-party assets bundled under src/sessionweave/_data/ keep their own licenses;
7
+ see src/sessionweave/_data/VENDORED.md.