@aeolus-fleet/console 0.25.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/.next/standalone/packages/console/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/console/.next/build-manifest.json +3 -3
  3. package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +16 -16
  5. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page.js.nft.json +1 -1
  6. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page/server-reference-manifest.json +16 -16
  8. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page.js.nft.json +1 -1
  9. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page/server-reference-manifest.json +16 -16
  11. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page.js.nft.json +1 -1
  12. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page/server-reference-manifest.json +16 -16
  14. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page.js.nft.json +1 -1
  15. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/packages/console/.next/server/app/(console)/network/page/server-reference-manifest.json +16 -16
  17. package/.next/standalone/packages/console/.next/server/app/(console)/network/page.js.nft.json +1 -1
  18. package/.next/standalone/packages/console/.next/server/app/(console)/network/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/packages/console/.next/server/app/(console)/page/server-reference-manifest.json +16 -16
  20. package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
  21. package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/packages/console/.next/server/app/(console)/questions/page/server-reference-manifest.json +16 -16
  23. package/.next/standalone/packages/console/.next/server/app/(console)/questions/page.js.nft.json +1 -1
  24. package/.next/standalone/packages/console/.next/server/app/(console)/questions/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +16 -16
  26. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page.js.nft.json +1 -1
  27. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
  28. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/server-reference-manifest.json +16 -16
  29. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page.js.nft.json +1 -1
  30. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page/server-reference-manifest.json +16 -16
  32. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page.js.nft.json +1 -1
  33. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
  34. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/server-reference-manifest.json +16 -16
  35. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page.js.nft.json +1 -1
  36. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
  37. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/server-reference-manifest.json +16 -16
  38. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page.js.nft.json +1 -1
  39. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page/server-reference-manifest.json +16 -16
  41. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page.js.nft.json +1 -1
  42. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page/server-reference-manifest.json +16 -16
  44. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page.js.nft.json +1 -1
  45. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
  46. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page/server-reference-manifest.json +16 -16
  47. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page.js.nft.json +1 -1
  48. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page_client-reference-manifest.js +1 -1
  49. package/.next/standalone/packages/console/.next/server/app/_global-error.html +1 -1
  50. package/.next/standalone/packages/console/.next/server/app/_global-error.rsc +1 -1
  51. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  52. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  53. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  54. package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +1 -1
  55. package/.next/standalone/packages/console/.next/server/app/version/route.js.nft.json +1 -1
  56. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__06f_104._.js +1 -1
  57. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__1cfwaji._.js +1 -1
  58. package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_blueprints_[name]_page_actions_170owr_.js +1 -1
  59. package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_templates_[name]_page_actions_09abrr0.js +1 -1
  60. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_needs-crew_page_actions_08gu8-f.js +1 -1
  61. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_network_page_actions_1muuv-j.js +1 -1
  62. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_questions_page_actions_12d6yd2.js +1 -1
  63. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_settings_page_actions_0b6qztr.js +1 -1
  64. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_ships_[shipId]_page_actions_0g2nd1p.js +1 -1
  65. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_squadrons_page_actions_1x3afts.js +1 -1
  66. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_trierarchs_page_actions_1ow37mz.js +1 -1
  67. package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_needs-attention_page_actions_1jfgclw.js +1 -1
  68. package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_squadrons_[squadronId]_page_actions_1lzqlye.js +1 -1
  69. package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_trierarchs_[shipId]_page_actions_0l7bxva.js +1 -1
  70. package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__197gd9r._.js +1 -1
  71. package/.next/standalone/packages/console/.next/server/chunks/ssr/_01eyvjo._.js +1 -1
  72. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_20i0fo8._.js → _03figwl._.js} +1 -1
  73. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0cak8i7._.js +1 -1
  74. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ll55v1._.js +1 -1
  75. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_127j_99._.js → _0magod9._.js} +1 -1
  76. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0or-_73._.js → _0ze4jen._.js} +1 -1
  77. package/.next/standalone/packages/console/.next/server/chunks/ssr/_11s1izd._.js +1 -1
  78. package/.next/standalone/packages/console/.next/server/chunks/ssr/_195z53h._.js +1 -1
  79. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0wxg7hg._.js → _1aub6rh._.js} +1 -1
  80. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1buuyye._.js +1 -1
  81. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1geqwzr._.js +1 -1
  82. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1r9nd0e._.js → _1hl4kpn._.js} +1 -1
  83. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1or2awi._.js +1 -1
  84. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0punyro._.js → _1tt3h4z._.js} +1 -1
  85. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
  86. package/.next/standalone/packages/console/.next/server/chunks/ssr/{node_modules_@base-ui_react_0xxx54b._.js → node_modules_@base-ui_react_1of81la._.js} +2 -2
  87. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_01vespm._.js → packages_console_122o2i3._.js} +1 -1
  88. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0n040z7._.js → packages_console_1adfz1r._.js} +1 -1
  89. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_02tq-5j._.js → packages_console_1upjt78._.js} +1 -1
  90. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_inbox_page_actions_0q9_xye.js +1 -1
  91. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_labels_page_actions_0tk7mqs.js +1 -1
  92. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_page_actions_1ftjjyq.js +1 -1
  93. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_needs-attention_page_tsx_03s6y-o._.js +1 -1
  94. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_overview-page_tsx_15siba6._.js +1 -1
  95. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_1_fszuc._.js → packages_console_features_1ycqicv._.js} +1 -1
  96. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_143srw6._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_12z690a._.js} +1 -1
  97. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_0mlws3e._.js → packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_140y8dv._.js} +1 -1
  98. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_lib_11xnux-._.js +1 -1
  99. package/.next/standalone/packages/console/.next/server/middleware-build-manifest.js +3 -3
  100. package/.next/standalone/packages/console/.next/server/pages/500.html +1 -1
  101. package/.next/standalone/packages/console/.next/server/server-reference-manifest.js +1 -1
  102. package/.next/standalone/packages/console/.next/server/server-reference-manifest.json +17 -17
  103. package/.next/standalone/packages/console/.next/static/chunks/{2vnmap15_4ik5.js → 08fntqgo3353u.js} +1 -1
  104. package/.next/standalone/packages/console/.next/static/chunks/{0rr9rjc_bc3gf.js → 0nztfy7ba1ez4.js} +1 -1
  105. package/.next/standalone/packages/console/.next/static/chunks/{1s_391feiypzt.js → 0xklzua--y-te.js} +1 -1
  106. package/.next/standalone/packages/console/.next/static/chunks/{1p87dal8vyega.js → 1cys0q4nekmo8.js} +1 -1
  107. package/.next/standalone/packages/console/.next/static/chunks/{0jvnv44qtww0y.js → 1vusd9lpo6rtl.js} +1 -1
  108. package/.next/standalone/packages/console/.next/static/chunks/{1ek70m0owmcgq.js → 274y91hwkjxt3.js} +1 -1
  109. package/.next/standalone/packages/console/.next/static/chunks/{28eaginqf0r6l.js → 2fawp7c5ud5cq.js} +1 -1
  110. package/.next/standalone/packages/console/.next/static/chunks/{14gq9h4bre4zl.js → 2fcx48n2u74f8.js} +1 -1
  111. package/.next/standalone/packages/console/.next/static/chunks/{2mlx4u2m3gj4n.js → 2fqbkmkhj5cfr.js} +1 -1
  112. package/.next/standalone/packages/console/.next/static/chunks/{2vjnc-m734xfm.js → 2fsy26x-aeybj.js} +1 -1
  113. package/.next/standalone/packages/console/.next/static/chunks/{1kzen4nzgfhzx.js → 2nxpt1ggh42xf.js} +1 -1
  114. package/.next/standalone/packages/console/.next/static/chunks/2sdb6_s313-_0.js +1 -0
  115. package/.next/standalone/packages/console/.next/static/chunks/{0r2pzmadty78a.js → 3a-i8z6d_l5j9.js} +1 -1
  116. package/.next/standalone/packages/console/.next/static/chunks/{2iwxdddbd25in.js → 3hfbb6--wbkq6.js} +1 -1
  117. package/.next/standalone/packages/console/.next/static/chunks/{11tuykopff7e_.js → 3lwa1pmekf5yn.js} +1 -1
  118. package/.next/standalone/packages/console/.next/static/chunks/3otcabh_gijq-.js +1 -0
  119. package/.next/standalone/packages/console/.next/static/chunks/{3sgvr4qucbnoq.js → 3pq58846qyog_.js} +1 -1
  120. package/.next/standalone/packages/console/.next/static/chunks/{3fz2o2p_07f9u.js → 3t0b867w1fd16.js} +1 -1
  121. package/.next/standalone/packages/console/.next/static/chunks/{2w9atwkwe6d4r.js → 3yteehwrrznjm.js} +1 -1
  122. package/.next/standalone/packages/console/.next/static/chunks/{1cg31hv7ug_rw.js → 43wruh-j46sq_.js} +1 -1
  123. package/.next/standalone/packages/console/package.json +3 -3
  124. package/package.json +3 -3
  125. package/.next/standalone/packages/console/.next/static/chunks/0bb19hfyc42kn.js +0 -1
  126. package/.next/standalone/packages/console/.next/static/chunks/3dmesrmg4eee9.js +0 -1
  127. /package/.next/standalone/packages/console/.next/static/{JdC0gQewmBAtNW6TcHLnI → -CS98dpuGlTUZ_q58bGCs}/_buildManifest.js +0 -0
  128. /package/.next/standalone/packages/console/.next/static/{JdC0gQewmBAtNW6TcHLnI → -CS98dpuGlTUZ_q58bGCs}/_clientMiddlewareManifest.js +0 -0
  129. /package/.next/standalone/packages/console/.next/static/{JdC0gQewmBAtNW6TcHLnI → -CS98dpuGlTUZ_q58bGCs}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71567,41220,e=>{"use strict";var t=e.i(56420);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],71567);let n={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};n.node;let i=(0,t.default)(n);e.s(["Server",0,i],41220)},24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},52886,e=>{"use strict";var t=e.i(56420);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],52886)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},69644,69846,e=>{"use strict";var t=e.i(56420);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],69644);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],69846)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},83035,e=>{"use strict";var t=e.i(56420);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],83035)},94831,e=>{"use strict";var t=e.i(56420);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],94831)},22088,e=>{"use strict";var t=e.i(43476),s=e.i(77071),a=e.i(71645),n=e.i(66390),i=e.i(15905),r=e.i(66319),l=e.i(77821),d=e.i(87964),o=e.i(17540),c=e.i(90262),h=e.i(5387),m=e.i(18423),u=e.i(28459),x=e.i(96676),p=e.i(78485),g=e.i(265);let f=(0,o.lazyDialog)(()=>e.A(27397).then(e=>e.JoinMachineDialog),e=>e.isOpen);e.s(["default",0,function(){let e=(0,x.useNow)(),o=(0,d.useConsoleFrame)(),j=(0,u.useNeedsAttention)(),v=(0,m.useLiveFleet)(),b=(0,h.useFleetSnapshot)(),y=(0,g.useTrierarchPluginConnection)(),k=(0,g.useMachines)(),N=(0,g.useTrierarchPluginVersion)(),w=(0,g.useJoinMachine)(),S=(0,c.useAccess)(),[C,z]=(0,a.useState)(!1);(0,p.useSignInWhenSessionEnds)([j.error,v.error]);let M=S.canManage&&"connected"===y,q=()=>{w.reset(),z(!0)};return(0,t.jsxs)(l.ListPage,{...o,title:"Trierarchs",titleMeta:void 0===N?void 0:(0,t.jsxs)(n.Badge,{variant:"outline","data-testid":"trierarchs-plugin-version",children:["trierarch plugin ",N]}),description:"none"===y?"Not set up.":"Machines that run sessions for crew requests. The plugin picks a trierarch for each request.",live:v.live,primaryAction:M?(0,t.jsx)(i.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:q,"data-testid":"trierarchs-join",children:"Join a machine"}):void 0,children:[(0,t.jsx)(r.MachineList,{connection:y,machines:k.data,ships:b.data??[],error:k.isError?k.error.message:void 0,onRetry:()=>{k.refetch()},onJoin:M?q:void 0,now:e}),M&&(0,t.jsx)(f,{activeNames:(b.data??[]).filter(e=>"retired"!==e.status).map(e=>e.name),isOpen:C,onOpenChange:e=>{z(e),e||w.reset()},isPending:w.isPending,error:w.error?.message,joined:w.data,onSubmit:e=>{w.mutate(e)}})]})}])},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon: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]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),n=e.i(25398),i=e.i(90063),r=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:d,onRetry:o,retryNote:c,variant:h="section",id:m,className:u}){return"field"===h?(0,t.jsxs)("p",{id:m,"data-slot":"inline-error","data-variant":h,className:(0,i.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",u),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===h?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":h,className:(0,i.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",u),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,o?(0,t.jsx)(r.Button,{size:"xs",icon:(0,t.jsx)(n.RotateCw,{"aria-hidden":!0}),onClick:o,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":h,className:(0,i.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",u),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,d?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:d}):null,o?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(r.Button,{size:"sm",icon:(0,t.jsx)(n.RotateCw,{"aria-hidden":!0}),onClick:o,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function 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]})}])},63481,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={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"}]]};a.node;let n=(0,s.default)(a);var i=e.i(71567);let r={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"}]]};r.node;let l=(0,s.default)(r),d={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"}]]};d.node;let o=(0,s.default)(d),c={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};c.node;let h=(0,s.default)(c),m={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"}]]};m.node;let u=(0,s.default)(m);var x=e.i(41220),p=e.i(83035),g=e.i(94831),f=e.i(90063),j=e.i(66616),v=e.i(40798);let b={DEVICE:o,CLOUD:l,SERVER:x.Server,OTHER:h},y={coding:p.SquareTerminal,chat:u,bot:i.Bot,console:n},k={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",k[i],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(g.Unplug,{"aria-hidden":!0}),"No session"]});let d=b[e],o=(0,v.locationKindWord)(e),c=null===s?o:`${o} \xb7 ${s}`;if(null!==a){let e=(0,j.harnessKind)(a),n=void 0===e?void 0:y[e],i=(0,j.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})]})]})]})}],63481)},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),n=e.i(19759),i=e.i(22016),r=e.i(15905),l=e.i(36651),d=e.i(90063);let o={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:n}=o[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,d.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.classNames)("size-2 shrink-0 rounded-full",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:d=[],live:o,onCompose:h,onSearch:m}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[d.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(i.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:o}),m?(0,t.jsxs)(r.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:m,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,h?(0,t.jsx)(r.Button,{size:"sm",icon:(0,t.jsx)(n.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:h,children:"Compose"}):null]})]})}],77880);var h=e.i(24071),m=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:n,back:l,account:d,onSearch:o}){let u=o&&!l?o:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(h.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),n||u||d&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[u?(0,t.jsx)(r.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:u,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,n,d&&!l?(0,t.jsx)(m.AccountMenuSheet,{...d}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),n=e.i(77880),i=e.i(85538);e.s(["ListPage",0,function({title:e,description:r,titleMeta:l,primaryAction:d,toolbar:o,live:c,onCompose:h,onSearch:m,account:u,banner:x,children:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:c,onCompose:h,onSearch:m}),x,(0,t.jsx)(i.TopBar,{title:e,live:c,account:u,onSearch:m,actions:h?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:h,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),l]}),r?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:r}):null]}),d?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:d}):null]}),o,p]})]})}])},11418,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(14695);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})]})}])},66319,49050,e=>{"use strict";var t=e.i(43476),s=e.i(77071),a=e.i(86875),n=e.i(94831),i=e.i(22016),r=e.i(14695),l=e.i(31513),d=e.i(15905),o=e.i(67874),c=e.i(17981),h=e.i(88393),m=e.i(71567),u=e.i(52886),x=e.i(69644),p=e.i(69846),g=e.i(66787),f=e.i(66616),j=e.i(49635),v=e.i(66390),b=e.i(11418),y=e.i(63481);let k={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"},N={alive:"Alive",silent:"Not answering","not-started":"Not started"};function w({machine:e,now:s}){let n=(0,r.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)(v.Badge,{variant:"outline",className:k[n],children:["alive"===n?(0,t.jsx)(a.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(u.CircleDashed,{"aria-hidden":!0}),N[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,j.fullDateTime)(i),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,j.clockTime)(i)}`:(0,j.lastSeen)(i,s).replace("Last seen","seen")]})]})}function S(e,t){let s=(0,j.relativeTime)(e,t);return"Just now"===s?"just now":s}function C({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 z({harness:e,now:s}){let a=(0,f.harnessDetection)(e,s);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)(m.Bot,{"aria-hidden":!0}),(0,f.harnessWord)(e.harness),void 0===a?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:a})]}),(0,r.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)(g.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 M({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 q({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(M,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(p.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(M,{title:"Folders · used as they are",icon:(0,t.jsx)(x.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}function L({machine:e,spots:s,location:n,now:r}){let{details:l,report:d}=e,o=null===d?null:new Date(d.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)(i.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)(a.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(w,{machine:e,now:r}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(y.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)(b.CapacityBar,{spots:s,caps:l?.caps,testId:"machine-card-capacity",unknownText:null===o?"Unknown until it answers":`Unknown since ${(0,j.clockTime)(o)}`}),null===o?null:(0,t.jsxs)("time",{dateTime:d?.reportedAt,title:(0,j.fullDateTime)(o),className:"text-meta text-muted-foreground",children:["Last answer ",S(o,r)]})]}),(0,t.jsx)(C,{title:"Harnesses, options and flags",children:null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):l.harnesses.map(e=>(0,t.jsx)(z,{harness:e,now:r},e.harness))}),(0,t.jsx)(C,{title:"Workspaces",children:null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(q,{workspaces:l.workspaces})})]})}e.s(["HarnessOffer",0,z,"MachineCard",0,L,"MachineLiveness",0,w,"WorkspaceOffer",0,q,"lastAnswer",0,S],49050);let T=`${l.SOURCE_URL}/tree/main/packages/trierarch-plugin#readme`;e.s(["MachineList",0,function({connection:e,machines:l,ships:m,error:u,onRetry:x,onJoin:p,now:g}){return"none"===e?(0,t.jsx)(o.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)(d.Button,{nativeButton:!1,render:({children:e,...s})=>(0,t.jsx)("a",{href:T,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)(o.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)(d.Button,{nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==u?(0,t.jsx)(c.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:u,onRetry:x}):void 0===l||"unknown"===e?(0,t.jsx)(h.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===l.length?(0,t.jsx)(o.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:p?(0,t.jsx)(d.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:p,"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:l.map(e=>(0,t.jsx)(L,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:g},e.shipId))})}],66319)},66616,e=>{"use strict";var t=e.i(49635);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])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),n=e.i(42454),i=e.i(27702);let r=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),o=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[h,m]=(0,a.useState)(new Set),u=e=>{l(c,e)},x=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,i;if("resync"===t.kind)return void u(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(u(e.fleet.ship.queryKey({shipId:t})),u(e.fleet.shipTimeline.queryKey({shipId:t})),u(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(u(e.fleet.shipMessages.pathKey()),u(e.fleet.shipWay.pathKey()),u(e.fleet.overdue.queryKey()),u(e.fleet.message.queryKey({messageId:l.messageId})),u(e.fleet.inbox.pathKey()),u(n.QUESTIONS_KEY),u(e.fleet.noShipCanTake.queryKey())),s=l.type,o.has(s)&&u(e.fleet.needsAttention.queryKey()),a=l.type,d.has(a)&&u(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&u(e.fleet.declaredNetworkRules.queryKey()),i=l.type,!r.has(i))return;u(e.fleet.list.queryKey()),u(e.fleet.noShipCanTake.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&m(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(x.status),newShipIds:h,error:x.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71567,41220,e=>{"use strict";var t=e.i(56420);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],71567);let n={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};n.node;let i=(0,t.default)(n);e.s(["Server",0,i],41220)},24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},52886,e=>{"use strict";var t=e.i(56420);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],52886)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},69644,69846,e=>{"use strict";var t=e.i(56420);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],69644);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],69846)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},83035,e=>{"use strict";var t=e.i(56420);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],83035)},94831,e=>{"use strict";var t=e.i(56420);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],94831)},22088,e=>{"use strict";var t=e.i(43476),s=e.i(77071),a=e.i(71645),n=e.i(66390),i=e.i(15905),r=e.i(66319),l=e.i(77821),d=e.i(87964),o=e.i(17540),c=e.i(90262),h=e.i(5387),m=e.i(18423),u=e.i(28459),x=e.i(96676),p=e.i(78485),g=e.i(265);let f=(0,o.lazyDialog)(()=>e.A(27397).then(e=>e.JoinMachineDialog),e=>e.isOpen);e.s(["default",0,function(){let e=(0,x.useNow)(),o=(0,d.useConsoleFrame)(),j=(0,u.useNeedsAttention)(),v=(0,m.useLiveFleet)(),b=(0,h.useFleetSnapshot)(),y=(0,g.useTrierarchPluginConnection)(),k=(0,g.useMachines)(),N=(0,g.useTrierarchPluginVersion)(),w=(0,g.useJoinMachine)(),S=(0,c.useAccess)(),[C,z]=(0,a.useState)(!1);(0,p.useSignInWhenSessionEnds)([j.error,v.error]);let M=S.canManage&&"connected"===y,q=()=>{w.reset(),z(!0)};return(0,t.jsxs)(l.ListPage,{...o,title:"Trierarchs",titleMeta:void 0===N?void 0:(0,t.jsxs)(n.Badge,{variant:"outline","data-testid":"trierarchs-plugin-version",children:["trierarch plugin ",N]}),description:"none"===y?"Not set up.":"Machines that run sessions for crew requests. The plugin picks a trierarch for each request.",live:v.live,primaryAction:M?(0,t.jsx)(i.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:q,"data-testid":"trierarchs-join",children:"Join a machine"}):void 0,children:[(0,t.jsx)(r.MachineList,{connection:y,machines:k.data,ships:b.data??[],error:k.isError?k.error.message:void 0,onRetry:()=>{k.refetch()},onJoin:M?q:void 0,now:e}),M&&(0,t.jsx)(f,{activeNames:(b.data??[]).filter(e=>"retired"!==e.status).map(e=>e.name),isOpen:C,onOpenChange:e=>{z(e),e||w.reset()},isPending:w.isPending,error:w.error?.message,joined:w.data,onSubmit:e=>{w.mutate(e)}})]})}])},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon: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]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),n=e.i(25398),i=e.i(90063),r=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:d,onRetry:o,retryNote:c,variant:h="section",id:m,className:u}){return"field"===h?(0,t.jsxs)("p",{id:m,"data-slot":"inline-error","data-variant":h,className:(0,i.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",u),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===h?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":h,className:(0,i.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",u),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,o?(0,t.jsx)(r.Button,{size:"xs",icon:(0,t.jsx)(n.RotateCw,{"aria-hidden":!0}),onClick:o,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":h,className:(0,i.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",u),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,d?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:d}):null,o?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(r.Button,{size:"sm",icon:(0,t.jsx)(n.RotateCw,{"aria-hidden":!0}),onClick:o,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function 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]})}])},63481,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={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"}]]};a.node;let n=(0,s.default)(a);var i=e.i(71567);let r={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"}]]};r.node;let l=(0,s.default)(r),d={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"}]]};d.node;let o=(0,s.default)(d),c={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};c.node;let h=(0,s.default)(c),m={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"}]]};m.node;let u=(0,s.default)(m);var x=e.i(41220),p=e.i(83035),g=e.i(94831),f=e.i(90063),j=e.i(66616),v=e.i(40798);let b={DEVICE:o,CLOUD:l,SERVER:x.Server,OTHER:h},y={coding:p.SquareTerminal,chat:u,bot:i.Bot,console:n},k={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",k[i],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(g.Unplug,{"aria-hidden":!0}),"No session"]});let d=b[e],o=(0,v.locationKindWord)(e),c=null===s?o:`${o} \xb7 ${s}`;if(null!==a){let e=(0,j.harnessKind)(a),n=void 0===e?void 0:y[e],i=(0,j.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})]})]})]})}],63481)},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),n=e.i(19759),i=e.i(22016),r=e.i(15905),l=e.i(36651),d=e.i(90063);let o={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:n}=o[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,d.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.classNames)("size-2 shrink-0 rounded-full",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:d=[],live:o,onCompose:h,onSearch:m}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[d.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(i.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:o}),m?(0,t.jsxs)(r.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:m,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,h?(0,t.jsx)(r.Button,{size:"sm",icon:(0,t.jsx)(n.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:h,children:"Compose"}):null]})]})}],77880);var h=e.i(24071),m=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:n,back:l,account:d,onSearch:o}){let u=o&&!l?o:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(h.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),n||u||d&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[u?(0,t.jsx)(r.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:u,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,n,d&&!l?(0,t.jsx)(m.AccountMenuSheet,{...d}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),n=e.i(77880),i=e.i(85538);e.s(["ListPage",0,function({title:e,description:r,titleMeta:l,primaryAction:d,toolbar:o,live:c,onCompose:h,onSearch:m,account:u,banner:x,children:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:c,onCompose:h,onSearch:m}),x,(0,t.jsx)(i.TopBar,{title:e,live:c,account:u,onSearch:m,actions:h?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:h,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),l]}),r?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:r}):null]}),d?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:d}):null]}),o,p]})]})}])},11418,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(14695);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})]})}])},66319,49050,e=>{"use strict";var t=e.i(43476),s=e.i(77071),a=e.i(86875),n=e.i(94831),i=e.i(22016),r=e.i(14695),l=e.i(31513),d=e.i(15905),o=e.i(67874),c=e.i(17981),h=e.i(88393),m=e.i(71567),u=e.i(52886),x=e.i(69644),p=e.i(69846),g=e.i(66787),f=e.i(66616),j=e.i(49635),v=e.i(66390),b=e.i(11418),y=e.i(63481);let k={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"},N={alive:"Alive",silent:"Not answering","not-started":"Not started"};function w({machine:e,now:s}){let n=(0,r.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)(v.Badge,{variant:"outline",className:k[n],children:["alive"===n?(0,t.jsx)(a.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(u.CircleDashed,{"aria-hidden":!0}),N[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,j.fullDateTime)(i),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,j.clockTime)(i)}`:(0,j.lastSeen)(i,s).replace("Last seen","seen")]})]})}function S(e,t){let s=(0,j.relativeTime)(e,t);return"Just now"===s?"just now":s}function C({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 z({harness:e,now:s}){let a=(0,f.harnessDetection)(e,s);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)(m.Bot,{"aria-hidden":!0}),(0,f.harnessWord)(e.harness),void 0===a?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:a})]}),(0,r.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)(g.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 M({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 q({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(M,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(p.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(M,{title:"Folders · used as they are",icon:(0,t.jsx)(x.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}function L({machine:e,spots:s,location:n,now:r}){let{details:l,report:d}=e,o=null===d?null:new Date(d.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)(i.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)(a.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(w,{machine:e,now:r}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(y.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)(b.CapacityBar,{spots:s,caps:l?.caps,testId:"machine-card-capacity",unknownText:null===o?"Unknown until it answers":`Unknown since ${(0,j.clockTime)(o)}`}),null===o?null:(0,t.jsxs)("time",{dateTime:d?.reportedAt,title:(0,j.fullDateTime)(o),className:"text-meta text-muted-foreground",children:["Last answer ",S(o,r)]})]}),(0,t.jsx)(C,{title:"Harnesses, options and flags",children:null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):l.harnesses.map(e=>(0,t.jsx)(z,{harness:e,now:r},e.harness))}),(0,t.jsx)(C,{title:"Workspaces",children:null===l?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(q,{workspaces:l.workspaces})})]})}e.s(["HarnessOffer",0,z,"MachineCard",0,L,"MachineLiveness",0,w,"WorkspaceOffer",0,q,"lastAnswer",0,S],49050);let T=`${l.SOURCE_URL}/tree/main/packages/trierarch-plugin#readme`;e.s(["MachineList",0,function({connection:e,machines:l,ships:m,error:u,onRetry:x,onJoin:p,now:g}){return"none"===e?(0,t.jsx)(o.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)(d.Button,{nativeButton:!1,render:({children:e,...s})=>(0,t.jsx)("a",{href:T,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)(o.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)(d.Button,{nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==u?(0,t.jsx)(c.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:u,onRetry:x}):void 0===l||"unknown"===e?(0,t.jsx)(h.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===l.length?(0,t.jsx)(o.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:p?(0,t.jsx)(d.Button,{variant:"primary",icon:(0,t.jsx)(s.Plus,{"aria-hidden":!0}),onClick:p,"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:l.map(e=>(0,t.jsx)(L,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:g},e.shipId))})}],66319)},66616,e=>{"use strict";var t=e.i(49635);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])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),n=e.i(42454),i=e.i(27702);let r=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),o=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[h,m]=(0,a.useState)(new Set),u=e=>{l(c,e)},x=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,i;if("resync"===t.kind)return void u(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(u(e.fleet.ship.queryKey({shipId:t})),u(e.fleet.shipTimeline.queryKey({shipId:t})),u(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(u(e.fleet.shipMessages.pathKey()),u(e.fleet.shipWay.pathKey()),u(e.fleet.overdue.queryKey()),u(e.fleet.message.queryKey({messageId:l.messageId})),u(e.fleet.inbox.pathKey()),u(n.QUESTIONS_KEY),u(e.fleet.noShipCanTake.queryKey())),s=l.type,o.has(s)&&u(e.fleet.needsAttention.queryKey()),a=l.type,d.has(a)&&u(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&u(e.fleet.declaredNetworkRules.queryKey()),i=l.type,!r.has(i))return;u(e.fleet.list.queryKey()),u(e.fleet.noShipCanTake.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&m(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(x.status),newShipIds:h,error:x.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31421,e=>{"use strict";var t=e.i(71645),a=e.i(46376),s=e.i(88015);e.s(["useAriaLabelledBy",0,function(e,r,n,i=!0,l){let[o,d]=t.useState(),u=(0,s.useBaseUiId)(l?`${l}-label`:void 0),c=e??r??o;return(0,a.useIsoLayoutEffect)(()=>{let t=e||r||!i?void 0:function(e,t){let a=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let a=e.id;if(a){let t=e.nextElementSibling;if(t&&t.htmlFor===a)return t}let s=e.labels;return s&&s[0]}(e);if(a)return!a.id&&t&&(a.id=t),a.id||void 0}(n.current,u);o!==t&&d(t)}),c}])},86698,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},13203,65858,84325,42191,50001,18438,e=>{"use strict";var t=e.i(71645);e.s(["useOnFirstRender",0,function(e){let a=t.useRef(!0);a.current&&(a.current=!1,e())}],13203);var a=e.i(29315),s=e.i(83977),r=e.i(46376),n=e.i(88940),i=e.i(90627),l=e.i(46420),o=e.i(56341);e.s(["useFloatingRootContext",0,function(e){let{open:t=!1,onOpenChange:d,elements:u={}}=e,c=(0,s.useId)(),h=null!=(0,l.useFloatingParentNodeId)(),m=(0,n.useRefWithInit)(()=>new o.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:d,referenceElement:u.reference??null,floatingElement:u.floating??null,triggerElements:new i.PopupTriggerMap,floatingId:c,syncOnly:!1,nested:h})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:c};void 0!==u.reference&&(e.referenceElement=u.reference,e.domReferenceElement=(0,a.isElement)(u.reference)?u.reference:null),void 0!==u.floating&&(e.floatingElement=u.floating),m.update(e)},[t,c,u.reference,u.floating,m]),m.context.onOpenChange=d,m.context.nested=h,m}],65858);let d=(e,t)=>Object.is(e,t);function u(e,t,a){return null==e||null==t?Object.is(e,t):a(e,t)}function c(e,t,a){return!!e&&e.some(e=>void 0!==e&&u(t,e,a))}function h(e,t,a){return e?e.findIndex(e=>void 0!==e&&u(e,t,a)):-1}function m(e,t,a,s){let r=s&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==d)return a=>c(e,a,t);let a=new Set(e);return a.delete(void 0),t=>a.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,a)):h(e,t,a);return -1===r?null:r}e.s(["compareItemEquality",0,u,"defaultItemEquality",0,d,"findItemIndex",0,h,"findSelectionIndex",0,m,"isSelectedValueDirty",0,function(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!function(e,t,a=Object.is){let{length:s}=e;if(s!==t.length)return!1;for(let r=0;r<s;r+=1)if(!a(e[r],t[r]))return!1;return!0}(e,t,(e,t)=>u(e,t,a)):e!==t},"removeItem",0,function(e,t,a){return e.filter(e=>!u(t,e,a))},"resolveSelectedIndex",0,function(e,t,a,s,r,n){return c(s,t,r)?null!=n&&e>n&&c(s,a[n],r)?n:e:e===n?m(a,s,r,!0):n},"selectedValueIncludes",0,c],84325);var f=e.i(86698),p=e.i(43476);function x(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function g(e){return x(e)?e.flatMap(e=>e.items):e}function v(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,f.serializeValue)(e)}function b(e,t,a){if(a&&null!=e)return a(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??v(e,a);if(Array.isArray(t)){let s=g(t);if(null==e||"object"!=typeof e){let t=s.find(t=>t.value===e);return t&&null!=t.label?t.label:v(e,a)}if("value"in e){let t=s.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return v(e,a)}e.s(["flattenLeafItems",0,g,"hasNullItemLabel",0,function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(x(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1},"isGroupedItems",0,x,"resolveMultipleLabels",0,function(e,a,s){return e.reduce((e,r,n)=>(n>0&&e.push(", "),e.push((0,p.jsx)(t.Fragment,{children:b(r,a,s)},n)),e),[])},"resolveSelectedLabel",0,b,"stringifyAsLabel",0,v,"stringifyAsValue",0,function(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,f.serializeValue)(e.value):(0,f.serializeValue)(e)}],42191),e.s(["getDefaultLabelId",0,function(e){return null==e?void 0:`${e}-label`},"resolveAriaLabelledBy",0,function(e,t){return e??t}],50001);var y=e.i(52245);let k=t.forwardRef(function(e,t){let{className:a,render:s,orientation:r="horizontal",style:n,...i}=e;return(0,y.useRenderElement)("div",e,{state:{orientation:r},ref:t,props:[{role:"presentation"},i]})});e.s(["ListboxSeparator",0,k],18438)},79432,11147,e=>{"use strict";var t=e.i(56420);let a={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};a.node;let s=(0,t.default)(a);e.s(["Activity",0,s],79432);let r={name:"octagon-pause",size:24,node:[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],aliases:["pause-octagon"]};r.node;let n=(0,t.default)(r);e.s(["OctagonPause",0,n],11147)},71567,41220,e=>{"use strict";var t=e.i(56420);let a={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};a.node;let s=(0,t.default)(a);e.s(["Bot",0,s],71567);let r={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"}]]};r.node;let n=(0,t.default)(r);e.s(["Server",0,n],41220)},92150,e=>{"use strict";var t=e.i(56420);let a={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};a.node;let s=(0,t.default)(a);e.s(["Boxes",0,s],92150)},16327,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronDown",0,s],16327)},24071,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronLeft",0,s],24071)},67927,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronRight",0,s],67927)},19002,e=>{"use strict";var t=e.i(56420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let s=(0,t.default)(a);e.s(["CirclePause",0,s],19002)},8734,e=>{"use strict";var t=e.i(56420);let a={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};a.node;let s=(0,t.default)(a);e.s(["Copy",0,s],8734)},72382,e=>{"use strict";var t=e.i(56420);let a={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};a.node;let s=(0,t.default)(a);e.s(["Eye",0,s],72382)},31458,e=>{"use strict";var t=e.i(56420);let a={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};a.node;let s=(0,t.default)(a);e.s(["Flag",0,s],31458)},69309,e=>{"use strict";var t=e.i(56420);let a={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};a.node;let s=(0,t.default)(a);e.s(["Plug",0,s],69309)},77071,e=>{"use strict";var t=e.i(56420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let s=(0,t.default)(a);e.s(["Plus",0,s],77071)},15331,e=>{"use strict";var t=e.i(56420);let a={name:"radio",size:24,node:[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};a.node;let s=(0,t.default)(a);e.s(["Radio",0,s],15331)},66595,e=>{"use strict";var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let s=(0,t.default)(a);e.s(["Search",0,s],66595)},30274,e=>{"use strict";var t=e.i(56420);let a={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};a.node;let s=(0,t.default)(a);e.s(["Send",0,s],30274)},19759,e=>{"use strict";var t=e.i(56420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let s=(0,t.default)(a);e.s(["SquarePen",0,s],19759)},83035,e=>{"use strict";var t=e.i(56420);let a={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};a.node;let s=(0,t.default)(a);e.s(["SquareTerminal",0,s],83035)},80799,e=>{"use strict";var t=e.i(56420);let a={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};a.node;let s=(0,t.default)(a);e.s(["Tag",0,s],80799)},68401,e=>{"use strict";var t=e.i(56420);let a={name:"tags",size:24,node:[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]]};a.node;let s=(0,t.default)(a);e.s(["Tags",0,s],68401)},94831,e=>{"use strict";var t=e.i(56420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let s=(0,t.default)(a);e.s(["Unplug",0,s],94831)},36651,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Kbd",0,function({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...s})}])},91727,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:s,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:s,className:(0,a.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Skeleton",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...s})}])},75867,e=>{"use strict";var t=e.i(43476);e.s([],24305),e.i(24305);var a=e.i(71645),s=e.i(51437),r=e.i(28918),n=e.i(46376),i=e.i(2077),l=e.i(56789),o=e.i(52245),d=e.i(88015),u=e.i(40886),c=e.i(33332);let h=a.createContext(void 0),m={...e.i(75812).fieldValidityMapping,checked:e=>e?{"data-checked":""}:{"data-unchecked":""}};var f=e.i(64350),p=e.i(69690),x=e.i(81104),g=e.i(84708),v=e.i(47778),b=e.i(31421),y=e.i(38489),k=e.i(75606),j=e.i(56434),w=e.i(6039);let N=a.forwardRef(function(e,c){let{checked:N,className:S,defaultChecked:z,"aria-labelledby":C,form:M,id:R,inputRef:T,name:L,nativeButton:A=!1,onCheckedChange:q,readOnly:O=!1,required:E=!1,disabled:I=!1,render:V,uncheckedValue:$,value:P,style:B,...D}=e,{clearErrors:K}=(0,g.useFormContext)(),{state:F,setTouched:H,setDirty:_,validityData:W,setFilled:U,setFocused:J,validationMode:G,disabled:Z,name:Q,validation:Y}=(0,p.useFieldRootContext)(),{labelId:X}=(0,v.useLabelableContext)(),ee=Z||I,et=Q??L,ea=a.useRef(null),es=(0,r.useMergedRefs)(ea,T,Y.inputRef),er=a.useRef(null),en=(0,d.useBaseUiId)(),ei=(0,y.useLabelableId)({id:R}),el=A?void 0:ei,[eo,ed]=(0,s.useControlled)({controlled:N,default:!!z,name:"Switch",state:"checked"});(0,x.useRegisterFieldControl)(er,en,eo,void 0,!ee,L),(0,n.useIsoLayoutEffect)(()=>{U(eo)},[eo,U]),(0,w.useValueChanged)(eo,()=>{K(et),_(eo!==W.initialValue),Y.change(eo)});let{getButtonProps:eu,buttonRef:ec}=(0,u.useButton)({disabled:ee,native:A}),eh=(0,b.useAriaLabelledBy)(C,X,ea,!A,el),em={...Y.getValidationProps(ee),checked:eo,disabled:ee,form:M,id:el,name:et,required:E,style:et?i.visuallyHiddenInput:i.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:es,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(O)return void e.preventDefault();let t=e.currentTarget.checked,a=(0,k.createChangeEventDetails)(j.REASONS.none,e.nativeEvent);q?.(t,a),a.isCanceled||ed(t)},onClick(e){e.stopPropagation()},onFocus(){er.current?.focus()},...void 0!==P?{value:P}:l.EMPTY_OBJECT},ef=a.useMemo(()=>({...F,checked:eo,disabled:ee,readOnly:O,required:E}),[F,eo,ee,O,E]),ep=(0,o.useRenderElement)("span",e,{state:ef,ref:[c,er,ec],props:[{id:A?ei:en,role:"switch","aria-checked":eo,"aria-readonly":O||void 0,"aria-required":E||void 0,"aria-labelledby":eh,onFocus(){ee||J(!0)},onBlur(){let e=ea.current;e&&!ee&&(H(!0),J(!1),"onBlur"===G&&Y.commit(e.checked))},onClick(e){if(O||ee)return;e.preventDefault();let t=ea.current;t&&(0,f.dispatchClickWithModifiers)(t,e)}},D,eu,e=>Y.getValidationProps(ee,e)],stateAttributesMapping:m});return(0,t.jsxs)(h.Provider,{value:ef,children:[ep,!eo&&et&&void 0!==$&&(0,t.jsx)("input",{type:"hidden",form:M,name:et,value:$,disabled:ee}),(0,t.jsx)("input",{...em,suppressHydrationWarning:!0})]})}),S=a.forwardRef(function(e,t){let{render:s,className:r,style:n,...i}=e,l=function(){let e=a.useContext(h);if(void 0===e)throw Error((0,c.default)(63));return e}();return(0,o.useRenderElement)("span",e,{state:l,ref:t,stateAttributesMapping:m,props:i})});e.s(["Root",0,N,"Thumb",0,S],50994);var z=e.i(50994),z=z,C=e.i(90063);e.s(["Switch",0,function({className:e,...a}){return(0,t.jsx)(z.Root,{"data-slot":"switch",className:(0,C.classNames)("peer inline-flex h-5 w-8.5 shrink-0 items-center rounded-full border border-transparent bg-input p-0.5 transition-colors duration-(--duration-fast) outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-checked:bg-primary data-disabled:opacity-45",e),...a,children:(0,t.jsx)(z.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block size-4 rounded-full bg-card shadow-sm transition-transform duration-(--duration-fast) data-checked:translate-x-3.5"})})}],75867)},14732,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let s={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};s.node;let r=(0,a.default)(s),n={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};n.node;let i=(0,a.default)(n);var l=e.i(63707),o=e.i(90063);function d({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,o.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...a})}e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto rounded-lg border border-border bg-card shadow-sm",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,o.classNames)("w-full caption-bottom text-body",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,o.classNames)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,o.classNames)("px-4 align-middle",e),...a})},"TableHead",0,d,"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,o.classNames)("bg-muted [&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,o.classNames)("h-(--size-row) border-b border-border transition-colors duration-(--duration-fast) hover:bg-muted has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring data-new:animate-highlight [thead_&]:h-(--size-row-header) [thead_&]:hover:bg-transparent",e),...a})},"TableSortHead",0,function({direction:e,onSort:a,children:s,className:n,...u}){let c="ascending"===e?i:"descending"===e?r:l.ChevronsUpDown;return(0,t.jsx)(d,{"aria-sort":e??"none",className:(0,o.classNames)("px-2",n),...u,children:(0,t.jsxs)("button",{type:"button",onClick:a,className:"inline-flex h-7 items-center gap-1 rounded-sm px-2 font-medium hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-sorted:text-foreground","data-sorted":null===e?void 0:"",children:[s,(0,t.jsx)(c,{"aria-hidden":!0,className:(0,o.classNames)("size-3.5 shrink-0",null===e?"opacity-50":void 0)})]})})}],14732)},67874,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["EmptyState",0,function({title:e,description:s,icon:r,action:n,variant:i="page",className:l}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,s?(0,t.jsxs)(t.Fragment,{children:[" ",s]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),s?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:s}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},62687,e=>{"use strict";var t=e.i(43476),a=e.i(22016),s=e.i(90063);e.s(["FleetSegments",0,function({active:e,needsCrewCount:r}){let n=e=>(0,s.classNames)("flex h-(--size-control-touch) grow items-center justify-center gap-1.5 rounded-md text-body-touch font-medium",e?"bg-card text-foreground shadow-sm":"text-muted-foreground");return(0,t.jsxs)("nav",{"aria-label":"Fleet views",className:"flex gap-0.5 rounded-lg border border-border bg-muted p-0.5 sm:hidden","data-testid":"fleet-segments",children:[(0,t.jsx)(a.default,{href:"/","aria-current":"ships"===e?"page":void 0,className:n("ships"===e),"data-testid":"fleet-segment-ships",children:"Ships"}),(0,t.jsxs)(a.default,{href:"/needs-crew","aria-current":"needs-crew"===e?"page":void 0,className:n("needs-crew"===e),"data-testid":"fleet-segment-needs-crew",children:["Needs crew",void 0===r||0===r?null:(0,t.jsx)("span",{className:"text-micro tabular-nums",children:r})]})]})}])},95960,e=>{"use strict";var t=e.i(43476),a=e.i(92150),s=e.i(49287),r=e.i(86875),n=e.i(56420);let i={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};i.node;let l=(0,n.default)(i);var o=e.i(63676),d=e.i(90063),u=e.i(80581);let c={"trierarch-plugin":r.ShipWheel,squadrons:a.Boxes,ship:s.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:a,testId:s,className:r,trailing:n,meaning:i}){let l="none"===e.mark?null:c[e.mark],h=`${e.key}=${e.value}`,m=void 0===i?(0,u.chipTitleOf)(e):`${(0,u.chipTitleOf)(e)}. ${i}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":s,title:m,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,r),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})]}),n,void 0===a?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:a,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(o.X,{"aria-hidden":!0})})]})}],95960)},77435,e=>{"use strict";var t=e.i(43476),a=e.i(71028);e.s(["LimitNotice",0,function({title:e,description:s,accountUrl:r,testId:n}){return(0,t.jsxs)("div",{role:"status","data-testid":n,className:"flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",children:[(0,t.jsx)(a.Gauge,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),(0,t.jsx)("p",{className:"text-meta text-foreground",children:s}),void 0===r?null:(0,t.jsx)("a",{href:r,className:"self-start text-meta font-medium text-tone-attention-fg underline underline-offset-2","data-testid":void 0===n?void 0:`${n}-view`,children:"View limits"})]})]})}])},88393,e=>{"use strict";var t=e.i(43476),a=e.i(90063),s=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(s.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(s.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},63481,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let s={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};s.node;let r=(0,a.default)(s);var n=e.i(71567);let i={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};i.node;let l=(0,a.default)(i),o={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};o.node;let d=(0,a.default)(o),u={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"}]]};u.node;let c=(0,a.default)(u),h={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};h.node;let m=(0,a.default)(h);var f=e.i(41220),p=e.i(83035),x=e.i(94831),g=e.i(90063),v=e.i(66616),b=e.i(40798);let y={DEVICE:d,CLOUD:l,SERVER:f.Server,OTHER:c},k={coding:p.SquareTerminal,chat:m,bot:n.Bot,console:r},j={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:s=null,isCompact:r=!1,size:n="md",className:i}){let l=(0,g.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",j[n],i);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(x.Unplug,{"aria-hidden":!0}),"No session"]});let o=y[e],d=(0,b.locationKindWord)(e),u=null===a?d:`${d} \xb7 ${a}`;if(null!==s){let e=(0,v.harnessKind)(s),r=void 0===e?void 0:k[e],n=(0,v.harnessWord)(s);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===a?`${n} \xb7 ${d}`:`${n} \xb7 ${d}: ${a}`,children:[void 0===r?null:(0,t.jsx)(r,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:n}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:d}),null===a?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",a]})]})}return r?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:u,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[d,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:a??d})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[d,null===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:a})]})]})]})}],63481)},81830,e=>{"use strict";var t=e.i(43476),a=e.i(79432),s=e.i(19002),r=e.i(11147),n=e.i(90063),i=e.i(49635),l=e.i(93361);let o={working:a.Activity,blocked:r.OctagonPause,idle:s.CirclePause},d={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};e.s(["ReportLine",0,function({report:e,now:a,variant:s,isTimeInTitle:r=!1,testId:u}){let c="full"===s,h=(0,n.classNames)("flex min-w-0 items-center gap-1.5",c?"text-body":"text-meta");if(null===e)return(0,t.jsx)("span",{"data-testid":u,"data-state":"none",className:(0,n.classNames)(h,"text-muted-foreground"),children:"No report yet"});let m=o[e.state],f=d[l.REPORT_TONES[e.state]],p=new Date(e.reportedAt);return(0,t.jsxs)("span",{"data-testid":u,"data-state":e.state,title:r?`${(0,l.reportText)(e)} \xb7 ${(0,l.reportedWhen)(p,a)}`:(0,l.reportText)(e),className:h,children:[(0,t.jsx)(m,{"aria-hidden":!0,className:(0,n.classNames)("size-(--size-icon-sm) shrink-0",f)}),(0,t.jsx)("span",{className:(0,n.classNames)("shrink-0 font-medium",f),children:l.REPORT_STATE_WORDS[e.state]}),null===e.note?null:(0,t.jsx)("span",{className:"min-w-0 truncate text-foreground",children:e.note}),r?null:(0,t.jsx)("time",{dateTime:e.reportedAt,title:(0,i.fullDateTime)(p),className:"shrink-0 text-muted-foreground tabular-nums",children:c?`\xb7 ${(0,l.reportedWhen)(p,a)}`:(0,l.reportAge)(p,a)})]})}])},39448,e=>{"use strict";var t=e.i(43476),a=e.i(25913),s=e.i(22016),r=e.i(90063);let n=(0,a.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:a,size:i,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:u}){let c=d?(0,t.jsx)(s.default,{href:d,className:(0,r.classNames)(n({size:i}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:n({size:i}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,r.classNames)("inline-flex min-w-0 items-baseline gap-1.5",u),children:[c,o?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,l&&!o?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),a.slice(-4)]}):null]})}])},1935,e=>{"use strict";var t=e.i(43476),a=e.i(60011),s=e.i(22016),r=e.i(90063);e.s(["SquadronTag",0,function({squadronId:e,role:n,size:i="md",className:l}){return(0,t.jsxs)(s.default,{href:`/squadrons/${e}`,"data-slot":"squadron-tag",className:(0,r.classNames)("inline-flex max-w-full items-center gap-1 rounded-sm bg-secondary px-1.5 text-secondary-foreground hover:underline [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0","sm"===i?"h-5.5 text-meta":"h-6 text-body",l),children:[(0,t.jsx)(a.Shapes,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:e}),void 0!==n&&(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:["· ",n]})]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),a=e.i(67927),s=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),l=e.i(36651),o=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function u({state:e,className:a}){let{label:s,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),s]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:c,onSearch:h}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(a.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(u,{state:d}),h?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(s.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,c?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:c,children:"Compose"}):null]})]})}],77880);var c=e.i(24071),h=e.i(57957);e.s(["TopBar",0,function({title:e,live:a,actions:r,back:l,account:o,onSearch:d}){let m=d&&!l?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(c.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(u,{state:a}),r||m||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(s.Search,{"aria-hidden":!0})}):null,r,o&&!l?(0,t.jsx)(h.AccountMenuSheet,{...o}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),a=e.i(19759),s=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:l,primaryAction:o,toolbar:d,live:u,onCompose:c,onSearch:h,account:m,banner:f,children:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:u,onCompose:c,onSearch:h}),f,(0,t.jsx)(n.TopBar,{title:e,live:u,account:m,onSearch:h,actions:c?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:c,children:(0,t.jsx)(a.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),l]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,p]})]})}])},8041,e=>{"use strict";var t=e.i(14695);function a(e,t){for(let a of t)e.includes(a)||e.push(a)}function s(e){return Object.fromEntries((e?.options??[]).flatMap(e=>{let t=e.defaultValue??e.values[0];return void 0===t?[]:[[e.name,t]]}))}function r(e){let[t]=e?.repositories??[];if(void 0!==t)return{kind:"worktree",repository:t};let[a]=e?.folders??[];return void 0===a?void 0:{kind:"folder",name:a}}function n(e){let[t]=e;return{harness:t?.harness??"",workspace:r(t),options:s(t),firstPrompt:"",squadron:"",machineLabels:[]}}let i=new TextEncoder;function l(e){return i.encode(e).byteLength}function o(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,o,"defaultValues",0,n,"offersOf",0,function(e){let s=[];for(let r of e)if(!r.isSilent&&null!==r.details)for(let e of r.details.harnesses){let n=s.find(t=>t.harness===e.harness);for(let i of(void 0===n&&(n={harness:e.harness,repositories:[],folders:[],options:[]},s.push(n)),a(n.repositories,r.details.workspaces.repositories),a(n.folders,r.details.workspaces.folders),(0,t.harnessOptions)(e.options))){let e=n.options.find(e=>e.name===i.name);void 0===e?n.options.push({...i,values:[...i.values]}):(a(e.values,i.values),e.defaultValue??=i.defaultValue)}}return s},"promptBytes",0,l,"settingsOf",0,function(e){if(""!==e.harness&&void 0!==e.workspace)return{harness:e.harness,workspace:e.workspace,options:e.options,...""===e.firstPrompt?{}:{firstPrompt:e.firstPrompt},...""===e.squadron?{}:{squadron:e.squadron},...0===e.machineLabels.length?{}:{machineLabels:e.machineLabels}}},"settingsRows",0,function(e){if(null==e)return;let{harness:t,workspace:a,options:s,firstPrompt:r,squadron:n}=e;return[{label:"Harness",value:t??"Trierarch default"},"worktree"===a.kind?{label:"Workspace",value:a.repository,meta:"New worktree"}:{label:"Workspace",value:a.name,meta:"Folder, as it is"},...Object.entries(s).map(([e,t])=>({label:e,value:"string"==typeof t?t:JSON.stringify(t),isMono:!0})),{label:"First prompt",value:void 0===r?null:o(l(r))},{label:"Squadron",value:n??null,isMono:!0}]},"valuesOf",0,function(e,t){if(null==e)return n(t);let{harness:a,workspace:s,options:r,firstPrompt:i,squadron:l,machineLabels:o}=e;return{harness:a??n(t).harness,workspace:"worktree"===s.kind?{kind:"worktree",repository:s.repository}:{kind:"folder",name:s.name},options:Object.fromEntries(Object.entries(r).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:i??"",squadron:l??"",machineLabels:[...o??[]]}},"withHarness",0,function(e,t){let{harness:a,offers:n}=t,i=n.find(e=>e.harness===a),l=e.workspace,o=void 0!==l&&("worktree"===l.kind?i?.repositories.includes(l.repository)??!1:i?.folders.includes(l.name)??!1);return{...e,harness:a,workspace:o?l:r(i),options:s(i)}}])},66616,e=>{"use strict";var t=e.i(49635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function s(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":s(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let s=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===s?"just now":s}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,s])},18423,e=>{"use strict";var t=e.i(12598),a=e.i(5861),s=e.i(71645),r=e.i(42454),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),u=(0,t.useQueryClient)(),[c,h]=(0,s.useState)(new Set),m=e=>{l(u,e)},f=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var a,s,n;if("resync"===t.kind)return void m(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(m(e.fleet.ship.queryKey({shipId:t})),m(e.fleet.shipTimeline.queryKey({shipId:t})),m(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.shipWay.pathKey()),m(e.fleet.overdue.queryKey()),m(e.fleet.message.queryKey({messageId:l.messageId})),m(e.fleet.inbox.pathKey()),m(r.QUESTIONS_KEY),m(e.fleet.noShipCanTake.queryKey())),a=l.type,d.has(a)&&m(e.fleet.needsAttention.queryKey()),s=l.type,o.has(s)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&m(e.fleet.declaredNetworkRules.queryKey()),n=l.type,!i.has(n))return;m(e.fleet.list.queryKey()),m(e.fleet.noShipCanTake.queryKey());let{shipId:u}=l;"ShipCommissioned"===l.type&&null!==u&&h(e=>new Set([...e,u]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(f.status),newShipIds:c,error:f.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},78608,e=>{"use strict";var t=e.i(80581);function a(e,t){return e.ships.find(e=>e.id===t.shipId)?.labels.map(e=>e.valueId)??[]}e.s(["machineLabelIdsOf",0,function(e){return[...e?.machineLabels??[]]},"machineLabelsInputOf",0,function(e,s){let{machines:r,shipLabelsMax:n}=s;return{groups:function(e,t){let s=t.map(t=>a(e,t)),r=[],n=[];for(let t of e.labels){let a=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:s.filter(t=>t.includes(e.id)).length})),i={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:a};(a.some(e=>e.shipCount>0)?r:n).push(i)}let i=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:r.toSorted(i)},{title:"On no machine yet",keys:n.toSorted(i)}].filter(e=>e.keys.length>0)}(e,r),max:n,chipsOf:a=>(0,t.pickedChips)(a,e),matchOf:t=>{var s;return{matching:(s={machines:r,valueIds:t}).machines.filter(t=>{let r=a(e,t);return s.valueIds.every(e=>r.includes(e))}).map(e=>e.name),total:s.machines.length}}}},"machineLabelsText",0,function(e){let t=e.map(e=>`${e.key}=${e.value}`);return t.length<=2?t.join(" and "):`${t.slice(0,-1).join(", ")} and ${t.at(-1)??""}`},"noMatchWords",0,function(e){return 1===e?{these:"this label",carries:"carries it"}:2===e?{these:"both",carries:"carries both"}:{these:"these labels",carries:"carries them all"}}])},9176,e=>{"use strict";var t=e.i(46806),a=e.i(86165),s=e.i(265);e.s(["usePluginShipIds",0,function(){let e=(0,a.useSquadronsSettings)(),r=(0,s.useTrierarchPluginSettings)(),n=(0,t.useNetworkingPluginSettings)();return new Set([e.data,r.data,n.data].flatMap(e=>{if(void 0===e||"none"===e.state)return[];let t=e.ship?.shipId??e.lastShipId;return null===t?[]:[t]}))}])},93361,e=>{"use strict";var t=e.i(49635);let a={working:"Working",blocked:"Blocked",idle:"Idle"};e.s(["REPORT_STATE_WORDS",0,a,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(e,a){let s=Math.max(0,a.getTime()-e.getTime());return s<6e4?`${String(Math.floor(s/1e3))} s`:s<36e5?`${String(Math.floor(s/6e4))} min`:s<864e5?`${String(Math.floor(s/36e5))} h`:(0,t.relativeTime)(e,a)},"reportDetailsJson",0,function(e){return JSON.stringify(e,null,2)},"reportDetailsLabel",0,function(e){return`JSON \xb7 ${String(e)} bytes`},"reportText",0,function(e){let t=a[e.state];return null===e.note?t:`${t}: ${e.note}`},"reportedWhen",0,function(e,a){let s=(0,t.relativeTime)(e,a);return`reported ${"Just now"===s?"just now":s}`}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31421,e=>{"use strict";var t=e.i(71645),a=e.i(46376),s=e.i(88015);e.s(["useAriaLabelledBy",0,function(e,r,n,i=!0,l){let[o,d]=t.useState(),u=(0,s.useBaseUiId)(l?`${l}-label`:void 0),c=e??r??o;return(0,a.useIsoLayoutEffect)(()=>{let t=e||r||!i?void 0:function(e,t){let a=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let a=e.id;if(a){let t=e.nextElementSibling;if(t&&t.htmlFor===a)return t}let s=e.labels;return s&&s[0]}(e);if(a)return!a.id&&t&&(a.id=t),a.id||void 0}(n.current,u);o!==t&&d(t)}),c}])},86698,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},13203,65858,84325,42191,50001,18438,e=>{"use strict";var t=e.i(71645);e.s(["useOnFirstRender",0,function(e){let a=t.useRef(!0);a.current&&(a.current=!1,e())}],13203);var a=e.i(29315),s=e.i(83977),r=e.i(46376),n=e.i(88940),i=e.i(90627),l=e.i(46420),o=e.i(56341);e.s(["useFloatingRootContext",0,function(e){let{open:t=!1,onOpenChange:d,elements:u={}}=e,c=(0,s.useId)(),h=null!=(0,l.useFloatingParentNodeId)(),m=(0,n.useRefWithInit)(()=>new o.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:d,referenceElement:u.reference??null,floatingElement:u.floating??null,triggerElements:new i.PopupTriggerMap,floatingId:c,syncOnly:!1,nested:h})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:c};void 0!==u.reference&&(e.referenceElement=u.reference,e.domReferenceElement=(0,a.isElement)(u.reference)?u.reference:null),void 0!==u.floating&&(e.floatingElement=u.floating),m.update(e)},[t,c,u.reference,u.floating,m]),m.context.onOpenChange=d,m.context.nested=h,m}],65858);let d=(e,t)=>Object.is(e,t);function u(e,t,a){return null==e||null==t?Object.is(e,t):a(e,t)}function c(e,t,a){return!!e&&e.some(e=>void 0!==e&&u(t,e,a))}function h(e,t,a){return e?e.findIndex(e=>void 0!==e&&u(e,t,a)):-1}function m(e,t,a,s){let r=s&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==d)return a=>c(e,a,t);let a=new Set(e);return a.delete(void 0),t=>a.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,a)):h(e,t,a);return -1===r?null:r}e.s(["compareItemEquality",0,u,"defaultItemEquality",0,d,"findItemIndex",0,h,"findSelectionIndex",0,m,"isSelectedValueDirty",0,function(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!function(e,t,a=Object.is){let{length:s}=e;if(s!==t.length)return!1;for(let r=0;r<s;r+=1)if(!a(e[r],t[r]))return!1;return!0}(e,t,(e,t)=>u(e,t,a)):e!==t},"removeItem",0,function(e,t,a){return e.filter(e=>!u(t,e,a))},"resolveSelectedIndex",0,function(e,t,a,s,r,n){return c(s,t,r)?null!=n&&e>n&&c(s,a[n],r)?n:e:e===n?m(a,s,r,!0):n},"selectedValueIncludes",0,c],84325);var f=e.i(86698),p=e.i(43476);function x(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function g(e){return x(e)?e.flatMap(e=>e.items):e}function v(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,f.serializeValue)(e)}function b(e,t,a){if(a&&null!=e)return a(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??v(e,a);if(Array.isArray(t)){let s=g(t);if(null==e||"object"!=typeof e){let t=s.find(t=>t.value===e);return t&&null!=t.label?t.label:v(e,a)}if("value"in e){let t=s.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return v(e,a)}e.s(["flattenLeafItems",0,g,"hasNullItemLabel",0,function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(x(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1},"isGroupedItems",0,x,"resolveMultipleLabels",0,function(e,a,s){return e.reduce((e,r,n)=>(n>0&&e.push(", "),e.push((0,p.jsx)(t.Fragment,{children:b(r,a,s)},n)),e),[])},"resolveSelectedLabel",0,b,"stringifyAsLabel",0,v,"stringifyAsValue",0,function(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,f.serializeValue)(e.value):(0,f.serializeValue)(e)}],42191),e.s(["getDefaultLabelId",0,function(e){return null==e?void 0:`${e}-label`},"resolveAriaLabelledBy",0,function(e,t){return e??t}],50001);var y=e.i(52245);let k=t.forwardRef(function(e,t){let{className:a,render:s,orientation:r="horizontal",style:n,...i}=e;return(0,y.useRenderElement)("div",e,{state:{orientation:r},ref:t,props:[{role:"presentation"},i]})});e.s(["ListboxSeparator",0,k],18438)},79432,11147,e=>{"use strict";var t=e.i(56420);let a={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};a.node;let s=(0,t.default)(a);e.s(["Activity",0,s],79432);let r={name:"octagon-pause",size:24,node:[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],aliases:["pause-octagon"]};r.node;let n=(0,t.default)(r);e.s(["OctagonPause",0,n],11147)},71567,41220,e=>{"use strict";var t=e.i(56420);let a={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};a.node;let s=(0,t.default)(a);e.s(["Bot",0,s],71567);let r={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"}]]};r.node;let n=(0,t.default)(r);e.s(["Server",0,n],41220)},92150,e=>{"use strict";var t=e.i(56420);let a={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};a.node;let s=(0,t.default)(a);e.s(["Boxes",0,s],92150)},16327,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronDown",0,s],16327)},24071,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronLeft",0,s],24071)},67927,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronRight",0,s],67927)},19002,e=>{"use strict";var t=e.i(56420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let s=(0,t.default)(a);e.s(["CirclePause",0,s],19002)},8734,e=>{"use strict";var t=e.i(56420);let a={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};a.node;let s=(0,t.default)(a);e.s(["Copy",0,s],8734)},72382,e=>{"use strict";var t=e.i(56420);let a={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};a.node;let s=(0,t.default)(a);e.s(["Eye",0,s],72382)},31458,e=>{"use strict";var t=e.i(56420);let a={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};a.node;let s=(0,t.default)(a);e.s(["Flag",0,s],31458)},69309,e=>{"use strict";var t=e.i(56420);let a={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};a.node;let s=(0,t.default)(a);e.s(["Plug",0,s],69309)},77071,e=>{"use strict";var t=e.i(56420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let s=(0,t.default)(a);e.s(["Plus",0,s],77071)},15331,e=>{"use strict";var t=e.i(56420);let a={name:"radio",size:24,node:[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};a.node;let s=(0,t.default)(a);e.s(["Radio",0,s],15331)},66595,e=>{"use strict";var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let s=(0,t.default)(a);e.s(["Search",0,s],66595)},30274,e=>{"use strict";var t=e.i(56420);let a={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};a.node;let s=(0,t.default)(a);e.s(["Send",0,s],30274)},19759,e=>{"use strict";var t=e.i(56420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let s=(0,t.default)(a);e.s(["SquarePen",0,s],19759)},83035,e=>{"use strict";var t=e.i(56420);let a={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};a.node;let s=(0,t.default)(a);e.s(["SquareTerminal",0,s],83035)},80799,e=>{"use strict";var t=e.i(56420);let a={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};a.node;let s=(0,t.default)(a);e.s(["Tag",0,s],80799)},68401,e=>{"use strict";var t=e.i(56420);let a={name:"tags",size:24,node:[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]]};a.node;let s=(0,t.default)(a);e.s(["Tags",0,s],68401)},94831,e=>{"use strict";var t=e.i(56420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let s=(0,t.default)(a);e.s(["Unplug",0,s],94831)},36651,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Kbd",0,function({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...s})}])},91727,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:s,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:s,className:(0,a.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Skeleton",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...s})}])},75867,e=>{"use strict";var t=e.i(43476);e.s([],24305),e.i(24305);var a=e.i(71645),s=e.i(51437),r=e.i(28918),n=e.i(46376),i=e.i(2077),l=e.i(56789),o=e.i(52245),d=e.i(88015),u=e.i(40886),c=e.i(33332);let h=a.createContext(void 0),m={...e.i(75812).fieldValidityMapping,checked:e=>e?{"data-checked":""}:{"data-unchecked":""}};var f=e.i(64350),p=e.i(69690),x=e.i(81104),g=e.i(84708),v=e.i(47778),b=e.i(31421),y=e.i(38489),k=e.i(75606),j=e.i(56434),w=e.i(6039);let N=a.forwardRef(function(e,c){let{checked:N,className:S,defaultChecked:z,"aria-labelledby":C,form:M,id:R,inputRef:T,name:L,nativeButton:A=!1,onCheckedChange:q,readOnly:O=!1,required:E=!1,disabled:I=!1,render:V,uncheckedValue:$,value:P,style:D,...B}=e,{clearErrors:K}=(0,g.useFormContext)(),{state:F,setTouched:H,setDirty:_,validityData:W,setFilled:U,setFocused:J,validationMode:G,disabled:Z,name:Q,validation:Y}=(0,p.useFieldRootContext)(),{labelId:X}=(0,v.useLabelableContext)(),ee=Z||I,et=Q??L,ea=a.useRef(null),es=(0,r.useMergedRefs)(ea,T,Y.inputRef),er=a.useRef(null),en=(0,d.useBaseUiId)(),ei=(0,y.useLabelableId)({id:R}),el=A?void 0:ei,[eo,ed]=(0,s.useControlled)({controlled:N,default:!!z,name:"Switch",state:"checked"});(0,x.useRegisterFieldControl)(er,en,eo,void 0,!ee,L),(0,n.useIsoLayoutEffect)(()=>{U(eo)},[eo,U]),(0,w.useValueChanged)(eo,()=>{K(et),_(eo!==W.initialValue),Y.change(eo)});let{getButtonProps:eu,buttonRef:ec}=(0,u.useButton)({disabled:ee,native:A}),eh=(0,b.useAriaLabelledBy)(C,X,ea,!A,el),em={...Y.getValidationProps(ee),checked:eo,disabled:ee,form:M,id:el,name:et,required:E,style:et?i.visuallyHiddenInput:i.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:es,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(O)return void e.preventDefault();let t=e.currentTarget.checked,a=(0,k.createChangeEventDetails)(j.REASONS.none,e.nativeEvent);q?.(t,a),a.isCanceled||ed(t)},onClick(e){e.stopPropagation()},onFocus(){er.current?.focus()},...void 0!==P?{value:P}:l.EMPTY_OBJECT},ef=a.useMemo(()=>({...F,checked:eo,disabled:ee,readOnly:O,required:E}),[F,eo,ee,O,E]),ep=(0,o.useRenderElement)("span",e,{state:ef,ref:[c,er,ec],props:[{id:A?ei:en,role:"switch","aria-checked":eo,"aria-readonly":O||void 0,"aria-required":E||void 0,"aria-labelledby":eh,onFocus(){ee||J(!0)},onBlur(){let e=ea.current;e&&!ee&&(H(!0),J(!1),"onBlur"===G&&Y.commit(e.checked))},onClick(e){if(O||ee)return;e.preventDefault();let t=ea.current;t&&(0,f.dispatchClickWithModifiers)(t,e)}},B,eu,e=>Y.getValidationProps(ee,e)],stateAttributesMapping:m});return(0,t.jsxs)(h.Provider,{value:ef,children:[ep,!eo&&et&&void 0!==$&&(0,t.jsx)("input",{type:"hidden",form:M,name:et,value:$,disabled:ee}),(0,t.jsx)("input",{...em,suppressHydrationWarning:!0})]})}),S=a.forwardRef(function(e,t){let{render:s,className:r,style:n,...i}=e,l=function(){let e=a.useContext(h);if(void 0===e)throw Error((0,c.default)(63));return e}();return(0,o.useRenderElement)("span",e,{state:l,ref:t,stateAttributesMapping:m,props:i})});e.s(["Root",0,N,"Thumb",0,S],50994);var z=e.i(50994),z=z,C=e.i(90063);e.s(["Switch",0,function({className:e,...a}){return(0,t.jsx)(z.Root,{"data-slot":"switch",className:(0,C.classNames)("peer inline-flex h-5 w-8.5 shrink-0 items-center rounded-full border border-transparent bg-input p-0.5 transition-colors duration-(--duration-fast) outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-checked:bg-primary data-disabled:opacity-45",e),...a,children:(0,t.jsx)(z.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block size-4 rounded-full bg-card shadow-sm transition-transform duration-(--duration-fast) data-checked:translate-x-3.5"})})}],75867)},14732,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let s={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};s.node;let r=(0,a.default)(s),n={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};n.node;let i=(0,a.default)(n);var l=e.i(63707),o=e.i(90063);function d({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,o.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...a})}e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto rounded-lg border border-border bg-card shadow-sm",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,o.classNames)("w-full caption-bottom text-body",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,o.classNames)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,o.classNames)("px-4 align-middle",e),...a})},"TableHead",0,d,"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,o.classNames)("bg-muted [&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,o.classNames)("h-(--size-row) border-b border-border transition-colors duration-(--duration-fast) hover:bg-muted has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring data-new:animate-highlight [thead_&]:h-(--size-row-header) [thead_&]:hover:bg-transparent",e),...a})},"TableSortHead",0,function({direction:e,onSort:a,children:s,className:n,...u}){let c="ascending"===e?i:"descending"===e?r:l.ChevronsUpDown;return(0,t.jsx)(d,{"aria-sort":e??"none",className:(0,o.classNames)("px-2",n),...u,children:(0,t.jsxs)("button",{type:"button",onClick:a,className:"inline-flex h-7 items-center gap-1 rounded-sm px-2 font-medium hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-sorted:text-foreground","data-sorted":null===e?void 0:"",children:[s,(0,t.jsx)(c,{"aria-hidden":!0,className:(0,o.classNames)("size-3.5 shrink-0",null===e?"opacity-50":void 0)})]})})}],14732)},67874,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["EmptyState",0,function({title:e,description:s,icon:r,action:n,variant:i="page",className:l}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,s?(0,t.jsxs)(t.Fragment,{children:[" ",s]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),s?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:s}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},62687,e=>{"use strict";var t=e.i(43476),a=e.i(22016),s=e.i(90063);e.s(["FleetSegments",0,function({active:e,needsCrewCount:r}){let n=e=>(0,s.classNames)("flex h-(--size-control-touch) grow items-center justify-center gap-1.5 rounded-md text-body-touch font-medium",e?"bg-card text-foreground shadow-sm":"text-muted-foreground");return(0,t.jsxs)("nav",{"aria-label":"Fleet views",className:"flex gap-0.5 rounded-lg border border-border bg-muted p-0.5 sm:hidden","data-testid":"fleet-segments",children:[(0,t.jsx)(a.default,{href:"/","aria-current":"ships"===e?"page":void 0,className:n("ships"===e),"data-testid":"fleet-segment-ships",children:"Ships"}),(0,t.jsxs)(a.default,{href:"/needs-crew","aria-current":"needs-crew"===e?"page":void 0,className:n("needs-crew"===e),"data-testid":"fleet-segment-needs-crew",children:["Needs crew",void 0===r||0===r?null:(0,t.jsx)("span",{className:"text-micro tabular-nums",children:r})]})]})}])},95960,e=>{"use strict";var t=e.i(43476),a=e.i(92150),s=e.i(49287),r=e.i(86875),n=e.i(56420);let i={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};i.node;let l=(0,n.default)(i);var o=e.i(63676),d=e.i(90063),u=e.i(80581);let c={"trierarch-plugin":r.ShipWheel,squadrons:a.Boxes,ship:s.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:a,testId:s,className:r,trailing:n,meaning:i}){let l="none"===e.mark?null:c[e.mark],h=`${e.key}=${e.value}`,m=void 0===i?(0,u.chipTitleOf)(e):`${(0,u.chipTitleOf)(e)}. ${i}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":s,title:m,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,r),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})]}),n,void 0===a?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:a,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(o.X,{"aria-hidden":!0})})]})}],95960)},77435,e=>{"use strict";var t=e.i(43476),a=e.i(71028);e.s(["LimitNotice",0,function({title:e,description:s,accountUrl:r,testId:n}){return(0,t.jsxs)("div",{role:"status","data-testid":n,className:"flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",children:[(0,t.jsx)(a.Gauge,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),(0,t.jsx)("p",{className:"text-meta text-foreground",children:s}),void 0===r?null:(0,t.jsx)("a",{href:r,className:"self-start text-meta font-medium text-tone-attention-fg underline underline-offset-2","data-testid":void 0===n?void 0:`${n}-view`,children:"View limits"})]})]})}])},88393,e=>{"use strict";var t=e.i(43476),a=e.i(90063),s=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(s.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(s.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},63481,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let s={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};s.node;let r=(0,a.default)(s);var n=e.i(71567);let i={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};i.node;let l=(0,a.default)(i),o={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};o.node;let d=(0,a.default)(o),u={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"}]]};u.node;let c=(0,a.default)(u),h={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};h.node;let m=(0,a.default)(h);var f=e.i(41220),p=e.i(83035),x=e.i(94831),g=e.i(90063),v=e.i(66616),b=e.i(40798);let y={DEVICE:d,CLOUD:l,SERVER:f.Server,OTHER:c},k={coding:p.SquareTerminal,chat:m,bot:n.Bot,console:r},j={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:s=null,isCompact:r=!1,size:n="md",className:i}){let l=(0,g.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",j[n],i);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(x.Unplug,{"aria-hidden":!0}),"No session"]});let o=y[e],d=(0,b.locationKindWord)(e),u=null===a?d:`${d} \xb7 ${a}`;if(null!==s){let e=(0,v.harnessKind)(s),r=void 0===e?void 0:k[e],n=(0,v.harnessWord)(s);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===a?`${n} \xb7 ${d}`:`${n} \xb7 ${d}: ${a}`,children:[void 0===r?null:(0,t.jsx)(r,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:n}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:d}),null===a?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",a]})]})}return r?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:u,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[d,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:a??d})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[d,null===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:a})]})]})]})}],63481)},81830,e=>{"use strict";var t=e.i(43476),a=e.i(79432),s=e.i(19002),r=e.i(11147),n=e.i(90063),i=e.i(49635),l=e.i(93361);let o={working:a.Activity,blocked:r.OctagonPause,idle:s.CirclePause},d={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};e.s(["ReportLine",0,function({report:e,now:a,variant:s,isTimeInTitle:r=!1,testId:u}){let c="full"===s,h=(0,n.classNames)("flex min-w-0 items-center gap-1.5",c?"text-body":"text-meta");if(null===e)return(0,t.jsx)("span",{"data-testid":u,"data-state":"none",className:(0,n.classNames)(h,"text-muted-foreground"),children:"No report yet"});let m=o[e.state],f=d[l.REPORT_TONES[e.state]],p=new Date(e.reportedAt);return(0,t.jsxs)("span",{"data-testid":u,"data-state":e.state,title:r?`${(0,l.reportText)(e)} \xb7 ${(0,l.reportedWhen)(p,a)}`:(0,l.reportText)(e),className:h,children:[(0,t.jsx)(m,{"aria-hidden":!0,className:(0,n.classNames)("size-(--size-icon-sm) shrink-0",f)}),(0,t.jsx)("span",{className:(0,n.classNames)("shrink-0 font-medium",f),children:l.REPORT_STATE_WORDS[e.state]}),null===e.note?null:(0,t.jsx)("span",{className:"min-w-0 truncate text-foreground",children:e.note}),r?null:(0,t.jsx)("time",{dateTime:e.reportedAt,title:(0,i.fullDateTime)(p),className:"shrink-0 text-muted-foreground tabular-nums",children:c?`\xb7 ${(0,l.reportedWhen)(p,a)}`:(0,l.reportAge)(p,a)})]})}])},39448,e=>{"use strict";var t=e.i(43476),a=e.i(25913),s=e.i(22016),r=e.i(90063);let n=(0,a.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:a,size:i,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:u}){let c=d?(0,t.jsx)(s.default,{href:d,className:(0,r.classNames)(n({size:i}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:n({size:i}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,r.classNames)("inline-flex min-w-0 items-baseline gap-1.5",u),children:[c,o?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,l&&!o?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),a.slice(-4)]}):null]})}])},1935,e=>{"use strict";var t=e.i(43476),a=e.i(60011),s=e.i(22016),r=e.i(90063);e.s(["SquadronTag",0,function({squadronId:e,role:n,size:i="md",className:l}){return(0,t.jsxs)(s.default,{href:`/squadrons/${e}`,"data-slot":"squadron-tag",className:(0,r.classNames)("inline-flex max-w-full items-center gap-1 rounded-sm bg-secondary px-1.5 text-secondary-foreground hover:underline [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0","sm"===i?"h-5.5 text-meta":"h-6 text-body",l),children:[(0,t.jsx)(a.Shapes,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:e}),void 0!==n&&(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:["· ",n]})]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),a=e.i(67927),s=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),l=e.i(36651),o=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function u({state:e,className:a}){let{label:s,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),s]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:c,onSearch:h}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(a.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(u,{state:d}),h?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(s.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,c?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:c,children:"Compose"}):null]})]})}],77880);var c=e.i(24071),h=e.i(57957);e.s(["TopBar",0,function({title:e,live:a,actions:r,back:l,account:o,onSearch:d}){let m=d&&!l?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(c.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(u,{state:a}),r||m||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(s.Search,{"aria-hidden":!0})}):null,r,o&&!l?(0,t.jsx)(h.AccountMenuSheet,{...o}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),a=e.i(19759),s=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:l,primaryAction:o,toolbar:d,live:u,onCompose:c,onSearch:h,account:m,banner:f,children:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:u,onCompose:c,onSearch:h}),f,(0,t.jsx)(n.TopBar,{title:e,live:u,account:m,onSearch:h,actions:c?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:c,children:(0,t.jsx)(a.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),l]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,p]})]})}])},8041,e=>{"use strict";var t=e.i(14695);function a(e,t){for(let a of t)e.includes(a)||e.push(a)}function s(e){return Object.fromEntries((e?.options??[]).flatMap(e=>{let t=e.defaultValue??e.values[0];return void 0===t?[]:[[e.name,t]]}))}function r(e){let[t]=e?.repositories??[];if(void 0!==t)return{kind:"worktree",repository:t};let[a]=e?.folders??[];return void 0===a?void 0:{kind:"folder",name:a}}function n(e){let[t]=e;return{harness:t?.harness??"",workspace:r(t),options:s(t),firstPrompt:"",squadron:"",machineLabels:[]}}let i=new TextEncoder;function l(e){return i.encode(e).byteLength}function o(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,o,"defaultValues",0,n,"offersOf",0,function(e){let s=[];for(let r of e)if(!r.isSilent&&null!==r.details)for(let e of r.details.harnesses){let n=s.find(t=>t.harness===e.harness);for(let i of(void 0===n&&(n={harness:e.harness,repositories:[],folders:[],options:[]},s.push(n)),a(n.repositories,r.details.workspaces.repositories),a(n.folders,r.details.workspaces.folders),(0,t.harnessOptions)(e.options))){let e=n.options.find(e=>e.name===i.name);void 0===e?n.options.push({...i,values:[...i.values]}):(a(e.values,i.values),e.defaultValue??=i.defaultValue)}}return s},"promptBytes",0,l,"settingsOf",0,function(e){if(""!==e.harness&&void 0!==e.workspace)return{harness:e.harness,workspace:e.workspace,options:e.options,...""===e.firstPrompt?{}:{firstPrompt:e.firstPrompt},...""===e.squadron?{}:{squadron:e.squadron},...0===e.machineLabels.length?{}:{machineLabels:e.machineLabels}}},"settingsRows",0,function(e){if(null==e)return;let{harness:t,workspace:a,options:s,firstPrompt:r,squadron:n}=e;return[{label:"Harness",value:t??"Trierarch default"},"worktree"===a.kind?{label:"Workspace",value:a.repository,meta:"New worktree"}:{label:"Workspace",value:a.name,meta:"Folder, as it is"},...Object.entries(s).map(([e,t])=>({label:e,value:"string"==typeof t?t:JSON.stringify(t),isMono:!0})),{label:"First prompt",value:void 0===r?null:o(l(r))},{label:"Squadron",value:n??null,isMono:!0}]},"valuesOf",0,function(e,t){if(null==e)return n(t);let{harness:a,workspace:s,options:r,firstPrompt:i,squadron:l,machineLabels:o}=e;return{harness:a??n(t).harness,workspace:"worktree"===s.kind?{kind:"worktree",repository:s.repository}:{kind:"folder",name:s.name},options:Object.fromEntries(Object.entries(r).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:i??"",squadron:l??"",machineLabels:[...o??[]]}},"withHarness",0,function(e,t){let{harness:a,offers:n}=t,i=n.find(e=>e.harness===a),l=e.workspace,o=void 0!==l&&("worktree"===l.kind?i?.repositories.includes(l.repository)??!1:i?.folders.includes(l.name)??!1);return{...e,harness:a,workspace:o?l:r(i),options:s(i)}}])},66616,e=>{"use strict";var t=e.i(49635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function s(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":s(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let s=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===s?"just now":s}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,s])},18423,e=>{"use strict";var t=e.i(12598),a=e.i(5861),s=e.i(71645),r=e.i(42454),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),u=(0,t.useQueryClient)(),[c,h]=(0,s.useState)(new Set),m=e=>{l(u,e)},f=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var a,s,n;if("resync"===t.kind)return void m(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(m(e.fleet.ship.queryKey({shipId:t})),m(e.fleet.shipTimeline.queryKey({shipId:t})),m(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.shipWay.pathKey()),m(e.fleet.overdue.queryKey()),m(e.fleet.message.queryKey({messageId:l.messageId})),m(e.fleet.inbox.pathKey()),m(r.QUESTIONS_KEY),m(e.fleet.noShipCanTake.queryKey())),a=l.type,d.has(a)&&m(e.fleet.needsAttention.queryKey()),s=l.type,o.has(s)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&m(e.fleet.declaredNetworkRules.queryKey()),n=l.type,!i.has(n))return;m(e.fleet.list.queryKey()),m(e.fleet.noShipCanTake.queryKey());let{shipId:u}=l;"ShipCommissioned"===l.type&&null!==u&&h(e=>new Set([...e,u]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(f.status),newShipIds:c,error:f.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},78608,e=>{"use strict";var t=e.i(80581);function a(e,t){return e.ships.find(e=>e.id===t.shipId)?.labels.map(e=>e.valueId)??[]}e.s(["machineLabelIdsOf",0,function(e){return[...e?.machineLabels??[]]},"machineLabelsInputOf",0,function(e,s){let{machines:r,shipLabelsMax:n}=s;return{groups:function(e,t){let s=t.map(t=>a(e,t)),r=[],n=[];for(let t of e.labels){let a=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:s.filter(t=>t.includes(e.id)).length})),i={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:a};(a.some(e=>e.shipCount>0)?r:n).push(i)}let i=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:r.toSorted(i)},{title:"On no machine yet",keys:n.toSorted(i)}].filter(e=>e.keys.length>0)}(e,r),max:n,chipsOf:a=>(0,t.pickedChips)(a,e),matchOf:t=>{var s;return{matching:(s={machines:r,valueIds:t}).machines.filter(t=>{let r=a(e,t);return s.valueIds.every(e=>r.includes(e))}).map(e=>e.name),total:s.machines.length}}}},"machineLabelsText",0,function(e){let t=e.map(e=>`${e.key}=${e.value}`);return t.length<=2?t.join(" and "):`${t.slice(0,-1).join(", ")} and ${t.at(-1)??""}`},"noMatchWords",0,function(e){return 1===e?{these:"this label",carries:"carries it"}:2===e?{these:"both",carries:"carries both"}:{these:"these labels",carries:"carries them all"}}])},9176,e=>{"use strict";var t=e.i(46806),a=e.i(86165),s=e.i(265);e.s(["usePluginShipIds",0,function(){let e=(0,a.useSquadronsSettings)(),r=(0,s.useTrierarchPluginSettings)(),n=(0,t.useNetworkingPluginSettings)();return new Set([e.data,r.data,n.data].flatMap(e=>{if(void 0===e||"none"===e.state)return[];let t=e.ship?.shipId??e.lastShipId;return null===t?[]:[t]}))}])},93361,e=>{"use strict";var t=e.i(49635);let a={working:"Working",blocked:"Blocked",idle:"Idle"};e.s(["REPORT_STATE_WORDS",0,a,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(e,a){let s=Math.max(0,a.getTime()-e.getTime());return s<6e4?`${String(Math.floor(s/1e3))} s`:s<36e5?`${String(Math.floor(s/6e4))} min`:s<864e5?`${String(Math.floor(s/36e5))} h`:(0,t.relativeTime)(e,a)},"reportDetailsJson",0,function(e){return JSON.stringify(e,null,2)},"reportDetailsLabel",0,function(e){return`JSON \xb7 ${String(e)} bytes`},"reportText",0,function(e){let t=a[e.state];return null===e.note?t:`${t}: ${e.note}`},"reportedWhen",0,function(e,a){let s=(0,t.relativeTime)(e,a);return`reported ${"Just now"===s?"just now":s}`}])}]);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeolus-fleet/console",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "description": "The Aeolus console: see every ship, answer your agents and manage the fleet from any device.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -40,8 +40,8 @@
40
40
  "postpack": "rm LICENSE"
41
41
  },
42
42
  "devDependencies": {
43
- "@aeolus-fleet/common": "0.25.0",
44
- "@aeolus-fleet/core": "0.25.0",
43
+ "@aeolus-fleet/common": "0.25.2",
44
+ "@aeolus-fleet/core": "0.25.2",
45
45
  "@base-ui/react": "^1.8.0",
46
46
  "@storybook/addon-vitest": "^10.6.1",
47
47
  "@storybook/nextjs-vite": "^10.6.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeolus-fleet/console",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "description": "The Aeolus console: see every ship, answer your agents and manage the fleet from any device.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -40,8 +40,8 @@
40
40
  "postpack": "rm LICENSE"
41
41
  },
42
42
  "devDependencies": {
43
- "@aeolus-fleet/common": "0.25.0",
44
- "@aeolus-fleet/core": "0.25.0",
43
+ "@aeolus-fleet/common": "0.25.2",
44
+ "@aeolus-fleet/core": "0.25.2",
45
45
  "@base-ui/react": "^1.8.0",
46
46
  "@storybook/addon-vitest": "^10.6.1",
47
47
  "@storybook/nextjs-vite": "^10.6.1",