@aeolus-fleet/gateway 0.37.3 → 0.37.4
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.
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +3 -3
- package/web/.next/diagnostics/route-bundle-stats.json +87 -87
- package/web/.next/fallback-build-manifest.json +3 -3
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/server/app/(bridge)/bridge/basket/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(bridge)/bridge/basket/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/basket/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/done/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/bridge/done/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/done/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/fleet/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/(bridge)/bridge/fleet/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/fleet/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/(bridge)/bridge/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/(bridge)/bridge/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/routing/page/server-reference-manifest.json +7 -7
- package/web/.next/server/app/(bridge)/bridge/settings/routing/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/routing/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/stay-aware/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/(bridge)/bridge/stay-aware/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/stay-aware/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/change/page/server-reference-manifest.json +19 -19
- package/web/.next/server/app/(bridge)/outside-parties/[name]/change/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/change/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(bridge)/outside-parties/[name]/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/retire/page/server-reference-manifest.json +19 -19
- package/web/.next/server/app/(bridge)/outside-parties/[name]/retire/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/retire/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add/page/server-reference-manifest.json +12 -12
- package/web/.next/server/app/(bridge)/outside-parties/add/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-agent/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-agent/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-agent/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-client/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-client/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-client/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/outside-parties/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/gateway-off/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/(console)/gateway-off/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/gateway-off/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/meetings/[meetingId]/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/(console)/meetings/[meetingId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/meetings/[meetingId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/parties/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/(console)/parties/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/parties/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/sign-in/failed/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/(console)/sign-in/failed/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/sign-in/failed/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/disconnect/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(console)/slack/disconnect/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/disconnect/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/expose/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(console)/slack/expose/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/expose/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(console)/slack/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/remove/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(console)/slack/remove/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/remove/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +1 -1
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/authorize/failed/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/authorize/failed/page.js.nft.json +1 -1
- package/web/.next/server/app/authorize/failed/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/authorize/pick/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/authorize/pick/page.js.nft.json +1 -1
- package/web/.next/server/app/authorize/pick/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/authorize/waiting/approval/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/authorize/waiting/approval/page.js.nft.json +1 -1
- package/web/.next/server/app/authorize/waiting/approval/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/ssr/01fr_app_(bridge)_bridge_settings_requests_[requestId]_page_actions_0o8g7_xshtmem.js +1 -1
- package/web/.next/server/chunks/ssr/01fr_app_(bridge)_bridge_settings_requests_[requestId]_page_actions_0o8g7_xshtmem.js.map +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_settings_page_actions_0_te6h-2xxp7l.js +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_settings_page_actions_0_te6h-2xxp7l.js.map +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_stay-aware_page_actions_1u0xo0v3y9c34.js +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_stay-aware_page_actions_1u0xo0v3y9c34.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_bridge_settings_routing_page_actions_06_j7s24dy5ee.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_bridge_settings_routing_page_actions_06_j7s24dy5ee.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_change_page_actions_1is-kjq5bubl4.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_change_page_actions_1is-kjq5bubl4.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_page_actions_1mctxtlzsa7xi.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_page_actions_1mctxtlzsa7xi.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_retire_page_actions_0xh6ok1un7s9k.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_retire_page_actions_0xh6ok1un7s9k.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add-a2a-agent_page_actions_1w1q5eavo_loo.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add-a2a-agent_page_actions_1w1q5eavo_loo.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add_page_actions_0urcbg_r0lo7j.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add_page_actions_0urcbg_r0lo7j.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ipo8r1s1ntds._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ovcg5tg3nh49._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ovcg5tg3nh49._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ro-majrw7piv._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ro-majrw7piv._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0xurmpdv5uqfl._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0zz6fx0keti4r._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0zz6fx0keti4r._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__19p4g16n2nh0b._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__19p4g16n2nh0b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1ncn4wx-1i09m._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1ncn4wx-1i09m._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js +1 -1
- package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_0phqji_8-1g8r._.js → _035yszhj3r1c4._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_12yl1q5vpvmnf._.js.map → _035yszhj3r1c4._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_12yl1q5vpvmnf._.js → _09lgufm3mfrax._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_0phqji_8-1g8r._.js.map → _09lgufm3mfrax._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_0_nfv33ug5g31._.js +1 -1
- package/web/.next/server/chunks/ssr/_0_nfv33ug5g31._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_0yt_0nnqp7qsf._.js → _0da66q5vprjs4._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_15oq7v7za6xc0._.js.map → _0da66q5vprjs4._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js +1 -1
- package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js +1 -1
- package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js +1 -1
- package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1cs_0d0h7mhw0._.js +1 -1
- package/web/.next/server/chunks/ssr/_1cs_0d0h7mhw0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_15oq7v7za6xc0._.js → _1csct1ek1q8gk._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_0yt_0nnqp7qsf._.js.map → _1csct1ek1q8gk._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_1eybd2u08vpbe._.js +57 -0
- package/web/.next/server/chunks/ssr/_1eybd2u08vpbe._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_1gvevplh5--ko._.js +57 -0
- package/web/.next/server/chunks/ssr/_1gvevplh5--ko._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js +1 -1
- package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js +1 -1
- package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_0a9n7acgjrk5c._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0a9n7acgjrk5c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_1vvrekkq5mirt._.js +1 -1
- package/web/.next/server/chunks/ssr/web_1vvrekkq5mirt._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_basket_page_actions_0g7q_rc5nma1e.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_basket_page_actions_0g7q_rc5nma1e.js.map +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_done_page_actions_0kjm34arntdzv.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_done_page_actions_0kjm34arntdzv.js.map +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_fleet_page_actions_19wmo6phgvqfk.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_fleet_page_actions_19wmo6phgvqfk.js.map +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_page_actions_1ok64rg3edm_u.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_page_actions_1ok64rg3edm_u.js.map +1 -1
- package/web/.next/server/chunks/ssr/{web_features_05tyk8t8uz71m._.js → web_features_0ids5df1ey0ok._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_05tyk8t8uz71m._.js.map → web_features_0ids5df1ey0ok._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{web_features_1_648zpxn76jp._.js → web_features_0mfj1eqsy4d_c._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_1_648zpxn76jp._.js.map → web_features_0mfj1eqsy4d_c._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/web_features_1_4v6uya90q44._.js +3 -0
- package/web/.next/server/chunks/ssr/{web_features_0hnjtl8jg_qhq._.js.map → web_features_1_4v6uya90q44._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/web_features_1urhbp0mcpa_l._.js +3 -0
- package/web/.next/server/chunks/ssr/{web_features_1uzz6jypukhkx._.js.map → web_features_1urhbp0mcpa_l._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_0-0nf-k5yxn_-._.js +3 -0
- package/web/.next/server/chunks/ssr/{web_features_bridge_0ldot9q_-xh4o._.js.map → web_features_bridge_0-0nf-k5yxn_-._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_hooks_bridge-actions_ts_0h-_xm2rcb-ij._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_basket-panel_tsx_1qi_kzld0rfgs._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_basket-panel_tsx_1qi_kzld0rfgs._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_decision-panel_tsx_1mzsixgc8zuxc._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_decision-panel_tsx_1mzsixgc8zuxc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_done-panel_tsx_1m844-qb1z9p_._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_done-panel_tsx_1m844-qb1z9p_._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_outside-party_actions_ts_102ar5pdowf8s._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_parties_actions_ts_0r-tbfsig2ty-._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_slack_actions_ts_1l3yg9vl20_vu._.js +1 -1
- package/web/.next/server/middleware-build-manifest.js +3 -3
- package/web/.next/server/pages/500.html +1 -1
- package/web/.next/server/preview-props.json +3 -3
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +50 -50
- package/web/.next/static/chunks/08kys3m2d2npp.js +1 -0
- package/web/.next/static/chunks/{3ce0mcxr613x9.js → 0nyh_47-o2jm-.js} +1 -1
- package/web/.next/static/chunks/{3qdxrlqdxsqgz.js → 18how8fkqnl0e.js} +1 -1
- package/web/.next/static/chunks/{1zz_y28tujbue.js → 1brlzq2plk5ap.js} +4 -4
- package/web/.next/static/chunks/{3-1jjh1cn7c8-.js → 1orsal1h4e53h.js} +1 -1
- package/web/.next/static/chunks/{3tjpz6bq80t74.js → 21g7i42tax4p1.js} +1 -1
- package/web/.next/static/chunks/{2v9rmbrsi3gic.js → 24stbxkvxsyds.js} +1 -1
- package/web/.next/static/chunks/28mfymfvqbiap.js +1 -0
- package/web/.next/static/chunks/2a9t2r05lq6sx.js +1 -0
- package/web/.next/static/chunks/{37he-4csbzq66.js → 2rs9v3lnu9szf.js} +1 -1
- package/web/.next/static/chunks/{13wwvyhf3sngt.js → 2wlb27llhjqbn.js} +1 -1
- package/web/.next/static/chunks/{10irrhgnj6fen.js → 39oc4f33cg9c7.js} +1 -1
- package/web/.next/static/chunks/{037n80h9g7uj9.js → 3_3ru7h0-k2d3.js} +1 -1
- package/web/.next/static/chunks/{2bdw63_s9xtu_.js → 3r7im_t5_lx3c.js} +1 -1
- package/web/.next/static/chunks/{07m-_glbqp-37.js → 40hz9zl48_4m7.js} +1 -1
- package/web/.next/trace +1 -1
- package/web/.next/trace-build +1 -1
- package/web/.next/server/chunks/ssr/_19gyfcgdw7y22._.js +0 -57
- package/web/.next/server/chunks/ssr/_19gyfcgdw7y22._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_1whn-m68y_cvc._.js +0 -57
- package/web/.next/server/chunks/ssr/_1whn-m68y_cvc._.js.map +0 -1
- package/web/.next/server/chunks/ssr/web_features_0hnjtl8jg_qhq._.js +0 -3
- package/web/.next/server/chunks/ssr/web_features_1uzz6jypukhkx._.js +0 -3
- package/web/.next/server/chunks/ssr/web_features_bridge_0ldot9q_-xh4o._.js +0 -3
- package/web/.next/static/chunks/0aa4uzjjhyqka.js +0 -1
- package/web/.next/static/chunks/15n0w5axo2pz9.js +0 -1
- package/web/.next/static/chunks/3q96u74uhyutq.js +0 -1
- /package/web/.next/static/{LxcgnSJuKSN0rA6kJgwr6 → vVGWuotNHMnGhCAYWm1Z-}/_buildManifest.js +0 -0
- /package/web/.next/static/{LxcgnSJuKSN0rA6kJgwr6 → vVGWuotNHMnGhCAYWm1Z-}/_clientMiddlewareManifest.js +0 -0
- /package/web/.next/static/{LxcgnSJuKSN0rA6kJgwr6 → vVGWuotNHMnGhCAYWm1Z-}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70812,71136,96315,28623,e=>{var a=e.i(56420);let i={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};i.node;let t=(0,a.f)(i);e.s(["f",0,t],70812);let n={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};n.node;let s=(0,a.f)(n);e.s(["f",0,s],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let o=(0,a.f)(r);e.s(["f",0,o],96315);let l={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};l.node;let d=(0,a.f)(l);e.s(["f",0,d],28623)},51481,e=>{var a=e.i(75043);e.s(["f",()=>a.f])},59381,e=>{var a=e.i(56420);let i={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};i.node;let t=(0,a.f)(i);e.s(["f",0,t],59381)},63620,31714,e=>{var a=e.i(95187);let i=(0,a.createServerReference)("40bc7c96fce86cf783b7afa9934b227b20832bc648",a.callServer,void 0,a.findSourceMapURL,"turnRoute");e.s(["f",0,i],63620);var t=e.i(70812),n=e.i(51481),s=e.i(59381),r=e.i(71136),o=e.i(96315),l=e.i(56420);let d={name:"message-circle-question-mark",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["message-circle-question"]};d.node;let c=(0,l.f)(d);var u=e.i(49287),m=e.i(28623);let h={decide:{Icon:n.f,tone:"text-tone-active-fg"},do:{Icon:s.f,tone:"text-tone-waiting-fg"},"stay-aware":{Icon:t.f,tone:"text-muted-foreground"},"everything-else":{Icon:c,tone:"text-muted-foreground"}},p=u.f,f={slack:r.f,chat:m.f,"web-push":t.f,email:o.f};e.s(["x",0,p,"c",0,h,"U",0,f],31714)},31785,e=>{let a={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},i={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},t=["decide","do"],n="Bridge keeps every item.",s={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},o="Says only that something waits, with a link here.",l=`${o} Nothing is on until you turn it on.`,d="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,a,"k",0,i,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${d}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${d}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:a}){return e?a?{state:{label:"On",isOk:!0},description:o,action:"turnOff"}:{state:r,description:l,action:"turnOn"}:{state:s,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,a){return e.jobs.filter(({job:e,places:i})=>i.email!==a&&(!a||t.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:a}))},"r",0,function(e){let a=["Bridge",...e.map(e=>c[e])],i=a.at(-1),t=1===a.length?"Bridge":`${a.slice(0,-1).join(", ")} and ${String(i)}`;return`Shows in ${t}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:a,link:i}=e;return null===i?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${a} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${i.slackName} in ${a}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:t,place:s,isOn:r,waiting:o,isChatOn:l}=e,{name:d,item:c,items:u}=a[t],m=`${i[s]} is ${r?"on":"off"} for ${d}`;return r?"chat"===s?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[s]} shows ${u} that arrive from now on.${void 0===o||0===o?"":` The ${String(o)} already waiting ${1===o?"stays":"stay"} ${l?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:m,detail:"everything-else"===t&&"slack"===s?`Bots only: a bot ship's messages and replies to Slack still show there. ${n}`:n}},"B",0,function(e){if(!e.isOffered)return{state:s,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let a=e.browsers.find(({endpoint:a,isGone:i})=>a===e.ownEndpoint&&!i);return void 0===a?{state:r,description:l,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${a.browser}. ${o}`,action:"remove"}}])},41398,e=>{var a=e.i(43476),i=e.i(71645),t=e.i(63620),n=e.i(95187);let s=(0,n.createServerReference)("401795dbe980817c7febb7a9ef452e6d25af298560",n.callServer,void 0,n.findSourceMapURL,"unlinkSlack"),r=[[/Edg\//,"Edge"],[/Firefox\//,"Firefox"],[/Chrome\//,"Chrome"],[/Safari\//,"Safari"]],o=[[/iPhone|iPad/,"iOS"],[/Android/,"Android"],[/Mac OS X/,"macOS"],[/Windows/,"Windows"],[/Linux/,"Linux"]],l=(e,a)=>a.find(([a])=>a.test(e))?.[1],d=(0,n.createServerReference)("6009cf875fb9980a91d32c680f626ff2a624e4de0e",n.callServer,void 0,n.findSourceMapURL,"turnOffWebPush"),c=(0,n.createServerReference)("604799c2332415c201ae5795b6deef4ea921c69b40",n.callServer,void 0,n.findSourceMapURL,"turnOnWebPush"),u="/wake-worker.js";async function m(){let e=await navigator.serviceWorker.getRegistration(u);return await e?.pushManager.getSubscription()??null}async function h(e){let a;if(await Notification.requestPermission()!=="granted")return{isOk:!1,message:"Your browser did not allow notifications from this site: allow them, then turn web push on again"};let i=await navigator.serviceWorker.register(u);return await navigator.serviceWorker.ready,{isOk:!0,value:await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(a=atob(e.replaceAll("-","+").replaceAll("_","/")),Uint8Array.from(a,e=>e.charCodeAt(0)))})}}var p=e.i(31785),f=e.i(55070),g=e.i(63132),b=e.i(85595),x=e.i(56420);let k={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};k.node;let y=(0,x.f)(k);function v({place:e,name:i,Icon:t,card:n,children:s}){let r=n.state.isOk?b.f:y;return(0,a.jsxs)("div",{"data-testid":`bridge-place-${e}`,className:"flex flex-col gap-1.5 rounded-lg border border-border bg-card px-3 py-2.5",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2 font-medium",children:[(0,a.jsx)(t,{"aria-hidden":!0,className:"size-4 shrink-0"}),i,(0,a.jsxs)("span",{"data-testid":`bridge-place-${e}-state`,className:`ml-auto inline-flex items-center gap-1 text-caption font-medium ${n.state.isOk?"text-tone-ok-fg":"text-muted-foreground"}`,children:[(0,a.jsx)(r,{"aria-hidden":!0,className:"size-3.5"}),n.state.label]})]}),(0,a.jsx)("span",{className:"text-caption text-muted-foreground",children:n.description}),void 0===s?null:(0,a.jsx)("span",{className:"mt-auto flex flex-col items-start gap-1.5",children:s})]})}var w=e.i(31714);function j({fleetId:e,slackLink:t}){let[n,r]=(0,i.useTransition)(),[o,l]=(0,i.useState)(),d=(0,p.H)(t);return(0,a.jsxs)(v,{place:"slack",name:p.k.slack,Icon:w.U.slack,card:d,children:["link"===d.action?(0,a.jsx)("a",{href:`/slack/link?${new URLSearchParams({fleet:e}).toString()}`,"data-testid":"bridge-slack-link",className:"inline-flex h-7 items-center rounded-md bg-primary px-2.5 text-caption font-medium text-primary-foreground hover:bg-primary-hover",children:"Link Slack"}):null,"unlink"===d.action?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-slack-unlink",isPending:n,pendingLabel:"Unlinking...",onClick:()=>{l(void 0),r(async()=>{let a=await s(e);a.isOk||l(a.message)})},children:"Unlink"}):null,void 0===o?null:(0,a.jsx)(g.f,{message:o,isFailure:!0})]})}function N({fleetId:e,webPush:t}){let n=t?.browsers??[],{isTaken:s,ownEndpoint:u,working:b,failure:x,turnOn:k,remove:y}=function({fleetId:e,webPushKey:a}){let[t,n]=(0,i.useState)(!0),[s,u]=(0,i.useState)(),[p,f]=(0,i.useState)(),[g,b]=(0,i.useState)(),[,x]=(0,i.useTransition)();return(0,i.useEffect)(()=>{"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?m().then(e=>{u(e?.endpoint)}):n(!1)},[]),{isTaken:t,ownEndpoint:s,working:p,failure:g,turnOn:()=>{null!==a&&(f("on"),b(void 0),x(async()=>{try{var i;let t,n,s=await h(a);if(!s.isOk)return void b(s.message);let d=function(e,a){let{endpoint:i,keys:t}=e,n=t?.p256dh,s=t?.auth;return void 0===i||void 0===n||void 0===s?void 0:{endpoint:i,keys:{p256dh:n,auth:s},browser:a}}(s.value.toJSON(),(i=navigator.userAgent,t=l(i,r),n=l(i,o),void 0===t?"A browser":void 0===n?t:`${t} on ${n}`));if(void 0===d)return void b("Your browser gave no push subscription: try again");let m=await c(e,d);m.isOk?u(d.endpoint):b(m.message)}catch{b("Your browser could not turn web push on: try again")}finally{f(void 0)}}))},remove:a=>{f(a),b(void 0),x(async()=>{a===s&&(await (await m())?.unsubscribe(),u(void 0));let i=await d(e,a);f(void 0),i.isOk||b(i.message)})}}}({fleetId:e,webPushKey:t?.publicKey??null}),j=(0,p.B)({isOffered:void 0!==t&&null!==t.publicKey,isTaken:s,ownEndpoint:u,browsers:n}),O=n.filter(({endpoint:e})=>"remove"!==j.action||e!==u);return(0,a.jsxs)(v,{place:"web-push",name:p.k["web-push"],Icon:w.U["web-push"],card:j,children:["remove"===j.action&&void 0!==u?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-web-push-remove",isPending:b===u,pendingLabel:"Removing...",disabled:void 0!==b,onClick:()=>{y(u)},children:"Remove"}):null,"turnOn"===j.action?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-web-push-on",isPending:"on"===b,pendingLabel:"Turning on...",disabled:void 0!==b,onClick:k,children:"Turn on"}):null,O.map(({endpoint:e,browser:i,isGone:t})=>(0,a.jsxs)("span",{"data-testid":"bridge-web-push-browser",className:"flex w-full items-center gap-2 text-caption text-muted-foreground",children:[(0,a.jsx)("span",{className:"min-w-0 flex-1",children:t?`${i}: no longer takes wakes`:`Also on in ${i}`}),(0,a.jsx)("button",{type:"button","data-testid":"bridge-web-push-remove-other",disabled:void 0!==b,onClick:()=>{y(e)},className:"underline hover:text-foreground disabled:opacity-50",children:b===e?"Removing...":"Remove"})]},e)),void 0===x?null:(0,a.jsx)(g.f,{message:x,isFailure:!0})]})}function O({fleetId:e,routing:n}){let[s,r]=(0,i.useTransition)(),[o,l]=(0,i.useState)(),d=(0,p.t)({isOffered:n.offered.email,isOnForAnyJob:n.jobs.some(({places:e})=>e.email)});return(0,a.jsxs)(v,{place:"email",name:p.k.email,Icon:w.U.email,card:d,children:["turnOn"===d.action||"turnOff"===d.action?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-email-turn",isPending:s,pendingLabel:"turnOn"===d.action?"Turning on...":"Turning off...",onClick:()=>{var a;a="turnOn"===d.action,l(void 0),r(async()=>{for(let i of(0,p.T)(n,a)){let a=await (0,t.f)({fleet:e,...i});if(!a.isOk)return void l(a.message)}})},children:"turnOn"===d.action?"Turn on":"Turn off"}):null,void 0===o?null:(0,a.jsx)(g.f,{message:o,isFailure:!0})]})}e.s(["PlacesPanel",0,function({fleetId:e,routing:i,slackLink:t,chats:n,webPush:s}){return(0,a.jsxs)("section",{"aria-label":"The places",className:"grid gap-2.5 sm:grid-cols-2 lg:grid-cols-4",children:[(0,a.jsx)(j,{fleetId:e,slackLink:t}),(0,a.jsx)(v,{place:"chat",name:p.k.chat,Icon:w.U.chat,card:(0,p.g)(n)}),(0,a.jsx)(N,{fleetId:e,webPush:s}),(0,a.jsx)(O,{fleetId:e,routing:i})]})}],41398)},85678,e=>{var a=e.i(43476),i=e.i(85595),t=e.i(71645),n=e.i(63620),s=e.i(31785),r=e.i(63132),o=e.i(31714);function l({isOn:e,label:i,isDisabled:t,isBusy:n=!1,aside:s,testId:r,onTurn:o}){return(0,a.jsxs)("span",{className:"inline-flex items-center gap-2.5",children:[(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":i,"aria-busy":n,disabled:t,"data-testid":r,onClick:o,className:"group inline-flex h-4 w-7 shrink-0 items-center rounded-full bg-input p-0.5 aria-checked:bg-primary disabled:cursor-not-allowed disabled:opacity-50",children:(0,a.jsx)("span",{"aria-hidden":!0,className:"size-3 rounded-full bg-card shadow-sm transition-transform group-aria-checked:translate-x-3"})}),void 0===s?null:(0,a.jsx)("span",{className:"text-caption text-muted-foreground",children:s})]})}let d="sm:grid sm:grid-cols-[1.6fr_repeat(5,1fr)] sm:items-center sm:gap-3";function c({toast:e}){return(0,a.jsxs)("div",{role:"status","data-testid":"bridge-routing-toast",className:"flex max-w-[720px] gap-3 rounded-lg border border-border bg-popover py-3.5 pr-3.5 pl-4 text-popover-foreground shadow-lg",children:[(0,a.jsx)(i.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0 text-tone-ok-fg"}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.jsx)("span",{className:"font-medium",children:e.title}),(0,a.jsx)("span",{className:"text-caption text-muted-foreground",children:e.detail})]})]})}function u({name:e,children:i}){return(0,a.jsxs)("span",{className:"flex items-center justify-between sm:block",children:[(0,a.jsx)("span",{className:"sm:hidden",children:e}),i]})}e.s(["RoutingPanel",0,function({fleetId:e,routing:i,isSlackLinked:m,waitingByJob:h}){let[p,f]=(0,t.useTransition)(),[g,b]=(0,t.useState)(),[x,k]=(0,t.useState)(),[y,v]=(0,t.useState)();return(0,a.jsxs)("section",{className:"grid gap-3","aria-label":"Per job",children:[(0,a.jsxs)("div",{className:"grid gap-3 sm:gap-0 sm:overflow-hidden sm:rounded-lg sm:border sm:border-border sm:bg-card",children:[(0,a.jsxs)("div",{"aria-hidden":!0,className:`hidden min-h-8 bg-muted px-4 text-caption font-medium text-muted-foreground ${d}`,children:[(0,a.jsx)("span",{children:"Job"}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)(o.x,{className:"size-3.5"}),"Bridge"]}),s.N.map(e=>{let i=o.U[e];return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)(i,{className:"size-3.5"}),s.k[e]]},e)})]}),i.jobs.map(({job:t,places:r})=>{let{Icon:c,tone:x}=o.c[t];return(0,a.jsxs)("div",{"data-testid":"bridge-routing-job",className:`flex flex-col gap-2 rounded-lg border border-border bg-card p-3 sm:min-h-[52px] sm:rounded-none sm:border-0 sm:border-t sm:px-4 sm:py-1.5 ${d}`,children:[(0,a.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-semibold sm:font-medium",children:[(0,a.jsx)(c,{"aria-hidden":!0,className:`size-4 shrink-0 ${x}`}),s.I[t].name]}),(0,a.jsx)("span",{className:"text-caption text-muted-foreground max-sm:hidden",children:s.I[t].holds})]}),(0,a.jsx)(u,{name:"Bridge",children:(0,a.jsx)(l,{isOn:!0,label:`Bridge for ${s.I[t].name}`,isDisabled:!0,aside:"Always",testId:`bridge-routing-${t}-bridge`})}),s.N.map(o=>{let d=r[o],c=`${t}-${o}`;return(0,a.jsx)(u,{name:s.k[o],children:(0,a.jsx)(l,{isOn:d,label:`${s.k[o]} for ${s.I[t].name}`,isDisabled:p||!d&&(!i.offered[o]||"slack"===o&&!m),isBusy:p&&g===c,..."everything-else"===t&&"slack"===o&&!d?{aside:"Bots only"}:{},testId:`bridge-routing-${c}`,onTurn:()=>{var a;a={job:t,place:o,isOn:!d,isChatOn:r.chat},k(void 0),v(void 0),b(`${a.job}-${a.place}`),f(async()=>{let{isChatOn:i,...t}=a,r=await (0,n.f)({fleet:e,...t});r.isOk?k((0,s.b)({...t,waiting:h[t.job],isChatOn:i})):v(r.message)})}})},o)})]},t)})]}),void 0===x?null:(0,a.jsx)(c,{toast:x}),void 0===y?null:(0,a.jsx)(r.f,{message:y,isFailure:!0}),(0,a.jsx)("p",{className:"text-caption text-muted-foreground max-sm:hidden",children:"While a Bridge page is open in focus, web push and email do not wake you. Slack still posts: you turned it on, and the views stay in step."})]})}],85678)},55070,e=>{var a=e.i(43476);let i={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},t={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:n,variant:s="secondary",size:r="regular",children:o,className:l="",disabled:d,...c}){return(0,a.jsx)("button",{...c,disabled:!0===d||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${t[r]} ${i[s]} ${l}`,children:e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),n]}):o})},"o",0,t])},63132,e=>{var a=e.i(43476);e.s(["f",0,function({message:e,isFailure:i}){return i?(0,a.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,a.jsx)("p",{role:"status","data-testid":"bridge-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,70812,71136,96315,28623,e=>{var a=e.i(56420);let i={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};i.node;let t=(0,a.f)(i);e.s(["f",0,t],70812);let n={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};n.node;let s=(0,a.f)(n);e.s(["f",0,s],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let o=(0,a.f)(r);e.s(["f",0,o],96315);let l={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};l.node;let d=(0,a.f)(l);e.s(["f",0,d],28623)},51481,e=>{var a=e.i(75043);e.s(["f",()=>a.f])},59381,e=>{var a=e.i(56420);let i={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};i.node;let t=(0,a.f)(i);e.s(["f",0,t],59381)},23254,31714,e=>{var a=e.i(95187);let i=(0,a.createServerReference)("405ac46a4560b927736870155c56d4790ab18543bd",a.callServer,void 0,a.findSourceMapURL,"turnRoute");e.s(["f",0,i],23254);var t=e.i(70812),n=e.i(51481),s=e.i(59381),r=e.i(71136),o=e.i(96315),l=e.i(56420);let d={name:"message-circle-question-mark",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["message-circle-question"]};d.node;let c=(0,l.f)(d);var u=e.i(49287),m=e.i(28623);let h={decide:{Icon:n.f,tone:"text-tone-active-fg"},do:{Icon:s.f,tone:"text-tone-waiting-fg"},"stay-aware":{Icon:t.f,tone:"text-muted-foreground"},"everything-else":{Icon:c,tone:"text-muted-foreground"}},p=u.f,f={slack:r.f,chat:m.f,"web-push":t.f,email:o.f};e.s(["x",0,p,"c",0,h,"U",0,f],31714)},31785,e=>{let a={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},i={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},t=["decide","do"],n="Bridge keeps every item.",s={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},o="Says only that something waits, with a link here.",l=`${o} Nothing is on until you turn it on.`,d="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,a,"k",0,i,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${d}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${d}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:a}){return e?a?{state:{label:"On",isOk:!0},description:o,action:"turnOff"}:{state:r,description:l,action:"turnOn"}:{state:s,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,a){return e.jobs.filter(({job:e,places:i})=>i.email!==a&&(!a||t.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:a}))},"r",0,function(e){let a=["Bridge",...e.map(e=>c[e])],i=a.at(-1),t=1===a.length?"Bridge":`${a.slice(0,-1).join(", ")} and ${String(i)}`;return`Shows in ${t}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:a,link:i}=e;return null===i?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${a} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${i.slackName} in ${a}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:t,place:s,isOn:r,waiting:o,isChatOn:l}=e,{name:d,item:c,items:u}=a[t],m=`${i[s]} is ${r?"on":"off"} for ${d}`;return r?"chat"===s?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[s]} shows ${u} that arrive from now on.${void 0===o||0===o?"":` The ${String(o)} already waiting ${1===o?"stays":"stay"} ${l?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:m,detail:"everything-else"===t&&"slack"===s?`Bots only: a bot ship's messages and replies to Slack still show there. ${n}`:n}},"B",0,function(e){if(!e.isOffered)return{state:s,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let a=e.browsers.find(({endpoint:a,isGone:i})=>a===e.ownEndpoint&&!i);return void 0===a?{state:r,description:l,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${a.browser}. ${o}`,action:"remove"}}])},41398,e=>{var a=e.i(43476),i=e.i(71645),t=e.i(23254),n=e.i(95187);let s=(0,n.createServerReference)("4020c1fc8cb82c75c38df24fb9199a12e3b1949c70",n.callServer,void 0,n.findSourceMapURL,"unlinkSlack"),r=[[/Edg\//,"Edge"],[/Firefox\//,"Firefox"],[/Chrome\//,"Chrome"],[/Safari\//,"Safari"]],o=[[/iPhone|iPad/,"iOS"],[/Android/,"Android"],[/Mac OS X/,"macOS"],[/Windows/,"Windows"],[/Linux/,"Linux"]],l=(e,a)=>a.find(([a])=>a.test(e))?.[1],d=(0,n.createServerReference)("60f60da8efe172d849607ffc97ccda43a09a8f42b9",n.callServer,void 0,n.findSourceMapURL,"turnOffWebPush"),c=(0,n.createServerReference)("60cb33148fea563caed0616680d34d77631b80e0fb",n.callServer,void 0,n.findSourceMapURL,"turnOnWebPush"),u="/wake-worker.js";async function m(){let e=await navigator.serviceWorker.getRegistration(u);return await e?.pushManager.getSubscription()??null}async function h(e){let a;if(await Notification.requestPermission()!=="granted")return{isOk:!1,message:"Your browser did not allow notifications from this site: allow them, then turn web push on again"};let i=await navigator.serviceWorker.register(u);return await navigator.serviceWorker.ready,{isOk:!0,value:await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(a=atob(e.replaceAll("-","+").replaceAll("_","/")),Uint8Array.from(a,e=>e.charCodeAt(0)))})}}var p=e.i(31785),f=e.i(55070),g=e.i(63132),b=e.i(85595),x=e.i(56420);let k={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};k.node;let y=(0,x.f)(k);function v({place:e,name:i,Icon:t,card:n,children:s}){let r=n.state.isOk?b.f:y;return(0,a.jsxs)("div",{"data-testid":`bridge-place-${e}`,className:"flex flex-col gap-1.5 rounded-lg border border-border bg-card px-3 py-2.5",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2 font-medium",children:[(0,a.jsx)(t,{"aria-hidden":!0,className:"size-4 shrink-0"}),i,(0,a.jsxs)("span",{"data-testid":`bridge-place-${e}-state`,className:`ml-auto inline-flex items-center gap-1 text-caption font-medium ${n.state.isOk?"text-tone-ok-fg":"text-muted-foreground"}`,children:[(0,a.jsx)(r,{"aria-hidden":!0,className:"size-3.5"}),n.state.label]})]}),(0,a.jsx)("span",{className:"text-caption text-muted-foreground",children:n.description}),void 0===s?null:(0,a.jsx)("span",{className:"mt-auto flex flex-col items-start gap-1.5",children:s})]})}var w=e.i(31714);function j({fleetId:e,slackLink:t}){let[n,r]=(0,i.useTransition)(),[o,l]=(0,i.useState)(),d=(0,p.H)(t);return(0,a.jsxs)(v,{place:"slack",name:p.k.slack,Icon:w.U.slack,card:d,children:["link"===d.action?(0,a.jsx)("a",{href:`/slack/link?${new URLSearchParams({fleet:e}).toString()}`,"data-testid":"bridge-slack-link",className:"inline-flex h-7 items-center rounded-md bg-primary px-2.5 text-caption font-medium text-primary-foreground hover:bg-primary-hover",children:"Link Slack"}):null,"unlink"===d.action?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-slack-unlink",isPending:n,pendingLabel:"Unlinking...",onClick:()=>{l(void 0),r(async()=>{let a=await s(e);a.isOk||l(a.message)})},children:"Unlink"}):null,void 0===o?null:(0,a.jsx)(g.f,{message:o,isFailure:!0})]})}function N({fleetId:e,webPush:t}){let n=t?.browsers??[],{isTaken:s,ownEndpoint:u,working:b,failure:x,turnOn:k,remove:y}=function({fleetId:e,webPushKey:a}){let[t,n]=(0,i.useState)(!0),[s,u]=(0,i.useState)(),[p,f]=(0,i.useState)(),[g,b]=(0,i.useState)(),[,x]=(0,i.useTransition)();return(0,i.useEffect)(()=>{"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?m().then(e=>{u(e?.endpoint)}):n(!1)},[]),{isTaken:t,ownEndpoint:s,working:p,failure:g,turnOn:()=>{null!==a&&(f("on"),b(void 0),x(async()=>{try{var i;let t,n,s=await h(a);if(!s.isOk)return void b(s.message);let d=function(e,a){let{endpoint:i,keys:t}=e,n=t?.p256dh,s=t?.auth;return void 0===i||void 0===n||void 0===s?void 0:{endpoint:i,keys:{p256dh:n,auth:s},browser:a}}(s.value.toJSON(),(i=navigator.userAgent,t=l(i,r),n=l(i,o),void 0===t?"A browser":void 0===n?t:`${t} on ${n}`));if(void 0===d)return void b("Your browser gave no push subscription: try again");let m=await c(e,d);m.isOk?u(d.endpoint):b(m.message)}catch{b("Your browser could not turn web push on: try again")}finally{f(void 0)}}))},remove:a=>{f(a),b(void 0),x(async()=>{a===s&&(await (await m())?.unsubscribe(),u(void 0));let i=await d(e,a);f(void 0),i.isOk||b(i.message)})}}}({fleetId:e,webPushKey:t?.publicKey??null}),j=(0,p.B)({isOffered:void 0!==t&&null!==t.publicKey,isTaken:s,ownEndpoint:u,browsers:n}),O=n.filter(({endpoint:e})=>"remove"!==j.action||e!==u);return(0,a.jsxs)(v,{place:"web-push",name:p.k["web-push"],Icon:w.U["web-push"],card:j,children:["remove"===j.action&&void 0!==u?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-web-push-remove",isPending:b===u,pendingLabel:"Removing...",disabled:void 0!==b,onClick:()=>{y(u)},children:"Remove"}):null,"turnOn"===j.action?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-web-push-on",isPending:"on"===b,pendingLabel:"Turning on...",disabled:void 0!==b,onClick:k,children:"Turn on"}):null,O.map(({endpoint:e,browser:i,isGone:t})=>(0,a.jsxs)("span",{"data-testid":"bridge-web-push-browser",className:"flex w-full items-center gap-2 text-caption text-muted-foreground",children:[(0,a.jsx)("span",{className:"min-w-0 flex-1",children:t?`${i}: no longer takes wakes`:`Also on in ${i}`}),(0,a.jsx)("button",{type:"button","data-testid":"bridge-web-push-remove-other",disabled:void 0!==b,onClick:()=>{y(e)},className:"underline hover:text-foreground disabled:opacity-50",children:b===e?"Removing...":"Remove"})]},e)),void 0===x?null:(0,a.jsx)(g.f,{message:x,isFailure:!0})]})}function O({fleetId:e,routing:n}){let[s,r]=(0,i.useTransition)(),[o,l]=(0,i.useState)(),d=(0,p.t)({isOffered:n.offered.email,isOnForAnyJob:n.jobs.some(({places:e})=>e.email)});return(0,a.jsxs)(v,{place:"email",name:p.k.email,Icon:w.U.email,card:d,children:["turnOn"===d.action||"turnOff"===d.action?(0,a.jsx)(f.i,{size:"xs","data-testid":"bridge-email-turn",isPending:s,pendingLabel:"turnOn"===d.action?"Turning on...":"Turning off...",onClick:()=>{var a;a="turnOn"===d.action,l(void 0),r(async()=>{for(let i of(0,p.T)(n,a)){let a=await (0,t.f)({fleet:e,...i});if(!a.isOk)return void l(a.message)}})},children:"turnOn"===d.action?"Turn on":"Turn off"}):null,void 0===o?null:(0,a.jsx)(g.f,{message:o,isFailure:!0})]})}e.s(["PlacesPanel",0,function({fleetId:e,routing:i,slackLink:t,chats:n,webPush:s}){return(0,a.jsxs)("section",{"aria-label":"The places",className:"grid gap-2.5 sm:grid-cols-2 lg:grid-cols-4",children:[(0,a.jsx)(j,{fleetId:e,slackLink:t}),(0,a.jsx)(v,{place:"chat",name:p.k.chat,Icon:w.U.chat,card:(0,p.g)(n)}),(0,a.jsx)(N,{fleetId:e,webPush:s}),(0,a.jsx)(O,{fleetId:e,routing:i})]})}],41398)},85678,e=>{var a=e.i(43476),i=e.i(85595),t=e.i(71645),n=e.i(23254),s=e.i(31785),r=e.i(63132),o=e.i(31714);function l({isOn:e,label:i,isDisabled:t,isBusy:n=!1,aside:s,testId:r,onTurn:o}){return(0,a.jsxs)("span",{className:"inline-flex items-center gap-2.5",children:[(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":i,"aria-busy":n,disabled:t,"data-testid":r,onClick:o,className:"group inline-flex h-4 w-7 shrink-0 items-center rounded-full bg-input p-0.5 aria-checked:bg-primary disabled:cursor-not-allowed disabled:opacity-50",children:(0,a.jsx)("span",{"aria-hidden":!0,className:"size-3 rounded-full bg-card shadow-sm transition-transform group-aria-checked:translate-x-3"})}),void 0===s?null:(0,a.jsx)("span",{className:"text-caption text-muted-foreground",children:s})]})}let d="sm:grid sm:grid-cols-[1.6fr_repeat(5,1fr)] sm:items-center sm:gap-3";function c({toast:e}){return(0,a.jsxs)("div",{role:"status","data-testid":"bridge-routing-toast",className:"flex max-w-[720px] gap-3 rounded-lg border border-border bg-popover py-3.5 pr-3.5 pl-4 text-popover-foreground shadow-lg",children:[(0,a.jsx)(i.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0 text-tone-ok-fg"}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.jsx)("span",{className:"font-medium",children:e.title}),(0,a.jsx)("span",{className:"text-caption text-muted-foreground",children:e.detail})]})]})}function u({name:e,children:i}){return(0,a.jsxs)("span",{className:"flex items-center justify-between sm:block",children:[(0,a.jsx)("span",{className:"sm:hidden",children:e}),i]})}e.s(["RoutingPanel",0,function({fleetId:e,routing:i,isSlackLinked:m,waitingByJob:h}){let[p,f]=(0,t.useTransition)(),[g,b]=(0,t.useState)(),[x,k]=(0,t.useState)(),[y,v]=(0,t.useState)();return(0,a.jsxs)("section",{className:"grid gap-3","aria-label":"Per job",children:[(0,a.jsxs)("div",{className:"grid gap-3 sm:gap-0 sm:overflow-hidden sm:rounded-lg sm:border sm:border-border sm:bg-card",children:[(0,a.jsxs)("div",{"aria-hidden":!0,className:`hidden min-h-8 bg-muted px-4 text-caption font-medium text-muted-foreground ${d}`,children:[(0,a.jsx)("span",{children:"Job"}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)(o.x,{className:"size-3.5"}),"Bridge"]}),s.N.map(e=>{let i=o.U[e];return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)(i,{className:"size-3.5"}),s.k[e]]},e)})]}),i.jobs.map(({job:t,places:r})=>{let{Icon:c,tone:x}=o.c[t];return(0,a.jsxs)("div",{"data-testid":"bridge-routing-job",className:`flex flex-col gap-2 rounded-lg border border-border bg-card p-3 sm:min-h-[52px] sm:rounded-none sm:border-0 sm:border-t sm:px-4 sm:py-1.5 ${d}`,children:[(0,a.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-semibold sm:font-medium",children:[(0,a.jsx)(c,{"aria-hidden":!0,className:`size-4 shrink-0 ${x}`}),s.I[t].name]}),(0,a.jsx)("span",{className:"text-caption text-muted-foreground max-sm:hidden",children:s.I[t].holds})]}),(0,a.jsx)(u,{name:"Bridge",children:(0,a.jsx)(l,{isOn:!0,label:`Bridge for ${s.I[t].name}`,isDisabled:!0,aside:"Always",testId:`bridge-routing-${t}-bridge`})}),s.N.map(o=>{let d=r[o],c=`${t}-${o}`;return(0,a.jsx)(u,{name:s.k[o],children:(0,a.jsx)(l,{isOn:d,label:`${s.k[o]} for ${s.I[t].name}`,isDisabled:p||!d&&(!i.offered[o]||"slack"===o&&!m),isBusy:p&&g===c,..."everything-else"===t&&"slack"===o&&!d?{aside:"Bots only"}:{},testId:`bridge-routing-${c}`,onTurn:()=>{var a;a={job:t,place:o,isOn:!d,isChatOn:r.chat},k(void 0),v(void 0),b(`${a.job}-${a.place}`),f(async()=>{let{isChatOn:i,...t}=a,r=await (0,n.f)({fleet:e,...t});r.isOk?k((0,s.b)({...t,waiting:h[t.job],isChatOn:i})):v(r.message)})}})},o)})]},t)})]}),void 0===x?null:(0,a.jsx)(c,{toast:x}),void 0===y?null:(0,a.jsx)(r.f,{message:y,isFailure:!0}),(0,a.jsx)("p",{className:"text-caption text-muted-foreground max-sm:hidden",children:"While a Bridge page is open in focus, web push and email do not wake you. Slack still posts: you turned it on, and the views stay in step."})]})}],85678)},55070,e=>{var a=e.i(43476);let i={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},t={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:n,variant:s="secondary",size:r="regular",children:o,className:l="",disabled:d,...c}){return(0,a.jsx)("button",{...c,disabled:!0===d||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${t[r]} ${i[s]} ${l}`,children:e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),n]}):o})},"o",0,t])},63132,e=>{var a=e.i(43476);e.s(["f",0,function({message:e,isFailure:i}){return i?(0,a.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,a.jsx)("p",{role:"status","data-testid":"bridge-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,37134,45017,47125,10030,e=>{var n=e.i(24189);e.s(["f",0,n],37134),e.s(["f",0,n],45017),e.s(["f",0,n],47125),e.s(["f",0,n],10030)},27921,e=>{var n=e.i(43476),t=e.i(71645),s=e.i(95187);let a=(0,s.createServerReference)("60e472f6b698047c65a8be4cfe981e2eec45441a61",s.callServer,void 0,s.findSourceMapURL,"approveServer"),r=(0,s.createServerReference)("60863cecd00fe7ed6ccaaa0b57716b1b2a714cf179",s.callServer,void 0,s.findSourceMapURL,"checkServer");var i=e.i(28008),d=e.i(88374),l=e.i(62052),o=e.i(30402),c=e.i(58107);let u=["Address","Check","Owner"],m=["Address","Owner","Sign in"];var x=e.i(94984);function p({refusal:e}){return void 0===e?null:(0,n.jsx)(x.f,{state:{kind:"refused",message:e}})}function h({names:e,at:t}){return(0,n.jsx)("ol",{className:"flex gap-4 text-meta",children:e.map((e,s)=>(0,n.jsxs)("li",{"aria-current":s===t?"step":void 0,className:s<=t?"font-semibold":"text-muted-foreground",children:[s+1," ",e]},e))})}function f({state:e,action:s,fleetId:a}){let[r,x]=(0,t.useState)((0,d.G)(e.fields.credentialKind??"")),g=r===d.m.kind;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:r===d.m.kind?m:u,at:0}),(0,n.jsxs)("form",{action:s,className:`${o.E} grid gap-3.5`,"data-testid":"add-server-address",children:[(0,n.jsx)("input",{type:"hidden",name:i.H,value:a}),(0,n.jsx)(p,{refusal:e.refusal}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Streamable HTTP address"}),(0,n.jsx)("input",{className:o.w,type:"url",name:"url",defaultValue:e.fields.url??"",placeholder:"https://mcp.example.com/mcp",required:!0})]}),(0,n.jsx)(l.f,{legend:"The server's credential",fields:e.fields,noneHelp:"The gateway sends no credential: for a server reached only on a private network.",canEachPersonSignIn:!0,onKindChange:x}),(0,n.jsx)("div",{children:(0,n.jsx)(c.f,{pending:g?"Next…":"Checking the server…",testId:"add-server-check",children:g?"Next":"Check the server"})})]})]})}var g=e.i(65818),j=e.i(25621),b=e.i(97e3);function v({tool:e,control:t,testId:s}){let{name:a,description:r,isReadOnly:i,isNew:d=!1}=e,l=void 0===r?"":r.split("\n").map(e=>e.trim()).find(e=>""!==e)??"",o=void 0!==r&&r.trim()!==l;return(0,n.jsxs)("li",{className:"grid gap-1 border-b border-border py-2 last:border-b-0","data-testid":s,children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[t,(0,n.jsx)("span",{className:"font-mono",children:a}),i?(0,n.jsx)(b.E,{children:"reads only"}):null,d?(0,n.jsx)(b.T,{tone:"attention",label:"New"}):null]}),""===l?null:o?(0,n.jsxs)("details",{className:"text-muted-foreground",children:[(0,n.jsx)("summary",{className:"cursor-pointer",children:l}),(0,n.jsx)("p",{className:"mt-1 whitespace-pre-line",children:r})]}):(0,n.jsx)("p",{className:"text-muted-foreground",children:l})]})}function N({tools:e,canSwitch:s}){let[a,r]=(0,t.useState)(new Set),i=e.length-a.size;return(0,n.jsxs)("section",{className:"grid gap-2","data-testid":"add-server-tools",children:[(0,n.jsxs)("h2",{className:"flex flex-wrap justify-between gap-2 text-section font-semibold",children:[(0,n.jsxs)("span",{children:["The server answers: ",e.length," ",1===e.length?"tool":"tools"]}),s?(0,n.jsxs)("span",{role:"status",className:"font-normal text-muted-foreground","data-testid":"add-server-tools-on",children:[i," of ",e.length," on"]}):null]}),(0,n.jsx)("p",{className:"text-muted-foreground",children:s?"The fleet may call only the tools switched on. A tool the server adds later starts off.":"Switching tools needs gateway:approve: every tool starts on, and an approver switches them on its page."}),(0,n.jsx)("ul",{className:"grid",children:e.map(e=>{let t=!a.has(e.name);return(0,n.jsx)(v,{tool:e,testId:"add-server-tool",control:s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"hidden",name:"toolShown",value:e.name}),t?(0,n.jsx)("input",{type:"hidden",name:"toolOn",value:e.name}):null,(0,n.jsx)(j.f,{isOn:t,label:e.name,onClick:()=>{var n;n=e.name,r(e=>{let t=new Set(e);return t.delete(n)||t.add(n),t})}})]}):null},e.name)})})]})}let w=["url","credentialKind","token","clientId","clientSecret","issuer","scope"];function y({state:e,refused:s,action:a,onBack:r,fleetId:d,canSwitchTools:l}){let x,f="refused"===s.kind&&s.requestId===e.requestId,j=f?s.fields:e.fields,b=j.url??"",[v,k]=(0,t.useState)(j.name??function(e){if(!URL.canParse(e))return"";let{hostname:n}=new URL(e);return/^\d+(\.\d+){3}$/.test(n)||n.startsWith("[")?"":(n.split(".").filter(e=>"mcp"!==e&&"www"!==e)[0]??"").toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,"")}(b)),S=e.tools;return(0,n.jsxs)(n.Fragment,{children:[null===S?(0,n.jsx)(h,{names:m,at:1}):(0,n.jsx)(h,{names:u,at:2}),(0,n.jsxs)("form",{action:a,className:`${o.E} grid gap-3.5`,"data-testid":"add-server-owner",children:[null===S?null:(0,n.jsx)(N,{tools:S,canSwitch:l}),(0,n.jsx)("h2",{className:"text-section font-semibold",children:"Its owner"}),(0,n.jsx)(p,{refusal:f?s.message:void 0}),(0,n.jsx)("input",{type:"hidden",name:i.H,value:d}),(0,n.jsx)("input",{type:"hidden",name:"requestId",value:e.requestId}),w.map(e=>(0,n.jsx)("input",{type:"hidden",name:e,value:j[e]??""},e)),(0,n.jsx)("p",{className:"font-mono text-muted-foreground",children:b}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Proxy ship's name"}),(0,n.jsx)("input",{className:o.w,type:"text",name:"name",value:v,onChange:e=>{k(e.target.value)},required:!0})]}),(0,n.jsx)(g.f,{choices:e.owners,current:e.owners.find(e=>e.shipId===j.ownerShipId)??null,help:"A person ship or argo. It answers for this server."}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Calls at once"}),(0,n.jsx)("input",{className:o.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:j.concurrencyLimit??"4"})]}),null===S?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Its tools show once someone signs in."}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(c.f,{pending:null===S?"Checking the sign-in…":"Adding…",testId:"add-server-approve",children:""===(x=v.trim())?"Add as outside party":x.length>20?`Add ${x.slice(0,20)}…`:`Add ${x}`}),(0,n.jsx)("button",{type:"button",className:o.x.secondary,onClick:r,children:"Back to the address"})]})]})]})}var k=e.i(65894),S=e.i(31831),I=e.i(16293);function C({fleetId:e,name:s}){let[a,r]=(0,t.useActionState)(I.f,i.Q);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:m,at:2}),(0,n.jsxs)("form",{action:r,className:`${o.E} grid gap-3.5`,"data-testid":"add-server-sign-in",children:[(0,n.jsx)(x.f,{state:{kind:"done",message:`${s} is added.`}}),(0,n.jsx)(x.f,{state:a}),(0,n.jsx)("input",{type:"hidden",name:i.H,value:e}),(0,n.jsx)("input",{type:"hidden",name:"name",value:s}),(0,n.jsxs)("p",{children:["Sign in to ",s," for yourself. Its tools show after the first sign-in."]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(c.f,{pending:`Opening ${s}…`,testId:"add-server-sign-in-start",children:["Sign in to ",s]}),(0,n.jsx)("a",{href:(0,k.f)((0,S.N)(s),e),className:o.x.secondary,children:"Later"})]})]})]})}e.s(["AddServer",0,function({fleetId:e,canSwitchTools:s}){let[i,d]=(0,t.useActionState)(r,{step:"address",fields:{}}),[l,o]=(0,t.useActionState)(a,{kind:"idle"}),[c,u]=(0,t.useState)(void 0),m="owner"===i.step&&c!==i.requestId?i:void 0;return(0,n.jsxs)("div",{className:"grid max-w-160 gap-3",children:[(0,n.jsx)("h1",{className:"text-heading-touch font-semibold max-sm:sr-only",children:"Add MCP server"}),"added"===l.kind?(0,n.jsx)(C,{fleetId:e,name:l.name}):void 0===m?(0,n.jsx)(f,{state:i,action:d,fleetId:e}):(0,n.jsx)(y,{state:m,refused:l,action:o,onBack:()=>{u(m.requestId)},fleetId:e,canSwitchTools:s})]})}],27921)},55070,e=>{var n=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",ghost:"text-foreground hover:bg-accent"},s={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:a,variant:r="secondary",size:i="regular",children:d,className:l="",disabled:o,...c}){return(0,n.jsx)("button",{...c,disabled:!0===o||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${s[i]} ${t[r]} ${l}`,children:e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):d})},"o",0,s])},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let n=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],t={kind:"personSignIn",label:"Each person signs in"},s=[...n,t];e.s(["a",0,s,"x",0,n,"m",0,t,"G",0,function(e){return s.find(({kind:n})=>n===e)?.kind??"bearer"},"C",0,function(e){return n.find(({kind:n})=>n===e)?.kind??"bearer"}])},62052,e=>{var n=e.i(43476),t=e.i(16327),s=e.i(71645),a=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:i,noneHelp:d,canEachPersonSignIn:l=!1,onKindChange:o}){let c=l?a.G:a.C,[u,m]=(0,s.useState)(c(i.credentialKind??""));return(0,n.jsxs)("fieldset",{className:"grid gap-3",children:[(0,n.jsx)("legend",{className:"font-medium",children:e}),(0,n.jsxs)("span",{className:"relative",children:[(0,n.jsx)("select",{className:r.D,"aria-label":e,name:"credentialKind",value:u,onChange:e=>{let n=c(e.target.value);m(n),o?.(n)},children:(l?a.a:a.x).map(({kind:e,label:t})=>(0,n.jsx)("option",{value:e,children:t},e))}),(0,n.jsx)(t.f,{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground"})]}),"clientCredentials"===u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client id"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:i.clientId??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client secret"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Issuer"}),(0,n.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:i.issuer??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Scope"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:i.scope??""})]})]}):"bearer"===u?(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Bearer token"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"token"})]}):u===a.m.kind?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Each person signs in for themselves. A ship calls under its owner's sign-in."}):(0,n.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},94984,e=>{var n=e.i(43476);e.s(["f",0,function({state:e,testId:t}){switch(e.kind){case"idle":return null;case"done":return(0,n.jsx)("p",{role:"status","data-testid":t,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,n.jsx)("p",{role:"alert","data-testid":t,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 n=e.i(43476),t=e.i(30402);e.s(["f",0,function({choices:e,current:s,help:a,refusal:r}){let i=null===s||e.some(e=>e.shipId===s.shipId)?e:[s,...e];return(0,n.jsxs)("label",{className:t.z,children:[(0,n.jsx)("span",{children:"Owner"}),(0,n.jsxs)("select",{className:t.w,name:"ownerShipId",defaultValue:s?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===s?(0,n.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,i.map(e=>(0,n.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,n.jsx)("span",{className:"text-muted-foreground",children:r??a})]})}])},58107,e=>{var n=e.i(43476),t=e.i(74080),s=e.i(30402);e.s(["f",0,function({children:e,pending:a,kind:r="primary",testId:i}){let d=(0,t.useFormStatus)();return(0,n.jsx)("button",{type:"submit",className:s.x[r],disabled:d.pending,"aria-busy":d.pending,"data-testid":i,children:d.pending?a:e})}])},97e3,e=>{var n=e.i(43476);let t={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},s={waiting:"text-tone-waiting-fg",active:"text-tone-active-fg",ok:"text-tone-ok-fg",attention:"rounded-sm border border-tone-attention-border bg-tone-attention-bg px-1.5 text-tone-attention-fg",ended:"text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:a,look:r="pill",icon:i}){return(0,n.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-caption ${"pill"===r?`rounded-full border px-2 ${t[e]}`:`h-5.5 px-0.5 font-medium ${s[e]}`}`,children:[i,a]})},"E",0,function({children:e,isMono:t=!1}){return(0,n.jsx)("span",{className:`inline-flex h-5.5 items-center rounded-sm border border-border px-1.5 text-caption font-medium ${t?"font-mono":""}`,children:e})}])}])})();
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37134,45017,47125,10030,e=>{var n=e.i(24189);e.s(["f",0,n],37134),e.s(["f",0,n],45017),e.s(["f",0,n],47125),e.s(["f",0,n],10030)},27921,e=>{var n=e.i(43476),t=e.i(71645),s=e.i(95187);let a=(0,s.createServerReference)("6072fb1c623d2f527ff2ce4829a2430ae9a23ad13c",s.callServer,void 0,s.findSourceMapURL,"approveServer"),r=(0,s.createServerReference)("60801acc9573ddff0ccc01328bc288382c8c0b4c99",s.callServer,void 0,s.findSourceMapURL,"checkServer");var i=e.i(28008),d=e.i(88374),l=e.i(62052),o=e.i(30402),c=e.i(58107);let u=["Address","Check","Owner"],m=["Address","Owner","Sign in"];var x=e.i(94984);function p({refusal:e}){return void 0===e?null:(0,n.jsx)(x.f,{state:{kind:"refused",message:e}})}function h({names:e,at:t}){return(0,n.jsx)("ol",{className:"flex gap-4 text-meta",children:e.map((e,s)=>(0,n.jsxs)("li",{"aria-current":s===t?"step":void 0,className:s<=t?"font-semibold":"text-muted-foreground",children:[s+1," ",e]},e))})}function f({state:e,action:s,fleetId:a}){let[r,x]=(0,t.useState)((0,d.G)(e.fields.credentialKind??"")),g=r===d.m.kind;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:r===d.m.kind?m:u,at:0}),(0,n.jsxs)("form",{action:s,className:`${o.E} grid gap-3.5`,"data-testid":"add-server-address",children:[(0,n.jsx)("input",{type:"hidden",name:i.H,value:a}),(0,n.jsx)(p,{refusal:e.refusal}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Streamable HTTP address"}),(0,n.jsx)("input",{className:o.w,type:"url",name:"url",defaultValue:e.fields.url??"",placeholder:"https://mcp.example.com/mcp",required:!0})]}),(0,n.jsx)(l.f,{legend:"The server's credential",fields:e.fields,noneHelp:"The gateway sends no credential: for a server reached only on a private network.",canEachPersonSignIn:!0,onKindChange:x}),(0,n.jsx)("div",{children:(0,n.jsx)(c.f,{pending:g?"Next…":"Checking the server…",testId:"add-server-check",children:g?"Next":"Check the server"})})]})]})}var g=e.i(65818),j=e.i(25621),b=e.i(97e3);function v({tool:e,control:t,testId:s}){let{name:a,description:r,isReadOnly:i,isNew:d=!1}=e,l=void 0===r?"":r.split("\n").map(e=>e.trim()).find(e=>""!==e)??"",o=void 0!==r&&r.trim()!==l;return(0,n.jsxs)("li",{className:"grid gap-1 border-b border-border py-2 last:border-b-0","data-testid":s,children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[t,(0,n.jsx)("span",{className:"font-mono",children:a}),i?(0,n.jsx)(b.E,{children:"reads only"}):null,d?(0,n.jsx)(b.T,{tone:"attention",label:"New"}):null]}),""===l?null:o?(0,n.jsxs)("details",{className:"text-muted-foreground",children:[(0,n.jsx)("summary",{className:"cursor-pointer",children:l}),(0,n.jsx)("p",{className:"mt-1 whitespace-pre-line",children:r})]}):(0,n.jsx)("p",{className:"text-muted-foreground",children:l})]})}function N({tools:e,canSwitch:s}){let[a,r]=(0,t.useState)(new Set),i=e.length-a.size;return(0,n.jsxs)("section",{className:"grid gap-2","data-testid":"add-server-tools",children:[(0,n.jsxs)("h2",{className:"flex flex-wrap justify-between gap-2 text-section font-semibold",children:[(0,n.jsxs)("span",{children:["The server answers: ",e.length," ",1===e.length?"tool":"tools"]}),s?(0,n.jsxs)("span",{role:"status",className:"font-normal text-muted-foreground","data-testid":"add-server-tools-on",children:[i," of ",e.length," on"]}):null]}),(0,n.jsx)("p",{className:"text-muted-foreground",children:s?"The fleet may call only the tools switched on. A tool the server adds later starts off.":"Switching tools needs gateway:approve: every tool starts on, and an approver switches them on its page."}),(0,n.jsx)("ul",{className:"grid",children:e.map(e=>{let t=!a.has(e.name);return(0,n.jsx)(v,{tool:e,testId:"add-server-tool",control:s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"hidden",name:"toolShown",value:e.name}),t?(0,n.jsx)("input",{type:"hidden",name:"toolOn",value:e.name}):null,(0,n.jsx)(j.f,{isOn:t,label:e.name,onClick:()=>{var n;n=e.name,r(e=>{let t=new Set(e);return t.delete(n)||t.add(n),t})}})]}):null},e.name)})})]})}let w=["url","credentialKind","token","clientId","clientSecret","issuer","scope"];function y({state:e,refused:s,action:a,onBack:r,fleetId:d,canSwitchTools:l}){let x,f="refused"===s.kind&&s.requestId===e.requestId,j=f?s.fields:e.fields,b=j.url??"",[v,k]=(0,t.useState)(j.name??function(e){if(!URL.canParse(e))return"";let{hostname:n}=new URL(e);return/^\d+(\.\d+){3}$/.test(n)||n.startsWith("[")?"":(n.split(".").filter(e=>"mcp"!==e&&"www"!==e)[0]??"").toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,"")}(b)),S=e.tools;return(0,n.jsxs)(n.Fragment,{children:[null===S?(0,n.jsx)(h,{names:m,at:1}):(0,n.jsx)(h,{names:u,at:2}),(0,n.jsxs)("form",{action:a,className:`${o.E} grid gap-3.5`,"data-testid":"add-server-owner",children:[null===S?null:(0,n.jsx)(N,{tools:S,canSwitch:l}),(0,n.jsx)("h2",{className:"text-section font-semibold",children:"Its owner"}),(0,n.jsx)(p,{refusal:f?s.message:void 0}),(0,n.jsx)("input",{type:"hidden",name:i.H,value:d}),(0,n.jsx)("input",{type:"hidden",name:"requestId",value:e.requestId}),w.map(e=>(0,n.jsx)("input",{type:"hidden",name:e,value:j[e]??""},e)),(0,n.jsx)("p",{className:"font-mono text-muted-foreground",children:b}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Proxy ship's name"}),(0,n.jsx)("input",{className:o.w,type:"text",name:"name",value:v,onChange:e=>{k(e.target.value)},required:!0})]}),(0,n.jsx)(g.f,{choices:e.owners,current:e.owners.find(e=>e.shipId===j.ownerShipId)??null,help:"A person ship or argo. It answers for this server."}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Calls at once"}),(0,n.jsx)("input",{className:o.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:j.concurrencyLimit??"4"})]}),null===S?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Its tools show once someone signs in."}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(c.f,{pending:null===S?"Checking the sign-in…":"Adding…",testId:"add-server-approve",children:""===(x=v.trim())?"Add as outside party":x.length>20?`Add ${x.slice(0,20)}…`:`Add ${x}`}),(0,n.jsx)("button",{type:"button",className:o.x.secondary,onClick:r,children:"Back to the address"})]})]})]})}var k=e.i(65894),S=e.i(31831),I=e.i(22468);function C({fleetId:e,name:s}){let[a,r]=(0,t.useActionState)(I.f,i.Q);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:m,at:2}),(0,n.jsxs)("form",{action:r,className:`${o.E} grid gap-3.5`,"data-testid":"add-server-sign-in",children:[(0,n.jsx)(x.f,{state:{kind:"done",message:`${s} is added.`}}),(0,n.jsx)(x.f,{state:a}),(0,n.jsx)("input",{type:"hidden",name:i.H,value:e}),(0,n.jsx)("input",{type:"hidden",name:"name",value:s}),(0,n.jsxs)("p",{children:["Sign in to ",s," for yourself. Its tools show after the first sign-in."]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(c.f,{pending:`Opening ${s}…`,testId:"add-server-sign-in-start",children:["Sign in to ",s]}),(0,n.jsx)("a",{href:(0,k.f)((0,S.N)(s),e),className:o.x.secondary,children:"Later"})]})]})]})}e.s(["AddServer",0,function({fleetId:e,canSwitchTools:s}){let[i,d]=(0,t.useActionState)(r,{step:"address",fields:{}}),[l,o]=(0,t.useActionState)(a,{kind:"idle"}),[c,u]=(0,t.useState)(void 0),m="owner"===i.step&&c!==i.requestId?i:void 0;return(0,n.jsxs)("div",{className:"grid max-w-160 gap-3",children:[(0,n.jsx)("h1",{className:"text-heading-touch font-semibold max-sm:sr-only",children:"Add MCP server"}),"added"===l.kind?(0,n.jsx)(C,{fleetId:e,name:l.name}):void 0===m?(0,n.jsx)(f,{state:i,action:d,fleetId:e}):(0,n.jsx)(y,{state:m,refused:l,action:o,onBack:()=>{u(m.requestId)},fleetId:e,canSwitchTools:s})]})}],27921)},55070,e=>{var n=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",ghost:"text-foreground hover:bg-accent"},s={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:a,variant:r="secondary",size:i="regular",children:d,className:l="",disabled:o,...c}){return(0,n.jsx)("button",{...c,disabled:!0===o||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${s[i]} ${t[r]} ${l}`,children:e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):d})},"o",0,s])},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let n=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],t={kind:"personSignIn",label:"Each person signs in"},s=[...n,t];e.s(["a",0,s,"x",0,n,"m",0,t,"G",0,function(e){return s.find(({kind:n})=>n===e)?.kind??"bearer"},"C",0,function(e){return n.find(({kind:n})=>n===e)?.kind??"bearer"}])},62052,e=>{var n=e.i(43476),t=e.i(16327),s=e.i(71645),a=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:i,noneHelp:d,canEachPersonSignIn:l=!1,onKindChange:o}){let c=l?a.G:a.C,[u,m]=(0,s.useState)(c(i.credentialKind??""));return(0,n.jsxs)("fieldset",{className:"grid gap-3",children:[(0,n.jsx)("legend",{className:"font-medium",children:e}),(0,n.jsxs)("span",{className:"relative",children:[(0,n.jsx)("select",{className:r.D,"aria-label":e,name:"credentialKind",value:u,onChange:e=>{let n=c(e.target.value);m(n),o?.(n)},children:(l?a.a:a.x).map(({kind:e,label:t})=>(0,n.jsx)("option",{value:e,children:t},e))}),(0,n.jsx)(t.f,{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground"})]}),"clientCredentials"===u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client id"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:i.clientId??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client secret"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Issuer"}),(0,n.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:i.issuer??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Scope"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:i.scope??""})]})]}):"bearer"===u?(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Bearer token"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"token"})]}):u===a.m.kind?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Each person signs in for themselves. A ship calls under its owner's sign-in."}):(0,n.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},94984,e=>{var n=e.i(43476);e.s(["f",0,function({state:e,testId:t}){switch(e.kind){case"idle":return null;case"done":return(0,n.jsx)("p",{role:"status","data-testid":t,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,n.jsx)("p",{role:"alert","data-testid":t,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 n=e.i(43476),t=e.i(30402);e.s(["f",0,function({choices:e,current:s,help:a,refusal:r}){let i=null===s||e.some(e=>e.shipId===s.shipId)?e:[s,...e];return(0,n.jsxs)("label",{className:t.z,children:[(0,n.jsx)("span",{children:"Owner"}),(0,n.jsxs)("select",{className:t.w,name:"ownerShipId",defaultValue:s?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===s?(0,n.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,i.map(e=>(0,n.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,n.jsx)("span",{className:"text-muted-foreground",children:r??a})]})}])},58107,e=>{var n=e.i(43476),t=e.i(74080),s=e.i(30402);e.s(["f",0,function({children:e,pending:a,kind:r="primary",testId:i}){let d=(0,t.useFormStatus)();return(0,n.jsx)("button",{type:"submit",className:s.x[r],disabled:d.pending,"aria-busy":d.pending,"data-testid":i,children:d.pending?a:e})}])},97e3,e=>{var n=e.i(43476);let t={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},s={waiting:"text-tone-waiting-fg",active:"text-tone-active-fg",ok:"text-tone-ok-fg",attention:"rounded-sm border border-tone-attention-border bg-tone-attention-bg px-1.5 text-tone-attention-fg",ended:"text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:a,look:r="pill",icon:i}){return(0,n.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-caption ${"pill"===r?`rounded-full border px-2 ${t[e]}`:`h-5.5 px-0.5 font-medium ${s[e]}`}`,children:[i,a]})},"E",0,function({children:e,isMono:t=!1}){return(0,n.jsx)("span",{className:`inline-flex h-5.5 items-center rounded-sm border border-border px-1.5 text-caption font-medium ${t?"font-mono":""}`,children:e})}])}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21611,e=>{var s=e.i(43476),
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21611,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(65894),d=e.i(28008),i=e.i(30402),t=e.i(94984),r=e.i(65818),l=e.i(58107),o=e.i(31831),c=e.i(90526),u=e.i(95187);let m=(0,u.createServerReference)("6039cf83243201a735e4cf63776e29e5263b756429",u.callServer,void 0,u.findSourceMapURL,"addA2aClient"),p={kind:"idle"};function h({name:e,bearer:n,fleetId:d}){return(0,s.jsxs)("section",{className:`${i.r} grid gap-3`,"data-testid":"add-a2a-client-added",children:[(0,s.jsxs)("h2",{className:"text-section font-semibold",children:[e," is added"]}),(0,s.jsx)("p",{children:"Hand its client this bearer now. It is shown only once: the gateway keeps no copy it can show again."}),(0,s.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:n}),(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:(0,a.f)((0,o.N)(e),d),className:"text-primary hover:underline",children:"Its card addresses"})})]})}e.s(["A2aClientForm",0,function({fleetId:e,requestId:a,owners:o,scopes:u}){let[x,f]=(0,n.useActionState)(m,p);return"added"===x.kind?(0,s.jsx)(h,{name:x.name,bearer:x.bearer,fleetId:e}):(0,s.jsxs)("form",{action:f,className:`${i.r} grid max-w-160 gap-3`,"data-testid":"add-a2a-client-form",children:[(0,s.jsx)("input",{type:"hidden",name:d.H,value:e}),(0,s.jsx)("input",{type:"hidden",name:"requestId",value:a}),(0,s.jsx)("h1",{className:"text-heading-touch font-semibold max-sm:sr-only",children:"Add an A2A client"}),(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Name, the proxy ship's"}),(0,s.jsx)("input",{className:i.w,name:"name",required:!0})]}),(0,s.jsx)(r.f,{choices:o.isOk?o.value:[],current:null,help:"A person ship or argo. It answers for this client.",refusal:o.isOk?void 0:o.refusal}),0===u.length?null:(0,s.jsxs)("fieldset",{className:"grid gap-2",children:[(0,s.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),u.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"checkbox",name:`${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:"Adding…",children:"Add"})}),(0,s.jsx)(t.f,{state:"refused"===x.kind?x:{kind:"idle"}})]})}],21611)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},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:d,refusal:i}){let t=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,t.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:i??d})]})}])},58107,e=>{var s=e.i(43476),n=e.i(74080),a=e.i(30402);e.s(["f",0,function({children:e,pending:d,kind:i="primary",testId:t}){let r=(0,n.useFormStatus)();return(0,s.jsx)("button",{type:"submit",className:a.x[i],disabled:r.pending,"aria-busy":r.pending,"data-testid":t,children:r.pending?d:e})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70812,71136,96315,28623,e=>{var t=e.i(56420);let i={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],70812);let a={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let d=(0,t.f)(r);e.s(["f",0,d],96315);let o={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};o.node;let l=(0,t.f)(o);e.s(["f",0,l],28623)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let i={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],59381)},826,e=>{var t=e.i(95187);let i=(0,t.createServerReference)("6008bd26cffddf1eb3a19dab7e76beb69f7c7d5cc9",t.callServer,void 0,t.findSourceMapURL,"removeFromBasket");e.s(["f",0,i])},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},i={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},n=["decide","do"],a="Bridge keeps every item.",s={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},d="Says only that something waits, with a link here.",o=`${d} Nothing is on until you turn it on.`,l="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,i,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${l}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${l}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:d,action:"turnOff"}:{state:r,description:o,action:"turnOn"}:{state:s,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:i})=>i.email!==t&&(!t||n.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>c[e])],i=t.at(-1),n=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(i)}`;return`Shows in ${n}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:i}=e;return null===i?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${i.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:n,place:s,isOn:r,waiting:d,isChatOn:o}=e,{name:l,item:c,items:u}=t[n],m=`${i[s]} is ${r?"on":"off"} for ${l}`;return r?"chat"===s?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[s]} shows ${u} that arrive from now on.${void 0===d||0===d?"":` The ${String(d)} already waiting ${1===d?"stays":"stay"} ${o?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:m,detail:"everything-else"===n&&"slack"===s?`Bots only: a bot ship's messages and replies to Slack still show there. ${a}`:a}},"B",0,function(e){if(!e.isOffered)return{state:s,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:r,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},49966,e=>{var t=e.i(43476),i=e.i(17904),n=e.i(29039),a=e.i(29775);e.s(["HomeHeading",0,function({waiting:e}){let s,r,d,o=(0,n.useLastReadAt)();return void 0!==o?(0,t.jsxs)("div",{className:"max-sm:hidden",children:[(0,t.jsx)("h1",{id:"bridge-waiting-heading",className:"text-heading-touch font-semibold",children:"Waiting on you"}),(0,t.jsx)("p",{className:"text-muted-foreground","data-testid":"bridge-last-read",children:`Last read ${(0,i.C)(o)}`})]}):(0,t.jsxs)("div",{"data-testid":"bridge-title-row",className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h1",{id:"bridge-waiting-heading",className:"text-title sm:text-heading-touch font-semibold",children:["Waiting on you ",(0,t.jsx)("span",{"data-testid":"bridge-count",className:"text-tone-waiting-fg",children:e.count})]}),(0,t.jsx)("p",{className:"text-muted-foreground max-sm:hidden",children:0===e.count?"Nothing waits on you.":(r=(s=e.items.filter(({stale:e})=>null===e)).filter(({job:e})=>"decide"===e).length,d=s.filter(({job:e})=>"do"===e).length,`${String(r)} to decide, ${String(d)} to do. Newest on top; nothing else is in this count.`)})]}),(0,t.jsx)("span",{className:"max-sm:hidden",children:(0,t.jsx)(a.f,{look:"words"})})]})}])},85989,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(47130),a=e.i(29247),s=e.i(12497),r=e.i(17904),d=e.i(55070),o=e.i(19015),l=e.i(82022);function c({href:e,isOutside:i,children:n,...a}){return(0,t.jsxs)("a",{...a,href:e,...i?{target:"_blank",rel:"noopener noreferrer"}:{},className:`inline-flex items-center rounded-md border border-border bg-card text-card-foreground hover:bg-accent ${d.o.row}`,children:[(0,t.jsx)(l.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var u=e.i(3523),m=e.i(29039);function h(e){let{stale:t,inBasket:i}=e;if(null===t&&null!==i)return null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`;if(null===t)return"seen"===e.state?(0,s.M)(e.seenIn):void 0;let n=(0,a.f)(t,{from:e.from});return"withdrawn"===t.kind?`${n}: open it to clear it`:n}function p({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(d.i,{"data-testid":"bridge-replacement",size:"row",isPending:i.openingId===n,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open({deliveryId:n,job:e.job})},children:"do"===e.job?"Open the new step":"Open the new question"})}function f({item:e,opening:i}){return(0,t.jsx)(d.i,{"data-testid":"bridge-open",size:"row",isPending:i.openingId===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open(e)},children:"Open"})}function g({item:e,opening:i}){let a=e.actInPlace;return a?.kind==="ownStep"?(0,t.jsx)(c,{"data-testid":"bridge-own-step",href:a.href,isOutside:!1,children:a.label}):(0,t.jsxs)(t.Fragment,{children:[a?.kind==="putPick"?(0,t.jsxs)(d.i,{"data-testid":"bridge-put-pick",variant:"primary",size:"row",isPending:i.puttingId===e.deliveryId,pendingLabel:"Putting...",disabled:void 0!==i.openingId||void 0!==i.puttingId,onClick:()=>{i.putPick(e,a.option)},children:[(0,t.jsx)(n.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",a.option," in the basket"]}):null,a?.kind==="openLink"?(0,t.jsxs)(c,{"data-testid":"bridge-step-link",href:a.href,isOutside:!0,children:["Open ",a.host]}):null,(0,t.jsx)(p,{item:e,opening:i}),(0,t.jsx)(f,{item:e,opening:i})]})}function b(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function x({items:e,readAt:i,opening:n}){let a=void 0!==n.opened;return(0,t.jsx)("ul",{className:a?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,outcome:h(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:b(e,n),actions:a?void 0:(0,t.jsx)(g,{item:e,opening:n})},e.deliveryId))})}function v({items:e,readAt:i,opening:n}){return(0,t.jsx)("ul",{className:void 0===n.opened?"overflow-hidden rounded-lg border border-border bg-card":"border-t border-border",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,outcome:void 0,failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:b(e,n)},e.deliveryId))})}function y({home:e,readAt:i,opening:n,isStayAware:a}){let{waiting:s,stayAware:r}=e;return a?(0,t.jsxs)("section",{"aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3 px-3 py-2.5",children:[(0,t.jsx)("h2",{id:"bridge-stay-aware-heading",className:"font-semibold",children:"Stay aware"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[r.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)(v,{items:r,readAt:i,opening:n})]}):(0,t.jsxs)("section",{"aria-labelledby":"bridge-waiting-heading",children:[(0,t.jsxs)("h1",{id:"bridge-waiting-heading",className:"px-3 py-2.5 font-semibold",children:["Waiting on you ",(0,t.jsx)("span",{"data-testid":"bridge-count",className:"text-tone-waiting-fg",children:s.count})]}),(0,t.jsx)(x,{items:s.items,readAt:i,opening:n})]})}function w({home:e,now:n,opening:a,argo:s}){let{waiting:r,stayAware:d}=e,o=new Date(n);return void 0!==a.opened?(0,t.jsx)(y,{home:e,readAt:o,opening:a,isStayAware:"stay-aware"===a.opened.job}):(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsx)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:0===r.items.length?(0,t.jsxs)("div",{"data-testid":"bridge-nothing-waits",className:"grid justify-items-center gap-1 rounded-lg border border-border bg-card p-6 text-center",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Nothing waits on you"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Your ships have what they need from you. A question or a step shows here the moment one arrives."})]}):(0,t.jsx)(x,{items:r.items,readAt:o,opening:a})}),s,(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("h2",{id:"bridge-stay-aware-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Stay aware"]}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[d.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===d.length?(0,t.jsx)("p",{"data-testid":"bridge-nothing-new",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing new. What you saw is in Done."}):(0,t.jsx)(v,{items:d,readAt:o,opening:a})]})]})}function j({items:e,lastReadAt:i}){let n=new Date(i);return(0,t.jsxs)("section",{className:"grid gap-3","aria-label":"Waiting on you, as last read",children:[0===e.length?null:(0,t.jsx)("ul",{inert:!0,className:"overflow-hidden rounded-lg border border-border bg-card opacity-60",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:h(e),failure:void 0,onOpen:void 0},e.deliveryId))}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,r.C)(i)}.`})]})}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:a,argo:s}){let r=(0,m.useLastReadAt)();return void 0!==r?(0,t.jsx)(j,{items:i.waiting.items,lastReadAt:r}):(0,t.jsx)(u.f,{fleetId:e,decidePlaces:a,children:e=>(0,t.jsx)(w,{home:i,now:n,opening:e,argo:s})})},"StayAwareRows",0,v],85989)},3523,e=>{var t=e.i(43476),i=e.i(58487),n=e.i(5654),a=e.i(71645),s=e.i(73459),r=e.i(65894),d=e.i(1765),o=e.i(74557),l=e.i(8795),c=e.i(11156),u=e.i(97011),m=e.i(826),h=e.i(57228),p=e.i(34244),f=e.i(43328),g=e.i(27538),b=e.i(77826),x=e.i(80734),v=e.i(60296),y=e.i(66734),w=e.i(47130);function j(){let{toasts:e}=n.f.useToastManager();return(0,t.jsx)(f.f.Portal,{children:(0,t.jsx)(g.f.Viewport,{className:"fixed bottom-4 left-4 z-50 hidden w-[min(24rem,calc(100vw-2rem))] gap-2 sm:grid",children:e.map(e=>(0,t.jsxs)(b.f.Root,{toast:e,"data-testid":"bridge-basket-toast",className:"flex items-start gap-3 rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-lg",children:[(0,t.jsx)(w.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,t.jsxs)(x.f.Content,{className:"grid flex-1 gap-1",children:[(0,t.jsx)(v.f.Title,{className:"font-medium"}),(0,t.jsx)(y.f.Description,{className:"text-caption text-muted-foreground"})]})]},e.id))})})}var k=e.i(54235),N=e.i(62579),S=e.i(63132),I=e.i(75103),$=e.i(52021);function O({fleetId:e,decidePlaces:i,consoleUrl:f,children:g}){let b=n.f.useToastManager(),x=(0,I.P)(),[v,y]=(0,a.useState)(),[w,j]=(0,a.useState)(""),[A,R]=(0,a.useState)(),[z,L]=(0,a.useState)(),[P,M]=(0,a.useState)(),[T,B]=(0,a.useState)(),[C,D]=(0,a.useState)(),[U,q]=(0,a.useState)(),[,F]=(0,a.useTransition)(),[H,W]=(0,a.useState)(0);(0,$.R)(void 0===v?void 0:(0,p.u)(v.opened.job),()=>{y(void 0)});let _=t=>{R(t.deliveryId),B(void 0),q(void 0),F(async()=>{let i=await (0,l.f)(e,t.deliveryId);if(R(void 0),i.isOk){let e=t.inBasket??null;y({delivery:i.value,opened:{job:t.job,isAlert:t.isAlert??!1,wasNew:"seen"!==t.state},inBasket:e,finished:null}),j(e?.note??""),D(void 0)}else B({deliveryId:t.deliveryId,message:i.message})})},V=({control:e,action:t,onSettled:i})=>{M(e),D(void 0),F(async()=>{let e=await t();M(void 0),e.isOk?i(e.value):D(e.message)})},Y=e=>()=>{y(void 0),q(e)},K=void 0===v?void 0:{deliveryId:v.delivery.deliveryId,job:v.opened.job};return(0,t.jsx)(N.f,{list:(0,t.jsxs)("div",{className:"grid gap-4",children:[void 0===U?null:(0,t.jsx)(S.f,{message:U,isFailure:!1}),g({open:_,openingId:A,putPick:(t,i)=>{L(t.deliveryId),B(void 0),q(void 0),F(async()=>{let n=await (0,u.f)({fleet:e,deliveryId:t.deliveryId,option:i});L(void 0),n.isOk?(q(`Option ${String(i)} is in the basket, not sent: ${t.from} receives it when you send the basket.`),W(e=>e+1)):B({deliveryId:t.deliveryId,message:n.message})})},puttingId:z,failure:T,opened:K})]},H),item:void 0===v?void 0:(({delivery:n,inBasket:a,opened:l,finished:u})=>{let p=n.question?.id;return(0,t.jsx)(k.u,{delivery:n,opened:l,meetingHref:void 0===n.meetingId?void 0:(0,s.f)({fleetId:e,meetingId:n.meetingId}),consoleUrl:f,basketHref:(0,r.f)(h.H,e),inBasket:a,finished:u,places:i,note:w,working:P,failure:C,onNoteChange:j,onAnswer:t=>{V({control:void 0===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,d.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:n.question?.id,option:t,note:w}}),onSettled:Y(`Your answer went to ${n.from}.`)})},onPut:t=>{V({control:null===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,c.f)({fleet:e,deliveryId:n.deliveryId,option:t,optionLabel:n.question?.options.find(({key:e})=>e===t)?.label??null,note:w}),onSettled:e=>{var t;y({delivery:n,opened:l,finished:u,inBasket:e}),b.add({title:null===(t=e.option)?"Your note alone in the basket":`Option ${String(t)} in the basket`,description:"Not sent. Still waiting on you until you send it."})}})},onSend:t=>{V({control:{kind:"send"},action:()=>(0,d.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:p,option:t??void 0,note:w}}),onSettled:Y(`Your answer went to ${n.from}.`)})},onRemove:()=>{void 0!==p&&V({control:{kind:"remove"},action:()=>(0,m.f)(e,p),onSettled:Y(`Your answer to “${n.title}” is out of the basket; the question still waits on you.`)})},onDone:()=>{V({control:{kind:"done"},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId}),onSettled:Y(`Done with “${n.title}”.`)})},onFinishStep:t=>{V({control:{kind:t},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,step:{outcome:t,note:w}}),onSettled:()=>{y({delivery:n,inBasket:a,opened:l,finished:{outcome:t,note:w.trim(),at:new Date().toISOString()}})}})},onOpen:e=>{_({deliveryId:e,job:l.job})},onSendMessage:void 0===n.alertShip||void 0===x?void 0:e=>{x({alertShip:e})},onBack:()=>{y(void 0)}},n.deliveryId)})(v)})}e.s(["f",0,function({fleetId:e,decidePlaces:n,consoleUrl:a,children:s}){return(0,t.jsxs)(i.f.Provider,{children:[(0,t.jsx)(O,{fleetId:e,decidePlaces:n,consoleUrl:a,children:s}),(0,t.jsx)(j,{})]})}],3523)},55070,e=>{var t=e.i(43476);let i={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},n={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:a,variant:s="secondary",size:r="regular",children:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[r]} ${i[s]} ${o}`,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):d})},"o",0,n])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),a=e.i(96315),s=e.i(49287),r=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let u={bridge:{icon:s.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:r.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:a.f,name:"email"}};function m(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function h({places:e}){var i;let n,a=["bridge",...e].map(e=>u[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=a.map(({name:e})=>e)).at(-1)??"",i.length<2?n:`${i.slice(0,-1).join(", ")} and ${n}`)}`,className:"inline-flex items-center gap-0.5",children:a.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}e.s(["f",0,function({item:e,now:i,isNew:n,isOpen:a=!1,staleKind:s,outcome:r,failure:u,onOpen:p,time:f,detail:g,actions:b}){var x;let v=e.isAlert??!1,y=(0,o.f)({job:e.job,isAlert:v}),w=y.icon,j="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",k=void 0===s?e.title:(0,t.jsx)("s",{className:"decoration-muted-foreground",children:e.title});return(0,t.jsxs)("li",{"data-testid":"bridge-item","data-stale":void 0!==s,"aria-current":!!a||void 0,className:`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] items-start gap-x-2.5 gap-y-1.5 border-t border-border px-3 py-2.5 first:border-t-0 ${function({isOpen:e,isStale:t}){return e?"bg-highlight shadow-[inset_2px_0_0_var(--primary)]":t?"bg-muted":""}({isOpen:a,isStale:void 0!==s})}`,children:[(0,t.jsx)(w,{"aria-hidden":"true",className:`mt-0.5 size-4 ${y.tone}`}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline sm:items-center",children:[n?(0,t.jsx)("span",{"aria-label":"New",className:"mr-1.5 size-[7px] shrink-0 -translate-y-px rounded-full bg-primary"}):null,void 0===p?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:j,children:k}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:p,className:`${j} hover:underline`,children:k})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:`font-medium ${y.tone}`,children:(0,d.z)({job:e.job,isAlert:v})}),(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.from}),void 0===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsxs)("span",{"data-testid":"bridge-outcome",className:"inline-flex items-center gap-1.5",children:[void 0===s?null:(0,t.jsx)(c.f,{kind:s}),r]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(h,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:f?.at??e.sentAt,title:(x=f?.at??e.sentAt,`${new Date(x).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:f?.said??(0,d.V)(e.sentAt,i)}),void 0===g?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:g}),null==b?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2 flex flex-wrap items-center gap-1.5",children:b}),void 0===u?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:u,isFailure:!0})})]})}])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:i}){return i?(0,t.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,t.jsx)("p",{role:"status","data-testid":"bridge-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])},73459,1765,74557,8795,11156,97011,e=>{e.s(["f",0,function(e){let t=new URLSearchParams({fleet:e.fleetId,...void 0===e.cursor?{}:{cursor:e.cursor}});return`/meetings/${encodeURIComponent(e.meetingId)}?${t.toString()}`}],73459);var t=e.i(95187);let i=(0,t.createServerReference)("4005a272c7d42c49369853549fa504bfa2f5a28065",t.callServer,void 0,t.findSourceMapURL,"answerDelivery");e.s(["f",0,i],1765);let n=(0,t.createServerReference)("4006afedfc0a3ba4a084b559962062132da4a87fb3",t.callServer,void 0,t.findSourceMapURL,"doneDelivery");e.s(["f",0,n],74557);let a=(0,t.createServerReference)("60946b456da6a921986ea3d07b2f6537c5bda01bfa",t.callServer,void 0,t.findSourceMapURL,"openDelivery");e.s(["f",0,a],8795);let s=(0,t.createServerReference)("4043b8bae7efc2281930fbebb86cf40a8f63d03a8e",t.callServer,void 0,t.findSourceMapURL,"putInBasket");e.s(["f",0,s],11156);let r=(0,t.createServerReference)("407b068dc2b43638230da6c1086963ff832b2f1f41",t.callServer,void 0,t.findSourceMapURL,"putPickInBasket");e.s(["f",0,r],97011)}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70812,71136,96315,28623,e=>{var t=e.i(56420);let i={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],70812);let a={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let d=(0,t.f)(r);e.s(["f",0,d],96315);let o={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};o.node;let l=(0,t.f)(o);e.s(["f",0,l],28623)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let i={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],59381)},826,e=>{var t=e.i(95187);let i=(0,t.createServerReference)("6008bd26cffddf1eb3a19dab7e76beb69f7c7d5cc9",t.callServer,void 0,t.findSourceMapURL,"removeFromBasket");e.s(["f",0,i])},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},i={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},n=["decide","do"],a="Bridge keeps every item.",s={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},d="Says only that something waits, with a link here.",o=`${d} Nothing is on until you turn it on.`,l="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,i,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${l}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${l}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:d,action:"turnOff"}:{state:r,description:o,action:"turnOn"}:{state:s,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:i})=>i.email!==t&&(!t||n.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>c[e])],i=t.at(-1),n=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(i)}`;return`Shows in ${n}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:i}=e;return null===i?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${i.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:n,place:s,isOn:r,waiting:d,isChatOn:o}=e,{name:l,item:c,items:u}=t[n],m=`${i[s]} is ${r?"on":"off"} for ${l}`;return r?"chat"===s?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[s]} shows ${u} that arrive from now on.${void 0===d||0===d?"":` The ${String(d)} already waiting ${1===d?"stays":"stay"} ${o?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:m,detail:"everything-else"===n&&"slack"===s?`Bots only: a bot ship's messages and replies to Slack still show there. ${a}`:a}},"B",0,function(e){if(!e.isOffered)return{state:s,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:r,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},94528,e=>{var t=e.i(43476),i=e.i(17904),n=e.i(29039);e.s(["FadedAsLastRead",0,function({children:e}){let a=(0,n.useLastReadAt)();return void 0===a?e:(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsx)("div",{inert:!0,className:"opacity-60 [&_button:not([data-testid=bridge-item-title])]:hidden",children:e}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,i.C)(a)}.`})]})}])},85989,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(47130),a=e.i(29247),s=e.i(12497),r=e.i(17904),d=e.i(55070),o=e.i(19015),l=e.i(82022);function c({href:e,isOutside:i,children:n,...a}){return(0,t.jsxs)("a",{...a,href:e,...i?{target:"_blank",rel:"noopener noreferrer"}:{},className:`inline-flex items-center rounded-md border border-border bg-card text-card-foreground hover:bg-accent ${d.o.row}`,children:[(0,t.jsx)(l.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var u=e.i(3523),m=e.i(29039);function p(e){let{stale:t,inBasket:i}=e;if(null===t&&null!==i)return null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`;if(null===t)return"seen"===e.state?(0,s.M)(e.seenIn):void 0;let n=(0,a.f)(t,{from:e.from});return"withdrawn"===t.kind?`${n}: open it to clear it`:n}function h({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(d.i,{"data-testid":"bridge-replacement",size:"row",isPending:i.openingId===n,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open({deliveryId:n,job:e.job})},children:"do"===e.job?"Open the new step":"Open the new question"})}function f({item:e,opening:i}){return(0,t.jsx)(d.i,{"data-testid":"bridge-open",size:"row",isPending:i.openingId===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open(e)},children:"Open"})}function g({item:e,opening:i}){let a=e.actInPlace;return a?.kind==="ownStep"?(0,t.jsx)(c,{"data-testid":"bridge-own-step",href:a.href,isOutside:!1,children:a.label}):(0,t.jsxs)(t.Fragment,{children:[a?.kind==="putPick"?(0,t.jsxs)(d.i,{"data-testid":"bridge-put-pick",variant:"primary",size:"row",isPending:i.puttingId===e.deliveryId,pendingLabel:"Putting...",disabled:void 0!==i.openingId||void 0!==i.puttingId,onClick:()=>{i.putPick(e,a.option)},children:[(0,t.jsx)(n.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",a.option," in the basket"]}):null,a?.kind==="openLink"?(0,t.jsxs)(c,{"data-testid":"bridge-step-link",href:a.href,isOutside:!0,children:["Open ",a.host]}):null,(0,t.jsx)(h,{item:e,opening:i}),(0,t.jsx)(f,{item:e,opening:i})]})}function b(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function x({items:e,readAt:i,opening:n}){let a=void 0!==n.opened;return(0,t.jsx)("ul",{className:a?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,outcome:p(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:b(e,n),actions:a?void 0:(0,t.jsx)(g,{item:e,opening:n})},e.deliveryId))})}function v({items:e,readAt:i,opening:n}){return(0,t.jsx)("ul",{className:void 0===n.opened?"overflow-hidden rounded-lg border border-border bg-card":"border-t border-border",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,outcome:void 0,failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:b(e,n)},e.deliveryId))})}function y({home:e,readAt:i,opening:n,isStayAware:a}){let{waiting:s,stayAware:r}=e;return a?(0,t.jsxs)("section",{"aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3 px-3 py-2.5",children:[(0,t.jsx)("h2",{id:"bridge-stay-aware-heading",className:"font-semibold",children:"Stay aware"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[r.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)(v,{items:r,readAt:i,opening:n})]}):(0,t.jsxs)("section",{"aria-labelledby":"bridge-waiting-heading",children:[(0,t.jsxs)("h1",{id:"bridge-waiting-heading",className:"px-3 py-2.5 font-semibold",children:["Waiting on you ",(0,t.jsx)("span",{"data-testid":"bridge-count",className:"text-tone-waiting-fg",children:s.count})]}),(0,t.jsx)(x,{items:s.items,readAt:i,opening:n})]})}function w({home:e,now:n,opening:a,argo:s}){let{waiting:r,stayAware:d}=e,o=new Date(n);return void 0!==a.opened?(0,t.jsx)(y,{home:e,readAt:o,opening:a,isStayAware:"stay-aware"===a.opened.job}):(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsx)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:0===r.items.length?(0,t.jsxs)("div",{"data-testid":"bridge-nothing-waits",className:"grid justify-items-center gap-1 rounded-lg border border-border bg-card p-6 text-center",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Nothing waits on you"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Your ships have what they need from you. A question or a step shows here the moment one arrives."})]}):(0,t.jsx)(x,{items:r.items,readAt:o,opening:a})}),s,(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("h2",{id:"bridge-stay-aware-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Stay aware"]}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[d.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===d.length?(0,t.jsx)("p",{"data-testid":"bridge-nothing-new",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing new. What you saw is in Done."}):(0,t.jsx)(v,{items:d,readAt:o,opening:a})]})]})}function j({items:e,lastReadAt:i}){let n=new Date(i);return(0,t.jsxs)("section",{className:"grid gap-3","aria-label":"Waiting on you, as last read",children:[0===e.length?null:(0,t.jsx)("ul",{inert:!0,className:"overflow-hidden rounded-lg border border-border bg-card opacity-60",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:p(e),failure:void 0,onOpen:void 0},e.deliveryId))}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,r.C)(i)}.`})]})}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:a,argo:s}){let r=(0,m.useLastReadAt)();return void 0!==r?(0,t.jsx)(j,{items:i.waiting.items,lastReadAt:r}):(0,t.jsx)(u.f,{fleetId:e,decidePlaces:a,children:e=>(0,t.jsx)(w,{home:i,now:n,opening:e,argo:s})})},"StayAwareRows",0,v],85989)},3523,e=>{var t=e.i(43476),i=e.i(58487),n=e.i(5654),a=e.i(71645),s=e.i(73459),r=e.i(65894),d=e.i(1765),o=e.i(74557),l=e.i(8795),c=e.i(11156),u=e.i(97011),m=e.i(826),p=e.i(57228),h=e.i(34244),f=e.i(43328),g=e.i(27538),b=e.i(77826),x=e.i(80734),v=e.i(60296),y=e.i(66734),w=e.i(47130);function j(){let{toasts:e}=n.f.useToastManager();return(0,t.jsx)(f.f.Portal,{children:(0,t.jsx)(g.f.Viewport,{className:"fixed bottom-4 left-4 z-50 hidden w-[min(24rem,calc(100vw-2rem))] gap-2 sm:grid",children:e.map(e=>(0,t.jsxs)(b.f.Root,{toast:e,"data-testid":"bridge-basket-toast",className:"flex items-start gap-3 rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-lg",children:[(0,t.jsx)(w.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,t.jsxs)(x.f.Content,{className:"grid flex-1 gap-1",children:[(0,t.jsx)(v.f.Title,{className:"font-medium"}),(0,t.jsx)(y.f.Description,{className:"text-caption text-muted-foreground"})]})]},e.id))})})}var k=e.i(54235),N=e.i(62579),S=e.i(63132),I=e.i(75103),$=e.i(52021);function O({fleetId:e,decidePlaces:i,consoleUrl:f,children:g}){let b=n.f.useToastManager(),x=(0,I.P)(),[v,y]=(0,a.useState)(),[w,j]=(0,a.useState)(""),[A,R]=(0,a.useState)(),[z,P]=(0,a.useState)(),[L,M]=(0,a.useState)(),[T,B]=(0,a.useState)(),[D,C]=(0,a.useState)(),[U,q]=(0,a.useState)(),[,F]=(0,a.useTransition)(),[_,W]=(0,a.useState)(0);(0,$.R)(void 0===v?void 0:(0,h.u)(v.opened.job),()=>{y(void 0)});let H=t=>{R(t.deliveryId),B(void 0),q(void 0),F(async()=>{let i=await (0,l.f)(e,t.deliveryId);if(R(void 0),i.isOk){let e=t.inBasket??null;y({delivery:i.value,opened:{job:t.job,isAlert:t.isAlert??!1,wasNew:"seen"!==t.state},inBasket:e,finished:null}),j(e?.note??""),C(void 0)}else B({deliveryId:t.deliveryId,message:i.message})})},V=({control:e,action:t,onSettled:i})=>{M(e),C(void 0),F(async()=>{let e=await t();M(void 0),e.isOk?i(e.value):C(e.message)})},Y=e=>()=>{y(void 0),q(e)},E=void 0===v?void 0:{deliveryId:v.delivery.deliveryId,job:v.opened.job};return(0,t.jsx)(N.f,{list:(0,t.jsxs)("div",{className:"grid gap-4",children:[void 0===U?null:(0,t.jsx)(S.f,{message:U,isFailure:!1}),g({open:H,openingId:A,putPick:(t,i)=>{P(t.deliveryId),B(void 0),q(void 0),F(async()=>{let n=await (0,u.f)({fleet:e,deliveryId:t.deliveryId,option:i});P(void 0),n.isOk?(q(`Option ${String(i)} is in the basket, not sent: ${t.from} receives it when you send the basket.`),W(e=>e+1)):B({deliveryId:t.deliveryId,message:n.message})})},puttingId:z,failure:T,opened:E})]},_),item:void 0===v?void 0:(({delivery:n,inBasket:a,opened:l,finished:u})=>{let h=n.question?.id;return(0,t.jsx)(k.u,{delivery:n,opened:l,meetingHref:void 0===n.meetingId?void 0:(0,s.f)({fleetId:e,meetingId:n.meetingId}),consoleUrl:f,basketHref:(0,r.f)(p.H,e),inBasket:a,finished:u,places:i,note:w,working:L,failure:D,onNoteChange:j,onAnswer:t=>{V({control:void 0===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,d.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:n.question?.id,option:t,note:w}}),onSettled:Y(`Your answer went to ${n.from}.`)})},onPut:t=>{V({control:null===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,c.f)({fleet:e,deliveryId:n.deliveryId,option:t,optionLabel:n.question?.options.find(({key:e})=>e===t)?.label??null,note:w}),onSettled:e=>{var t;y({delivery:n,opened:l,finished:u,inBasket:e}),b.add({title:null===(t=e.option)?"Your note alone in the basket":`Option ${String(t)} in the basket`,description:"Not sent. Still waiting on you until you send it."})}})},onSend:t=>{V({control:{kind:"send"},action:()=>(0,d.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:h,option:t??void 0,note:w}}),onSettled:Y(`Your answer went to ${n.from}.`)})},onRemove:()=>{void 0!==h&&V({control:{kind:"remove"},action:()=>(0,m.f)(e,h),onSettled:Y(`Your answer to “${n.title}” is out of the basket; the question still waits on you.`)})},onDone:()=>{V({control:{kind:"done"},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId}),onSettled:Y(`Done with “${n.title}”.`)})},onFinishStep:t=>{V({control:{kind:t},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,step:{outcome:t,note:w}}),onSettled:()=>{y({delivery:n,inBasket:a,opened:l,finished:{outcome:t,note:w.trim(),at:new Date().toISOString()}})}})},onOpen:e=>{H({deliveryId:e,job:l.job})},onSendMessage:void 0===n.alertShip||void 0===x?void 0:e=>{x({alertShip:e})},onBack:()=>{y(void 0)}},n.deliveryId)})(v)})}e.s(["f",0,function({fleetId:e,decidePlaces:n,consoleUrl:a,children:s}){return(0,t.jsxs)(i.f.Provider,{children:[(0,t.jsx)(O,{fleetId:e,decidePlaces:n,consoleUrl:a,children:s}),(0,t.jsx)(j,{})]})}],3523)},92587,e=>{var t=e.i(43476),i=e.i(35159),n=e.i(85989),a=e.i(3523);e.s(["StayAwarePanel",0,function({fleetId:e,consoleUrl:s,stayAware:r,now:d}){return(0,t.jsx)(a.f,{fleetId:e,consoleUrl:s,children:e=>(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:`flex items-baseline justify-between gap-3 max-sm:sr-only ${void 0===e.opened?"":"px-3 pt-2.5"}`,children:[(0,t.jsx)("h1",{id:"bridge-stay-aware-heading",className:void 0===e.opened?"text-heading font-semibold":"font-semibold",children:"Stay aware"}),(0,t.jsx)("span",{"data-testid":"bridge-stay-aware-count",className:"text-caption text-muted-foreground",children:(0,i.E)(r.filter(({state:e})=>"new"===e).length)})]}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground sm:hidden",children:"Not in the count. Seeing one is all it asks."}),0===r.length?(0,t.jsx)("p",{"data-testid":"bridge-nothing-new",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing new. What you saw is in Done."}):(0,t.jsx)(n.StayAwareRows,{items:r,readAt:new Date(d),opening:e})]})})}])},55070,e=>{var t=e.i(43476);let i={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},n={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:a,variant:s="secondary",size:r="regular",children:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[r]} ${i[s]} ${o}`,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):d})},"o",0,n])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),a=e.i(96315),s=e.i(49287),r=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let u={bridge:{icon:s.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:r.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:a.f,name:"email"}};function m(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function p({places:e}){var i;let n,a=["bridge",...e].map(e=>u[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=a.map(({name:e})=>e)).at(-1)??"",i.length<2?n:`${i.slice(0,-1).join(", ")} and ${n}`)}`,className:"inline-flex items-center gap-0.5",children:a.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}e.s(["f",0,function({item:e,now:i,isNew:n,isOpen:a=!1,staleKind:s,outcome:r,failure:u,onOpen:h,time:f,detail:g,actions:b}){var x;let v=e.isAlert??!1,y=(0,o.f)({job:e.job,isAlert:v}),w=y.icon,j="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",k=void 0===s?e.title:(0,t.jsx)("s",{className:"decoration-muted-foreground",children:e.title});return(0,t.jsxs)("li",{"data-testid":"bridge-item","data-stale":void 0!==s,"aria-current":!!a||void 0,className:`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] items-start gap-x-2.5 gap-y-1.5 border-t border-border px-3 py-2.5 first:border-t-0 ${function({isOpen:e,isStale:t}){return e?"bg-highlight shadow-[inset_2px_0_0_var(--primary)]":t?"bg-muted":""}({isOpen:a,isStale:void 0!==s})}`,children:[(0,t.jsx)(w,{"aria-hidden":"true",className:`mt-0.5 size-4 ${y.tone}`}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline sm:items-center",children:[n?(0,t.jsx)("span",{"aria-label":"New",className:"mr-1.5 size-[7px] shrink-0 -translate-y-px rounded-full bg-primary"}):null,void 0===h?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:j,children:k}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:h,className:`${j} hover:underline`,children:k})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:`font-medium ${y.tone}`,children:(0,d.z)({job:e.job,isAlert:v})}),(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.from}),void 0===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsxs)("span",{"data-testid":"bridge-outcome",className:"inline-flex items-center gap-1.5",children:[void 0===s?null:(0,t.jsx)(c.f,{kind:s}),r]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(p,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:f?.at??e.sentAt,title:(x=f?.at??e.sentAt,`${new Date(x).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:f?.said??(0,d.V)(e.sentAt,i)}),void 0===g?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:g}),null==b?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2 flex flex-wrap items-center gap-1.5",children:b}),void 0===u?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:u,isFailure:!0})})]})}])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:i}){return i?(0,t.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,t.jsx)("p",{role:"status","data-testid":"bridge-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])},73459,1765,74557,8795,11156,97011,e=>{e.s(["f",0,function(e){let t=new URLSearchParams({fleet:e.fleetId,...void 0===e.cursor?{}:{cursor:e.cursor}});return`/meetings/${encodeURIComponent(e.meetingId)}?${t.toString()}`}],73459);var t=e.i(95187);let i=(0,t.createServerReference)("4005a272c7d42c49369853549fa504bfa2f5a28065",t.callServer,void 0,t.findSourceMapURL,"answerDelivery");e.s(["f",0,i],1765);let n=(0,t.createServerReference)("4006afedfc0a3ba4a084b559962062132da4a87fb3",t.callServer,void 0,t.findSourceMapURL,"doneDelivery");e.s(["f",0,n],74557);let a=(0,t.createServerReference)("60946b456da6a921986ea3d07b2f6537c5bda01bfa",t.callServer,void 0,t.findSourceMapURL,"openDelivery");e.s(["f",0,a],8795);let s=(0,t.createServerReference)("4043b8bae7efc2281930fbebb86cf40a8f63d03a8e",t.callServer,void 0,t.findSourceMapURL,"putInBasket");e.s(["f",0,s],11156);let r=(0,t.createServerReference)("407b068dc2b43638230da6c1086963ff832b2f1f41",t.callServer,void 0,t.findSourceMapURL,"putPickInBasket");e.s(["f",0,r],97011)}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55070,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",ghost:"text-foreground hover:bg-accent"},a={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:n,variant:i="secondary",size:d="regular",children:s,className:o="",disabled:l,...c}){return(0,r.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${a[d]} ${t[i]} ${o}`,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"}),n]}):s})},"o",0,a])},63132,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":"bridge-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":"bridge-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])},17433,e=>{var r=e.i(43476),t=e.i(18566),a=e.i(71645),n=e.i(55070),i=e.i(63132),d=e.i(95187);let s=(0,d.createServerReference)("
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55070,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",ghost:"text-foreground hover:bg-accent"},a={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:n,variant:i="secondary",size:d="regular",children:s,className:o="",disabled:l,...c}){return(0,r.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${a[d]} ${t[i]} ${o}`,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"}),n]}):s})},"o",0,a])},63132,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":"bridge-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":"bridge-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])},17433,e=>{var r=e.i(43476),t=e.i(18566),a=e.i(71645),n=e.i(55070),i=e.i(63132),d=e.i(95187);let s=(0,d.createServerReference)("405b99b33f3bd9c0e07e8fa8a7c900e837867a13a5",d.callServer,void 0,d.findSourceMapURL,"changeMic"),o=(0,d.createServerReference)("4099f3dd3225a78c2f89af8d9b49f34183019421d2",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)(),[g,b]=(0,a.useState)(""),[p,m]=(0,a.useState)(()=>crypto.randomUUID()),[x,h]=(0,a.useState)(),[f,v]=(0,a.useState)(),[,y]=(0,a.useTransition)(),j=({control:e,action:r,onDone:t})=>{h(e),v(void 0),y(async()=>{let e=await r();h(void 0),e.isOk?(t?.(),u.refresh()):v(e.message)})},S=void 0!==x,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:g,onChange:e=>{b(e.target.value)},className:"rounded-md border border-input bg-background p-2"})]}),(0,r.jsx)(n.i,{"data-testid":"meeting-contribute",variant:"primary",className:"justify-self-start",isPending:"contribute"===x,pendingLabel:"Sending...",disabled:S,onClick:()=>{j({control:"contribute",action:()=>o({fleet:e,meetingId:d,text:g,idempotencyKey:p}),onDone:()=>{b(""),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.i,{"data-testid":`meeting-${t}`,variant:"request"===t?"primary":"secondary",isPending:x===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===f?null:(0,r.jsx)(i.f,{message:f,isFailure:!0})]})}],17433)}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),a=e.i(71645),n=e.i(28008),t=e.i(62052),i=e.i(30402),l=e.i(94984),r=e.i(65818),d=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),a=e.i(71645),n=e.i(28008),t=e.i(62052),i=e.i(30402),l=e.i(94984),r=e.i(65818),d=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("601981feca79c981f24ea8d130152720d048bf495c",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,a.useActionState)(u,m),j="refused"===x.kind?x.fields:{};return(0,s.jsxs)("form",{action:f,className:`${i.r} grid max-w-160 gap-3`,"data-testid":"add-a2a-agent-form",children:[(0,s.jsx)("input",{type:"hidden",name:n.H,value:e}),(0,s.jsx)("input",{type:"hidden",name:"requestId",value:o}),(0,s.jsx)("h1",{className:"text-heading-touch font-semibold max-sm:sr-only",children:"Add an A2A agent"}),(0,s.jsx)(l.f,{state:"refused"===x.kind?x:{kind:"idle"}}),(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Name, the proxy ship's"}),(0,s.jsx)("input",{className:i.w,name:"name",defaultValue:j.name??"",required:!0})]}),(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Card address"}),(0,s.jsx)("input",{className:i.w,type:"url",name:"cardUrl",defaultValue:j.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)(t.f,{legend:"The agent's credential",fields:j,noneHelp:"The gateway sends no credential: for an agent that asks for none."}),(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Messages in flight at once"}),(0,s.jsx)("input",{className:i.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:j.concurrencyLimit??"4"})]}),(0,s.jsx)(r.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!==j[`${c.f}${e}`]}),(0,s.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,s.jsx)("div",{children:(0,s.jsx)(d.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"}],a={kind:"personSignIn",label:"Each person signs in"},n=[...s,a];e.s(["a",0,n,"x",0,s,"m",0,a,"G",0,function(e){return n.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),a=e.i(16327),n=e.i(71645),t=e.i(88374),i=e.i(30402);e.s(["f",0,function({legend:e,fields:l,noneHelp:r,canEachPersonSignIn:d=!1,onKindChange:c}){let o=d?t.G:t.C,[u,m]=(0,n.useState)(o(l.credentialKind??""));return(0,s.jsxs)("fieldset",{className:"grid gap-3",children:[(0,s.jsx)("legend",{className:"font-medium",children:e}),(0,s.jsxs)("span",{className:"relative",children:[(0,s.jsx)("select",{className:i.D,"aria-label":e,name:"credentialKind",value:u,onChange:e=>{let s=o(e.target.value);m(s),c?.(s)},children:(d?t.a:t.x).map(({kind:e,label:a})=>(0,s.jsx)("option",{value:e,children:a},e))}),(0,s.jsx)(a.f,{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground"})]}),"clientCredentials"===u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Client id"}),(0,s.jsx)("input",{className:i.w,type:"text",name:"clientId",defaultValue:l.clientId??""})]}),(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Client secret"}),(0,s.jsx)("input",{className:i.w,type:"password",name:"clientSecret"})]}),(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Issuer"}),(0,s.jsx)("input",{className:i.w,type:"url",name:"issuer",defaultValue:l.issuer??""})]}),(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Scope"}),(0,s.jsx)("input",{className:i.w,type:"text",name:"scope",defaultValue:l.scope??""})]})]}):"bearer"===u?(0,s.jsxs)("label",{className:i.z,children:[(0,s.jsx)("span",{children:"Bearer token"}),(0,s.jsx)("input",{className:i.w,type:"password",name:"token"})]}):u===t.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:r})]})}])},94984,e=>{var s=e.i(43476);e.s(["f",0,function({state:e,testId:a}){switch(e.kind){case"idle":return null;case"done":return(0,s.jsx)("p",{role:"status","data-testid":a,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":a,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),a=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:t,refusal:i}){let l=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,s.jsxs)("label",{className:a.z,children:[(0,s.jsx)("span",{children:"Owner"}),(0,s.jsxs)("select",{className:a.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,s.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,l.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:i??t})]})}])},58107,e=>{var s=e.i(43476),a=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:t,kind:i="primary",testId:l}){let r=(0,a.useFormStatus)();return(0,s.jsx)("button",{type:"submit",className:n.x[i],disabled:r.pending,"aria-busy":r.pending,"data-testid":l,children:r.pending?t:e})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95893,e=>{var s=e.i(43476),r=e.i(18566),n=e.i(71645),a=e.i(95187);let i=(0,a.createServerReference)("
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95893,e=>{var s=e.i(43476),r=e.i(18566),n=e.i(71645),a=e.i(95187);let i=(0,a.createServerReference)("4014092bc297e94f9971bb84bed1cfc89921b96a8a",a.callServer,void 0,a.findSourceMapURL,"decideRequest");var t=e.i(57228),l=e.i(88374),d=e.i(65818);let c=["messages:send","messages:receive"],o={"messages:send":"Send","messages:receive":"Receive","fleet:read":"Read the fleet"};var p=e.i(55070),u=e.i(63132);let m="rounded-md border border-input bg-background px-2 py-1.5";function g({scope:e,isLocked:r}){return(0,s.jsxs)("label",{className:"flex items-center gap-2",children:[r?(0,s.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,"aria-label":o[e]??e}):(0,s.jsx)("input",{type:"checkbox",name:"scope",value:e,"aria-label":o[e]??e}),(0,s.jsx)("span",{children:o[e]??e}),(0,s.jsx)("span",{className:"font-mono text-caption text-muted-foreground",children:e}),r?(0,s.jsx)("span",{className:"text-caption text-muted-foreground",children:"(always)"}):null]})}function x(e,s){let r=e.get(s);return"string"==typeof r?r:""}function b({request:e,heldScopes:r,owners:a,working:i,failure:t,onDecide:o}){let[h,j]=(0,n.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),v="server"===e.subject.kind;return(0,s.jsxs)("section",{className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,s.jsxs)("h2",{className:"text-heading font-semibold",children:["Approve ",f]}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault();let s=new FormData(e.currentTarget),r=s.getAll("scope").filter(e=>"string"==typeof e);o({kind:"approve",name:x(s,"name"),ownerShipId:x(s,"ownerShipId"),scopes:r,server:v?{credentialKind:(0,l.C)(x(s,"credentialKind")),token:x(s,"token"),clientId:x(s,"clientId"),clientSecret:x(s,"clientSecret"),issuer:x(s,"issuer"),scope:x(s,"scope-requested"),concurrencyLimit:Number(x(s,"concurrencyLimit"))}:void 0})},className:"grid gap-3",children:[(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Proxy ship's name"}),(0,s.jsx)("input",{name:"name",defaultValue:f.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),required:!0,className:m})]}),(0,s.jsx)(d.f,{choices:a.isOk?a.value:[],current:null,help:"A person ship or argo. It answers for this party.",refusal:a.isOk?void 0:a.refusal}),(0,s.jsxs)("fieldset",{className:"grid gap-1",children:[(0,s.jsx)("legend",{children:"Scopes"}),c.map(e=>(0,s.jsx)(g,{scope:e,isLocked:!0},e)),r.filter(e=>!c.includes(e)).map(e=>(0,s.jsx)(g,{scope:e,isLocked:!1},e))]}),v?(0,s.jsxs)("fieldset",{className:"grid gap-2",children:[(0,s.jsx)("legend",{children:"The server's credential"}),(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Credential"}),(0,s.jsx)("select",{name:"credentialKind",value:h,onChange:e=>{j((0,l.C)(e.target.value))},className:m,children:l.x.map(({kind:e,label:r})=>(0,s.jsx)("option",{value:e,children:r},e))})]}),"none"===h?null:"bearer"===h?(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Bearer token"}),(0,s.jsx)("input",{type:"password",name:"token",className:m})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Client id"}),(0,s.jsx)("input",{name:"clientId",className:m})]}),(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Client secret"}),(0,s.jsx)("input",{type:"password",name:"clientSecret",className:m})]}),(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Issuer"}),(0,s.jsx)("input",{type:"url",name:"issuer",className:m})]}),(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Scope"}),(0,s.jsx)("input",{name:"scope-requested",className:m})]})]}),(0,s.jsxs)("label",{className:"grid gap-1",children:[(0,s.jsx)("span",{children:"Calls at once"}),(0,s.jsx)("input",{type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:4,className:m})]})]}):null,void 0===t?null:(0,s.jsx)(u.f,{message:t,isFailure:!0}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(p.i,{type:"submit",variant:"primary","data-testid":"bridge-approve",isPending:"approve"===i,pendingLabel:"Approving...",disabled:void 0!==i,children:"Approve"}),(0,s.jsx)(p.i,{type:"button","data-testid":"bridge-deny",isPending:"deny"===i,pendingLabel:"Denying...",disabled:void 0!==i,onClick:()=>{o({kind:"deny"})},children:"Deny"})]})]})]})}e.s(["DecisionPanel",0,function({fleetId:e,request:a,heldScopes:l,owners:d}){let c=(0,r.useRouter)(),[o,p]=(0,n.useState)(),[u,m]=(0,n.useState)(),[,g]=(0,n.useTransition)();return(0,s.jsx)(b,{request:a,heldScopes:l,owners:d,working:o,failure:u,onDecide:s=>{p(s.kind),m(void 0),g(async()=>{let r=await i({fleet:e,requestId:a.requestId,input:s});r.isOk?c.push(`${t.T}?${new URLSearchParams({fleet:e,decided:s.kind}).toString()}`):(p(void 0),m(r.message))})}})}],95893)},55070,e=>{var s=e.i(43476);let r={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},n={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:a,variant:i="secondary",size:t="regular",children:l,className:d="",disabled:c,...o}){return(0,s.jsx)("button",{...o,disabled:!0===c||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[t]} ${r[i]} ${d}`,children:e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):l})},"o",0,n])},63132,e=>{var s=e.i(43476);e.s(["f",0,function({message:e,isFailure:r}){return r?(0,s.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,s.jsx)("p",{role:"status","data-testid":"bridge-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])},88374,e=>{let s=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],r={kind:"personSignIn",label:"Each person signs in"},n=[...s,r];e.s(["a",0,n,"x",0,s,"m",0,r,"G",0,function(e){return n.find(({kind:s})=>s===e)?.kind??"bearer"},"C",0,function(e){return s.find(({kind:s})=>s===e)?.kind??"bearer"}])},65818,e=>{var s=e.i(43476),r=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:a,refusal:i}){let t=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Owner"}),(0,s.jsxs)("select",{className:r.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,s.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,t.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:i??a})]})}])}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[66595,e=>{var t=e.i(56420);let
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[66595,e=>{var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let r=(0,t.f)(a);e.s(["f",0,r],66595)},95187,(e,t,a)=>{Object.defineProperty(a,"__esModule",{value:!0});var r={callServer:function(){return n.callServer},createServerReference:function(){return c.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var s in r)Object.defineProperty(a,s,{enumerable:!0,get:r[s]});let n=e.r(32120),i=e.r(92245),c=e.r(35326)},67914,e=>{var t=e.i(43476),a=e.i(71645),r=e.i(95187);let s=(0,r.createServerReference)("408f98b858ef7ecade3dba9b2a79657070a53d2ec2",r.callServer,void 0,r.findSourceMapURL,"setTheme"),n=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:r,theme:i,entries:c=[]}){let[l,d]=(0,a.useState)(i),[o,u]=(0,a.useState)(!1),m=(0,a.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:r,theme:l,themes:n,hasTheme:!0,onThemeChange:e=>{let t;d(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),s(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:o,entries:c},signOutForm:(0,t.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},84821,e=>{var t=e.i(43476),a=e.i(66595),r=e.i(68221),s=e.i(67393),n=e.i(55939),i=e.i(12911),c=e.i(11271);function l({switcher:e,account:d,onSearch:o,searchLabel:u="Search or jump to",children:m,actions:h,className:f}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,c.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",f),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)(r.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),m]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[h,o?(0,t.jsxs)(s.f,{size:"sm",icon:(0,t.jsx)(a.f,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:o,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,t.jsx)(n.f,{children:"⌘K"})]}):null,(0,t.jsx)(i.AvatarMenu,{...d})]})]})}var d=e.i(18566),o=e.i(67914),u=e.i(65894);let m=[{key:"bridge",label:"Bridge",path:"/bridge"},{key:"outside-parties",label:"Outside parties",path:"/outside-parties"},{key:"parties",label:"Parties",path:"/parties"},{key:"slack",label:"Slack",path:"/slack"}];function h({fleetId:e}){let a=(0,d.usePathname)();return(0,t.jsx)("nav",{"aria-label":"Gateway",className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:m.map(({key:r,label:s,path:n})=>{let i=a===n||a.startsWith(`${n}/`);return(0,t.jsx)("a",{href:(0,u.f)(n,e),"data-testid":`frame-tab-${r}`,"aria-current":i?"page":void 0,className:`whitespace-nowrap rounded-md px-2 py-1 text-sm ${i?"bg-accent font-semibold":"text-muted-foreground hover:bg-accent"}`,children:s},r)})})}e.s(["GatewayHeader",0,function({switchers:e,email:a,accountUrl:s,theme:n}){let c=(0,d.useSearchParams)().get("fleet"),u=e.find(({fleet:e})=>e.id===c)??e[0],{account:m,signOutForm:f}=(0,o.f)({email:a,accountUrl:s,theme:n});return(0,t.jsxs)(t.Fragment,{children:[f,(0,t.jsx)(l,{switcher:u,account:m,className:"max-sm:hidden",children:void 0===u?null:(0,t.jsx)(h,{fleetId:u.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===u?null:(0,t.jsx)(r.AppSwitcher,{switcher:u,layout:"compact",className:"min-w-0"}),void 0===u?null:(0,t.jsx)(h,{fleetId:u.fleet.id}),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)(i.AvatarMenuSheet,{...m})]})]})}],84821)},65894,e=>{e.s(["f",0,function(e,t){let[a="",r=""]=e.split("?"),s=new URLSearchParams(r);return s.set("fleet",t),`${a}?${s.toString()}`}])}],18566,(e,t,a)=>{t.exports=e.r(76562)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70812,71136,96315,28623,e=>{var t=e.i(56420);let a={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};a.node;let i=(0,t.f)(a);e.s(["f",0,i],70812);let s={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};s.node;let n=(0,t.f)(s);e.s(["f",0,n],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let d=(0,t.f)(r);e.s(["f",0,d],96315);let o={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};o.node;let l=(0,t.f)(o);e.s(["f",0,l],28623)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let a={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};a.node;let i=(0,t.f)(a);e.s(["f",0,i],59381)},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},a={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},i=["decide","do"],s="Bridge keeps every item.",n={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},d="Says only that something waits, with a link here.",o=`${d} Nothing is on until you turn it on.`,l="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,a,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${l}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${l}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:d,action:"turnOff"}:{state:r,description:o,action:"turnOn"}:{state:n,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:a})=>a.email!==t&&(!t||i.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>c[e])],a=t.at(-1),i=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(a)}`;return`Shows in ${i}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:a}=e;return null===a?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${a.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:i,place:n,isOn:r,waiting:d,isChatOn:o}=e,{name:l,item:c,items:m}=t[i],u=`${a[n]} is ${r?"on":"off"} for ${l}`;return r?"chat"===n?{title:u,detail:`A chat lists every ${c} not done when you ask it.`}:{title:u,detail:`${a[n]} shows ${m} that arrive from now on.${void 0===d||0===d?"":` The ${String(d)} already waiting ${1===d?"stays":"stay"} ${o?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:u,detail:"everything-else"===i&&"slack"===n?`Bots only: a bot ship's messages and replies to Slack still show there. ${s}`:s}},"B",0,function(e){if(!e.isOffered)return{state:n,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:a})=>t===e.ownEndpoint&&!a);return void 0===t?{state:r,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},15685,e=>{var t=e.i(43476),a=e.i(85595),i=e.i(16984),s=e.i(71645),n=e.i(95187);let r=(0,n.createServerReference)("609cde3947135dddb7e6749dfa6a43edc2eff6a9aa",n.callServer,void 0,n.findSourceMapURL,"readMoreRecord");var d=e.i(12497),o=e.i(55070),l=e.i(29247),c=e.i(54235),m=e.i(92407);function u({question:e,answered:a}){return(0,t.jsx)("ul",{className:"grid gap-2","aria-label":"Options",children:e.options.map(i=>{let s=i.key===a;return(0,t.jsxs)("li",{"data-answered":s,className:`flex items-start gap-3 rounded-md border p-3 ${s?"border-ring ring-1 ring-ring":"border-border text-muted-foreground"}`,children:[(0,t.jsx)("span",{"data-testid":"bridge-done-radio","data-filled":s,"aria-hidden":"true",className:`mt-1 grid size-4 shrink-0 place-items-center rounded-full border ${s?"border-primary":"border-border"}`,children:s?(0,t.jsx)("span",{className:"size-2 rounded-full bg-primary"}):null}),(0,t.jsxs)("span",{className:"grid flex-1 gap-0.5",children:[(0,t.jsxs)("span",{className:"font-medium",children:[i.key,". ",i.label]}),""===i.detail?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground max-md:hidden",children:i.detail})]}),i.key===e.pick.option?(0,t.jsx)("span",{className:"rounded-sm border border-border px-1.5 text-caption",children:"Their pick"}):null]},i.key)})})}function h({ended:e}){let s=e.isOk?a.f:i.f;return(0,t.jsxs)("div",{"data-testid":"bridge-done-ended",role:"status",className:`flex items-start gap-3 rounded-md border p-3 ${e.isOk?"border-tone-ok-border bg-tone-ok-bg":"border-tone-ended-border bg-tone-ended-bg"}`,children:[(0,t.jsx)(s,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0 ${e.isOk?"text-tone-ok-fg":"text-tone-ended-fg"}`}),(0,t.jsxs)("span",{className:"grid gap-0.5",children:[(0,t.jsx)("span",{className:"font-medium",children:e.text}),void 0===e.sent?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e.sent})]})]})}function p({item:e,timeZone:a}){return(0,t.jsx)("ol",{"data-testid":"bridge-done-history",className:"grid gap-1.5 text-caption max-md:hidden",children:(0,d.L)(e,a).map(e=>(0,t.jsxs)("li",{className:"grid grid-cols-[3rem_0.5rem_minmax(0,1fr)] items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground tabular-nums",children:e.at}),(0,t.jsx)("i",{"aria-hidden":"true",className:`size-1.5 rounded-full ${e.isEnd?"bg-tone-ok-fg":"bg-border"}`}),(0,t.jsxs)("span",{children:[e.text,void 0===e.detail?null:(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ",e.detail]})]})]},`${e.at} ${e.text}`))})}function x({item:e,timeZone:a,bridgeHost:i,onBack:s}){let n=(0,l.N)(e),r=(0,l.R)(e,i),o=(0,d.d)(e,a),g={job:e.job,isAlert:e.isAlert,wasNew:!1};return(0,t.jsxs)("section",{"data-testid":"bridge-done-item",className:"grid min-w-0 content-start gap-3 text-card-foreground md:p-5",children:[(0,t.jsx)(c.g,{opened:g,title:(0,d.c)(e),isWorking:!1,onBack:s}),(0,t.jsx)(c.$,{delivery:e,opened:g,timeZone:a}),(0,t.jsx)("h2",{className:"text-heading font-semibold",children:n?.title??e.title}),void 0!==r?(0,t.jsx)(c.l,{step:r,isStale:!1,isFinished:!0}):void 0===n?(0,t.jsx)(m.f,{text:(0,l.Y)(e)}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:c.R,children:(0,t.jsx)(m.f,{text:n.context})}),(0,t.jsx)(u,{question:n,answered:e.outcome?.option??null})]}),void 0===o?null:(0,t.jsx)(h,{ended:o}),(0,t.jsx)(p,{item:e,timeZone:a})]})}var g=e.i(19015),f=e.i(62579),b=e.i(63132);function y(){return()=>void 0}function j(e){return e.outcome?.at??e.sentAt}function v({item:e}){let s=(0,d.o)(e),n=s.isOk?a.f:i.f;return(0,t.jsxs)("span",{"data-testid":"bridge-done-outcome",className:"flex items-start gap-1.5 text-caption",children:[(0,t.jsx)(n,{"aria-hidden":"true",className:`mt-0.5 size-3.5 shrink-0 ${s.isOk?"text-tone-ok-fg":"text-muted-foreground"}`}),s.text]})}e.s(["DonePanel",0,function({fleetId:e,first:a,now:i}){let n=new Date(i),l=(0,s.useSyncExternalStore)(y,()=>Intl.DateTimeFormat().resolvedOptions().timeZone,()=>"UTC"),[c,m]=(0,s.useState)(a.items),[u,h]=(0,s.useState)(a.nextCursor),[p,k]=(0,s.useState)(),[w,N]=(0,s.useState)(),[$,O]=(0,s.useTransition)(),S=c.find(({deliveryId:e})=>e===w);return(0,t.jsx)(f.f,{list:(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-done-heading",children:[(0,t.jsxs)("div",{className:void 0===S?"":"md:px-3 md:pt-3",children:[(0,t.jsx)("h1",{id:"bridge-done-heading",className:"text-heading font-semibold",children:"Done"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"Everything that reached you, with what came of it and where. Opening one reads it back whole."})]}),0===c.length?(0,t.jsx)("p",{"data-testid":"bridge-record-empty",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing is done yet."}):(function(e,t){let a=[];for(let i of e){let e=(0,d.Y)(j(i),t),s=a.at(-1);s?.day===e?s.items.push(i):a.push({day:e,items:[i]})}return a})(c,{now:n,timeZone:l}).map(({day:e,items:a})=>(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("h2",{className:`text-caption text-muted-foreground ${void 0===S?"":"md:px-3"}`,children:e}),(0,t.jsx)("ul",{className:"overflow-hidden rounded-lg border border-border bg-card",children:a.map(e=>(0,t.jsx)(g.f,{item:e,now:n,isNew:!1,isOpen:e.deliveryId===w,outcome:void 0,failure:void 0,time:{at:j(e),said:(0,d.Z)(j(e),l)},detail:(0,t.jsx)(v,{item:e}),onOpen:()=>{N(e.deliveryId)}},e.deliveryId))})]},e)),void 0===p?null:(0,t.jsx)(b.f,{message:p,isFailure:!0}),null===u?null:(0,t.jsx)(o.i,{"data-testid":"bridge-more",className:"justify-self-start",isPending:$,pendingLabel:"Reading...",onClick:()=>{k(void 0),O(async()=>{let t=await r(e,u);t.isOk?(m(e=>[...e,...t.value.items]),h(t.value.nextCursor)):k(t.message)})},children:"Show older"})]}),item:void 0===S?void 0:(0,t.jsx)(x,{item:S,timeZone:l,bridgeHost:window.location.host,onBack:()=>{N(void 0)}})})}],15685)},94528,e=>{var t=e.i(43476),a=e.i(17904),i=e.i(29039);e.s(["FadedAsLastRead",0,function({children:e}){let s=(0,i.useLastReadAt)();return void 0===s?e:(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsx)("div",{inert:!0,className:"opacity-60 [&_button:not([data-testid=bridge-item-title])]:hidden",children:e}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,a.C)(s)}.`})]})}])},55070,e=>{var t=e.i(43476);let a={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},i={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:s,variant:n="secondary",size:r="regular",children:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${i[r]} ${a[n]} ${o}`,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),s]}):d})},"o",0,i])},19015,e=>{var t=e.i(43476),a=e.i(70812),i=e.i(71136),s=e.i(96315),n=e.i(49287),r=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let m={bridge:{icon:n.f,name:"Bridge"},slack:{icon:i.f,name:"Slack"},chat:{icon:r.f,name:"a chat"},"web-push":{icon:a.f,name:"web push"},email:{icon:s.f,name:"email"}};function u(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function h({places:e}){var a;let i,s=["bridge",...e].map(e=>m[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(i=(a=s.map(({name:e})=>e)).at(-1)??"",a.length<2?i:`${a.slice(0,-1).join(", ")} and ${i}`)}`,className:"inline-flex items-center gap-0.5",children:s.map(({icon:e,name:a})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},a))})}e.s(["f",0,function({item:e,now:a,isNew:i,isOpen:s=!1,staleKind:n,outcome:r,failure:m,onOpen:p,time:x,detail:g,actions:f}){var b;let y=e.isAlert??!1,j=(0,o.f)({job:e.job,isAlert:y}),v=j.icon,k="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",w=void 0===n?e.title:(0,t.jsx)("s",{className:"decoration-muted-foreground",children:e.title});return(0,t.jsxs)("li",{"data-testid":"bridge-item","data-stale":void 0!==n,"aria-current":!!s||void 0,className:`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] items-start gap-x-2.5 gap-y-1.5 border-t border-border px-3 py-2.5 first:border-t-0 ${function({isOpen:e,isStale:t}){return e?"bg-highlight shadow-[inset_2px_0_0_var(--primary)]":t?"bg-muted":""}({isOpen:s,isStale:void 0!==n})}`,children:[(0,t.jsx)(v,{"aria-hidden":"true",className:`mt-0.5 size-4 ${j.tone}`}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline sm:items-center",children:[i?(0,t.jsx)("span",{"aria-label":"New",className:"mr-1.5 size-[7px] shrink-0 -translate-y-px rounded-full bg-primary"}):null,void 0===p?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:k,children:w}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:p,className:`${k} hover:underline`,children:w})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:`font-medium ${j.tone}`,children:(0,d.z)({job:e.job,isAlert:y})}),(0,t.jsx)(u,{}),(0,t.jsx)("span",{children:e.from}),void 0===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)("span",{"data-testid":"bridge-outcome",className:"inline-flex items-center gap-1.5",children:[void 0===n?null:(0,t.jsx)(c.f,{kind:n}),r]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsx)(h,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:x?.at??e.sentAt,title:(b=x?.at??e.sentAt,`${new Date(b).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:x?.said??(0,d.V)(e.sentAt,a)}),void 0===g?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:g}),null==f?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2 flex flex-wrap items-center gap-1.5",children:f}),void 0===m?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:m,isFailure:!0})})]})}])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:a}){return a?(0,t.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,t.jsx)("p",{role:"status","data-testid":"bridge-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,70812,71136,96315,28623,e=>{var t=e.i(56420);let a={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};a.node;let i=(0,t.f)(a);e.s(["f",0,i],70812);let s={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};s.node;let n=(0,t.f)(s);e.s(["f",0,n],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let d=(0,t.f)(r);e.s(["f",0,d],96315);let o={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};o.node;let l=(0,t.f)(o);e.s(["f",0,l],28623)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let a={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};a.node;let i=(0,t.f)(a);e.s(["f",0,i],59381)},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},a={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},i=["decide","do"],s="Bridge keeps every item.",n={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},d="Says only that something waits, with a link here.",o=`${d} Nothing is on until you turn it on.`,l="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,a,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${l}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${l}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:d,action:"turnOff"}:{state:r,description:o,action:"turnOn"}:{state:n,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:a})=>a.email!==t&&(!t||i.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>c[e])],a=t.at(-1),i=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(a)}`;return`Shows in ${i}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:a}=e;return null===a?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${a.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:i,place:n,isOn:r,waiting:d,isChatOn:o}=e,{name:l,item:c,items:m}=t[i],u=`${a[n]} is ${r?"on":"off"} for ${l}`;return r?"chat"===n?{title:u,detail:`A chat lists every ${c} not done when you ask it.`}:{title:u,detail:`${a[n]} shows ${m} that arrive from now on.${void 0===d||0===d?"":` The ${String(d)} already waiting ${1===d?"stays":"stay"} ${o?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:u,detail:"everything-else"===i&&"slack"===n?`Bots only: a bot ship's messages and replies to Slack still show there. ${s}`:s}},"B",0,function(e){if(!e.isOffered)return{state:n,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:a})=>t===e.ownEndpoint&&!a);return void 0===t?{state:r,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},15685,e=>{var t=e.i(43476),a=e.i(85595),i=e.i(16984),s=e.i(71645),n=e.i(95187);let r=(0,n.createServerReference)("60651bb6c3720357100bb22cf07a2affe2ae5ba9ff",n.callServer,void 0,n.findSourceMapURL,"readMoreRecord");var d=e.i(12497),o=e.i(55070),l=e.i(29247),c=e.i(54235),m=e.i(92407);function u({question:e,answered:a}){return(0,t.jsx)("ul",{className:"grid gap-2","aria-label":"Options",children:e.options.map(i=>{let s=i.key===a;return(0,t.jsxs)("li",{"data-answered":s,className:`flex items-start gap-3 rounded-md border p-3 ${s?"border-ring ring-1 ring-ring":"border-border text-muted-foreground"}`,children:[(0,t.jsx)("span",{"data-testid":"bridge-done-radio","data-filled":s,"aria-hidden":"true",className:`mt-1 grid size-4 shrink-0 place-items-center rounded-full border ${s?"border-primary":"border-border"}`,children:s?(0,t.jsx)("span",{className:"size-2 rounded-full bg-primary"}):null}),(0,t.jsxs)("span",{className:"grid flex-1 gap-0.5",children:[(0,t.jsxs)("span",{className:"font-medium",children:[i.key,". ",i.label]}),""===i.detail?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground max-md:hidden",children:i.detail})]}),i.key===e.pick.option?(0,t.jsx)("span",{className:"rounded-sm border border-border px-1.5 text-caption",children:"Their pick"}):null]},i.key)})})}function h({ended:e}){let s=e.isOk?a.f:i.f;return(0,t.jsxs)("div",{"data-testid":"bridge-done-ended",role:"status",className:`flex items-start gap-3 rounded-md border p-3 ${e.isOk?"border-tone-ok-border bg-tone-ok-bg":"border-tone-ended-border bg-tone-ended-bg"}`,children:[(0,t.jsx)(s,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0 ${e.isOk?"text-tone-ok-fg":"text-tone-ended-fg"}`}),(0,t.jsxs)("span",{className:"grid gap-0.5",children:[(0,t.jsx)("span",{className:"font-medium",children:e.text}),void 0===e.sent?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e.sent})]})]})}function p({item:e,timeZone:a}){return(0,t.jsx)("ol",{"data-testid":"bridge-done-history",className:"grid gap-1.5 text-caption max-md:hidden",children:(0,d.L)(e,a).map(e=>(0,t.jsxs)("li",{className:"grid grid-cols-[3rem_0.5rem_minmax(0,1fr)] items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground tabular-nums",children:e.at}),(0,t.jsx)("i",{"aria-hidden":"true",className:`size-1.5 rounded-full ${e.isEnd?"bg-tone-ok-fg":"bg-border"}`}),(0,t.jsxs)("span",{children:[e.text,void 0===e.detail?null:(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ",e.detail]})]})]},`${e.at} ${e.text}`))})}function x({item:e,timeZone:a,bridgeHost:i,onBack:s}){let n=(0,l.N)(e),r=(0,l.R)(e,i),o=(0,d.d)(e,a),g={job:e.job,isAlert:e.isAlert,wasNew:!1};return(0,t.jsxs)("section",{"data-testid":"bridge-done-item",className:"grid min-w-0 content-start gap-3 text-card-foreground md:p-5",children:[(0,t.jsx)(c.g,{opened:g,title:(0,d.c)(e),isWorking:!1,onBack:s}),(0,t.jsx)(c.$,{delivery:e,opened:g,timeZone:a}),(0,t.jsx)("h2",{className:"text-heading font-semibold",children:n?.title??e.title}),void 0!==r?(0,t.jsx)(c.l,{step:r,isStale:!1,isFinished:!0}):void 0===n?(0,t.jsx)(m.f,{text:(0,l.Y)(e)}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:c.R,children:(0,t.jsx)(m.f,{text:n.context})}),(0,t.jsx)(u,{question:n,answered:e.outcome?.option??null})]}),void 0===o?null:(0,t.jsx)(h,{ended:o}),(0,t.jsx)(p,{item:e,timeZone:a})]})}var g=e.i(19015),f=e.i(62579),b=e.i(63132);function y(){return()=>void 0}function j(e){return e.outcome?.at??e.sentAt}function v({item:e}){let s=(0,d.o)(e),n=s.isOk?a.f:i.f;return(0,t.jsxs)("span",{"data-testid":"bridge-done-outcome",className:"flex items-start gap-1.5 text-caption",children:[(0,t.jsx)(n,{"aria-hidden":"true",className:`mt-0.5 size-3.5 shrink-0 ${s.isOk?"text-tone-ok-fg":"text-muted-foreground"}`}),s.text]})}e.s(["DonePanel",0,function({fleetId:e,first:a,now:i}){let n=new Date(i),l=(0,s.useSyncExternalStore)(y,()=>Intl.DateTimeFormat().resolvedOptions().timeZone,()=>"UTC"),[c,m]=(0,s.useState)(a.items),[u,h]=(0,s.useState)(a.nextCursor),[p,k]=(0,s.useState)(),[w,N]=(0,s.useState)(),[$,O]=(0,s.useTransition)(),S=c.find(({deliveryId:e})=>e===w);return(0,t.jsx)(f.f,{list:(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-done-heading",children:[(0,t.jsxs)("div",{className:void 0===S?"":"md:px-3 md:pt-3",children:[(0,t.jsx)("h1",{id:"bridge-done-heading",className:"text-heading font-semibold",children:"Done"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"Everything that reached you, with what came of it and where. Opening one reads it back whole."})]}),0===c.length?(0,t.jsx)("p",{"data-testid":"bridge-record-empty",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing is done yet."}):(function(e,t){let a=[];for(let i of e){let e=(0,d.Y)(j(i),t),s=a.at(-1);s?.day===e?s.items.push(i):a.push({day:e,items:[i]})}return a})(c,{now:n,timeZone:l}).map(({day:e,items:a})=>(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("h2",{className:`text-caption text-muted-foreground ${void 0===S?"":"md:px-3"}`,children:e}),(0,t.jsx)("ul",{className:"overflow-hidden rounded-lg border border-border bg-card",children:a.map(e=>(0,t.jsx)(g.f,{item:e,now:n,isNew:!1,isOpen:e.deliveryId===w,outcome:void 0,failure:void 0,time:{at:j(e),said:(0,d.Z)(j(e),l)},detail:(0,t.jsx)(v,{item:e}),onOpen:()=>{N(e.deliveryId)}},e.deliveryId))})]},e)),void 0===p?null:(0,t.jsx)(b.f,{message:p,isFailure:!0}),null===u?null:(0,t.jsx)(o.i,{"data-testid":"bridge-more",className:"justify-self-start",isPending:$,pendingLabel:"Reading...",onClick:()=>{k(void 0),O(async()=>{let t=await r(e,u);t.isOk?(m(e=>[...e,...t.value.items]),h(t.value.nextCursor)):k(t.message)})},children:"Show older"})]}),item:void 0===S?void 0:(0,t.jsx)(x,{item:S,timeZone:l,bridgeHost:window.location.host,onBack:()=>{N(void 0)}})})}],15685)},94528,e=>{var t=e.i(43476),a=e.i(17904),i=e.i(29039);e.s(["FadedAsLastRead",0,function({children:e}){let s=(0,i.useLastReadAt)();return void 0===s?e:(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsx)("div",{inert:!0,className:"opacity-60 [&_button:not([data-testid=bridge-item-title])]:hidden",children:e}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,a.C)(s)}.`})]})}])},55070,e=>{var t=e.i(43476);let a={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},i={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};e.s(["i",0,function({isPending:e,pendingLabel:s,variant:n="secondary",size:r="regular",children:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${i[r]} ${a[n]} ${o}`,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),s]}):d})},"o",0,i])},19015,e=>{var t=e.i(43476),a=e.i(70812),i=e.i(71136),s=e.i(96315),n=e.i(49287),r=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let m={bridge:{icon:n.f,name:"Bridge"},slack:{icon:i.f,name:"Slack"},chat:{icon:r.f,name:"a chat"},"web-push":{icon:a.f,name:"web push"},email:{icon:s.f,name:"email"}};function u(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function h({places:e}){var a;let i,s=["bridge",...e].map(e=>m[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(i=(a=s.map(({name:e})=>e)).at(-1)??"",a.length<2?i:`${a.slice(0,-1).join(", ")} and ${i}`)}`,className:"inline-flex items-center gap-0.5",children:s.map(({icon:e,name:a})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},a))})}e.s(["f",0,function({item:e,now:a,isNew:i,isOpen:s=!1,staleKind:n,outcome:r,failure:m,onOpen:p,time:x,detail:g,actions:f}){var b;let y=e.isAlert??!1,j=(0,o.f)({job:e.job,isAlert:y}),v=j.icon,k="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",w=void 0===n?e.title:(0,t.jsx)("s",{className:"decoration-muted-foreground",children:e.title});return(0,t.jsxs)("li",{"data-testid":"bridge-item","data-stale":void 0!==n,"aria-current":!!s||void 0,className:`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] items-start gap-x-2.5 gap-y-1.5 border-t border-border px-3 py-2.5 first:border-t-0 ${function({isOpen:e,isStale:t}){return e?"bg-highlight shadow-[inset_2px_0_0_var(--primary)]":t?"bg-muted":""}({isOpen:s,isStale:void 0!==n})}`,children:[(0,t.jsx)(v,{"aria-hidden":"true",className:`mt-0.5 size-4 ${j.tone}`}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline sm:items-center",children:[i?(0,t.jsx)("span",{"aria-label":"New",className:"mr-1.5 size-[7px] shrink-0 -translate-y-px rounded-full bg-primary"}):null,void 0===p?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:k,children:w}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:p,className:`${k} hover:underline`,children:w})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:`font-medium ${j.tone}`,children:(0,d.z)({job:e.job,isAlert:y})}),(0,t.jsx)(u,{}),(0,t.jsx)("span",{children:e.from}),void 0===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)("span",{"data-testid":"bridge-outcome",className:"inline-flex items-center gap-1.5",children:[void 0===n?null:(0,t.jsx)(c.f,{kind:n}),r]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsx)(h,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:x?.at??e.sentAt,title:(b=x?.at??e.sentAt,`${new Date(b).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:x?.said??(0,d.V)(e.sentAt,a)}),void 0===g?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:g}),null==f?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2 flex flex-wrap items-center gap-1.5",children:f}),void 0===m?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:m,isFailure:!0})})]})}])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:a}){return a?(0,t.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,t.jsx)("p",{role:"status","data-testid":"bridge-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
|