@aeolus-fleet/gateway 0.34.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/adapters/http/person-tools.js +5 -3
  2. package/dist/adapters/http/person-tools.js.map +1 -1
  3. package/dist/adapters/pagasae/email-channel.js +4 -3
  4. package/dist/adapters/pagasae/email-channel.js.map +1 -1
  5. package/dist/adapters/prisma/party-store.js +2 -1
  6. package/dist/adapters/prisma/party-store.js.map +1 -1
  7. package/dist/adapters/trpc/router.js +3 -5
  8. package/dist/adapters/trpc/router.js.map +1 -1
  9. package/dist/core/a2a-in/send-a2a-message.d.ts +0 -2
  10. package/dist/core/a2a-in/send-a2a-message.js +17 -4
  11. package/dist/core/a2a-in/send-a2a-message.js.map +1 -1
  12. package/dist/core/people/ports.d.ts +9 -2
  13. package/dist/core/people/wake-person.js +3 -1
  14. package/dist/core/people/wake-person.js.map +1 -1
  15. package/package.json +1 -1
  16. package/web/.next/BUILD_ID +1 -1
  17. package/web/.next/build-manifest.json +3 -3
  18. package/web/.next/diagnostics/route-bundle-stats.json +32 -32
  19. package/web/.next/fallback-build-manifest.json +3 -3
  20. package/web/.next/prerender-manifest.json +3 -3
  21. package/web/.next/server/app/(console)/gateway-off/page/server-reference-manifest.json +1 -1
  22. package/web/.next/server/app/(console)/gateway-off/page.js.nft.json +1 -1
  23. package/web/.next/server/app/(console)/gateway-off/page_client-reference-manifest.js +1 -1
  24. package/web/.next/server/app/(console)/meetings/[meetingId]/page/server-reference-manifest.json +3 -3
  25. package/web/.next/server/app/(console)/meetings/[meetingId]/page.js.nft.json +1 -1
  26. package/web/.next/server/app/(console)/meetings/[meetingId]/page_client-reference-manifest.js +1 -1
  27. package/web/.next/server/app/(console)/outside-parties/[name]/change/page/server-reference-manifest.json +18 -18
  28. package/web/.next/server/app/(console)/outside-parties/[name]/change/page.js.nft.json +1 -1
  29. package/web/.next/server/app/(console)/outside-parties/[name]/change/page_client-reference-manifest.js +1 -1
  30. package/web/.next/server/app/(console)/outside-parties/[name]/page/server-reference-manifest.json +8 -8
  31. package/web/.next/server/app/(console)/outside-parties/[name]/page.js.nft.json +1 -1
  32. package/web/.next/server/app/(console)/outside-parties/[name]/page_client-reference-manifest.js +1 -1
  33. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page/server-reference-manifest.json +18 -18
  34. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page.js.nft.json +1 -1
  35. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page_client-reference-manifest.js +1 -1
  36. package/web/.next/server/app/(console)/outside-parties/add/page/server-reference-manifest.json +10 -10
  37. package/web/.next/server/app/(console)/outside-parties/add/page.js.nft.json +1 -1
  38. package/web/.next/server/app/(console)/outside-parties/add/page_client-reference-manifest.js +1 -1
  39. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page/server-reference-manifest.json +2 -2
  40. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page.js.nft.json +1 -1
  41. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page_client-reference-manifest.js +1 -1
  42. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page/server-reference-manifest.json +2 -2
  43. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page.js.nft.json +1 -1
  44. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page_client-reference-manifest.js +1 -1
  45. package/web/.next/server/app/(console)/outside-parties/page/server-reference-manifest.json +2 -2
  46. package/web/.next/server/app/(console)/outside-parties/page.js.nft.json +1 -1
  47. package/web/.next/server/app/(console)/outside-parties/page_client-reference-manifest.js +1 -1
  48. package/web/.next/server/app/(console)/overview/page/server-reference-manifest.json +9 -9
  49. package/web/.next/server/app/(console)/overview/page.js.nft.json +1 -1
  50. package/web/.next/server/app/(console)/overview/page_client-reference-manifest.js +1 -1
  51. package/web/.next/server/app/(console)/overview/requests/[requestId]/page/server-reference-manifest.json +2 -2
  52. package/web/.next/server/app/(console)/overview/requests/[requestId]/page.js.nft.json +1 -1
  53. package/web/.next/server/app/(console)/overview/requests/[requestId]/page_client-reference-manifest.js +1 -1
  54. package/web/.next/server/app/(console)/parties/page/server-reference-manifest.json +9 -9
  55. package/web/.next/server/app/(console)/parties/page.js.nft.json +1 -1
  56. package/web/.next/server/app/(console)/parties/page_client-reference-manifest.js +1 -1
  57. package/web/.next/server/app/(console)/sign-in/failed/page/server-reference-manifest.json +1 -1
  58. package/web/.next/server/app/(console)/sign-in/failed/page.js.nft.json +1 -1
  59. package/web/.next/server/app/(console)/sign-in/failed/page_client-reference-manifest.js +1 -1
  60. package/web/.next/server/app/(console)/slack/disconnect/page/server-reference-manifest.json +10 -10
  61. package/web/.next/server/app/(console)/slack/disconnect/page.js.nft.json +1 -1
  62. package/web/.next/server/app/(console)/slack/disconnect/page_client-reference-manifest.js +1 -1
  63. package/web/.next/server/app/(console)/slack/expose/page/server-reference-manifest.json +10 -10
  64. package/web/.next/server/app/(console)/slack/expose/page.js.nft.json +1 -1
  65. package/web/.next/server/app/(console)/slack/expose/page_client-reference-manifest.js +1 -1
  66. package/web/.next/server/app/(console)/slack/page/server-reference-manifest.json +10 -10
  67. package/web/.next/server/app/(console)/slack/page.js.nft.json +1 -1
  68. package/web/.next/server/app/(console)/slack/page_client-reference-manifest.js +1 -1
  69. package/web/.next/server/app/(console)/slack/remove/page/server-reference-manifest.json +10 -10
  70. package/web/.next/server/app/(console)/slack/remove/page.js.nft.json +1 -1
  71. package/web/.next/server/app/(console)/slack/remove/page_client-reference-manifest.js +1 -1
  72. package/web/.next/server/app/_global-error.html +1 -1
  73. package/web/.next/server/app/_global-error.rsc +1 -1
  74. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  75. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  76. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  77. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  78. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  79. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  80. package/web/.next/server/app/authorize/failed/page/server-reference-manifest.json +1 -1
  81. package/web/.next/server/app/authorize/failed/page.js.nft.json +1 -1
  82. package/web/.next/server/app/authorize/failed/page_client-reference-manifest.js +1 -1
  83. package/web/.next/server/app/authorize/pick/page/server-reference-manifest.json +1 -1
  84. package/web/.next/server/app/authorize/pick/page.js.nft.json +1 -1
  85. package/web/.next/server/app/authorize/pick/page_client-reference-manifest.js +1 -1
  86. package/web/.next/server/app/authorize/waiting/approval/page/server-reference-manifest.json +1 -1
  87. package/web/.next/server/app/authorize/waiting/approval/page.js.nft.json +1 -1
  88. package/web/.next/server/app/authorize/waiting/approval/page_client-reference-manifest.js +1 -1
  89. package/web/.next/server/app/icon.svg/route.js.nft.json +1 -1
  90. package/web/.next/server/app/icon.svg.body +1 -1
  91. package/web/.next/server/chunks/_0xw0b7avhvg75._.js +1 -1
  92. package/web/.next/server/chunks/_0xw0b7avhvg75._.js.map +1 -1
  93. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js +1 -1
  94. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js.map +1 -1
  95. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js +1 -1
  96. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js.map +1 -1
  97. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js +1 -1
  98. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js.map +1 -1
  99. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js +1 -1
  100. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js.map +1 -1
  101. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js +1 -1
  102. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js.map +1 -1
  103. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_overview_requests_[requestId]_page_actions_0uki9j3mtuz9e.js +1 -1
  104. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_overview_requests_[requestId]_page_actions_0uki9j3mtuz9e.js.map +1 -1
  105. package/web/.next/server/chunks/ssr/[root-of-the-server]__001xx3sm5ur-e._.js +1 -1
  106. package/web/.next/server/chunks/ssr/[root-of-the-server]__001xx3sm5ur-e._.js.map +1 -1
  107. package/web/.next/server/chunks/ssr/[root-of-the-server]__03w-pkh4_8jv_._.js +1 -1
  108. package/web/.next/server/chunks/ssr/[root-of-the-server]__048-rfvdrnoze._.js +1 -1
  109. package/web/.next/server/chunks/ssr/[root-of-the-server]__07ba2bfe20c_p._.js +1 -1
  110. package/web/.next/server/chunks/ssr/[root-of-the-server]__0a6a1yc_ac-qt._.js +1 -1
  111. package/web/.next/server/chunks/ssr/[root-of-the-server]__0a8db18tyk__5._.js +1 -1
  112. package/web/.next/server/chunks/ssr/[root-of-the-server]__0a8db18tyk__5._.js.map +1 -1
  113. package/web/.next/server/chunks/ssr/[root-of-the-server]__0f732g7ojc5-a._.js +1 -1
  114. package/web/.next/server/chunks/ssr/[root-of-the-server]__0fz0817_b9ljl._.js +1 -1
  115. package/web/.next/server/chunks/ssr/[root-of-the-server]__0i_m5r9lyffk8._.js +1 -1
  116. package/web/.next/server/chunks/ssr/[root-of-the-server]__0icm7kndx480o._.js +1 -1
  117. package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js +1 -1
  118. package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js.map +1 -1
  119. package/web/.next/server/chunks/ssr/[root-of-the-server]__0k6a9o0872_0x._.js +1 -1
  120. package/web/.next/server/chunks/ssr/[root-of-the-server]__0pj38h6qumggc._.js +1 -1
  121. package/web/.next/server/chunks/ssr/[root-of-the-server]__10s9e8g5x-ws8._.js +1 -1
  122. package/web/.next/server/chunks/ssr/[root-of-the-server]__10s9e8g5x-ws8._.js.map +1 -1
  123. package/web/.next/server/chunks/ssr/[root-of-the-server]__13yoncr_nx3jc._.js +1 -1
  124. package/web/.next/server/chunks/ssr/[root-of-the-server]__13yoncr_nx3jc._.js.map +1 -1
  125. package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js +1 -1
  126. package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js.map +1 -1
  127. package/web/.next/server/chunks/ssr/[root-of-the-server]__1kynqd8xcwg2b._.js +1 -1
  128. package/web/.next/server/chunks/ssr/[root-of-the-server]__1nxy_j9eswr3i._.js +1 -1
  129. package/web/.next/server/chunks/ssr/[root-of-the-server]__1q14l5_4hp9h3._.js +1 -1
  130. package/web/.next/server/chunks/ssr/[root-of-the-server]__1qnls-4cj-7oh._.js +1 -1
  131. package/web/.next/server/chunks/ssr/[root-of-the-server]__1qpow96uit9t8._.js +1 -1
  132. package/web/.next/server/chunks/ssr/[root-of-the-server]__1qpow96uit9t8._.js.map +1 -1
  133. package/web/.next/server/chunks/ssr/[root-of-the-server]__1r1t1q3fzoqey._.js +1 -1
  134. package/web/.next/server/chunks/ssr/[root-of-the-server]__1xmvo3lr1_qyo._.js +1 -1
  135. package/web/.next/server/chunks/ssr/[root-of-the-server]__1zlq3zji9v53h._.js +1 -1
  136. package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js +1 -1
  137. package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js.map +1 -1
  138. package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js +1 -1
  139. package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js.map +1 -1
  140. package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js +1 -1
  141. package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js.map +1 -1
  142. package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js +1 -1
  143. package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js.map +1 -1
  144. package/web/.next/server/chunks/ssr/_1_wav28san6dm._.js +1 -1
  145. package/web/.next/server/chunks/ssr/_1e2o809f0ekry._.js +1 -1
  146. package/web/.next/server/chunks/ssr/{_0eu-76mbv16oa._.js → _1oy13966tft2_._.js} +2 -2
  147. package/web/.next/server/chunks/ssr/{_0eu-76mbv16oa._.js.map → _1oy13966tft2_._.js.map} +1 -1
  148. package/web/.next/server/chunks/ssr/{_1cnvrfjlqx00k._.js → _1pf8x2exvfl1z._.js} +2 -2
  149. package/web/.next/server/chunks/ssr/{_1cnvrfjlqx00k._.js.map → _1pf8x2exvfl1z._.js.map} +1 -1
  150. package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js +1 -1
  151. package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js.map +1 -1
  152. package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js +1 -1
  153. package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js.map +1 -1
  154. package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js +1 -1
  155. package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js.map +1 -1
  156. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(console)_overview_page_actions_18on1ziyg1nzy.js +1 -1
  157. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(console)_overview_page_actions_18on1ziyg1nzy.js.map +1 -1
  158. package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js +1 -1
  159. package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js.map +1 -1
  160. package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js +1 -1
  161. package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js.map +1 -1
  162. package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js +1 -1
  163. package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js.map +1 -1
  164. package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js +1 -1
  165. package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js.map +1 -1
  166. package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js +1 -1
  167. package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js.map +1 -1
  168. package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js +1 -1
  169. package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js.map +1 -1
  170. package/web/.next/server/chunks/ssr/web_features_outside-party_actions_ts_102ar5pdowf8s._.js +1 -1
  171. package/web/.next/server/chunks/ssr/web_features_overview_hooks_overview-actions_ts_0-wrat07d1y5g._.js +1 -1
  172. package/web/.next/server/chunks/ssr/web_features_overview_state_00l0wkgvv9y6j._.js +1 -1
  173. package/web/.next/server/chunks/ssr/web_features_overview_state_00l0wkgvv9y6j._.js.map +1 -1
  174. package/web/.next/server/chunks/ssr/web_features_overview_state_decision-panel_tsx_0kpd26ggtr6h_._.js +1 -1
  175. package/web/.next/server/chunks/ssr/web_features_overview_state_decision-panel_tsx_0kpd26ggtr6h_._.js.map +1 -1
  176. package/web/.next/server/chunks/ssr/web_features_parties_actions_ts_0r-tbfsig2ty-._.js +1 -1
  177. package/web/.next/server/chunks/ssr/web_features_slack_actions_ts_1l3yg9vl20_vu._.js +1 -1
  178. package/web/.next/server/middleware-build-manifest.js +3 -3
  179. package/web/.next/server/pages/500.html +1 -1
  180. package/web/.next/server/preview-props.json +3 -3
  181. package/web/.next/server/server-reference-manifest.js +1 -1
  182. package/web/.next/server/server-reference-manifest.json +46 -46
  183. package/web/.next/static/chunks/{0psup8zn8e6k5.js → 03239gtej3tj0.js} +1 -1
  184. package/web/.next/static/chunks/0tmvd_zw45u96.js +1 -0
  185. package/web/.next/static/chunks/{20t1nmdiq805b.js → 1se0j0htjyep6.js} +1 -1
  186. package/web/.next/static/chunks/{31-hltzmw_9fi.js → 287ofedoj_6xl.js} +1 -1
  187. package/web/.next/static/chunks/{015ume9uk4hla.js → 2_e-puldye2do.js} +1 -1
  188. package/web/.next/static/chunks/{35bmc8wm29tr6.js → 34kulpk3a-cka.js} +1 -1
  189. package/web/.next/static/chunks/{0ji7rkz0ll9gh.js → 3ceatffqhpgpu.js} +1 -1
  190. package/web/.next/static/chunks/{2s_dov6h7kus5.js → 3fd167c0-ot3u.js} +1 -1
  191. package/web/.next/static/chunks/{42cpzi5s1o44m.js → 3l5jtag3-fukc.js} +1 -1
  192. package/web/.next/static/media/{icon.0h5hy2etdmq_n.svg → icon.1o2ogor9e8-fc.svg} +1 -1
  193. package/web/.next/trace +1 -1
  194. package/web/.next/trace-build +1 -1
  195. package/web/.next/static/chunks/1s8b8jpg4jai9.js +0 -1
  196. /package/web/.next/static/{yf1Q3fTAV4eQiroxoYbih → R_nPUtDcDp1BPV3QHhaMZ}/_buildManifest.js +0 -0
  197. /package/web/.next/static/{yf1Q3fTAV4eQiroxoYbih → R_nPUtDcDp1BPV3QHhaMZ}/_clientMiddlewareManifest.js +0 -0
  198. /package/web/.next/static/{yf1Q3fTAV4eQiroxoYbih → R_nPUtDcDp1BPV3QHhaMZ}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "node": {
3
- "40b0e21d7f8b4005429ff4b05df18463f1064fb7f0": {
3
+ "40c2ebc7d82ce92803e9e2046541ec9e3aaa9d6ca2": {
4
4
  "workers": {
5
5
  "app/(console)/gateway-off/page": {
6
6
  "moduleId": 71965,
@@ -90,7 +90,7 @@
90
90
  "filename": "web/features/frame/actions.ts",
91
91
  "exportedName": "setTheme"
92
92
  },
93
- "40e5fff1cbfe51a00dc8b6e06d91546bb9e1968fb2": {
93
+ "40280d908ca33fb0cfafc559b986139267743c737f": {
94
94
  "workers": {
95
95
  "app/(console)/meetings/[meetingId]/page": {
96
96
  "moduleId": 87625,
@@ -100,7 +100,7 @@
100
100
  "filename": "web/features/meeting/hooks/meeting-actions.ts",
101
101
  "exportedName": "changeMic"
102
102
  },
103
- "40c722bc926906b0f6be8251efde8aa764e9c6f338": {
103
+ "40741faa851c4e53de3359cd0685cd83bb3fd630eb": {
104
104
  "workers": {
105
105
  "app/(console)/meetings/[meetingId]/page": {
106
106
  "moduleId": 87625,
@@ -110,7 +110,7 @@
110
110
  "filename": "web/features/meeting/hooks/meeting-actions.ts",
111
111
  "exportedName": "contribute"
112
112
  },
113
- "60fcf6d16ccc90af7735f827cc6d334f4826bf8495": {
113
+ "6050d21a58ec37f23286c198c6337c1fc2dd06e9eb": {
114
114
  "workers": {
115
115
  "app/(console)/outside-parties/page": {
116
116
  "moduleId": 63638,
@@ -120,7 +120,7 @@
120
120
  "filename": "web/features/outside-parties/actions.ts",
121
121
  "exportedName": "switchOutsideParties"
122
122
  },
123
- "4028780e49517416df740542487de4653d3929920a": {
123
+ "40930ed710ea075b266085d38eebd26db54b9dc267": {
124
124
  "workers": {
125
125
  "app/(console)/outside-parties/[name]/change/page": {
126
126
  "moduleId": 8796,
@@ -142,7 +142,7 @@
142
142
  "filename": "web/features/outside-party/actions.ts",
143
143
  "exportedName": "setPartyScopes"
144
144
  },
145
- "40d7eabe1b0f309bc00c04fdfa38569882157f32e2": {
145
+ "40366600175661e6f58ff949f6b41977060d5282c5": {
146
146
  "workers": {
147
147
  "app/(console)/outside-parties/[name]/change/page": {
148
148
  "moduleId": 8796,
@@ -164,7 +164,7 @@
164
164
  "filename": "web/features/outside-party/actions.ts",
165
165
  "exportedName": "switchPartyTools"
166
166
  },
167
- "40954d64106bcac44448088cbba328143484020df3": {
167
+ "400f4c6de7f898f708a51cacab693aeeb02cd605d6": {
168
168
  "workers": {
169
169
  "app/(console)/outside-parties/[name]/change/page": {
170
170
  "moduleId": 8796,
@@ -186,7 +186,7 @@
186
186
  "filename": "web/features/outside-party/actions.ts",
187
187
  "exportedName": "readMoreSignIns"
188
188
  },
189
- "40ecb6258cd5900a5098928e515d1c98fc904272db": {
189
+ "4084b9079f1fbb4244756eda11599a9bac21502596": {
190
190
  "workers": {
191
191
  "app/(console)/outside-parties/[name]/change/page": {
192
192
  "moduleId": 8796,
@@ -208,7 +208,7 @@
208
208
  "filename": "web/features/outside-party/actions.ts",
209
209
  "exportedName": "removePersonSignIn"
210
210
  },
211
- "603d2411f752d9cddfe3f925be33ee2e8bbcf5fa8c": {
211
+ "60377d2f78e4c8f3923cbfceb2270ab98c2b4101a7": {
212
212
  "workers": {
213
213
  "app/(console)/outside-parties/[name]/change/page": {
214
214
  "moduleId": 8796,
@@ -230,7 +230,7 @@
230
230
  "filename": "web/features/outside-party/actions.ts",
231
231
  "exportedName": "removeOwnSignIn"
232
232
  },
233
- "606b839bcdeb2572c2a0a4088ac669f86869c209d6": {
233
+ "607d93096f3910006630c6daa2ce70145597e6748f": {
234
234
  "workers": {
235
235
  "app/(console)/outside-parties/[name]/change/page": {
236
236
  "moduleId": 8796,
@@ -252,7 +252,7 @@
252
252
  "filename": "web/features/outside-party/actions.ts",
253
253
  "exportedName": "signInToParty"
254
254
  },
255
- "60fe8b9a542bdfd96863c7a9ea3cc7390a1419979f": {
255
+ "60853ded92fa83abbddfe0a7d5d9d4e178adc5e40c": {
256
256
  "workers": {
257
257
  "app/(console)/outside-parties/[name]/change/page": {
258
258
  "moduleId": 8796,
@@ -274,7 +274,7 @@
274
274
  "filename": "web/features/outside-party/actions.ts",
275
275
  "exportedName": "markA2aAgent"
276
276
  },
277
- "603cd3e0e5286ab35fcea76e32b39c3e9bc407f026": {
277
+ "60ca50a81ad3e889deb421124618cc5291b2c77f2a": {
278
278
  "workers": {
279
279
  "app/(console)/outside-parties/[name]/change/page": {
280
280
  "moduleId": 8796,
@@ -286,9 +286,9 @@
286
286
  }
287
287
  },
288
288
  "filename": "web/features/outside-party/actions.ts",
289
- "exportedName": "retireParty"
289
+ "exportedName": "changeParty"
290
290
  },
291
- "60def34e6633ab40fdd715c8b11c926ace4bb8246e": {
291
+ "60f29f54caeae17de92b0d1cfad06784859808aea7": {
292
292
  "workers": {
293
293
  "app/(console)/outside-parties/[name]/change/page": {
294
294
  "moduleId": 8796,
@@ -300,9 +300,9 @@
300
300
  }
301
301
  },
302
302
  "filename": "web/features/outside-party/actions.ts",
303
- "exportedName": "changeParty"
303
+ "exportedName": "retireParty"
304
304
  },
305
- "6016f937a1369b6859c9c0fd2f9becfa3697def235": {
305
+ "60677bc3f550873a6ee6a663c347d21258f73956e9": {
306
306
  "workers": {
307
307
  "app/(console)/outside-parties/add/page": {
308
308
  "moduleId": 16602,
@@ -312,7 +312,7 @@
312
312
  "filename": "web/features/add-server/actions.ts",
313
313
  "exportedName": "approveServer"
314
314
  },
315
- "605ccee1941cfb893bf04e87e68a064ea6aafbe3eb": {
315
+ "602aff8b5de3a8c13f117e6954eceef8b610d28ed1": {
316
316
  "workers": {
317
317
  "app/(console)/outside-parties/add/page": {
318
318
  "moduleId": 16602,
@@ -322,7 +322,7 @@
322
322
  "filename": "web/features/add-server/actions.ts",
323
323
  "exportedName": "checkServer"
324
324
  },
325
- "60441535fb5f957bb3ee35ed3eb76b6a02f3318313": {
325
+ "608ad0d36a0cdd886e103d2759009ddc4187ee8568": {
326
326
  "workers": {
327
327
  "app/(console)/outside-parties/add-a2a-agent/page": {
328
328
  "moduleId": 50088,
@@ -332,7 +332,7 @@
332
332
  "filename": "web/features/add-a2a-agent/actions.ts",
333
333
  "exportedName": "addA2aAgent"
334
334
  },
335
- "603e8c3f824e1a0f93b5c528fcd5a56924652a6ba8": {
335
+ "60c7eca121dbae1c124f74472d6836045817fe9b27": {
336
336
  "workers": {
337
337
  "app/(console)/outside-parties/add-a2a-client/page": {
338
338
  "moduleId": 36558,
@@ -342,7 +342,7 @@
342
342
  "filename": "web/features/add-a2a-client/actions.ts",
343
343
  "exportedName": "addA2aClient"
344
344
  },
345
- "40ae610470b220edde12dfcd0dcb883778a46b5769": {
345
+ "40db6d8e8bf7bc28f18e2b6e6b883909a3fd918ba7": {
346
346
  "workers": {
347
347
  "app/(console)/overview/page": {
348
348
  "moduleId": 43928,
@@ -352,7 +352,7 @@
352
352
  "filename": "web/features/overview/hooks/overview-actions.ts",
353
353
  "exportedName": "answerDelivery"
354
354
  },
355
- "60267e1675def7fa03b52ee6e22e44417045b7b46e": {
355
+ "60e7ce47eb2d23df456a542903519b389ce1ca3d37": {
356
356
  "workers": {
357
357
  "app/(console)/overview/page": {
358
358
  "moduleId": 43928,
@@ -362,7 +362,7 @@
362
362
  "filename": "web/features/overview/hooks/overview-actions.ts",
363
363
  "exportedName": "doneDelivery"
364
364
  },
365
- "60921dc196215ea50ba1fbe244d7ba12f4ee854bc3": {
365
+ "6076a2215296656c4d1a1b5812e97c6a902490be89": {
366
366
  "workers": {
367
367
  "app/(console)/overview/page": {
368
368
  "moduleId": 43928,
@@ -372,7 +372,7 @@
372
372
  "filename": "web/features/overview/hooks/overview-actions.ts",
373
373
  "exportedName": "openDelivery"
374
374
  },
375
- "60c41f46442b451436a647e49d534f317322a42d45": {
375
+ "601910062a5e0864a2917cd809b6f8accb362b46d1": {
376
376
  "workers": {
377
377
  "app/(console)/overview/page": {
378
378
  "moduleId": 43928,
@@ -382,7 +382,7 @@
382
382
  "filename": "web/features/overview/hooks/overview-actions.ts",
383
383
  "exportedName": "showAllInSlack"
384
384
  },
385
- "40e4bf18443c257013b0a2532903a761a4ac4ccdff": {
385
+ "40bda0ff816df122642777c895d7e4a5c52172f56a": {
386
386
  "workers": {
387
387
  "app/(console)/overview/page": {
388
388
  "moduleId": 43928,
@@ -392,7 +392,7 @@
392
392
  "filename": "web/features/overview/hooks/overview-actions.ts",
393
393
  "exportedName": "unlinkSlack"
394
394
  },
395
- "6038f4ad0490a2602bfa10c97515225ec96ad111e8": {
395
+ "601b65024ccb7fc33018510433a7610daeebdbdb3d": {
396
396
  "workers": {
397
397
  "app/(console)/overview/page": {
398
398
  "moduleId": 43928,
@@ -402,7 +402,7 @@
402
402
  "filename": "web/features/overview/hooks/overview-actions.ts",
403
403
  "exportedName": "turnEmail"
404
404
  },
405
- "6009cfdd63be665d231e0fd78d870bf6200c4e4f93": {
405
+ "607887cbdee422db6a9cda69ee2c54629879fb2510": {
406
406
  "workers": {
407
407
  "app/(console)/overview/page": {
408
408
  "moduleId": 43928,
@@ -412,7 +412,7 @@
412
412
  "filename": "web/features/overview/hooks/overview-actions.ts",
413
413
  "exportedName": "turnOffWebPush"
414
414
  },
415
- "60807aaf167de60b1548a6b1a270efc65a01bcc89b": {
415
+ "6099ca5bb6c962ad51b5b316d713691acae0b2e746": {
416
416
  "workers": {
417
417
  "app/(console)/overview/page": {
418
418
  "moduleId": 43928,
@@ -422,7 +422,7 @@
422
422
  "filename": "web/features/overview/hooks/overview-actions.ts",
423
423
  "exportedName": "turnOnWebPush"
424
424
  },
425
- "402decc5318dd2cf7bed966b0f203e2b1dd0d01321": {
425
+ "408819c99996290b362a2ea4e8b39d342b6bf79c81": {
426
426
  "workers": {
427
427
  "app/(console)/overview/requests/[requestId]/page": {
428
428
  "moduleId": 5376,
@@ -432,7 +432,7 @@
432
432
  "filename": "web/features/overview/hooks/overview-actions.ts",
433
433
  "exportedName": "decideRequest"
434
434
  },
435
- "607ed7527bf9cd99f6dd92585a5067ae24ed83132e": {
435
+ "608e2d3bc076c9fc1aeac506aefae08b559c54a822": {
436
436
  "workers": {
437
437
  "app/(console)/parties/page": {
438
438
  "moduleId": 12784,
@@ -440,9 +440,9 @@
440
440
  }
441
441
  },
442
442
  "filename": "web/features/parties/actions.ts",
443
- "exportedName": "crewParty"
443
+ "exportedName": "approveParty"
444
444
  },
445
- "60c607c29bc8ae45f60b350a081b6aa730f8a5bf1b": {
445
+ "609b2571e83693391c61fee7968637f7c1fa4fa80a": {
446
446
  "workers": {
447
447
  "app/(console)/parties/page": {
448
448
  "moduleId": 12784,
@@ -450,9 +450,9 @@
450
450
  }
451
451
  },
452
452
  "filename": "web/features/parties/actions.ts",
453
- "exportedName": "approveParty"
453
+ "exportedName": "crewParty"
454
454
  },
455
- "60c9b8f1002752d3c0ce89d9327f460520711d527d": {
455
+ "60a073d8c40cccf68b1f41bc9e38bc4ec4c2f85b12": {
456
456
  "workers": {
457
457
  "app/(console)/parties/page": {
458
458
  "moduleId": 12784,
@@ -460,9 +460,9 @@
460
460
  }
461
461
  },
462
462
  "filename": "web/features/parties/actions.ts",
463
- "exportedName": "markTool"
463
+ "exportedName": "stateParty"
464
464
  },
465
- "60cd5306f4bb93b49da894f11335b3f377a904f144": {
465
+ "60b09a7526f0f57443094aee7bf2410d5c6d21a2d0": {
466
466
  "workers": {
467
467
  "app/(console)/parties/page": {
468
468
  "moduleId": 12784,
@@ -470,9 +470,9 @@
470
470
  }
471
471
  },
472
472
  "filename": "web/features/parties/actions.ts",
473
- "exportedName": "stateParty"
473
+ "exportedName": "markTool"
474
474
  },
475
- "601f2a50a912a667aaadfedede2d771ac7ccfe98ec": {
475
+ "600d22e3e9babdae9f3c55c0e38a29cc19141157d3": {
476
476
  "workers": {
477
477
  "app/(console)/slack/disconnect/page": {
478
478
  "moduleId": 90096,
@@ -492,9 +492,9 @@
492
492
  }
493
493
  },
494
494
  "filename": "web/features/slack/actions.ts",
495
- "exportedName": "exposeShip"
495
+ "exportedName": "removeBot"
496
496
  },
497
- "604bd6741e25b90f7450d071c4a2c6538f34216f22": {
497
+ "6021d50446cc12f1dca06198d272f1586c0c8e69d4": {
498
498
  "workers": {
499
499
  "app/(console)/slack/disconnect/page": {
500
500
  "moduleId": 90096,
@@ -514,9 +514,9 @@
514
514
  }
515
515
  },
516
516
  "filename": "web/features/slack/actions.ts",
517
- "exportedName": "removeBot"
517
+ "exportedName": "installBot"
518
518
  },
519
- "60736965d0a53852cda56cf502ce988b129f9909e5": {
519
+ "6061061471519c846108a0c41a7928281d9530dd52": {
520
520
  "workers": {
521
521
  "app/(console)/slack/disconnect/page": {
522
522
  "moduleId": 90096,
@@ -536,9 +536,9 @@
536
536
  }
537
537
  },
538
538
  "filename": "web/features/slack/actions.ts",
539
- "exportedName": "installBot"
539
+ "exportedName": "connectSlack"
540
540
  },
541
- "6084c872949082f2566d50959f278a14b7c5d90d2a": {
541
+ "60ab08dc47412cb573034b0ee5efce1d294ab880ed": {
542
542
  "workers": {
543
543
  "app/(console)/slack/disconnect/page": {
544
544
  "moduleId": 90096,
@@ -558,9 +558,9 @@
558
558
  }
559
559
  },
560
560
  "filename": "web/features/slack/actions.ts",
561
- "exportedName": "connectSlack"
561
+ "exportedName": "exposeShip"
562
562
  },
563
- "608a11b2d03216d3cd3ff6e6e1570e745f5332507b": {
563
+ "60d72d0371155b302dc2db8fe7b6f8b43d0559d3b3": {
564
564
  "workers": {
565
565
  "app/(console)/slack/disconnect/page": {
566
566
  "moduleId": 90096,
@@ -584,5 +584,5 @@
584
584
  }
585
585
  },
586
586
  "edge": {},
587
- "encryptionKey": "j9bKTbHvtdS6oaRfxUIo2DV7jeg5BDkUdW2WdgwDDtM="
587
+ "encryptionKey": "FQT2pJrRqE5hvkXUPMCO5hmslqXduLAVJsDMeAme7RY="
588
588
  }
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[26323,8821,56736,25834,35890,64938,80829,6640,10199,64951,66250,77173,13488,28376,9977,41708,93480,9169,52744,e=>{var t=e.i(71645),n=e.i(33332);let r=t.createContext(void 0);function o(e){let o=t.useContext(r);if(!e&&void 0===o)throw Error((0,n.f)(27));return o}e.s(["R",0,r,"x",0,o],8821);var i=e.i(52245),a=e.i(79938);let s=t.forwardRef(function(e,t){let{render:n,className:r,style:s,forceRender:l=!1,...d}=e,u=o(),p=u.useState("open"),c=u.useState("nested"),f=u.useState("mounted"),g=u.useState("transitionStatus");return(0,i.a)("div",e,{state:{open:p,transitionStatus:g},ref:[u.context.backdropRef,t],stateAttributesMapping:a.M,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!c})});var l=e.i(40886),d=e.i(75606),u=e.i(57749);let p=t.forwardRef(function(e,t){let{render:n,className:r,style:a,disabled:s=!1,nativeButton:p=!0,...c}=e,f=o(),g=f.useState("open"),{getButtonProps:m,buttonRef:h}=(0,l.f)({disabled:s,native:p});return(0,i.a)("button",e,{state:{disabled:s},ref:[t,h],props:[{onClick:function(e){g&&f.setOpen(!1,(0,d.j)(u.f.closePress,e.nativeEvent))}},c,m]})});e.s(["f",0,p],56736);var c=e.i(88015);let f=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=o(),u=(0,c.f)(s);return d.useSyncedValueWithCleanup("descriptionElementId",u),(0,i.a)("p",e,{ref:t,props:[{id:u},l]})});var g=e.i(61487);let m=t.createContext(void 0);function h(){let e=t.useContext(m);if(void 0===e)throw Error((0,n.f)(26));return e}e.s(["_",0,m,"Z",0,h],25834);var v=e.i(37584),x=e.i(73327),S=e.i(64111),b=e.i(74354),C=e.i(38380);e.s(["f",0,C],35890);var C=C,w=C;e.s(["f",0,w],64938);var w=C,y=C;e.s(["f",0,y],80829);var y=C,P=C;e.s(["f",0,P],6640);var P=C;C.open,w.closed,y.startingStyle,P.endingStyle;let O={...a.E,...b.f,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};e.s(["f",0,O],10199);var R=e.i(43476);let j=t.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:s,initialFocus:l,...d}=e,u=o(),p=u.useState("descriptionElementId"),c=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),b=u.useState("modal"),C=u.useState("mounted"),w=u.useState("nested"),y=u.useState("nestedOpenDialogCount"),P=u.useState("open"),j=u.useState("openMethod"),k=u.useState("titleElementId"),E=u.useState("transitionStatus"),T=u.useState("role"),I=f.useState("floatingId");h(),(0,v.f)({open:P,ref:u.context.popupRef,onComplete(){P&&u.context.onOpenChangeComplete?.(!0)}});let D=void 0===l?(0,S.H)(u.context.popupRef):l,N=u.useStateSetter("popupElement"),A=(0,i.a)("div",e,{state:{open:P,nested:w,transitionStatus:E,nestedDialogOpen:y>0},props:[m,{id:I,"aria-labelledby":k,"aria-describedby":p,role:T,...S.X,hidden:!C,onKeyDown(e){x.f.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":y}},d],ref:[t,u.context.popupRef,N],stateAttributesMapping:O});return(0,R.jsx)(g.f,{context:f,openInteractionType:j,disabled:!C,closeOnFocusOut:!c,initialFocus:D,returnFocus:s,modal:!1!==b,restoreFocus:"popup",children:A})});var k=e.i(44394),E=e.i(26674),T=e.i(426);let I=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=o(),a=i.useState("mounted"),s=i.useState("modal"),l=i.useState("open");return a||n?(0,R.jsx)(m.Provider,{value:n,children:(0,R.jsxs)(E.r,{ref:t,...r,children:[a&&!0===s&&(0,R.jsx)(T.f,{ref:i.context.internalBackdropRef,inert:(0,k.f)(!l)}),e.children]})}):null});e.s(["f",0,I],64951);var D=e.i(96499),N=e.i(46376),A=e.i(45484),M=e.i(17989),U=e.i(84446);function B({store:e,parentContext:n,isDrawer:r}){let o=e.useState("open"),i=e.useState("mounted"),a=e.useState("disablePointerDismissal"),s=e.useState("modal"),l=e.useState("popupElement"),d=e.useState("floatingRootContext"),[u,p]=t.useState(0),[c,f]=t.useState(0),g=0===u,m=(0,M.f)(d,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===s?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let n=(0,U.Z)(t);if(g&&!a){if(s){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return!t&&!r||t===n||r===n||(0,U.I)(n,l)&&!n?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:g});return(0,A.f)(o&&!0===s,l),e.useContextCallback("onNestedDialogOpen",(t,n)=>{(e.select("open")||e.select("mounted"))&&(p(t),f(n))}),(0,N.f)(()=>{o||i||(p(0),f(0))},[o,i]),(0,N.f)(()=>(n?.onNestedDialogOpen&&o&&n.onNestedDialogOpen(u+1,c+ +!!r),()=>{n?.onNestedDialogOpen&&o&&n.onNestedDialogOpen(0,0)}),[r,o,u,c,n]),(0,S.y)(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:c}),null}var L=e.i(1252),z=e.i(16786),F=e.i(90627);let W={...z.j,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class $ extends L.f{constructor(e,n,r){var o;let i=new F.f;super(function(e,t,n,r=!1){return{...(0,z.i)(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,i,n,r),(o=i,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:o,onOpenChange:void 0,onOpenChangeComplete:void 0}),W)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,S.z)(this.state,e,t.trigger)))}}var H=e.i(68765);function K(e,n){let{children:i,open:a,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:u,disablePointerDismissal:p=!1,modal:c=!0,actionsRef:f,handle:g,triggerId:m,defaultTriggerId:h=null}=n,v="alert-dialog"===e,x=o(!0),b={modal:!!v||c,disablePointerDismissal:v||p,nested:null!=x,role:v?"alertdialog":"dialog"},C=(0,S.$)((e,t)=>new $({open:s,openProp:a,activeTriggerId:h,triggerIdProp:m,...b},e,t),!0);C.useControlledProp("openProp",a),C.useControlledProp("triggerIdProp",m),C.useSyncedValues(b),C.useContextCallback("onOpenChange",l),C.useContextCallback("onOpenChangeComplete",u);let w=C.useState("open"),y=C.useState("mounted"),P=C.useState("payload");(0,S.e)(C,w),(0,S._)(C);let{forceUnmount:O}=(0,S.L)(w,C);t.useImperativeHandle(f,()=>({unmount:O,close:()=>C.setOpen(!1,(0,d.j)(H.f.imperativeAction))}),[O,C]);let j=w||y||null!=g;return(0,R.jsxs)(r.Provider,{value:C,children:[g&&(0,R.jsx)(S.d,{handle:g,store:C}),j&&(0,R.jsx)(B,{store:C,parentContext:x?.context,isDrawer:"drawer"===e}),"function"==typeof i?i({payload:P}):i]})}e.s(["f",0,K],66250);let _=(0,D.U)(function(e){return K("dialog",e)}),V=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=o(),u=(0,c.f)(s);return d.useSyncedValueWithCleanup("titleElementId",u),(0,i.a)("h2",e,{ref:t,props:[{id:u},l]})});e.s(["f",0,V],77173);var G=e.i(38396),Z=e.i(59636),q=e.i(85689),J=e.i(32199);let X=(0,D.u)(function(e,r){let{render:s,className:d,style:u,disabled:p=!1,nativeButton:f=!0,id:g,payload:m,handle:h,...v}=e,x=o(!0),b=(0,Z.f)(h)??x;if(!b)throw Error((0,n.f)(79));let C=(0,c.f)(g),w=b.useState("floatingRootContext"),y=b.useState("isOpenedByTrigger",C),P=b.useState("triggerPopupId",C),O=t.useRef(null),{registerTrigger:R,isMountedByThisTrigger:j}=(0,S.F)(C,O,b,{payload:m}),{getButtonProps:k,buttonRef:E}=(0,l.f)({disabled:p,native:f}),T=(0,q.f)(w),I=(0,J.p)(()=>b.select("open"),e=>{b.set("openMethod",e)}),D=b.useState("triggerProps",j);return(0,i.a)("button",e,{state:{disabled:p,open:y},ref:[E,r,R,O],props:[T.reference,D,I,{[G.j]:"",id:C,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":P},v,k],stateAttributesMapping:a.J})});e.s(["f",0,X],13488),e.s(["Backdrop",0,s,"Close",0,p,"Description",0,f,"Popup",0,j,"Portal",0,I,"Root",0,_,"Title",0,V,"Trigger",0,X],28376);var Q=e.i(28376);e.s(["f",0,Q],26323),e.s(["f",0,Q],9977),e.s(["f",0,Q],41708),e.s(["f",0,Q],93480),e.s(["f",0,Q],9169),e.s(["f",0,Q],52744)},73327,e=>{let t=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);e.s(["f",0,t])},16786,59636,e=>{var t=e.i(56789),n=e.i(56341);let r=e=>e.triggerIdProp??e.activeTriggerId,o=e=>e.openProp??e.open,i=e=>(e.popupElement?.id??e.floatingId)||void 0;function a(e,t){return void 0!==t&&o(e)&&r(e)===t}e.s(["i",0,function(e,r,o=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:r,syncOnly:!0,nested:o,onOpenChange:void 0}),floatingId:r,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.w,inactiveTriggerProps:t.w,popupProps:t.w}},"j",0,{open:o,mounted:e=>e.mounted,transitionStatus:e=>o(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:r,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:i,isTriggerActive:(e,t)=>void 0!==t&&r(e)===t,isOpenedByTrigger:(e,t)=>a(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&r(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>a(e,t)||void 0!==t&&o(e)&&null==r(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?i(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}],16786);var s=e.i(71645),l=e.i(2239);e.s(["f",0,function(e){let n=s.useCallback(n=>void 0===e?t.x:e.subscribeStore(n),[e]),r=s.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,l.useSyncExternalStore)(n,r,()=>e?.serverStore)}],59636)},95187,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let i=e.r(32120),a=e.r(92245),s=e.r(35326)},84821,e=>{var t=e.i(43476),n=e.i(56420);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let o=(0,n.f)(r);var i=e.i(60382),a=e.i(30186),s=e.i(72474),l=e.i(68423),d=e.i(71773);function u({switcher:e,account:n,onSearch:r,searchLabel:p="Search or jump to",children:c,actions:f,className:g}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,d.f)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",g),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(i.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),c]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[f,r?(0,t.jsxs)(a.f,{size:"sm",icon:(0,t.jsx)(o,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:r,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:p}),(0,t.jsx)(s.f,{children:"⌘K"})]}):null,(0,t.jsx)(l.AvatarMenu,{...n})]})]})}var p=e.i(18566),c=e.i(71645),f=e.i(95187);let g=(0,f.createServerReference)("40b0e21d7f8b4005429ff4b05df18463f1064fb7f0",f.callServer,void 0,f.findSourceMapURL,"setTheme"),m=["light","dark","system"];var h=e.i(65894);let v=[{key:"overview",label:"Overview",path:"/overview"},{key:"outside-parties",label:"Outside parties",path:"/outside-parties"},{key:"parties",label:"Parties",path:"/parties"},{key:"slack",label:"Slack",path:"/slack"}];function x({fleetId:e}){let n=(0,p.usePathname)();return(0,t.jsx)("nav",{"aria-label":"Gateway",className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:v.map(({key:r,label:o,path:i})=>{let a=n===i||n.startsWith(`${i}/`);return(0,t.jsx)("a",{href:(0,h.f)(i,e),"data-testid":`frame-tab-${r}`,"aria-current":a?"page":void 0,className:`whitespace-nowrap rounded-md px-2 py-1 text-sm ${a?"bg-accent font-semibold":"text-muted-foreground hover:bg-accent"}`,children:o},r)})})}e.s(["GatewayHeader",0,function({switchers:e,email:n,accountUrl:r,theme:o}){let a=(0,p.useSearchParams)().get("fleet"),s=e.find(({fleet:e})=>e.id===a)??e[0],[d,f]=(0,c.useState)(o),[h,v]=(0,c.useState)(!1),S=(0,c.useRef)(null),b={name:n,signedInAs:"account",accountUrl:r,theme:d,themes:m,hasTheme:!0,onThemeChange:e=>{let t;f(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),g(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{v(!0),S.current?.requestSubmit()},isSigningOut:h};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("form",{ref:S,method:"post",action:"/sign-in/end",hidden:!0}),(0,t.jsx)(u,{switcher:s,account:b,className:"max-sm:hidden",children:void 0===s?null:(0,t.jsx)(x,{fleetId:s.fleet.id})}),(0,t.jsxs)("header",{className:"sticky top-0 z-30 flex h-14 shrink-0 items-center gap-3 border-b border-border bg-background px-4 sm:hidden",children:[void 0===s?null:(0,t.jsx)(i.AppSwitcher,{switcher:s,layout:"compact",className:"min-w-0"}),void 0===s?null:(0,t.jsx)(x,{fleetId:s.fleet.id}),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)(l.AvatarMenuSheet,{...b})]})]})}],84821)},65894,e=>{e.s(["f",0,function(e,t){let[n="",r=""]=e.split("?"),o=new URLSearchParams(r);return o.set("fleet",t),`${n}?${o.toString()}`}])}],18566,(e,t,n)=>{t.exports=e.r(76562)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[26323,8821,56736,25834,35890,64938,80829,6640,10199,64951,66250,77173,13488,28376,9977,41708,93480,9169,52744,e=>{var t=e.i(71645),n=e.i(33332);let r=t.createContext(void 0);function o(e){let o=t.useContext(r);if(!e&&void 0===o)throw Error((0,n.f)(27));return o}e.s(["R",0,r,"x",0,o],8821);var i=e.i(52245),a=e.i(79938);let s=t.forwardRef(function(e,t){let{render:n,className:r,style:s,forceRender:l=!1,...d}=e,u=o(),p=u.useState("open"),c=u.useState("nested"),f=u.useState("mounted"),g=u.useState("transitionStatus");return(0,i.a)("div",e,{state:{open:p,transitionStatus:g},ref:[u.context.backdropRef,t],stateAttributesMapping:a.M,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!c})});var l=e.i(40886),d=e.i(75606),u=e.i(57749);let p=t.forwardRef(function(e,t){let{render:n,className:r,style:a,disabled:s=!1,nativeButton:p=!0,...c}=e,f=o(),g=f.useState("open"),{getButtonProps:m,buttonRef:h}=(0,l.f)({disabled:s,native:p});return(0,i.a)("button",e,{state:{disabled:s},ref:[t,h],props:[{onClick:function(e){g&&f.setOpen(!1,(0,d.j)(u.f.closePress,e.nativeEvent))}},c,m]})});e.s(["f",0,p],56736);var c=e.i(88015);let f=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=o(),u=(0,c.f)(s);return d.useSyncedValueWithCleanup("descriptionElementId",u),(0,i.a)("p",e,{ref:t,props:[{id:u},l]})});var g=e.i(61487);let m=t.createContext(void 0);function h(){let e=t.useContext(m);if(void 0===e)throw Error((0,n.f)(26));return e}e.s(["_",0,m,"Z",0,h],25834);var v=e.i(37584),x=e.i(73327),S=e.i(64111),b=e.i(74354),C=e.i(38380);e.s(["f",0,C],35890);var C=C,w=C;e.s(["f",0,w],64938);var w=C,y=C;e.s(["f",0,y],80829);var y=C,P=C;e.s(["f",0,P],6640);var P=C;C.open,w.closed,y.startingStyle,P.endingStyle;let O={...a.E,...b.f,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};e.s(["f",0,O],10199);var R=e.i(43476);let j=t.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:s,initialFocus:l,...d}=e,u=o(),p=u.useState("descriptionElementId"),c=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),b=u.useState("modal"),C=u.useState("mounted"),w=u.useState("nested"),y=u.useState("nestedOpenDialogCount"),P=u.useState("open"),j=u.useState("openMethod"),k=u.useState("titleElementId"),E=u.useState("transitionStatus"),T=u.useState("role"),I=f.useState("floatingId");h(),(0,v.f)({open:P,ref:u.context.popupRef,onComplete(){P&&u.context.onOpenChangeComplete?.(!0)}});let D=void 0===l?(0,S.H)(u.context.popupRef):l,N=u.useStateSetter("popupElement"),A=(0,i.a)("div",e,{state:{open:P,nested:w,transitionStatus:E,nestedDialogOpen:y>0},props:[m,{id:I,"aria-labelledby":k,"aria-describedby":p,role:T,...S.X,hidden:!C,onKeyDown(e){x.f.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":y}},d],ref:[t,u.context.popupRef,N],stateAttributesMapping:O});return(0,R.jsx)(g.f,{context:f,openInteractionType:j,disabled:!C,closeOnFocusOut:!c,initialFocus:D,returnFocus:s,modal:!1!==b,restoreFocus:"popup",children:A})});var k=e.i(44394),E=e.i(26674),T=e.i(426);let I=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=o(),a=i.useState("mounted"),s=i.useState("modal"),l=i.useState("open");return a||n?(0,R.jsx)(m.Provider,{value:n,children:(0,R.jsxs)(E.r,{ref:t,...r,children:[a&&!0===s&&(0,R.jsx)(T.f,{ref:i.context.internalBackdropRef,inert:(0,k.f)(!l)}),e.children]})}):null});e.s(["f",0,I],64951);var D=e.i(96499),N=e.i(46376),A=e.i(45484),M=e.i(17989),U=e.i(84446);function B({store:e,parentContext:n,isDrawer:r}){let o=e.useState("open"),i=e.useState("mounted"),a=e.useState("disablePointerDismissal"),s=e.useState("modal"),l=e.useState("popupElement"),d=e.useState("floatingRootContext"),[u,p]=t.useState(0),[c,f]=t.useState(0),g=0===u,m=(0,M.f)(d,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===s?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let n=(0,U.Z)(t);if(g&&!a){if(s){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return!t&&!r||t===n||r===n||(0,U.I)(n,l)&&!n?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:g});return(0,A.f)(o&&!0===s,l),e.useContextCallback("onNestedDialogOpen",(t,n)=>{(e.select("open")||e.select("mounted"))&&(p(t),f(n))}),(0,N.f)(()=>{o||i||(p(0),f(0))},[o,i]),(0,N.f)(()=>(n?.onNestedDialogOpen&&o&&n.onNestedDialogOpen(u+1,c+ +!!r),()=>{n?.onNestedDialogOpen&&o&&n.onNestedDialogOpen(0,0)}),[r,o,u,c,n]),(0,S.y)(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:c}),null}var L=e.i(1252),z=e.i(16786),F=e.i(90627);let W={...z.j,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class $ extends L.f{constructor(e,n,r){var o;let i=new F.f;super(function(e,t,n,r=!1){return{...(0,z.i)(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,i,n,r),(o=i,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:o,onOpenChange:void 0,onOpenChangeComplete:void 0}),W)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,S.z)(this.state,e,t.trigger)))}}var H=e.i(68765);function K(e,n){let{children:i,open:a,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:u,disablePointerDismissal:p=!1,modal:c=!0,actionsRef:f,handle:g,triggerId:m,defaultTriggerId:h=null}=n,v="alert-dialog"===e,x=o(!0),b={modal:!!v||c,disablePointerDismissal:v||p,nested:null!=x,role:v?"alertdialog":"dialog"},C=(0,S.$)((e,t)=>new $({open:s,openProp:a,activeTriggerId:h,triggerIdProp:m,...b},e,t),!0);C.useControlledProp("openProp",a),C.useControlledProp("triggerIdProp",m),C.useSyncedValues(b),C.useContextCallback("onOpenChange",l),C.useContextCallback("onOpenChangeComplete",u);let w=C.useState("open"),y=C.useState("mounted"),P=C.useState("payload");(0,S.e)(C,w),(0,S._)(C);let{forceUnmount:O}=(0,S.L)(w,C);t.useImperativeHandle(f,()=>({unmount:O,close:()=>C.setOpen(!1,(0,d.j)(H.f.imperativeAction))}),[O,C]);let j=w||y||null!=g;return(0,R.jsxs)(r.Provider,{value:C,children:[g&&(0,R.jsx)(S.d,{handle:g,store:C}),j&&(0,R.jsx)(B,{store:C,parentContext:x?.context,isDrawer:"drawer"===e}),"function"==typeof i?i({payload:P}):i]})}e.s(["f",0,K],66250);let _=(0,D.U)(function(e){return K("dialog",e)}),V=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=o(),u=(0,c.f)(s);return d.useSyncedValueWithCleanup("titleElementId",u),(0,i.a)("h2",e,{ref:t,props:[{id:u},l]})});e.s(["f",0,V],77173);var G=e.i(38396),Z=e.i(59636),q=e.i(85689),J=e.i(32199);let X=(0,D.u)(function(e,r){let{render:s,className:d,style:u,disabled:p=!1,nativeButton:f=!0,id:g,payload:m,handle:h,...v}=e,x=o(!0),b=(0,Z.f)(h)??x;if(!b)throw Error((0,n.f)(79));let C=(0,c.f)(g),w=b.useState("floatingRootContext"),y=b.useState("isOpenedByTrigger",C),P=b.useState("triggerPopupId",C),O=t.useRef(null),{registerTrigger:R,isMountedByThisTrigger:j}=(0,S.F)(C,O,b,{payload:m}),{getButtonProps:k,buttonRef:E}=(0,l.f)({disabled:p,native:f}),T=(0,q.f)(w),I=(0,J.p)(()=>b.select("open"),e=>{b.set("openMethod",e)}),D=b.useState("triggerProps",j);return(0,i.a)("button",e,{state:{disabled:p,open:y},ref:[E,r,R,O],props:[T.reference,D,I,{[G.j]:"",id:C,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":P},v,k],stateAttributesMapping:a.J})});e.s(["f",0,X],13488),e.s(["Backdrop",0,s,"Close",0,p,"Description",0,f,"Popup",0,j,"Portal",0,I,"Root",0,_,"Title",0,V,"Trigger",0,X],28376);var Q=e.i(28376);e.s(["f",0,Q],26323),e.s(["f",0,Q],9977),e.s(["f",0,Q],41708),e.s(["f",0,Q],93480),e.s(["f",0,Q],9169),e.s(["f",0,Q],52744)},73327,e=>{let t=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);e.s(["f",0,t])},16786,59636,e=>{var t=e.i(56789),n=e.i(56341);let r=e=>e.triggerIdProp??e.activeTriggerId,o=e=>e.openProp??e.open,i=e=>(e.popupElement?.id??e.floatingId)||void 0;function a(e,t){return void 0!==t&&o(e)&&r(e)===t}e.s(["i",0,function(e,r,o=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:r,syncOnly:!0,nested:o,onOpenChange:void 0}),floatingId:r,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.w,inactiveTriggerProps:t.w,popupProps:t.w}},"j",0,{open:o,mounted:e=>e.mounted,transitionStatus:e=>o(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:r,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:i,isTriggerActive:(e,t)=>void 0!==t&&r(e)===t,isOpenedByTrigger:(e,t)=>a(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&r(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>a(e,t)||void 0!==t&&o(e)&&null==r(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?i(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}],16786);var s=e.i(71645),l=e.i(2239);e.s(["f",0,function(e){let n=s.useCallback(n=>void 0===e?t.x:e.subscribeStore(n),[e]),r=s.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,l.useSyncExternalStore)(n,r,()=>e?.serverStore)}],59636)},95187,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let i=e.r(32120),a=e.r(92245),s=e.r(35326)},84821,e=>{var t=e.i(43476),n=e.i(56420);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let o=(0,n.f)(r);var i=e.i(60382),a=e.i(30186),s=e.i(72474),l=e.i(68423),d=e.i(71773);function u({switcher:e,account:n,onSearch:r,searchLabel:p="Search or jump to",children:c,actions:f,className:g}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,d.f)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",g),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(i.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),c]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[f,r?(0,t.jsxs)(a.f,{size:"sm",icon:(0,t.jsx)(o,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:r,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:p}),(0,t.jsx)(s.f,{children:"⌘K"})]}):null,(0,t.jsx)(l.AvatarMenu,{...n})]})]})}var p=e.i(18566),c=e.i(71645),f=e.i(95187);let g=(0,f.createServerReference)("40c2ebc7d82ce92803e9e2046541ec9e3aaa9d6ca2",f.callServer,void 0,f.findSourceMapURL,"setTheme"),m=["light","dark","system"];var h=e.i(65894);let v=[{key:"overview",label:"Overview",path:"/overview"},{key:"outside-parties",label:"Outside parties",path:"/outside-parties"},{key:"parties",label:"Parties",path:"/parties"},{key:"slack",label:"Slack",path:"/slack"}];function x({fleetId:e}){let n=(0,p.usePathname)();return(0,t.jsx)("nav",{"aria-label":"Gateway",className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:v.map(({key:r,label:o,path:i})=>{let a=n===i||n.startsWith(`${i}/`);return(0,t.jsx)("a",{href:(0,h.f)(i,e),"data-testid":`frame-tab-${r}`,"aria-current":a?"page":void 0,className:`whitespace-nowrap rounded-md px-2 py-1 text-sm ${a?"bg-accent font-semibold":"text-muted-foreground hover:bg-accent"}`,children:o},r)})})}e.s(["GatewayHeader",0,function({switchers:e,email:n,accountUrl:r,theme:o}){let a=(0,p.useSearchParams)().get("fleet"),s=e.find(({fleet:e})=>e.id===a)??e[0],[d,f]=(0,c.useState)(o),[h,v]=(0,c.useState)(!1),S=(0,c.useRef)(null),b={name:n,signedInAs:"account",accountUrl:r,theme:d,themes:m,hasTheme:!0,onThemeChange:e=>{let t;f(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),g(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{v(!0),S.current?.requestSubmit()},isSigningOut:h};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("form",{ref:S,method:"post",action:"/sign-in/end",hidden:!0}),(0,t.jsx)(u,{switcher:s,account:b,className:"max-sm:hidden",children:void 0===s?null:(0,t.jsx)(x,{fleetId:s.fleet.id})}),(0,t.jsxs)("header",{className:"sticky top-0 z-30 flex h-14 shrink-0 items-center gap-3 border-b border-border bg-background px-4 sm:hidden",children:[void 0===s?null:(0,t.jsx)(i.AppSwitcher,{switcher:s,layout:"compact",className:"min-w-0"}),void 0===s?null:(0,t.jsx)(x,{fleetId:s.fleet.id}),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)(l.AvatarMenuSheet,{...b})]})]})}],84821)},65894,e=>{e.s(["f",0,function(e,t){let[n="",r=""]=e.split("?"),o=new URLSearchParams(r);return o.set("fleet",t),`${n}?${o.toString()}`}])}],18566,(e,t,n)=>{t.exports=e.r(76562)}]);
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21611,e=>{var d=e.i(43476),r=e.i(71645),n=e.i(65894),s=e.i(28008),t=e.i(30402),a=e.i(94984),i=e.i(65818),o=e.i(58107),l=e.i(31831),c=e.i(90526),u=e.i(95187);let p=(0,u.createServerReference)("60c7eca121dbae1c124f74472d6836045817fe9b27",u.callServer,void 0,u.findSourceMapURL,"addA2aClient"),m={kind:"idle"};function h({name:e,bearer:r,fleetId:s}){return(0,d.jsxs)("section",{className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-added",children:[(0,d.jsxs)("h2",{className:"text-section font-semibold",children:[e," is added"]}),(0,d.jsx)("p",{children:"Hand its client this bearer now. It is shown only once: the gateway keeps no copy it can show again."}),(0,d.jsx)("code",{className:"break-all rounded-md border border-border bg-background px-3 py-2 font-mono text-code","data-testid":"add-a2a-client-bearer",children:r}),(0,d.jsx)("p",{children:(0,d.jsx)("a",{href:(0,n.f)((0,l.f)(e),s),className:"text-primary hover:underline",children:"Its card addresses"})})]})}e.s(["A2aClientForm",0,function({fleetId:e,requestId:n,owners:l,scopes:u}){let[x,b]=(0,r.useActionState)(p,m);return"added"===x.kind?(0,d.jsx)(h,{name:x.name,bearer:x.bearer,fleetId:e}):(0,d.jsxs)("form",{action:b,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-form",children:[(0,d.jsx)("input",{type:"hidden",name:s.H,value:e}),(0,d.jsx)("input",{type:"hidden",name:"requestId",value:n}),(0,d.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A client"}),(0,d.jsxs)("label",{className:t.z,children:[(0,d.jsx)("span",{children:"Name, the proxy ship's"}),(0,d.jsx)("input",{className:t.w,name:"name",required:!0})]}),(0,d.jsx)(i.f,{choices:l.isOk?l.value:[],current:null,help:"A person ship or argo. It answers for this client.",refusal:l.isOk?void 0:l.refusal}),0===u.length?null:(0,d.jsxs)("fieldset",{className:"grid gap-2",children:[(0,d.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),u.map(e=>(0,d.jsxs)("label",{className:"flex items-center gap-2",children:[(0,d.jsx)("input",{type:"checkbox",name:`${c.f}${e}`}),(0,d.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,d.jsx)("div",{children:(0,d.jsx)(o.f,{pending:"Adding…",children:"Add"})}),(0,d.jsx)(a.f,{state:"refused"===x.kind?x:{kind:"idle"}})]})}],21611)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let d="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",r={primary:`${d} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${d} border border-border bg-card hover:bg-accent`,destructive:`${d} bg-destructive text-destructive-foreground`};e.s(["x",0,r,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,e=>{var d=e.i(43476);e.s(["f",0,function({state:e,testId:r}){switch(e.kind){case"idle":return null;case"done":return(0,d.jsx)("p",{role:"status","data-testid":r,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,d.jsx)("p",{role:"alert","data-testid":r,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},65818,e=>{var d=e.i(43476),r=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:s,refusal:t}){let a=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,d.jsxs)("label",{className:r.z,children:[(0,d.jsx)("span",{children:"Owner"}),(0,d.jsxs)("select",{className:r.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,d.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,a.map(e=>(0,d.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,d.jsx)("span",{className:"text-muted-foreground",children:t??s})]})}])},58107,e=>{var d=e.i(43476),r=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:s,kind:t="primary",testId:a}){let i=(0,r.useFormStatus)();return(0,d.jsx)("button",{type:"submit",className:n.x[t],disabled:i.pending,"aria-busy":i.pending,"data-testid":a,children:i.pending?s:e})}])},31831,e=>{e.s(["f",0,function(e,d){return`/outside-parties/${encodeURIComponent(e)}${void 0===d?"":`/${d}`}`}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
@@ -1 +1 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88374,e=>{let r=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],n={kind:"personSignIn",label:"Each person signs in"},s=[...r,n];e.s(["a",0,s,"x",0,r,"m",0,n,"G",0,function(e){return s.find(({kind:r})=>r===e)?.kind??"bearer"},"C",0,function(e){return r.find(({kind:r})=>r===e)?.kind??"bearer"}])},30402,e=>{let r="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${r} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${r} border border-border bg-card hover:bg-accent`,destructive:`${r} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},65818,e=>{var r=e.i(43476),n=e.i(30402);e.s(["f",0,function({choices:e,current:s,help:i,refusal:a}){let t=null===s||e.some(e=>e.shipId===s.shipId)?e:[s,...e];return(0,r.jsxs)("label",{className:n.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:n.w,name:"ownerShipId",defaultValue:s?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===s?(0,r.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,t.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:a??i})]})}])},83928,e=>{var r=e.i(43476),n=e.i(18566),s=e.i(71645),i=e.i(95187);let a=(0,i.createServerReference)("402decc5318dd2cf7bed966b0f203e2b1dd0d01321",i.callServer,void 0,i.findSourceMapURL,"decideRequest");var t=e.i(88374),d=e.i(65818);let l=["messages:send","messages:receive"],o={"messages:send":"Send","messages:receive":"Receive","fleet:read":"Read the fleet"};var c=e.i(38314),u=e.i(93633);let p="rounded-md border border-input bg-background px-2 py-1.5";function m({scope:e,isLocked:n}){return(0,r.jsxs)("label",{className:"flex items-center gap-2",children:[n?(0,r.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,"aria-label":o[e]??e}):(0,r.jsx)("input",{type:"checkbox",name:"scope",value:e,"aria-label":o[e]??e}),(0,r.jsx)("span",{children:o[e]??e}),(0,r.jsx)("span",{className:"font-mono text-caption text-muted-foreground",children:e}),n?(0,r.jsx)("span",{className:"text-caption text-muted-foreground",children:"(always)"}):null]})}function b(e,r){let n=e.get(r);return"string"==typeof n?n:""}function g({request:e,heldScopes:n,owners:i,working:a,failure:o,onDecide:h}){let[x,v]=(0,s.useState)("bearer"),f=function(e){switch(e.subject.kind){case"client":return e.subject.clientName;case"server":return URL.canParse(e.subject.url)?new URL(e.subject.url).host:e.subject.url}}(e),j="server"===e.subject.kind;return(0,r.jsxs)("section",{className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,r.jsxs)("h2",{className:"text-heading font-semibold",children:["Approve ",f]}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();let r=new FormData(e.currentTarget),n=r.getAll("scope").filter(e=>"string"==typeof e);h({kind:"approve",name:b(r,"name"),ownerShipId:b(r,"ownerShipId"),scopes:n,server:j?{credentialKind:(0,t.C)(b(r,"credentialKind")),token:b(r,"token"),clientId:b(r,"clientId"),clientSecret:b(r,"clientSecret"),issuer:b(r,"issuer"),scope:b(r,"scope-requested"),concurrencyLimit:Number(b(r,"concurrencyLimit"))}:void 0})},className:"grid gap-3",children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Proxy ship's name"}),(0,r.jsx)("input",{name:"name",defaultValue:f.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),required:!0,className:p})]}),(0,r.jsx)(d.f,{choices:i.isOk?i.value:[],current:null,help:"A person ship or argo. It answers for this party.",refusal:i.isOk?void 0:i.refusal}),(0,r.jsxs)("fieldset",{className:"grid gap-1",children:[(0,r.jsx)("legend",{children:"Scopes"}),l.map(e=>(0,r.jsx)(m,{scope:e,isLocked:!0},e)),n.filter(e=>!l.includes(e)).map(e=>(0,r.jsx)(m,{scope:e,isLocked:!1},e))]}),j?(0,r.jsxs)("fieldset",{className:"grid gap-2",children:[(0,r.jsx)("legend",{children:"The server's credential"}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Credential"}),(0,r.jsx)("select",{name:"credentialKind",value:x,onChange:e=>{v((0,t.C)(e.target.value))},className:p,children:t.x.map(({kind:e,label:n})=>(0,r.jsx)("option",{value:e,children:n},e))})]}),"none"===x?null:"bearer"===x?(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Bearer token"}),(0,r.jsx)("input",{type:"password",name:"token",className:p})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client id"}),(0,r.jsx)("input",{name:"clientId",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client secret"}),(0,r.jsx)("input",{type:"password",name:"clientSecret",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Issuer"}),(0,r.jsx)("input",{type:"url",name:"issuer",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Scope"}),(0,r.jsx)("input",{name:"scope-requested",className:p})]})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Calls at once"}),(0,r.jsx)("input",{type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:4,className:p})]})]}):null,void 0===o?null:(0,r.jsx)(u.f,{message:o,isFailure:!0}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(c.f,{type:"submit",variant:"primary","data-testid":"overview-approve",isPending:"approve"===a,pendingLabel:"Approving...",disabled:void 0!==a,children:"Approve"}),(0,r.jsx)(c.f,{type:"button","data-testid":"overview-deny",isPending:"deny"===a,pendingLabel:"Denying...",disabled:void 0!==a,onClick:()=>{h({kind:"deny"})},children:"Deny"})]})]})]})}e.s(["DecisionPanel",0,function({fleetId:e,request:i,heldScopes:t,owners:d}){let l=(0,n.useRouter)(),[o,c]=(0,s.useState)(),[u,p]=(0,s.useState)(),[,m]=(0,s.useTransition)();return(0,r.jsx)(g,{request:i,heldScopes:t,owners:d,working:o,failure:u,onDecide:r=>{c(r.kind),p(void 0),m(async()=>{let n=await a({fleet:e,requestId:i.requestId,input:r});n.isOk?l.push(`/overview?${new URLSearchParams({fleet:e,decided:r.kind}).toString()}`):(c(void 0),p(n.message))})}})}],83928)},10660,e=>{var r=e.i(71645),n=e.i(18566);e.s(["LiveRefresh",0,function({fleetId:e}){let s;return s=(0,n.useRouter)(),(0,r.useEffect)(()=>{let r=new EventSource(`/overview/changes?fleet=${encodeURIComponent(e)}`);return r.onmessage=()=>{s.refresh()},()=>{r.close()}},[e,s]),(0,r.useEffect)(()=>{let r,n=()=>{let n="visible"===document.visibilityState&&document.hasFocus();n&&void 0===r?r=new EventSource(`/overview/focus?fleet=${encodeURIComponent(e)}`):n||void 0===r||(r.close(),r=void 0)};return n(),window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),()=>{window.removeEventListener("focus",n),window.removeEventListener("blur",n),document.removeEventListener("visibilitychange",n),r?.close()}},[e]),null}],10660)},38314,e=>{var r=e.i(43476);let n={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:s,variant:i="secondary",children:a,className:t="",disabled:d,...l}){return(0,r.jsx)("button",{...l,disabled:!0===d||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${n[i]} ${t}`,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),s]}):a})}])},93633,e=>{var r=e.i(43476);e.s(["f",0,function({message:e,isFailure:n}){return n?(0,r.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,r.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88374,e=>{let r=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],n={kind:"personSignIn",label:"Each person signs in"},s=[...r,n];e.s(["a",0,s,"x",0,r,"m",0,n,"G",0,function(e){return s.find(({kind:r})=>r===e)?.kind??"bearer"},"C",0,function(e){return r.find(({kind:r})=>r===e)?.kind??"bearer"}])},30402,e=>{let r="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${r} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${r} border border-border bg-card hover:bg-accent`,destructive:`${r} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},65818,e=>{var r=e.i(43476),n=e.i(30402);e.s(["f",0,function({choices:e,current:s,help:i,refusal:a}){let t=null===s||e.some(e=>e.shipId===s.shipId)?e:[s,...e];return(0,r.jsxs)("label",{className:n.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:n.w,name:"ownerShipId",defaultValue:s?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===s?(0,r.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,t.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:a??i})]})}])},83928,e=>{var r=e.i(43476),n=e.i(18566),s=e.i(71645),i=e.i(95187);let a=(0,i.createServerReference)("408819c99996290b362a2ea4e8b39d342b6bf79c81",i.callServer,void 0,i.findSourceMapURL,"decideRequest");var t=e.i(88374),d=e.i(65818);let l=["messages:send","messages:receive"],o={"messages:send":"Send","messages:receive":"Receive","fleet:read":"Read the fleet"};var c=e.i(38314),u=e.i(93633);let p="rounded-md border border-input bg-background px-2 py-1.5";function m({scope:e,isLocked:n}){return(0,r.jsxs)("label",{className:"flex items-center gap-2",children:[n?(0,r.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,"aria-label":o[e]??e}):(0,r.jsx)("input",{type:"checkbox",name:"scope",value:e,"aria-label":o[e]??e}),(0,r.jsx)("span",{children:o[e]??e}),(0,r.jsx)("span",{className:"font-mono text-caption text-muted-foreground",children:e}),n?(0,r.jsx)("span",{className:"text-caption text-muted-foreground",children:"(always)"}):null]})}function b(e,r){let n=e.get(r);return"string"==typeof n?n:""}function g({request:e,heldScopes:n,owners:i,working:a,failure:o,onDecide:h}){let[x,v]=(0,s.useState)("bearer"),f=function(e){switch(e.subject.kind){case"client":return e.subject.clientName;case"server":return URL.canParse(e.subject.url)?new URL(e.subject.url).host:e.subject.url}}(e),j="server"===e.subject.kind;return(0,r.jsxs)("section",{className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,r.jsxs)("h2",{className:"text-heading font-semibold",children:["Approve ",f]}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();let r=new FormData(e.currentTarget),n=r.getAll("scope").filter(e=>"string"==typeof e);h({kind:"approve",name:b(r,"name"),ownerShipId:b(r,"ownerShipId"),scopes:n,server:j?{credentialKind:(0,t.C)(b(r,"credentialKind")),token:b(r,"token"),clientId:b(r,"clientId"),clientSecret:b(r,"clientSecret"),issuer:b(r,"issuer"),scope:b(r,"scope-requested"),concurrencyLimit:Number(b(r,"concurrencyLimit"))}:void 0})},className:"grid gap-3",children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Proxy ship's name"}),(0,r.jsx)("input",{name:"name",defaultValue:f.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),required:!0,className:p})]}),(0,r.jsx)(d.f,{choices:i.isOk?i.value:[],current:null,help:"A person ship or argo. It answers for this party.",refusal:i.isOk?void 0:i.refusal}),(0,r.jsxs)("fieldset",{className:"grid gap-1",children:[(0,r.jsx)("legend",{children:"Scopes"}),l.map(e=>(0,r.jsx)(m,{scope:e,isLocked:!0},e)),n.filter(e=>!l.includes(e)).map(e=>(0,r.jsx)(m,{scope:e,isLocked:!1},e))]}),j?(0,r.jsxs)("fieldset",{className:"grid gap-2",children:[(0,r.jsx)("legend",{children:"The server's credential"}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Credential"}),(0,r.jsx)("select",{name:"credentialKind",value:x,onChange:e=>{v((0,t.C)(e.target.value))},className:p,children:t.x.map(({kind:e,label:n})=>(0,r.jsx)("option",{value:e,children:n},e))})]}),"none"===x?null:"bearer"===x?(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Bearer token"}),(0,r.jsx)("input",{type:"password",name:"token",className:p})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client id"}),(0,r.jsx)("input",{name:"clientId",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client secret"}),(0,r.jsx)("input",{type:"password",name:"clientSecret",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Issuer"}),(0,r.jsx)("input",{type:"url",name:"issuer",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Scope"}),(0,r.jsx)("input",{name:"scope-requested",className:p})]})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Calls at once"}),(0,r.jsx)("input",{type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:4,className:p})]})]}):null,void 0===o?null:(0,r.jsx)(u.f,{message:o,isFailure:!0}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(c.f,{type:"submit",variant:"primary","data-testid":"overview-approve",isPending:"approve"===a,pendingLabel:"Approving...",disabled:void 0!==a,children:"Approve"}),(0,r.jsx)(c.f,{type:"button","data-testid":"overview-deny",isPending:"deny"===a,pendingLabel:"Denying...",disabled:void 0!==a,onClick:()=>{h({kind:"deny"})},children:"Deny"})]})]})]})}e.s(["DecisionPanel",0,function({fleetId:e,request:i,heldScopes:t,owners:d}){let l=(0,n.useRouter)(),[o,c]=(0,s.useState)(),[u,p]=(0,s.useState)(),[,m]=(0,s.useTransition)();return(0,r.jsx)(g,{request:i,heldScopes:t,owners:d,working:o,failure:u,onDecide:r=>{c(r.kind),p(void 0),m(async()=>{let n=await a({fleet:e,requestId:i.requestId,input:r});n.isOk?l.push(`/overview?${new URLSearchParams({fleet:e,decided:r.kind}).toString()}`):(c(void 0),p(n.message))})}})}],83928)},10660,e=>{var r=e.i(71645),n=e.i(18566);e.s(["LiveRefresh",0,function({fleetId:e}){let s;return s=(0,n.useRouter)(),(0,r.useEffect)(()=>{let r=new EventSource(`/overview/changes?fleet=${encodeURIComponent(e)}`);return r.onmessage=()=>{s.refresh()},()=>{r.close()}},[e,s]),(0,r.useEffect)(()=>{let r,n=()=>{let n="visible"===document.visibilityState&&document.hasFocus();n&&void 0===r?r=new EventSource(`/overview/focus?fleet=${encodeURIComponent(e)}`):n||void 0===r||(r.close(),r=void 0)};return n(),window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),()=>{window.removeEventListener("focus",n),window.removeEventListener("blur",n),document.removeEventListener("visibilitychange",n),r?.close()}},[e]),null}],10660)},38314,e=>{var r=e.i(43476);let n={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:s,variant:i="secondary",children:a,className:t="",disabled:d,...l}){return(0,r.jsx)("button",{...l,disabled:!0===d||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${n[i]} ${t}`,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),s]}):a})}])},93633,e=>{var r=e.i(43476);e.s(["f",0,function({message:e,isFailure:n}){return n?(0,r.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,r.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
@@ -1 +1 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17433,e=>{var r=e.i(43476),t=e.i(18566),a=e.i(71645),n=e.i(38314),i=e.i(93633),d=e.i(95187);let s=(0,d.createServerReference)("40e5fff1cbfe51a00dc8b6e06d91546bb9e1968fb2",d.callServer,void 0,d.findSourceMapURL,"changeMic"),o=(0,d.createServerReference)("40c722bc926906b0f6be8251efde8aa764e9c6f338",d.callServer,void 0,d.findSourceMapURL,"contribute"),l={request:{label:"Request the mic",pending:"Requesting..."},withdraw:{label:"Withdraw my request",pending:"Withdrawing..."},release:{label:"Release the mic",pending:"Releasing..."}};e.s(["MeetingControls",0,function({fleetId:e,meetingId:d,controls:c}){let u=(0,t.useRouter)(),[b,g]=(0,a.useState)(""),[p,m]=(0,a.useState)(()=>crypto.randomUUID()),[f,h]=(0,a.useState)(),[v,x]=(0,a.useState)(),[,y]=(0,a.useTransition)(),j=({control:e,action:r,onDone:t})=>{h(e),x(void 0),y(async()=>{let e=await r();h(void 0),e.isOk?(t?.(),u.refresh()):x(e.message)})},S=void 0!==f,R=c.filter(e=>"contribute"!==e);return(0,r.jsxs)("div",{className:"grid gap-3",children:[c.includes("contribute")?(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Your contribution"}),(0,r.jsx)("textarea",{"data-testid":"meeting-text",rows:4,value:b,onChange:e=>{g(e.target.value)},className:"rounded-md border border-input bg-background p-2"})]}),(0,r.jsx)(n.f,{"data-testid":"meeting-contribute",variant:"primary",className:"justify-self-start",isPending:"contribute"===f,pendingLabel:"Sending...",disabled:S,onClick:()=>{j({control:"contribute",action:()=>o({fleet:e,meetingId:d,text:b,idempotencyKey:p}),onDone:()=>{g(""),m(crypto.randomUUID())}})},children:"Contribute"})]}):null,0===R.length?null:(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:R.map(t=>(0,r.jsx)(n.f,{"data-testid":`meeting-${t}`,variant:"request"===t?"primary":"secondary",isPending:f===t,pendingLabel:l[t].pending,disabled:S,onClick:()=>{j({control:t,action:()=>s({fleet:e,meetingId:d,change:t})})},children:l[t].label},t))}),void 0===v?null:(0,r.jsx)(i.f,{message:v,isFailure:!0})]})}],17433)},38314,e=>{var r=e.i(43476);let t={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:a,variant:n="secondary",children:i,className:d="",disabled:s,...o}){return(0,r.jsx)("button",{...o,disabled:!0===s||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${t[n]} ${d}`,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):i})}])},93633,e=>{var r=e.i(43476);e.s(["f",0,function({message:e,isFailure:t}){return t?(0,r.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,r.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17433,e=>{var r=e.i(43476),t=e.i(18566),a=e.i(71645),n=e.i(38314),i=e.i(93633),d=e.i(95187);let s=(0,d.createServerReference)("40280d908ca33fb0cfafc559b986139267743c737f",d.callServer,void 0,d.findSourceMapURL,"changeMic"),o=(0,d.createServerReference)("40741faa851c4e53de3359cd0685cd83bb3fd630eb",d.callServer,void 0,d.findSourceMapURL,"contribute"),l={request:{label:"Request the mic",pending:"Requesting..."},withdraw:{label:"Withdraw my request",pending:"Withdrawing..."},release:{label:"Release the mic",pending:"Releasing..."}};e.s(["MeetingControls",0,function({fleetId:e,meetingId:d,controls:c}){let u=(0,t.useRouter)(),[b,g]=(0,a.useState)(""),[p,m]=(0,a.useState)(()=>crypto.randomUUID()),[f,h]=(0,a.useState)(),[v,x]=(0,a.useState)(),[,y]=(0,a.useTransition)(),j=({control:e,action:r,onDone:t})=>{h(e),x(void 0),y(async()=>{let e=await r();h(void 0),e.isOk?(t?.(),u.refresh()):x(e.message)})},S=void 0!==f,R=c.filter(e=>"contribute"!==e);return(0,r.jsxs)("div",{className:"grid gap-3",children:[c.includes("contribute")?(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Your contribution"}),(0,r.jsx)("textarea",{"data-testid":"meeting-text",rows:4,value:b,onChange:e=>{g(e.target.value)},className:"rounded-md border border-input bg-background p-2"})]}),(0,r.jsx)(n.f,{"data-testid":"meeting-contribute",variant:"primary",className:"justify-self-start",isPending:"contribute"===f,pendingLabel:"Sending...",disabled:S,onClick:()=>{j({control:"contribute",action:()=>o({fleet:e,meetingId:d,text:b,idempotencyKey:p}),onDone:()=>{g(""),m(crypto.randomUUID())}})},children:"Contribute"})]}):null,0===R.length?null:(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:R.map(t=>(0,r.jsx)(n.f,{"data-testid":`meeting-${t}`,variant:"request"===t?"primary":"secondary",isPending:f===t,pendingLabel:l[t].pending,disabled:S,onClick:()=>{j({control:t,action:()=>s({fleet:e,meetingId:d,change:t})})},children:l[t].label},t))}),void 0===v?null:(0,r.jsx)(i.f,{message:v,isFailure:!0})]})}],17433)},38314,e=>{var r=e.i(43476);let t={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:a,variant:n="secondary",children:i,className:d="",disabled:s,...o}){return(0,r.jsx)("button",{...o,disabled:!0===s||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${t[n]} ${d}`,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):i})}])},93633,e=>{var r=e.i(43476);e.s(["f",0,function({message:e,isFailure:t}){return t?(0,r.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,r.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
@@ -1 +1 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(28008),r=e.i(62052),t=e.i(30402),d=e.i(94984),i=e.i(65818),l=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("60441535fb5f957bb3ee35ed3eb76b6a02f3318313",o.callServer,void 0,o.findSourceMapURL,"addA2aAgent"),m={kind:"idle"};e.s(["A2aAgentForm",0,function({fleetId:e,requestId:o,owners:p,scopes:h}){let[x,f]=(0,n.useActionState)(u,m),g="refused"===x.kind?x.fields:{};return(0,s.jsxs)("form",{action:f,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-agent-form",children:[(0,s.jsx)("input",{type:"hidden",name:a.H,value:e}),(0,s.jsx)("input",{type:"hidden",name:"requestId",value:o}),(0,s.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A agent"}),(0,s.jsx)(d.f,{state:"refused"===x.kind?x:{kind:"idle"}}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Name, the proxy ship's"}),(0,s.jsx)("input",{className:t.w,name:"name",defaultValue:g.name??"",required:!0})]}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Card address"}),(0,s.jsx)("input",{className:t.w,type:"url",name:"cardUrl",defaultValue:g.cardUrl??"",placeholder:"https://agent.example.com/.well-known/agent-card.json",required:!0}),(0,s.jsx)("span",{className:"text-caption text-muted-foreground",children:"The gateway reads the card first: an agent whose card it cannot state is not added."})]}),(0,s.jsx)(r.f,{legend:"The agent's credential",fields:g,noneHelp:"The gateway sends no credential: for an agent that asks for none."}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Messages in flight at once"}),(0,s.jsx)("input",{className:t.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:g.concurrencyLimit??"4"})]}),(0,s.jsx)(i.f,{choices:p.isOk?p.value:[],current:null,help:"A person ship or argo. It answers for this agent.",refusal:p.isOk?void 0:p.refusal}),0===h.length?null:(0,s.jsxs)("fieldset",{className:"grid gap-2",children:[(0,s.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),h.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"checkbox",name:`${c.f}${e}`,defaultChecked:void 0!==g[`${c.f}${e}`]}),(0,s.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,s.jsx)("div",{children:(0,s.jsx)(l.f,{pending:"Reading the card…",children:"Add"})})]})}],87722)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let s=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],n={kind:"personSignIn",label:"Each person signs in"},a=[...s,n];e.s(["a",0,a,"x",0,s,"m",0,n,"G",0,function(e){return a.find(({kind:s})=>s===e)?.kind??"bearer"},"C",0,function(e){return s.find(({kind:s})=>s===e)?.kind??"bearer"}])},62052,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:t,noneHelp:d,canEachPersonSignIn:i=!1,onKindChange:l}){let c=i?a.G:a.C,[o,u]=(0,n.useState)(c(t.credentialKind??""));return(0,s.jsxs)("fieldset",{className:"grid gap-3",children:[(0,s.jsx)("legend",{className:"font-medium",children:e}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Credential"}),(0,s.jsx)("select",{className:r.w,name:"credentialKind",value:o,onChange:e=>{let s=c(e.target.value);u(s),l?.(s)},children:(i?a.a:a.x).map(({kind:e,label:n})=>(0,s.jsx)("option",{value:e,children:n},e))})]}),"clientCredentials"===o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client id"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:t.clientId??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client secret"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Issuer"}),(0,s.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:t.issuer??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Scope"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:t.scope??""})]})]}):"bearer"===o?(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Bearer token"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"token"})]}):o===a.m.kind?(0,s.jsx)("p",{className:"text-muted-foreground",children:"Each person signs in for themselves. A ship calls under its owner's sign-in."}):(0,s.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},30402,e=>{let s="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${s} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${s} border border-border bg-card hover:bg-accent`,destructive:`${s} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,e=>{var s=e.i(43476);e.s(["f",0,function({state:e,testId:n}){switch(e.kind){case"idle":return null;case"done":return(0,s.jsx)("p",{role:"status","data-testid":n,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,s.jsx)("p",{role:"alert","data-testid":n,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},65818,e=>{var s=e.i(43476),n=e.i(30402);e.s(["f",0,function({choices:e,current:a,help:r,refusal:t}){let d=null===a||e.some(e=>e.shipId===a.shipId)?e:[a,...e];return(0,s.jsxs)("label",{className:n.z,children:[(0,s.jsx)("span",{children:"Owner"}),(0,s.jsxs)("select",{className:n.w,name:"ownerShipId",defaultValue:a?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===a?(0,s.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,d.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:t??r})]})}])},58107,e=>{var s=e.i(43476),n=e.i(74080),a=e.i(30402);e.s(["f",0,function({children:e,pending:r,kind:t="primary",testId:d}){let i=(0,n.useFormStatus)();return(0,s.jsx)("button",{type:"submit",className:a.x[t],disabled:i.pending,"aria-busy":i.pending,"data-testid":d,children:i.pending?r:e})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(28008),r=e.i(62052),t=e.i(30402),d=e.i(94984),i=e.i(65818),l=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("608ad0d36a0cdd886e103d2759009ddc4187ee8568",o.callServer,void 0,o.findSourceMapURL,"addA2aAgent"),m={kind:"idle"};e.s(["A2aAgentForm",0,function({fleetId:e,requestId:o,owners:p,scopes:h}){let[x,f]=(0,n.useActionState)(u,m),g="refused"===x.kind?x.fields:{};return(0,s.jsxs)("form",{action:f,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-agent-form",children:[(0,s.jsx)("input",{type:"hidden",name:a.H,value:e}),(0,s.jsx)("input",{type:"hidden",name:"requestId",value:o}),(0,s.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A agent"}),(0,s.jsx)(d.f,{state:"refused"===x.kind?x:{kind:"idle"}}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Name, the proxy ship's"}),(0,s.jsx)("input",{className:t.w,name:"name",defaultValue:g.name??"",required:!0})]}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Card address"}),(0,s.jsx)("input",{className:t.w,type:"url",name:"cardUrl",defaultValue:g.cardUrl??"",placeholder:"https://agent.example.com/.well-known/agent-card.json",required:!0}),(0,s.jsx)("span",{className:"text-caption text-muted-foreground",children:"The gateway reads the card first: an agent whose card it cannot state is not added."})]}),(0,s.jsx)(r.f,{legend:"The agent's credential",fields:g,noneHelp:"The gateway sends no credential: for an agent that asks for none."}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Messages in flight at once"}),(0,s.jsx)("input",{className:t.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:g.concurrencyLimit??"4"})]}),(0,s.jsx)(i.f,{choices:p.isOk?p.value:[],current:null,help:"A person ship or argo. It answers for this agent.",refusal:p.isOk?void 0:p.refusal}),0===h.length?null:(0,s.jsxs)("fieldset",{className:"grid gap-2",children:[(0,s.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),h.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"checkbox",name:`${c.f}${e}`,defaultChecked:void 0!==g[`${c.f}${e}`]}),(0,s.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,s.jsx)("div",{children:(0,s.jsx)(l.f,{pending:"Reading the card…",children:"Add"})})]})}],87722)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let s=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],n={kind:"personSignIn",label:"Each person signs in"},a=[...s,n];e.s(["a",0,a,"x",0,s,"m",0,n,"G",0,function(e){return a.find(({kind:s})=>s===e)?.kind??"bearer"},"C",0,function(e){return s.find(({kind:s})=>s===e)?.kind??"bearer"}])},62052,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:t,noneHelp:d,canEachPersonSignIn:i=!1,onKindChange:l}){let c=i?a.G:a.C,[o,u]=(0,n.useState)(c(t.credentialKind??""));return(0,s.jsxs)("fieldset",{className:"grid gap-3",children:[(0,s.jsx)("legend",{className:"font-medium",children:e}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Credential"}),(0,s.jsx)("select",{className:r.w,name:"credentialKind",value:o,onChange:e=>{let s=c(e.target.value);u(s),l?.(s)},children:(i?a.a:a.x).map(({kind:e,label:n})=>(0,s.jsx)("option",{value:e,children:n},e))})]}),"clientCredentials"===o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client id"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:t.clientId??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client secret"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Issuer"}),(0,s.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:t.issuer??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Scope"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:t.scope??""})]})]}):"bearer"===o?(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Bearer token"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"token"})]}):o===a.m.kind?(0,s.jsx)("p",{className:"text-muted-foreground",children:"Each person signs in for themselves. A ship calls under its owner's sign-in."}):(0,s.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},30402,e=>{let s="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${s} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${s} border border-border bg-card hover:bg-accent`,destructive:`${s} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,e=>{var s=e.i(43476);e.s(["f",0,function({state:e,testId:n}){switch(e.kind){case"idle":return null;case"done":return(0,s.jsx)("p",{role:"status","data-testid":n,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,s.jsx)("p",{role:"alert","data-testid":n,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},65818,e=>{var s=e.i(43476),n=e.i(30402);e.s(["f",0,function({choices:e,current:a,help:r,refusal:t}){let d=null===a||e.some(e=>e.shipId===a.shipId)?e:[a,...e];return(0,s.jsxs)("label",{className:n.z,children:[(0,s.jsx)("span",{children:"Owner"}),(0,s.jsxs)("select",{className:n.w,name:"ownerShipId",defaultValue:a?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===a?(0,s.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,d.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:t??r})]})}])},58107,e=>{var s=e.i(43476),n=e.i(74080),a=e.i(30402);e.s(["f",0,function({children:e,pending:r,kind:t="primary",testId:d}){let i=(0,n.useFormStatus)();return(0,s.jsx)("button",{type:"submit",className:a.x[t],disabled:i.pending,"aria-busy":i.pending,"data-testid":d,children:i.pending?r:e})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();