@aeolus-fleet/console 0.32.4 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)/fleet-health/[cause]/page/server-reference-manifest.json +26 -15
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page/server-reference-manifest.json +26 -15
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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)/scopes/page/server-reference-manifest.json +26 -15
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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.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/api/analytics/route.js.nft.json +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/argo/confirm/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/out/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/done/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/enter/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/out/route.js.nft.json +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/renew/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/start/route.js.nft.json +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]__0-b_d8j._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__05uof7g._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__0w4s32w._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/_02-7tdl._.js +5 -5
- package/.next/standalone/packages/console/.next/server/chunks/_0l8ph40._.js +5 -5
- package/.next/standalone/packages/console/.next/server/chunks/_16i3nlz._.js +5 -5
- package/.next/standalone/packages/console/.next/server/chunks/_1uqphll._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_12xi4n9._.js → 0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_1th4quy._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__0w3uw0-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0d0gtms._.js → _055rsih._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1oka2bu._.js → _05in8ls._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0qf98-v._.js → _0607-_6._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_06y4qg4._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1diq6u_._.js → _0cd_chc._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0chpnwx._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0lx73da._.js → _0eh_-17._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0bifz7d._.js → _0mq-55x._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_11r5b4c._.js → _0nn5y-v._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1lt6p4q._.js → _0w5l_7h._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wrm2to._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0xfzttf._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0d2kcoi._.js → _0ydu2av._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_11jx7z9._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1j285b1._.js → _13zizty._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1ymusis._.js → _1b_x7o3._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1c8_t28._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1k9mt5a._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1m5wn-m._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1su9voz._.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/_1y1x0jn._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_20u8c82._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_00qg_s6._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02v53na._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02wkudy._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_04rox65._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_05zitd2._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_065nea1._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_14t73zp._.js → packages_console_06tqha0._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1xsfwim._.js → packages_console_0_9qnut._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0h_376h._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0hs6kp-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ko_ogs._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0l5mn5a._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1zqsczh._.js → packages_console_0qf-zqf._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0sr2-oa._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ysbad7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_108sez2._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1jy5-0g._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1n8w8x0._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1oz8iu7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1rdu3gt._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0y9q7e-._.js → packages_console_1rhomt6._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1yfimad._.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_components_organisms_crew-line-dialog_tsx_1i6h-gq._.js → packages_console_components_organisms_crew-line-dialog_tsx_1h-qcrg._.js} +1 -1
- 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 +107 -16
- package/.next/standalone/packages/console/.next/static/chunks/{2bqxl5_u1hjjb.js → 0c88w1-7epscc.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3d08vpjjajs5u.js → 0dtiejrfyjxji.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/0hhsy6ra8bzk3.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0ij3s_9_0m8zf.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0k72ei_zsyabn.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3s0t8rpxlltvx.js → 17mtrygfuyta6.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3p9n2jbwcevpb.js → 1k3vukm179xyz.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{25lqwg1ge5_eu.js → 2twpd7o-xmyvk.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/359n0u5b59fd1.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/39gqt0zkw70vv.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3_uxo69_fvryi.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{31igh_hj23iqi.js → 3gp-2eifnshyl.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/43fc04wo9rnfn.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/44z7dfqca15nv.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/_0vlg8_g._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1-ujs2g._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1zx6x5t._.js +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/0wlqvdnkbefpg.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1vyt2hnz2hej1.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/37z1m78w3m30v.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3h239jvs_g-0p.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3jqy92yv_bbl5.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3nxxqirmjei_n.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3yv3f9n4ksdv1.js +0 -1
- /package/.next/standalone/packages/console/.next/static/{nbrn3Dt5cjcfLvXnIbUj9 → bALUvjOMkmhxleGSGcze5}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{nbrn3Dt5cjcfLvXnIbUj9 → bALUvjOMkmhxleGSGcze5}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{nbrn3Dt5cjcfLvXnIbUj9 → bALUvjOMkmhxleGSGcze5}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": {
|
|
3
|
-
"
|
|
3
|
+
"00ad6d3cb1134061668a5f2600efc9f962a9c420b2": {
|
|
4
4
|
"workers": {
|
|
5
5
|
"app/(console)/fleet-health/[cause]/page": {
|
|
6
6
|
"moduleId": 752012,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
92
92
|
"exportedName": "connectSquadrons"
|
|
93
93
|
},
|
|
94
|
-
"
|
|
94
|
+
"40e2105e5a6374569fba3e87c472f18495eb077dbe": {
|
|
95
95
|
"workers": {
|
|
96
96
|
"app/(console)/fleet-health/[cause]/page": {
|
|
97
97
|
"moduleId": 752012,
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
183
183
|
"exportedName": "addMember"
|
|
184
184
|
},
|
|
185
|
-
"
|
|
185
|
+
"400ed1be8b3663a105508ab335729365584f1c853a": {
|
|
186
186
|
"workers": {
|
|
187
187
|
"app/(console)/fleet-health/[cause]/page": {
|
|
188
188
|
"moduleId": 752012,
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
274
274
|
"exportedName": "addRepository"
|
|
275
275
|
},
|
|
276
|
-
"
|
|
276
|
+
"407882d5acf361433706b292acd2fb8762326464a5": {
|
|
277
277
|
"workers": {
|
|
278
278
|
"app/(console)/fleet-health/[cause]/page": {
|
|
279
279
|
"moduleId": 752012,
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
365
365
|
"exportedName": "forceStandDown"
|
|
366
366
|
},
|
|
367
|
-
"
|
|
367
|
+
"4066914ee64d6d0ec7edc0f6ddd6e806b4ec6b9c24": {
|
|
368
368
|
"workers": {
|
|
369
369
|
"app/(console)/fleet-health/[cause]/page": {
|
|
370
370
|
"moduleId": 752012,
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
456
456
|
"exportedName": "formSquadron"
|
|
457
457
|
},
|
|
458
|
-
"
|
|
458
|
+
"4059a854fbf5719343913111896f5694b2968a7f8b": {
|
|
459
459
|
"workers": {
|
|
460
460
|
"app/(console)/fleet-health/[cause]/page": {
|
|
461
461
|
"moduleId": 752012,
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
547
547
|
"exportedName": "newCrewLine"
|
|
548
548
|
},
|
|
549
|
-
"
|
|
549
|
+
"000fcf62f89004830b832cf527aa90e4dce3e6664c": {
|
|
550
550
|
"workers": {
|
|
551
551
|
"app/(console)/fleet-health/[cause]/page": {
|
|
552
552
|
"moduleId": 752012,
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
638
638
|
"exportedName": "refreshCatalogue"
|
|
639
639
|
},
|
|
640
|
-
"
|
|
640
|
+
"409278b104676fe26ea1e9c388d87fa5936e56e0da": {
|
|
641
641
|
"workers": {
|
|
642
642
|
"app/(console)/fleet-health/[cause]/page": {
|
|
643
643
|
"moduleId": 752012,
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
729
729
|
"exportedName": "removeMember"
|
|
730
730
|
},
|
|
731
|
-
"
|
|
731
|
+
"40c24ac5475714d3efcda449a86d1d3c133e249490": {
|
|
732
732
|
"workers": {
|
|
733
733
|
"app/(console)/fleet-health/[cause]/page": {
|
|
734
734
|
"moduleId": 752012,
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
820
820
|
"exportedName": "removeRepository"
|
|
821
821
|
},
|
|
822
|
-
"
|
|
822
|
+
"40edfbf8eee44b2ab28d8fa35b4d5804a78615d4d0": {
|
|
823
823
|
"workers": {
|
|
824
824
|
"app/(console)/fleet-health/[cause]/page": {
|
|
825
825
|
"moduleId": 752012,
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
"filename": "packages/console/lib/squadrons-actions.ts",
|
|
911
911
|
"exportedName": "standDown"
|
|
912
912
|
},
|
|
913
|
-
"
|
|
913
|
+
"007cca09bd9aa7ce4e140bb45bcd0f9ec5c54aa87b": {
|
|
914
914
|
"workers": {
|
|
915
915
|
"app/(console)/fleet-health/[cause]/page": {
|
|
916
916
|
"moduleId": 752012,
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
"filename": "packages/console/lib/gateway-actions.ts",
|
|
1002
1002
|
"exportedName": "connectGateway"
|
|
1003
1003
|
},
|
|
1004
|
-
"
|
|
1004
|
+
"00c68731eeadf9565320fcdaabf2eaa6a45d69dda3": {
|
|
1005
1005
|
"workers": {
|
|
1006
1006
|
"app/(console)/fleet-health/[cause]/page": {
|
|
1007
1007
|
"moduleId": 752012,
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
"filename": "packages/console/lib/trierarch-plugin-actions.ts",
|
|
1093
1093
|
"exportedName": "connectTrierarchPlugin"
|
|
1094
1094
|
},
|
|
1095
|
-
"
|
|
1095
|
+
"406b12501dec0759d58db9481855b714d8aa20a09f": {
|
|
1096
1096
|
"workers": {
|
|
1097
1097
|
"app/(console)/fleet-health/[cause]/page": {
|
|
1098
1098
|
"moduleId": 752012,
|
|
@@ -1183,7 +1183,98 @@
|
|
|
1183
1183
|
"filename": "packages/console/lib/trierarch-plugin-actions.ts",
|
|
1184
1184
|
"exportedName": "joinMachine"
|
|
1185
1185
|
},
|
|
1186
|
-
"
|
|
1186
|
+
"40abcb5813a8a1cca72234d1758376dff6c7153ad3": {
|
|
1187
|
+
"workers": {
|
|
1188
|
+
"app/(console)/fleet-health/[cause]/page": {
|
|
1189
|
+
"moduleId": 752012,
|
|
1190
|
+
"async": false,
|
|
1191
|
+
"codeHash": null
|
|
1192
|
+
},
|
|
1193
|
+
"app/(console)/fleet-health/page": {
|
|
1194
|
+
"moduleId": 387229,
|
|
1195
|
+
"async": false,
|
|
1196
|
+
"codeHash": null
|
|
1197
|
+
},
|
|
1198
|
+
"app/(console)/inbox/page": {
|
|
1199
|
+
"moduleId": 488503,
|
|
1200
|
+
"async": false,
|
|
1201
|
+
"codeHash": null
|
|
1202
|
+
},
|
|
1203
|
+
"app/(console)/labels/page": {
|
|
1204
|
+
"moduleId": 520279,
|
|
1205
|
+
"async": false,
|
|
1206
|
+
"codeHash": null
|
|
1207
|
+
},
|
|
1208
|
+
"app/(console)/needs-attention/page": {
|
|
1209
|
+
"moduleId": 973050,
|
|
1210
|
+
"async": false,
|
|
1211
|
+
"codeHash": null
|
|
1212
|
+
},
|
|
1213
|
+
"app/(console)/needs-crew/page": {
|
|
1214
|
+
"moduleId": 189067,
|
|
1215
|
+
"async": false,
|
|
1216
|
+
"codeHash": null
|
|
1217
|
+
},
|
|
1218
|
+
"app/(console)/network/page": {
|
|
1219
|
+
"moduleId": 566623,
|
|
1220
|
+
"async": false,
|
|
1221
|
+
"codeHash": null
|
|
1222
|
+
},
|
|
1223
|
+
"app/(console)/page": {
|
|
1224
|
+
"moduleId": 146180,
|
|
1225
|
+
"async": false,
|
|
1226
|
+
"codeHash": null
|
|
1227
|
+
},
|
|
1228
|
+
"app/(console)/scopes/page": {
|
|
1229
|
+
"moduleId": 741112,
|
|
1230
|
+
"async": false,
|
|
1231
|
+
"codeHash": null
|
|
1232
|
+
},
|
|
1233
|
+
"app/(console)/settings/page": {
|
|
1234
|
+
"moduleId": 28870,
|
|
1235
|
+
"async": false,
|
|
1236
|
+
"codeHash": null
|
|
1237
|
+
},
|
|
1238
|
+
"app/(console)/ships/[shipId]/page": {
|
|
1239
|
+
"moduleId": 168006,
|
|
1240
|
+
"async": false,
|
|
1241
|
+
"codeHash": null
|
|
1242
|
+
},
|
|
1243
|
+
"app/(console)/squadrons/[squadronId]/page": {
|
|
1244
|
+
"moduleId": 268127,
|
|
1245
|
+
"async": false,
|
|
1246
|
+
"codeHash": null
|
|
1247
|
+
},
|
|
1248
|
+
"app/(console)/squadrons/blueprints/[name]/page": {
|
|
1249
|
+
"moduleId": 695835,
|
|
1250
|
+
"async": false,
|
|
1251
|
+
"codeHash": null
|
|
1252
|
+
},
|
|
1253
|
+
"app/(console)/squadrons/page": {
|
|
1254
|
+
"moduleId": 676869,
|
|
1255
|
+
"async": false,
|
|
1256
|
+
"codeHash": null
|
|
1257
|
+
},
|
|
1258
|
+
"app/(console)/squadrons/templates/[name]/page": {
|
|
1259
|
+
"moduleId": 431648,
|
|
1260
|
+
"async": false,
|
|
1261
|
+
"codeHash": null
|
|
1262
|
+
},
|
|
1263
|
+
"app/(console)/trierarchs/[shipId]/page": {
|
|
1264
|
+
"moduleId": 21980,
|
|
1265
|
+
"async": false,
|
|
1266
|
+
"codeHash": null
|
|
1267
|
+
},
|
|
1268
|
+
"app/(console)/trierarchs/page": {
|
|
1269
|
+
"moduleId": 225984,
|
|
1270
|
+
"async": false,
|
|
1271
|
+
"codeHash": null
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
"filename": "packages/console/lib/trierarch-plugin-actions.ts",
|
|
1275
|
+
"exportedName": "newSetupLine"
|
|
1276
|
+
},
|
|
1277
|
+
"40deced2d194960cd09c9f0aa09e1cf18b9affe62a": {
|
|
1187
1278
|
"workers": {
|
|
1188
1279
|
"app/(console)/fleet-health/[cause]/page": {
|
|
1189
1280
|
"moduleId": 752012,
|
|
@@ -1274,7 +1365,7 @@
|
|
|
1274
1365
|
"filename": "packages/console/lib/trierarch-plugin-actions.ts",
|
|
1275
1366
|
"exportedName": "setModelEnabled"
|
|
1276
1367
|
},
|
|
1277
|
-
"
|
|
1368
|
+
"40b27ab02da941b80ba45512df959baa16bd99d522": {
|
|
1278
1369
|
"workers": {
|
|
1279
1370
|
"app/(console)/fleet-health/[cause]/page": {
|
|
1280
1371
|
"moduleId": 752012,
|
|
@@ -1367,5 +1458,5 @@
|
|
|
1367
1458
|
}
|
|
1368
1459
|
},
|
|
1369
1460
|
"edge": {},
|
|
1370
|
-
"encryptionKey": "
|
|
1461
|
+
"encryptionKey": "YnxHRksSDQiO5zyfYv6b6E6aTQENummTmjMDjMViQj0="
|
|
1371
1462
|
}
|
package/.next/standalone/packages/console/.next/static/chunks/{2bqxl5_u1hjjb.js → 0c88w1-7epscc.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,792150,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let n=(0,t.default)(s);e.s(["Boxes",0,n],792150)},569644,269846,e=>{"use strict";var t=e.i(456420);let s={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 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.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};s.node;let n=(0,t.default)(s);e.s(["FolderOpen",0,n],569644);let i={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};i.node;let a=(0,t.default)(i);e.s(["GitBranch",0,a],269846)},77071,e=>{"use strict";var t=e.i(456420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let n=(0,t.default)(s);e.s(["Plus",0,n],77071)},759659,e=>{"use strict";var t=e.i(456420);let s={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};s.node;let n=(0,t.default)(s);e.s(["Trash2",0,n],759659)},419413,e=>{"use strict";e.s(["PAGE_SIZE_MAX",0,500])},177096,e=>{"use strict";var t=e.i(843476),s=e.i(271645),n=e.i(422768),i=e.i(316984),a=e.i(456420);let r={name:"folder-x",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9.5 10.5 5 5",key:"ra9qjz"}],["path",{d:"m14.5 10.5-5 5",key:"l2rkpq"}]]};r.node;let l=(0,a.default)(r);var d=e.i(611568),o=e.i(749287),c=e.i(586875),u=e.i(759659),h=e.i(522016),m=e.i(54492),p=e.i(849635),x=e.i(574296),g=e.i(861966),f=e.i(219321),j=e.i(615385),v=e.i(67874),w=e.i(699261),b=e.i(763481),y=e.i(78865),k=e.i(36556);function N({spot:e,now:s}){let n="running"===e.status?e.startedAt:null,i=(0,m.restartWords)(e);return null===n&&void 0===i?null:(0,t.jsxs)("span",{className:"text-meta text-muted-foreground","data-testid":"machine-spot-session",children:[null===n?null:(0,t.jsxs)(t.Fragment,{children:["since"," ",(0,t.jsx)("time",{dateTime:n,title:(0,p.fullDateTime)(new Date(n)),className:"tabular-nums",children:(0,p.sinceTime)(new Date(n),s)})]}),null!==n&&void 0!==i?" · ":null,i]})}function S({label:e,children:s}){return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1 bg-card px-3.5 py-3",children:[(0,t.jsx)("dt",{className:"text-meta text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"flex min-w-0 items-center gap-1.5 text-body text-foreground",children:s})]})}function C({title:e,count:s,note:n,children:i}){return(0,t.jsxs)("section",{"aria-label":e,className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("h2",{className:"flex items-baseline gap-2 text-section font-semibold",children:[e,void 0===s?null:(0,t.jsx)("span",{className:"text-meta font-normal text-muted-foreground tabular-nums",children:s}),void 0===n?null:(0,t.jsx)("span",{className:"text-meta font-normal text-muted-foreground",children:n})]}),i]})}function A({icon:e,name:s,meta:n,action:i}){return(0,t.jsxs)("li",{className:"flex items-start gap-2 px-3.5 py-2.5 [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[e,(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)("span",{className:"truncate font-mono text-id",children:s}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:n})]}),i]})}function T({kept:e,shipName:s,isBeingCleared:n,onClear:i}){let a=n?(0,t.jsx)(I,{}):void 0===i?void 0:(0,t.jsx)(x.Button,{size:"xs",variant:"ghost",icon:(0,t.jsx)(u.Trash2,{"aria-hidden":!0}),"aria-label":`Delete the kept ${e.repository} worktree of ${s}`,"data-testid":"machine-worktree-delete",onClick:()=>{i({...e,shipName:s})},children:"Delete"});return(0,t.jsx)(A,{icon:(0,t.jsx)(l,{"aria-hidden":!0}),name:`${e.repository}/${s}`,meta:"Kept after release, with uncommitted changes",action:a})}function I(){return(0,t.jsxs)("span",{"data-testid":"machine-worktree-clearing",className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-tone-waiting-border bg-tone-waiting-bg px-1.5 py-0.5 text-meta text-tone-waiting-fg [&_svg]:mt-0 [&_svg]:text-tone-waiting-fg",children:[(0,t.jsx)(d.LoaderCircle,{"aria-hidden":!0}),"Clearing"]})}function z({machine:e,state:s,spots:a,location:r,labels:d,now:u,shipNames:m,clearRequests:I=[],onClearKept:_}){if("loading"===s||"ready"===s&&void 0===e)return(0,t.jsxs)("div",{"aria-busy":!0,"data-testid":"machine-detail",className:"flex flex-col gap-4",children:[(0,t.jsx)("span",{className:"sr-only",children:"Loading the machine"}),(0,t.jsx)(f.Skeleton,{className:"h-8 w-48"}),(0,t.jsx)(f.Skeleton,{className:"h-16 w-full rounded-lg"}),(0,t.jsx)(f.Skeleton,{className:"h-40 w-full rounded-lg"})]});if("not-found"===s||void 0===e)return(0,t.jsx)("div",{"data-testid":"machine-detail",children:(0,t.jsx)(v.EmptyState,{variant:"section",icon:(0,t.jsx)(n.CircleAlert,{}),title:"Machine not found",description:"The trierarch plugin lists no machine with this ship id. The link may be incomplete.",action:(0,t.jsx)(x.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(h.default,{href:"/trierarchs"}),children:"Back to Trierarchs"})})});let{details:q,report:M}=e,R=null===M?null:new Date(M.reportedAt),$=e.isSilent&&null!==e.lastSeenAt,B=$&&null!==R?`As of ${(0,p.clockTime)(R)}`:void 0;return(0,t.jsxs)("div",{"data-testid":"machine-detail",className:"flex flex-col gap-5 max-sm:gap-3.5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2.5",children:[(0,t.jsxs)("h1",{className:"inline-flex items-center gap-2 text-title font-semibold [&_svg]:size-(--size-icon-lg) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(c.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(k.MachineLiveness,{machine:e,now:u})]}),(0,t.jsx)(x.Button,{size:"xs",icon:(0,t.jsx)(o.Ship,{"aria-hidden":!0}),nativeButton:!1,render:(0,t.jsx)(h.default,{href:`/ships/${e.shipId}`}),"data-testid":"machine-ship-page",children:"Ship page"})]}),(0,t.jsxs)("dl",{className:"grid grid-cols-5 gap-px overflow-hidden rounded-lg border border-border bg-border max-lg:grid-cols-2",children:[(0,t.jsx)(S,{label:"Capacity",children:(0,t.jsx)(j.CapacityBar,{spots:a,caps:q?.caps,unknownText:null===R?"Unknown until it answers":`Unknown since ${(0,p.clockTime)(R)}`})}),(0,t.jsx)(S,{label:"Machine",children:(0,t.jsx)(b.LocationTag,{kind:r?.kind??null,description:r?.description,size:"md"})}),(0,t.jsx)(S,{label:"Version",children:null===q?(0,t.jsx)("span",{className:"text-muted-foreground",children:"Unknown"}):(0,t.jsxs)("span",{className:"font-mono text-id",children:["@aeolus-fleet/trierarch@",q.version]})}),(0,t.jsx)(S,{label:"Last answer",children:null===R?(0,t.jsx)("span",{className:"text-muted-foreground",children:"None yet"}):(0,t.jsx)("time",{dateTime:M?.reportedAt,title:(0,p.fullDateTime)(R),className:"tabular-nums",children:(0,k.lastAnswer)(R,u)})}),(0,t.jsxs)(S,{label:"Ship id",children:[(0,t.jsx)("span",{className:"truncate font-mono text-id",children:e.shipId}),(0,t.jsx)(g.CopyButton,{value:e.shipId,label:"Copy ship id"})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1.5","data-testid":"machine-labels-row",children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Labels"}),void 0===d?(0,t.jsx)(f.Skeleton,{className:"h-5.5 w-40"}):(0,t.jsx)(w.ShipLabels,{chips:d}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Read-only here. Crew requests that ask for machine labels go only to machines carrying all of them."})]}),$&&null!==e.lastSeenAt?(0,t.jsxs)("p",{role:"alert","data-testid":"machine-silent",className:"flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg px-3.5 py-2.5 text-meta text-tone-attention-fg [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(i.CircleX,{"aria-hidden":!0}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("strong",{className:"font-medium",children:[e.name," has not answered since ",(0,p.clockTime)(new Date(e.lastSeenAt)),"."]})," ","It is probably not running",r?.description?` on ${r.description}`:"",". Until it answers, nothing restarts its sessions; everything below is its last answer."]})]}):null,(0,t.jsx)(C,{title:"Running here",count:a.length,note:B,children:0===a.length?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"No ship is assigned to this trierarch."}):(0,t.jsx)("ul",{className:"divide-y divide-border rounded-lg border border-border bg-card","data-testid":"machine-spots",children:a.map(e=>(0,t.jsxs)("li",{className:"flex items-center justify-between gap-3 px-3.5 py-2.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)(h.default,{href:`/ships/${e.shipId}`,className:"truncate text-body font-medium hover:underline",children:e.name}),void 0===e.workspace?null:(0,t.jsxs)("span",{className:"truncate text-meta text-muted-foreground","data-testid":"machine-spot-workspace",children:[(0,t.jsx)("span",{className:"sr-only",children:"Workspace: "}),(0,t.jsx)("span",{className:"font-mono text-id",children:e.workspace.name})," · ","worktree"===e.workspace.kind?"new worktree":"folder, as it is"]})]}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-2.5",children:[(0,t.jsx)(N,{spot:e,now:u}),(0,t.jsx)(y.StatusBadge,{status:e.status})]})]},e.shipId))})}),(0,t.jsx)(C,{title:"Harnesses",count:q?.harnesses.length,note:B,children:null===q?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Unknown until it answers."}):(0,t.jsx)("div",{className:"rounded-lg border border-border bg-card px-3.5 py-3",children:q.harnesses.map(e=>(0,t.jsx)(k.HarnessOffer,{harness:e,now:u},e.harness))})}),(0,t.jsx)(C,{title:"Workspaces",count:null===q?void 0:q.workspaces.repositories.length+q.workspaces.folders.length,children:null===q?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Unknown until it answers."}):(0,t.jsx)("div",{className:"rounded-lg border border-border bg-card px-3.5 py-3",children:(0,t.jsx)(k.WorkspaceOffer,{workspaces:q.workspaces})})}),null===q||0===q.kept.length&&0===q.orphans.length?null:(0,t.jsxs)(C,{title:"Worktrees",children:[(0,t.jsxs)("ul",{className:"divide-y divide-border rounded-lg border border-border bg-card","data-testid":"machine-worktrees",children:[q.kept.map(s=>{var n;return(0,t.jsx)(T,{kept:s,shipName:m?.get(s.shipId)??s.shipId,isBeingCleared:(n={trierarchShipId:e.shipId,...s},I.some(e=>e.trierarchShipId===n.trierarchShipId&&e.shipId===n.shipId&&e.repository===n.repository)),onClear:_},`${s.shipId}/${s.repository}`)}),q.orphans.map(e=>(0,t.jsx)(A,{icon:(0,t.jsx)(l,{"aria-hidden":!0}),name:`${e.repository}/${e.name}`,meta:"No crew request"},`${e.repository}/${e.name}`))]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"The trierarch never deletes these on its own."})]})]})}var _=e.i(835114),q=e.i(837631),M=e.i(787964),R=e.i(917540),$=e.i(490262),B=e.i(458155),L=e.i(954616),O=e.i(266027),W=e.i(912598),E=e.i(427702),D=e.i(905387),H=e.i(442111),U=e.i(280581),P=e.i(718423),F=e.i(510921),V=e.i(714695),K=e.i(928459),Z=e.i(296676),G=e.i(678485),J=e.i(853573),Q=e.i(500265);let X=(0,R.lazyDialog)(()=>e.A(551212).then(e=>e.ClearWorktreeDialog),e=>void 0!==e.worktree);e.s(["default",0,function({params:e}){let n,i,a,{shipId:r}=(0,s.use)(e),l=(0,Z.useNow)(),d=(0,M.useConsoleFrame)(),o=(0,K.useNeedsAttention)(),c=(0,P.useLiveFleet)(),u=(0,Q.useTrierarchPluginConnection)(),h=(0,Q.useMachines)(),m=(0,$.useAccess)(),[p,x]=(0,s.useState)(void 0),g=(n=(0,E.useTRPC)(),(0,O.useQuery)(n.fleet.clearRequests.queryOptions(void 0,{refetchInterval:1e4}))),f=(i=(0,E.useTRPC)(),a=(0,W.useQueryClient)(),(0,L.useMutation)(i.fleet.clearWorktree.mutationOptions({onSuccess:()=>a.invalidateQueries({queryKey:i.fleet.clearRequests.queryKey()})})));(0,G.useSignInWhenSessionEnds)([o.error,c.error]);let j=h.data?.find(e=>e.shipId===r),v=(0,B.useAssignedShips)(void 0===j?void 0:[j.shipId])??[],w=void 0===j?[]:(0,V.spotsOf)(j,v),b=(0,H.useListedShips)([...void 0===j?[]:[j.shipId],...j?.details?.kept.map(e=>e.shipId)??[]]),y=(0,D.useLabelContext)(),k=void 0===j?void 0:b?.get(j.shipId),N=[...(0,J.useShips)(w.map(e=>e.shipId))].flatMap(([e,t])=>null===t.crewRequest?[]:[{id:e,settings:t.crewRequest.settings}]),S=(0,F.useCrewSettings)(N.map(e=>e.settings)),C=new Map(N.map((e,t)=>[e.id,S?.[t]??null]));return(0,t.jsx)(q.DetailPage,{switcher:d.switcher,account:d.account,onCompose:d.onCompose,onSearch:d.onSearch,banner:d.banner,title:j?.name??"Machine",parents:[{href:"/trierarchs",label:"Trierarchs"}],live:c.live,header:"connected"!==u||h.isError?(0,t.jsx)(_.MachineList,{connection:u,machines:h.data,ships:v,error:h.isError?h.error.message:void 0,onRetry:()=>{h.refetch()},now:l}):(0,t.jsx)(z,{machine:j,state:void 0===h.data?"loading":void 0===j?"not-found":"ready",spots:(0,V.withWorkspaces)(w,C),location:k?.location??null,...void 0===y||void 0===k?{}:{labels:(0,U.chipsOf)(k,y)},now:l,shipNames:new Map([...b?.values()??[]].map(e=>[e.id,e.name])),clearRequests:g.data??[],...m.canManage&&void 0!==j?{onClearKept:e=>{f.reset(),x({...e,trierarchShipId:j.shipId,machineName:j.name})}}:{}}),children:(0,t.jsx)(X,{worktree:p,onOpenChange:e=>{e||x(void 0)},isPending:f.isPending,...null===f.error?{}:{error:f.error.message},onClear:()=>{void 0!==p&&f.mutate({trierarchShipId:p.trierarchShipId,shipId:p.shipId,repository:p.repository},{onSuccess:()=>{x(void 0)}})}})})}],177096)},695960,e=>{"use strict";var t=e.i(843476),s=e.i(792150),n=e.i(749287),i=e.i(586875),a=e.i(456420);let r={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"}]]};r.node;let l=(0,a.default)(r);var d=e.i(263676),o=e.i(965324),c=e.i(280581);let u={"trierarch-plugin":i.ShipWheel,squadrons:s.Boxes,ship:n.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:s,testId:n,className:i,trailing:a,meaning:r}){let l="none"===e.mark?null:u[e.mark],h=`${e.key}=${e.value}`,m=void 0===r?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${r}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":n,title:m,className:(0,o.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,i),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})]}),a,void 0===s?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:s,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)(d.X,{"aria-hidden":!0})})]})}],695960)},721039,e=>{"use strict";var t=e.i(843476),s=e.i(466787),n=e.i(866616),i=e.i(714695);e.s(["NotOfferedLine",0,function({harness:e,reason:a}){return(0,t.jsxs)("p",{"data-testid":"not-offered",className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-meta text-tone-attention-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:self-center",children:[(0,t.jsx)(s.TriangleAlert,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"font-medium",children:[(0,n.harnessWord)(e)," not offered"]}),(0,t.jsxs)("span",{children:[a,"."]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:i.NOT_OFFERED_CLEARS})]})}])},699261,456539,e=>{"use strict";var t=e.i(843476),s=e.i(456420);let n={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};n.node;let i=(0,s.default)(n);e.s(["ChevronUp",0,i],456539);var a=e.i(271645),r=e.i(695960);e.s(["ShipLabels",0,function({chips:e}){let[s,n]=(0,a.useState)(!1);return 0===e.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"No labels"}):!s&&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)(r.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:()=>{n(!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 s of e){let e="none"===s.mark?null:s.ownerName,n=t.find(t=>t.owner===e);void 0===n?t.push({owner:e,chips:[s]}):n.chips.push(s)}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)(r.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:()=>{n(!1)},children:[(0,t.jsx)(i,{"aria-hidden":!0}),"Show fewer"]}):null]})}],699261)},458155,e=>{"use strict";var t=e.i(970597),s=e.i(419413),n=e.i(266027);async function i(e){let t,s=[];do{let n=await e(t);if("refused"===n.kind)return n;s.push(...n.data.items),t=n.data.nextCursor??void 0}while(void 0!==t)return{kind:"answered",data:s}}var a=e.i(905387),r=e.i(502660),l=e.i(427702);e.s(["useAssignedShips",0,function(e){let d=(0,l.useTRPC)(),o=(0,l.useTRPCClient)(),c=[...new Set(e)].toSorted(),u=(0,n.useQuery)({queryKey:d.fleet.list.queryKey({assignedTo:c}),queryFn:async()=>(0,r.dataOf)(await i(async e=>({kind:"answered",data:await o.fleet.list.query({assignedTo:c,cursor:e,limit:s.PAGE_SIZE_MAX})}))),enabled:void 0!==e&&c.length>0,refetchInterval:a.LAST_SEEN_REFRESH_MS,select:e=>e.filter(t.isInReadReach)});return void 0!==e&&0===c.length?[]:u.data}],458155)},615385,e=>{"use strict";var t=e.i(843476),s=e.i(965324),n=e.i(714695);let i={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:a,unknownText:r="Unknown",testId:l}){let d=(0,n.capacityLine)(e,a);if(void 0===a||void 0===d)return(0,t.jsx)("span",{"data-testid":l,className:"text-meta text-muted-foreground",children:r});let o=Math.max(0,a.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":d,"data-testid":l,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,n)=>(0,t.jsx)("span",{title:`Spot ${String(n+1)}: ${e.name}, ${e.status}`,className:(0,s.classNames)("h-2 w-3 rounded-xs",i[e.status])},e.shipId)),Array.from({length:o},(s,n)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+n+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(n)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:d})]})}])},36556,e=>{"use strict";var t=e.i(843476),s=e.i(271567),n=e.i(152886),i=e.i(569644),a=e.i(269846),r=e.i(586875),l=e.i(466787),d=e.i(522016),o=e.i(866616),c=e.i(714695),u=e.i(849635),h=e.i(766390),m=e.i(615385),p=e.i(721039),x=e.i(763481);let g={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},f={alive:"Alive",silent:"Not answering","not-started":"Not started"};function j({machine:e,now:s}){let i=(0,c.machineLiveness)(e),a=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":i,children:[(0,t.jsxs)(h.Badge,{variant:"outline",className:g[i],children:["alive"===i?(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(n.CircleDashed,{"aria-hidden":!0}),f[i]]}),null===a?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,u.fullDateTime)(a),className:"text-muted-foreground tabular-nums",children:["· ","silent"===i?`since ${(0,u.clockTime)(a)}`:(0,u.lastSeen)(a,s).replace("Last seen","seen")]})]})}function v(e,t){let s=(0,u.relativeTime)(e,t);return"Just now"===s?"just now":s}function w({title:e,children:s,className:n}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${n??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),s]})}function b({harness:e,now:n}){let i=(0,o.harnessDetection)(e,n);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.Bot,{"aria-hidden":!0}),(0,o.harnessWord)(e.harness),void 0===i?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:i})]}),(0,c.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(s=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[s,s===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},s))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(s=>e.riskyFlags?.includes(s)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(l.TriangleAlert,{"aria-hidden":!0}),s,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},s):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:s},s))})]})}function y({title:e,icon:s,names:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===n.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):n.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[s,e]},e))]})}function k({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(y,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(a.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(y,{title:"Folders · used as they are",icon:(0,t.jsx)(i.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}e.s(["HarnessOffer",0,b,"MachineCard",0,function({machine:e,spots:s,location:n,now:i}){let{details:a,report:l}=e,o=null===l?null:new Date(l.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(d.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(j,{machine:e,now:i}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(x.LocationTag,{kind:n?.kind??null,description:n?.description}),null===a?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",a.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(m.CapacityBar,{spots:s,caps:a?.caps,testId:"machine-card-capacity",unknownText:null===o?"Unknown until it answers":`Unknown since ${(0,u.clockTime)(o)}`}),null===o?null:(0,t.jsxs)("time",{dateTime:l?.reportedAt,title:(0,u.fullDateTime)(o),className:"text-meta text-muted-foreground",children:["Last answer ",v(o,i)]})]}),(0,t.jsxs)(w,{title:"Harnesses, options and flags",children:[a?.notOffered?.map(({harness:e,reason:s})=>(0,t.jsx)(p.NotOfferedLine,{harness:e,reason:s},e)),null===a?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):a.harnesses.map(e=>(0,t.jsx)(b,{harness:e,now:i},e.harness))]}),(0,t.jsx)(w,{title:"Workspaces",children:null===a?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(k,{workspaces:a.workspaces})})]})},"MachineLiveness",0,j,"WorkspaceOffer",0,k,"lastAnswer",0,v])},835114,e=>{"use strict";var t=e.i(843476),s=e.i(77071),n=e.i(586875),i=e.i(594831),a=e.i(522016),r=e.i(714695),l=e.i(574296),d=e.i(67874),o=e.i(817981),c=e.i(188393),u=e.i(36556);e.s(["MachineList",0,function({connection:e,machines:h,ships:m,error:p,onRetry:x,onJoin:g,now:f}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...s})=>(0,t.jsx)("a",{href:"https://github.com/ThomasHendrickx/aeolus-fleet-trierarch-plugin/tree/main/packages/trierarch-plugin#readme",target:"_blank",rel:"noreferrer",...s,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(i.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==p?(0,t.jsx)(o.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:p,onRetry:x}):void 0===h||"unknown"===e?(0,t.jsx)(c.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===h.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:g?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:g,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:h.map(e=>(0,t.jsx)(u.MachineCard,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:f},e.shipId))})}])},54492,e=>{"use strict";e.s(["crewRequestAction",0,function(e){switch(e.kind){case"none":return;case"needsCrew":return"remove";case"crewedByHand":return"release";case"assigned":return"releasing"===e.status?void 0:"release"}},"crewRequestStage",0,function(e){let t=e.crewRequest;return null===t?{kind:"none"}:null!==t.assignedTo?{kind:"assigned",requestedAt:t.requestedAt,trierarch:t.assignedTo,status:t.status??"crewing",attempt:t.attempt,startedAt:t.startedAt}:null!==t.crewedBy?{kind:"crewedByHand",requestedAt:t.requestedAt,crewedBy:t.crewedBy,since:e.crewedSince??null}:{kind:"needsCrew",requestedAt:t.requestedAt,reason:t.reason}},"isRestartable",0,function(e){return"assigned"===e.kind&&"crashed"===e.status},"releaseSteps",0,function(e){return"crewedByHand"===e.kind?["removeCrewRequest","release"]:["removeCrewRequest"]},"requestedBy",0,function(e){return e.find(e=>"CrewRequested"===e.type)?.actor??null},"restartWords",0,function({status:e,attempt:t}){let s=`${String(t)} ${1===t?"restart":"restarts"}`;switch(e){case"restarting":return`attempt ${String(t)}`;case"crashed":return s;case"running":return 0===t?void 0:s;case"crewing":case"releasing":return}},"statusChangedAt",0,function(e){return e.find(e=>"CrewStatusChanged"===e.type)?.occurredAt}])},510921,e=>{"use strict";var t=e.i(976580),s=e.i(994070);e.s(["useCrewSettings",0,function(e){let n=(0,t.useConsoleRead)({queryKey:["crew-settings",JSON.stringify(e)],queryFn:()=>(0,s.fetchConsoleRead)({read:"crew-settings",input:{settings:[...e]}}),enabled:e.length>0,staleTime:1/0});return 0===e.length?[]:n.data}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,792150,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let n=(0,t.default)(s);e.s(["Boxes",0,n],792150)},569644,269846,e=>{"use strict";var t=e.i(456420);let s={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 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.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};s.node;let n=(0,t.default)(s);e.s(["FolderOpen",0,n],569644);let i={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};i.node;let a=(0,t.default)(i);e.s(["GitBranch",0,a],269846)},77071,e=>{"use strict";var t=e.i(456420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let n=(0,t.default)(s);e.s(["Plus",0,n],77071)},759659,e=>{"use strict";var t=e.i(456420);let s={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};s.node;let n=(0,t.default)(s);e.s(["Trash2",0,n],759659)},419413,e=>{"use strict";e.s(["PAGE_SIZE_MAX",0,500])},177096,e=>{"use strict";var t=e.i(843476),s=e.i(271645),n=e.i(422768),i=e.i(316984),a=e.i(456420);let r={name:"folder-x",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9.5 10.5 5 5",key:"ra9qjz"}],["path",{d:"m14.5 10.5-5 5",key:"l2rkpq"}]]};r.node;let l=(0,a.default)(r);var d=e.i(611568),o=e.i(749287),c=e.i(586875),u=e.i(759659),h=e.i(522016),m=e.i(54492),p=e.i(849635),x=e.i(574296),g=e.i(861966),f=e.i(219321),j=e.i(615385),v=e.i(67874),w=e.i(699261),b=e.i(763481),y=e.i(78865),k=e.i(36556);function N({spot:e,now:s}){let n="running"===e.status?e.startedAt:null,i=(0,m.restartWords)(e);return null===n&&void 0===i?null:(0,t.jsxs)("span",{className:"text-meta text-muted-foreground","data-testid":"machine-spot-session",children:[null===n?null:(0,t.jsxs)(t.Fragment,{children:["since"," ",(0,t.jsx)("time",{dateTime:n,title:(0,p.fullDateTime)(new Date(n)),className:"tabular-nums",children:(0,p.sinceTime)(new Date(n),s)})]}),null!==n&&void 0!==i?" · ":null,i]})}function S({label:e,children:s}){return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1 bg-card px-3.5 py-3",children:[(0,t.jsx)("dt",{className:"text-meta text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"flex min-w-0 items-center gap-1.5 text-body text-foreground",children:s})]})}function C({title:e,count:s,note:n,children:i}){return(0,t.jsxs)("section",{"aria-label":e,className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("h2",{className:"flex items-baseline gap-2 text-section font-semibold",children:[e,void 0===s?null:(0,t.jsx)("span",{className:"text-meta font-normal text-muted-foreground tabular-nums",children:s}),void 0===n?null:(0,t.jsx)("span",{className:"text-meta font-normal text-muted-foreground",children:n})]}),i]})}function A({icon:e,name:s,meta:n,action:i}){return(0,t.jsxs)("li",{className:"flex items-start gap-2 px-3.5 py-2.5 [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[e,(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)("span",{className:"truncate font-mono text-id",children:s}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:n})]}),i]})}function T({kept:e,shipName:s,isBeingCleared:n,onClear:i}){let a=n?(0,t.jsx)(I,{}):void 0===i?void 0:(0,t.jsx)(x.Button,{size:"xs",variant:"ghost",icon:(0,t.jsx)(u.Trash2,{"aria-hidden":!0}),"aria-label":`Delete the kept ${e.repository} worktree of ${s}`,"data-testid":"machine-worktree-delete",onClick:()=>{i({...e,shipName:s})},children:"Delete"});return(0,t.jsx)(A,{icon:(0,t.jsx)(l,{"aria-hidden":!0}),name:`${e.repository}/${s}`,meta:"Kept after release, with uncommitted changes",action:a})}function I(){return(0,t.jsxs)("span",{"data-testid":"machine-worktree-clearing",className:"inline-flex shrink-0 items-center gap-1 rounded-md border border-tone-waiting-border bg-tone-waiting-bg px-1.5 py-0.5 text-meta text-tone-waiting-fg [&_svg]:mt-0 [&_svg]:text-tone-waiting-fg",children:[(0,t.jsx)(d.LoaderCircle,{"aria-hidden":!0}),"Clearing"]})}function z({machine:e,state:s,spots:a,location:r,labels:d,now:u,shipNames:m,clearRequests:I=[],onClearKept:_}){if("loading"===s||"ready"===s&&void 0===e)return(0,t.jsxs)("div",{"aria-busy":!0,"data-testid":"machine-detail",className:"flex flex-col gap-4",children:[(0,t.jsx)("span",{className:"sr-only",children:"Loading the machine"}),(0,t.jsx)(f.Skeleton,{className:"h-8 w-48"}),(0,t.jsx)(f.Skeleton,{className:"h-16 w-full rounded-lg"}),(0,t.jsx)(f.Skeleton,{className:"h-40 w-full rounded-lg"})]});if("not-found"===s||void 0===e)return(0,t.jsx)("div",{"data-testid":"machine-detail",children:(0,t.jsx)(v.EmptyState,{variant:"section",icon:(0,t.jsx)(n.CircleAlert,{}),title:"Machine not found",description:"The trierarch plugin lists no machine with this ship id. The link may be incomplete.",action:(0,t.jsx)(x.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(h.default,{href:"/trierarchs"}),children:"Back to Trierarchs"})})});let{details:q,report:M}=e,B=null===M?null:new Date(M.reportedAt),R=e.isSilent&&null!==e.lastSeenAt,$=R&&null!==B?`As of ${(0,p.clockTime)(B)}`:void 0;return(0,t.jsxs)("div",{"data-testid":"machine-detail",className:"flex flex-col gap-5 max-sm:gap-3.5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2.5",children:[(0,t.jsxs)("h1",{className:"inline-flex items-center gap-2 text-title font-semibold [&_svg]:size-(--size-icon-lg) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(c.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(k.MachineLiveness,{machine:e,now:u})]}),(0,t.jsx)(x.Button,{size:"xs",icon:(0,t.jsx)(o.Ship,{"aria-hidden":!0}),nativeButton:!1,render:(0,t.jsx)(h.default,{href:`/ships/${e.shipId}`}),"data-testid":"machine-ship-page",children:"Ship page"})]}),(0,t.jsxs)("dl",{className:"grid grid-cols-5 gap-px overflow-hidden rounded-lg border border-border bg-border max-lg:grid-cols-2",children:[(0,t.jsx)(S,{label:"Capacity",children:(0,t.jsx)(j.CapacityBar,{spots:a,caps:q?.caps,unknownText:null===B?"Unknown until it answers":`Unknown since ${(0,p.clockTime)(B)}`})}),(0,t.jsx)(S,{label:"Machine",children:(0,t.jsx)(b.LocationTag,{kind:r?.kind??null,description:r?.description,size:"md"})}),(0,t.jsx)(S,{label:"Version",children:null===q?(0,t.jsx)("span",{className:"text-muted-foreground",children:"Unknown"}):(0,t.jsxs)("span",{className:"font-mono text-id",children:["@aeolus-fleet/trierarch@",q.version]})}),(0,t.jsx)(S,{label:"Last answer",children:null===B?(0,t.jsx)("span",{className:"text-muted-foreground",children:"None yet"}):(0,t.jsx)("time",{dateTime:M?.reportedAt,title:(0,p.fullDateTime)(B),className:"tabular-nums",children:(0,k.lastAnswer)(B,u)})}),(0,t.jsxs)(S,{label:"Ship id",children:[(0,t.jsx)("span",{className:"truncate font-mono text-id",children:e.shipId}),(0,t.jsx)(g.CopyButton,{value:e.shipId,label:"Copy ship id"})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1.5","data-testid":"machine-labels-row",children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Labels"}),void 0===d?(0,t.jsx)(f.Skeleton,{className:"h-5.5 w-40"}):(0,t.jsx)(w.ShipLabels,{chips:d}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Read-only here. Crew requests that ask for machine labels go only to machines carrying all of them."})]}),R&&null!==e.lastSeenAt?(0,t.jsxs)("p",{role:"alert","data-testid":"machine-silent",className:"flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg px-3.5 py-2.5 text-meta text-tone-attention-fg [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(i.CircleX,{"aria-hidden":!0}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("strong",{className:"font-medium",children:[e.name," has not answered since ",(0,p.clockTime)(new Date(e.lastSeenAt)),"."]})," ","It is probably not running",r?.description?` on ${r.description}`:"",". Until it answers, nothing restarts its sessions; everything below is its last answer."]})]}):null,(0,t.jsx)(C,{title:"Running here",count:a.length,note:$,children:0===a.length?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"No ship is assigned to this trierarch."}):(0,t.jsx)("ul",{className:"divide-y divide-border rounded-lg border border-border bg-card","data-testid":"machine-spots",children:a.map(e=>(0,t.jsxs)("li",{className:"flex items-center justify-between gap-3 px-3.5 py-2.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)(h.default,{href:`/ships/${e.shipId}`,className:"truncate text-body font-medium hover:underline",children:e.name}),void 0===e.workspace?null:(0,t.jsxs)("span",{className:"truncate text-meta text-muted-foreground","data-testid":"machine-spot-workspace",children:[(0,t.jsx)("span",{className:"sr-only",children:"Workspace: "}),(0,t.jsx)("span",{className:"font-mono text-id",children:e.workspace.name})," · ","worktree"===e.workspace.kind?"new worktree":"folder, as it is"]})]}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-2.5",children:[(0,t.jsx)(N,{spot:e,now:u}),(0,t.jsx)(y.StatusBadge,{status:e.status})]})]},e.shipId))})}),(0,t.jsx)(C,{title:"Harnesses",count:q?.harnesses.length,note:$,children:null===q?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Unknown until it answers."}):(0,t.jsx)("div",{className:"rounded-lg border border-border bg-card px-3.5 py-3",children:q.harnesses.map(e=>(0,t.jsx)(k.HarnessOffer,{harness:e,now:u},e.harness))})}),(0,t.jsx)(C,{title:"Workspaces",count:null===q?void 0:q.workspaces.repositories.length+q.workspaces.folders.length,children:null===q?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Unknown until it answers."}):(0,t.jsx)("div",{className:"rounded-lg border border-border bg-card px-3.5 py-3",children:(0,t.jsx)(k.WorkspaceOffer,{workspaces:q.workspaces})})}),null===q||0===q.kept.length&&0===q.orphans.length?null:(0,t.jsxs)(C,{title:"Worktrees",children:[(0,t.jsxs)("ul",{className:"divide-y divide-border rounded-lg border border-border bg-card","data-testid":"machine-worktrees",children:[q.kept.map(s=>{var n;return(0,t.jsx)(T,{kept:s,shipName:m?.get(s.shipId)??s.shipId,isBeingCleared:(n={trierarchShipId:e.shipId,...s},I.some(e=>e.trierarchShipId===n.trierarchShipId&&e.shipId===n.shipId&&e.repository===n.repository)),onClear:_},`${s.shipId}/${s.repository}`)}),q.orphans.map(e=>(0,t.jsx)(A,{icon:(0,t.jsx)(l,{"aria-hidden":!0}),name:`${e.repository}/${e.name}`,meta:"No crew request"},`${e.repository}/${e.name}`))]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"The trierarch never deletes these on its own."})]})]})}var _=e.i(835114),q=e.i(837631),M=e.i(787964),B=e.i(917540),R=e.i(490262),$=e.i(458155),L=e.i(954616),O=e.i(266027),W=e.i(912598),E=e.i(427702),D=e.i(905387),H=e.i(442111),U=e.i(280581),P=e.i(718423),F=e.i(510921),V=e.i(714695),K=e.i(928459),Z=e.i(296676),G=e.i(678485),J=e.i(853573),Q=e.i(500265);let X=(0,B.lazyDialog)(()=>e.A(551212).then(e=>e.ClearWorktreeDialog),e=>void 0!==e.worktree);e.s(["default",0,function({params:e}){let n,i,a,{shipId:r}=(0,s.use)(e),l=(0,Z.useNow)(),d=(0,M.useConsoleFrame)(),o=(0,K.useNeedsAttention)(),c=(0,P.useLiveFleet)(),u=(0,Q.useTrierarchPluginConnection)(),h=(0,Q.useMachines)(),m=(0,R.useAccess)(),[p,x]=(0,s.useState)(void 0),g=(n=(0,E.useTRPC)(),(0,O.useQuery)(n.fleet.clearRequests.queryOptions(void 0,{refetchInterval:1e4}))),f=(i=(0,E.useTRPC)(),a=(0,W.useQueryClient)(),(0,L.useMutation)(i.fleet.clearWorktree.mutationOptions({onSuccess:()=>a.invalidateQueries({queryKey:i.fleet.clearRequests.queryKey()})})));(0,G.useSignInWhenSessionEnds)([o.error,c.error]);let j=h.data?.find(e=>e.shipId===r),v=(0,$.useAssignedShips)(void 0===j?void 0:[j.shipId])??[],w=void 0===j?[]:(0,V.spotsOf)(j,v),b=(0,H.useListedShips)([...void 0===j?[]:[j.shipId],...j?.details?.kept.map(e=>e.shipId)??[]]),y=(0,D.useLabelContext)(),k=void 0===j?void 0:b?.get(j.shipId),N=[...(0,J.useShips)(w.map(e=>e.shipId))].flatMap(([e,t])=>null===t.crewRequest?[]:[{id:e,settings:t.crewRequest.settings}]),S=(0,F.useCrewSettings)(N.map(e=>e.settings)),C=new Map(N.map((e,t)=>[e.id,S?.[t]??null]));return(0,t.jsx)(q.DetailPage,{switcher:d.switcher,account:d.account,onCompose:d.onCompose,onSearch:d.onSearch,banner:d.banner,title:j?.name??"Machine",parents:[{href:"/trierarchs",label:"Trierarchs"}],live:c.live,header:"connected"!==u||h.isError?(0,t.jsx)(_.MachineList,{connection:u,machines:h.data,ships:v,error:h.isError?h.error.message:void 0,onRetry:()=>{h.refetch()},now:l}):(0,t.jsx)(z,{machine:j,state:void 0===h.data?"loading":void 0===j?"not-found":"ready",spots:(0,V.withWorkspaces)(w,C),location:k?.location??null,...void 0===y||void 0===k?{}:{labels:(0,U.chipsOf)(k,y)},now:l,shipNames:new Map([...b?.values()??[]].map(e=>[e.id,e.name])),clearRequests:g.data??[],...m.canManage&&void 0!==j?{onClearKept:e=>{f.reset(),x({...e,trierarchShipId:j.shipId,machineName:j.name})}}:{}}),children:(0,t.jsx)(X,{worktree:p,onOpenChange:e=>{e||x(void 0)},isPending:f.isPending,...null===f.error?{}:{error:f.error.message},onClear:()=>{void 0!==p&&f.mutate({trierarchShipId:p.trierarchShipId,shipId:p.shipId,repository:p.repository},{onSuccess:()=>{x(void 0)}})}})})}],177096)},695960,e=>{"use strict";var t=e.i(843476),s=e.i(792150),n=e.i(749287),i=e.i(586875),a=e.i(456420);let r={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"}]]};r.node;let l=(0,a.default)(r);var d=e.i(263676),o=e.i(965324),c=e.i(280581);let u={"trierarch-plugin":i.ShipWheel,squadrons:s.Boxes,ship:n.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:s,testId:n,className:i,trailing:a,meaning:r}){let l="none"===e.mark?null:u[e.mark],h=`${e.key}=${e.value}`,m=void 0===r?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${r}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":n,title:m,className:(0,o.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,i),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})]}),a,void 0===s?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:s,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)(d.X,{"aria-hidden":!0})})]})}],695960)},721039,e=>{"use strict";var t=e.i(843476),s=e.i(466787),n=e.i(866616),i=e.i(714695);e.s(["NotOfferedLine",0,function({harness:e,reason:a}){return(0,t.jsxs)("p",{"data-testid":"not-offered",className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-meta text-tone-attention-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:self-center",children:[(0,t.jsx)(s.TriangleAlert,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"font-medium",children:[(0,n.harnessWord)(e)," not offered"]}),(0,t.jsxs)("span",{children:[a,"."]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:i.NOT_OFFERED_CLEARS})]})}])},699261,456539,e=>{"use strict";var t=e.i(843476),s=e.i(456420);let n={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};n.node;let i=(0,s.default)(n);e.s(["ChevronUp",0,i],456539);var a=e.i(271645),r=e.i(695960);e.s(["ShipLabels",0,function({chips:e}){let[s,n]=(0,a.useState)(!1);return 0===e.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"No labels"}):!s&&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)(r.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:()=>{n(!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 s of e){let e="none"===s.mark?null:s.ownerName,n=t.find(t=>t.owner===e);void 0===n?t.push({owner:e,chips:[s]}):n.chips.push(s)}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)(r.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:()=>{n(!1)},children:[(0,t.jsx)(i,{"aria-hidden":!0}),"Show fewer"]}):null]})}],699261)},458155,e=>{"use strict";var t=e.i(970597),s=e.i(419413),n=e.i(266027);async function i(e){let t,s=[];do{let n=await e(t);if("refused"===n.kind)return n;s.push(...n.data.items),t=n.data.nextCursor??void 0}while(void 0!==t)return{kind:"answered",data:s}}var a=e.i(905387),r=e.i(502660),l=e.i(427702);e.s(["useAssignedShips",0,function(e){let d=(0,l.useTRPC)(),o=(0,l.useTRPCClient)(),c=[...new Set(e)].toSorted(),u=(0,n.useQuery)({queryKey:d.fleet.list.queryKey({assignedTo:c}),queryFn:async()=>(0,r.dataOf)(await i(async e=>({kind:"answered",data:await o.fleet.list.query({assignedTo:c,cursor:e,limit:s.PAGE_SIZE_MAX})}))),enabled:void 0!==e&&c.length>0,refetchInterval:a.LAST_SEEN_REFRESH_MS,select:e=>e.filter(t.isInReadReach)});return void 0!==e&&0===c.length?[]:u.data}],458155)},615385,e=>{"use strict";var t=e.i(843476),s=e.i(965324),n=e.i(714695);let i={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:a,unknownText:r="Unknown",testId:l}){let d=(0,n.capacityLine)(e,a);if(void 0===a||void 0===d)return(0,t.jsx)("span",{"data-testid":l,className:"text-meta text-muted-foreground",children:r});let o=Math.max(0,a.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":d,"data-testid":l,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,n)=>(0,t.jsx)("span",{title:`Spot ${String(n+1)}: ${e.name}, ${e.status}`,className:(0,s.classNames)("h-2 w-3 rounded-xs",i[e.status])},e.shipId)),Array.from({length:o},(s,n)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+n+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(n)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:d})]})}])},36556,e=>{"use strict";var t=e.i(843476),s=e.i(271567),n=e.i(152886),i=e.i(569644),a=e.i(269846),r=e.i(586875),l=e.i(466787),d=e.i(522016),o=e.i(866616),c=e.i(714695),u=e.i(849635),h=e.i(766390),m=e.i(574296),p=e.i(615385),x=e.i(721039),g=e.i(763481);let f={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},j={alive:"Alive",silent:"Not answering","not-started":"Not started"};function v({machine:e,now:s}){let i=(0,c.machineLiveness)(e),a=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":i,children:[(0,t.jsxs)(h.Badge,{variant:"outline",className:f[i],children:["alive"===i?(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(n.CircleDashed,{"aria-hidden":!0}),j[i]]}),null===a?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,u.fullDateTime)(a),className:"text-muted-foreground tabular-nums",children:["· ","silent"===i?`since ${(0,u.clockTime)(a)}`:(0,u.lastSeen)(a,s).replace("Last seen","seen")]})]})}function w(e,t){let s=(0,u.relativeTime)(e,t);return"Just now"===s?"just now":s}function b({title:e,children:s,className:n}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${n??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),s]})}function y({harness:e,now:n}){let i=(0,o.harnessDetection)(e,n);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.Bot,{"aria-hidden":!0}),(0,o.harnessWord)(e.harness),void 0===i?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:i})]}),(0,c.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(s=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[s,s===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},s))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(s=>e.riskyFlags?.includes(s)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(l.TriangleAlert,{"aria-hidden":!0}),s,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},s):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:s},s))})]})}function k({title:e,icon:s,names:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===n.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):n.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[s,e]},e))]})}function N({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(k,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(a.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(k,{title:"Folders · used as they are",icon:(0,t.jsx)(i.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}e.s(["HarnessOffer",0,y,"MachineCard",0,function({machine:e,spots:s,location:n,onNewSetupLine:i,now:a}){let{details:l,report:o}=e,c=null===o?null:new Date(o.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(d.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(v,{machine:e,now:a}),void 0===i?null:(0,t.jsx)(m.Button,{size:"sm",className:"self-start",onClick:i,"data-testid":"machine-card-new-setup-line",children:"New setup line"}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(g.LocationTag,{kind:n?.kind??null,description:n?.description}),null===l?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",l.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(p.CapacityBar,{spots:s,caps:l?.caps,testId:"machine-card-capacity",unknownText:null===c?"Unknown until it answers":`Unknown since ${(0,u.clockTime)(c)}`}),null===c?null:(0,t.jsxs)("time",{dateTime:o?.reportedAt,title:(0,u.fullDateTime)(c),className:"text-meta text-muted-foreground",children:["Last answer ",w(c,a)]})]}),(0,t.jsxs)(b,{title:"Harnesses, options and flags",children:[l?.notOffered?.map(({harness:e,reason:s})=>(0,t.jsx)(x.NotOfferedLine,{harness:e,reason:s},e)),null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):l.harnesses.map(e=>(0,t.jsx)(y,{harness:e,now:a},e.harness))]}),(0,t.jsx)(b,{title:"Workspaces",children:null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(N,{workspaces:l.workspaces})})]})},"MachineLiveness",0,v,"WorkspaceOffer",0,N,"lastAnswer",0,w])},835114,e=>{"use strict";var t=e.i(843476),s=e.i(77071),n=e.i(586875),i=e.i(594831),a=e.i(522016),r=e.i(714695),l=e.i(574296),d=e.i(67874),o=e.i(817981),c=e.i(188393),u=e.i(36556);e.s(["MachineList",0,function({connection:e,machines:h,ships:m,error:p,onRetry:x,onJoin:g,onNewSetupLine:f,now:j}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...s})=>(0,t.jsx)("a",{href:"https://github.com/ThomasHendrickx/aeolus-fleet-trierarch-plugin/tree/main/packages/trierarch-plugin#readme",target:"_blank",rel:"noreferrer",...s,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(i.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==p?(0,t.jsx)(o.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:p,onRetry:x}):void 0===h||"unknown"===e?(0,t.jsx)(c.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===h.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:g?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:g,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:h.map(e=>(0,t.jsx)(u.MachineCard,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,onNewSetupLine:void 0===f?void 0:()=>{f(e)},now:j},e.shipId))})}])},54492,e=>{"use strict";e.s(["crewRequestAction",0,function(e){switch(e.kind){case"none":return;case"needsCrew":return"remove";case"crewedByHand":return"release";case"assigned":return"releasing"===e.status?void 0:"release"}},"crewRequestStage",0,function(e){let t=e.crewRequest;return null===t?{kind:"none"}:null!==t.assignedTo?{kind:"assigned",requestedAt:t.requestedAt,trierarch:t.assignedTo,status:t.status??"crewing",attempt:t.attempt,startedAt:t.startedAt}:null!==t.crewedBy?{kind:"crewedByHand",requestedAt:t.requestedAt,crewedBy:t.crewedBy,since:e.crewedSince??null}:{kind:"needsCrew",requestedAt:t.requestedAt,reason:t.reason}},"isRestartable",0,function(e){return"assigned"===e.kind&&"crashed"===e.status},"releaseSteps",0,function(e){return"crewedByHand"===e.kind?["removeCrewRequest","release"]:["removeCrewRequest"]},"requestedBy",0,function(e){return e.find(e=>"CrewRequested"===e.type)?.actor??null},"restartWords",0,function({status:e,attempt:t}){let s=`${String(t)} ${1===t?"restart":"restarts"}`;switch(e){case"restarting":return`attempt ${String(t)}`;case"crashed":return s;case"running":return 0===t?void 0:s;case"crewing":case"releasing":return}},"statusChangedAt",0,function(e){return e.find(e=>"CrewStatusChanged"===e.type)?.occurredAt}])},510921,e=>{"use strict";var t=e.i(976580),s=e.i(994070);e.s(["useCrewSettings",0,function(e){let n=(0,t.useConsoleRead)({queryKey:["crew-settings",JSON.stringify(e)],queryFn:()=>(0,s.fetchConsoleRead)({read:"crew-settings",input:{settings:[...e]}}),enabled:e.length>0,staleTime:1/0});return 0===e.length?[]:n.data}])}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{3d08vpjjajs5u.js → 0dtiejrfyjxji.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395530,e=>{"use strict";var t=e.i(271645),s=e.i(828918),a=e.i(838452),n=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:r,onHighlightedIndexChange:l}=(0,a.useCompositeRootContext)(),{ref:d,index:o}=(0,n.useCompositeListItem)(e),c=r===o,u=t.useRef(null),h=(0,s.useMergedRefs)(d,u);return{compositeProps:{tabIndex:c?0:-1,onFocus(){l(o)},onMouseMove(){let e=u.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:h,index:o}}])},437750,e=>{"use strict";var t=e.i(456420);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 a=(0,t.default)(s);e.s(["AppWindow",0,a],437750)},271567,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Bot",0,a],271567)},24071,e=>{"use strict";var t=e.i(456420);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)},867927,e=>{"use strict";var t=e.i(456420);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],867927)},152886,e=>{"use strict";var t=e.i(456420);let s={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};s.node;let a=(0,t.default)(s);e.s(["CircleDashed",0,a],152886)},275043,446513,e=>{"use strict";var t=e.i(456420);let s={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};s.node;let a=(0,t.default)(s);e.s(["default",0,a],275043);let n={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};n.node;let i=(0,t.default)(n);e.s(["Monitor",0,i],446513)},569644,269846,e=>{"use strict";var t=e.i(456420);let s={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 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.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};s.node;let a=(0,t.default)(s);e.s(["FolderOpen",0,a],569644);let n={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};n.node;let i=(0,t.default)(n);e.s(["GitBranch",0,i],269846)},566595,e=>{"use strict";var t=e.i(456420);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],566595)},841220,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Server",0,a],841220)},819759,e=>{"use strict";var t=e.i(456420);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],819759)},383035,e=>{"use strict";var t=e.i(456420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["SquareTerminal",0,a],383035)},466787,e=>{"use strict";var t=e.i(456420);let s={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};s.node;let a=(0,t.default)(s);e.s(["TriangleAlert",0,a],466787)},594831,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Unplug",0,a],594831)},298260,e=>{"use strict";var t=e.i(843476),s=e.i(965324);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})}])},638919,e=>{"use strict";var t=e.i(843476),s=e.i(353753),a=e.i(225913),n=e.i(560964),i=e.i(965324),r=e.i(574296);let l=(0,a.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,i.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...s})},"SheetClose",0,function(e){return(0,t.jsx)(s.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:a,side:d="right",...o}){return(0,t.jsxs)(s.Dialog.Portal,{children:[(0,t.jsx)(s.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,t.jsxs)(s.Dialog.Popup,{"data-slot":"sheet-content","data-side":d,className:(0,i.classNames)(l({side:d}),e),...o,children:["bottom"===d?(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,t.jsx)(s.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,t.jsx)(n.XIcon,{})}),a]})]})},"SheetDescription",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.classNames)("text-meta text-muted-foreground",e),...a})},"SheetFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.classNames)("flex flex-col-reverse gap-2 pt-3 in-data-[side=right]:flex-row in-data-[side=right]:justify-end in-data-[side=right]:border-t in-data-[side=right]:px-6 in-data-[side=right]:py-4",e),...s})},"SheetHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...s})},"SheetTitle",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...a})},"SheetTrigger",0,function(e){return(0,t.jsx)(s.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},419413,e=>{"use strict";e.s(["PAGE_SIZE_MAX",0,500])},219321,e=>{"use strict";var t=e.i(843476),s=e.i(965324);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(843476),s=e.i(965324);e.s(["EmptyState",0,function({title:e,description:a,icon:n,action:i,variant:r="page",className:l}){return"section"===r?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":r,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"===r?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,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}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,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:[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}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},188393,e=>{"use strict";var t=e.i(843476),s=e.i(965324),a=e.i(219321);function n(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:r="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:r}),"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(i).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: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)(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:n(i).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]})}])},763481,e=>{"use strict";var t=e.i(843476),s=e.i(437750),a=e.i(271567),n=e.i(456420);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 r=(0,n.default)(i),l={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"}]]};l.node;let d=(0,n.default)(l),o={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"}]]};o.node;let c=(0,n.default)(o),u={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"}]]};u.node;let h=(0,n.default)(u);var m=e.i(841220),x=e.i(383035),p=e.i(594831),f=e.i(965324),g=e.i(866616),y=e.i(127361);let v={DEVICE:d,CLOUD:r,SERVER:m.Server,OTHER:c},b={coding:x.SquareTerminal,chat:h,bot:a.Bot,console:s.AppWindow},j={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:s=null,harness:a=null,isCompact:n=!1,size:i="md",className:r}){let l=(0,f.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",j[i],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(p.Unplug,{"aria-hidden":!0}),"No session"]});let d=v[e],o=(0,y.locationKindWord)(e),c=null===s?o:`${o} \xb7 ${s}`;if(null!==a){let e=(0,g.harnessKind)(a),n=void 0===e?void 0:b[e],i=(0,g.harnessWord)(a);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===s?`${i} \xb7 ${o}`:`${i} \xb7 ${o}: ${s}`,children:[void 0===n?null:(0,t.jsx)(n,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:i}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:o}),null===s?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",s]})]})}return n?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:c,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[o,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:s??o})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[o,null===s?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:s})]})]})]})}],763481)},721039,e=>{"use strict";var t=e.i(843476),s=e.i(466787),a=e.i(866616),n=e.i(714695);e.s(["NotOfferedLine",0,function({harness:e,reason:i}){return(0,t.jsxs)("p",{"data-testid":"not-offered",className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-meta text-tone-attention-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:self-center",children:[(0,t.jsx)(s.TriangleAlert,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"font-medium",children:[(0,a.harnessWord)(e)," not offered"]}),(0,t.jsxs)("span",{children:[i,"."]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:n.NOT_OFFERED_CLEARS})]})}])},577880,485538,e=>{"use strict";var t=e.i(843476),s=e.i(566595),a=e.i(374368),n=e.i(574296),i=e.i(298260),r=e.i(704974),l=e.i(965324);function d({switcher:e,account:o,onSearch:c,searchLabel:u="Search or jump to",children:h,actions:m,className:x}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,l.classNames)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",x),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(a.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),h]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[m,c?(0,t.jsxs)(n.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 max-lg:w-auto",onClick:c,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,t.jsx)(i.Kbd,{children:"⌘K"})]}):null,(0,t.jsx)(r.AvatarMenu,{...o})]})]})}var o=e.i(867927),c=e.i(819759),u=e.i(522016);let h={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 m({state:e,className:s}){let{label:a,dot:n}=h[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",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:s=[],live:a,switcher:i,account:r,onCompose:l,onSearch:h}){return(0,t.jsxs)(d,{switcher:i,account:r,onSearch:h,searchLabel:"Search ships or jump to",className:"hidden sm:flex",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{state:a}),l?(0,t.jsx)(n.Button,{size:"sm",icon:(0,t.jsx)(c.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:l,children:"Compose"}):null]}),children:[(0,t.jsx)(o.ChevronRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-muted-foreground"}),(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:[s.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(u.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(o.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})]})})]})}],577880);var x=e.i(24071);e.s(["TopBar",0,function({title:e,live:i,actions:l,back:d,switcher:o,account:c,onSearch:h}){let p=h&&!d?h:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":d?"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:[d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(u.default,{href:d.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)(x.ChevronLeft,{"aria-hidden":!0}),d.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):o?(0,t.jsx)(a.AppSwitcher,{switcher:o,layout:"compact",className:"min-w-0"}):(0,t.jsx)("p",{className:"truncate px-1.5 text-title-touch font-semibold text-foreground",children:"Console"}),(0,t.jsx)(m,{state:i}),l||p||c&&!d?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[p?(0,t.jsx)(n.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:p,children:(0,t.jsx)(s.Search,{"aria-hidden":!0})}):null,l,c&&!d?(0,t.jsx)(r.AvatarMenuSheet,{...c}):null]}):null]})}],485538)},458155,e=>{"use strict";var t=e.i(970597),s=e.i(419413),a=e.i(266027);async function n(e){let t,s=[];do{let a=await e(t);if("refused"===a.kind)return a;s.push(...a.data.items),t=a.data.nextCursor??void 0}while(void 0!==t)return{kind:"answered",data:s}}var i=e.i(905387),r=e.i(502660),l=e.i(427702);e.s(["useAssignedShips",0,function(e){let d=(0,l.useTRPC)(),o=(0,l.useTRPCClient)(),c=[...new Set(e)].toSorted(),u=(0,a.useQuery)({queryKey:d.fleet.list.queryKey({assignedTo:c}),queryFn:async()=>(0,r.dataOf)(await n(async e=>({kind:"answered",data:await o.fleet.list.query({assignedTo:c,cursor:e,limit:s.PAGE_SIZE_MAX})}))),enabled:void 0!==e&&c.length>0,refetchInterval:i.LAST_SEEN_REFRESH_MS,select:e=>e.filter(t.isInReadReach)});return void 0!==e&&0===c.length?[]:u.data}],458155)},615385,e=>{"use strict";var t=e.i(843476),s=e.i(965324),a=e.i(714695);let n={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:i,unknownText:r="Unknown",testId:l}){let d=(0,a.capacityLine)(e,i);if(void 0===i||void 0===d)return(0,t.jsx)("span",{"data-testid":l,className:"text-meta text-muted-foreground",children:r});let o=Math.max(0,i.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":d,"data-testid":l,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,a)=>(0,t.jsx)("span",{title:`Spot ${String(a+1)}: ${e.name}, ${e.status}`,className:(0,s.classNames)("h-2 w-3 rounded-xs",n[e.status])},e.shipId)),Array.from({length:o},(s,a)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+a+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(a)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:d})]})}])},36556,e=>{"use strict";var t=e.i(843476),s=e.i(271567),a=e.i(152886),n=e.i(569644),i=e.i(269846),r=e.i(586875),l=e.i(466787),d=e.i(522016),o=e.i(866616),c=e.i(714695),u=e.i(849635),h=e.i(766390),m=e.i(615385),x=e.i(721039),p=e.i(763481);let f={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},g={alive:"Alive",silent:"Not answering","not-started":"Not started"};function y({machine:e,now:s}){let n=(0,c.machineLiveness)(e),i=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":n,children:[(0,t.jsxs)(h.Badge,{variant:"outline",className:f[n],children:["alive"===n?(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(a.CircleDashed,{"aria-hidden":!0}),g[n]]}),null===i?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,u.fullDateTime)(i),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,u.clockTime)(i)}`:(0,u.lastSeen)(i,s).replace("Last seen","seen")]})]})}function v(e,t){let s=(0,u.relativeTime)(e,t);return"Just now"===s?"just now":s}function b({title:e,children:s,className:a}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${a??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),s]})}function j({harness:e,now:a}){let n=(0,o.harnessDetection)(e,a);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.Bot,{"aria-hidden":!0}),(0,o.harnessWord)(e.harness),void 0===n?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:n})]}),(0,c.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(s=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[s,s===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},s))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(s=>e.riskyFlags?.includes(s)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(l.TriangleAlert,{"aria-hidden":!0}),s,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},s):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:s},s))})]})}function w({title:e,icon:s,names:a}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===a.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):a.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[s,e]},e))]})}function k({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(w,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(i.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(w,{title:"Folders · used as they are",icon:(0,t.jsx)(n.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}e.s(["HarnessOffer",0,j,"MachineCard",0,function({machine:e,spots:s,location:a,now:n}){let{details:i,report:l}=e,o=null===l?null:new Date(l.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(d.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(y,{machine:e,now:n}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(p.LocationTag,{kind:a?.kind??null,description:a?.description}),null===i?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",i.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(m.CapacityBar,{spots:s,caps:i?.caps,testId:"machine-card-capacity",unknownText:null===o?"Unknown until it answers":`Unknown since ${(0,u.clockTime)(o)}`}),null===o?null:(0,t.jsxs)("time",{dateTime:l?.reportedAt,title:(0,u.fullDateTime)(o),className:"text-meta text-muted-foreground",children:["Last answer ",v(o,n)]})]}),(0,t.jsxs)(b,{title:"Harnesses, options and flags",children:[i?.notOffered?.map(({harness:e,reason:s})=>(0,t.jsx)(x.NotOfferedLine,{harness:e,reason:s},e)),null===i?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):i.harnesses.map(e=>(0,t.jsx)(j,{harness:e,now:n},e.harness))]}),(0,t.jsx)(b,{title:"Workspaces",children:null===i?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(k,{workspaces:i.workspaces})})]})},"MachineLiveness",0,y,"WorkspaceOffer",0,k,"lastAnswer",0,v])},835114,e=>{"use strict";var t=e.i(843476),s=e.i(77071),a=e.i(586875),n=e.i(594831),i=e.i(522016),r=e.i(714695),l=e.i(574296),d=e.i(67874),o=e.i(817981),c=e.i(188393),u=e.i(36556);e.s(["MachineList",0,function({connection:e,machines:h,ships:m,error:x,onRetry:p,onJoin:f,now:g}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(a.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...s})=>(0,t.jsx)("a",{href:"https://github.com/ThomasHendrickx/aeolus-fleet-trierarch-plugin/tree/main/packages/trierarch-plugin#readme",target:"_blank",rel:"noreferrer",...s,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==x?(0,t.jsx)(o.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:x,onRetry:p}):void 0===h||"unknown"===e?(0,t.jsx)(c.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===h.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(a.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:f?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:f,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:h.map(e=>(0,t.jsx)(u.MachineCard,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:g},e.shipId))})}])},866616,e=>{"use strict";var t=e.i(849635);let s={"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 a(e){return s[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":a(e)},"harnessDetection",0,function(e,s){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let a=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),s);return`${e.version} \xb7 models confirmed ${"Just now"===a?"just now":a}`},"harnessKind",0,function(e){return s[e]?.kind},"harnessWord",0,a])},718423,e=>{"use strict";var t=e.i(912598),s=e.i(905861),a=e.i(271645),n=e.i(586413),i=e.i(123938),r=e.i(427702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);function d(e,t){return e.pages.some(e=>e.items.some(e=>e.id===t))}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),c=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),u=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,r.useTRPC)(),h=(0,t.useQueryClient)(),[m,x]=(0,a.useState)(new Set),p=(0,i.useIsReopening)(),[f]=(0,a.useState)(()=>{let t,s,a,i;return function(e){var t;let s,a,i,{trpc:r,queryClient:h,reload:m}=e,x=[...r.fleet.list.infiniteQueryKey()],p=()=>h.getQueriesData({queryKey:x}).flatMap(([,e])=>void 0===e?[]:[e]),f=(t={readRow:e=>h.query({...r.fleet.listedShip.queryOptions({shipId:e}),staleTime:0}),writeRow:t=>{let s=p().some(e=>!d(e,t.id));h.setQueriesData({queryKey:x},e=>e&&function(e,t){if(d(e,t.id))return{...e,pages:e.pages.map(e=>{var s;return{...e,items:(s=e.items,s.map(e=>e.id===t.id?t:e))}})};let[s,...a]=e.pages;return void 0===s?e:{...e,pages:[{...s,items:[t,...s.items]},...a]}}(e,t)),s&&e.onPlacedFirst(t.id)}},s=new Set,a=new Set,i=async e=>{s.add(e);try{do a.delete(e),t.writeRow(await t.readRow(e));while(a.has(e))}catch{}finally{s.delete(e),a.delete(e)}},e=>{s.has(e)?a.add(e):i(e)}),g=()=>{m(r.fleet.stuckCount.queryKey()),m(r.fleet.stuckSummary.queryKey()),m(r.fleet.stuck.pathKey())};return e=>{var t,s,a,i,d;if("resync"===e.kind){m(r.fleet.pathKey()),m(n.INBOX_KEY);return}let{event:h}=e;for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&(m(r.fleet.ship.queryKey({shipId:e})),m(r.fleet.shipTimeline.infiniteQueryKey({shipId:e})),m(r.fleet.shipWay.queryKey({shipId:e})));if(null!==h.messageId&&(m(r.fleet.shipMessages.pathKey()),m(r.fleet.shipWay.pathKey()),m(r.fleet.message.queryKey({messageId:h.messageId})),m(r.fleet.messageDeliveries.infiniteQueryKey({messageId:h.messageId})),m(r.fleet.inbox.pathKey()),m(r.fleet.inboxCount.queryKey()),m(n.INBOX_KEY),g()),"DeliveryAcknowledged"===h.type&&m(r.fleet.acknowledged.queryKey()),t=h.type,c.has(t)&&m(r.fleet.needsAttention.pathKey()),s=h.type,o.has(s)&&m(r.fleet.labels.queryKey()),"NetworkRulesDeclared"===h.type&&m(r.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(a=h.type)||"NetworkRulesSet"===a)&&m(r.fleet.builtInRules.queryKey()),i=h.type,u.has(i)&&(m(r.fleet.networkRules.queryKey()),m(r.fleet.networkRulesDraftChanges.queryKey()),m(r.fleet.explainReach.pathKey())),d=h.type,l.has(d)){if(p().length>0)for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&f(e);m(r.fleet.shipCounts.pathKey()),g()}}}({trpc:e,queryClient:h,reload:(t=new Set,s=new Set,a=e=>h.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),i=async e=>{t.add(e.queryHash);let n=e.isBehind;try{for(await a(e.queryKey);n||s.delete(e.queryHash);)n=!1,await a(e.queryKey)}finally{t.delete(e.queryHash)}},e=>{for(let a of h.getQueryCache().findAll({queryKey:e}))t.has(a.queryHash)?s.add(a.queryHash):i({queryHash:a.queryHash,queryKey:a.queryKey,isBehind:"fetching"===a.state.fetchStatus})}),onPlacedFirst:e=>{x(t=>new Set([...t,e]))}})}),g=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:e})=>{f(e)}}));return{live:"connecting"===g.status&&p?"live":function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(g.status),placedFirstShipIds:m,error:g.error}}])},127361,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},928459,415168,e=>{"use strict";var t=e.i(621482),s=e.i(954616),a=e.i(912598),n=e.i(731877),i=e.i(427702);function r(e){return e.map(({valueId:e,key:t,value:s})=>null===t||null===s?e:`${t}=${s}`).join(" and ")}function l(e){switch(e.kind){case"type":return`any ship of type ${e.type}`;case"meeting":return`every other participant of meeting ${e.meetingId}`;case"label":return`every ship carrying ${r(e.values)}`}}function d(e){let t=String(e.attempts-1);return e.isPushed?`Handed ${t} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${t} times, never acknowledged; fifth receive refused: undeliverable.`}e.s(["labelSelectionWords",0,r,"recipientGroupWords",0,l],415168);let o="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function c(){let e=(0,i.useTRPC)(),t=(0,a.useQueryClient)();return()=>t.invalidateQueries({queryKey:e.fleet.pathKey()})}e.s(["DISMISSED_TOAST",0,{title:"Delivery dismissed",description:"It stays in the timelines as dismissed."},"attentionReason",0,function(e){switch(e.state){case"undeliverable":return d(e);case"notHandled":return null===e.reason?o:`${o} Its crew said: ${e.reason}.`}},"canResend",0,function(e){return!e.message.isPing},"deliveryWithId",0,function(e,t){return e?.find(e=>e.deliveryId===t)},"resentToast",0,function(e){return{title:"Message resent",description:`A new message went to ${function(e){let{recipient:t}=e.message;return"ship"===t.kind?t.ship.name:l(t)}(e)}. The original is dismissed.`}},"undeliverableReason",0,d,"useDismissDelivery",0,function(){let e=(0,i.useTRPC)(),t=c();return(0,s.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:t}))},"useNeedsAttention",0,function(e={}){let s=(0,i.useTRPC)();return(0,n.pagedListOf)((0,t.useInfiniteQuery)(s.fleet.needsAttention.infiniteQueryOptions({...e,limit:n.CONSOLE_PAGE_SIZE},{getNextPageParam:n.nextCursorOf})))},"useResendDelivery",0,function(){let e=(0,i.useTRPC)(),t=c();return(0,s.useMutation)(e.fleet.resend.mutationOptions({onSuccess:t}))}],928459)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395530,e=>{"use strict";var t=e.i(271645),s=e.i(828918),a=e.i(838452),n=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:r,onHighlightedIndexChange:l}=(0,a.useCompositeRootContext)(),{ref:d,index:o}=(0,n.useCompositeListItem)(e),c=r===o,u=t.useRef(null),h=(0,s.useMergedRefs)(d,u);return{compositeProps:{tabIndex:c?0:-1,onFocus(){l(o)},onMouseMove(){let e=u.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:h,index:o}}])},437750,e=>{"use strict";var t=e.i(456420);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 a=(0,t.default)(s);e.s(["AppWindow",0,a],437750)},271567,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Bot",0,a],271567)},24071,e=>{"use strict";var t=e.i(456420);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)},867927,e=>{"use strict";var t=e.i(456420);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],867927)},152886,e=>{"use strict";var t=e.i(456420);let s={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};s.node;let a=(0,t.default)(s);e.s(["CircleDashed",0,a],152886)},275043,446513,e=>{"use strict";var t=e.i(456420);let s={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};s.node;let a=(0,t.default)(s);e.s(["default",0,a],275043);let n={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};n.node;let i=(0,t.default)(n);e.s(["Monitor",0,i],446513)},569644,269846,e=>{"use strict";var t=e.i(456420);let s={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 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.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};s.node;let a=(0,t.default)(s);e.s(["FolderOpen",0,a],569644);let n={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};n.node;let i=(0,t.default)(n);e.s(["GitBranch",0,i],269846)},566595,e=>{"use strict";var t=e.i(456420);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],566595)},841220,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Server",0,a],841220)},819759,e=>{"use strict";var t=e.i(456420);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],819759)},383035,e=>{"use strict";var t=e.i(456420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["SquareTerminal",0,a],383035)},466787,e=>{"use strict";var t=e.i(456420);let s={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};s.node;let a=(0,t.default)(s);e.s(["TriangleAlert",0,a],466787)},594831,e=>{"use strict";var t=e.i(456420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Unplug",0,a],594831)},298260,e=>{"use strict";var t=e.i(843476),s=e.i(965324);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})}])},638919,e=>{"use strict";var t=e.i(843476),s=e.i(353753),a=e.i(225913),n=e.i(560964),i=e.i(965324),r=e.i(574296);let l=(0,a.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,i.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...s})},"SheetClose",0,function(e){return(0,t.jsx)(s.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:a,side:d="right",...o}){return(0,t.jsxs)(s.Dialog.Portal,{children:[(0,t.jsx)(s.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,t.jsxs)(s.Dialog.Popup,{"data-slot":"sheet-content","data-side":d,className:(0,i.classNames)(l({side:d}),e),...o,children:["bottom"===d?(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,t.jsx)(s.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,t.jsx)(n.XIcon,{})}),a]})]})},"SheetDescription",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.classNames)("text-meta text-muted-foreground",e),...a})},"SheetFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.classNames)("flex flex-col-reverse gap-2 pt-3 in-data-[side=right]:flex-row in-data-[side=right]:justify-end in-data-[side=right]:border-t in-data-[side=right]:px-6 in-data-[side=right]:py-4",e),...s})},"SheetHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...s})},"SheetTitle",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...a})},"SheetTrigger",0,function(e){return(0,t.jsx)(s.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},419413,e=>{"use strict";e.s(["PAGE_SIZE_MAX",0,500])},219321,e=>{"use strict";var t=e.i(843476),s=e.i(965324);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(843476),s=e.i(965324);e.s(["EmptyState",0,function({title:e,description:a,icon:n,action:i,variant:r="page",className:l}){return"section"===r?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":r,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"===r?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,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}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,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:[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}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},188393,e=>{"use strict";var t=e.i(843476),s=e.i(965324),a=e.i(219321);function n(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:r="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:r}),"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(i).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: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)(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:n(i).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]})}])},763481,e=>{"use strict";var t=e.i(843476),s=e.i(437750),a=e.i(271567),n=e.i(456420);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 r=(0,n.default)(i),l={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"}]]};l.node;let d=(0,n.default)(l),o={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"}]]};o.node;let c=(0,n.default)(o),u={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"}]]};u.node;let h=(0,n.default)(u);var m=e.i(841220),x=e.i(383035),p=e.i(594831),f=e.i(965324),g=e.i(866616),y=e.i(127361);let v={DEVICE:d,CLOUD:r,SERVER:m.Server,OTHER:c},b={coding:x.SquareTerminal,chat:h,bot:a.Bot,console:s.AppWindow},j={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:s=null,harness:a=null,isCompact:n=!1,size:i="md",className:r}){let l=(0,f.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",j[i],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(p.Unplug,{"aria-hidden":!0}),"No session"]});let d=v[e],o=(0,y.locationKindWord)(e),c=null===s?o:`${o} \xb7 ${s}`;if(null!==a){let e=(0,g.harnessKind)(a),n=void 0===e?void 0:b[e],i=(0,g.harnessWord)(a);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===s?`${i} \xb7 ${o}`:`${i} \xb7 ${o}: ${s}`,children:[void 0===n?null:(0,t.jsx)(n,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:i}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:o}),null===s?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",s]})]})}return n?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:c,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[o,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:s??o})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[o,null===s?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:s})]})]})]})}],763481)},721039,e=>{"use strict";var t=e.i(843476),s=e.i(466787),a=e.i(866616),n=e.i(714695);e.s(["NotOfferedLine",0,function({harness:e,reason:i}){return(0,t.jsxs)("p",{"data-testid":"not-offered",className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-meta text-tone-attention-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:self-center",children:[(0,t.jsx)(s.TriangleAlert,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"font-medium",children:[(0,a.harnessWord)(e)," not offered"]}),(0,t.jsxs)("span",{children:[i,"."]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:n.NOT_OFFERED_CLEARS})]})}])},577880,485538,e=>{"use strict";var t=e.i(843476),s=e.i(566595),a=e.i(374368),n=e.i(574296),i=e.i(298260),r=e.i(704974),l=e.i(965324);function d({switcher:e,account:o,onSearch:c,searchLabel:u="Search or jump to",children:h,actions:m,className:x}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,l.classNames)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",x),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(a.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),h]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[m,c?(0,t.jsxs)(n.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 max-lg:w-auto",onClick:c,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,t.jsx)(i.Kbd,{children:"⌘K"})]}):null,(0,t.jsx)(r.AvatarMenu,{...o})]})]})}var o=e.i(867927),c=e.i(819759),u=e.i(522016);let h={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 m({state:e,className:s}){let{label:a,dot:n}=h[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",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:s=[],live:a,switcher:i,account:r,onCompose:l,onSearch:h}){return(0,t.jsxs)(d,{switcher:i,account:r,onSearch:h,searchLabel:"Search ships or jump to",className:"hidden sm:flex",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{state:a}),l?(0,t.jsx)(n.Button,{size:"sm",icon:(0,t.jsx)(c.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:l,children:"Compose"}):null]}),children:[(0,t.jsx)(o.ChevronRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-muted-foreground"}),(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:[s.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(u.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(o.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})]})})]})}],577880);var x=e.i(24071);e.s(["TopBar",0,function({title:e,live:i,actions:l,back:d,switcher:o,account:c,onSearch:h}){let p=h&&!d?h:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":d?"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:[d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(u.default,{href:d.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)(x.ChevronLeft,{"aria-hidden":!0}),d.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):o?(0,t.jsx)(a.AppSwitcher,{switcher:o,layout:"compact",className:"min-w-0"}):(0,t.jsx)("p",{className:"truncate px-1.5 text-title-touch font-semibold text-foreground",children:"Console"}),(0,t.jsx)(m,{state:i}),l||p||c&&!d?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[p?(0,t.jsx)(n.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:p,children:(0,t.jsx)(s.Search,{"aria-hidden":!0})}):null,l,c&&!d?(0,t.jsx)(r.AvatarMenuSheet,{...c}):null]}):null]})}],485538)},458155,e=>{"use strict";var t=e.i(970597),s=e.i(419413),a=e.i(266027);async function n(e){let t,s=[];do{let a=await e(t);if("refused"===a.kind)return a;s.push(...a.data.items),t=a.data.nextCursor??void 0}while(void 0!==t)return{kind:"answered",data:s}}var i=e.i(905387),r=e.i(502660),l=e.i(427702);e.s(["useAssignedShips",0,function(e){let d=(0,l.useTRPC)(),o=(0,l.useTRPCClient)(),c=[...new Set(e)].toSorted(),u=(0,a.useQuery)({queryKey:d.fleet.list.queryKey({assignedTo:c}),queryFn:async()=>(0,r.dataOf)(await n(async e=>({kind:"answered",data:await o.fleet.list.query({assignedTo:c,cursor:e,limit:s.PAGE_SIZE_MAX})}))),enabled:void 0!==e&&c.length>0,refetchInterval:i.LAST_SEEN_REFRESH_MS,select:e=>e.filter(t.isInReadReach)});return void 0!==e&&0===c.length?[]:u.data}],458155)},615385,e=>{"use strict";var t=e.i(843476),s=e.i(965324),a=e.i(714695);let n={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:i,unknownText:r="Unknown",testId:l}){let d=(0,a.capacityLine)(e,i);if(void 0===i||void 0===d)return(0,t.jsx)("span",{"data-testid":l,className:"text-meta text-muted-foreground",children:r});let o=Math.max(0,i.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":d,"data-testid":l,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,a)=>(0,t.jsx)("span",{title:`Spot ${String(a+1)}: ${e.name}, ${e.status}`,className:(0,s.classNames)("h-2 w-3 rounded-xs",n[e.status])},e.shipId)),Array.from({length:o},(s,a)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+a+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(a)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:d})]})}])},36556,e=>{"use strict";var t=e.i(843476),s=e.i(271567),a=e.i(152886),n=e.i(569644),i=e.i(269846),r=e.i(586875),l=e.i(466787),d=e.i(522016),o=e.i(866616),c=e.i(714695),u=e.i(849635),h=e.i(766390),m=e.i(574296),x=e.i(615385),p=e.i(721039),f=e.i(763481);let g={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},y={alive:"Alive",silent:"Not answering","not-started":"Not started"};function v({machine:e,now:s}){let n=(0,c.machineLiveness)(e),i=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":n,children:[(0,t.jsxs)(h.Badge,{variant:"outline",className:g[n],children:["alive"===n?(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(a.CircleDashed,{"aria-hidden":!0}),y[n]]}),null===i?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,u.fullDateTime)(i),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,u.clockTime)(i)}`:(0,u.lastSeen)(i,s).replace("Last seen","seen")]})]})}function b(e,t){let s=(0,u.relativeTime)(e,t);return"Just now"===s?"just now":s}function j({title:e,children:s,className:a}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${a??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),s]})}function w({harness:e,now:a}){let n=(0,o.harnessDetection)(e,a);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.Bot,{"aria-hidden":!0}),(0,o.harnessWord)(e.harness),void 0===n?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:n})]}),(0,c.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(s=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[s,s===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},s))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(s=>e.riskyFlags?.includes(s)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(l.TriangleAlert,{"aria-hidden":!0}),s,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},s):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:s},s))})]})}function k({title:e,icon:s,names:a}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===a.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):a.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[s,e]},e))]})}function N({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(k,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(i.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(k,{title:"Folders · used as they are",icon:(0,t.jsx)(n.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}e.s(["HarnessOffer",0,w,"MachineCard",0,function({machine:e,spots:s,location:a,onNewSetupLine:n,now:i}){let{details:l,report:o}=e,c=null===o?null:new Date(o.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(d.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(v,{machine:e,now:i}),void 0===n?null:(0,t.jsx)(m.Button,{size:"sm",className:"self-start",onClick:n,"data-testid":"machine-card-new-setup-line",children:"New setup line"}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(f.LocationTag,{kind:a?.kind??null,description:a?.description}),null===l?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",l.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(x.CapacityBar,{spots:s,caps:l?.caps,testId:"machine-card-capacity",unknownText:null===c?"Unknown until it answers":`Unknown since ${(0,u.clockTime)(c)}`}),null===c?null:(0,t.jsxs)("time",{dateTime:o?.reportedAt,title:(0,u.fullDateTime)(c),className:"text-meta text-muted-foreground",children:["Last answer ",b(c,i)]})]}),(0,t.jsxs)(j,{title:"Harnesses, options and flags",children:[l?.notOffered?.map(({harness:e,reason:s})=>(0,t.jsx)(p.NotOfferedLine,{harness:e,reason:s},e)),null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):l.harnesses.map(e=>(0,t.jsx)(w,{harness:e,now:i},e.harness))]}),(0,t.jsx)(j,{title:"Workspaces",children:null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(N,{workspaces:l.workspaces})})]})},"MachineLiveness",0,v,"WorkspaceOffer",0,N,"lastAnswer",0,b])},835114,e=>{"use strict";var t=e.i(843476),s=e.i(77071),a=e.i(586875),n=e.i(594831),i=e.i(522016),r=e.i(714695),l=e.i(574296),d=e.i(67874),o=e.i(817981),c=e.i(188393),u=e.i(36556);e.s(["MachineList",0,function({connection:e,machines:h,ships:m,error:x,onRetry:p,onJoin:f,onNewSetupLine:g,now:y}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(a.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...s})=>(0,t.jsx)("a",{href:"https://github.com/ThomasHendrickx/aeolus-fleet-trierarch-plugin/tree/main/packages/trierarch-plugin#readme",target:"_blank",rel:"noreferrer",...s,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==x?(0,t.jsx)(o.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:x,onRetry:p}):void 0===h||"unknown"===e?(0,t.jsx)(c.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===h.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(a.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:f?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:f,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:h.map(e=>(0,t.jsx)(u.MachineCard,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,onNewSetupLine:void 0===g?void 0:()=>{g(e)},now:y},e.shipId))})}])},866616,e=>{"use strict";var t=e.i(849635);let s={"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 a(e){return s[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":a(e)},"harnessDetection",0,function(e,s){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let a=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),s);return`${e.version} \xb7 models confirmed ${"Just now"===a?"just now":a}`},"harnessKind",0,function(e){return s[e]?.kind},"harnessWord",0,a])},718423,e=>{"use strict";var t=e.i(912598),s=e.i(905861),a=e.i(271645),n=e.i(586413),i=e.i(123938),r=e.i(427702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);function d(e,t){return e.pages.some(e=>e.items.some(e=>e.id===t))}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),c=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),u=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,r.useTRPC)(),h=(0,t.useQueryClient)(),[m,x]=(0,a.useState)(new Set),p=(0,i.useIsReopening)(),[f]=(0,a.useState)(()=>{let t,s,a,i;return function(e){var t;let s,a,i,{trpc:r,queryClient:h,reload:m}=e,x=[...r.fleet.list.infiniteQueryKey()],p=()=>h.getQueriesData({queryKey:x}).flatMap(([,e])=>void 0===e?[]:[e]),f=(t={readRow:e=>h.query({...r.fleet.listedShip.queryOptions({shipId:e}),staleTime:0}),writeRow:t=>{let s=p().some(e=>!d(e,t.id));h.setQueriesData({queryKey:x},e=>e&&function(e,t){if(d(e,t.id))return{...e,pages:e.pages.map(e=>{var s;return{...e,items:(s=e.items,s.map(e=>e.id===t.id?t:e))}})};let[s,...a]=e.pages;return void 0===s?e:{...e,pages:[{...s,items:[t,...s.items]},...a]}}(e,t)),s&&e.onPlacedFirst(t.id)}},s=new Set,a=new Set,i=async e=>{s.add(e);try{do a.delete(e),t.writeRow(await t.readRow(e));while(a.has(e))}catch{}finally{s.delete(e),a.delete(e)}},e=>{s.has(e)?a.add(e):i(e)}),g=()=>{m(r.fleet.stuckCount.queryKey()),m(r.fleet.stuckSummary.queryKey()),m(r.fleet.stuck.pathKey())};return e=>{var t,s,a,i,d;if("resync"===e.kind){m(r.fleet.pathKey()),m(n.INBOX_KEY);return}let{event:h}=e;for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&(m(r.fleet.ship.queryKey({shipId:e})),m(r.fleet.shipTimeline.infiniteQueryKey({shipId:e})),m(r.fleet.shipWay.queryKey({shipId:e})));if(null!==h.messageId&&(m(r.fleet.shipMessages.pathKey()),m(r.fleet.shipWay.pathKey()),m(r.fleet.message.queryKey({messageId:h.messageId})),m(r.fleet.messageDeliveries.infiniteQueryKey({messageId:h.messageId})),m(r.fleet.inbox.pathKey()),m(r.fleet.inboxCount.queryKey()),m(n.INBOX_KEY),g()),"DeliveryAcknowledged"===h.type&&m(r.fleet.acknowledged.queryKey()),t=h.type,c.has(t)&&m(r.fleet.needsAttention.pathKey()),s=h.type,o.has(s)&&m(r.fleet.labels.queryKey()),"NetworkRulesDeclared"===h.type&&m(r.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(a=h.type)||"NetworkRulesSet"===a)&&m(r.fleet.builtInRules.queryKey()),i=h.type,u.has(i)&&(m(r.fleet.networkRules.queryKey()),m(r.fleet.networkRulesDraftChanges.queryKey()),m(r.fleet.explainReach.pathKey())),d=h.type,l.has(d)){if(p().length>0)for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&f(e);m(r.fleet.shipCounts.pathKey()),g()}}}({trpc:e,queryClient:h,reload:(t=new Set,s=new Set,a=e=>h.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),i=async e=>{t.add(e.queryHash);let n=e.isBehind;try{for(await a(e.queryKey);n||s.delete(e.queryHash);)n=!1,await a(e.queryKey)}finally{t.delete(e.queryHash)}},e=>{for(let a of h.getQueryCache().findAll({queryKey:e}))t.has(a.queryHash)?s.add(a.queryHash):i({queryHash:a.queryHash,queryKey:a.queryKey,isBehind:"fetching"===a.state.fetchStatus})}),onPlacedFirst:e=>{x(t=>new Set([...t,e]))}})}),g=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:e})=>{f(e)}}));return{live:"connecting"===g.status&&p?"live":function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(g.status),placedFirstShipIds:m,error:g.error}}])},127361,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},928459,415168,e=>{"use strict";var t=e.i(621482),s=e.i(954616),a=e.i(912598),n=e.i(731877),i=e.i(427702);function r(e){return e.map(({valueId:e,key:t,value:s})=>null===t||null===s?e:`${t}=${s}`).join(" and ")}function l(e){switch(e.kind){case"type":return`any ship of type ${e.type}`;case"meeting":return`every other participant of meeting ${e.meetingId}`;case"label":return`every ship carrying ${r(e.values)}`}}function d(e){let t=String(e.attempts-1);return e.isPushed?`Handed ${t} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${t} times, never acknowledged; fifth receive refused: undeliverable.`}e.s(["labelSelectionWords",0,r,"recipientGroupWords",0,l],415168);let o="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function c(){let e=(0,i.useTRPC)(),t=(0,a.useQueryClient)();return()=>t.invalidateQueries({queryKey:e.fleet.pathKey()})}e.s(["DISMISSED_TOAST",0,{title:"Delivery dismissed",description:"It stays in the timelines as dismissed."},"attentionReason",0,function(e){switch(e.state){case"undeliverable":return d(e);case"notHandled":return null===e.reason?o:`${o} Its crew said: ${e.reason}.`}},"canResend",0,function(e){return!e.message.isPing},"deliveryWithId",0,function(e,t){return e?.find(e=>e.deliveryId===t)},"resentToast",0,function(e){return{title:"Message resent",description:`A new message went to ${function(e){let{recipient:t}=e.message;return"ship"===t.kind?t.ship.name:l(t)}(e)}. The original is dismissed.`}},"undeliverableReason",0,d,"useDismissDelivery",0,function(){let e=(0,i.useTRPC)(),t=c();return(0,s.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:t}))},"useNeedsAttention",0,function(e={}){let s=(0,i.useTRPC)();return(0,n.pagedListOf)((0,t.useInfiniteQuery)(s.fleet.needsAttention.infiniteQueryOptions({...e,limit:n.CONSOLE_PAGE_SIZE},{getNextPageParam:n.nextCursorOf})))},"useResendDelivery",0,function(){let e=(0,i.useTRPC)(),t=c();return(0,s.useMutation)(e.fleet.resend.mutationOptions({onSuccess:t}))}],928459)}]);
|