@aeolus-fleet/console 0.20.1 → 0.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/inbox/page.js.nft.json +1 -1
- package/.next/server/app/inbox/page_client-reference-manifest.js +1 -1
- package/.next/server/app/labels/page.js.nft.json +1 -1
- package/.next/server/app/labels/page_client-reference-manifest.js +1 -1
- package/.next/server/app/needs-attention/page.js.nft.json +1 -1
- package/.next/server/app/needs-attention/page_client-reference-manifest.js +1 -1
- package/.next/server/app/needs-crew/page.js.nft.json +1 -1
- package/.next/server/app/needs-crew/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/ships/[shipId]/page.js.nft.json +1 -1
- package/.next/server/app/ships/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
- package/.next/server/app/sign-in/failed/page_client-reference-manifest.js +1 -1
- package/.next/server/app/sign-in/page.js.nft.json +1 -1
- package/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/[squadronId]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/blueprints/[name]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/connection/route.js.nft.json +1 -1
- package/.next/server/app/squadrons/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/templates/[name]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/trierarch-plugin/connection/route.js.nft.json +1 -1
- package/.next/server/app/trierarchs/[shipId]/page.js.nft.json +1 -1
- package/.next/server/app/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/trierarchs/page.js.nft.json +1 -1
- package/.next/server/app/trierarchs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/version/route.js.nft.json +1 -1
- package/.next/server/chunks/_0h366h9._.js +1 -1
- package/.next/server/chunks/packages_console_lib_connect-plugin_ts_197hf-1._.js +1 -1
- package/.next/server/chunks/ssr/_0dogq79._.js +1 -1
- package/.next/server/chunks/ssr/_0s2b6hb._.js +1 -1
- package/.next/server/chunks/ssr/_0sko-kt._.js +1 -1
- package/.next/server/chunks/ssr/_0sv2xqb._.js +1 -1
- package/.next/server/chunks/ssr/_0wtj0e-._.js +1 -1
- package/.next/server/chunks/ssr/_0xc3etp._.js +1 -1
- package/.next/server/chunks/ssr/_0xvm1ng._.js +1 -1
- package/.next/server/chunks/ssr/_0ziovn_._.js +1 -1
- package/.next/server/chunks/ssr/_11cgy8n._.js +1 -1
- package/.next/server/chunks/ssr/_1442xyx._.js +1 -1
- package/.next/server/chunks/ssr/_17u4fan._.js +1 -1
- package/.next/server/chunks/ssr/_181kpys._.js +1 -1
- package/.next/server/chunks/ssr/_19e0e-9._.js +1 -1
- package/.next/server/chunks/ssr/_1ejhqt9._.js +1 -1
- package/.next/server/chunks/ssr/_1kv8ma5._.js +1 -1
- package/.next/server/chunks/ssr/_1ommvbv._.js +1 -1
- package/.next/server/chunks/ssr/_1on9mjs._.js +1 -1
- package/.next/server/chunks/ssr/_1oofkty._.js +1 -1
- package/.next/server/chunks/ssr/_1r6ce_7._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_0edevze._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_0y7h5dm._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_app_ships_[shipId]_page_tsx_0fudjay._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_app_trierarchs_[shipId]_page_tsx_1rqyoj3._.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{26dg2z_6kosr0.js → 0r8dost92fvd7.js} +1 -1
- package/.next/static/chunks/{3z61krti-vbu2.js → 108myfe5p_uik.js} +1 -1
- package/.next/static/chunks/{1bvfk_-_enrxp.js → 1dj9u_t1hus9k.js} +1 -1
- package/.next/static/chunks/{414186x82sxkk.js → 1jt80qxcc5_14.js} +1 -1
- package/.next/static/chunks/{28j4p-34f5axr.js → 1ntkufzth29k5.js} +1 -1
- package/.next/static/chunks/{3jsj5ozfio3me.js → 2c6e9e-s7rbf3.js} +1 -1
- package/.next/static/chunks/{1h0f7mfr5wxsj.js → 2ie6mvt-ssazt.js} +1 -1
- package/.next/static/chunks/{2wnrtdpkhbd_j.js → 2n90taswwrii-.js} +1 -1
- package/.next/static/chunks/{3splvoavlf-cc.js → 2yxtvf_jtfnbf.js} +5 -5
- package/.next/static/chunks/{2spn0c35v7c1b.js → 3plldogn92kay.js} +1 -1
- package/.next/static/chunks/3x1-acncumcu6.js +1 -0
- package/package.json +3 -3
- package/.next/static/chunks/1ct431l_sosvm.js +0 -1
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → 2RcnmMJXP55xfywa0IWOJ}/_buildManifest.js +0 -0
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → 2RcnmMJXP55xfywa0IWOJ}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → 2RcnmMJXP55xfywa0IWOJ}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[38688,67594,92175,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Activity",0,d],38688);let e={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"]};e.node;let f=(0,b.default)(e);a.s(["CirclePause",0,f],67594);let g={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"]};g.node;let h=(0,b.default)(g);a.s(["OctagonPause",0,h],92175)},63359,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["AppWindow",0,d],63359)},82260,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Bot",0,d],82260)},42955,a=>{"use strict";var b=a.i(64831);let c={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};c.node;let d=(0,b.default)(c);a.s(["Ellipsis",0,d],42955)},83138,a=>{"use strict";var b=a.i(64831);let c={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};c.node;let d=(0,b.default)(c);a.s(["FileText",0,d],83138)},25039,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Flag",0,d],25039)},26766,a=>{"use strict";var b=a.i(64831);let c={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};c.node;let d=(0,b.default)(c);a.s(["KeyRound",0,d],26766)},53783,a=>{"use strict";var b=a.i(64831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["SquareTerminal",0,d],53783)},25212,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Unplug",0,d],25212)},28339,a=>{"use strict";var b=a.i(64831);let c={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};c.node;let d=(0,b.default)(c);a.s(["UserMinus",0,d],28339)},85888,a=>{"use strict";var b=a.i(64831);let c={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};c.node;let d=(0,b.default)(c);a.s(["Users",0,d],85888)},82314,85650,a=>{"use strict";var b=a.i(87924),c=a.i(52562),d=a.i(64831);let e={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"}]]};e.node;let f=(0,d.default)(e);a.s(["Copy",0,f],85650);var g=a.i(72131),h=a.i(12068);a.s(["CopyButton",0,function({value:a,label:d,size:e="xs",isLabeled:i=!1,onCopied:j,onCopyFailed:k,className:l,"data-testid":m}){let[n,o]=(0,g.useState)(!1);async function p(){try{await navigator.clipboard.writeText(a)}catch{k?.();return}o(!0),j?.(),setTimeout(()=>{o(!1)},1500)}return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.Button,{variant:"ghost",size:e,isIconOnly:!i,"aria-label":d,title:i?void 0:d,icon:n?(0,b.jsx)(c.Check,{"aria-hidden":!0}):(0,b.jsx)(f,{"aria-hidden":!0}),className:l,"data-testid":m,onClick:()=>{p()},children:i?n?"Copied":"Copy":null}),(0,b.jsx)("span",{role:"status",className:"sr-only",children:n?"Copied.":""})]})}],82314)},71673,a=>{"use strict";var b=a.i(87924);a.s(["ConsequenceList",0,function({consequences:a}){return(0,b.jsx)("ul",{className:"flex flex-col gap-2 rounded-lg border border-border bg-muted p-3 text-meta text-foreground",children:a.map(({icon:a,text:c})=>(0,b.jsxs)("li",{className:"flex gap-2",children:[(0,b.jsx)(a,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,b.jsx)("span",{children:c})]},c))})}])},40108,a=>{"use strict";var b=a.i(87924),c=a.i(63359),d=a.i(82260),e=a.i(64831);let f={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"}]]};f.node;let g=(0,e.default)(f),h={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"}]]};h.node;let i=(0,e.default)(h),j={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"}]]};j.node;let k=(0,e.default)(j),l={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"}]]};l.node;let m=(0,e.default)(l),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 o=(0,e.default)(n);var p=a.i(53783),q=a.i(25212),r=a.i(80487),s=a.i(67042),t=a.i(29703);let u={DEVICE:i,CLOUD:g,SERVER:o,OTHER:k},v={coding:p.SquareTerminal,chat:m,bot:d.Bot,console:c.AppWindow},w={md:"text-body",sm:"text-meta"};a.s(["LocationTag",0,function({kind:a,description:c=null,harness:d=null,isCompact:e=!1,size:f="md",className:g}){let h=(0,r.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",w[f],g);if(null===a)return(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,children:[(0,b.jsx)(q.Unplug,{"aria-hidden":!0}),"No session"]});let i=u[a],j=(0,t.locationKindWord)(a),k=null===c?j:`${j} \xb7 ${c}`;if(null!==d){let a=(0,s.harnessKind)(d),e=void 0===a?void 0:v[a],f=(0,s.harnessWord)(d);return(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,title:null===c?`${f} \xb7 ${j}`:`${f} \xb7 ${j}: ${c}`,children:[void 0===e?null:(0,b.jsx)(e,{"aria-hidden":!0}),(0,b.jsx)("span",{className:"truncate text-foreground",children:f}),(0,b.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsx)("span",{className:"truncate",children:j}),null===c?null:(0,b.jsxs)("span",{className:"sr-only",children:[": ",c]})]})}return e?(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,title:k,children:[(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsxs)("span",{className:"sr-only",children:[j,": "]}),(0,b.jsx)("span",{className:"truncate text-foreground",children:c??j})]}):(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,children:[(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsxs)("span",{className:"truncate",children:[j,null===c?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,b.jsx)("span",{className:"sr-only",children:", "}),(0,b.jsx)("span",{className:"text-foreground",children:c})]})]})]})}],40108)},92717,a=>{"use strict";var b=a.i(87924),c=a.i(38688),d=a.i(67594),e=a.i(92175),f=a.i(80487),g=a.i(72872),h=a.i(45185);let i={working:c.Activity,blocked:e.OctagonPause,idle:d.CirclePause},j={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};a.s(["ReportLine",0,function({report:a,now:c,variant:d,isTimeInTitle:e=!1,testId:k}){let l="full"===d,m=(0,f.classNames)("flex min-w-0 items-center gap-1.5",l?"text-body":"text-meta");if(null===a)return(0,b.jsx)("span",{"data-testid":k,"data-state":"none",className:(0,f.classNames)(m,"text-muted-foreground"),children:"No report yet"});let n=i[a.state],o=j[h.REPORT_TONES[a.state]],p=new Date(a.reportedAt);return(0,b.jsxs)("span",{"data-testid":k,"data-state":a.state,title:e?`${(0,h.reportText)(a)} \xb7 ${(0,h.reportedWhen)(p,c)}`:(0,h.reportText)(a),className:m,children:[(0,b.jsx)(n,{"aria-hidden":!0,className:(0,f.classNames)("size-(--size-icon-sm) shrink-0",o)}),(0,b.jsx)("span",{className:(0,f.classNames)("shrink-0 font-medium",o),children:h.REPORT_STATE_WORDS[a.state]}),null===a.note?null:(0,b.jsx)("span",{className:"min-w-0 truncate text-foreground",children:a.note}),e?null:(0,b.jsx)("time",{dateTime:a.reportedAt,title:(0,g.fullDateTime)(p),className:"shrink-0 text-muted-foreground tabular-nums",children:l?`\xb7 ${(0,h.reportedWhen)(p,c)}`:(0,h.reportAge)(p,c)})]})}])},65698,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(46444),e=a.i(75297),f=a.i(45098);a.s(["TypedConfirm",0,function({expected:a,value:g,onValueChange:h,"data-testid":i="retire-typed-confirm"}){let j=(0,c.useId)(),k=(0,c.useId)();return(0,b.jsxs)("div",{"data-testid":i,className:"flex flex-col gap-1.5",children:[(0,b.jsxs)(f.Label,{htmlFor:j,className:"text-meta",children:["Type ",(0,b.jsx)("code",{className:"rounded-xs bg-muted px-1 py-0.5 font-mono text-id",children:a})," to confirm"]}),(0,b.jsx)(e.Input,{id:j,isMono:!0,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,"aria-describedby":k,className:"max-sm:h-(--size-control-touch) max-sm:text-input-touch",value:g,onChange:a=>{h(a.target.value)}}),(0,b.jsx)("p",{id:k,"aria-live":"polite",className:"text-meta text-muted-foreground",children:""===g?"Case and hyphens must match.":(0,d.isTypedMatch)(a,g)?"Matches. The button is now active.":"Doesn’t match yet."})]})}])},42231,46444,21327,3842,52702,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(31429);let e={one:"delivery",many:"deliveries"};function f(a){if(0===a)return"Nothing is in flight, so no delivery moves.";let b=1===a?"returns":"return";return`${(0,d.counted)(a,{one:"in-flight delivery",many:"in-flight deliveries"})} ${b} to pending. Nothing is lost.`}function g(a){if("crewed"===a.status){let b=null===a.location?"the session crewing it":`the session on ${a.location.description??a.location.kind.toLowerCase()}`;return`This ends ${b}. ${f(a.inFlightDeliveries)}`}if(null!==a.startingPrompt&&!a.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."}a.s(["abandonedLine",0,function(a){return`${(0,d.counted)(a,e)} will be abandoned`},"inFlightLine",0,f,"isTypedMatch",0,function(a,b){return b===a},"newCrewLineReplaced",0,g,"retireButtonLabel",0,function(a){return 0===a?"Retire ship":`Retire and abandon ${(0,d.counted)(a,e)}`}],46444);var h=a.i(12540),i=a.i(12068),j=a.i(52357),k=a.i(48819),l=a.i(18441),m=a.i(2374),n=a.i(33809),o=a.i(67042),p=a.i(82314),q=a.i(94777);function r({crewLines:a,subject:d,testIdPrefix:e,onCopied:f,onCopyFailed:g}){let[h,i]=(0,c.useState)(a[0]?.harness),j=a.find(a=>a.harness===h)??a[0];if(!j)return null;let k=(0,o.crewLineHarnessWord)(j.harness);return(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,b.jsx)(q.Tabs,{value:j.harness,onValueChange:b=>{let c=a.find(a=>a.harness===b);c&&i(c.harness)},children:(0,b.jsx)(q.TabsList,{"aria-label":`Crew ${d} from`,children:a.map(a=>(0,b.jsx)(q.TabsTrigger,{value:a.harness,"data-testid":`${e}-${a.harness}-tab`,children:(0,o.crewLineHarnessWord)(a.harness)},a.harness))})}),(0,b.jsx)("code",{"data-testid":`${e}-${j.harness}`,title:j.line,className:"min-w-0 grow truncate rounded-md bg-muted px-2 py-1 font-mono text-code text-foreground",children:j.line}),(0,b.jsx)(p.CopyButton,{value:j.line,label:`Copy the ${k} crew line for ${d}`,isLabeled:!0,onCopied:f,onCopyFailed:g,"data-testid":`${e}-${j.harness}-copy`})]})}a.s(["CompactCrewLine",0,r],21327);var s=a.i(40392),t=a.i(83138);function u({note:a,model:c,template:d,testId:e}){return null===a&&null===c?null:(0,b.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta",children:[(0,b.jsx)(t.FileText,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,b.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,b.jsxs)("span",{className:"text-muted-foreground",children:["Launch note",void 0===d?"":` \xb7 ${d}`]}),null!==a&&(0,b.jsx)("span",{"data-testid":e,children:a}),null!==c&&(0,b.jsxs)("span",{children:["Runs ",(0,b.jsx)("span",{className:"font-mono",children:c})]})]})]})}function v({memberName:a,template:c,launchNote:d,model:e,crewLines:f}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u,{note:d,model:e,template:c,testId:"crew-line-launch-note"}),(0,b.jsx)(r,{crewLines:f,subject:a,testIdPrefix:"crew-line-text"}),(0,b.jsxs)("p",{className:"flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,b.jsx)(j.Info,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,b.jsxs)("span",{children:[(0,b.jsx)("span",{className:"font-medium",children:"Shown once."})," Paste the crew line into Claude Code or Codex started where the launch note says, or into a chat client with the fleet’s connector. A new crew line stops it working."]})]})]})}function w({memberName:a,state:c,template:d,launchNote:e=null,model:f=null,crewLines:g,error:h,isOpen:j,onOpenChange:o,onConfirm:p}){let q="issuing"===c;return(0,b.jsx)(l.Dialog,{open:j,onOpenChange:a=>{q||o(a)},children:(0,b.jsxs)(l.DialogContent,{size:"md","data-testid":"crew-line-dialog",className:m.dialogSurface.phoneFullScreen,children:[(0,b.jsxs)(l.DialogHeader,{children:[(0,b.jsxs)(l.DialogTitle,{children:["Crew line for ",a]}),(0,b.jsx)(l.DialogDescription,{children:"Start Claude Code or Codex where the launch note says, or open a chat client with the fleet’s connector, then paste its crew line. The member is on station once its session checks in."})]}),q&&(0,b.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,b.jsx)("span",{className:"sr-only",children:"Issuing a crew line..."}),(0,b.jsx)(n.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,b.jsx)(n.Skeleton,{className:"h-28 w-full rounded-lg"})]}),"shown"===c&&void 0!==g&&(0,b.jsx)(v,{memberName:a,template:d,launchNote:e,model:f,crewLines:g}),"error"===c&&(0,b.jsx)(s.InlineError,{title:"Couldn’t issue a crew line",description:`${h??"The squadron manager did not answer."} No new secret was created; an earlier crew line still works.`}),(0,b.jsxs)(l.DialogFooter,{children:[("shown"===c||q)&&(0,b.jsx)(l.DialogClose,{render:(0,b.jsx)(i.Button,{variant:"primary","data-testid":"crew-line-done",disabled:q}),children:"Done"}),"error"===c&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.DialogClose,{render:(0,b.jsx)(i.Button,{}),children:"Close"}),(0,b.jsx)(i.Button,{variant:"primary",icon:(0,b.jsx)(k.RotateCw,{"aria-hidden":!0}),"data-testid":"crew-line-retry",onClick:p,children:"Try again"})]})]})]})})}a.s(["LaunchNote",0,u],3842),a.s(["CrewLineDialog",0,w],52702);var x=a.i(59613);function y({memberName:a,replacedText:c,isOpen:d,onOpenChange:e,onConfirm:f}){return(0,b.jsx)(x.AlertDialog,{open:d,onOpenChange:e,children:(0,b.jsxs)(x.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:m.dialogSurface.phoneSheet,children:[(0,b.jsxs)(x.AlertDialogHeader,{children:[(0,b.jsxs)(x.AlertDialogTitle,{children:["Get a new crew line for ",a,"?"]}),(0,b.jsx)(x.AlertDialogDescription,{children:c??"Its new secret is shown once, with its launch note."})]}),(0,b.jsxs)(x.AlertDialogFooter,{children:[(0,b.jsx)(x.AlertDialogClose,{render:(0,b.jsx)(i.Button,{}),children:"Cancel"}),(0,b.jsx)(i.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:f,children:"Get new crew line"})]})]})})}function z(a){let d=(0,h.useNewCrewLine)(),[e,f]=(0,c.useState)(!1),[i,j]=(0,c.useState)(!1),[k,l]=(0,c.useState)(void 0),m=()=>{a&&d.mutate({squadronId:a.squadronId,shipId:a.member.shipId})},n=d.data?"shown":d.isError?"error":"issuing";return{isReady:a?.ship!==void 0,start:()=>{a?.ship&&(d.reset(),l(g(a.ship)),j(!0))},dialog:a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y,{memberName:a.member.name,replacedText:k,isOpen:i,onOpenChange:j,onConfirm:()=>{j(!1),f(!0),m()}}),(0,b.jsx)(w,{memberName:a.member.name,state:n,template:a.template,launchNote:d.data?.launchNote,model:d.data?.model,crewLines:d.data?.crewLines,error:d.error?.message,isOpen:e,onOpenChange:a=>{f(a),a||d.reset()},onConfirm:m})]}):null}}a.s(["GetNewCrewLine",0,function({isPrimary:a=!1,testId:c,...d}){let e=z(d);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.Button,{size:"xs",variant:a?"primary":"secondary",disabled:!e.isReady,"data-testid":c,onClick:e.start,children:"Get new crew line"}),e.dialog]})},"useNewCrewLineFlow",0,z],42231)},80459,a=>{"use strict";var b=a.i(87924),c=a.i(79762),d=a.i(97024),e=a.i(26268),f=a.i(85888),g=a.i(72131),h=a.i(46444),i=a.i(31429),j=a.i(59613),k=a.i(12068),l=a.i(2374),m=a.i(71673),n=a.i(40392),o=a.i(65698);let p={one:"delivery",many:"deliveries"};function q({role:a,othersOfRole:b,blueprint:c}){let d=0===b.length?`no ${a}`:`${String(b.length)} ${a}`;return void 0===c?`The squadron then has ${d}.`:`The squadron then has ${d}; blueprint ${c.label} has ${String(c.count)}.`}function r(a){let{squadronId:l,member:r,othersOfRole:s,blueprint:t,openDeliveries:u,inFlightDeliveries:v,isPending:w,error:x,onConfirm:y}=a,[z,A]=(0,g.useState)(""),B=u>0,C=!B||(0,h.isTypedMatch)(r.name,z),D=0===s.length;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(j.AlertDialogHeader,{children:[(0,b.jsxs)(j.AlertDialogTitle,{children:["Remove ",r.name," from ",l,"?"]}),(0,b.jsx)(j.AlertDialogDescription,{children:B?(0,b.jsx)(b.Fragment,{children:"Its ship is retired for good. This can't be undone."}):(0,b.jsx)(b.Fragment,{children:"This can't be undone. Add a member to get the role back."})})]}),B?(0,b.jsxs)("div",{role:"alert",className:"flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-meta text-tone-attention-fg",children:[(0,b.jsx)(e.TriangleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("p",{className:"font-medium",children:(0,h.abandonedLine)(u)}),(0,b.jsxs)("p",{className:"text-foreground",children:[u-v," pending, ",v," in flight in its inbox. Each is marked Abandoned and its sender can see that."]})]})]}):(0,b.jsx)(m.ConsequenceList,{consequences:[{icon:c.Archive,text:`Its ship ${r.name} is retired. Its history stays read-only.`},{icon:f.Users,text:q({role:r.role,othersOfRole:s,blueprint:t})}]}),D&&(0,b.jsxs)("p",{"data-testid":"remove-member-last-of-role",className:"flex items-start gap-2 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:[(0,b.jsx)(e.TriangleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,b.jsxs)("span",{children:[(0,b.jsxs)("span",{className:"font-medium",children:["The last ",r.role,"."]})," ",(0,b.jsxs)("span",{className:"text-foreground",children:[q({role:r.role,othersOfRole:s,blueprint:t})," Work for the role waits until a member is added."]})]})]}),!B&&(0,b.jsxs)("p",{className:"flex items-center gap-2 rounded-lg border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-meta text-tone-ok-fg",children:[(0,b.jsx)(d.CircleCheck,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Its inbox is empty, so no deliveries are affected."]}),B?(0,b.jsx)(o.TypedConfirm,{expected:r.name,value:z,onValueChange:A}):null,void 0!==x&&(0,b.jsx)(n.InlineError,{title:"Couldn’t remove the member",description:`${x} Nothing changed.`}),(0,b.jsxs)(j.AlertDialogFooter,{children:[(0,b.jsx)(j.AlertDialogClose,{render:(0,b.jsx)(k.Button,{disabled:w}),children:"Cancel"}),(0,b.jsx)(k.Button,{variant:"destructive",isLoading:w,disabled:!C,onClick:y,"data-testid":"remove-member-confirm",children:B?`Remove and abandon ${(0,i.counted)(u,p)}`:"Remove member"})]})]})}a.s(["RemoveMemberDialog",0,function(a){let{isOpen:c,onOpenChange:d,isPending:e}=a;return(0,b.jsx)(j.AlertDialog,{open:c,onOpenChange:a=>{e||d(a)},children:(0,b.jsx)(j.AlertDialogContent,{"data-testid":"remove-member-dialog",className:l.dialogSurface.phoneSheet,children:(0,b.jsx)(r,{...a})})})}])},67042,a=>{"use strict";let b={"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 c(a){return b[a]?.word??a}a.s(["crewLineHarnessWord",0,function(a){return"chat"===a?"Chat":c(a)},"harnessKind",0,function(a){return b[a]?.kind},"harnessWord",0,c])},45185,a=>{"use strict";a.i(23600);var b=a.i(90407),c=a.i(72872);let d={working:"Working",blocked:"Blocked",idle:"Idle"};a.s(["REPORT_STATE_WORDS",0,d,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(a,b){let d=Math.max(0,b.getTime()-a.getTime());return d<6e4?`${String(Math.floor(d/1e3))} s`:d<36e5?`${String(Math.floor(d/6e4))} min`:d<864e5?`${String(Math.floor(d/36e5))} h`:(0,c.relativeTime)(a,b)},"reportDetailsJson",0,function(a){return JSON.stringify(a,null,2)},"reportDetailsLabel",0,function(a){return`JSON \xb7 ${String((0,b.reportDetailsBytes)(a))} bytes`},"reportText",0,function(a){let b=d[a.state];return null===a.note?b:`${b}: ${a.note}`},"reportedWhen",0,function(a,b){let d=(0,c.relativeTime)(a,b);return`reported ${"Just now"===d?"just now":d}`}])}];
|
|
1
|
+
module.exports=[38688,67594,92175,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Activity",0,d],38688);let e={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"]};e.node;let f=(0,b.default)(e);a.s(["CirclePause",0,f],67594);let g={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"]};g.node;let h=(0,b.default)(g);a.s(["OctagonPause",0,h],92175)},63359,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["AppWindow",0,d],63359)},82260,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Bot",0,d],82260)},42955,a=>{"use strict";var b=a.i(64831);let c={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};c.node;let d=(0,b.default)(c);a.s(["Ellipsis",0,d],42955)},83138,a=>{"use strict";var b=a.i(64831);let c={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};c.node;let d=(0,b.default)(c);a.s(["FileText",0,d],83138)},25039,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Flag",0,d],25039)},26766,a=>{"use strict";var b=a.i(64831);let c={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};c.node;let d=(0,b.default)(c);a.s(["KeyRound",0,d],26766)},53783,a=>{"use strict";var b=a.i(64831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["SquareTerminal",0,d],53783)},25212,a=>{"use strict";var b=a.i(64831);let c={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"}]]};c.node;let d=(0,b.default)(c);a.s(["Unplug",0,d],25212)},28339,a=>{"use strict";var b=a.i(64831);let c={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};c.node;let d=(0,b.default)(c);a.s(["UserMinus",0,d],28339)},85888,a=>{"use strict";var b=a.i(64831);let c={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};c.node;let d=(0,b.default)(c);a.s(["Users",0,d],85888)},82314,85650,a=>{"use strict";var b=a.i(87924),c=a.i(52562),d=a.i(64831);let e={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"}]]};e.node;let f=(0,d.default)(e);a.s(["Copy",0,f],85650);var g=a.i(72131),h=a.i(12068);a.s(["CopyButton",0,function({value:a,label:d,size:e="xs",isLabeled:i=!1,onCopied:j,onCopyFailed:k,className:l,"data-testid":m}){let[n,o]=(0,g.useState)(!1);async function p(){try{await navigator.clipboard.writeText(a)}catch{k?.();return}o(!0),j?.(),setTimeout(()=>{o(!1)},1500)}return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.Button,{variant:"ghost",size:e,isIconOnly:!i,"aria-label":d,title:i?void 0:d,icon:n?(0,b.jsx)(c.Check,{"aria-hidden":!0}):(0,b.jsx)(f,{"aria-hidden":!0}),className:l,"data-testid":m,onClick:()=>{p()},children:i?n?"Copied":"Copy":null}),(0,b.jsx)("span",{role:"status",className:"sr-only",children:n?"Copied.":""})]})}],82314)},71673,a=>{"use strict";var b=a.i(87924);a.s(["ConsequenceList",0,function({consequences:a}){return(0,b.jsx)("ul",{className:"flex flex-col gap-2 rounded-lg border border-border bg-muted p-3 text-meta text-foreground",children:a.map(({icon:a,text:c})=>(0,b.jsxs)("li",{className:"flex gap-2",children:[(0,b.jsx)(a,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,b.jsx)("span",{children:c})]},c))})}])},40108,a=>{"use strict";var b=a.i(87924),c=a.i(63359),d=a.i(82260),e=a.i(64831);let f={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"}]]};f.node;let g=(0,e.default)(f),h={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"}]]};h.node;let i=(0,e.default)(h),j={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"}]]};j.node;let k=(0,e.default)(j),l={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"}]]};l.node;let m=(0,e.default)(l),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 o=(0,e.default)(n);var p=a.i(53783),q=a.i(25212),r=a.i(80487),s=a.i(67042),t=a.i(29703);let u={DEVICE:i,CLOUD:g,SERVER:o,OTHER:k},v={coding:p.SquareTerminal,chat:m,bot:d.Bot,console:c.AppWindow},w={md:"text-body",sm:"text-meta"};a.s(["LocationTag",0,function({kind:a,description:c=null,harness:d=null,isCompact:e=!1,size:f="md",className:g}){let h=(0,r.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",w[f],g);if(null===a)return(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,children:[(0,b.jsx)(q.Unplug,{"aria-hidden":!0}),"No session"]});let i=u[a],j=(0,t.locationKindWord)(a),k=null===c?j:`${j} \xb7 ${c}`;if(null!==d){let a=(0,s.harnessKind)(d),e=void 0===a?void 0:v[a],f=(0,s.harnessWord)(d);return(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,title:null===c?`${f} \xb7 ${j}`:`${f} \xb7 ${j}: ${c}`,children:[void 0===e?null:(0,b.jsx)(e,{"aria-hidden":!0}),(0,b.jsx)("span",{className:"truncate text-foreground",children:f}),(0,b.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsx)("span",{className:"truncate",children:j}),null===c?null:(0,b.jsxs)("span",{className:"sr-only",children:[": ",c]})]})}return e?(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,title:k,children:[(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsxs)("span",{className:"sr-only",children:[j,": "]}),(0,b.jsx)("span",{className:"truncate text-foreground",children:c??j})]}):(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,children:[(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsxs)("span",{className:"truncate",children:[j,null===c?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,b.jsx)("span",{className:"sr-only",children:", "}),(0,b.jsx)("span",{className:"text-foreground",children:c})]})]})]})}],40108)},92717,a=>{"use strict";var b=a.i(87924),c=a.i(38688),d=a.i(67594),e=a.i(92175),f=a.i(80487),g=a.i(72872),h=a.i(45185);let i={working:c.Activity,blocked:e.OctagonPause,idle:d.CirclePause},j={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};a.s(["ReportLine",0,function({report:a,now:c,variant:d,isTimeInTitle:e=!1,testId:k}){let l="full"===d,m=(0,f.classNames)("flex min-w-0 items-center gap-1.5",l?"text-body":"text-meta");if(null===a)return(0,b.jsx)("span",{"data-testid":k,"data-state":"none",className:(0,f.classNames)(m,"text-muted-foreground"),children:"No report yet"});let n=i[a.state],o=j[h.REPORT_TONES[a.state]],p=new Date(a.reportedAt);return(0,b.jsxs)("span",{"data-testid":k,"data-state":a.state,title:e?`${(0,h.reportText)(a)} \xb7 ${(0,h.reportedWhen)(p,c)}`:(0,h.reportText)(a),className:m,children:[(0,b.jsx)(n,{"aria-hidden":!0,className:(0,f.classNames)("size-(--size-icon-sm) shrink-0",o)}),(0,b.jsx)("span",{className:(0,f.classNames)("shrink-0 font-medium",o),children:h.REPORT_STATE_WORDS[a.state]}),null===a.note?null:(0,b.jsx)("span",{className:"min-w-0 truncate text-foreground",children:a.note}),e?null:(0,b.jsx)("time",{dateTime:a.reportedAt,title:(0,g.fullDateTime)(p),className:"shrink-0 text-muted-foreground tabular-nums",children:l?`\xb7 ${(0,h.reportedWhen)(p,c)}`:(0,h.reportAge)(p,c)})]})}])},65698,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(46444),e=a.i(75297),f=a.i(45098);a.s(["TypedConfirm",0,function({expected:a,value:g,onValueChange:h,"data-testid":i="retire-typed-confirm"}){let j=(0,c.useId)(),k=(0,c.useId)();return(0,b.jsxs)("div",{"data-testid":i,className:"flex flex-col gap-1.5",children:[(0,b.jsxs)(f.Label,{htmlFor:j,className:"text-meta",children:["Type ",(0,b.jsx)("code",{className:"rounded-xs bg-muted px-1 py-0.5 font-mono text-id",children:a})," to confirm"]}),(0,b.jsx)(e.Input,{id:j,isMono:!0,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,"aria-describedby":k,className:"max-sm:h-(--size-control-touch) max-sm:text-input-touch",value:g,onChange:a=>{h(a.target.value)}}),(0,b.jsx)("p",{id:k,"aria-live":"polite",className:"text-meta text-muted-foreground",children:""===g?"Case and hyphens must match.":(0,d.isTypedMatch)(a,g)?"Matches. The button is now active.":"Doesn’t match yet."})]})}])},42231,46444,21327,3842,52702,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(31429);let e={one:"delivery",many:"deliveries"};function f(a){if(0===a)return"Nothing is in flight, so no delivery moves.";let b=1===a?"returns":"return";return`${(0,d.counted)(a,{one:"in-flight delivery",many:"in-flight deliveries"})} ${b} to pending. Nothing is lost.`}function g(a){if("crewed"===a.status){let b=null===a.location?"the session crewing it":`the session on ${a.location.description??a.location.kind.toLowerCase()}`;return`This ends ${b}. ${f(a.inFlightDeliveries)}`}if(null!==a.startingPrompt&&!a.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."}a.s(["abandonedLine",0,function(a){return`${(0,d.counted)(a,e)} will be abandoned`},"inFlightLine",0,f,"isTypedMatch",0,function(a,b){return b===a},"newCrewLineReplaced",0,g,"retireButtonLabel",0,function(a){return 0===a?"Retire ship":`Retire and abandon ${(0,d.counted)(a,e)}`}],46444);var h=a.i(12540),i=a.i(12068),j=a.i(52357),k=a.i(48819),l=a.i(18441),m=a.i(2374),n=a.i(33809),o=a.i(67042),p=a.i(82314),q=a.i(94777);function r({crewLines:a,subject:d,testIdPrefix:e,onCopied:f,onCopyFailed:g}){let[h,i]=(0,c.useState)(a[0]?.harness),j=a.find(a=>a.harness===h)??a[0];if(!j)return null;let k=(0,o.crewLineHarnessWord)(j.harness);return(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,b.jsx)(q.Tabs,{value:j.harness,onValueChange:b=>{let c=a.find(a=>a.harness===b);c&&i(c.harness)},children:(0,b.jsx)(q.TabsList,{"aria-label":`Crew ${d} from`,children:a.map(a=>(0,b.jsx)(q.TabsTrigger,{value:a.harness,"data-testid":`${e}-${a.harness}-tab`,children:(0,o.crewLineHarnessWord)(a.harness)},a.harness))})}),(0,b.jsx)("code",{"data-testid":`${e}-${j.harness}`,title:j.line,className:"min-w-0 grow truncate rounded-md bg-muted px-2 py-1 font-mono text-code text-foreground",children:j.line}),(0,b.jsx)(p.CopyButton,{value:j.line,label:`Copy the ${k} crew line for ${d}`,isLabeled:!0,onCopied:f,onCopyFailed:g,"data-testid":`${e}-${j.harness}-copy`})]})}a.s(["CompactCrewLine",0,r],21327);var s=a.i(40392),t=a.i(83138);function u({note:a,model:c,template:d,testId:e}){return null===a&&null===c?null:(0,b.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta",children:[(0,b.jsx)(t.FileText,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,b.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,b.jsxs)("span",{className:"text-muted-foreground",children:["Launch note",void 0===d?"":` \xb7 ${d}`]}),null!==a&&(0,b.jsx)("span",{"data-testid":e,children:a}),null!==c&&(0,b.jsxs)("span",{children:["Runs ",(0,b.jsx)("span",{className:"font-mono",children:c})]})]})]})}function v({memberName:a,template:c,launchNote:d,model:e,crewLines:f}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u,{note:d,model:e,template:c,testId:"crew-line-launch-note"}),(0,b.jsx)(r,{crewLines:f,subject:a,testIdPrefix:"crew-line-text"}),(0,b.jsxs)("p",{className:"flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,b.jsx)(j.Info,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,b.jsxs)("span",{children:[(0,b.jsx)("span",{className:"font-medium",children:"Shown once."})," Paste the crew line into Claude Code or Codex started where the launch note says, or into a chat client with the fleet’s connector. A new crew line stops it working."]})]})]})}function w({memberName:a,state:c,template:d,launchNote:e=null,model:f=null,crewLines:g,error:h,isOpen:j,onOpenChange:o,onConfirm:p}){let q="issuing"===c;return(0,b.jsx)(l.Dialog,{open:j,onOpenChange:a=>{q||o(a)},children:(0,b.jsxs)(l.DialogContent,{size:"md","data-testid":"crew-line-dialog",className:m.dialogSurface.phoneFullScreen,children:[(0,b.jsxs)(l.DialogHeader,{children:[(0,b.jsxs)(l.DialogTitle,{children:["Crew line for ",a]}),(0,b.jsx)(l.DialogDescription,{children:"Start Claude Code or Codex where the launch note says, or open a chat client with the fleet’s connector, then paste its crew line. The member is on station once its session checks in."})]}),q&&(0,b.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,b.jsx)("span",{className:"sr-only",children:"Issuing a crew line..."}),(0,b.jsx)(n.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,b.jsx)(n.Skeleton,{className:"h-28 w-full rounded-lg"})]}),"shown"===c&&void 0!==g&&(0,b.jsx)(v,{memberName:a,template:d,launchNote:e,model:f,crewLines:g}),"error"===c&&(0,b.jsx)(s.InlineError,{title:"Couldn’t issue a crew line",description:`${h??"The squadron manager did not answer."} No new secret was created; an earlier crew line still works.`}),(0,b.jsxs)(l.DialogFooter,{children:[("shown"===c||q)&&(0,b.jsx)(l.DialogClose,{render:(0,b.jsx)(i.Button,{variant:"primary","data-testid":"crew-line-done",disabled:q}),children:"Done"}),"error"===c&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.DialogClose,{render:(0,b.jsx)(i.Button,{}),children:"Close"}),(0,b.jsx)(i.Button,{variant:"primary",icon:(0,b.jsx)(k.RotateCw,{"aria-hidden":!0}),"data-testid":"crew-line-retry",onClick:p,children:"Try again"})]})]})]})})}a.s(["LaunchNote",0,u],3842),a.s(["CrewLineDialog",0,w],52702);var x=a.i(59613);function y({memberName:a,replacedText:c,isOpen:d,onOpenChange:e,onConfirm:f}){return(0,b.jsx)(x.AlertDialog,{open:d,onOpenChange:e,children:(0,b.jsxs)(x.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:m.dialogSurface.phoneSheet,children:[(0,b.jsxs)(x.AlertDialogHeader,{children:[(0,b.jsxs)(x.AlertDialogTitle,{children:["Get a new crew line for ",a,"?"]}),(0,b.jsx)(x.AlertDialogDescription,{children:c??"Its new secret is shown once, with its launch note."})]}),(0,b.jsxs)(x.AlertDialogFooter,{children:[(0,b.jsx)(x.AlertDialogClose,{render:(0,b.jsx)(i.Button,{}),children:"Cancel"}),(0,b.jsx)(i.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:f,children:"Get new crew line"})]})]})})}function z(a){let d=(0,h.useNewCrewLine)(),[e,f]=(0,c.useState)(!1),[i,j]=(0,c.useState)(!1),[k,l]=(0,c.useState)(void 0),m=()=>{a&&d.mutate({squadronId:a.squadronId,shipId:a.member.shipId})},n=d.data?"shown":d.isError?"error":"issuing";return{isReady:a?.ship!==void 0,start:()=>{a?.ship&&(d.reset(),l(g(a.ship)),j(!0))},dialog:a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y,{memberName:a.member.name,replacedText:k,isOpen:i,onOpenChange:j,onConfirm:()=>{j(!1),f(!0),m()}}),(0,b.jsx)(w,{memberName:a.member.name,state:n,template:a.template,launchNote:d.data?.launchNote,model:d.data?.model,crewLines:d.data?.crewLines,error:d.error?.message,isOpen:e,onOpenChange:a=>{f(a),a||d.reset()},onConfirm:m})]}):null}}a.s(["GetNewCrewLine",0,function({isPrimary:a=!1,testId:c,...d}){let e=z(d);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.Button,{size:"xs",variant:a?"primary":"secondary",disabled:!e.isReady,"data-testid":c,onClick:e.start,children:"Get new crew line"}),e.dialog]})},"useNewCrewLineFlow",0,z],42231)},80459,a=>{"use strict";var b=a.i(87924),c=a.i(79762),d=a.i(97024),e=a.i(26268),f=a.i(85888),g=a.i(72131),h=a.i(46444),i=a.i(31429),j=a.i(59613),k=a.i(12068),l=a.i(2374),m=a.i(71673),n=a.i(40392),o=a.i(65698);let p={one:"delivery",many:"deliveries"};function q({role:a,othersOfRole:b,blueprint:c}){let d=0===b.length?`no ${a}`:`${String(b.length)} ${a}`;return void 0===c?`The squadron then has ${d}.`:`The squadron then has ${d}; blueprint ${c.label} has ${String(c.count)}.`}function r(a){let{squadronId:l,member:r,othersOfRole:s,blueprint:t,openDeliveries:u,inFlightDeliveries:v,isPending:w,error:x,onConfirm:y}=a,[z,A]=(0,g.useState)(""),B=u>0,C=!B||(0,h.isTypedMatch)(r.name,z),D=0===s.length;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(j.AlertDialogHeader,{children:[(0,b.jsxs)(j.AlertDialogTitle,{children:["Remove ",r.name," from ",l,"?"]}),(0,b.jsx)(j.AlertDialogDescription,{children:B?(0,b.jsx)(b.Fragment,{children:"Its ship is retired for good. This can't be undone."}):(0,b.jsx)(b.Fragment,{children:"This can't be undone. Add a member to get the role back."})})]}),B?(0,b.jsxs)("div",{role:"alert",className:"flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-meta text-tone-attention-fg",children:[(0,b.jsx)(e.TriangleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("p",{className:"font-medium",children:(0,h.abandonedLine)(u)}),(0,b.jsxs)("p",{className:"text-foreground",children:[u-v," pending, ",v," in flight in its inbox. Each is marked Abandoned and its sender can see that."]})]})]}):(0,b.jsx)(m.ConsequenceList,{consequences:[{icon:c.Archive,text:`Its ship ${r.name} is retired. Its history stays read-only.`},{icon:f.Users,text:q({role:r.role,othersOfRole:s,blueprint:t})}]}),D&&(0,b.jsxs)("p",{"data-testid":"remove-member-last-of-role",className:"flex items-start gap-2 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:[(0,b.jsx)(e.TriangleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,b.jsxs)("span",{children:[(0,b.jsxs)("span",{className:"font-medium",children:["The last ",r.role,"."]})," ",(0,b.jsxs)("span",{className:"text-foreground",children:[q({role:r.role,othersOfRole:s,blueprint:t})," Work for the role waits until a member is added."]})]})]}),!B&&(0,b.jsxs)("p",{className:"flex items-center gap-2 rounded-lg border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-meta text-tone-ok-fg",children:[(0,b.jsx)(d.CircleCheck,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Its inbox is empty, so no deliveries are affected."]}),B?(0,b.jsx)(o.TypedConfirm,{expected:r.name,value:z,onValueChange:A}):null,void 0!==x&&(0,b.jsx)(n.InlineError,{title:"Couldn’t remove the member",description:`${x} Nothing changed.`}),(0,b.jsxs)(j.AlertDialogFooter,{children:[(0,b.jsx)(j.AlertDialogClose,{render:(0,b.jsx)(k.Button,{disabled:w}),children:"Cancel"}),(0,b.jsx)(k.Button,{variant:"destructive",isLoading:w,disabled:!C,onClick:y,"data-testid":"remove-member-confirm",children:B?`Remove and abandon ${(0,i.counted)(u,p)}`:"Remove member"})]})]})}a.s(["RemoveMemberDialog",0,function(a){let{isOpen:c,onOpenChange:d,isPending:e}=a;return(0,b.jsx)(j.AlertDialog,{open:c,onOpenChange:a=>{e||d(a)},children:(0,b.jsx)(j.AlertDialogContent,{"data-testid":"remove-member-dialog",className:l.dialogSurface.phoneSheet,children:(0,b.jsx)(r,{...a})})})}])},67042,a=>{"use strict";var b=a.i(72872);let c={"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 d(a){return c[a]?.word??a}a.s(["crewLineHarnessWord",0,function(a){return"chat"===a?"Chat":d(a)},"harnessDetection",0,function(a,c){if(void 0===a.version)return;if(void 0===a.modelsConfirmedAt||null===a.modelsConfirmedAt)return`${a.version} \xb7 no model confirmed`;let d=(0,b.relativeTime)(new Date(a.modelsConfirmedAt),c);return`${a.version} \xb7 models confirmed ${"Just now"===d?"just now":d}`},"harnessKind",0,function(a){return c[a]?.kind},"harnessWord",0,d])},45185,a=>{"use strict";a.i(23600);var b=a.i(90407),c=a.i(72872);let d={working:"Working",blocked:"Blocked",idle:"Idle"};a.s(["REPORT_STATE_WORDS",0,d,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(a,b){let d=Math.max(0,b.getTime()-a.getTime());return d<6e4?`${String(Math.floor(d/1e3))} s`:d<36e5?`${String(Math.floor(d/6e4))} min`:d<864e5?`${String(Math.floor(d/36e5))} h`:(0,c.relativeTime)(a,b)},"reportDetailsJson",0,function(a){return JSON.stringify(a,null,2)},"reportDetailsLabel",0,function(a){return`JSON \xb7 ${String((0,b.reportDetailsBytes)(a))} bytes`},"reportText",0,function(a){let b=d[a.state];return null===a.note?b:`${b}: ${a.note}`},"reportedWhen",0,function(a,b){let d=(0,c.relativeTime)(a,b);return`reported ${"Just now"===d?"just now":d}`}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_17u4fan._.js.map
|