@aeolus-fleet/gateway 0.32.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/package.json +1 -1
  2. package/web/.next/BUILD_ID +1 -1
  3. package/web/.next/build-manifest.json +3 -3
  4. package/web/.next/diagnostics/route-bundle-stats.json +29 -29
  5. package/web/.next/fallback-build-manifest.json +3 -3
  6. package/web/.next/prerender-manifest.json +3 -3
  7. package/web/.next/server/app/(console)/gateway-off/page/server-reference-manifest.json +1 -1
  8. package/web/.next/server/app/(console)/gateway-off/page.js.nft.json +1 -1
  9. package/web/.next/server/app/(console)/gateway-off/page_client-reference-manifest.js +1 -1
  10. package/web/.next/server/app/(console)/meetings/[meetingId]/page/server-reference-manifest.json +3 -3
  11. package/web/.next/server/app/(console)/meetings/[meetingId]/page.js.nft.json +1 -1
  12. package/web/.next/server/app/(console)/meetings/[meetingId]/page_client-reference-manifest.js +1 -1
  13. package/web/.next/server/app/(console)/outside-parties/[name]/change/page/server-reference-manifest.json +8 -8
  14. package/web/.next/server/app/(console)/outside-parties/[name]/change/page.js.nft.json +1 -1
  15. package/web/.next/server/app/(console)/outside-parties/[name]/change/page_client-reference-manifest.js +1 -1
  16. package/web/.next/server/app/(console)/outside-parties/[name]/page/server-reference-manifest.json +4 -4
  17. package/web/.next/server/app/(console)/outside-parties/[name]/page.js.nft.json +1 -1
  18. package/web/.next/server/app/(console)/outside-parties/[name]/page_client-reference-manifest.js +1 -1
  19. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page/server-reference-manifest.json +8 -8
  20. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page.js.nft.json +1 -1
  21. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page_client-reference-manifest.js +1 -1
  22. package/web/.next/server/app/(console)/outside-parties/add/page/server-reference-manifest.json +6 -6
  23. package/web/.next/server/app/(console)/outside-parties/add/page.js.nft.json +1 -1
  24. package/web/.next/server/app/(console)/outside-parties/add/page_client-reference-manifest.js +1 -1
  25. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page/server-reference-manifest.json +2 -2
  26. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page.js.nft.json +1 -1
  27. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page_client-reference-manifest.js +1 -1
  28. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page/server-reference-manifest.json +2 -2
  29. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page.js.nft.json +1 -1
  30. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page_client-reference-manifest.js +1 -1
  31. package/web/.next/server/app/(console)/outside-parties/page/server-reference-manifest.json +2 -2
  32. package/web/.next/server/app/(console)/outside-parties/page.js.nft.json +1 -1
  33. package/web/.next/server/app/(console)/outside-parties/page_client-reference-manifest.js +1 -1
  34. package/web/.next/server/app/(console)/overview/page/server-reference-manifest.json +7 -7
  35. package/web/.next/server/app/(console)/overview/page.js.nft.json +1 -1
  36. package/web/.next/server/app/(console)/overview/page_client-reference-manifest.js +1 -1
  37. package/web/.next/server/app/(console)/overview/requests/[requestId]/page/server-reference-manifest.json +2 -2
  38. package/web/.next/server/app/(console)/overview/requests/[requestId]/page.js.nft.json +1 -1
  39. package/web/.next/server/app/(console)/overview/requests/[requestId]/page_client-reference-manifest.js +1 -1
  40. package/web/.next/server/app/(console)/parties/page/server-reference-manifest.json +8 -8
  41. package/web/.next/server/app/(console)/parties/page.js.nft.json +1 -1
  42. package/web/.next/server/app/(console)/parties/page_client-reference-manifest.js +1 -1
  43. package/web/.next/server/app/(console)/sign-in/failed/page/server-reference-manifest.json +1 -1
  44. package/web/.next/server/app/(console)/sign-in/failed/page.js.nft.json +1 -1
  45. package/web/.next/server/app/(console)/sign-in/failed/page_client-reference-manifest.js +1 -1
  46. package/web/.next/server/app/_global-error.html +1 -1
  47. package/web/.next/server/app/_global-error.rsc +1 -1
  48. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  49. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  50. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  51. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  52. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  53. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  54. package/web/.next/server/app/authorize/failed/page/server-reference-manifest.json +1 -1
  55. package/web/.next/server/app/authorize/failed/page.js.nft.json +1 -1
  56. package/web/.next/server/app/authorize/failed/page_client-reference-manifest.js +1 -1
  57. package/web/.next/server/app/authorize/pick/page/server-reference-manifest.json +1 -1
  58. package/web/.next/server/app/authorize/pick/page.js.nft.json +1 -1
  59. package/web/.next/server/app/authorize/pick/page_client-reference-manifest.js +1 -1
  60. package/web/.next/server/app/authorize/waiting/approval/page/server-reference-manifest.json +1 -1
  61. package/web/.next/server/app/authorize/waiting/approval/page.js.nft.json +1 -1
  62. package/web/.next/server/app/authorize/waiting/approval/page_client-reference-manifest.js +1 -1
  63. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js +1 -1
  64. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js.map +1 -1
  65. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js +1 -1
  66. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js.map +1 -1
  67. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js +1 -1
  68. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js.map +1 -1
  69. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js +1 -1
  70. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js.map +1 -1
  71. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js +1 -1
  72. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js.map +1 -1
  73. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_overview_requests_[requestId]_page_actions_0uki9j3mtuz9e.js +1 -1
  74. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_overview_requests_[requestId]_page_actions_0uki9j3mtuz9e.js.map +1 -1
  75. package/web/.next/server/chunks/ssr/[root-of-the-server]__0-og0bl8lr2xq._.js +1 -1
  76. package/web/.next/server/chunks/ssr/[root-of-the-server]__0-og0bl8lr2xq._.js.map +1 -1
  77. package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js +1 -1
  78. package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js.map +1 -1
  79. package/web/.next/server/chunks/ssr/[root-of-the-server]__0n2us07jk-78w._.js +1 -1
  80. package/web/.next/server/chunks/ssr/[root-of-the-server]__1-c9wugbbwsp3._.js +1 -1
  81. package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js +1 -1
  82. package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js.map +1 -1
  83. package/web/.next/server/chunks/ssr/[root-of-the-server]__1dtyycvqa6uht._.js +1 -1
  84. package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js +1 -1
  85. package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js.map +1 -1
  86. package/web/.next/server/chunks/ssr/_0_kakdt7lb6z-._.js +1 -1
  87. package/web/.next/server/chunks/ssr/_0_kakdt7lb6z-._.js.map +1 -1
  88. package/web/.next/server/chunks/ssr/_0bhvvyz0q_0ja._.js +1 -1
  89. package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js +1 -1
  90. package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js.map +1 -1
  91. package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js +1 -1
  92. package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js.map +1 -1
  93. package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js +1 -1
  94. package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js.map +1 -1
  95. package/web/.next/server/chunks/ssr/_12fsn_33ga-n0._.js +1 -1
  96. package/web/.next/server/chunks/ssr/_1_wav28san6dm._.js +1 -1
  97. package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js +1 -1
  98. package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js.map +1 -1
  99. package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js +1 -1
  100. package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js.map +1 -1
  101. package/web/.next/server/chunks/ssr/_1y1ovmdhl9_ml._.js +1 -1
  102. package/web/.next/server/chunks/ssr/_1y1ovmdhl9_ml._.js.map +1 -1
  103. package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js +1 -1
  104. package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js.map +1 -1
  105. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(console)_overview_page_actions_18on1ziyg1nzy.js +1 -1
  106. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(console)_overview_page_actions_18on1ziyg1nzy.js.map +1 -1
  107. package/web/.next/server/chunks/ssr/web_features_0xnlgtw8bfqaa._.js +1 -1
  108. package/web/.next/server/chunks/ssr/web_features_1_2m6l73qk7qw._.js +1 -1
  109. package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js +1 -1
  110. package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js.map +1 -1
  111. package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js +1 -1
  112. package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js.map +1 -1
  113. package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js +1 -1
  114. package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js.map +1 -1
  115. package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js +1 -1
  116. package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js.map +1 -1
  117. package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js +1 -1
  118. package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js.map +1 -1
  119. package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js +1 -1
  120. package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js.map +1 -1
  121. package/web/.next/server/chunks/ssr/web_features_outside-party_actions_ts_102ar5pdowf8s._.js +1 -1
  122. package/web/.next/server/chunks/ssr/web_features_overview_hooks_overview-actions_ts_0-wrat07d1y5g._.js +1 -1
  123. package/web/.next/server/chunks/ssr/web_features_overview_state_1wuk95dw2_whp._.js +1 -1
  124. package/web/.next/server/chunks/ssr/web_features_overview_state_1wuk95dw2_whp._.js.map +1 -1
  125. package/web/.next/server/chunks/ssr/web_features_overview_state_decision-panel_tsx_0kpd26ggtr6h_._.js +1 -1
  126. package/web/.next/server/chunks/ssr/web_features_overview_state_decision-panel_tsx_0kpd26ggtr6h_._.js.map +1 -1
  127. package/web/.next/server/chunks/ssr/web_features_parties_actions_ts_0r-tbfsig2ty-._.js +1 -1
  128. package/web/.next/server/middleware-build-manifest.js +3 -3
  129. package/web/.next/server/pages/500.html +1 -1
  130. package/web/.next/server/preview-props.json +3 -3
  131. package/web/.next/server/server-reference-manifest.js +1 -1
  132. package/web/.next/server/server-reference-manifest.json +28 -28
  133. package/web/.next/static/chunks/{2jvq5fses35mf.js → 0coxy5zad812a.js} +1 -1
  134. package/web/.next/static/chunks/{3f3s544ovqebz.js → 0u_4xjk1j74g3.js} +1 -1
  135. package/web/.next/static/chunks/{202avng4-d5jq.js → 0v9r_hyyubykq.js} +1 -1
  136. package/web/.next/static/chunks/0zesq1ng-v3s6.js +1 -0
  137. package/web/.next/static/chunks/{26kio8jl2dc6u.js → 12c3qjvto3m0f.js} +1 -1
  138. package/web/.next/static/chunks/1ahn4kx4ld-rc.js +1 -0
  139. package/web/.next/static/chunks/{1ffk4chq_kmie.js → 1xrn7oqwd48vi.js} +1 -1
  140. package/web/.next/static/chunks/{2sx1mxv2u71xx.js → 20n2z_lok8v0f.js} +1 -1
  141. package/web/.next/static/chunks/{3yunex2p9do7t.js → 2ew9kpu2kohk4.js} +1 -1
  142. package/web/.next/trace +1 -1
  143. package/web/.next/trace-build +1 -1
  144. package/web/.next/static/chunks/1nyfzf-d7kj96.js +0 -1
  145. package/web/.next/static/chunks/40sj32h7okqjq.js +0 -1
  146. /package/web/.next/static/{JmnMsO8U6uK0nukLKdccI → wnr2MrrQvcto8MOm16D8r}/_buildManifest.js +0 -0
  147. /package/web/.next/static/{JmnMsO8U6uK0nukLKdccI → wnr2MrrQvcto8MOm16D8r}/_clientMiddlewareManifest.js +0 -0
  148. /package/web/.next/static/{JmnMsO8U6uK0nukLKdccI → wnr2MrrQvcto8MOm16D8r}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37642,e=>{var i=e.i(43476),n=e.i(71645),r=e.i(95187);let t=(0,r.createServerReference)("405f8667841fa6e8aa9dc4e14864bf70904e4f5d6d",r.callServer,void 0,r.findSourceMapURL,"answerDelivery"),a=(0,r.createServerReference)("60244266b9259a9692e97c506b5ce52ec2c7a1a150",r.callServer,void 0,r.findSourceMapURL,"doneDelivery"),s=(0,r.createServerReference)("60b0e24f763eae8da17acbb522c69b2a378f23c2e5",r.callServer,void 0,r.findSourceMapURL,"openDelivery");var o=e.i(38314),d=e.i(93633);function l({delivery:e,meetingHref:n,note:r,working:t,failure:a,onNoteChange:s,onAnswer:c,onDone:u,onBack:v}){let{question:g}=e,f=void 0!==t,m=g?.options.find(e=>e.key===g.pick.option);return(0,i.jsxs)("section",{"data-testid":"overview-delivery",className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,i.jsxs)("span",{className:"text-caption text-muted-foreground",children:[e.from," · ",new Date(e.sentAt).toUTCString()]}),(0,i.jsx)("h2",{className:"text-heading font-semibold",children:g?.title??e.title}),void 0===n?null:(0,i.jsx)("a",{"data-testid":"overview-meeting",href:n,className:"inline-flex h-9 items-center justify-self-start rounded-md bg-primary px-4 text-primary-foreground hover:bg-primary-hover",children:"Go to the meeting"}),void 0===g?(0,i.jsx)("pre",{className:"whitespace-pre-wrap rounded-md bg-muted p-3 font-mono text-caption",children:e.payload}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"whitespace-pre-wrap",children:g.context}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2",children:g.options.map(e=>(0,i.jsx)(o.f,{title:e.detail,variant:e.key===g.pick.option?"primary":"secondary",className:e.key===g.pick.option?"outline-2 outline-offset-2 outline-dashed outline-ring":"",isPending:t?.kind==="option"&&t.option===e.key,pendingLabel:"Sending...",disabled:f,onClick:()=>{c(e.key)},children:e.label},e.key))}),void 0===m?null:(0,i.jsxs)("p",{className:"text-muted-foreground",children:[m.label," is the pick of ",e.from,": ",g.pick.why]})]}),(0,i.jsxs)("label",{className:"grid gap-1",children:[(0,i.jsx)("span",{children:void 0===g?"Your answer":"Note"}),(0,i.jsx)("textarea",{"data-testid":"overview-note",rows:2,value:r,onChange:e=>{s(e.target.value)},placeholder:void 0===g?"":"Optional, sent with your answer",className:"rounded-md border border-input bg-background p-2"})]}),void 0===a?null:(0,i.jsx)(d.f,{message:a,isFailure:!0}),(0,i.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,i.jsx)(o.f,{"data-testid":"overview-answer",variant:void 0===g?"primary":"secondary",isPending:t?.kind==="note",pendingLabel:"Sending...",disabled:f,onClick:()=>{c(void 0)},children:void 0===g?"Answer":"Send the note alone"}),void 0===g?(0,i.jsx)(o.f,{"data-testid":"overview-done",isPending:t?.kind==="done",pendingLabel:"Marking done...",disabled:f,onClick:u,children:"Done"}):null,(0,i.jsx)("button",{type:"button",onClick:v,disabled:f,className:"inline-flex h-9 items-center rounded-md px-4 text-muted-foreground hover:bg-accent disabled:opacity-70",children:"Back to the inbox"})]})]})}function c({entry:e}){return(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:[(0,i.jsx)("span",{className:"truncate",children:e.title}),(0,i.jsxs)("span",{className:"text-caption text-muted-foreground",children:["from ",e.from]})]})}function u({waitingCount:e,waiting:n,opened:r,openingId:t,failure:a,onOpen:s}){return(0,i.jsxs)("div",{className:"grid gap-6",children:[0===n.length?null:(0,i.jsxs)("section",{className:"grid gap-2",children:[(0,i.jsxs)("h2",{className:"text-section font-semibold",children:["Next · ",e]}),n.map(e=>(0,i.jsxs)("div",{className:"grid min-w-0 gap-2 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(c,{entry:e}),(0,i.jsx)(o.f,{"data-testid":"overview-open",isPending:t===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==t,onClick:()=>{s(e)},children:"Open"})]}),a?.deliveryId===e.deliveryId?(0,i.jsx)(d.f,{message:a.message,isFailure:!0}):null]},e.deliveryId))]}),0===r.length?null:(0,i.jsxs)("section",{className:"grid gap-2",children:[(0,i.jsxs)("h2",{className:"text-section font-semibold",children:["Opened, not yet dealt with · ",r.length]}),r.map(e=>(0,i.jsxs)("div",{className:"grid gap-2 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(c,{entry:e}),(0,i.jsx)(o.f,{"data-testid":"overview-deal",isPending:t===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==t,onClick:()=>{s(e)},children:"Answer or be done"})]}),a?.deliveryId===e.deliveryId?(0,i.jsx)(d.f,{message:a.message,isFailure:!0}):null]},e.deliveryId))]})]})}e.s(["InboxPanel",0,function({fleetId:e,inbox:r}){let[o,c]=(0,n.useState)(),[v,g]=(0,n.useState)(""),[f,m]=(0,n.useState)(),[p,h]=(0,n.useState)(),[b,w]=(0,n.useState)(),[x,y]=(0,n.useState)(),[j,k]=(0,n.useState)(),[,N]=(0,n.useTransition)(),S=({control:e,action:i,said:n})=>{h(e),y(void 0),N(async()=>{let e=await i();h(void 0),e.isOk?(c(void 0),k(n)):y(e.message)})};if(void 0!==o){var O;let n;return(0,i.jsx)(l,{delivery:o,meetingHref:void 0===o.meetingId?void 0:(n=new URLSearchParams({fleet:(O={fleetId:e,meetingId:o.meetingId}).fleetId,...void 0===O.cursor?{}:{cursor:O.cursor}}),`/meetings/${encodeURIComponent(O.meetingId)}?${n.toString()}`),note:v,working:p,failure:x,onNoteChange:g,onAnswer:i=>{S({control:void 0===i?{kind:"note"}:{kind:"option",option:i},action:()=>t({fleet:e,deliveryId:o.deliveryId,input:{questionId:o.question?.id,option:i,note:v}}),said:`Your answer went to ${o.from}.`})},onDone:()=>{S({control:{kind:"done"},action:()=>a(e,o.deliveryId),said:`Done with “${o.title}”.`})},onBack:()=>{c(void 0)}})}return(0,i.jsxs)("div",{className:"grid gap-4",children:[void 0===j?null:(0,i.jsx)(d.f,{message:j,isFailure:!1}),(0,i.jsx)(u,{waitingCount:r.waiting,waiting:r.deliveries,opened:r.opened,openingId:f,failure:b,onOpen:i=>{m(i.deliveryId),w(void 0),k(void 0),N(async()=>{let n=await s(e,i.deliveryId);(m(void 0),n.isOk)?(c(n.value),g(""),y(void 0),k(void 0)):w({deliveryId:i.deliveryId,message:n.message})})}})]})}],37642)},10660,e=>{var i=e.i(71645),n=e.i(18566);e.s(["LiveRefresh",0,function({fleetId:e}){let r;return r=(0,n.useRouter)(),(0,i.useEffect)(()=>{let i=new EventSource(`/overview/changes?fleet=${encodeURIComponent(e)}`);return i.onmessage=()=>{r.refresh()},()=>{i.close()}},[e,r]),(0,i.useEffect)(()=>{let i,n=()=>{let n="visible"===document.visibilityState&&document.hasFocus();n&&void 0===i?i=new EventSource(`/overview/focus?fleet=${encodeURIComponent(e)}`):n||void 0===i||(i.close(),i=void 0)};return n(),window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),()=>{window.removeEventListener("focus",n),window.removeEventListener("blur",n),document.removeEventListener("visibilitychange",n),i?.close()}},[e]),null}],10660)},55557,e=>{var i=e.i(43476),n=e.i(71645),r=e.i(95187);let t=(0,r.createServerReference)("60c364555acc9bbeb1195760a7ed0f489c8e011bfa",r.callServer,void 0,r.findSourceMapURL,"turnEmail");var a=e.i(38314),s=e.i(93633);let o=(0,r.createServerReference)("6067fb456daee8172103838ce816e90819f17e5337",r.callServer,void 0,r.findSourceMapURL,"turnOffWebPush"),d=(0,r.createServerReference)("60f69b430b53da4474309ff0cbd403823a67b2af4f",r.callServer,void 0,r.findSourceMapURL,"turnOnWebPush"),l=[[/Edg\//,"Edge"],[/Firefox\//,"Firefox"],[/Chrome\//,"Chrome"],[/Safari\//,"Safari"]],c=[[/iPhone|iPad/,"iOS"],[/Android/,"Android"],[/Mac OS X/,"macOS"],[/Windows/,"Windows"],[/Linux/,"Linux"]],u=(e,i)=>i.find(([i])=>i.test(e))?.[1],v="/wake-worker.js";async function g(){let e=await navigator.serviceWorker.getRegistration(v);return await e?.pushManager.getSubscription()??null}async function f(e){let i;if(await Notification.requestPermission()!=="granted")return{isOk:!1,message:"Your browser did not allow notifications from this site: allow them, then turn web push on again"};let n=await navigator.serviceWorker.register(v);return await navigator.serviceWorker.ready,{isOk:!0,value:await n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(i=atob(e.replaceAll("-","+").replaceAll("_","/")),Uint8Array.from(i,e=>e.charCodeAt(0)))})}}function m({fleetId:e,webPushKey:r,browsers:t}){let[v,p]=(0,n.useState)(!0),[h,b]=(0,n.useState)(),[w,x]=(0,n.useState)(),[y,j]=(0,n.useState)(),[,k]=(0,n.useTransition)();(0,n.useEffect)(()=>{"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?g().then(e=>{b(e?.endpoint)}):p(!1)},[]);let N=void 0!==h&&t.some(({endpoint:e,isGone:i})=>e===h&&!i);return(0,i.jsxs)("div",{className:"grid gap-2","data-testid":"overview-wake-web-push",children:[t.map(({endpoint:n,browser:r,addedAt:t,isGone:s})=>(0,i.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsxs)("span",{className:"truncate",children:["Web push in ",r,n===h?" · this browser":""]}),(0,i.jsx)("span",{className:"text-caption text-muted-foreground",children:s?"No longer takes wakes: its push service ended them. Turn web push on again in that browser, or remove it.":`On since ${new Date(t).toLocaleDateString()}: it tells you when something waits in this fleet, with a link here. Never what waits.`})]}),(0,i.jsx)(a.f,{"data-testid":"overview-web-push-remove",isPending:w===n,pendingLabel:"Removing...",disabled:void 0!==w,onClick:()=>{x(n),j(void 0),k(async()=>{n===h&&(await (await g())?.unsubscribe(),b(void 0));let i=await o(e,n);x(void 0),i.isOk||j(i.message)})},children:"Remove"})]},n)),v?N?null:(0,i.jsx)("div",{children:(0,i.jsx)(a.f,{"data-testid":"overview-web-push-on",variant:"primary",isPending:"on"===w,pendingLabel:"Turning on...",disabled:void 0!==w,onClick:()=>{x("on"),j(void 0),k(async()=>{try{var i;let n,t,a=await f(r);if(!a.isOk)return void j(a.message);let s=function(e,i){let{endpoint:n,keys:r}=e,t=r?.p256dh,a=r?.auth;return void 0===n||void 0===t||void 0===a?void 0:{endpoint:n,keys:{p256dh:t,auth:a},browser:i}}(a.value.toJSON(),(i=navigator.userAgent,n=u(i,l),t=u(i,c),void 0===n?"A browser":void 0===t?n:`${n} on ${t}`));if(void 0===s)return void j("Your browser gave no push subscription: try again");let o=await d(e,s);o.isOk?b(s.endpoint):j(o.message)}catch{j("Your browser could not turn web push on: try again")}finally{x(void 0)}})},children:"Turn on web push in this browser"})}):(0,i.jsx)("p",{className:"text-caption text-muted-foreground",children:"This browser takes no web push."}),void 0===y?null:(0,i.jsx)(s.f,{message:y,isFailure:!0})]})}e.s(["WakePanel",0,function({fleetId:e,channels:r}){let[o,d]=(0,n.useTransition)(),[l,c]=(0,n.useState)(),{email:u,webPush:v}=r;return u.isOffered||null!==v.publicKey?(0,i.jsxs)("section",{className:"grid gap-2","aria-labelledby":"overview-wake-heading",children:[(0,i.jsx)("h2",{id:"overview-wake-heading",className:"text-section font-semibold",children:"When something waits"}),u.isOffered?(0,i.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsx)("span",{children:"Email"}),(0,i.jsx)("span",{"data-testid":"overview-wake-email-state",className:"text-caption text-muted-foreground",children:u.isOn?"On: you get an email when something waits for you in this fleet, with a link here. Never what waits.":"Off: nothing tells you when something waits while you are away."})]}),(0,i.jsx)(a.f,{"data-testid":"overview-wake-email",isPending:o,pendingLabel:u.isOn?"Turning off...":"Turning on...",onClick:()=>{var i;i=!u.isOn,c(void 0),d(async()=>{let n=await t(e,i);n.isOk||c(n.message)})},children:u.isOn?"Turn off":"Turn on"})]}):null,void 0===l?null:(0,i.jsx)(s.f,{message:l,isFailure:!0}),null===v.publicKey?null:(0,i.jsx)(m,{fleetId:e,webPushKey:v.publicKey,browsers:v.browsers})]}):null}],55557)},38314,e=>{var i=e.i(43476);let n={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:r,variant:t="secondary",children:a,className:s="",disabled:o,...d}){return(0,i.jsx)("button",{...d,disabled:!0===o||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${n[t]} ${s}`,children:e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),r]}):a})}])},93633,e=>{var i=e.i(43476);e.s(["f",0,function({message:e,isFailure:n}){return n?(0,i.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,i.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[95187,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return n.callServer},createServerReference:function(){return c.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let n=e.r(32120),i=e.r(92245),c=e.r(35326)},84821,e=>{var t=e.i(43476),r=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,r.f)(a);var n=e.i(60382),i=e.i(30186),c=e.i(72474),l=e.i(68423),d=e.i(71773);function o({switcher:e,account:r,onSearch:a,searchLabel:u="Search or jump to",children:h,actions:m,className:f}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,d.f)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",f),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(n.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),h]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[m,a?(0,t.jsxs)(i.f,{size:"sm",icon:(0,t.jsx)(s,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:a,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,t.jsx)(c.f,{children:"⌘K"})]}):null,(0,t.jsx)(l.AvatarMenu,{...r})]})]})}var u=e.i(18566),h=e.i(71645),m=e.i(95187);let f=(0,m.createServerReference)("404a6fe925a7b9f3a666fe6efebf5bf6e8ec052ac8",m.callServer,void 0,m.findSourceMapURL,"setTheme"),p=["light","dark","system"];var x=e.i(65894);let g=[{key:"overview",label:"Overview",path:"/overview"},{key:"outside-parties",label:"Outside parties",path:"/outside-parties"},{key:"parties",label:"Parties",path:"/parties"}];function b({fleetId:e}){let r=(0,u.usePathname)();return(0,t.jsx)("nav",{"aria-label":"Gateway",className:"flex shrink-0 items-center gap-1",children:g.map(({key:a,label:s,path:n})=>{let i=r===n||r.startsWith(`${n}/`);return(0,t.jsx)("a",{href:(0,x.f)(n,e),"data-testid":`frame-tab-${a}`,"aria-current":i?"page":void 0,className:`whitespace-nowrap rounded-md px-2 py-1 text-sm ${i?"bg-accent font-semibold":"text-muted-foreground hover:bg-accent"}`,children:s},a)})})}e.s(["GatewayHeader",0,function({switchers:e,email:r,accountUrl:a,theme:s}){let i=(0,u.useSearchParams)().get("fleet"),c=e.find(({fleet:e})=>e.id===i)??e[0],[d,m]=(0,h.useState)(s),[x,g]=(0,h.useState)(!1),v=(0,h.useRef)(null),j={name:r,signedInAs:"account",accountUrl:a,theme:d,themes:p,hasTheme:!0,onThemeChange:e=>{let t;m(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),f(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{g(!0),v.current?.requestSubmit()},isSigningOut:x};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("form",{ref:v,method:"post",action:"/sign-in/end",hidden:!0}),(0,t.jsx)(o,{switcher:c,account:j,className:"max-sm:hidden",children:void 0===c?null:(0,t.jsx)(b,{fleetId:c.fleet.id})}),(0,t.jsxs)("header",{className:"sticky top-0 z-30 flex h-14 shrink-0 items-center gap-3 border-b border-border bg-background px-4 sm:hidden",children:[void 0===c?null:(0,t.jsx)(n.AppSwitcher,{switcher:c,layout:"compact",className:"min-w-0"}),void 0===c?null:(0,t.jsx)(b,{fleetId:c.fleet.id}),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)(l.AvatarMenuSheet,{...j})]})]})}],84821)},65894,e=>{e.s(["f",0,function(e,t){let[r="",a=""]=e.split("?"),s=new URLSearchParams(a);return s.set("fleet",t),`${r}?${s.toString()}`}])}],18566,(e,t,r)=>{t.exports=e.r(76562)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[95187,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return n.callServer},createServerReference:function(){return c.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let n=e.r(32120),i=e.r(92245),c=e.r(35326)},84821,e=>{var t=e.i(43476),r=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,r.f)(a);var n=e.i(60382),i=e.i(30186),c=e.i(72474),l=e.i(68423),d=e.i(71773);function o({switcher:e,account:r,onSearch:a,searchLabel:u="Search or jump to",children:h,actions:m,className:f}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,d.f)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",f),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(n.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),h]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[m,a?(0,t.jsxs)(i.f,{size:"sm",icon:(0,t.jsx)(s,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:a,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,t.jsx)(c.f,{children:"⌘K"})]}):null,(0,t.jsx)(l.AvatarMenu,{...r})]})]})}var u=e.i(18566),h=e.i(71645),m=e.i(95187);let f=(0,m.createServerReference)("4014cabd1a393a5ea041c3f3ba58bfec7066ad4931",m.callServer,void 0,m.findSourceMapURL,"setTheme"),p=["light","dark","system"];var x=e.i(65894);let g=[{key:"overview",label:"Overview",path:"/overview"},{key:"outside-parties",label:"Outside parties",path:"/outside-parties"},{key:"parties",label:"Parties",path:"/parties"}];function b({fleetId:e}){let r=(0,u.usePathname)();return(0,t.jsx)("nav",{"aria-label":"Gateway",className:"flex shrink-0 items-center gap-1",children:g.map(({key:a,label:s,path:n})=>{let i=r===n||r.startsWith(`${n}/`);return(0,t.jsx)("a",{href:(0,x.f)(n,e),"data-testid":`frame-tab-${a}`,"aria-current":i?"page":void 0,className:`whitespace-nowrap rounded-md px-2 py-1 text-sm ${i?"bg-accent font-semibold":"text-muted-foreground hover:bg-accent"}`,children:s},a)})})}e.s(["GatewayHeader",0,function({switchers:e,email:r,accountUrl:a,theme:s}){let i=(0,u.useSearchParams)().get("fleet"),c=e.find(({fleet:e})=>e.id===i)??e[0],[d,m]=(0,h.useState)(s),[x,g]=(0,h.useState)(!1),v=(0,h.useRef)(null),j={name:r,signedInAs:"account",accountUrl:a,theme:d,themes:p,hasTheme:!0,onThemeChange:e=>{let t;m(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),f(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{g(!0),v.current?.requestSubmit()},isSigningOut:x};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("form",{ref:v,method:"post",action:"/sign-in/end",hidden:!0}),(0,t.jsx)(o,{switcher:c,account:j,className:"max-sm:hidden",children:void 0===c?null:(0,t.jsx)(b,{fleetId:c.fleet.id})}),(0,t.jsxs)("header",{className:"sticky top-0 z-30 flex h-14 shrink-0 items-center gap-3 border-b border-border bg-background px-4 sm:hidden",children:[void 0===c?null:(0,t.jsx)(n.AppSwitcher,{switcher:c,layout:"compact",className:"min-w-0"}),void 0===c?null:(0,t.jsx)(b,{fleetId:c.fleet.id}),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)(l.AvatarMenuSheet,{...j})]})]})}],84821)},65894,e=>{e.s(["f",0,function(e,t){let[r="",a=""]=e.split("?"),s=new URLSearchParams(a);return s.set("fleet",t),`${r}?${s.toString()}`}])}],18566,(e,t,r)=>{t.exports=e.r(76562)}]);
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21611,e=>{var r=e.i(43476),d=e.i(71645),n=e.i(65894),s=e.i(28008),t=e.i(30402),a=e.i(94984),i=e.i(65818),o=e.i(58107),l=e.i(90526),c=e.i(95187);let u=(0,c.createServerReference)("60b57eca1e0f69eb80ba9513020f68bc56ce52970c",c.callServer,void 0,c.findSourceMapURL,"addA2aClient"),p={kind:"idle"};function m({name:e,bearer:d,fleetId:s}){return(0,r.jsxs)("section",{className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-added",children:[(0,r.jsxs)("h2",{className:"text-section font-semibold",children:[e," is added"]}),(0,r.jsx)("p",{children:"Hand its client this bearer now. It is shown only once: the gateway keeps no copy it can show again."}),(0,r.jsx)("code",{className:"break-all rounded-md border border-border bg-background px-3 py-2 font-mono text-code","data-testid":"add-a2a-client-bearer",children:d}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:(0,n.f)(`/outside-parties/${encodeURIComponent(e)}`,s),className:"text-primary hover:underline",children:"Its card addresses"})})]})}e.s(["A2aClientForm",0,function({fleetId:e,requestId:n,owners:c,scopes:h}){let[b,x]=(0,d.useActionState)(u,p);return"added"===b.kind?(0,r.jsx)(m,{name:b.name,bearer:b.bearer,fleetId:e}):(0,r.jsxs)("form",{action:x,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-form",children:[(0,r.jsx)("input",{type:"hidden",name:s.H,value:e}),(0,r.jsx)("input",{type:"hidden",name:"requestId",value:n}),(0,r.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A client"}),(0,r.jsxs)("label",{className:t.z,children:[(0,r.jsx)("span",{children:"Name, the proxy ship's"}),(0,r.jsx)("input",{className:t.w,name:"name",required:!0})]}),(0,r.jsx)(i.f,{choices:c.isOk?c.value:[],current:null,help:"A person ship or argo. It answers for this client.",refusal:c.isOk?void 0:c.refusal}),0===h.length?null:(0,r.jsxs)("fieldset",{className:"grid gap-2",children:[(0,r.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),h.map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-2",children:[(0,r.jsx)("input",{type:"checkbox",name:`${l.f}${e}`}),(0,r.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,r.jsx)("div",{children:(0,r.jsx)(o.f,{pending:"Adding…",children:"Add"})}),(0,r.jsx)(a.f,{state:"refused"===b.kind?b:{kind:"idle"}})]})}],21611)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let r="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",d={primary:`${r} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${r} border border-border bg-card hover:bg-accent`,destructive:`${r} bg-destructive text-destructive-foreground`};e.s(["x",0,d,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,58107,e=>{var r=e.i(43476);e.s(["f",0,function({state:e,testId:d}){switch(e.kind){case"idle":return null;case"done":return(0,r.jsx)("p",{role:"status","data-testid":d,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,r.jsx)("p",{role:"alert","data-testid":d,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}],94984);var d=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:s,kind:t="primary",testId:a}){let i=(0,d.useFormStatus)();return(0,r.jsx)("button",{type:"submit",className:n.x[t],disabled:i.pending,"aria-busy":i.pending,"data-testid":a,children:i.pending?s:e})}],58107)},65818,e=>{var r=e.i(43476),d=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:s,refusal:t}){let a=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,r.jsxs)("label",{className:d.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:d.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,r.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,a.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:t??s})]})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
@@ -1 +1 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),a=e.i(71645),n=e.i(28008),r=e.i(62052),t=e.i(30402),d=e.i(94984),l=e.i(65818),i=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("60e1372b310028e4e5b6cd63f53b452da1eb63833d",o.callServer,void 0,o.findSourceMapURL,"addA2aAgent"),m={kind:"idle"};e.s(["A2aAgentForm",0,function({fleetId:e,requestId:o,owners:p,scopes:x}){let[h,f]=(0,a.useActionState)(u,m),g="refused"===h.kind?h.fields:{};return(0,s.jsxs)("form",{action:f,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-agent-form",children:[(0,s.jsx)("input",{type:"hidden",name:n.H,value:e}),(0,s.jsx)("input",{type:"hidden",name:"requestId",value:o}),(0,s.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A agent"}),(0,s.jsx)(d.f,{state:"refused"===h.kind?h:{kind:"idle"}}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Name, the proxy ship's"}),(0,s.jsx)("input",{className:t.w,name:"name",defaultValue:g.name??"",required:!0})]}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Card address"}),(0,s.jsx)("input",{className:t.w,type:"url",name:"cardUrl",defaultValue:g.cardUrl??"",placeholder:"https://agent.example.com/.well-known/agent-card.json",required:!0}),(0,s.jsx)("span",{className:"text-caption text-muted-foreground",children:"The gateway reads the card first: an agent whose card it cannot state is not added."})]}),(0,s.jsx)(r.f,{legend:"The agent's credential",fields:g,noneHelp:"The gateway sends no credential: for an agent that asks for none."}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Messages in flight at once"}),(0,s.jsx)("input",{className:t.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:g.concurrencyLimit??"4"})]}),(0,s.jsx)(l.f,{choices:p.isOk?p.value:[],current:null,help:"A person ship or argo. It answers for this agent.",refusal:p.isOk?void 0:p.refusal}),0===x.length?null:(0,s.jsxs)("fieldset",{className:"grid gap-2",children:[(0,s.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),x.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"checkbox",name:`${c.f}${e}`,defaultChecked:void 0!==g[`${c.f}${e}`]}),(0,s.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,s.jsx)("div",{children:(0,s.jsx)(i.f,{pending:"Reading the card…",children:"Add"})})]})}],87722)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let s=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}];e.s(["x",0,s,"C",0,function(e){return s.find(({kind:s})=>s===e)?.kind??"bearer"}])},62052,e=>{var s=e.i(43476),a=e.i(71645),n=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:t,noneHelp:d}){let[l,i]=(0,a.useState)((0,n.C)(t.credentialKind??""));return(0,s.jsxs)("fieldset",{className:"grid gap-3",children:[(0,s.jsx)("legend",{className:"font-medium",children:e}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Credential"}),(0,s.jsx)("select",{className:r.w,name:"credentialKind",value:l,onChange:e=>{i((0,n.C)(e.target.value))},children:n.x.map(({kind:e,label:a})=>(0,s.jsx)("option",{value:e,children:a},e))})]}),"clientCredentials"===l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client id"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:t.clientId??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client secret"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Issuer"}),(0,s.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:t.issuer??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Scope"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:t.scope??""})]})]}):"bearer"===l?(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Bearer token"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"token"})]}):(0,s.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},30402,e=>{let s="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",a={primary:`${s} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${s} border border-border bg-card hover:bg-accent`,destructive:`${s} bg-destructive text-destructive-foreground`};e.s(["x",0,a,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,58107,e=>{var s=e.i(43476);e.s(["f",0,function({state:e,testId:a}){switch(e.kind){case"idle":return null;case"done":return(0,s.jsx)("p",{role:"status","data-testid":a,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,s.jsx)("p",{role:"alert","data-testid":a,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}],94984);var a=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:r,kind:t="primary",testId:d}){let l=(0,a.useFormStatus)();return(0,s.jsx)("button",{type:"submit",className:n.x[t],disabled:l.pending,"aria-busy":l.pending,"data-testid":d,children:l.pending?r:e})}],58107)},65818,e=>{var s=e.i(43476),a=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:r,refusal:t}){let d=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,s.jsxs)("label",{className:a.z,children:[(0,s.jsx)("span",{children:"Owner"}),(0,s.jsxs)("select",{className:a.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,s.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,d.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:t??r})]})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),a=e.i(71645),n=e.i(28008),r=e.i(62052),t=e.i(30402),d=e.i(94984),l=e.i(65818),i=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("60152c0945a891c9afc01146ee42d7764b007672bb",o.callServer,void 0,o.findSourceMapURL,"addA2aAgent"),m={kind:"idle"};e.s(["A2aAgentForm",0,function({fleetId:e,requestId:o,owners:p,scopes:x}){let[h,f]=(0,a.useActionState)(u,m),g="refused"===h.kind?h.fields:{};return(0,s.jsxs)("form",{action:f,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-agent-form",children:[(0,s.jsx)("input",{type:"hidden",name:n.H,value:e}),(0,s.jsx)("input",{type:"hidden",name:"requestId",value:o}),(0,s.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A agent"}),(0,s.jsx)(d.f,{state:"refused"===h.kind?h:{kind:"idle"}}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Name, the proxy ship's"}),(0,s.jsx)("input",{className:t.w,name:"name",defaultValue:g.name??"",required:!0})]}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Card address"}),(0,s.jsx)("input",{className:t.w,type:"url",name:"cardUrl",defaultValue:g.cardUrl??"",placeholder:"https://agent.example.com/.well-known/agent-card.json",required:!0}),(0,s.jsx)("span",{className:"text-caption text-muted-foreground",children:"The gateway reads the card first: an agent whose card it cannot state is not added."})]}),(0,s.jsx)(r.f,{legend:"The agent's credential",fields:g,noneHelp:"The gateway sends no credential: for an agent that asks for none."}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Messages in flight at once"}),(0,s.jsx)("input",{className:t.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:g.concurrencyLimit??"4"})]}),(0,s.jsx)(l.f,{choices:p.isOk?p.value:[],current:null,help:"A person ship or argo. It answers for this agent.",refusal:p.isOk?void 0:p.refusal}),0===x.length?null:(0,s.jsxs)("fieldset",{className:"grid gap-2",children:[(0,s.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),x.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"checkbox",name:`${c.f}${e}`,defaultChecked:void 0!==g[`${c.f}${e}`]}),(0,s.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,s.jsx)("div",{children:(0,s.jsx)(i.f,{pending:"Reading the card…",children:"Add"})})]})}],87722)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let s=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}];e.s(["x",0,s,"C",0,function(e){return s.find(({kind:s})=>s===e)?.kind??"bearer"}])},62052,e=>{var s=e.i(43476),a=e.i(71645),n=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:t,noneHelp:d}){let[l,i]=(0,a.useState)((0,n.C)(t.credentialKind??""));return(0,s.jsxs)("fieldset",{className:"grid gap-3",children:[(0,s.jsx)("legend",{className:"font-medium",children:e}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Credential"}),(0,s.jsx)("select",{className:r.w,name:"credentialKind",value:l,onChange:e=>{i((0,n.C)(e.target.value))},children:n.x.map(({kind:e,label:a})=>(0,s.jsx)("option",{value:e,children:a},e))})]}),"clientCredentials"===l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client id"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:t.clientId??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client secret"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Issuer"}),(0,s.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:t.issuer??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Scope"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:t.scope??""})]})]}):"bearer"===l?(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Bearer token"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"token"})]}):(0,s.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},30402,e=>{let s="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",a={primary:`${s} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${s} border border-border bg-card hover:bg-accent`,destructive:`${s} bg-destructive text-destructive-foreground`};e.s(["x",0,a,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,58107,e=>{var s=e.i(43476);e.s(["f",0,function({state:e,testId:a}){switch(e.kind){case"idle":return null;case"done":return(0,s.jsx)("p",{role:"status","data-testid":a,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,s.jsx)("p",{role:"alert","data-testid":a,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}],94984);var a=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:r,kind:t="primary",testId:d}){let l=(0,a.useFormStatus)();return(0,s.jsx)("button",{type:"submit",className:n.x[t],disabled:l.pending,"aria-busy":l.pending,"data-testid":d,children:l.pending?r:e})}],58107)},65818,e=>{var s=e.i(43476),a=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:r,refusal:t}){let d=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,s.jsxs)("label",{className:a.z,children:[(0,s.jsx)("span",{children:"Owner"}),(0,s.jsxs)("select",{className:a.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,s.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,d.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:t??r})]})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
@@ -1 +1 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88374,e=>{let r=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}];e.s(["x",0,r,"C",0,function(e){return r.find(({kind:r})=>r===e)?.kind??"bearer"}])},30402,e=>{let r="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",s={primary:`${r} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${r} border border-border bg-card hover:bg-accent`,destructive:`${r} bg-destructive text-destructive-foreground`};e.s(["x",0,s,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},65818,e=>{var r=e.i(43476),s=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:a,refusal:i}){let t=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,r.jsxs)("label",{className:s.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:s.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,r.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,t.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:i??a})]})}])},83928,e=>{var r=e.i(43476),s=e.i(18566),n=e.i(71645),a=e.i(95187);let i=(0,a.createServerReference)("40410c3be086cb368625d9b0927b89d2861d392784",a.callServer,void 0,a.findSourceMapURL,"decideRequest");var t=e.i(88374),d=e.i(65818);let l=["messages:send","messages:receive"],o={"messages:send":"Send","messages:receive":"Receive","fleet:read":"Read the fleet"};var c=e.i(38314),u=e.i(93633);let p="rounded-md border border-input bg-background px-2 py-1.5";function m({scope:e,isLocked:s}){return(0,r.jsxs)("label",{className:"flex items-center gap-2",children:[s?(0,r.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,"aria-label":o[e]??e}):(0,r.jsx)("input",{type:"checkbox",name:"scope",value:e,"aria-label":o[e]??e}),(0,r.jsx)("span",{children:o[e]??e}),(0,r.jsx)("span",{className:"font-mono text-caption text-muted-foreground",children:e}),s?(0,r.jsx)("span",{className:"text-caption text-muted-foreground",children:"(always)"}):null]})}function b(e,r){let s=e.get(r);return"string"==typeof s?s:""}function g({request:e,heldScopes:s,owners:a,working:i,failure:o,onDecide:h}){let[x,v]=(0,n.useState)("bearer"),f=function(e){switch(e.subject.kind){case"client":return e.subject.clientName;case"server":return URL.canParse(e.subject.url)?new URL(e.subject.url).host:e.subject.url}}(e),j="server"===e.subject.kind;return(0,r.jsxs)("section",{className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,r.jsxs)("h2",{className:"text-heading font-semibold",children:["Approve ",f]}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();let r=new FormData(e.currentTarget),s=r.getAll("scope").filter(e=>"string"==typeof e);h({kind:"approve",name:b(r,"name"),ownerShipId:b(r,"ownerShipId"),scopes:s,server:j?{credentialKind:(0,t.C)(b(r,"credentialKind")),token:b(r,"token"),clientId:b(r,"clientId"),clientSecret:b(r,"clientSecret"),issuer:b(r,"issuer"),scope:b(r,"scope-requested"),concurrencyLimit:Number(b(r,"concurrencyLimit"))}:void 0})},className:"grid gap-3",children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Proxy ship's name"}),(0,r.jsx)("input",{name:"name",defaultValue:f.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),required:!0,className:p})]}),(0,r.jsx)(d.f,{choices:a.isOk?a.value:[],current:null,help:"A person ship or argo. It answers for this party.",refusal:a.isOk?void 0:a.refusal}),(0,r.jsxs)("fieldset",{className:"grid gap-1",children:[(0,r.jsx)("legend",{children:"Scopes"}),l.map(e=>(0,r.jsx)(m,{scope:e,isLocked:!0},e)),s.filter(e=>!l.includes(e)).map(e=>(0,r.jsx)(m,{scope:e,isLocked:!1},e))]}),j?(0,r.jsxs)("fieldset",{className:"grid gap-2",children:[(0,r.jsx)("legend",{children:"The server's credential"}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Credential"}),(0,r.jsx)("select",{name:"credentialKind",value:x,onChange:e=>{v((0,t.C)(e.target.value))},className:p,children:t.x.map(({kind:e,label:s})=>(0,r.jsx)("option",{value:e,children:s},e))})]}),"none"===x?null:"bearer"===x?(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Bearer token"}),(0,r.jsx)("input",{type:"password",name:"token",className:p})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client id"}),(0,r.jsx)("input",{name:"clientId",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client secret"}),(0,r.jsx)("input",{type:"password",name:"clientSecret",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Issuer"}),(0,r.jsx)("input",{type:"url",name:"issuer",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Scope"}),(0,r.jsx)("input",{name:"scope-requested",className:p})]})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Calls at once"}),(0,r.jsx)("input",{type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:4,className:p})]})]}):null,void 0===o?null:(0,r.jsx)(u.f,{message:o,isFailure:!0}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(c.f,{type:"submit",variant:"primary","data-testid":"overview-approve",isPending:"approve"===i,pendingLabel:"Approving...",disabled:void 0!==i,children:"Approve"}),(0,r.jsx)(c.f,{type:"button","data-testid":"overview-deny",isPending:"deny"===i,pendingLabel:"Denying...",disabled:void 0!==i,onClick:()=>{h({kind:"deny"})},children:"Deny"})]})]})]})}e.s(["DecisionPanel",0,function({fleetId:e,request:a,heldScopes:t,owners:d}){let l=(0,s.useRouter)(),[o,c]=(0,n.useState)(),[u,p]=(0,n.useState)(),[,m]=(0,n.useTransition)();return(0,r.jsx)(g,{request:a,heldScopes:t,owners:d,working:o,failure:u,onDecide:r=>{c(r.kind),p(void 0),m(async()=>{let s=await i({fleet:e,requestId:a.requestId,input:r});s.isOk?l.push(`/overview?${new URLSearchParams({fleet:e,decided:r.kind}).toString()}`):(c(void 0),p(s.message))})}})}],83928)},10660,e=>{var r=e.i(71645),s=e.i(18566);e.s(["LiveRefresh",0,function({fleetId:e}){let n;return n=(0,s.useRouter)(),(0,r.useEffect)(()=>{let r=new EventSource(`/overview/changes?fleet=${encodeURIComponent(e)}`);return r.onmessage=()=>{n.refresh()},()=>{r.close()}},[e,n]),(0,r.useEffect)(()=>{let r,s=()=>{let s="visible"===document.visibilityState&&document.hasFocus();s&&void 0===r?r=new EventSource(`/overview/focus?fleet=${encodeURIComponent(e)}`):s||void 0===r||(r.close(),r=void 0)};return s(),window.addEventListener("focus",s),window.addEventListener("blur",s),document.addEventListener("visibilitychange",s),()=>{window.removeEventListener("focus",s),window.removeEventListener("blur",s),document.removeEventListener("visibilitychange",s),r?.close()}},[e]),null}],10660)},38314,e=>{var r=e.i(43476);let s={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:n,variant:a="secondary",children:i,className:t="",disabled:d,...l}){return(0,r.jsx)("button",{...l,disabled:!0===d||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${s[a]} ${t}`,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),n]}):i})}])},93633,e=>{var r=e.i(43476);e.s(["f",0,function({message:e,isFailure:s}){return s?(0,r.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,r.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88374,e=>{let r=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}];e.s(["x",0,r,"C",0,function(e){return r.find(({kind:r})=>r===e)?.kind??"bearer"}])},30402,e=>{let r="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",s={primary:`${r} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${r} border border-border bg-card hover:bg-accent`,destructive:`${r} bg-destructive text-destructive-foreground`};e.s(["x",0,s,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},65818,e=>{var r=e.i(43476),s=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:a,refusal:i}){let t=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,r.jsxs)("label",{className:s.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:s.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,r.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,t.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:i??a})]})}])},83928,e=>{var r=e.i(43476),s=e.i(18566),n=e.i(71645),a=e.i(95187);let i=(0,a.createServerReference)("402b3765d265462ba53377de2f004c76f87c5e586e",a.callServer,void 0,a.findSourceMapURL,"decideRequest");var t=e.i(88374),d=e.i(65818);let l=["messages:send","messages:receive"],o={"messages:send":"Send","messages:receive":"Receive","fleet:read":"Read the fleet"};var c=e.i(38314),u=e.i(93633);let p="rounded-md border border-input bg-background px-2 py-1.5";function m({scope:e,isLocked:s}){return(0,r.jsxs)("label",{className:"flex items-center gap-2",children:[s?(0,r.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,"aria-label":o[e]??e}):(0,r.jsx)("input",{type:"checkbox",name:"scope",value:e,"aria-label":o[e]??e}),(0,r.jsx)("span",{children:o[e]??e}),(0,r.jsx)("span",{className:"font-mono text-caption text-muted-foreground",children:e}),s?(0,r.jsx)("span",{className:"text-caption text-muted-foreground",children:"(always)"}):null]})}function b(e,r){let s=e.get(r);return"string"==typeof s?s:""}function g({request:e,heldScopes:s,owners:a,working:i,failure:o,onDecide:h}){let[x,v]=(0,n.useState)("bearer"),f=function(e){switch(e.subject.kind){case"client":return e.subject.clientName;case"server":return URL.canParse(e.subject.url)?new URL(e.subject.url).host:e.subject.url}}(e),j="server"===e.subject.kind;return(0,r.jsxs)("section",{className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,r.jsxs)("h2",{className:"text-heading font-semibold",children:["Approve ",f]}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();let r=new FormData(e.currentTarget),s=r.getAll("scope").filter(e=>"string"==typeof e);h({kind:"approve",name:b(r,"name"),ownerShipId:b(r,"ownerShipId"),scopes:s,server:j?{credentialKind:(0,t.C)(b(r,"credentialKind")),token:b(r,"token"),clientId:b(r,"clientId"),clientSecret:b(r,"clientSecret"),issuer:b(r,"issuer"),scope:b(r,"scope-requested"),concurrencyLimit:Number(b(r,"concurrencyLimit"))}:void 0})},className:"grid gap-3",children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Proxy ship's name"}),(0,r.jsx)("input",{name:"name",defaultValue:f.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),required:!0,className:p})]}),(0,r.jsx)(d.f,{choices:a.isOk?a.value:[],current:null,help:"A person ship or argo. It answers for this party.",refusal:a.isOk?void 0:a.refusal}),(0,r.jsxs)("fieldset",{className:"grid gap-1",children:[(0,r.jsx)("legend",{children:"Scopes"}),l.map(e=>(0,r.jsx)(m,{scope:e,isLocked:!0},e)),s.filter(e=>!l.includes(e)).map(e=>(0,r.jsx)(m,{scope:e,isLocked:!1},e))]}),j?(0,r.jsxs)("fieldset",{className:"grid gap-2",children:[(0,r.jsx)("legend",{children:"The server's credential"}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Credential"}),(0,r.jsx)("select",{name:"credentialKind",value:x,onChange:e=>{v((0,t.C)(e.target.value))},className:p,children:t.x.map(({kind:e,label:s})=>(0,r.jsx)("option",{value:e,children:s},e))})]}),"none"===x?null:"bearer"===x?(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Bearer token"}),(0,r.jsx)("input",{type:"password",name:"token",className:p})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client id"}),(0,r.jsx)("input",{name:"clientId",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client secret"}),(0,r.jsx)("input",{type:"password",name:"clientSecret",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Issuer"}),(0,r.jsx)("input",{type:"url",name:"issuer",className:p})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Scope"}),(0,r.jsx)("input",{name:"scope-requested",className:p})]})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Calls at once"}),(0,r.jsx)("input",{type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:4,className:p})]})]}):null,void 0===o?null:(0,r.jsx)(u.f,{message:o,isFailure:!0}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(c.f,{type:"submit",variant:"primary","data-testid":"overview-approve",isPending:"approve"===i,pendingLabel:"Approving...",disabled:void 0!==i,children:"Approve"}),(0,r.jsx)(c.f,{type:"button","data-testid":"overview-deny",isPending:"deny"===i,pendingLabel:"Denying...",disabled:void 0!==i,onClick:()=>{h({kind:"deny"})},children:"Deny"})]})]})]})}e.s(["DecisionPanel",0,function({fleetId:e,request:a,heldScopes:t,owners:d}){let l=(0,s.useRouter)(),[o,c]=(0,n.useState)(),[u,p]=(0,n.useState)(),[,m]=(0,n.useTransition)();return(0,r.jsx)(g,{request:a,heldScopes:t,owners:d,working:o,failure:u,onDecide:r=>{c(r.kind),p(void 0),m(async()=>{let s=await i({fleet:e,requestId:a.requestId,input:r});s.isOk?l.push(`/overview?${new URLSearchParams({fleet:e,decided:r.kind}).toString()}`):(c(void 0),p(s.message))})}})}],83928)},10660,e=>{var r=e.i(71645),s=e.i(18566);e.s(["LiveRefresh",0,function({fleetId:e}){let n;return n=(0,s.useRouter)(),(0,r.useEffect)(()=>{let r=new EventSource(`/overview/changes?fleet=${encodeURIComponent(e)}`);return r.onmessage=()=>{n.refresh()},()=>{r.close()}},[e,n]),(0,r.useEffect)(()=>{let r,s=()=>{let s="visible"===document.visibilityState&&document.hasFocus();s&&void 0===r?r=new EventSource(`/overview/focus?fleet=${encodeURIComponent(e)}`):s||void 0===r||(r.close(),r=void 0)};return s(),window.addEventListener("focus",s),window.addEventListener("blur",s),document.addEventListener("visibilitychange",s),()=>{window.removeEventListener("focus",s),window.removeEventListener("blur",s),document.removeEventListener("visibilitychange",s),r?.close()}},[e]),null}],10660)},38314,e=>{var r=e.i(43476);let s={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:n,variant:a="secondary",children:i,className:t="",disabled:d,...l}){return(0,r.jsx)("button",{...l,disabled:!0===d||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${s[a]} ${t}`,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),n]}):i})}])},93633,e=>{var r=e.i(43476);e.s(["f",0,function({message:e,isFailure:s}){return s?(0,r.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,r.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
@@ -1 +1 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${t} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${t} border border-border bg-card hover:bg-accent`,destructive:`${t} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,58107,e=>{var t=e.i(43476);e.s(["f",0,function({state:e,testId:n}){switch(e.kind){case"idle":return null;case"done":return(0,t.jsx)("p",{role:"status","data-testid":n,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,t.jsx)("p",{role:"alert","data-testid":n,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}],94984);var n=e.i(74080),r=e.i(30402);e.s(["f",0,function({children:e,pending:o,kind:d="primary",testId:i}){let s=(0,n.useFormStatus)();return(0,t.jsx)("button",{type:"submit",className:r.x[d],disabled:s.pending,"aria-busy":s.pending,"data-testid":i,children:s.pending?o:e})}],58107)},97e3,e=>{var t=e.i(43476);let n={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:r}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-full border px-2 text-caption ${n[e]}`,children:r})},"E",0,function({children:e,isMono:n=!1}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border border-border px-2 text-caption ${n?"font-mono":""}`,children:e})}])},17018,e=>{var t=e.i(43476),n=e.i(71645),r=e.i(28008),o=e.i(30402),d=e.i(94984),i=e.i(58107),s=e.i(95187);let a=(0,s.createServerReference)("601569a05001fe6b6107005126588e652707d2e845",s.callServer,void 0,s.findSourceMapURL,"switchOutsideParties");var c=e.i(97e3);e.s(["SwitchCard",0,function({isOn:e,canSwitch:s,fleetId:l}){let[u,b]=(0,n.useActionState)(a,r.Q);return(0,t.jsxs)("section",{className:`${o.r} grid gap-3`,"data-testid":"outside-parties-switch",children:[(0,t.jsxs)("h2",{className:"flex items-center gap-2 text-section font-semibold",children:["Outside parties are ",e?"on":"off"," ",e?(0,t.jsx)(c.T,{tone:"ok",label:"On"}):(0,t.jsx)(c.T,{tone:"ended",label:"Off"})]}),(0,t.jsx)("p",{className:"text-muted-foreground",children:e?"Approved outside MCP servers and clients reach the fleet, as its network rules allow.":"No outside MCP server or client reaches the fleet, and no request for one can be approved."}),"openNetwork"===u.kind?(0,t.jsxs)("form",{action:b,role:"alert",className:"grid gap-3 rounded-md border border-tone-attention-border bg-tone-attention-bg p-4 text-tone-attention-fg",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Open network"}),(0,t.jsx)("p",{children:u.message}),(0,t.jsx)("input",{type:"hidden",name:r.H,value:l}),(0,t.jsx)("input",{type:"hidden",name:"isOn",value:"true"}),(0,t.jsx)("input",{type:"hidden",name:"isOpenNetworkConfirmed",value:"true"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(i.f,{kind:"destructive",pending:"Turning on…",testId:"outside-parties-turn-on-anyway",children:"Turn on anyway"}),(0,t.jsx)("a",{className:o.x.secondary,href:"",children:"Keep off"})]})]}):s?(0,t.jsxs)("form",{action:b,children:[(0,t.jsx)("input",{type:"hidden",name:r.H,value:l}),(0,t.jsx)("input",{type:"hidden",name:"isOn",value:String(!e)}),(0,t.jsx)(i.f,{kind:e?"secondary":"primary",pending:e?"Turning off…":"Turning on…",testId:"outside-parties-turn",children:e?"Turn off":"Turn on"})]}):(0,t.jsxs)("p",{className:"text-muted-foreground",children:["Turning them on or off needs ","fleet:network","."]}),"openNetwork"===u.kind?null:(0,t.jsx)(d.f,{state:u})]})}],17018)}])})();
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${t} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${t} border border-border bg-card hover:bg-accent`,destructive:`${t} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,58107,e=>{var t=e.i(43476);e.s(["f",0,function({state:e,testId:n}){switch(e.kind){case"idle":return null;case"done":return(0,t.jsx)("p",{role:"status","data-testid":n,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,t.jsx)("p",{role:"alert","data-testid":n,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}],94984);var n=e.i(74080),r=e.i(30402);e.s(["f",0,function({children:e,pending:o,kind:d="primary",testId:i}){let s=(0,n.useFormStatus)();return(0,t.jsx)("button",{type:"submit",className:r.x[d],disabled:s.pending,"aria-busy":s.pending,"data-testid":i,children:s.pending?o:e})}],58107)},97e3,e=>{var t=e.i(43476);let n={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:r}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-full border px-2 text-caption ${n[e]}`,children:r})},"E",0,function({children:e,isMono:n=!1}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border border-border px-2 text-caption ${n?"font-mono":""}`,children:e})}])},17018,e=>{var t=e.i(43476),n=e.i(71645),r=e.i(28008),o=e.i(30402),d=e.i(94984),i=e.i(58107),s=e.i(95187);let a=(0,s.createServerReference)("60524375d4d6c00fa1586ec7e0298fe0edb3f68ddd",s.callServer,void 0,s.findSourceMapURL,"switchOutsideParties");var c=e.i(97e3);e.s(["SwitchCard",0,function({isOn:e,canSwitch:s,fleetId:l}){let[u,b]=(0,n.useActionState)(a,r.Q);return(0,t.jsxs)("section",{className:`${o.r} grid gap-3`,"data-testid":"outside-parties-switch",children:[(0,t.jsxs)("h2",{className:"flex items-center gap-2 text-section font-semibold",children:["Outside parties are ",e?"on":"off"," ",e?(0,t.jsx)(c.T,{tone:"ok",label:"On"}):(0,t.jsx)(c.T,{tone:"ended",label:"Off"})]}),(0,t.jsx)("p",{className:"text-muted-foreground",children:e?"Approved outside MCP servers and clients reach the fleet, as its network rules allow.":"No outside MCP server or client reaches the fleet, and no request for one can be approved."}),"openNetwork"===u.kind?(0,t.jsxs)("form",{action:b,role:"alert",className:"grid gap-3 rounded-md border border-tone-attention-border bg-tone-attention-bg p-4 text-tone-attention-fg",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Open network"}),(0,t.jsx)("p",{children:u.message}),(0,t.jsx)("input",{type:"hidden",name:r.H,value:l}),(0,t.jsx)("input",{type:"hidden",name:"isOn",value:"true"}),(0,t.jsx)("input",{type:"hidden",name:"isOpenNetworkConfirmed",value:"true"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(i.f,{kind:"destructive",pending:"Turning on…",testId:"outside-parties-turn-on-anyway",children:"Turn on anyway"}),(0,t.jsx)("a",{className:o.x.secondary,href:"",children:"Keep off"})]})]}):s?(0,t.jsxs)("form",{action:b,children:[(0,t.jsx)("input",{type:"hidden",name:r.H,value:l}),(0,t.jsx)("input",{type:"hidden",name:"isOn",value:String(!e)}),(0,t.jsx)(i.f,{kind:e?"secondary":"primary",pending:e?"Turning off…":"Turning on…",testId:"outside-parties-turn",children:e?"Turn off":"Turn on"})]}):(0,t.jsxs)("p",{className:"text-muted-foreground",children:["Turning them on or off needs ","fleet:network","."]}),"openNetwork"===u.kind?null:(0,t.jsx)(d.f,{state:u})]})}],17018)}])})();
package/web/.next/trace CHANGED
@@ -1 +1 @@
1
- [{"name":"generate-buildid","duration":459,"timestamp":91437348,"id":4,"parentId":1,"tags":{},"startTime":1793017426866,"traceId":"aab3ce72a679d867"},{"name":"load-custom-routes","duration":886,"timestamp":91438229,"id":5,"parentId":1,"tags":{},"startTime":1793017426866,"traceId":"aab3ce72a679d867"},{"name":"create-dist-dir","duration":8668,"timestamp":91439215,"id":6,"parentId":1,"tags":{},"startTime":1793017426867,"traceId":"aab3ce72a679d867"},{"name":"clean","duration":330,"timestamp":91448471,"id":7,"parentId":1,"tags":{},"startTime":1793017426877,"traceId":"aab3ce72a679d867"},{"name":"discover-routes","duration":5708,"timestamp":91466179,"id":8,"parentId":1,"tags":{},"startTime":1793017426894,"traceId":"aab3ce72a679d867"},{"name":"create-root-mapping","duration":106,"timestamp":91471962,"id":9,"parentId":1,"tags":{},"startTime":1793017426900,"traceId":"aab3ce72a679d867"},{"name":"generate-route-types","duration":16881,"timestamp":91473984,"id":10,"parentId":1,"tags":{},"startTime":1793017426902,"traceId":"aab3ce72a679d867"},{"name":"public-dir-conflict-check","duration":132,"timestamp":91490990,"id":11,"parentId":1,"tags":{},"startTime":1793017426919,"traceId":"aab3ce72a679d867"},{"name":"generate-routes-manifest","duration":2351,"timestamp":91491217,"id":12,"parentId":1,"tags":{},"startTime":1793017426919,"traceId":"aab3ce72a679d867"},{"name":"turbopack-module-graph","duration":3592000,"timestamp":91533412,"id":15,"parentId":1,"tags":{},"startTime":1793017426962,"traceId":"aab3ce72a679d867"},{"name":"turbopack-write-entrypoints","duration":4871000,"timestamp":91510633,"id":17,"parentId":1,"tags":{},"startTime":1793017426939,"traceId":"aab3ce72a679d867"},{"name":"turbopack-emit","duration":2116000,"timestamp":96395142,"id":19,"parentId":1,"tags":{},"startTime":1793017431823,"traceId":"aab3ce72a679d867"},{"name":"run-turbopack","duration":7062183,"timestamp":91496899,"id":14,"parentId":1,"tags":{},"startTime":1793017426925,"traceId":"aab3ce72a679d867"},{"name":"turbopack-persistence","duration":1266000,"timestamp":98560993,"id":23,"parentId":1,"tags":{"reason":"stop","snapshot_duration_ms":3.596234,"persist_duration_ms":1262.250745,"task_count":256,"bytes_written":73903695,"bytes_deleted":0},"startTime":1793017433989,"traceId":"aab3ce72a679d867"},{"name":"run-typescript","duration":6598657,"timestamp":98567202,"id":22,"parentId":1,"tags":{},"startTime":1793017433995,"traceId":"aab3ce72a679d867"},{"name":"generate-required-server-files","duration":692,"timestamp":105166441,"id":26,"parentId":1,"tags":{},"startTime":1793017440595,"traceId":"aab3ce72a679d867"},{"name":"check-static-error-page","duration":9504,"timestamp":105205957,"id":28,"parentId":27,"tags":{},"startTime":1793017440634,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":328273,"timestamp":105216474,"id":50,"parentId":30,"tags":{},"startTime":1793017440645,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":335994,"timestamp":105208873,"id":30,"parentId":27,"tags":{"page":"/_global-error"},"startTime":1793017440637,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":426539,"timestamp":105225237,"id":51,"parentId":40,"tags":{},"startTime":1793017440654,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":437833,"timestamp":105214031,"id":40,"parentId":27,"tags":{"page":"/overview/changes"},"startTime":1793017440642,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":450625,"timestamp":105215693,"id":49,"parentId":29,"tags":{},"startTime":1793017440644,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":459298,"timestamp":105207085,"id":29,"parentId":27,"tags":{"page":"/_not-found"},"startTime":1793017440635,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":454885,"timestamp":105229855,"id":54,"parentId":32,"tags":{},"startTime":1793017440658,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":472903,"timestamp":105211913,"id":32,"parentId":27,"tags":{"page":"/meetings/[meetingId]"},"startTime":1793017440640,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":470515,"timestamp":105225616,"id":52,"parentId":41,"tags":{},"startTime":1793017440654,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":482046,"timestamp":105214211,"id":41,"parentId":27,"tags":{"page":"/overview/focus"},"startTime":1793017440642,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":505491,"timestamp":105229904,"id":55,"parentId":33,"tags":{},"startTime":1793017440658,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":523359,"timestamp":105212108,"id":33,"parentId":27,"tags":{"page":"/outside-parties/[name]/change"},"startTime":1793017440640,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":511851,"timestamp":105229979,"id":57,"parentId":35,"tags":{},"startTime":1793017440658,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":529218,"timestamp":105212675,"id":35,"parentId":27,"tags":{"page":"/outside-parties/[name]/retire"},"startTime":1793017440641,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":516275,"timestamp":105230195,"id":58,"parentId":36,"tags":{},"startTime":1793017440658,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":533668,"timestamp":105212855,"id":36,"parentId":27,"tags":{"page":"/outside-parties/add-a2a-agent"},"startTime":1793017440641,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":523783,"timestamp":105230278,"id":59,"parentId":37,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":540925,"timestamp":105213219,"id":37,"parentId":27,"tags":{"page":"/outside-parties/add-a2a-client"},"startTime":1793017440641,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":529093,"timestamp":105230312,"id":60,"parentId":38,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":546024,"timestamp":105213433,"id":38,"parentId":27,"tags":{"page":"/outside-parties/add"},"startTime":1793017440642,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":534107,"timestamp":105230327,"id":61,"parentId":39,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":550643,"timestamp":105213848,"id":39,"parentId":27,"tags":{"page":"/outside-parties"},"startTime":1793017440642,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":542739,"timestamp":105230338,"id":62,"parentId":42,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":558807,"timestamp":105214346,"id":42,"parentId":27,"tags":{"page":"/overview"},"startTime":1793017440643,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":547994,"timestamp":105229798,"id":53,"parentId":31,"tags":{},"startTime":1793017440658,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":568522,"timestamp":105209344,"id":31,"parentId":27,"tags":{"page":"/gateway-off"},"startTime":1793017440638,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":548196,"timestamp":105230346,"id":63,"parentId":43,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":564128,"timestamp":105214476,"id":43,"parentId":27,"tags":{"page":"/overview/requests/[requestId]"},"startTime":1793017440643,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":552409,"timestamp":105230364,"id":65,"parentId":45,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":568074,"timestamp":105214751,"id":45,"parentId":27,"tags":{"page":"/sign-in/failed"},"startTime":1793017440643,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":557223,"timestamp":105229943,"id":56,"parentId":34,"tags":{},"startTime":1793017440658,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":574948,"timestamp":105212267,"id":34,"parentId":27,"tags":{"page":"/outside-parties/[name]"},"startTime":1793017440641,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":562686,"timestamp":105230371,"id":66,"parentId":46,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":578253,"timestamp":105214889,"id":46,"parentId":27,"tags":{"page":"/authorize/failed"},"startTime":1793017440643,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":566343,"timestamp":105230389,"id":68,"parentId":48,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":581483,"timestamp":105215313,"id":48,"parentId":27,"tags":{"page":"/authorize/waiting/approval"},"startTime":1793017440644,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":569842,"timestamp":105230355,"id":64,"parentId":44,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":585651,"timestamp":105214613,"id":44,"parentId":27,"tags":{"page":"/parties"},"startTime":1793017440643,"traceId":"aab3ce72a679d867"},{"name":"is-page-static","duration":573796,"timestamp":105230380,"id":67,"parentId":47,"tags":{},"startTime":1793017440659,"traceId":"aab3ce72a679d867"},{"name":"check-page","duration":589081,"timestamp":105215138,"id":47,"parentId":27,"tags":{"page":"/authorize/pick"},"startTime":1793017440643,"traceId":"aab3ce72a679d867"},{"name":"static-check","duration":599020,"timestamp":105205240,"id":27,"parentId":1,"tags":{},"startTime":1793017440634,"traceId":"aab3ce72a679d867"},{"name":"write-routes-manifest","duration":240,"timestamp":105804788,"id":70,"parentId":1,"tags":{},"startTime":1793017441233,"traceId":"aab3ce72a679d867"},{"name":"load-dotenv","duration":32,"timestamp":105812258,"id":73,"parentId":72,"tags":{},"startTime":1793017441241,"traceId":"aab3ce72a679d867"},{"name":"run-export-path-map","duration":489,"timestamp":105813328,"id":74,"parentId":72,"tags":{},"startTime":1793017441242,"traceId":"aab3ce72a679d867"},{"name":"next-export","duration":200387,"timestamp":105811355,"id":72,"parentId":1,"tags":{},"startTime":1793017441240,"traceId":"aab3ce72a679d867"},{"name":"move-exported-app-not-found-","duration":108,"timestamp":106013825,"id":75,"parentId":71,"tags":{},"startTime":1793017441442,"traceId":"aab3ce72a679d867"},{"name":"move-exported-app-global-error-","duration":413,"timestamp":106014045,"id":76,"parentId":71,"tags":{},"startTime":1793017441442,"traceId":"aab3ce72a679d867"},{"name":"static-generation","duration":208071,"timestamp":105806538,"id":71,"parentId":1,"tags":{},"startTime":1793017441235,"traceId":"aab3ce72a679d867"},{"name":"write-routes-manifest","duration":237,"timestamp":106014800,"id":77,"parentId":1,"tags":{},"startTime":1793017441443,"traceId":"aab3ce72a679d867"},{"name":"print-tree-view","duration":2789,"timestamp":106018801,"id":78,"parentId":1,"tags":{},"startTime":1793017441447,"traceId":"aab3ce72a679d867"},{"name":"write-route-bundle-stats","duration":14348,"timestamp":106021621,"id":79,"parentId":1,"tags":{},"startTime":1793017441450,"traceId":"aab3ce72a679d867"},{"name":"telemetry-flush","duration":480447,"timestamp":106035995,"id":80,"parentId":1,"tags":{},"startTime":1793017441464,"traceId":"aab3ce72a679d867"},{"name":"next-build","duration":15132097,"timestamp":91384408,"id":1,"tags":{"buildMode":"default","version":"16.4.2","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1793017426813,"traceId":"aab3ce72a679d867"}]
1
+ [{"name":"generate-buildid","duration":178,"timestamp":140127729,"id":4,"parentId":1,"tags":{},"startTime":1793104875637,"traceId":"c34dbaa37bd68654"},{"name":"load-custom-routes","duration":297,"timestamp":140128080,"id":5,"parentId":1,"tags":{},"startTime":1793104875637,"traceId":"c34dbaa37bd68654"},{"name":"create-dist-dir","duration":19992,"timestamp":140128414,"id":6,"parentId":1,"tags":{},"startTime":1793104875637,"traceId":"c34dbaa37bd68654"},{"name":"clean","duration":259,"timestamp":140148810,"id":7,"parentId":1,"tags":{},"startTime":1793104875658,"traceId":"c34dbaa37bd68654"},{"name":"discover-routes","duration":3156,"timestamp":140160055,"id":8,"parentId":1,"tags":{},"startTime":1793104875669,"traceId":"c34dbaa37bd68654"},{"name":"create-root-mapping","duration":36,"timestamp":140163246,"id":9,"parentId":1,"tags":{},"startTime":1793104875672,"traceId":"c34dbaa37bd68654"},{"name":"generate-route-types","duration":8594,"timestamp":140164381,"id":10,"parentId":1,"tags":{},"startTime":1793104875673,"traceId":"c34dbaa37bd68654"},{"name":"public-dir-conflict-check","duration":57,"timestamp":140173050,"id":11,"parentId":1,"tags":{},"startTime":1793104875682,"traceId":"c34dbaa37bd68654"},{"name":"generate-routes-manifest","duration":1543,"timestamp":140173162,"id":12,"parentId":1,"tags":{},"startTime":1793104875682,"traceId":"c34dbaa37bd68654"},{"name":"turbopack-module-graph","duration":2570000,"timestamp":140201415,"id":15,"parentId":1,"tags":{},"startTime":1793104875710,"traceId":"c34dbaa37bd68654"},{"name":"turbopack-write-entrypoints","duration":3481000,"timestamp":140186135,"id":17,"parentId":1,"tags":{},"startTime":1793104875695,"traceId":"c34dbaa37bd68654"},{"name":"turbopack-emit","duration":1519000,"timestamp":143677108,"id":19,"parentId":1,"tags":{},"startTime":1793104879186,"traceId":"c34dbaa37bd68654"},{"name":"run-turbopack","duration":5056187,"timestamp":140176894,"id":14,"parentId":1,"tags":{},"startTime":1793104875686,"traceId":"c34dbaa37bd68654"},{"name":"turbopack-persistence","duration":1438000,"timestamp":145234826,"id":23,"parentId":1,"tags":{"reason":"stop","snapshot_duration_ms":3.449131,"persist_duration_ms":1435.202399,"task_count":256,"bytes_written":73555519,"bytes_deleted":0},"startTime":1793104880744,"traceId":"c34dbaa37bd68654"},{"name":"run-typescript","duration":5008774,"timestamp":145241522,"id":22,"parentId":1,"tags":{},"startTime":1793104880750,"traceId":"c34dbaa37bd68654"},{"name":"generate-required-server-files","duration":552,"timestamp":150250804,"id":26,"parentId":1,"tags":{},"startTime":1793104885760,"traceId":"c34dbaa37bd68654"},{"name":"check-static-error-page","duration":8731,"timestamp":150282566,"id":28,"parentId":27,"tags":{},"startTime":1793104885791,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":197168,"timestamp":150292120,"id":50,"parentId":30,"tags":{},"startTime":1793104885801,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":204799,"timestamp":150284616,"id":30,"parentId":27,"tags":{"page":"/_global-error"},"startTime":1793104885793,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":273234,"timestamp":150298229,"id":52,"parentId":41,"tags":{},"startTime":1793104885807,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":281116,"timestamp":150290428,"id":41,"parentId":27,"tags":{"page":"/overview/focus"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":317524,"timestamp":150291568,"id":49,"parentId":29,"tags":{},"startTime":1793104885800,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":325812,"timestamp":150283353,"id":29,"parentId":27,"tags":{"page":"/_not-found"},"startTime":1793104885792,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":312387,"timestamp":150301207,"id":54,"parentId":32,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":324358,"timestamp":150289299,"id":32,"parentId":27,"tags":{"page":"/meetings/[meetingId]"},"startTime":1793104885798,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":322588,"timestamp":150301165,"id":53,"parentId":31,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":338958,"timestamp":150284851,"id":31,"parentId":27,"tags":{"page":"/gateway-off"},"startTime":1793104885794,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":326933,"timestamp":150301244,"id":55,"parentId":33,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":338762,"timestamp":150289458,"id":33,"parentId":27,"tags":{"page":"/outside-parties/[name]/change"},"startTime":1793104885798,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":333038,"timestamp":150301265,"id":56,"parentId":34,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":344765,"timestamp":150289577,"id":34,"parentId":27,"tags":{"page":"/outside-parties/[name]"},"startTime":1793104885798,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":337996,"timestamp":150298033,"id":51,"parentId":40,"tags":{},"startTime":1793104885807,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":345759,"timestamp":150290306,"id":40,"parentId":27,"tags":{"page":"/overview/changes"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":334988,"timestamp":150301286,"id":57,"parentId":35,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":346583,"timestamp":150289719,"id":35,"parentId":27,"tags":{"page":"/outside-parties/[name]/retire"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":340707,"timestamp":150301491,"id":58,"parentId":36,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":352400,"timestamp":150289832,"id":36,"parentId":27,"tags":{"page":"/outside-parties/add-a2a-agent"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":340734,"timestamp":150301566,"id":60,"parentId":38,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":352250,"timestamp":150290068,"id":38,"parentId":27,"tags":{"page":"/outside-parties/add"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":346656,"timestamp":150301574,"id":61,"parentId":39,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":358094,"timestamp":150290196,"id":39,"parentId":27,"tags":{"page":"/outside-parties"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":347558,"timestamp":150301579,"id":62,"parentId":42,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":358639,"timestamp":150290520,"id":42,"parentId":27,"tags":{"page":"/overview"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":351085,"timestamp":150301592,"id":64,"parentId":44,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":362032,"timestamp":150290671,"id":44,"parentId":27,"tags":{"page":"/parties"},"startTime":1793104885800,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":351868,"timestamp":150301585,"id":63,"parentId":43,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":362878,"timestamp":150290599,"id":43,"parentId":27,"tags":{"page":"/overview/requests/[requestId]"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":354718,"timestamp":150301599,"id":65,"parentId":45,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":365594,"timestamp":150290756,"id":45,"parentId":27,"tags":{"page":"/sign-in/failed"},"startTime":1793104885800,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":361415,"timestamp":150301613,"id":67,"parentId":47,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":372169,"timestamp":150290900,"id":47,"parentId":27,"tags":{"page":"/authorize/pick"},"startTime":1793104885800,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":364382,"timestamp":150301606,"id":66,"parentId":46,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":375209,"timestamp":150290831,"id":46,"parentId":27,"tags":{"page":"/authorize/failed"},"startTime":1793104885800,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":364955,"timestamp":150301620,"id":68,"parentId":48,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":375404,"timestamp":150291200,"id":48,"parentId":27,"tags":{"page":"/authorize/waiting/approval"},"startTime":1793104885800,"traceId":"c34dbaa37bd68654"},{"name":"is-page-static","duration":388823,"timestamp":150301545,"id":59,"parentId":37,"tags":{},"startTime":1793104885810,"traceId":"c34dbaa37bd68654"},{"name":"check-page","duration":400458,"timestamp":150289940,"id":37,"parentId":27,"tags":{"page":"/outside-parties/add-a2a-client"},"startTime":1793104885799,"traceId":"c34dbaa37bd68654"},{"name":"static-check","duration":408547,"timestamp":150281880,"id":27,"parentId":1,"tags":{},"startTime":1793104885791,"traceId":"c34dbaa37bd68654"},{"name":"write-routes-manifest","duration":173,"timestamp":150690845,"id":70,"parentId":1,"tags":{},"startTime":1793104886200,"traceId":"c34dbaa37bd68654"},{"name":"load-dotenv","duration":19,"timestamp":150695774,"id":73,"parentId":72,"tags":{},"startTime":1793104886205,"traceId":"c34dbaa37bd68654"},{"name":"run-export-path-map","duration":300,"timestamp":150696481,"id":74,"parentId":72,"tags":{},"startTime":1793104886205,"traceId":"c34dbaa37bd68654"},{"name":"next-export","duration":149167,"timestamp":150695108,"id":72,"parentId":1,"tags":{},"startTime":1793104886204,"traceId":"c34dbaa37bd68654"},{"name":"move-exported-app-not-found-","duration":83,"timestamp":150845569,"id":75,"parentId":71,"tags":{},"startTime":1793104886354,"traceId":"c34dbaa37bd68654"},{"name":"move-exported-app-global-error-","duration":361,"timestamp":150845709,"id":76,"parentId":71,"tags":{},"startTime":1793104886355,"traceId":"c34dbaa37bd68654"},{"name":"static-generation","duration":154177,"timestamp":150692023,"id":71,"parentId":1,"tags":{},"startTime":1793104886201,"traceId":"c34dbaa37bd68654"},{"name":"write-routes-manifest","duration":154,"timestamp":150846349,"id":77,"parentId":1,"tags":{},"startTime":1793104886355,"traceId":"c34dbaa37bd68654"},{"name":"print-tree-view","duration":2133,"timestamp":150851238,"id":78,"parentId":1,"tags":{},"startTime":1793104886360,"traceId":"c34dbaa37bd68654"},{"name":"write-route-bundle-stats","duration":9527,"timestamp":150853394,"id":79,"parentId":1,"tags":{},"startTime":1793104886362,"traceId":"c34dbaa37bd68654"},{"name":"telemetry-flush","duration":485470,"timestamp":150862948,"id":80,"parentId":1,"tags":{},"startTime":1793104886372,"traceId":"c34dbaa37bd68654"},{"name":"next-build","duration":11638014,"timestamp":139710460,"id":1,"tags":{"buildMode":"default","version":"16.4.2","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1793104875219,"traceId":"c34dbaa37bd68654"}]
@@ -1 +1 @@
1
- [{"name":"turbopack-module-graph","duration":3592000,"timestamp":91533412,"id":15,"parentId":1,"tags":{},"startTime":1793017426962,"traceId":"aab3ce72a679d867"},{"name":"turbopack-write-entrypoints","duration":4871000,"timestamp":91510633,"id":17,"parentId":1,"tags":{},"startTime":1793017426939,"traceId":"aab3ce72a679d867"},{"name":"turbopack-emit","duration":2116000,"timestamp":96395142,"id":19,"parentId":1,"tags":{},"startTime":1793017431823,"traceId":"aab3ce72a679d867"},{"name":"run-turbopack","duration":7062183,"timestamp":91496899,"id":14,"parentId":1,"tags":{},"startTime":1793017426925,"traceId":"aab3ce72a679d867"},{"name":"turbopack-persistence","duration":1266000,"timestamp":98560993,"id":23,"parentId":1,"tags":{"reason":"stop","snapshot_duration_ms":3.596234,"persist_duration_ms":1262.250745,"task_count":256,"bytes_written":73903695,"bytes_deleted":0},"startTime":1793017433989,"traceId":"aab3ce72a679d867"},{"name":"run-typescript","duration":6598657,"timestamp":98567202,"id":22,"parentId":1,"tags":{},"startTime":1793017433995,"traceId":"aab3ce72a679d867"},{"name":"static-check","duration":599020,"timestamp":105205240,"id":27,"parentId":1,"tags":{},"startTime":1793017440634,"traceId":"aab3ce72a679d867"},{"name":"static-generation","duration":208071,"timestamp":105806538,"id":71,"parentId":1,"tags":{},"startTime":1793017441235,"traceId":"aab3ce72a679d867"},{"name":"telemetry-flush","duration":480447,"timestamp":106035995,"id":80,"parentId":1,"tags":{},"startTime":1793017441464,"traceId":"aab3ce72a679d867"},{"name":"next-build","duration":15132097,"timestamp":91384408,"id":1,"tags":{"buildMode":"default","version":"16.4.2","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1793017426813,"traceId":"aab3ce72a679d867"}]
1
+ [{"name":"turbopack-module-graph","duration":2570000,"timestamp":140201415,"id":15,"parentId":1,"tags":{},"startTime":1793104875710,"traceId":"c34dbaa37bd68654"},{"name":"turbopack-write-entrypoints","duration":3481000,"timestamp":140186135,"id":17,"parentId":1,"tags":{},"startTime":1793104875695,"traceId":"c34dbaa37bd68654"},{"name":"turbopack-emit","duration":1519000,"timestamp":143677108,"id":19,"parentId":1,"tags":{},"startTime":1793104879186,"traceId":"c34dbaa37bd68654"},{"name":"run-turbopack","duration":5056187,"timestamp":140176894,"id":14,"parentId":1,"tags":{},"startTime":1793104875686,"traceId":"c34dbaa37bd68654"},{"name":"turbopack-persistence","duration":1438000,"timestamp":145234826,"id":23,"parentId":1,"tags":{"reason":"stop","snapshot_duration_ms":3.449131,"persist_duration_ms":1435.202399,"task_count":256,"bytes_written":73555519,"bytes_deleted":0},"startTime":1793104880744,"traceId":"c34dbaa37bd68654"},{"name":"run-typescript","duration":5008774,"timestamp":145241522,"id":22,"parentId":1,"tags":{},"startTime":1793104880750,"traceId":"c34dbaa37bd68654"},{"name":"static-check","duration":408547,"timestamp":150281880,"id":27,"parentId":1,"tags":{},"startTime":1793104885791,"traceId":"c34dbaa37bd68654"},{"name":"static-generation","duration":154177,"timestamp":150692023,"id":71,"parentId":1,"tags":{},"startTime":1793104886201,"traceId":"c34dbaa37bd68654"},{"name":"telemetry-flush","duration":485470,"timestamp":150862948,"id":80,"parentId":1,"tags":{},"startTime":1793104886372,"traceId":"c34dbaa37bd68654"},{"name":"next-build","duration":11638014,"timestamp":139710460,"id":1,"tags":{"buildMode":"default","version":"16.4.2","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1793104875219,"traceId":"c34dbaa37bd68654"}]
@@ -1 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37642,e=>{var i=e.i(43476),n=e.i(71645),r=e.i(95187);let t=(0,r.createServerReference)("40b12060e73abd2eeab7376bdfcf75ad8307166c14",r.callServer,void 0,r.findSourceMapURL,"answerDelivery"),a=(0,r.createServerReference)("6080c80d67b08e6b6ab28bf7d9d999f423f3a67e82",r.callServer,void 0,r.findSourceMapURL,"doneDelivery"),s=(0,r.createServerReference)("60b0e657af06e6ae327d2ececfc385dbf4f7a6f51e",r.callServer,void 0,r.findSourceMapURL,"openDelivery");var o=e.i(38314),d=e.i(93633);function l({delivery:e,meetingHref:n,note:r,working:t,failure:a,onNoteChange:s,onAnswer:c,onDone:u,onBack:v}){let{question:g}=e,f=void 0!==t,m=g?.options.find(e=>e.key===g.pick.option);return(0,i.jsxs)("section",{"data-testid":"overview-delivery",className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,i.jsxs)("span",{className:"text-caption text-muted-foreground",children:[e.from," · ",new Date(e.sentAt).toUTCString()]}),(0,i.jsx)("h2",{className:"text-heading font-semibold",children:g?.title??e.title}),void 0===n?null:(0,i.jsx)("a",{"data-testid":"overview-meeting",href:n,className:"inline-flex h-9 items-center justify-self-start rounded-md bg-primary px-4 text-primary-foreground hover:bg-primary-hover",children:"Go to the meeting"}),void 0===g?(0,i.jsx)("pre",{className:"whitespace-pre-wrap rounded-md bg-muted p-3 font-mono text-caption",children:e.payload}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"whitespace-pre-wrap",children:g.context}),(0,i.jsx)("div",{className:"flex flex-wrap gap-2",children:g.options.map(e=>(0,i.jsx)(o.f,{title:e.detail,variant:e.key===g.pick.option?"primary":"secondary",className:e.key===g.pick.option?"outline-2 outline-offset-2 outline-dashed outline-ring":"",isPending:t?.kind==="option"&&t.option===e.key,pendingLabel:"Sending...",disabled:f,onClick:()=>{c(e.key)},children:e.label},e.key))}),void 0===m?null:(0,i.jsxs)("p",{className:"text-muted-foreground",children:[m.label," is the pick of ",e.from,": ",g.pick.why]})]}),(0,i.jsxs)("label",{className:"grid gap-1",children:[(0,i.jsx)("span",{children:void 0===g?"Your answer":"Note"}),(0,i.jsx)("textarea",{"data-testid":"overview-note",rows:2,value:r,onChange:e=>{s(e.target.value)},placeholder:void 0===g?"":"Optional, sent with your answer",className:"rounded-md border border-input bg-background p-2"})]}),void 0===a?null:(0,i.jsx)(d.f,{message:a,isFailure:!0}),(0,i.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,i.jsx)(o.f,{"data-testid":"overview-answer",variant:void 0===g?"primary":"secondary",isPending:t?.kind==="note",pendingLabel:"Sending...",disabled:f,onClick:()=>{c(void 0)},children:void 0===g?"Answer":"Send the note alone"}),void 0===g?(0,i.jsx)(o.f,{"data-testid":"overview-done",isPending:t?.kind==="done",pendingLabel:"Marking done...",disabled:f,onClick:u,children:"Done"}):null,(0,i.jsx)("button",{type:"button",onClick:v,disabled:f,className:"inline-flex h-9 items-center rounded-md px-4 text-muted-foreground hover:bg-accent disabled:opacity-70",children:"Back to the inbox"})]})]})}function c({entry:e}){return(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:[(0,i.jsx)("span",{className:"truncate",children:e.title}),(0,i.jsxs)("span",{className:"text-caption text-muted-foreground",children:["from ",e.from]})]})}function u({waitingCount:e,waiting:n,opened:r,openingId:t,failure:a,onOpen:s}){return(0,i.jsxs)("div",{className:"grid gap-6",children:[0===n.length?null:(0,i.jsxs)("section",{className:"grid gap-2",children:[(0,i.jsxs)("h2",{className:"text-section font-semibold",children:["Next · ",e]}),n.map(e=>(0,i.jsxs)("div",{className:"grid gap-2 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(c,{entry:e}),(0,i.jsx)(o.f,{"data-testid":"overview-open",isPending:t===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==t,onClick:()=>{s(e)},children:"Open"})]}),a?.deliveryId===e.deliveryId?(0,i.jsx)(d.f,{message:a.message,isFailure:!0}):null]},e.deliveryId))]}),0===r.length?null:(0,i.jsxs)("section",{className:"grid gap-2",children:[(0,i.jsxs)("h2",{className:"text-section font-semibold",children:["Opened, not yet dealt with · ",r.length]}),r.map(e=>(0,i.jsxs)("div",{className:"grid gap-2 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(c,{entry:e}),(0,i.jsx)(o.f,{"data-testid":"overview-deal",isPending:t===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==t,onClick:()=>{s(e)},children:"Answer or be done"})]}),a?.deliveryId===e.deliveryId?(0,i.jsx)(d.f,{message:a.message,isFailure:!0}):null]},e.deliveryId))]})]})}e.s(["InboxPanel",0,function({fleetId:e,inbox:r}){let[o,c]=(0,n.useState)(),[v,g]=(0,n.useState)(""),[f,m]=(0,n.useState)(),[p,h]=(0,n.useState)(),[b,w]=(0,n.useState)(),[x,y]=(0,n.useState)(),[j,k]=(0,n.useState)(),[,N]=(0,n.useTransition)(),S=({control:e,action:i,said:n})=>{h(e),y(void 0),N(async()=>{let e=await i();h(void 0),e.isOk?(c(void 0),k(n)):y(e.message)})};if(void 0!==o){var O;let n;return(0,i.jsx)(l,{delivery:o,meetingHref:void 0===o.meetingId?void 0:(n=new URLSearchParams({fleet:(O={fleetId:e,meetingId:o.meetingId}).fleetId,...void 0===O.cursor?{}:{cursor:O.cursor}}),`/meetings/${encodeURIComponent(O.meetingId)}?${n.toString()}`),note:v,working:p,failure:x,onNoteChange:g,onAnswer:i=>{S({control:void 0===i?{kind:"note"}:{kind:"option",option:i},action:()=>t({fleet:e,deliveryId:o.deliveryId,input:{questionId:o.question?.id,option:i,note:v}}),said:`Your answer went to ${o.from}.`})},onDone:()=>{S({control:{kind:"done"},action:()=>a(e,o.deliveryId),said:`Done with “${o.title}”.`})},onBack:()=>{c(void 0)}})}return(0,i.jsxs)("div",{className:"grid gap-4",children:[void 0===j?null:(0,i.jsx)(d.f,{message:j,isFailure:!1}),(0,i.jsx)(u,{waitingCount:r.waiting,waiting:r.deliveries,opened:r.opened,openingId:f,failure:b,onOpen:i=>{m(i.deliveryId),w(void 0),k(void 0),N(async()=>{let n=await s(e,i.deliveryId);(m(void 0),n.isOk)?(c(n.value),g(""),y(void 0),k(void 0)):w({deliveryId:i.deliveryId,message:n.message})})}})]})}],37642)},10660,e=>{var i=e.i(71645),n=e.i(18566);e.s(["LiveRefresh",0,function({fleetId:e}){let r;return r=(0,n.useRouter)(),(0,i.useEffect)(()=>{let i=new EventSource(`/overview/changes?fleet=${encodeURIComponent(e)}`);return i.onmessage=()=>{r.refresh()},()=>{i.close()}},[e,r]),(0,i.useEffect)(()=>{let i,n=()=>{let n="visible"===document.visibilityState&&document.hasFocus();n&&void 0===i?i=new EventSource(`/overview/focus?fleet=${encodeURIComponent(e)}`):n||void 0===i||(i.close(),i=void 0)};return n(),window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),()=>{window.removeEventListener("focus",n),window.removeEventListener("blur",n),document.removeEventListener("visibilitychange",n),i?.close()}},[e]),null}],10660)},55557,e=>{var i=e.i(43476),n=e.i(71645),r=e.i(95187);let t=(0,r.createServerReference)("60df2c1d8349c08084aaa3874a2cc8e393b589f47e",r.callServer,void 0,r.findSourceMapURL,"turnEmail");var a=e.i(38314),s=e.i(93633);let o=(0,r.createServerReference)("60a0aa7e0455056ced1d7e9c709c3853888f2f0a44",r.callServer,void 0,r.findSourceMapURL,"turnOffWebPush"),d=(0,r.createServerReference)("600f2d111cc4c411b963093c32f0bc9784c11a437c",r.callServer,void 0,r.findSourceMapURL,"turnOnWebPush"),l=[[/Edg\//,"Edge"],[/Firefox\//,"Firefox"],[/Chrome\//,"Chrome"],[/Safari\//,"Safari"]],c=[[/iPhone|iPad/,"iOS"],[/Android/,"Android"],[/Mac OS X/,"macOS"],[/Windows/,"Windows"],[/Linux/,"Linux"]],u=(e,i)=>i.find(([i])=>i.test(e))?.[1],v="/wake-worker.js";async function g(){let e=await navigator.serviceWorker.getRegistration(v);return await e?.pushManager.getSubscription()??null}async function f(e){let i;if(await Notification.requestPermission()!=="granted")return{isOk:!1,message:"Your browser did not allow notifications from this site: allow them, then turn web push on again"};let n=await navigator.serviceWorker.register(v);return await navigator.serviceWorker.ready,{isOk:!0,value:await n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(i=atob(e.replaceAll("-","+").replaceAll("_","/")),Uint8Array.from(i,e=>e.charCodeAt(0)))})}}function m({fleetId:e,webPushKey:r,browsers:t}){let[v,p]=(0,n.useState)(!0),[h,b]=(0,n.useState)(),[w,x]=(0,n.useState)(),[y,j]=(0,n.useState)(),[,k]=(0,n.useTransition)();(0,n.useEffect)(()=>{"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?g().then(e=>{b(e?.endpoint)}):p(!1)},[]);let N=void 0!==h&&t.some(({endpoint:e,isGone:i})=>e===h&&!i);return(0,i.jsxs)("div",{className:"grid gap-2","data-testid":"overview-wake-web-push",children:[t.map(({endpoint:n,browser:r,addedAt:t,isGone:s})=>(0,i.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsxs)("span",{className:"truncate",children:["Web push in ",r,n===h?" · this browser":""]}),(0,i.jsx)("span",{className:"text-caption text-muted-foreground",children:s?"No longer takes wakes: its push service ended them. Turn web push on again in that browser, or remove it.":`On since ${new Date(t).toLocaleDateString()}: it tells you when something waits in this fleet, with a link here. Never what waits.`})]}),(0,i.jsx)(a.f,{"data-testid":"overview-web-push-remove",isPending:w===n,pendingLabel:"Removing...",disabled:void 0!==w,onClick:()=>{x(n),j(void 0),k(async()=>{n===h&&(await (await g())?.unsubscribe(),b(void 0));let i=await o(e,n);x(void 0),i.isOk||j(i.message)})},children:"Remove"})]},n)),v?N?null:(0,i.jsx)("div",{children:(0,i.jsx)(a.f,{"data-testid":"overview-web-push-on",variant:"primary",isPending:"on"===w,pendingLabel:"Turning on...",disabled:void 0!==w,onClick:()=>{x("on"),j(void 0),k(async()=>{try{var i;let n,t,a=await f(r);if(!a.isOk)return void j(a.message);let s=function(e,i){let{endpoint:n,keys:r}=e,t=r?.p256dh,a=r?.auth;return void 0===n||void 0===t||void 0===a?void 0:{endpoint:n,keys:{p256dh:t,auth:a},browser:i}}(a.value.toJSON(),(i=navigator.userAgent,n=u(i,l),t=u(i,c),void 0===n?"A browser":void 0===t?n:`${n} on ${t}`));if(void 0===s)return void j("Your browser gave no push subscription: try again");let o=await d(e,s);o.isOk?b(s.endpoint):j(o.message)}catch{j("Your browser could not turn web push on: try again")}finally{x(void 0)}})},children:"Turn on web push in this browser"})}):(0,i.jsx)("p",{className:"text-caption text-muted-foreground",children:"This browser takes no web push."}),void 0===y?null:(0,i.jsx)(s.f,{message:y,isFailure:!0})]})}e.s(["WakePanel",0,function({fleetId:e,channels:r}){let[o,d]=(0,n.useTransition)(),[l,c]=(0,n.useState)(),{email:u,webPush:v}=r;return u.isOffered||null!==v.publicKey?(0,i.jsxs)("section",{className:"grid gap-2","aria-labelledby":"overview-wake-heading",children:[(0,i.jsx)("h2",{id:"overview-wake-heading",className:"text-section font-semibold",children:"When something waits"}),u.isOffered?(0,i.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-border bg-card p-3",children:[(0,i.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,i.jsx)("span",{children:"Email"}),(0,i.jsx)("span",{"data-testid":"overview-wake-email-state",className:"text-caption text-muted-foreground",children:u.isOn?"On: you get an email when something waits for you in this fleet, with a link here. Never what waits.":"Off: nothing tells you when something waits while you are away."})]}),(0,i.jsx)(a.f,{"data-testid":"overview-wake-email",isPending:o,pendingLabel:u.isOn?"Turning off...":"Turning on...",onClick:()=>{var i;i=!u.isOn,c(void 0),d(async()=>{let n=await t(e,i);n.isOk||c(n.message)})},children:u.isOn?"Turn off":"Turn on"})]}):null,void 0===l?null:(0,i.jsx)(s.f,{message:l,isFailure:!0}),null===v.publicKey?null:(0,i.jsx)(m,{fleetId:e,webPushKey:v.publicKey,browsers:v.browsers})]}):null}],55557)},38314,e=>{var i=e.i(43476);let n={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent"};e.s(["f",0,function({isPending:e,pendingLabel:r,variant:t="secondary",children:a,className:s="",disabled:o,...d}){return(0,i.jsx)("button",{...d,disabled:!0===o||e,"aria-busy":e,className:`inline-flex h-9 items-center gap-2 rounded-md px-4 disabled:cursor-not-allowed disabled:opacity-70 ${n[t]} ${s}`,children:e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),r]}):a})}])},93633,e=>{var i=e.i(43476);e.s(["f",0,function({message:e,isFailure:n}){return n?(0,i.jsx)("p",{role:"alert","data-testid":"overview-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e}):(0,i.jsx)("p",{role:"status","data-testid":"overview-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e})}])}])})();
@@ -1 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21611,e=>{var d=e.i(43476),r=e.i(71645),n=e.i(65894),s=e.i(28008),t=e.i(30402),a=e.i(94984),i=e.i(65818),o=e.i(58107),l=e.i(90526),c=e.i(95187);let u=(0,c.createServerReference)("603cbf887d58be5debb93c1e2bfea0e8983e157c11",c.callServer,void 0,c.findSourceMapURL,"addA2aClient"),p={kind:"idle"};function m({name:e,bearer:r,fleetId:s}){return(0,d.jsxs)("section",{className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-added",children:[(0,d.jsxs)("h2",{className:"text-section font-semibold",children:[e," is added"]}),(0,d.jsx)("p",{children:"Hand its client this bearer now. It is shown only once: the gateway keeps no copy it can show again."}),(0,d.jsx)("code",{className:"break-all rounded-md border border-border bg-background px-3 py-2 font-mono text-code","data-testid":"add-a2a-client-bearer",children:r}),(0,d.jsx)("p",{children:(0,d.jsx)("a",{href:(0,n.f)(`/outside-parties/${encodeURIComponent(e)}`,s),className:"text-primary hover:underline",children:"Its card addresses"})})]})}e.s(["A2aClientForm",0,function({fleetId:e,requestId:n,owners:c,scopes:h}){let[b,x]=(0,r.useActionState)(u,p);return"added"===b.kind?(0,d.jsx)(m,{name:b.name,bearer:b.bearer,fleetId:e}):(0,d.jsxs)("form",{action:x,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-form",children:[(0,d.jsx)("input",{type:"hidden",name:s.H,value:e}),(0,d.jsx)("input",{type:"hidden",name:"requestId",value:n}),(0,d.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A client"}),(0,d.jsxs)("label",{className:t.z,children:[(0,d.jsx)("span",{children:"Name, the proxy ship's"}),(0,d.jsx)("input",{className:t.w,name:"name",required:!0})]}),(0,d.jsx)(i.f,{choices:c.isOk?c.value:[],current:null,help:"A person ship or argo. It answers for this client.",refusal:c.isOk?void 0:c.refusal}),0===h.length?null:(0,d.jsxs)("fieldset",{className:"grid gap-2",children:[(0,d.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),h.map(e=>(0,d.jsxs)("label",{className:"flex items-center gap-2",children:[(0,d.jsx)("input",{type:"checkbox",name:`${l.f}${e}`}),(0,d.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,d.jsx)("div",{children:(0,d.jsx)(o.f,{pending:"Adding…",children:"Add"})}),(0,d.jsx)(a.f,{state:"refused"===b.kind?b:{kind:"idle"}})]})}],21611)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let d="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",r={primary:`${d} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${d} border border-border bg-card hover:bg-accent`,destructive:`${d} bg-destructive text-destructive-foreground`};e.s(["x",0,r,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])},94984,58107,e=>{var d=e.i(43476);e.s(["f",0,function({state:e,testId:r}){switch(e.kind){case"idle":return null;case"done":return(0,d.jsx)("p",{role:"status","data-testid":r,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,d.jsx)("p",{role:"alert","data-testid":r,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}],94984);var r=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:s,kind:t="primary",testId:a}){let i=(0,r.useFormStatus)();return(0,d.jsx)("button",{type:"submit",className:n.x[t],disabled:i.pending,"aria-busy":i.pending,"data-testid":a,children:i.pending?s:e})}],58107)},65818,e=>{var d=e.i(43476),r=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:s,refusal:t}){let a=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,d.jsxs)("label",{className:r.z,children:[(0,d.jsx)("span",{children:"Owner"}),(0,d.jsxs)("select",{className:r.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,d.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,a.map(e=>(0,d.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,d.jsx)("span",{className:"text-muted-foreground",children:t??s})]})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();