@aeolus-fleet/console 0.24.1 → 0.25.1
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/.next/standalone/packages/console/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/console/.next/build-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/version/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__06f_104._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__14r_nz7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__1cfwaji._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/_1uqphll._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_blueprints_[name]_page_actions_170owr_.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_templates_[name]_page_actions_09abrr0.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_needs-crew_page_actions_08gu8-f.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_network_page_actions_1muuv-j.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_questions_page_actions_12d6yd2.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_settings_page_actions_0b6qztr.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_ships_[shipId]_page_actions_0g2nd1p.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_squadrons_page_actions_1x3afts.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_trierarchs_page_actions_1ow37mz.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_needs-attention_page_actions_1jfgclw.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_squadrons_[squadronId]_page_actions_1lzqlye.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_trierarchs_[shipId]_page_actions_0l7bxva.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{[root-of-the-server]__0-cdyrs._.js → [root-of-the-server]__0_jpfes._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__197gd9r._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0-xdh8c._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_00in26l._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_01eyvjo._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0584-vx._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0-xv1jc._.js → _07bnv77._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_09_ui2l._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1_6-t9y._.js → _09we890._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0cak8i7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0i1lwyh._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ie3s47._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0j64h07._.js → _0jmht-i._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ll55v1._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0nelrz_._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0q2azsd._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qrugya._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0r-y7ty._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0tree1w._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0u0wzbz._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vw1jgi._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wy-ep_._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_11s1izd._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_127j_99._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_130xl-e._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_13q51ov._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_15_xzod._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1615ei-._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_18ym0gp._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_195z53h._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1adtjss._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1buuyye._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1cgq4el._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1geqwzr._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1hs5dvz._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1lbotqi._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1lr2spu._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1mk5_2i._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1or2awi._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1p-k4-7._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1qdwv0j._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1vwkopd._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1wmq3ah._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_207-ta6._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/node_modules_next_dist_1v8aef8._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_common_dist_1_gq_cl._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0ra01-g._.js → packages_console_0ogk6t7._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0udiuzu._.js → packages_console_0sqk26-._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1ey0_d3._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_inbox_page_actions_0q9_xye.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_labels_page_actions_0tk7mqs.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_page_actions_1ftjjyq.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_needs-attention_page_tsx_03s6y-o._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_overview-page_tsx_15siba6._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_ships_[shipId]_ship-page_tsx_0oahz0r._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_[squadronId]_page_tsx_0f8nmsh._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_page_tsx_1xpvx8n._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1_88pm4._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1cwibut._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1s1xs87._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_02isbga._.js → packages_console_features_0tur713._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_1ndu25i._.js +60 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_organisms_message-sheet_tsx_0quy9k0._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_0u86bst._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_0la8z4f._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_14icmo7._.js → packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_01eb-00._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_lib_11xnux-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/functions-config-manifest.json +2 -2
- package/.next/standalone/packages/console/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/packages/console/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/console/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/server-reference-manifest.json +17 -17
- package/.next/standalone/packages/console/.next/static/bXH06v_D0kt92IaQZhnO3/_clientMiddlewareManifest.js +6 -0
- package/.next/standalone/packages/console/.next/static/chunks/024gtos6941vd.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0bb19hfyc42kn.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2livhrlemepl2.js → 0hdn93y7e5xwj.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{05bfzj94tyl8h.js → 0jla970vmpygy.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1m-y884h34ihx.js → 0jvnv44qtww0y.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{272z35i6ulqd6.js → 0rr9rjc_bc3gf.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2ys91r118pnlx.js → 0t6-mtlfuonvu.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/0yi6kd19bc8bq.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1gzb5gjzdx1fj.js → 13adqemu7o09r.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/14gq9h4bre4zl.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1bh-eec4wo6y4.css +3 -0
- package/.next/standalone/packages/console/.next/static/chunks/1cg31hv7ug_rw.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1d60j998mgxed.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{22vsj-fp7lwfm.js → 1ek70m0owmcgq.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/1jz4bf7w_acy8.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{0pxkg9fqe7c2a.js → 1kzen4nzgfhzx.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/1s_391feiypzt.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1z5kuqw6npyei.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/26b3un_8lel5h.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2olrngonwovg1.js → 2euphq2qdtm42.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ghnwtwxugay1.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2iwxdddbd25in.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2jf-hefdqyy1k.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2kx4hg-vr3v9r.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2y1ychuj013ho.js → 2mlx4u2m3gj4n.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{440cmkngdnwjl.js → 2otflfbehbza4.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2umcallzycy-l.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2vjnc-m734xfm.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3xerv7zkfjj5f.js → 2vnmap15_4ik5.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2w9atwkwe6d4r.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2zu0p9hjzqg_-.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3-d52kayngqrj.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/31e5y4a7udpwd.js +58 -0
- package/.next/standalone/packages/console/.next/static/chunks/38apellmoht8h.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3cajv70h_jwc3.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3dmesrmg4eee9.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3dok--efprx9e.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3faqga4wbve_5.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3fz2o2p_07f9u.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3nkqw06zkp9-v.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3sgvr4qucbnoq.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3xpa57z5k1j9u.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/41sjts3oeho4o.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/4415nlj5ho-d-.js +1 -0
- package/.next/standalone/packages/console/package.json +3 -3
- package/package.json +3 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0002gxt._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_02c2pnv._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_03-jvct._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_035_swl._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_05dxqcz._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_07efnzg._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_07l5_l3._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0c8r4ic._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0c_dtjp._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0gfonj-._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mjh8m_._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vz062m._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wv-tvp._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0xokkhj._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0z4io62._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_109o83b._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_10j98zy._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_17tqcfc._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_18-oreb._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1ufgm_3._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1yexojo._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0v_tqts._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1-pfly6._.js +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/07obh07hyi82g.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/09gltimtd_1jl.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0_r81qz0t6xsb.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0ejh40p__h8t0.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0n7_dj8kftk93.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0nxdhjyy-zyni.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0pzres1skm0vd.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0y-anncq_7ras.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1-im18syfc51b.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/11eajkv31amlr.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1232gyv4_vuub.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/18sc7_9xzyla2.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1awzsmwjij89c.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1cq5tafbz355h.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1m0eh_ikmo5ic.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/23yi1fmk4otyc.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2c9rf46r9v6zt.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2iwt_mra-l0br.css +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/2l7o37ff43udf.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ncq4nhbwsdgs.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2nijjozl4ghek.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2xfw5mgj7ik9t.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2zx0k65lh804w.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/339os1nkzjvc6.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/39rzz1f2t8dal.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3b6yqiji78oyk.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3ee04cqroz80b.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3ltpx0tfiz0nk.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3n_6jrpcjyg8-.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3vuchf-sh4562.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/43-fwug3m1u53.js +0 -1
- package/.next/standalone/packages/console/.next/static/yg_hh1BH0519FZsmnyKJX/_clientMiddlewareManifest.js +0 -6
- /package/.next/standalone/packages/console/.next/static/{yg_hh1BH0519FZsmnyKJX → bXH06v_D0kt92IaQZhnO3}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{yg_hh1BH0519FZsmnyKJX → bXH06v_D0kt92IaQZhnO3}/_ssgManifest.js +0 -0
package/.next/standalone/packages/console/.next/static/chunks/{1m-y884h34ihx.js → 0jvnv44qtww0y.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},58925,e=>{"use strict";var t=e.i(56420);let s={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};s.node;let a=(0,t.default)(s);e.s(["KeyRound",0,a],58925)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},89275,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};a.node;let r=(0,s.default)(a);var n=e.i(7921),i=e.i(22016),o=e.i(15905),l=e.i(17981),d=e.i(88393);function c({settings:e,loadError:s,onRetry:a,isConnecting:m,connectError:u,onConnect:h}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the networking plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the networking plugin"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-network","data-testid":"settings-network",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-network",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(n.Network,{"aria-hidden":!0}),"Network"]}),"connected"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-network-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]}),". It supplies the rules you set on Network to the fleet."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/network"}),"data-testid":"settings-network-open",children:"Open Network"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-network-state",children:"Not connected. Connecting commissions the ship networking-plugin, which reads the fleet and alone sets who may message whom, or gives it a new starting prompt, and hands its secret to the networking plugin. No one sees the secret. Until you set rules, every ship may message every ship."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:m,onClick:h,"data-testid":"settings-network-connect",children:"Connect networking plugin"})}),void 0!==u&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the networking plugin",description:u})]})]})}function m({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:i,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read squadrons",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading squadrons"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-squadrons","data-testid":"settings-squadrons",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)("h2",{id:"settings-squadrons",className:"text-body font-semibold",children:"Squadrons"}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:"Not connected. Connecting commissions the ship squadrons, with fleet read and manage, or gives it a new starting prompt, and hands its secret to squadrons. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:c,"data-testid":"settings-squadrons-connect",children:"Connect squadrons"})}),void 0!==i&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect squadrons",description:i})]})]})}var u=e.i(22768),h=e.i(58925),x=e.i(77071),g=e.i(25398),p=e.i(66787),f=e.i(71645),j=e.i(49635),b=e.i(18310),v=e.i(24010),N=e.i(94945),y=e.i(12470),w=e.i(91727),k=e.i(67874),C=e.i(51588);let S=".aeolus/squadrons";function z({isAdding:e,addError:s,onAdd:a}){let r=(0,f.useId)(),n=(0,f.useId)(),i=(0,f.useId)(),[d,c]=(0,f.useState)(""),[m,u]=(0,f.useState)(""),[h,g]=(0,f.useState)("");return(0,t.jsxs)("form",{noValidate:!0,"data-testid":"repositories-add",className:"flex flex-col gap-3 rounded-md border border-border p-3",onSubmit:e=>{e.preventDefault();let t=m.trim(),s=h.trim();a({url:d.trim(),...""===t?{}:{path:t},...""===s?{}:{token:s}},()=>{c(""),u(""),g("")})},children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:r,children:"Repository URL"}),(0,t.jsx)(y.Input,{id:r,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:"https://github.com/acme/squadron-templates.git","data-testid":"repositories-url",value:d,onChange:e=>{c(e.target.value)}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:n,children:"Path (optional)"}),(0,t.jsx)(y.Input,{id:n,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:S,"data-testid":"repositories-path",value:m,onChange:e=>{u(e.target.value)}})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:i,children:"Read token (optional, for a private repository)"}),(0,t.jsx)(y.Input,{id:i,type:"password",autoComplete:"new-password","data-testid":"repositories-token",value:h,onChange:e=>{g(e.target.value)}}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Entered once and never shown again. To change it, remove the repository and add it again."})]}),void 0===s?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t add the repository",description:`${s} The list shows what squadrons holds.`}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.Button,{type:"submit",variant:"primary",icon:(0,t.jsx)(x.Plus,{"aria-hidden":!0}),isLoading:e,disabled:""===d.trim(),"data-testid":"repositories-add-submit",children:e?"Adding":"Add repository"})})]})}function R(e,t){return e.map(({name:e,versions:s})=>"template"===t?`${e}@${s.join(", ")}`:`${e} v${s.join(", v")}`).join(" · ")}function q({contents:e,path:s}){let{templates:a,blueprints:r,leftOut:n}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dl",{"data-testid":"repositories-found",className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5 text-meta",children:0===a.length&&0===r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Found"}),(0,t.jsxs)("dd",{children:["No templates or blueprints under ",s]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Templates"}),(0,t.jsx)("dd",{className:"font-mono",children:0===a.length?"None":R(a,"template")}),(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Blueprints"}),(0,t.jsx)("dd",{className:"font-mono",children:0===r.length?"None":R(r,"blueprint")})]})}),0===n.length?null:(0,t.jsxs)("div",{"data-testid":"repositories-left-out",className:"flex flex-col gap-1.5 rounded-md border border-tone-attention-border bg-tone-attention-bg p-2.5 text-tone-attention-fg",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-meta font-medium",children:[(0,t.jsx)(p.TriangleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Left out: ",n.length,". Fix ",1===n.length?"it":"them"," in git, tag again, then refresh."]}),(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:n.map(e=>(0,t.jsxs)("li",{"data-testid":"repositories-left-out-item",className:"text-meta text-foreground",children:[(0,t.jsx)("span",{className:"font-mono",children:(0,b.leftOutLabel)(e)}),": ",e.message]},`${e.kind} ${e.name}@${String(e.version)}`))})]})]})}function A({repository:e,contents:s,now:a,onRemove:r}){let{lastFetch:n}=e;return(0,t.jsxs)("li",{"data-testid":"repositories-row",className:"flex flex-col gap-1.5 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(C.RepositoryName,{name:e.name}),e.path===S?null:(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.path}),e.hasToken?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-muted-foreground",children:[(0,t.jsx)(h.KeyRound,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"Token"]}):null,(0,t.jsx)("span",{className:"ml-auto text-meta text-muted-foreground","data-testid":"repositories-fetched",children:null===n?"Not fetched yet":`Fetched ${(0,j.relativeTime)(new Date(n.at),a)}`}),(0,t.jsx)(o.Button,{size:"xs",variant:"ghost","data-testid":"repositories-remove",onClick:r,children:"Remove"})]}),n?.error?(0,t.jsxs)("p",{"data-testid":"repositories-error",className:"flex items-start gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(u.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The last fetch failed: ",(0,t.jsx)("span",{className:"font-mono",children:n.error})]})]}):null,void 0===s||null===n||null!==n.error&&s.templates.length+s.blueprints.length+s.leftOut.length===0?null:(0,t.jsx)(q,{contents:s,path:e.path})]})}function L(e){let{repositories:s,catalogue:a,state:r,error:n,onRetry:i,isRemoving:c,removeError:m,onRemove:u,onRemoveClosed:h,isRefreshing:x,refreshError:p,onRefresh:j,now:y}=e,[w,C]=(0,f.useState)(void 0);return(0,t.jsxs)("section",{"aria-labelledby":"settings-repositories","data-testid":"settings-repositories",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"settings-repositories",className:"text-body font-semibold",children:"Repositories"}),(0,t.jsx)(o.Button,{size:"xs",icon:(0,t.jsx)(g.RotateCw,{"aria-hidden":!0}),isLoading:x,disabled:0===s.length,onClick:j,"data-testid":"repositories-refresh",children:"Refresh"})]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["squadrons reads templates and blueprints from these repositories, under ",S," unless a repository sets its own path. It fetches one when you add it, when you refresh, and once each time squadrons connects or starts."]}),void 0===p?null:(0,t.jsx)(l.InlineError,{variant:"section",title:"Couldn’t refresh",description:p}),"loading"===r?(0,t.jsx)(d.LoadingSkeleton,{variant:"list",rows:2,label:"Loading the repositories"}):"error"===r?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the repositories",description:n,onRetry:i}):0===s.length?(0,t.jsx)(k.EmptyState,{variant:"section",title:"No repositories yet",description:"Add one to read its templates and blueprints."}):(0,t.jsx)("ul",{className:"divide-y divide-border overflow-hidden rounded-md border border-border",children:s.map(e=>(0,t.jsx)(A,{repository:e,...void 0===a?{}:{contents:(0,b.repositoryContents)(a,e.name)},now:y,onRemove:()=>{C(e.name)}},e.name))}),(0,t.jsx)(z,{isAdding:e.isAdding,addError:e.addError,onAdd:e.onAdd}),(0,t.jsx)(v.AlertDialog,{open:void 0!==w,onOpenChange:e=>{e||c||(C(void 0),h())},children:(0,t.jsxs)(v.AlertDialogContent,{"data-testid":"repositories-remove-dialog",className:N.dialogSurface.phoneSheet,children:[(0,t.jsxs)(v.AlertDialogHeader,{children:[(0,t.jsxs)(v.AlertDialogTitle,{children:["Remove ",w,"?"]}),(0,t.jsx)(v.AlertDialogDescription,{children:"Its templates and blueprints leave the catalogue at once. Squadrons formed from them keep the versions they formed from."})]}),void 0===m?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t remove the repository",description:`${m} The list shows what squadrons holds.`}),(0,t.jsxs)(v.AlertDialogFooter,{children:[(0,t.jsx)(v.AlertDialogClose,{render:(0,t.jsx)(o.Button,{disabled:c}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"destructive",isLoading:c,"data-testid":"repositories-remove-confirm",onClick:()=>{void 0!==w&&u(w,()=>{C(void 0),h()})},children:"Remove repository"})]})]})})]})}var D=e.i(86875);function I({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:c,onConnect:m}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the trierarch plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the trierarch plugin"}):(0,t.jsxs)("section",{"aria-labelledby":"settings-trierarchs","data-testid":"settings-trierarchs",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-trierarchs",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(D.ShipWheel,{"aria-hidden":!0}),"Trierarchs"]}),"none"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Not set up. ","Starts, restarts and stops sessions for crew requests on your machines. Without it, crew requests wait on Needs crew for you to crew by hand."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/trierarchs"}),"data-testid":"settings-trierarchs-how",children:"How to set it up"})})]}):"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:"Not connected. Connecting commissions the ship trierarch-plugin, which reads and manages the fleet and assigns crew requests, or gives it a new starting prompt, and hands its secret to the trierarch plugin. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:m,"data-testid":"settings-trierarchs-connect",children:"Connect trierarch plugin"})}),void 0!==c&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the trierarch plugin",description:c})]})]})}var E=e.i(77821),T=e.i(87964),B=e.i(28459),P=e.i(96676),F=e.i(78485),$=e.i(18423),M=e.i(86165),K=e.i(48695),H=e.i(46806),O=e.i(3979),_=e.i(265);e.s(["default",0,function(){let e=(0,P.useNow)(),s=(0,T.useConsoleFrame)(),a=(0,M.useHasSquadrons)(),r=(0,B.useNeedsAttention)(),n=(0,M.useSquadronsSettings)(),i=(0,M.useConnectSquadrons)(),o=(0,_.useTrierarchPluginSettings)(),l=(0,_.useConnectTrierarchPlugin)(),d=(0,H.useNetworkingPluginSettings)(),u=(0,H.useConnectNetworkingPlugin)(),h=(0,$.useLiveFleet)(),x=(0,M.useSquadronsConnection)(),g=(0,K.useRepositories)(),p=(0,K.useCatalogue)(),f=(0,K.useAddRepository)(),j=(0,K.useRemoveRepository)(),b=(0,K.useRefreshCatalogue)(),v=(0,O.usePluginNav)();return(0,F.useSignInWhenSessionEnds)([r.error,h.error]),(0,t.jsxs)(E.ListPage,{...s,title:"Settings",description:"How this installation runs. Only argo, the operator, sees this page.",live:h.live,children:[a&&(0,t.jsx)(m,{settings:n.data,loadError:n.isError?n.error.message:void 0,onRetry:()=>{n.refetch()},isConnecting:i.isPending,connectError:i.isError?i.error.message:void 0,onConnect:()=>{i.mutate()}}),v.hasSettings&&(0,t.jsx)(I,{settings:o.data,loadError:o.isError?o.error.message:void 0,onRetry:()=>{o.refetch()},isConnecting:l.isPending,connectError:l.isError?l.error.message:void 0,onConnect:()=>{l.mutate()}}),v.hasSettings&&(0,t.jsx)(c,{settings:d.data,loadError:d.isError?d.error.message:void 0,onRetry:()=>{d.refetch()},isConnecting:u.isPending,connectError:u.isError?u.error.message:void 0,onConnect:()=>{u.mutate()}}),"connected"===x&&(0,t.jsx)(L,{repositories:g.data??[],...void 0===p.data?{}:{catalogue:p.data},state:g.isError?"error":g.data?"ready":"loading",error:g.error?.message,onRetry:()=>{g.refetch()},isAdding:f.isPending,addError:f.error?.message,onAdd:(e,t)=>{f.mutate(e,{onSuccess:t})},isRemoving:j.isPending,removeError:j.error?.message,onRemove:(e,t)=>{j.mutate(e,{onSuccess:t})},onRemoveClosed:()=>{j.reset()},isRefreshing:b.isPending,refreshError:b.error?.message,onRefresh:()=>{b.mutate()},now:e})]})}],89275)},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var s=e.i(66250),a=e.i(2820),r=e.i(56736),n=e.i(9793),i=e.i(84324),o=e.i(64951),l=e.i(77173);let d=e.i(13488).DialogTrigger;var c=e.i(74217),m=e.i(25326);class u extends m.DialogHandle{}e.s(["Backdrop",()=>a.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,u,"Popup",()=>i.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,s.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new u}],34604);var h=e.i(34604),h=h,x=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:s,children:a,...r}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,x.classNames)(g.dialogSurface.popup({size:s}),e),...r,children:a})]})},"AlertDialogDescription",0,function({className:e,...s}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,x.classNames)(g.dialogSurface.description,e),...s})},"AlertDialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,x.classNames)(g.dialogSurface.footer,e),...s})},"AlertDialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,x.classNames)(g.dialogSurface.header,e),...s})},"AlertDialogTitle",0,function({className:e,...s}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,x.classNames)(g.dialogSurface.title,e),...s})}],24010)},94945,e=>{"use strict";let t={overlay:"fixed inset-0 isolate z-50 bg-overlay duration-(--duration-base) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",popup:(0,e.i(25913).cva)("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-var(--spacing)*8)] w-full max-w-[calc(100%-var(--spacing)*8)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-popover p-6 text-body text-popover-foreground shadow-lg duration-(--duration-base) outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:zoom-in-100 motion-reduce:data-closed:zoom-out-100",{variants:{size:{sm:"sm:max-w-(--size-dialog-sm)",md:"sm:max-w-(--size-dialog-md)"}},defaultVariants:{size:"sm"}}),header:"flex flex-col gap-2",footer:"flex flex-col-reverse gap-2 pt-1 sm:flex-row sm:justify-end",title:"text-heading font-semibold text-foreground",description:"text-body text-muted-foreground",phoneSheet:"max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:rounded-t-2xl max-sm:border-x-0 max-sm:border-b-0 max-sm:px-4 max-sm:pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] max-sm:[&_[data-slot=button]]:h-(--size-control-touch) max-sm:[&_[data-slot=button]]:w-full",phoneFullScreen:"max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:overflow-y-auto max-sm:rounded-none max-sm:border-0"};e.s(["dialogSurface",0,t])},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:n,variant:i="page",className:o}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",o),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",o),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",o),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:o,detail:l,onRetry:d,retryNote:c,variant:m="section",id:u,className:h}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),o?(0,t.jsx)("p",{className:"text-meta text-foreground",children:o}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",h),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),o?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:o}):null,l?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:l}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:o}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",o),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),o=e.i(36651),l=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:l=[],live:d,onCompose:m,onSearch:u}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[l.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),u?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(o.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:o,account:l,onSearch:d}){let h=d&&!o?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||h||l&&!o?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[h?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:h,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,l&&!o?(0,t.jsx)(u.AccountMenuSheet,{...l}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:o,primaryAction:l,toolbar:d,live:c,onCompose:m,onSearch:u,account:h,banner:x,children:g}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),x,(0,t.jsx)(n.TopBar,{title:e,live:c,account:h,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),o]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),l?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:l}):null]}),d,g]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(42454),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function o(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let l=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),h=e=>{o(c,e)},x=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void h(e.fleet.pathKey());let{event:o}=t;for(let t of new Set([o.shipId,o.actorShipId]))null!==t&&(h(e.fleet.ship.queryKey({shipId:t})),h(e.fleet.shipTimeline.queryKey({shipId:t})));if(null!==o.messageId&&(h(e.fleet.shipMessages.pathKey()),h(e.fleet.message.queryKey({messageId:o.messageId})),h(e.fleet.inbox.pathKey()),h(r.QUESTIONS_KEY)),s=o.type,d.has(s)&&h(e.fleet.needsAttention.queryKey()),a=o.type,l.has(a)&&h(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===o.type&&h(e.fleet.declaredNetworkRules.queryKey()),n=o.type,!i.has(n))return;h(e.fleet.list.queryKey());let{shipId:c}=o;"ShipCommissioned"===o.type&&null!==c&&u(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(x.status),newShipIds:m,error:x.error}}])},18310,51588,e=>{"use strict";function t(e){let t=/^github\.com\/([^/]+\/[^/]+)$/.exec(e);return t?.[1]===void 0?{label:e,isGitHub:!1}:{label:t[1],isGitHub:!0}}function s(e,t){let s=new Map;for(let{name:a,version:r}of e.filter(e=>e.repository===t))s.set(a,[...s.get(a)??[],r]);return[...s].map(([e,t])=>({name:e,versions:t.toSorted((e,t)=>e-t)})).toSorted((e,t)=>e.name.localeCompare(t.name))}e.s(["leftOutLabel",0,function(e){let{kind:t,name:s,version:a}=e;return"blueprint"===t?`blueprint ${s} v${String(a)}`:`${t} ${s}@${String(a)}`},"repositoryContents",0,function(e,t){return{templates:s(e.templates,t),blueprints:s(e.blueprints,t),leftOut:e.problems.filter(e=>e.repository===t)}},"repositoryLabel",0,t,"versionFileUrl",0,function(e){let{label:s,isGitHub:a}=t(e.repository);return a?`https://github.com/${s}/blob/${e.commit}/${encodeURI(e.file)}`:void 0}],18310);var a=e.i(43476),r=e.i(56420);let n={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};n.node;let i=(0,r.default)(n);function o(){return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",fill:"currentColor",className:"size-(--size-icon-sm) shrink-0",children:(0,a.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})}e.s(["RepositoryName",0,function({name:e,href:s}){let{label:r,isGitHub:n}=t(e),l=(0,a.jsxs)(a.Fragment,{children:[n?(0,a.jsx)(o,{}):(0,a.jsx)(i,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,a.jsx)("span",{className:"truncate",children:r})]}),d="inline-flex min-w-0 items-center gap-1.5 font-medium";return void 0===s?(0,a.jsx)("span",{title:e,className:d,children:l}):(0,a.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",title:e,className:`${d} hover:underline`,children:l})}],51588)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},58925,e=>{"use strict";var t=e.i(56420);let s={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};s.node;let a=(0,t.default)(s);e.s(["KeyRound",0,a],58925)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},89275,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};a.node;let r=(0,s.default)(a);var n=e.i(7921),i=e.i(22016),o=e.i(15905),l=e.i(17981),d=e.i(88393);function c({settings:e,loadError:s,onRetry:a,isConnecting:m,connectError:u,onConnect:h}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the networking plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the networking plugin"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-network","data-testid":"settings-network",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-network",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(n.Network,{"aria-hidden":!0}),"Network"]}),"connected"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-network-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]}),". It supplies the rules you set on Network to the fleet."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/network"}),"data-testid":"settings-network-open",children:"Open Network"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-network-state",children:"Not connected. Connecting commissions the ship networking-plugin, which reads the fleet and alone sets who may message whom, or gives it a new starting prompt, and hands its secret to the networking plugin. No one sees the secret. Until you set rules, every ship may message every ship."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:m,onClick:h,"data-testid":"settings-network-connect",children:"Connect networking plugin"})}),void 0!==u&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the networking plugin",description:u})]})]})}function m({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:i,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read squadrons",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading squadrons"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-squadrons","data-testid":"settings-squadrons",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)("h2",{id:"settings-squadrons",className:"text-body font-semibold",children:"Squadrons"}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:"Not connected. Connecting commissions the ship squadrons, with fleet read and manage, or gives it a new starting prompt, and hands its secret to squadrons. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:c,"data-testid":"settings-squadrons-connect",children:"Connect squadrons"})}),void 0!==i&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect squadrons",description:i})]})]})}var u=e.i(22768),h=e.i(58925),x=e.i(77071),g=e.i(25398),p=e.i(66787),f=e.i(71645),j=e.i(49635),b=e.i(18310),v=e.i(24010),y=e.i(94945),N=e.i(12470),w=e.i(91727),k=e.i(67874),C=e.i(51588);let S=".aeolus/squadrons";function z({isAdding:e,addError:s,onAdd:a}){let r=(0,f.useId)(),n=(0,f.useId)(),i=(0,f.useId)(),[d,c]=(0,f.useState)(""),[m,u]=(0,f.useState)(""),[h,g]=(0,f.useState)("");return(0,t.jsxs)("form",{noValidate:!0,"data-testid":"repositories-add",className:"flex flex-col gap-3 rounded-md border border-border p-3",onSubmit:e=>{e.preventDefault();let t=m.trim(),s=h.trim();a({url:d.trim(),...""===t?{}:{path:t},...""===s?{}:{token:s}},()=>{c(""),u(""),g("")})},children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:r,children:"Repository URL"}),(0,t.jsx)(N.Input,{id:r,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:"https://github.com/acme/squadron-templates.git","data-testid":"repositories-url",value:d,onChange:e=>{c(e.target.value)}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:n,children:"Path (optional)"}),(0,t.jsx)(N.Input,{id:n,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:S,"data-testid":"repositories-path",value:m,onChange:e=>{u(e.target.value)}})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:i,children:"Read token (optional, for a private repository)"}),(0,t.jsx)(N.Input,{id:i,type:"password",autoComplete:"new-password","data-testid":"repositories-token",value:h,onChange:e=>{g(e.target.value)}}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Entered once and never shown again. To change it, remove the repository and add it again."})]}),void 0===s?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t add the repository",description:`${s} The list shows what squadrons holds.`}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.Button,{type:"submit",variant:"primary",icon:(0,t.jsx)(x.Plus,{"aria-hidden":!0}),isLoading:e,disabled:""===d.trim(),"data-testid":"repositories-add-submit",children:e?"Adding":"Add repository"})})]})}function R(e,t){return e.map(({name:e,versions:s})=>"template"===t?`${e}@${s.join(", ")}`:`${e} v${s.join(", v")}`).join(" · ")}function q({contents:e,path:s}){let{templates:a,blueprints:r,leftOut:n}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dl",{"data-testid":"repositories-found",className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5 text-meta",children:0===a.length&&0===r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Found"}),(0,t.jsxs)("dd",{children:["No templates or blueprints under ",s]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Templates"}),(0,t.jsx)("dd",{className:"font-mono",children:0===a.length?"None":R(a,"template")}),(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Blueprints"}),(0,t.jsx)("dd",{className:"font-mono",children:0===r.length?"None":R(r,"blueprint")})]})}),0===n.length?null:(0,t.jsxs)("div",{"data-testid":"repositories-left-out",className:"flex flex-col gap-1.5 rounded-md border border-tone-attention-border bg-tone-attention-bg p-2.5 text-tone-attention-fg",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-meta font-medium",children:[(0,t.jsx)(p.TriangleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Left out: ",n.length,". Fix ",1===n.length?"it":"them"," in git, tag again, then refresh."]}),(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:n.map(e=>(0,t.jsxs)("li",{"data-testid":"repositories-left-out-item",className:"text-meta text-foreground",children:[(0,t.jsx)("span",{className:"font-mono",children:(0,b.leftOutLabel)(e)}),": ",e.message]},`${e.kind} ${e.name}@${String(e.version)}`))})]})]})}function A({repository:e,contents:s,now:a,onRemove:r}){let{lastFetch:n}=e;return(0,t.jsxs)("li",{"data-testid":"repositories-row",className:"flex flex-col gap-1.5 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(C.RepositoryName,{name:e.name}),e.path===S?null:(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.path}),e.hasToken?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-muted-foreground",children:[(0,t.jsx)(h.KeyRound,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"Token"]}):null,(0,t.jsx)("span",{className:"ml-auto text-meta text-muted-foreground","data-testid":"repositories-fetched",children:null===n?"Not fetched yet":`Fetched ${(0,j.relativeTime)(new Date(n.at),a)}`}),(0,t.jsx)(o.Button,{size:"xs",variant:"ghost","data-testid":"repositories-remove",onClick:r,children:"Remove"})]}),n?.error?(0,t.jsxs)("p",{"data-testid":"repositories-error",className:"flex items-start gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(u.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The last fetch failed: ",(0,t.jsx)("span",{className:"font-mono",children:n.error})]})]}):null,void 0===s||null===n||null!==n.error&&s.templates.length+s.blueprints.length+s.leftOut.length===0?null:(0,t.jsx)(q,{contents:s,path:e.path})]})}function L(e){let{repositories:s,catalogue:a,state:r,error:n,onRetry:i,isRemoving:c,removeError:m,onRemove:u,onRemoveClosed:h,isRefreshing:x,refreshError:p,onRefresh:j,now:N}=e,[w,C]=(0,f.useState)(void 0);return(0,t.jsxs)("section",{"aria-labelledby":"settings-repositories","data-testid":"settings-repositories",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"settings-repositories",className:"text-body font-semibold",children:"Repositories"}),(0,t.jsx)(o.Button,{size:"xs",icon:(0,t.jsx)(g.RotateCw,{"aria-hidden":!0}),isLoading:x,disabled:0===s.length,onClick:j,"data-testid":"repositories-refresh",children:"Refresh"})]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["squadrons reads templates and blueprints from these repositories, under ",S," unless a repository sets its own path. It fetches one when you add it, when you refresh, and once each time squadrons connects or starts."]}),void 0===p?null:(0,t.jsx)(l.InlineError,{variant:"section",title:"Couldn’t refresh",description:p}),"loading"===r?(0,t.jsx)(d.LoadingSkeleton,{variant:"list",rows:2,label:"Loading the repositories"}):"error"===r?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the repositories",description:n,onRetry:i}):0===s.length?(0,t.jsx)(k.EmptyState,{variant:"section",title:"No repositories yet",description:"Add one to read its templates and blueprints."}):(0,t.jsx)("ul",{className:"divide-y divide-border overflow-hidden rounded-md border border-border",children:s.map(e=>(0,t.jsx)(A,{repository:e,...void 0===a?{}:{contents:(0,b.repositoryContents)(a,e.name)},now:N,onRemove:()=>{C(e.name)}},e.name))}),(0,t.jsx)(z,{isAdding:e.isAdding,addError:e.addError,onAdd:e.onAdd}),(0,t.jsx)(v.AlertDialog,{open:void 0!==w,onOpenChange:e=>{e||c||(C(void 0),h())},children:(0,t.jsxs)(v.AlertDialogContent,{"data-testid":"repositories-remove-dialog",className:y.dialogSurface.phoneSheet,children:[(0,t.jsxs)(v.AlertDialogHeader,{children:[(0,t.jsxs)(v.AlertDialogTitle,{children:["Remove ",w,"?"]}),(0,t.jsx)(v.AlertDialogDescription,{children:"Its templates and blueprints leave the catalogue at once. Squadrons formed from them keep the versions they formed from."})]}),void 0===m?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t remove the repository",description:`${m} The list shows what squadrons holds.`}),(0,t.jsxs)(v.AlertDialogFooter,{children:[(0,t.jsx)(v.AlertDialogClose,{render:(0,t.jsx)(o.Button,{disabled:c}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"destructive",isLoading:c,"data-testid":"repositories-remove-confirm",onClick:()=>{void 0!==w&&u(w,()=>{C(void 0),h()})},children:"Remove repository"})]})]})})]})}var D=e.i(86875);function I({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:c,onConnect:m}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the trierarch plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the trierarch plugin"}):(0,t.jsxs)("section",{"aria-labelledby":"settings-trierarchs","data-testid":"settings-trierarchs",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-trierarchs",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(D.ShipWheel,{"aria-hidden":!0}),"Trierarchs"]}),"none"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Not set up. ","Starts, restarts and stops sessions for crew requests on your machines. Without it, crew requests wait on Needs crew for you to crew by hand."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/trierarchs"}),"data-testid":"settings-trierarchs-how",children:"How to set it up"})})]}):"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:"Not connected. Connecting commissions the ship trierarch-plugin, which reads and manages the fleet and assigns crew requests, or gives it a new starting prompt, and hands its secret to the trierarch plugin. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:m,"data-testid":"settings-trierarchs-connect",children:"Connect trierarch plugin"})}),void 0!==c&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the trierarch plugin",description:c})]})]})}var E=e.i(77821),T=e.i(87964),B=e.i(28459),P=e.i(96676),F=e.i(78485),K=e.i(18423),$=e.i(86165),M=e.i(48695),H=e.i(46806),O=e.i(3979),_=e.i(265);e.s(["default",0,function(){let e=(0,P.useNow)(),s=(0,T.useConsoleFrame)(),a=(0,$.useHasSquadrons)(),r=(0,B.useNeedsAttention)(),n=(0,$.useSquadronsSettings)(),i=(0,$.useConnectSquadrons)(),o=(0,_.useTrierarchPluginSettings)(),l=(0,_.useConnectTrierarchPlugin)(),d=(0,H.useNetworkingPluginSettings)(),u=(0,H.useConnectNetworkingPlugin)(),h=(0,K.useLiveFleet)(),x=(0,$.useSquadronsConnection)(),g=(0,M.useRepositories)(),p=(0,M.useCatalogue)(),f=(0,M.useAddRepository)(),j=(0,M.useRemoveRepository)(),b=(0,M.useRefreshCatalogue)(),v=(0,O.usePluginNav)();return(0,F.useSignInWhenSessionEnds)([r.error,h.error]),(0,t.jsxs)(E.ListPage,{...s,title:"Settings",description:"How this installation runs. Only argo, the operator, sees this page.",live:h.live,children:[a&&(0,t.jsx)(m,{settings:n.data,loadError:n.isError?n.error.message:void 0,onRetry:()=>{n.refetch()},isConnecting:i.isPending,connectError:i.isError?i.error.message:void 0,onConnect:()=>{i.mutate()}}),v.hasSettings&&(0,t.jsx)(I,{settings:o.data,loadError:o.isError?o.error.message:void 0,onRetry:()=>{o.refetch()},isConnecting:l.isPending,connectError:l.isError?l.error.message:void 0,onConnect:()=>{l.mutate()}}),v.hasSettings&&(0,t.jsx)(c,{settings:d.data,loadError:d.isError?d.error.message:void 0,onRetry:()=>{d.refetch()},isConnecting:u.isPending,connectError:u.isError?u.error.message:void 0,onConnect:()=>{u.mutate()}}),"connected"===x&&(0,t.jsx)(L,{repositories:g.data??[],...void 0===p.data?{}:{catalogue:p.data},state:g.isError?"error":g.data?"ready":"loading",error:g.error?.message,onRetry:()=>{g.refetch()},isAdding:f.isPending,addError:f.error?.message,onAdd:(e,t)=>{f.mutate(e,{onSuccess:t})},isRemoving:j.isPending,removeError:j.error?.message,onRemove:(e,t)=>{j.mutate(e,{onSuccess:t})},onRemoveClosed:()=>{j.reset()},isRefreshing:b.isPending,refreshError:b.error?.message,onRefresh:()=>{b.mutate()},now:e})]})}],89275)},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var s=e.i(66250),a=e.i(2820),r=e.i(56736),n=e.i(9793),i=e.i(84324),o=e.i(64951),l=e.i(77173);let d=e.i(13488).DialogTrigger;var c=e.i(74217),m=e.i(25326);class u extends m.DialogHandle{}e.s(["Backdrop",()=>a.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,u,"Popup",()=>i.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,s.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new u}],34604);var h=e.i(34604),h=h,x=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:s,children:a,...r}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,x.classNames)(g.dialogSurface.popup({size:s}),e),...r,children:a})]})},"AlertDialogDescription",0,function({className:e,...s}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,x.classNames)(g.dialogSurface.description,e),...s})},"AlertDialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,x.classNames)(g.dialogSurface.footer,e),...s})},"AlertDialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,x.classNames)(g.dialogSurface.header,e),...s})},"AlertDialogTitle",0,function({className:e,...s}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,x.classNames)(g.dialogSurface.title,e),...s})}],24010)},94945,e=>{"use strict";let t={overlay:"fixed inset-0 isolate z-50 bg-overlay duration-(--duration-base) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",popup:(0,e.i(25913).cva)("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-var(--spacing)*8)] w-full max-w-[calc(100%-var(--spacing)*8)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-popover p-6 text-body text-popover-foreground shadow-lg duration-(--duration-base) outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:zoom-in-100 motion-reduce:data-closed:zoom-out-100",{variants:{size:{sm:"sm:max-w-(--size-dialog-sm)",md:"sm:max-w-(--size-dialog-md)"}},defaultVariants:{size:"sm"}}),header:"flex flex-col gap-2",footer:"flex flex-col-reverse gap-2 pt-1 sm:flex-row sm:justify-end",title:"text-heading font-semibold text-foreground",description:"text-body text-muted-foreground",phoneSheet:"max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:rounded-t-2xl max-sm:border-x-0 max-sm:border-b-0 max-sm:px-4 max-sm:pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] max-sm:[&_[data-slot=button]]:h-(--size-control-touch) max-sm:[&_[data-slot=button]]:w-full",phoneFullScreen:"max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:overflow-y-auto max-sm:rounded-none max-sm:border-0"};e.s(["dialogSurface",0,t])},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:n,variant:i="page",className:o}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",o),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",o),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",o),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:o,detail:l,onRetry:d,retryNote:c,variant:m="section",id:u,className:h}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),o?(0,t.jsx)("p",{className:"text-meta text-foreground",children:o}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",h),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),o?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:o}):null,l?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:l}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:o}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",o),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),o=e.i(36651),l=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:l=[],live:d,onCompose:m,onSearch:u}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[l.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),u?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(o.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:o,account:l,onSearch:d}){let h=d&&!o?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||h||l&&!o?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[h?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:h,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,l&&!o?(0,t.jsx)(u.AccountMenuSheet,{...l}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:o,primaryAction:l,toolbar:d,live:c,onCompose:m,onSearch:u,account:h,banner:x,children:g}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),x,(0,t.jsx)(n.TopBar,{title:e,live:c,account:h,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),o]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),l?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:l}):null]}),d,g]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(42454),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function o(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let l=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),h=e=>{o(c,e)},x=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void h(e.fleet.pathKey());let{event:o}=t;for(let t of new Set([o.shipId,o.actorShipId]))null!==t&&(h(e.fleet.ship.queryKey({shipId:t})),h(e.fleet.shipTimeline.queryKey({shipId:t})),h(e.fleet.shipWay.queryKey({shipId:t})));if(null!==o.messageId&&(h(e.fleet.shipMessages.pathKey()),h(e.fleet.shipWay.pathKey()),h(e.fleet.overdue.queryKey()),h(e.fleet.message.queryKey({messageId:o.messageId})),h(e.fleet.inbox.pathKey()),h(r.QUESTIONS_KEY),h(e.fleet.noShipCanTake.queryKey())),s=o.type,d.has(s)&&h(e.fleet.needsAttention.queryKey()),a=o.type,l.has(a)&&h(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===o.type&&h(e.fleet.declaredNetworkRules.queryKey()),n=o.type,!i.has(n))return;h(e.fleet.list.queryKey()),h(e.fleet.noShipCanTake.queryKey());let{shipId:c}=o;"ShipCommissioned"===o.type&&null!==c&&u(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(x.status),newShipIds:m,error:x.error}}])},18310,51588,e=>{"use strict";function t(e){let t=/^github\.com\/([^/]+\/[^/]+)$/.exec(e);return t?.[1]===void 0?{label:e,isGitHub:!1}:{label:t[1],isGitHub:!0}}function s(e,t){let s=new Map;for(let{name:a,version:r}of e.filter(e=>e.repository===t))s.set(a,[...s.get(a)??[],r]);return[...s].map(([e,t])=>({name:e,versions:t.toSorted((e,t)=>e-t)})).toSorted((e,t)=>e.name.localeCompare(t.name))}e.s(["leftOutLabel",0,function(e){let{kind:t,name:s,version:a}=e;return"blueprint"===t?`blueprint ${s} v${String(a)}`:`${t} ${s}@${String(a)}`},"repositoryContents",0,function(e,t){return{templates:s(e.templates,t),blueprints:s(e.blueprints,t),leftOut:e.problems.filter(e=>e.repository===t)}},"repositoryLabel",0,t,"versionFileUrl",0,function(e){let{label:s,isGitHub:a}=t(e.repository);return a?`https://github.com/${s}/blob/${e.commit}/${encodeURI(e.file)}`:void 0}],18310);var a=e.i(43476),r=e.i(56420);let n={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};n.node;let i=(0,r.default)(n);function o(){return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",fill:"currentColor",className:"size-(--size-icon-sm) shrink-0",children:(0,a.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})}e.s(["RepositoryName",0,function({name:e,href:s}){let{label:r,isGitHub:n}=t(e),l=(0,a.jsxs)(a.Fragment,{children:[n?(0,a.jsx)(o,{}):(0,a.jsx)(i,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,a.jsx)("span",{className:"truncate",children:r})]}),d="inline-flex min-w-0 items-center gap-1.5 font-medium";return void 0===s?(0,a.jsx)("span",{title:e,className:d,children:l}):(0,a.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",title:e,className:`${d} hover:underline`,children:l})}],51588)}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{272z35i6ulqd6.js → 0rr9rjc_bc3gf.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},30274,e=>{"use strict";var t=e.i(56420);let s={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};s.node;let a=(0,t.default)(s);e.s(["Send",0,a],30274)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},46964,e=>{"use strict";var t=e.i(43476),s=e.i(18566),a=e.i(71645),r=e.i(41880),n=e.i(89664),i=e.i(24071),l=e.i(85595),o=e.i(44594),d=e.i(30274),c=e.i(90063),m=e.i(69693),u=e.i(49635),x=e.i(74470),h=e.i(15905),f=e.i(91727),g=e.i(60592),b=e.i(43988),p=e.i(67874),v=e.i(17981),j=e.i(88393),y=e.i(31071),N=e.i(39448);let w=[{value:"open",label:"Open"},{value:"done",label:"Done"},{value:"all",label:"All"}];function k(e){return"acknowledged"===e.state}function S({filter:e,onFilterChange:s,counts:a}){return(0,t.jsx)(g.Tabs,{value:e,onValueChange:e=>{let t=w.find(t=>t.value===e);t&&s(t.value)},children:(0,t.jsx)(g.TabsList,{"aria-label":"Show",className:"max-sm:w-full",children:w.map(({value:e,label:s})=>(0,t.jsxs)(g.TabsTrigger,{value:e,"data-testid":`inbox-filter-${e}`,className:"max-sm:grow",children:[s,void 0===a[e]?null:(0,t.jsx)(g.TabsCount,{children:a[e]})]},e))})})}function C({message:e}){let{payload:s,contentType:a}=e.message;return(0,t.jsx)("span",{className:(0,c.classNames)("block min-w-0 truncate text-muted-foreground",(0,m.isJson)(a)?"font-mono text-id":"text-meta max-sm:text-body"),children:s.split("\n")[0]})}function z({messages:e,selectedId:s,onSelect:a,now:r}){return(0,t.jsx)("ul",{"aria-label":"Messages to argo",className:"flex flex-col max-sm:gap-2",children:e.map(e=>{let n=new Date(e.message.sentAt),i=null===e.readAt&&!k(e),o=e.deliveryId===s;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button","data-testid":"inbox-row","data-delivery-id":e.deliveryId,"aria-current":o?"true":void 0,onClick:()=>{a(e.deliveryId)},className:"relative flex w-full min-w-0 flex-col gap-1 border-b border-border py-2.5 pr-3 pl-5 text-left transition-colors duration-(--duration-fast) outline-none hover:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring aria-[current=true]:bg-accent max-sm:rounded-lg max-sm:border max-sm:bg-card max-sm:py-3",children:[i?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-4 left-2 size-1.5 rounded-full bg-primary max-sm:top-4.5"}):null,(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[k(e)?(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}):null,(0,t.jsx)(N.ShipName,{name:e.message.sender.name,shipId:e.message.sender.id,isSuffixShown:!0,className:(0,c.classNames)("min-w-0",i?"font-semibold":void 0,k(e)?"text-muted-foreground":void 0)}),(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(n),className:"ml-auto shrink-0 text-meta text-muted-foreground tabular-nums",children:r.getTime()-n.getTime()<864e5?(0,u.clockTime)(n):(0,u.shortDateTime)(n)})]}),(0,t.jsx)(C,{message:e}),i?(0,t.jsx)("span",{className:"sr-only",children:"Unread"}):null]})},e.deliveryId)})})}function I({message:e}){if(null===e.doneAt)return null;let s=new Date(e.doneAt);return(0,t.jsxs)("p",{"data-testid":"inbox-done-notice",className:"flex items-center gap-2 rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-meta text-tone-ok-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0}),"Done. Acknowledged at"," ",(0,t.jsx)("time",{dateTime:e.doneAt,title:(0,u.fullDateTime)(s),children:(0,u.clockTime)(s)}),null===e.repliedWith?".":", when you replied."]})}function R({message:e}){let{payload:s,contentType:a}=e.message,r=(0,m.formattedPayload)(s,a);return(0,t.jsx)("pre",{className:(0,c.classNames)("max-h-96 overflow-auto rounded-md border border-border bg-card px-3.5 py-3 whitespace-pre-wrap text-foreground [overflow-wrap:anywhere]",(0,m.isJson)(a)?"font-mono text-code":"font-sans text-body max-sm:text-body-touch"),children:r??s})}function T({message:e,onReply:s,isPending:r,isPhone:n}){let i=(0,a.useId)(),l=(0,a.useId)(),[o,c]=(0,a.useState)(""),m=(0,x.useShortcutPlatform)(),u=e.message.sender.name;return(0,t.jsxs)("form",{className:"flex flex-col gap-1.5 border-t border-border pt-3",onSubmit:t=>{t.preventDefault(),""===o.trim()||r||s({deliveryId:e.deliveryId,payload:o})},children:[(0,t.jsxs)(f.Label,{htmlFor:i,children:["Reply to ",u]}),(0,t.jsx)(b.Textarea,{id:i,rows:3,size:n?"touch":"md",placeholder:"Write a reply",value:o,onChange:e=>{c(e.target.value)},onKeyDown:x.submitOnSendShortcut,"aria-describedby":l,"data-testid":"inbox-reply"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{id:l,className:"text-meta text-muted-foreground",children:k(e)?"Sent as a new message.":"Sending also marks this one done."}),(0,t.jsxs)(h.Button,{type:"submit",variant:"primary",size:n?"touch":"sm",icon:(0,t.jsx)(d.Send,{"aria-hidden":!0}),isLoading:r,disabled:""===o.trim()&&!r,"aria-keyshortcuts":null===m?void 0:(0,x.sendShortcutAria)(m),"data-testid":"inbox-reply-send",children:["Send reply",null===m?null:(0,t.jsx)(y.SendShortcutHint,{platform:m})]})]})]})}function A({message:e,onMarkDone:s,onMarkUnread:a,onReply:r,pendingIds:i,isPhone:l,isReadOnly:o=!1}){let d=i.has(e.deliveryId),m=new Date(e.message.sentAt),x=e.message.sender;return(0,t.jsxs)("article",{"aria-label":`Message from ${x.name}`,"data-testid":"inbox-message",className:(0,c.classNames)("flex min-h-0 flex-col gap-3",l?"grow":"h-full"),children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"min-w-0 text-heading font-semibold",children:(0,t.jsx)(N.ShipName,{name:x.name,shipId:x.id,isSuffixShown:!0})}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["To argo ·"," ",(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(m),children:(0,u.shortDateTime)(m)})]})]}),k(e)||o?null:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(h.Button,{size:l?"touch":"sm",icon:(0,t.jsx)(n.Check,{"aria-hidden":!0}),isLoading:d,"data-testid":"inbox-mark-done",onClick:()=>{s(e.deliveryId)},children:"Mark done"}),(0,t.jsx)(h.Button,{variant:"ghost",size:l?"touch":"sm",disabled:d,"data-testid":"inbox-mark-unread",onClick:()=>{a(e.deliveryId)},children:"Mark as unread"})]})]}),(0,t.jsx)(I,{message:e}),(0,t.jsx)("div",{className:"min-h-0 grow overflow-y-auto",children:(0,t.jsx)(R,{message:e})}),o?(0,t.jsx)("p",{"data-testid":"inbox-read-only",className:"border-t border-border pt-3 text-meta text-muted-foreground",children:"Read-only: you see argo’s inbox, and can’t reply or mark messages done."}):(0,t.jsx)("div",{className:l?"sticky bottom-0 bg-background pb-[env(safe-area-inset-bottom)]":void 0,children:(0,t.jsx)(T,{message:e,onReply:r,isPending:d,isPhone:l},`${e.deliveryId}-${e.state}`)})]})}function L({messages:e,filter:s,onFilterChange:a,counts:r,selectedId:n,onSelect:l,state:d,onRetry:c,now:m,...u}){if("loading"===d)return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"loading",className:"grid gap-4 sm:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]",children:[(0,t.jsx)(j.LoadingSkeleton,{variant:"list",rows:5,label:"Loading your inbox"}),(0,t.jsx)(j.LoadingSkeleton,{variant:"detail",label:"Loading the message",className:"max-sm:hidden"})]});if("error"===d)return(0,t.jsx)("div",{"data-slot":"operator-inbox","data-state":"error","data-testid":"inbox-error",children:(0,t.jsx)(v.InlineError,{variant:"page",title:"Couldn’t load your inbox",description:"This page couldn’t reach the fleet server. Messages to argo are stored on the server, so nothing is lost.",onRetry:c})});let x=e.find(e=>e.deliveryId===n),f=(0,t.jsx)(S,{filter:s,onFilterChange:a,counts:r}),g=(0,t.jsx)("div",{"data-testid":"inbox-empty",children:(0,t.jsx)(p.EmptyState,{icon:(0,t.jsx)(o.Inbox,{}),title:"done"===s?"Nothing done yet":"No messages for you",description:"done"===s?"Messages you mark done or reply to show up here.":"When a ship sends a message to argo, it shows up here. You can reply from the message."})});return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"ready",children:[(0,t.jsxs)("div",{className:"grid min-h-128 grid-cols-[minmax(0,2fr)_minmax(0,3fr)] overflow-hidden rounded-lg border border-border bg-card max-sm:hidden",children:[(0,t.jsxs)("div",{className:"flex min-h-0 flex-col border-r border-border",children:[(0,t.jsx)("div",{className:"border-b border-border p-2.5",children:f}),0===e.length?(0,t.jsx)("div",{className:"p-4",children:g}):(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-col bg-background p-5",children:x?(0,t.jsx)(A,{message:x,isPhone:!1,...u}):(0,t.jsx)("p",{className:"m-auto text-meta text-muted-foreground",children:0===e.length?null:!0===u.isReadOnly?"Choose a message to read it.":"Choose a message to read it and reply."})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3 sm:hidden",children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"touch",icon:(0,t.jsx)(i.ChevronLeft,{"aria-hidden":!0}),className:"-ml-2 self-start","data-testid":"inbox-back",onClick:()=>{l(void 0)},children:"Inbox"}),(0,t.jsx)(A,{message:x,isPhone:!0,...u})]}):(0,t.jsxs)(t.Fragment,{children:[f,0===e.length?g:(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]})})]})}var M=e.i(77821),D=e.i(87964),O=e.i(86413),P=e.i(90262),K=e.i(42454),q=e.i(18423),E=e.i(96676),B=e.i(78485);e.s(["InboxPageFor",0,function({filterParameter:e,selectedId:n}){let i=(0,s.useRouter)(),l=(0,E.useNow)(),o=(0,O.readInboxFilter)(e),d=(0,O.useInbox)(),c=(0,O.useMarkRead)(),m=(0,O.useMarkDone)(),u=(0,O.useReply)(),x=(0,q.useLiveFleet)(),h=(0,D.useConsoleFrame)();(0,B.useSignInWhenSessionEnds)([d.error,x.error]);let f=(0,P.useAccess)(),[g,b]=(0,a.useState)(new Set),p=(0,K.useQuestions)(),v=(0,K.questionDeliveryIdsOf)(p.data??[]),j=void 0!==p.data||p.isError,y=(0,O.plainMessagesOf)(d.data??[],v),N=e=>{i.replace((0,O.inboxPathOf)(e),{scroll:!1})},w=({deliveryId:e,run:t,failure:s})=>{b(t=>new Set([...t,e])),t().catch(e=>{(0,r.showToast)({title:s,description:e instanceof Error?e.message:"Try again in a moment.",tone:"error"})}).finally(()=>{b(t=>new Set([...t].filter(t=>t!==e)))})};return(0,t.jsx)(M.ListPage,{...h,title:"Operator inbox",description:"Messages ships sent to argo. Opening one marks it read; Mark done or Reply acknowledges it.",live:x.live,children:(0,t.jsx)(L,{isReadOnly:!f.canReceive,messages:(0,O.messagesFor)(y,o),filter:o,onFilterChange:e=>{N({filter:e})},counts:d.data&&j?(0,O.filterCounts)(y):{},selectedId:n,onSelect:e=>{N({filter:o,deliveryId:e});let t=y.find(t=>t.deliveryId===e);void 0!==e&&t?.readAt===null&&f.canReceive&&c.mutate({deliveryId:e,isRead:!0})},state:d.isError?"error":d.data&&j?"ready":"loading",onRetry:()=>{d.refetch()},onMarkDone:e=>{w({deliveryId:e,run:()=>m.mutateAsync({deliveryId:e}),failure:"Couldn’t mark the message done"})},onMarkUnread:e=>{w({deliveryId:e,run:()=>c.mutateAsync({deliveryId:e,isRead:!1}),failure:"Couldn’t mark the message unread"}),N({filter:o})},onReply:({deliveryId:e,payload:t})=>{w({deliveryId:e,run:()=>u.mutateAsync({deliveryId:e,payload:t,idempotencyKey:`reply-${e}-${crypto.randomUUID()}`}),failure:"Couldn’t send the reply"})},pendingIds:g,now:l})})}],46964)},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},43988,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(90063);let r=(0,s.cva)("w-full min-w-0 resize-none rounded-md border border-input bg-card px-3 py-2 text-foreground shadow-sm transition-[border-color,box-shadow] duration-(--duration-fast) outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/22 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/16 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 disabled:shadow-none",{variants:{size:{md:"text-body",touch:"rounded-lg text-input-touch"},isMono:{true:"font-mono",false:""}},compoundVariants:[{size:"md",isMono:!0,className:"text-code"}],defaultVariants:{size:"md",isMono:!1}});e.s(["Textarea",0,function({className:e,size:s,isMono:n,rows:i=4,...l}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:i,className:(0,a.classNames)(r({size:s,isMono:n}),e),...l})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:n,variant:i="page",className:l}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:o,onRetry:d,retryNote:c,variant:m="section",id:u,className:x}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",x),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",x),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",x),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,o?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:o}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},39448,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(22016),r=e.i(90063);let n=(0,s.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:s,size:i,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:c}){let m=d?(0,t.jsx)(a.default,{href:d,className:(0,r.classNames)(n({size:i}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:n({size:i}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,r.classNames)("inline-flex min-w-0 items-baseline gap-1.5",c),children:[m,o?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,l&&!o?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),s.slice(-4)]}):null]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),l=e.i(36651),o=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:m,onSearch:u}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),u?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:l,account:o,onSearch:d}){let x=d&&!l?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||x||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,o&&!l?(0,t.jsx)(u.AccountMenuSheet,{...o}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:l,primaryAction:o,toolbar:d,live:c,onCompose:m,onSearch:u,account:x,banner:h,children:f}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),h,(0,t.jsx)(n.TopBar,{title:e,live:c,account:x,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),l]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,f]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(42454),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),x=e=>{l(c,e)},h=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void x(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(x(e.fleet.ship.queryKey({shipId:t})),x(e.fleet.shipTimeline.queryKey({shipId:t})));if(null!==l.messageId&&(x(e.fleet.shipMessages.pathKey()),x(e.fleet.message.queryKey({messageId:l.messageId})),x(e.fleet.inbox.pathKey()),x(r.QUESTIONS_KEY)),s=l.type,d.has(s)&&x(e.fleet.needsAttention.queryKey()),a=l.type,o.has(a)&&x(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&x(e.fleet.declaredNetworkRules.queryKey()),n=l.type,!i.has(n))return;x(e.fleet.list.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&u(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(h.status),newShipIds:m,error:h.error}}])},69693,e=>{"use strict";var t=e.i(46150);function s(e){let t=e.split(";")[0]?.trim().toLowerCase()??"";return"application/json"===t||t.endsWith("+json")}e.s(["formattedPayload",0,function(e,t){if(s(t))try{return JSON.stringify(JSON.parse(e),null,2)}catch{return}},"isJson",0,s,"payloadLabel",0,function(e,a){let r=s(a)?"JSON":a.split(";")[0]?.trim()??a,n=new TextEncoder().encode(e).byteLength;return`${r} \xb7 ${(0,t.counted)(n,{one:"byte",many:"bytes"})}`}])},74470,31071,e=>{"use strict";var t=e.i(71645);let s=/Mac|iPhone|iPad|iPod/;function a(e){return"mac"===e?"⌘↵":"Ctrl ↵"}function r(){return()=>void 0}function n(){var e;return e=navigator.userAgent,s.test(e)?"mac":"other"}function i(){return null}e.s(["sendShortcutAria",0,function(e){return"mac"===e?"Meta+Enter":"Control+Enter"},"sendShortcutKeys",0,a,"submitOnSendShortcut",0,function(e){var t;let{key:s,metaKey:a,ctrlKey:r}=e;"Enter"===(t={key:s,metaKey:a,ctrlKey:r,isComposing:e.nativeEvent.isComposing}).key&&(t.metaKey||t.ctrlKey)&&!t.isComposing&&(e.preventDefault(),e.currentTarget.form?.requestSubmit())},"useShortcutPlatform",0,function(){return(0,t.useSyncExternalStore)(r,n,i)}],74470);var l=e.i(43476),o=e.i(36651);e.s(["SendShortcutHint",0,function({platform:e}){return(0,l.jsx)(o.Kbd,{"aria-hidden":!0,"data-testid":"send-shortcut-hint",className:"border-primary-foreground/25 bg-primary-foreground/10 text-primary-foreground",children:a(e)})}],31071)},46150,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},30274,e=>{"use strict";var t=e.i(56420);let s={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};s.node;let a=(0,t.default)(s);e.s(["Send",0,a],30274)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},46964,e=>{"use strict";var t=e.i(43476),s=e.i(18566),a=e.i(71645),r=e.i(41880),n=e.i(89664),i=e.i(24071),l=e.i(85595),o=e.i(44594),d=e.i(30274),c=e.i(90063),m=e.i(69693),u=e.i(49635),x=e.i(74470),h=e.i(15905),f=e.i(91727),g=e.i(60592),p=e.i(43988),b=e.i(67874),v=e.i(17981),j=e.i(88393),y=e.i(31071),N=e.i(39448);let w=[{value:"open",label:"Open"},{value:"done",label:"Done"},{value:"all",label:"All"}];function k(e){return"acknowledged"===e.state}function S({filter:e,onFilterChange:s,counts:a}){return(0,t.jsx)(g.Tabs,{value:e,onValueChange:e=>{let t=w.find(t=>t.value===e);t&&s(t.value)},children:(0,t.jsx)(g.TabsList,{"aria-label":"Show",className:"max-sm:w-full",children:w.map(({value:e,label:s})=>(0,t.jsxs)(g.TabsTrigger,{value:e,"data-testid":`inbox-filter-${e}`,className:"max-sm:grow",children:[s,void 0===a[e]?null:(0,t.jsx)(g.TabsCount,{children:a[e]})]},e))})})}function C({message:e}){let{payload:s,contentType:a}=e.message;return(0,t.jsx)("span",{className:(0,c.classNames)("block min-w-0 truncate text-muted-foreground",(0,m.isJson)(a)?"font-mono text-id":"text-meta max-sm:text-body"),children:s.split("\n")[0]})}function z({messages:e,selectedId:s,onSelect:a,now:r}){return(0,t.jsx)("ul",{"aria-label":"Messages to argo",className:"flex flex-col max-sm:gap-2",children:e.map(e=>{let n=new Date(e.message.sentAt),i=null===e.readAt&&!k(e),o=e.deliveryId===s;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button","data-testid":"inbox-row","data-delivery-id":e.deliveryId,"aria-current":o?"true":void 0,onClick:()=>{a(e.deliveryId)},className:"relative flex w-full min-w-0 flex-col gap-1 border-b border-border py-2.5 pr-3 pl-5 text-left transition-colors duration-(--duration-fast) outline-none hover:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring aria-[current=true]:bg-accent max-sm:rounded-lg max-sm:border max-sm:bg-card max-sm:py-3",children:[i?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-4 left-2 size-1.5 rounded-full bg-primary max-sm:top-4.5"}):null,(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[k(e)?(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}):null,(0,t.jsx)(N.ShipName,{name:e.message.sender.name,shipId:e.message.sender.id,isSuffixShown:!0,className:(0,c.classNames)("min-w-0",i?"font-semibold":void 0,k(e)?"text-muted-foreground":void 0)}),(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(n),className:"ml-auto shrink-0 text-meta text-muted-foreground tabular-nums",children:r.getTime()-n.getTime()<864e5?(0,u.clockTime)(n):(0,u.shortDateTime)(n)})]}),(0,t.jsx)(C,{message:e}),i?(0,t.jsx)("span",{className:"sr-only",children:"Unread"}):null]})},e.deliveryId)})})}function I({message:e}){if(null===e.doneAt)return null;let s=new Date(e.doneAt);return(0,t.jsxs)("p",{"data-testid":"inbox-done-notice",className:"flex items-center gap-2 rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-meta text-tone-ok-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0}),"Done. Acknowledged at"," ",(0,t.jsx)("time",{dateTime:e.doneAt,title:(0,u.fullDateTime)(s),children:(0,u.clockTime)(s)}),null===e.repliedWith?".":", when you replied."]})}function R({message:e}){let{payload:s,contentType:a}=e.message,r=(0,m.formattedPayload)(s,a);return(0,t.jsx)("pre",{className:(0,c.classNames)("max-h-96 overflow-auto rounded-md border border-border bg-card px-3.5 py-3 whitespace-pre-wrap text-foreground [overflow-wrap:anywhere]",(0,m.isJson)(a)?"font-mono text-code":"font-sans text-body max-sm:text-body-touch"),children:r??s})}function T({message:e,onReply:s,isPending:r,isPhone:n}){let i=(0,a.useId)(),l=(0,a.useId)(),[o,c]=(0,a.useState)(""),m=(0,x.useShortcutPlatform)(),u=e.message.sender.name;return(0,t.jsxs)("form",{className:"flex flex-col gap-1.5 border-t border-border pt-3",onSubmit:t=>{t.preventDefault(),""===o.trim()||r||s({deliveryId:e.deliveryId,payload:o})},children:[(0,t.jsxs)(f.Label,{htmlFor:i,children:["Reply to ",u]}),(0,t.jsx)(p.Textarea,{id:i,rows:3,size:n?"touch":"md",placeholder:"Write a reply",value:o,onChange:e=>{c(e.target.value)},onKeyDown:x.submitOnSendShortcut,"aria-describedby":l,"data-testid":"inbox-reply"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{id:l,className:"text-meta text-muted-foreground",children:k(e)?"Sent as a new message.":"Sending also marks this one done."}),(0,t.jsxs)(h.Button,{type:"submit",variant:"primary",size:n?"touch":"sm",icon:(0,t.jsx)(d.Send,{"aria-hidden":!0}),isLoading:r,disabled:""===o.trim()&&!r,"aria-keyshortcuts":null===m?void 0:(0,x.sendShortcutAria)(m),"data-testid":"inbox-reply-send",children:["Send reply",null===m?null:(0,t.jsx)(y.SendShortcutHint,{platform:m})]})]})]})}function A({message:e,onMarkDone:s,onMarkUnread:a,onReply:r,pendingIds:i,isPhone:l,isReadOnly:o=!1}){let d=i.has(e.deliveryId),m=new Date(e.message.sentAt),x=e.message.sender;return(0,t.jsxs)("article",{"aria-label":`Message from ${x.name}`,"data-testid":"inbox-message",className:(0,c.classNames)("flex min-h-0 flex-col gap-3",l?"grow":"h-full"),children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"min-w-0 text-heading font-semibold",children:(0,t.jsx)(N.ShipName,{name:x.name,shipId:x.id,isSuffixShown:!0})}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["To argo ·"," ",(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(m),children:(0,u.shortDateTime)(m)})]})]}),k(e)||o?null:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(h.Button,{size:l?"touch":"sm",icon:(0,t.jsx)(n.Check,{"aria-hidden":!0}),isLoading:d,"data-testid":"inbox-mark-done",onClick:()=>{s(e.deliveryId)},children:"Mark done"}),(0,t.jsx)(h.Button,{variant:"ghost",size:l?"touch":"sm",disabled:d,"data-testid":"inbox-mark-unread",onClick:()=>{a(e.deliveryId)},children:"Mark as unread"})]})]}),(0,t.jsx)(I,{message:e}),(0,t.jsx)("div",{className:"min-h-0 grow overflow-y-auto",children:(0,t.jsx)(R,{message:e})}),o?(0,t.jsx)("p",{"data-testid":"inbox-read-only",className:"border-t border-border pt-3 text-meta text-muted-foreground",children:"Read-only: you see argo’s inbox, and can’t reply or mark messages done."}):(0,t.jsx)("div",{className:l?"sticky bottom-0 bg-background pb-[env(safe-area-inset-bottom)]":void 0,children:(0,t.jsx)(T,{message:e,onReply:r,isPending:d,isPhone:l},`${e.deliveryId}-${e.state}`)})]})}function L({messages:e,filter:s,onFilterChange:a,counts:r,selectedId:n,onSelect:l,state:d,onRetry:c,now:m,...u}){if("loading"===d)return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"loading",className:"grid gap-4 sm:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]",children:[(0,t.jsx)(j.LoadingSkeleton,{variant:"list",rows:5,label:"Loading your inbox"}),(0,t.jsx)(j.LoadingSkeleton,{variant:"detail",label:"Loading the message",className:"max-sm:hidden"})]});if("error"===d)return(0,t.jsx)("div",{"data-slot":"operator-inbox","data-state":"error","data-testid":"inbox-error",children:(0,t.jsx)(v.InlineError,{variant:"page",title:"Couldn’t load your inbox",description:"This page couldn’t reach the fleet server. Messages to argo are stored on the server, so nothing is lost.",onRetry:c})});let x=e.find(e=>e.deliveryId===n),f=(0,t.jsx)(S,{filter:s,onFilterChange:a,counts:r}),g=(0,t.jsx)("div",{"data-testid":"inbox-empty",children:(0,t.jsx)(b.EmptyState,{icon:(0,t.jsx)(o.Inbox,{}),title:"done"===s?"Nothing done yet":"No messages for you",description:"done"===s?"Messages you mark done or reply to show up here.":"When a ship sends a message to argo, it shows up here. You can reply from the message."})});return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"ready",children:[(0,t.jsxs)("div",{className:"grid min-h-128 grid-cols-[minmax(0,2fr)_minmax(0,3fr)] overflow-hidden rounded-lg border border-border bg-card max-sm:hidden",children:[(0,t.jsxs)("div",{className:"flex min-h-0 flex-col border-r border-border",children:[(0,t.jsx)("div",{className:"border-b border-border p-2.5",children:f}),0===e.length?(0,t.jsx)("div",{className:"p-4",children:g}):(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-col bg-background p-5",children:x?(0,t.jsx)(A,{message:x,isPhone:!1,...u}):(0,t.jsx)("p",{className:"m-auto text-meta text-muted-foreground",children:0===e.length?null:!0===u.isReadOnly?"Choose a message to read it.":"Choose a message to read it and reply."})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3 sm:hidden",children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"touch",icon:(0,t.jsx)(i.ChevronLeft,{"aria-hidden":!0}),className:"-ml-2 self-start","data-testid":"inbox-back",onClick:()=>{l(void 0)},children:"Inbox"}),(0,t.jsx)(A,{message:x,isPhone:!0,...u})]}):(0,t.jsxs)(t.Fragment,{children:[f,0===e.length?g:(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]})})]})}var M=e.i(77821),K=e.i(87964),D=e.i(86413),q=e.i(90262),O=e.i(42454),P=e.i(18423),E=e.i(96676),B=e.i(78485);e.s(["InboxPageFor",0,function({filterParameter:e,selectedId:n}){let i=(0,s.useRouter)(),l=(0,E.useNow)(),o=(0,D.readInboxFilter)(e),d=(0,D.useInbox)(),c=(0,D.useMarkRead)(),m=(0,D.useMarkDone)(),u=(0,D.useReply)(),x=(0,P.useLiveFleet)(),h=(0,K.useConsoleFrame)();(0,B.useSignInWhenSessionEnds)([d.error,x.error]);let f=(0,q.useAccess)(),[g,p]=(0,a.useState)(new Set),b=(0,O.useQuestions)(),v=(0,O.questionDeliveryIdsOf)(b.data??[]),j=void 0!==b.data||b.isError,y=(0,D.plainMessagesOf)(d.data??[],v),N=e=>{i.replace((0,D.inboxPathOf)(e),{scroll:!1})},w=({deliveryId:e,run:t,failure:s})=>{p(t=>new Set([...t,e])),t().catch(e=>{(0,r.showToast)({title:s,description:e instanceof Error?e.message:"Try again in a moment.",tone:"error"})}).finally(()=>{p(t=>new Set([...t].filter(t=>t!==e)))})};return(0,t.jsx)(M.ListPage,{...h,title:"Operator inbox",description:"Messages ships sent to argo. Opening one marks it read; Mark done or Reply acknowledges it.",live:x.live,children:(0,t.jsx)(L,{isReadOnly:!f.canReceive,messages:(0,D.messagesFor)(y,o),filter:o,onFilterChange:e=>{N({filter:e})},counts:d.data&&j?(0,D.filterCounts)(y):{},selectedId:n,onSelect:e=>{N({filter:o,deliveryId:e});let t=y.find(t=>t.deliveryId===e);void 0!==e&&t?.readAt===null&&f.canReceive&&c.mutate({deliveryId:e,isRead:!0})},state:d.isError?"error":d.data&&j?"ready":"loading",onRetry:()=>{d.refetch()},onMarkDone:e=>{w({deliveryId:e,run:()=>m.mutateAsync({deliveryId:e}),failure:"Couldn’t mark the message done"})},onMarkUnread:e=>{w({deliveryId:e,run:()=>c.mutateAsync({deliveryId:e,isRead:!1}),failure:"Couldn’t mark the message unread"}),N({filter:o})},onReply:({deliveryId:e,payload:t})=>{w({deliveryId:e,run:()=>u.mutateAsync({deliveryId:e,payload:t,idempotencyKey:`reply-${e}-${crypto.randomUUID()}`}),failure:"Couldn’t send the reply"})},pendingIds:g,now:l})})}],46964)},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},43988,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(90063);let r=(0,s.cva)("w-full min-w-0 resize-none rounded-md border border-input bg-card px-3 py-2 text-foreground shadow-sm transition-[border-color,box-shadow] duration-(--duration-fast) outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/22 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/16 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 disabled:shadow-none",{variants:{size:{md:"text-body",touch:"rounded-lg text-input-touch"},isMono:{true:"font-mono",false:""}},compoundVariants:[{size:"md",isMono:!0,className:"text-code"}],defaultVariants:{size:"md",isMono:!1}});e.s(["Textarea",0,function({className:e,size:s,isMono:n,rows:i=4,...l}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:i,className:(0,a.classNames)(r({size:s,isMono:n}),e),...l})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:n,variant:i="page",className:l}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:o,onRetry:d,retryNote:c,variant:m="section",id:u,className:x}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",x),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",x),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",x),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,o?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:o}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},39448,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(22016),r=e.i(90063);let n=(0,s.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:s,size:i,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:c}){let m=d?(0,t.jsx)(a.default,{href:d,className:(0,r.classNames)(n({size:i}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:n({size:i}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,r.classNames)("inline-flex min-w-0 items-baseline gap-1.5",c),children:[m,o?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,l&&!o?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),s.slice(-4)]}):null]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),l=e.i(36651),o=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:m,onSearch:u}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),u?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:l,account:o,onSearch:d}){let x=d&&!l?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||x||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,o&&!l?(0,t.jsx)(u.AccountMenuSheet,{...o}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:l,primaryAction:o,toolbar:d,live:c,onCompose:m,onSearch:u,account:x,banner:h,children:f}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),h,(0,t.jsx)(n.TopBar,{title:e,live:c,account:x,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),l]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,f]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(42454),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),x=e=>{l(c,e)},h=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void x(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(x(e.fleet.ship.queryKey({shipId:t})),x(e.fleet.shipTimeline.queryKey({shipId:t})),x(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(x(e.fleet.shipMessages.pathKey()),x(e.fleet.shipWay.pathKey()),x(e.fleet.overdue.queryKey()),x(e.fleet.message.queryKey({messageId:l.messageId})),x(e.fleet.inbox.pathKey()),x(r.QUESTIONS_KEY),x(e.fleet.noShipCanTake.queryKey())),s=l.type,d.has(s)&&x(e.fleet.needsAttention.queryKey()),a=l.type,o.has(a)&&x(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&x(e.fleet.declaredNetworkRules.queryKey()),n=l.type,!i.has(n))return;x(e.fleet.list.queryKey()),x(e.fleet.noShipCanTake.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&u(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(h.status),newShipIds:m,error:h.error}}])},69693,e=>{"use strict";var t=e.i(46150);function s(e){let t=e.split(";")[0]?.trim().toLowerCase()??"";return"application/json"===t||t.endsWith("+json")}e.s(["formattedPayload",0,function(e,t){if(s(t))try{return JSON.stringify(JSON.parse(e),null,2)}catch{return}},"isJson",0,s,"payloadLabel",0,function(e,a){let r=s(a)?"JSON":a.split(";")[0]?.trim()??a,n=new TextEncoder().encode(e).byteLength;return`${r} \xb7 ${(0,t.counted)(n,{one:"byte",many:"bytes"})}`}])},74470,31071,e=>{"use strict";var t=e.i(71645);let s=/Mac|iPhone|iPad|iPod/;function a(e){return"mac"===e?"⌘↵":"Ctrl ↵"}function r(){return()=>void 0}function n(){var e;return e=navigator.userAgent,s.test(e)?"mac":"other"}function i(){return null}e.s(["sendShortcutAria",0,function(e){return"mac"===e?"Meta+Enter":"Control+Enter"},"sendShortcutKeys",0,a,"submitOnSendShortcut",0,function(e){var t;let{key:s,metaKey:a,ctrlKey:r}=e;"Enter"===(t={key:s,metaKey:a,ctrlKey:r,isComposing:e.nativeEvent.isComposing}).key&&(t.metaKey||t.ctrlKey)&&!t.isComposing&&(e.preventDefault(),e.currentTarget.form?.requestSubmit())},"useShortcutPlatform",0,function(){return(0,t.useSyncExternalStore)(r,n,i)}],74470);var l=e.i(43476),o=e.i(36651);e.s(["SendShortcutHint",0,function({platform:e}){return(0,l.jsx)(o.Kbd,{"aria-hidden":!0,"data-testid":"send-shortcut-hint",className:"border-primary-foreground/25 bg-primary-foreground/10 text-primary-foreground",children:a(e)})}],31071)},46150,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{2ys91r118pnlx.js → 0t6-mtlfuonvu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67858,s=>{s.v(t=>Promise.all(["static/chunks/0v7urhig04x47.js"].map(t=>s.l(t))).then(()=>t(59068)))},
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67858,s=>{s.v(t=>Promise.all(["static/chunks/0v7urhig04x47.js"].map(t=>s.l(t))).then(()=>t(59068)))},88207,s=>{s.v(t=>Promise.all(["static/chunks/2jf-hefdqyy1k.js"].map(t=>s.l(t))).then(()=>t(42211)))},88138,s=>{s.v(t=>Promise.all(["static/chunks/3yue418t7-gne.js"].map(t=>s.l(t))).then(()=>t(48287)))},95953,s=>{s.v(t=>Promise.all(["static/chunks/0yi6kd19bc8bq.js"].map(t=>s.l(t))).then(()=>t(82532)))},27830,s=>{s.v(t=>Promise.all(["static/chunks/028qro7ew5biu.js","static/chunks/3gw93hpgh57gl.js"].map(t=>s.l(t))).then(()=>t(897)))},26403,s=>{s.v(t=>Promise.all(["static/chunks/3ratrwsbommzd.js"].map(t=>s.l(t))).then(()=>t(54988)))},57993,s=>{s.v(t=>Promise.all(["static/chunks/1t5lh13vevgx4.js"].map(t=>s.l(t))).then(()=>t(75027)))},41585,s=>{s.v(t=>Promise.all(["static/chunks/25lpj_dr-j9wk.js"].map(t=>s.l(t))).then(()=>t(11896)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91703,e=>{"use strict";var t=e.i(43476),s=e.i(83035),i=e.i(90063),a=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:o,isWrapped:r=!1,copyValue:n,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:p,copyTestId:u}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(s.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(a.CopyButton,{value:n??o,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":u})]}),(0,t.jsx)("pre",{"data-testid":p,className:(0,i.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",r?"break-all whitespace-pre-wrap":"whitespace-pre"),children:o})]})}])},61966,e=>{"use strict";var t=e.i(43476),s=e.i(89664),i=e.i(8734),a=e.i(71645),o=e.i(15905);e.s(["CopyButton",0,function({value:e,label:r,size:n="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:p,"data-testid":u}){let[g,h]=(0,a.useState)(!1);async function m(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}h(!0),d?.(),setTimeout(()=>{h(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":r,title:l?void 0:r,icon:g?(0,t.jsx)(s.Check,{"aria-hidden":!0}):(0,t.jsx)(i.Copy,{"aria-hidden":!0}),className:p,"data-testid":u,onClick:()=>{m()},children:l?g?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:g?"Copied.":""})]})}])},22212,e=>{"use strict";var t=e.i(43476),s=e.i(53753),i=e.i(90063),a=e.i(94945);e.s(["Dialog",0,function(e){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function(e){return(0,t.jsx)(s.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,size:o,children:r,...n}){return(0,t.jsxs)(s.Dialog.Portal,{children:[(0,t.jsx)(s.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:a.dialogSurface.overlay}),(0,t.jsx)(s.Dialog.Popup,{"data-slot":"dialog-content",className:(0,i.classNames)(a.dialogSurface.popup({size:o}),e),...n,children:r})]})},"DialogDescription",0,function({className:e,...o}){return(0,t.jsx)(s.Dialog.Description,{"data-slot":"dialog-description",className:(0,i.classNames)(a.dialogSurface.description,e),...o})},"DialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.classNames)(a.dialogSurface.footer,e),...s})},"DialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,i.classNames)(a.dialogSurface.header,e),...s})},"DialogTitle",0,function({className:e,...o}){return(0,t.jsx)(s.Dialog.Title,{"data-slot":"dialog-title",className:(0,i.classNames)(a.dialogSurface.title,e),...o})}])},56478,e=>{"use strict";var t=e.i(43476),s=e.i(66616),i=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:a,testIdPrefix:o,onCopied:r,onCopyFailed:n}){return e.map(({harness:e,line:l})=>(0,t.jsx)(i.CodeBlock,{label:`Crew line, ${(0,s.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,s.harnessWord)(e)} crew line for ${a}`,codeTestId:`${o}-${e}`,copyTestId:`${o}-${e}-copy`,onCopied:r,onCopyFailed:n},e))}])},82532,e=>{"use strict";var t=e.i(43476),s=e.i(22768),i=e.i(10818),a=e.i(25398),o=e.i(71645),r=e.i(49635),n=e.i(31513),l=e.i(15905),d=e.i(91703),c=e.i(22212),p=e.i(94945),u=e.i(19321),g=e.i(56478),h=e.i(17981);let m=`${n.SOURCE_URL}/blob/main/docs/guides/chatgpt.md`;function x({shipName:e,prompt:a,crewLines:r}){let[n,l]=(0,o.useState)(!1),c=()=>{l(!1)},p=()=>{l(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(i.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," If you lose it, get a new one; this one then stops working."]})]}),(0,t.jsx)(d.CodeBlock,{label:`Crew instructions for a chat, for ${e}`,code:a,isWrapped:!0,copyLabel:`Copy the crew instructions for a chat, for ${e}`,codeTestId:"starting-prompt-text",copyTestId:"starting-prompt-copy",onCopied:c,onCopyFailed:p}),(0,t.jsx)(g.CrewLines,{crewLines:r,subject:e,testIdPrefix:"starting-prompt-crew-line",onCopied:c,onCopyFailed:p}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null})]})}e.s(["StartingPromptDialog",0,function(e){let{shipName:s,state:i,prompt:o,crewLines:n,replacesUnclaimed:d,error:g,isOpen:j,onOpenChange:f,onConfirm:C}=e,w="issuing"===i;return(0,t.jsx)(c.Dialog,{open:j,onOpenChange:e=>{w||f(e)},children:(0,t.jsxs)(c.DialogContent,{size:"md","data-testid":"starting-prompt-dialog",className:p.dialogSurface.phoneFullScreen,children:[(0,t.jsxs)(c.DialogHeader,{children:[(0,t.jsxs)(c.DialogTitle,{children:["Starting prompt for ",s]}),(0,t.jsxs)(c.DialogDescription,{children:["Paste the crew instructions into a chat (ChatGPT, Claude chat), or a crew line into Claude Code or Codex with the aeolus plugin. Any earlier prompt for ",s," stops working now."," ",(0,t.jsx)("a",{href:m,target:"_blank",rel:"noreferrer","data-testid":"starting-prompt-chatgpt-guide",className:"underline underline-offset-2",children:"Connect a ChatGPT chat"}),"."]})]}),"error"!==i&&d?(0,t.jsxs)("p",{className:"rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:["This prompt stops the one issued"," ",(0,t.jsx)("time",{dateTime:d.issuedAt,children:(0,r.shortDateTime)(new Date(d.issuedAt))})," ","working."]}):null,w?(0,t.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"sr-only",children:"Issuing a starting prompt..."}),(0,t.jsx)(u.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,t.jsx)(u.Skeleton,{className:"h-40 w-full rounded-lg"})]}):null,"shown"===i&&void 0!==o&&void 0!==n?(0,t.jsx)(x,{shipName:s,prompt:o,crewLines:n}):null,"error"===i?(0,t.jsx)(h.InlineError,{title:"Couldn’t issue a starting prompt",description:`${g??"The server did not answer."} No new secret was created; any earlier prompt still works.`}):null,(0,t.jsxs)(c.DialogFooter,{children:["issuing"===i||"shown"===i?(0,t.jsx)(c.DialogClose,{render:(0,t.jsx)(l.Button,{variant:"primary",disabled:w}),children:"Done"}):null,"error"===i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.DialogClose,{render:(0,t.jsx)(l.Button,{}),children:"Close"}),(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(a.RotateCw,{}),onClick:C,children:"Try again"})]}):null]})]})})}])}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{1gzb5gjzdx1fj.js → 13adqemu7o09r.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26091,e=>{"use strict";var s=e.i(56420);let a={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};a.node;let n=(0,s.default)(a);e.s(["FileText",0,n],26091)},61966,e=>{"use strict";var s=e.i(43476),a=e.i(89664),n=e.i(8734),t=e.i(71645),i=e.i(15905);e.s(["CopyButton",0,function({value:e,label:o,size:r="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:u,"data-testid":h}){let[m,x]=(0,t.useState)(!1);async function g(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Button,{variant:"ghost",size:r,isIconOnly:!l,"aria-label":o,title:l?void 0:o,icon:m?(0,s.jsx)(a.Check,{"aria-hidden":!0}):(0,s.jsx)(n.Copy,{"aria-hidden":!0}),className:u,"data-testid":h,onClick:()=>{g()},children:l?m?"Copied":"Copy":null}),(0,s.jsx)("span",{role:"status",className:"sr-only",children:m?"Copied.":""})]})}])},22212,e=>{"use strict";var s=e.i(43476),a=e.i(53753),n=e.i(90063),t=e.i(94945);e.s(["Dialog",0,function(e){return(0,s.jsx)(a.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function(e){return(0,s.jsx)(a.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,size:i,children:o,...r}){return(0,s.jsxs)(a.Dialog.Portal,{children:[(0,s.jsx)(a.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:t.dialogSurface.overlay}),(0,s.jsx)(a.Dialog.Popup,{"data-slot":"dialog-content",className:(0,n.classNames)(t.dialogSurface.popup({size:i}),e),...r,children:o})]})},"DialogDescription",0,function({className:e,...i}){return(0,s.jsx)(a.Dialog.Description,{"data-slot":"dialog-description",className:(0,n.classNames)(t.dialogSurface.description,e),...i})},"DialogFooter",0,function({className:e,...a}){return(0,s.jsx)("div",{"data-slot":"dialog-footer",className:(0,n.classNames)(t.dialogSurface.footer,e),...a})},"DialogHeader",0,function({className:e,...a}){return(0,s.jsx)("div",{"data-slot":"dialog-header",className:(0,n.classNames)(t.dialogSurface.header,e),...a})},"DialogTitle",0,function({className:e,...i}){return(0,s.jsx)(a.Dialog.Title,{"data-slot":"dialog-title",className:(0,n.classNames)(t.dialogSurface.title,e),...i})}])},82880,3067,e=>{"use strict";var s=e.i(43476),a=e.i(71645),n=e.i(66616),t=e.i(61966),i=e.i(60592);e.s(["CompactCrewLine",0,function({crewLines:e,subject:o,testIdPrefix:r,onCopied:l,onCopyFailed:d}){let[c,u]=(0,a.useState)(e[0]?.harness),h=e.find(e=>e.harness===c)??e[0];if(!h)return null;let m=(0,n.crewLineHarnessWord)(h.harness);return(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,s.jsx)(i.Tabs,{value:h.harness,onValueChange:s=>{let a=e.find(e=>e.harness===s);a&&u(a.harness)},children:(0,s.jsx)(i.TabsList,{"aria-label":`Crew ${o} from`,children:e.map(e=>(0,s.jsx)(i.TabsTrigger,{value:e.harness,"data-testid":`${r}-${e.harness}-tab`,children:(0,n.crewLineHarnessWord)(e.harness)},e.harness))})}),(0,s.jsx)("code",{"data-testid":`${r}-${h.harness}`,title:h.line,className:"min-w-0 grow truncate rounded-md bg-muted px-2 py-1 font-mono text-code text-foreground",children:h.line}),(0,s.jsx)(t.CopyButton,{value:h.line,label:`Copy the ${m} crew line for ${o}`,isLabeled:!0,onCopied:l,onCopyFailed:d,"data-testid":`${r}-${h.harness}-copy`})]})}],82880);var o=e.i(26091);e.s(["LaunchNote",0,function({note:e,model:a,template:n,testId:t}){return null===e&&null===a?null:(0,s.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta",children:[(0,s.jsx)(o.FileText,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,s.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,s.jsxs)("span",{className:"text-muted-foreground",children:["Launch note",void 0===n?"":` \xb7 ${n}`]}),null!==e&&(0,s.jsx)("span",{"data-testid":t,children:e}),null!==a&&(0,s.jsxs)("span",{children:["Runs ",(0,s.jsx)("span",{className:"font-mono",children:a})]})]})]})}],3067)},42211,e=>{"use strict";var s=e.i(43476),a=e.i(10818),n=e.i(25398),t=e.i(15905),i=e.i(22212),o=e.i(94945),r=e.i(19321),l=e.i(82880),d=e.i(17981),c=e.i(3067);function u({memberName:e,template:n,launchNote:t,model:i,crewLines:o}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.LaunchNote,{note:t,model:i,template:n,testId:"crew-line-launch-note"}),(0,s.jsx)(l.CompactCrewLine,{crewLines:o,subject:e,testIdPrefix:"crew-line-text"}),(0,s.jsxs)("p",{className:"flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,s.jsx)(a.Info,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium",children:"Shown once."})," Paste the crew line into Claude Code or Codex started where the launch note says, or
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26091,e=>{"use strict";var s=e.i(56420);let a={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};a.node;let n=(0,s.default)(a);e.s(["FileText",0,n],26091)},61966,e=>{"use strict";var s=e.i(43476),a=e.i(89664),n=e.i(8734),t=e.i(71645),i=e.i(15905);e.s(["CopyButton",0,function({value:e,label:o,size:r="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:u,"data-testid":h}){let[m,x]=(0,t.useState)(!1);async function g(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Button,{variant:"ghost",size:r,isIconOnly:!l,"aria-label":o,title:l?void 0:o,icon:m?(0,s.jsx)(a.Check,{"aria-hidden":!0}):(0,s.jsx)(n.Copy,{"aria-hidden":!0}),className:u,"data-testid":h,onClick:()=>{g()},children:l?m?"Copied":"Copy":null}),(0,s.jsx)("span",{role:"status",className:"sr-only",children:m?"Copied.":""})]})}])},22212,e=>{"use strict";var s=e.i(43476),a=e.i(53753),n=e.i(90063),t=e.i(94945);e.s(["Dialog",0,function(e){return(0,s.jsx)(a.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function(e){return(0,s.jsx)(a.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,size:i,children:o,...r}){return(0,s.jsxs)(a.Dialog.Portal,{children:[(0,s.jsx)(a.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:t.dialogSurface.overlay}),(0,s.jsx)(a.Dialog.Popup,{"data-slot":"dialog-content",className:(0,n.classNames)(t.dialogSurface.popup({size:i}),e),...r,children:o})]})},"DialogDescription",0,function({className:e,...i}){return(0,s.jsx)(a.Dialog.Description,{"data-slot":"dialog-description",className:(0,n.classNames)(t.dialogSurface.description,e),...i})},"DialogFooter",0,function({className:e,...a}){return(0,s.jsx)("div",{"data-slot":"dialog-footer",className:(0,n.classNames)(t.dialogSurface.footer,e),...a})},"DialogHeader",0,function({className:e,...a}){return(0,s.jsx)("div",{"data-slot":"dialog-header",className:(0,n.classNames)(t.dialogSurface.header,e),...a})},"DialogTitle",0,function({className:e,...i}){return(0,s.jsx)(a.Dialog.Title,{"data-slot":"dialog-title",className:(0,n.classNames)(t.dialogSurface.title,e),...i})}])},82880,3067,e=>{"use strict";var s=e.i(43476),a=e.i(71645),n=e.i(66616),t=e.i(61966),i=e.i(60592);e.s(["CompactCrewLine",0,function({crewLines:e,subject:o,testIdPrefix:r,onCopied:l,onCopyFailed:d}){let[c,u]=(0,a.useState)(e[0]?.harness),h=e.find(e=>e.harness===c)??e[0];if(!h)return null;let m=(0,n.crewLineHarnessWord)(h.harness);return(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,s.jsx)(i.Tabs,{value:h.harness,onValueChange:s=>{let a=e.find(e=>e.harness===s);a&&u(a.harness)},children:(0,s.jsx)(i.TabsList,{"aria-label":`Crew ${o} from`,children:e.map(e=>(0,s.jsx)(i.TabsTrigger,{value:e.harness,"data-testid":`${r}-${e.harness}-tab`,children:(0,n.crewLineHarnessWord)(e.harness)},e.harness))})}),(0,s.jsx)("code",{"data-testid":`${r}-${h.harness}`,title:h.line,className:"min-w-0 grow truncate rounded-md bg-muted px-2 py-1 font-mono text-code text-foreground",children:h.line}),(0,s.jsx)(t.CopyButton,{value:h.line,label:`Copy the ${m} crew line for ${o}`,isLabeled:!0,onCopied:l,onCopyFailed:d,"data-testid":`${r}-${h.harness}-copy`})]})}],82880);var o=e.i(26091);e.s(["LaunchNote",0,function({note:e,model:a,template:n,testId:t}){return null===e&&null===a?null:(0,s.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta",children:[(0,s.jsx)(o.FileText,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,s.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,s.jsxs)("span",{className:"text-muted-foreground",children:["Launch note",void 0===n?"":` \xb7 ${n}`]}),null!==e&&(0,s.jsx)("span",{"data-testid":t,children:e}),null!==a&&(0,s.jsxs)("span",{children:["Runs ",(0,s.jsx)("span",{className:"font-mono",children:a})]})]})]})}],3067)},42211,e=>{"use strict";var s=e.i(43476),a=e.i(10818),n=e.i(25398),t=e.i(15905),i=e.i(22212),o=e.i(94945),r=e.i(19321),l=e.i(82880),d=e.i(17981),c=e.i(3067);function u({memberName:e,template:n,launchNote:t,model:i,crewLines:o}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.LaunchNote,{note:t,model:i,template:n,testId:"crew-line-launch-note"}),(0,s.jsx)(l.CompactCrewLine,{crewLines:o,subject:e,testIdPrefix:"crew-line-text"}),(0,s.jsxs)("p",{className:"flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,s.jsx)(a.Info,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium",children:"Shown once."})," Paste the crew line into Claude Code or Codex started where the launch note says, or the Chat one, the ship’s crew instructions for a chat, into a chat app. A new crew line stops it working."]})]})]})}e.s(["CrewLineDialog",0,function({memberName:e,state:a,template:l,launchNote:c=null,model:h=null,crewLines:m,error:x,isOpen:g,onOpenChange:p,onConfirm:f}){let j="issuing"===a;return(0,s.jsx)(i.Dialog,{open:g,onOpenChange:e=>{j||p(e)},children:(0,s.jsxs)(i.DialogContent,{size:"md","data-testid":"crew-line-dialog",className:o.dialogSurface.phoneFullScreen,children:[(0,s.jsxs)(i.DialogHeader,{children:[(0,s.jsxs)(i.DialogTitle,{children:["Crew line for ",e]}),(0,s.jsx)(i.DialogDescription,{children:"Start Claude Code or Codex where the launch note says, or open a chat app, then paste its crew line or the ship’s crew instructions for a chat. The member is on station once its session checks in."})]}),j&&(0,s.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,s.jsx)("span",{className:"sr-only",children:"Issuing a crew line..."}),(0,s.jsx)(r.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,s.jsx)(r.Skeleton,{className:"h-28 w-full rounded-lg"})]}),"shown"===a&&void 0!==m&&(0,s.jsx)(u,{memberName:e,template:l,launchNote:c,model:h,crewLines:m}),"error"===a&&(0,s.jsx)(d.InlineError,{title:"Couldn’t issue a crew line",description:`${x??"The squadron manager did not answer."} No new secret was created; an earlier crew line still works.`}),(0,s.jsxs)(i.DialogFooter,{children:[("shown"===a||j)&&(0,s.jsx)(i.DialogClose,{render:(0,s.jsx)(t.Button,{variant:"primary","data-testid":"crew-line-done",disabled:j}),children:"Done"}),"error"===a&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.DialogClose,{render:(0,s.jsx)(t.Button,{}),children:"Close"}),(0,s.jsx)(t.Button,{variant:"primary",icon:(0,s.jsx)(n.RotateCw,{"aria-hidden":!0}),"data-testid":"crew-line-retry",onClick:f,children:"Try again"})]})]})]})})}])},66616,e=>{"use strict";var s=e.i(49635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let n=(0,s.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===n?"just now":n}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,n])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79432,11147,e=>{"use strict";var t=e.i(56420);let a={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};a.node;let s=(0,t.default)(a);e.s(["Activity",0,s],79432);let n={name:"octagon-pause",size:24,node:[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],aliases:["pause-octagon"]};n.node;let r=(0,t.default)(n);e.s(["OctagonPause",0,r],11147)},71567,41220,e=>{"use strict";var t=e.i(56420);let a={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};a.node;let s=(0,t.default)(a);e.s(["Bot",0,s],71567);let n={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};n.node;let r=(0,t.default)(n);e.s(["Server",0,r],41220)},92150,e=>{"use strict";var t=e.i(56420);let a={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};a.node;let s=(0,t.default)(a);e.s(["Boxes",0,s],92150)},16327,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronDown",0,s],16327)},24071,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronLeft",0,s],24071)},67927,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronRight",0,s],67927)},19002,e=>{"use strict";var t=e.i(56420);let a={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"]};a.node;let s=(0,t.default)(a);e.s(["CirclePause",0,s],19002)},8734,e=>{"use strict";var t=e.i(56420);let a={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};a.node;let s=(0,t.default)(a);e.s(["Copy",0,s],8734)},72382,e=>{"use strict";var t=e.i(56420);let a={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};a.node;let s=(0,t.default)(a);e.s(["Eye",0,s],72382)},31458,e=>{"use strict";var t=e.i(56420);let a={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};a.node;let s=(0,t.default)(a);e.s(["Flag",0,s],31458)},69309,e=>{"use strict";var t=e.i(56420);let a={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};a.node;let s=(0,t.default)(a);e.s(["Plug",0,s],69309)},77071,e=>{"use strict";var t=e.i(56420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let s=(0,t.default)(a);e.s(["Plus",0,s],77071)},15331,e=>{"use strict";var t=e.i(56420);let a={name:"radio",size:24,node:[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};a.node;let s=(0,t.default)(a);e.s(["Radio",0,s],15331)},66595,e=>{"use strict";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 s=(0,t.default)(a);e.s(["Search",0,s],66595)},19759,e=>{"use strict";var t=e.i(56420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let s=(0,t.default)(a);e.s(["SquarePen",0,s],19759)},83035,e=>{"use strict";var t=e.i(56420);let a={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};a.node;let s=(0,t.default)(a);e.s(["SquareTerminal",0,s],83035)},37817,e=>{"use strict";var t=e.i(56420);let a={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]};a.node;let s=(0,t.default)(a);e.s(["Undo2",0,s],37817)},94831,e=>{"use strict";var t=e.i(56420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let s=(0,t.default)(a);e.s(["Unplug",0,s],94831)},64790,e=>{"use strict";var t=e.i(56420);let a={name:"wifi-off",size:24,node:[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};a.node;let s=(0,t.default)(a);e.s(["WifiOff",0,s],64790)},91703,e=>{"use strict";var t=e.i(43476),a=e.i(83035),s=e.i(90063),n=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:r,isWrapped:i=!1,copyValue:l,copyLabel:o=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:u,copyTestId:h}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(a.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(n.CopyButton,{value:l??r,label:o,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":h})]}),(0,t.jsx)("pre",{"data-testid":u,className:(0,s.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",i?"break-all whitespace-pre-wrap":"whitespace-pre"),children:r})]})}])},61966,e=>{"use strict";var t=e.i(43476),a=e.i(89664),s=e.i(8734),n=e.i(71645),r=e.i(15905);e.s(["CopyButton",0,function({value:e,label:i,size:l="xs",isLabeled:o=!1,onCopied:d,onCopyFailed:c,className:u,"data-testid":h}){let[m,p]=(0,n.useState)(!1);async function f(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),d?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"ghost",size:l,isIconOnly:!o,"aria-label":i,title:o?void 0:i,icon:m?(0,t.jsx)(a.Check,{"aria-hidden":!0}):(0,t.jsx)(s.Copy,{"aria-hidden":!0}),className:u,"data-testid":h,onClick:()=>{f()},children:o?m?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:m?"Copied.":""})]})}])},36651,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Kbd",0,function({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...s})}])},19321,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Skeleton",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...s})}])},67874,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["EmptyState",0,function({title:e,description:s,icon:n,action:r,variant:i="page",className:l}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,s?(0,t.jsxs)(t.Fragment,{children:[" ",s]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),r]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[n?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:n}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),s?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:s}):null,r?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:r}):null]})}])},19249,e=>{"use strict";var t=e.i(43476),a=e.i(90063);let s={"on-time":{label:"On time",dot:"bg-tone-ok-fg",text:"text-tone-ok-fg"},late:{label:"Late",dot:"bg-tone-waiting-fg",text:"text-tone-waiting-fg"},silent:{label:"Silent",dot:"bg-tone-attention-fg",text:"text-tone-attention-fg"},"standing-down":{label:"Standing down",dot:"bg-tone-active-fg",text:"text-tone-active-fg"},"not-on-station":{label:"Not on station",dot:"border border-dashed border-muted-foreground",text:"text-foreground"}};function n({health:e}){return(0,t.jsx)("span",{"aria-hidden":!0,className:(0,a.classNames)("size-2 shrink-0 rounded-full",s[e].dot)})}e.s(["HealthIndicator",0,function({health:e,detail:r,className:i}){return(0,t.jsxs)("span",{"data-slot":"health-indicator","data-health":e,className:(0,a.classNames)("inline-flex items-center gap-1.5 text-meta",i),children:[(0,t.jsx)(n,{health:e}),(0,t.jsx)("span",{className:(0,a.classNames)("font-medium",s[e].text),children:s[e].label}),void 0!==r&&(0,t.jsx)("span",{className:"text-muted-foreground",children:r})]})},"HealthSummary",0,function({counts:e,className:r}){return(0,t.jsx)("span",{"data-slot":"health-summary",className:(0,a.classNames)("inline-flex flex-wrap items-center gap-x-3 gap-y-1 text-meta",r),children:e.map(({health:e,count:a})=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(n,{health:e}),(0,t.jsxs)("span",{children:[a," ",s[e].label.toLowerCase()]})]},e))})}])},95960,e=>{"use strict";var t=e.i(43476),a=e.i(92150),s=e.i(49287),n=e.i(86875),r=e.i(56420);let i={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};i.node;let l=(0,r.default)(i);var o=e.i(63676),d=e.i(90063),c=e.i(80581);let u={"trierarch-plugin":n.ShipWheel,squadrons:a.Boxes,ship:s.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:a,testId:s,className:n,trailing:r,meaning:i}){let l="none"===e.mark?null:u[e.mark],h=`${e.key}=${e.value}`,m=void 0===i?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${i}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":s,title:m,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,n),children:[null===l?null:(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),r,void 0===a?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:a,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(o.X,{"aria-hidden":!0})})]})}],95960)},88393,e=>{"use strict";var t=e.i(43476),a=e.i(90063),s=e.i(19321);function n(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:r=4,label:i="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),n(r).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:n(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(s.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:n(r).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(s.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},63481,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let s={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};s.node;let n=(0,a.default)(s);var r=e.i(71567);let i={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};i.node;let l=(0,a.default)(i),o={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};o.node;let d=(0,a.default)(o),c={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};c.node;let u=(0,a.default)(c),h={name:"message-circle",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"}]]};h.node;let m=(0,a.default)(h);var p=e.i(41220),f=e.i(83035),x=e.i(94831),g=e.i(90063),y=e.i(66616),b=e.i(40798);let v={DEVICE:d,CLOUD:l,SERVER:p.Server,OTHER:u},k={coding:f.SquareTerminal,chat:m,bot:r.Bot,console:n},j={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:s=null,isCompact:n=!1,size:r="md",className:i}){let l=(0,g.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",j[r],i);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(x.Unplug,{"aria-hidden":!0}),"No session"]});let o=v[e],d=(0,b.locationKindWord)(e),c=null===a?d:`${d} \xb7 ${a}`;if(null!==s){let e=(0,y.harnessKind)(s),n=void 0===e?void 0:k[e],r=(0,y.harnessWord)(s);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===a?`${r} \xb7 ${d}`:`${r} \xb7 ${d}: ${a}`,children:[void 0===n?null:(0,t.jsx)(n,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:r}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:d}),null===a?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",a]})]})}return n?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:c,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[d,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:a??d})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[d,null===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:a})]})]})]})}],63481)},81830,e=>{"use strict";var t=e.i(43476),a=e.i(79432),s=e.i(19002),n=e.i(11147),r=e.i(90063),i=e.i(49635),l=e.i(93361);let o={working:a.Activity,blocked:n.OctagonPause,idle:s.CirclePause},d={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};e.s(["ReportLine",0,function({report:e,now:a,variant:s,isTimeInTitle:n=!1,testId:c}){let u="full"===s,h=(0,r.classNames)("flex min-w-0 items-center gap-1.5",u?"text-body":"text-meta");if(null===e)return(0,t.jsx)("span",{"data-testid":c,"data-state":"none",className:(0,r.classNames)(h,"text-muted-foreground"),children:"No report yet"});let m=o[e.state],p=d[l.REPORT_TONES[e.state]],f=new Date(e.reportedAt);return(0,t.jsxs)("span",{"data-testid":c,"data-state":e.state,title:n?`${(0,l.reportText)(e)} \xb7 ${(0,l.reportedWhen)(f,a)}`:(0,l.reportText)(e),className:h,children:[(0,t.jsx)(m,{"aria-hidden":!0,className:(0,r.classNames)("size-(--size-icon-sm) shrink-0",p)}),(0,t.jsx)("span",{className:(0,r.classNames)("shrink-0 font-medium",p),children:l.REPORT_STATE_WORDS[e.state]}),null===e.note?null:(0,t.jsx)("span",{className:"min-w-0 truncate text-foreground",children:e.note}),n?null:(0,t.jsx)("time",{dateTime:e.reportedAt,title:(0,i.fullDateTime)(f),className:"shrink-0 text-muted-foreground tabular-nums",children:u?`\xb7 ${(0,l.reportedWhen)(f,a)}`:(0,l.reportAge)(f,a)})]})}])},99261,56539,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let s={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};s.node;let n=(0,a.default)(s);e.s(["ChevronUp",0,n],56539);var r=e.i(71645),i=e.i(95960);e.s(["ShipLabels",0,function({chips:e}){let[a,s]=(0,r.useState)(!1);return 0===e.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"No labels"}):!a&&e.length>2?(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[e.slice(0,2).map(e=>(0,t.jsx)(i.LabelChip,{chip:e,testId:"ship-label"},e.valueId)),(0,t.jsxs)("button",{type:"button","aria-label":`Show all ${String(e.length)} labels`,"data-testid":"ship-labels-more",className:"inline-flex h-5.5 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium tabular-nums hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",onClick:()=>{s(!0)},children:["+",e.length-2]})]}):(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[(function(e){let t=[];for(let a of e){let e="none"===a.mark?null:a.ownerName,s=t.find(t=>t.owner===e);void 0===s?t.push({owner:e,chips:[a]}):s.chips.push(a)}return t})(e).map(e=>(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-1.5",children:[null===e.owner?null:(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["by ",e.owner]}),e.chips.map(e=>(0,t.jsx)(i.LabelChip,{chip:e,testId:"ship-label"},e.valueId))]},e.owner??"")),e.length>2?(0,t.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-sm px-1 text-meta hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{s(!1)},children:[(0,t.jsx)(n,{"aria-hidden":!0}),"Show fewer"]}):null]})}],99261)},39448,e=>{"use strict";var t=e.i(43476),a=e.i(25913),s=e.i(22016),n=e.i(90063);let r=(0,a.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:a,size:i,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:c}){let u=d?(0,t.jsx)(s.default,{href:d,className:(0,n.classNames)(r({size:i}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:r({size:i}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,n.classNames)("inline-flex min-w-0 items-baseline gap-1.5",c),children:[u,o?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,l&&!o?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),a.slice(-4)]}):null]})}])},37631,e=>{"use strict";var t=e.i(43476),a=e.i(77880),s=e.i(85538);e.s(["DetailPage",0,function({title:e,parents:n,header:r,children:i,sheet:l,live:o,onCompose:d,onSearch:c,banner:u}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Header,{breadcrumb:e,parents:n,live:o,onCompose:d,onSearch:c}),u,(0,t.jsx)(s.TopBar,{title:e,live:o,back:n[n.length-1]??n[0]}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[r,i]}),l]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),a=e.i(67927),s=e.i(66595),n=e.i(19759),r=e.i(22016),i=e.i(15905),l=e.i(36651),o=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:a}){let{label:s,dot:n}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",n)}),s]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:u,onSearch:h}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(r.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(a.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),h?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(s.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(n.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:u,children:"Compose"}):null]})]})}],77880);var u=e.i(24071),h=e.i(57957);e.s(["TopBar",0,function({title:e,live:a,actions:n,back:l,account:o,onSearch:d}){let m=d&&!l?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:a}),n||m||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(s.Search,{"aria-hidden":!0})}):null,n,o&&!l?(0,t.jsx)(h.AccountMenuSheet,{...o}):null]}):null]})}],85538)},8041,e=>{"use strict";var t=e.i(14695);function a(e,t){for(let a of t)e.includes(a)||e.push(a)}function s(e){return Object.fromEntries((e?.options??[]).flatMap(e=>{let t=e.defaultValue??e.values[0];return void 0===t?[]:[[e.name,t]]}))}function n(e){let[t]=e?.repositories??[];if(void 0!==t)return{kind:"worktree",repository:t};let[a]=e?.folders??[];return void 0===a?void 0:{kind:"folder",name:a}}function r(e){let[t]=e;return{harness:t?.harness??"",workspace:n(t),options:s(t),firstPrompt:"",squadron:"",machineLabels:[]}}let i=new TextEncoder;function l(e){return i.encode(e).byteLength}function o(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,o,"defaultValues",0,r,"offersOf",0,function(e){let s=[];for(let n of e)if(!n.isSilent&&null!==n.details)for(let e of n.details.harnesses){let r=s.find(t=>t.harness===e.harness);for(let i of(void 0===r&&(r={harness:e.harness,repositories:[],folders:[],options:[]},s.push(r)),a(r.repositories,n.details.workspaces.repositories),a(r.folders,n.details.workspaces.folders),(0,t.harnessOptions)(e.options))){let e=r.options.find(e=>e.name===i.name);void 0===e?r.options.push({...i,values:[...i.values]}):(a(e.values,i.values),e.defaultValue??=i.defaultValue)}}return s},"promptBytes",0,l,"settingsOf",0,function(e){if(""!==e.harness&&void 0!==e.workspace)return{harness:e.harness,workspace:e.workspace,options:e.options,...""===e.firstPrompt?{}:{firstPrompt:e.firstPrompt},...""===e.squadron?{}:{squadron:e.squadron},...0===e.machineLabels.length?{}:{machineLabels:e.machineLabels}}},"settingsRows",0,function(e){if(null==e)return;let{harness:t,workspace:a,options:s,firstPrompt:n,squadron:r}=e;return[{label:"Harness",value:t??"Trierarch default"},"worktree"===a.kind?{label:"Workspace",value:a.repository,meta:"New worktree"}:{label:"Workspace",value:a.name,meta:"Folder, as it is"},...Object.entries(s).map(([e,t])=>({label:e,value:"string"==typeof t?t:JSON.stringify(t),isMono:!0})),{label:"First prompt",value:void 0===n?null:o(l(n))},{label:"Squadron",value:r??null,isMono:!0}]},"valuesOf",0,function(e,t){if(null==e)return r(t);let{harness:a,workspace:s,options:n,firstPrompt:i,squadron:l,machineLabels:o}=e;return{harness:a??r(t).harness,workspace:"worktree"===s.kind?{kind:"worktree",repository:s.repository}:{kind:"folder",name:s.name},options:Object.fromEntries(Object.entries(n).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:i??"",squadron:l??"",machineLabels:[...o??[]]}},"withHarness",0,function(e,t){let{harness:a,offers:r}=t,i=r.find(e=>e.harness===a),l=e.workspace,o=void 0!==l&&("worktree"===l.kind?i?.repositories.includes(l.repository)??!1:i?.folders.includes(l.name)??!1);return{...e,harness:a,workspace:o?l:n(i),options:s(i)}}])},10921,e=>{"use strict";var t=e.i(76580),a=e.i(94070);e.s(["useCrewSettings",0,function(e){let s=(0,t.useConsoleRead)({queryKey:["crew-settings",JSON.stringify(e)],queryFn:()=>(0,a.fetchConsoleRead)({read:"crew-settings",input:{settings:[...e]}}),enabled:e.length>0,staleTime:1/0});return 0===e.length?[]:s.data}])},66616,e=>{"use strict";var t=e.i(49635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function s(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":s(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let s=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===s?"just now":s}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,s])},18423,e=>{"use strict";var t=e.i(12598),a=e.i(5861),s=e.i(71645),n=e.i(42454),r=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,r.useTRPC)(),c=(0,t.useQueryClient)(),[u,h]=(0,s.useState)(new Set),m=e=>{l(c,e)},p=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var a,s,r;if("resync"===t.kind)return void m(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(m(e.fleet.ship.queryKey({shipId:t})),m(e.fleet.shipTimeline.queryKey({shipId:t})),m(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.shipWay.pathKey()),m(e.fleet.overdue.queryKey()),m(e.fleet.message.queryKey({messageId:l.messageId})),m(e.fleet.inbox.pathKey()),m(n.QUESTIONS_KEY),m(e.fleet.noShipCanTake.queryKey())),a=l.type,d.has(a)&&m(e.fleet.needsAttention.queryKey()),s=l.type,o.has(s)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&m(e.fleet.declaredNetworkRules.queryKey()),r=l.type,!i.has(r))return;m(e.fleet.list.queryKey()),m(e.fleet.noShipCanTake.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&h(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(p.status),newShipIds:u,error:p.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},78608,e=>{"use strict";var t=e.i(80581);function a(e,t){return e.ships.find(e=>e.id===t.shipId)?.labels.map(e=>e.valueId)??[]}e.s(["machineLabelIdsOf",0,function(e){return[...e?.machineLabels??[]]},"machineLabelsInputOf",0,function(e,s){let{machines:n,shipLabelsMax:r}=s;return{groups:function(e,t){let s=t.map(t=>a(e,t)),n=[],r=[];for(let t of e.labels){let a=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:s.filter(t=>t.includes(e.id)).length})),i={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:a};(a.some(e=>e.shipCount>0)?n:r).push(i)}let i=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:n.toSorted(i)},{title:"On no machine yet",keys:r.toSorted(i)}].filter(e=>e.keys.length>0)}(e,n),max:r,chipsOf:a=>(0,t.pickedChips)(a,e),matchOf:t=>{var s;return{matching:(s={machines:n,valueIds:t}).machines.filter(t=>{let n=a(e,t);return s.valueIds.every(e=>n.includes(e))}).map(e=>e.name),total:s.machines.length}}}},"machineLabelsText",0,function(e){let t=e.map(e=>`${e.key}=${e.value}`);return t.length<=2?t.join(" and "):`${t.slice(0,-1).join(", ")} and ${t.at(-1)??""}`},"noMatchWords",0,function(e){return 1===e?{these:"this label",carries:"carries it"}:2===e?{these:"both",carries:"carries both"}:{these:"these labels",carries:"carries them all"}}])},69693,e=>{"use strict";var t=e.i(46150);function a(e){let t=e.split(";")[0]?.trim().toLowerCase()??"";return"application/json"===t||t.endsWith("+json")}e.s(["formattedPayload",0,function(e,t){if(a(t))try{return JSON.stringify(JSON.parse(e),null,2)}catch{return}},"isJson",0,a,"payloadLabel",0,function(e,s){let n=a(s)?"JSON":s.split(";")[0]?.trim()??s,r=new TextEncoder().encode(e).byteLength;return`${n} \xb7 ${(0,t.counted)(r,{one:"byte",many:"bytes"})}`}])},9176,e=>{"use strict";var t=e.i(46806),a=e.i(86165),s=e.i(265);e.s(["usePluginShipIds",0,function(){let e=(0,a.useSquadronsSettings)(),n=(0,s.useTrierarchPluginSettings)(),r=(0,t.useNetworkingPluginSettings)();return new Set([e.data,n.data,r.data].flatMap(e=>{if(void 0===e||"none"===e.state)return[];let t=e.ship?.shipId??e.lastShipId;return null===t?[]:[t]}))}])},93361,e=>{"use strict";var t=e.i(49635);let a={working:"Working",blocked:"Blocked",idle:"Idle"};e.s(["REPORT_STATE_WORDS",0,a,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(e,a){let s=Math.max(0,a.getTime()-e.getTime());return s<6e4?`${String(Math.floor(s/1e3))} s`:s<36e5?`${String(Math.floor(s/6e4))} min`:s<864e5?`${String(Math.floor(s/36e5))} h`:(0,t.relativeTime)(e,a)},"reportDetailsJson",0,function(e){return JSON.stringify(e,null,2)},"reportDetailsLabel",0,function(e){return`JSON \xb7 ${String(e)} bytes`},"reportText",0,function(e){let t=a[e.state];return null===e.note?t:`${t}: ${e.note}`},"reportedWhen",0,function(e,a){let s=(0,t.relativeTime)(e,a);return`reported ${"Just now"===s?"just now":s}`}])}]);
|