@qredence/fleet 0.5.11 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/web/client/assets/action-swap-roll-COzQ86wm.js +1 -0
- package/dist/web/client/assets/agent-activity-svETLf_5.js +1 -0
- package/dist/web/client/assets/agent-disclosure-DAMuuGcM.js +1 -0
- package/dist/web/client/assets/analytics-stub-B6zGMuSV.js +1 -0
- package/dist/web/client/assets/{artifacts-panel-CQmFEF_H.js → artifacts-panel-HVjqBMyx.js} +1 -1
- package/dist/web/client/assets/button-C5wFDY5_.js +1 -0
- package/dist/web/client/assets/card-DA3Vnqay.js +1 -0
- package/dist/web/client/assets/{chat-yh02zgA7.js → chat-BhYseKd6.js} +7 -7
- package/dist/web/client/assets/{chat-command-palette-CmHTS3rs.js → chat-command-palette-LILDO_vG.js} +1 -1
- package/dist/web/client/assets/{citations-C_tPOJE_.js → citations-BPv8HIpf.js} +2 -2
- package/dist/web/client/assets/command-PhicLCoO.js +1 -0
- package/dist/web/client/assets/dialog-pBGUjAQ7.js +1 -0
- package/dist/web/client/assets/fleet-message-queue-fbYYwMj0.js +1 -0
- package/dist/web/client/assets/{fleet-pi-tool-renderer-BEDIO3al.js → fleet-pi-tool-renderer-BRgNnmaJ.js} +28 -28
- package/dist/web/client/assets/fleet-reasoning-panel-CjA2dwUJ.js +1 -0
- package/dist/web/client/assets/{fork-picker-dialog-ByBOGVsa.js → fork-picker-dialog-B7NNpVmW.js} +1 -1
- package/dist/web/client/assets/globals-CuIiqOTg.css +2 -0
- package/dist/web/client/assets/horizontal-resize-Cp3iHMH7.js +1 -0
- package/dist/web/client/assets/index-CSGplyr_.js +12 -0
- package/dist/web/client/assets/{input-0wwjWjKq.js → input-PcdubeKn.js} +1 -1
- package/dist/web/client/assets/input-group-C2HJEZvl.js +1 -0
- package/dist/web/client/assets/ipython-tool-CyuMOxz1.js +3 -0
- package/dist/web/client/assets/{markdown-code-CuQcR3UO.js → markdown-code-xNyjdZ4g.js} +1 -1
- package/dist/web/client/assets/{markdown-DInPmRUG.js → markdown-lvexwooo.js} +2 -2
- package/dist/web/client/assets/{model-selector-list-DsKTuAgS.js → model-selector-list-CoXX358G.js} +1 -1
- package/dist/web/client/assets/{notify-DgMKgZZW.js → notify-DxL0VD7Z.js} +1 -1
- package/dist/web/client/assets/openui-renderer-TLNe5e_Q.js +378 -0
- package/dist/web/client/assets/pencil-DcUwsKLn.js +1 -0
- package/dist/web/client/assets/prompt-input-fwP8TsgQ.js +1 -0
- package/dist/web/client/assets/{prompt-suggestions-Cc--lSNR.js → prompt-suggestions-BlGXmWS7.js} +1 -1
- package/dist/web/client/assets/provider-catalog-DYMFdbKc.js +1 -0
- package/dist/web/client/assets/provider-label-B4q5mI65.js +1 -0
- package/dist/web/client/assets/{repl-panel-DsPX04Xr.js → repl-panel-C5om8MGU.js} +1 -1
- package/dist/web/client/assets/{right-panel-registry-DewpBWHM.js → right-panel-registry-BBlxLxnx.js} +2 -2
- package/dist/web/client/assets/routes-XGsAIqBJ.js +16 -0
- package/dist/web/client/assets/settings-dialog-BSBasR3o.js +2 -0
- package/dist/web/client/assets/{subagent-chat-panel-DkVUumrP.js → subagent-chat-panel-oeLDPDAK.js} +1 -1
- package/dist/web/client/assets/{subagent-transcript-D8wmQxXe.js → subagent-transcript-DaVHjNUH.js} +1 -1
- package/dist/web/client/assets/{subagents-panel-BMp2Ego0.js → subagents-panel-D_aVgSCi.js} +1 -1
- package/dist/web/client/assets/surfaces-BhAXz9So.js +1 -0
- package/dist/web/client/assets/{switch-9rTeg6J6.js → switch-WhXeJNNY.js} +1 -1
- package/dist/web/client/assets/{toast-Bt9p2OL4.js → toast-D3c9XeGe.js} +1 -1
- package/dist/web/client/assets/{tool-result-DfnPN0FQ.js → tool-result-Cki8WUNc.js} +3 -3
- package/dist/web/client/assets/virtualized-turn-list-CdMa-ydT.js +6 -0
- package/dist/web/client/assets/workspace-panel-77bDbprs.js +1 -0
- package/dist/web/client/bundle-budget.json +6 -6
- package/dist/web/launcher.mjs +10 -1
- package/dist/web/server/{_tanstack-start-manifest_v-po4woX6g-AUGCOEZ2.js → _tanstack-start-manifest_v-0L7fqnH4-KMVGUFE4.js} +25 -24
- package/dist/web/server/{agent-activity-CS2rbF_C-A3R26CYH.js → agent-activity-BuEE6iVw-CDZLK4D2.js} +4 -4
- package/dist/web/server/{artifacts-panel-8GGUCtOd-X5TNKTY2.js → artifacts-panel-D3ySO--V-XSL53CXL.js} +18 -18
- package/dist/web/server/{chat-command-palette-Dgl5tqWn-72LLEWUD.js → chat-command-palette-kAbXhWVg-TJWXH2WW.js} +9 -9
- package/dist/web/server/{chunk-O4OTWWPF.js → chunk-2DDWXTVG.js} +5 -5
- package/dist/web/server/{chunk-MIW4LJTV.js → chunk-2JHTYWD5.js} +15 -23
- package/dist/web/server/{chunk-7MDZVLIY.js → chunk-3TIMGWWI.js} +1 -2
- package/dist/web/server/{chunk-AGFRJQZ7.js → chunk-4WBFCB4O.js} +257 -257
- package/dist/web/server/{chunk-P6UMR32I.js → chunk-5UCAJBAH.js} +4 -4
- package/dist/web/server/{chunk-BXWAUTTH.js → chunk-D27LRYVT.js} +42 -42
- package/dist/web/server/{chunk-YXXRP3NS.js → chunk-DLUZFOG3.js} +5 -5
- package/dist/web/server/{chunk-K3BXQG3N.js → chunk-EBG3XFGQ.js} +60 -60
- package/dist/web/server/{chunk-2ATMSG7U.js → chunk-EJEPDVK6.js} +3 -3
- package/dist/web/server/{chunk-IJPCV6DH.js → chunk-FYDQK6UX.js} +1 -1
- package/dist/web/server/{chunk-WKV2Z4KO.js → chunk-HF7DG7PC.js} +74 -74
- package/dist/web/server/{chunk-WYL2DW5R.js → chunk-JTCCQZLN.js} +2 -2
- package/dist/web/server/{chunk-UAPNEWCA.js → chunk-KP2PNDGL.js} +6 -6
- package/dist/web/server/chunk-M5RSPNYN.js +22 -0
- package/dist/web/server/{chunk-7SR6WDM2.js → chunk-MNBGB2SP.js} +2 -2
- package/dist/web/server/{chunk-HSJMLO36.js → chunk-MNPHMZU7.js} +3 -3
- package/dist/web/server/{chunk-JQDLJ7KI.js → chunk-NGCQJ33Y.js} +1134 -1134
- package/dist/web/server/{chunk-7SD2ZSEA.js → chunk-NIDBN7BQ.js} +1 -1
- package/dist/web/server/{chunk-ZJFA4F5X.js → chunk-NIZBFVJF.js} +2 -2
- package/dist/web/server/{chunk-P7H2OPKF.js → chunk-NJ4QEZHK.js} +11 -4
- package/dist/web/server/{chunk-WM4PUT6M.js → chunk-NNKJTKOQ.js} +234 -234
- package/dist/web/server/{chunk-N6NOTURM.js → chunk-NWDI3OWB.js} +4 -4
- package/dist/web/server/{chunk-ABBWBBSS.js → chunk-O3HDELZ2.js} +74826 -74825
- package/dist/web/server/{chunk-GGT2ZKDB.js → chunk-PLYZ7P2Y.js} +11 -155
- package/dist/web/server/chunk-PTCKOR23.js +39 -0
- package/dist/web/server/{chunk-RNOJACWQ.js → chunk-QFRCJWQQ.js} +7 -7
- package/dist/web/server/{chunk-NXJ32VFR.js → chunk-QIULBRTU.js} +13 -13
- package/dist/web/server/{chunk-XKKXXG6N.js → chunk-RIP3PBWT.js} +3 -3
- package/dist/web/server/{chunk-YKVGQBZA.js → chunk-S5LFXXDY.js} +625 -622
- package/dist/web/server/{chunk-XLNCWZMZ.js → chunk-UCUFC553.js} +3 -1
- package/dist/web/server/{chunk-KOUEJ3NU.js → chunk-UL2725KQ.js} +3 -3
- package/dist/web/server/{chunk-HFQTI7AX.js → chunk-VPKX7QRU.js} +3 -3
- package/dist/web/server/{chunk-LZ4Q5KUJ.js → chunk-WNCAL4HN.js} +133 -133
- package/dist/web/server/{chunk-C5X6G26O.js → chunk-XIB6XNUX.js} +436 -436
- package/dist/web/server/{chunk-JUROEEWM.js → chunk-YGYOBX7G.js} +82 -4
- package/dist/web/server/{chunk-WILCIZYU.js → chunk-ZIFSJ3HQ.js} +626 -626
- package/dist/web/server/fleet-message-queue-D_w8lSeY-T3HB7HVQ.js +152 -0
- package/dist/web/server/{fleet-pi-tool-renderer-umKunT3K-O4GBH35V.js → fleet-pi-tool-renderer-qwc-qZFq-4U556N5Q.js} +12 -12
- package/dist/web/server/{fleet-reasoning-panel-BxC2COxi-GPLMQSTT.js → fleet-reasoning-panel-DG_vuvv0-NCZWEEIT.js} +26 -26
- package/dist/web/server/{fleet-subagent-list-CpSYzCIq-JDH2LHSS.js → fleet-subagent-list-BGb0PjhF-2X67FMUV.js} +1 -1
- package/dist/web/server/{fleet-tool-timeline-IB36_PB2-XJENTO6I.js → fleet-tool-timeline-D6yM4ZMz-ZSFVRRRI.js} +1 -1
- package/dist/web/server/{fork-picker-dialog-DlINz9UQ-UWIXFDJX.js → fork-picker-dialog-Ds6Tgtu3-DIBWN7MV.js} +5 -5
- package/dist/web/server/{model-selector-list-OYnzNbyu-HBGCNF2L.js → model-selector-list-DxeGZoD2-P6S6FSJH.js} +9 -9
- package/dist/web/server/{openui-renderer-Cj7kfqyL-EKJ6JTTQ.js → openui-renderer-MKFv6LlH-MDRSVFEY.js} +11 -11
- package/dist/web/server/{prompt-suggestions-D4AEEY7K-RZSP7PWV.js → prompt-suggestions-BOItmGnD-YQA7RHLG.js} +2 -2
- package/dist/web/server/{repl-panel-D5KsoJik-BQKO53JO.js → repl-panel-CuyF8wt5-CHDT2Q3N.js} +2 -2
- package/dist/web/server/{router-Ci1wxI7I-E2AYMNON.js → router-Dg72SESP-PCWKLFRG.js} +1239 -470
- package/dist/web/server/{routes-CRpm9-Sa-IYK6MUJO.js → routes-BGrVtPYF-SURPAJN6.js} +5781 -5588
- package/dist/web/server/server.js +2 -2
- package/dist/web/server/{settings-dialog-BvkgNflv-GPJ6COQO.js → settings-dialog-CK0FJlTg-HZRBAXDZ.js} +1577 -1264
- package/dist/web/server/{subagent-chat-panel-CMuvW9Sd-M5TEEGQW.js → subagent-chat-panel-gzamnTgK-PQ2TLLJF.js} +21 -21
- package/dist/web/server/{subagents-panel-DgfB6_Yy-4INEPE3Y.js → subagents-panel-Berjd7HJ-EI5ZKC6V.js} +20 -20
- package/dist/web/server/{workspace-panel-bpwj-Veu-Q2CEJMN4.js → workspace-panel-CBBa_3UO-B4PPFPMA.js} +46 -21
- package/package.json +1 -1
- package/dist/web/client/assets/action-swap-roll-BB8DFMuf.js +0 -1
- package/dist/web/client/assets/agent-activity-CwMDU7aP.js +0 -1
- package/dist/web/client/assets/agent-disclosure-B8SnhQXL.js +0 -1
- package/dist/web/client/assets/analytics-stub-Cas1He0w.js +0 -1
- package/dist/web/client/assets/button-BR2WWrFo.js +0 -1
- package/dist/web/client/assets/card-BKl76a3R.js +0 -1
- package/dist/web/client/assets/command-DPfiaYUL.js +0 -1
- package/dist/web/client/assets/dialog-BEZuZhzk.js +0 -1
- package/dist/web/client/assets/fleet-message-queue-DUz6Hfrf.js +0 -1
- package/dist/web/client/assets/fleet-reasoning-panel-CbkO7u-v.js +0 -1
- package/dist/web/client/assets/globals-B_I1Eq1u.css +0 -2
- package/dist/web/client/assets/horizontal-resize-qK6eRhIG.js +0 -1
- package/dist/web/client/assets/index-C1zOjrMK.js +0 -12
- package/dist/web/client/assets/input-group-BFDsCVS9.js +0 -1
- package/dist/web/client/assets/ipython-tool-ldJ9F1Cw.js +0 -3
- package/dist/web/client/assets/openui-renderer-J3dhPpL4.js +0 -378
- package/dist/web/client/assets/prompt-input-qPIXZ-Rb.js +0 -1
- package/dist/web/client/assets/provider-catalog-D8G66gwc.js +0 -1
- package/dist/web/client/assets/provider-label-Dpr7djG9.js +0 -1
- package/dist/web/client/assets/routes-vNkVToAF.js +0 -16
- package/dist/web/client/assets/settings-dialog-B-v4me3Y.js +0 -1
- package/dist/web/client/assets/surfaces-DI-U-_2a.js +0 -1
- package/dist/web/client/assets/virtualized-turn-list-DMJENRY0.js +0 -6
- package/dist/web/client/assets/workspace-panel-G6yMpKJ8.js +0 -1
- package/dist/web/server/chunk-QK4CHLVV.js +0 -17
- package/dist/web/server/fleet-message-queue-j0DCU5Xy-5HKBHMPV.js +0 -75
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/openui-renderer-TLNe5e_Q.js","assets/rolldown-runtime-hePW80VL.js","assets/bundle-mjs-DKHVkVWu.js","assets/react-dom-Bwxum3ti.js","assets/jsx-runtime-NZYk81nU.js","assets/button-C5wFDY5_.js","assets/utils-Eg7xtNmV.js","assets/createBaseUIEventDetails-DV0dQrBX.js","assets/card-DA3Vnqay.js","assets/dialog-pBGUjAQ7.js","assets/useBaseUiId-CHqXB2UQ.js","assets/x-CsRC_tCI.js","assets/createLucideIcon-DwxZHm0M.js","assets/provider-catalog-DYMFdbKc.js","assets/check-JjHKAZas.js","assets/chevron-down-BEVGmnSb.js","assets/useControlled-CJJ9BOQB.js","assets/input-PcdubeKn.js","assets/chevron-up-CnSvySGH.js","assets/chunk-YOKDWASO-BAf618wr.js","assets/preload-helper-Czpn1I53.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/safe-external-url-D3PJJIcM.js","assets/openui-utils-DawGoQNp.js","assets/chat-BhYseKd6.js","assets/switch-WhXeJNNY.js","assets/markdown-lvexwooo.js","assets/cn-C8c0S2mI.js","assets/dist-BPaFisIZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./react-dom-Bwxum3ti.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{t as i}from"./utils-Eg7xtNmV.js";import{d as a,o,r as s}from"./ease-u56MhKYS.js";import{n as c,t as l}from"./use-reduced-motion-eORd7fqW.js";import{t as u}from"./createLucideIcon-DwxZHm0M.js";import{a as d,o as f}from"./citations-BPv8HIpf.js";import{t as p}from"./check-JjHKAZas.js";import{t as m}from"./chevron-right-DrJxToLs.js";import{r as h}from"./action-swap-roll-COzQ86wm.js";import{t as g}from"./file-text-T-NcAlZs.js";import{t as _}from"./image-BbPmlw-n.js";import{t as v}from"./x-CsRC_tCI.js";import{t as y}from"./preload-helper-Czpn1I53.js";import"./cn-C8c0S2mI.js";import{t as b}from"./notify-DxL0VD7Z.js";import{t as x}from"./openui-utils-DawGoQNp.js";var S=u(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),C=u(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),w=u(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]);function T(e){let t=[],n;for(let r of e){if(r.role===`user`){n&&t.push(n),n={user:r,assistants:[]};continue}if(r.role===`assistant`){if(!n||r.source===`local`){n&&t.push(n),n={assistants:[r]};continue}n.assistants.push(r)}}return n&&t.push(n),t}var E=e(t(),1),D=(0,E.createContext)(void 0),O=r(),k=(0,E.createContext)({animateIn:!0,variant:`soft`}),A=(0,E.createContext)(()=>{});function j(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}var M={duration:.12,ease:s,delay:.04},N={type:`spring`,stiffness:520,damping:27,mass:.52};function P({variant:e=`soft`,align:t,animateIn:n=!1,className:r,children:s,initial:c,animate:u,exit:d,transition:f,layout:p,...m}){let h=l()??!1,g=(0,E.useContext)(D),_=t??g??`start`,v=(0,E.useMemo)(()=>({align:_,animateIn:n,variant:e}),[n,_,e]);return(0,O.jsx)(k.Provider,{value:v,children:(0,O.jsx)(a.div,{"data-slot":`message-bubble`,"data-align":_,"data-variant":e,layout:p,initial:c??!1,animate:u,exit:d??(h?{opacity:0}:{opacity:0,y:-3,scale:.99}),transition:f??(h?{duration:.12}:o),className:i(`group/bubble flex w-full flex-col`,_===`end`?`items-end`:`items-start`,r),...m,children:s})})}function F(e,t){return i(`relative z-0 min-w-9 max-w-[82%] rounded-2xl px-3.5 py-2.5 text-sm leading-6 text-foreground`,`[&_a]:font-medium [&_a]:underline [&_a]:underline-offset-4 [&_code]:rounded [&_code]:bg-background/60 [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em] [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_p+p]:mt-2 [&_pre]:my-2 [&_pre]:overflow-x-auto [&_pre]:rounded-xl [&_pre]:bg-background/60 [&_pre]:p-3 [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5`,e===`solid`&&`text-background`,e===`ghost`&&`w-full max-w-none rounded-none px-0 py-0`,e===`danger`&&`text-destructive`,t&&`cursor-pointer text-left outline-none transition-[background-color,color,transform] duration-150 hover:brightness-[0.98] focus-visible:ring-2 focus-visible:ring-ring active:scale-[0.99]`)}function I(e,t){return i(`pointer-events-none absolute inset-0 -z-10 rounded-[inherit]`,t===`end`?`origin-bottom-right`:`origin-bottom-left`,e===`solid`&&`bg-foreground`,e===`soft`&&`bg-muted`,e===`tint`&&`bg-primary/10`,e===`outline`&&`border border-border/70 bg-background`,e===`danger`&&`bg-destructive/10`)}function L({render:e,className:t,children:n,ref:r,...c}){let u=l()??!1,{align:d=`start`,animateIn:f,variant:p}=(0,E.useContext)(k),[m,h]=(0,E.useState)(0),g=(0,E.useCallback)(()=>h(e=>e+1),[]),_=e?.type===`button`||e?.type===`a`,v=i(F(p,_),t),y=(0,O.jsxs)(O.Fragment,{children:[p===`ghost`?null:(0,O.jsx)(a.span,{"aria-hidden":`true`,layout:!u&&`size`,layoutDependency:m,initial:f&&!u?{opacity:0,scale:.92}:!1,animate:{opacity:1,scale:1},transition:u?{duration:0}:{opacity:{duration:.12,ease:s},scale:N,layout:o},className:I(p,d)}),(0,O.jsx)(A.Provider,{value:g,children:(0,O.jsx)(a.div,{initial:f?{opacity:0}:!1,animate:{opacity:1},transition:u?{duration:.12,ease:s}:M,className:`relative`,children:n})})]});if(e){let t=e;return(0,E.cloneElement)(t,{...c,ref:j(t.props.ref,r),className:i(v,t.props.className),children:y,"data-slot":`message-bubble-content`})}return(0,O.jsx)(`div`,{ref:r,"data-slot":`message-bubble-content`,className:v,...c,children:y})}function ee({item:e}){return(0,O.jsxs)(`div`,{"data-slot":`preview-rail-card`,className:`rounded-2xl border border-border bg-card p-4 shadow-sm`,children:[(0,O.jsx)(`p`,{"data-slot":`preview-rail-title`,className:`font-medium text-card-foreground`,children:e.label}),e.description?(0,O.jsx)(`div`,{"data-slot":`preview-rail-description`,className:`mt-1 text-sm leading-6 text-muted-foreground`,children:e.description}):null]})}function R({items:e,label:t=`Section navigation`,orientation:n=`vertical`,activeId:r,defaultActiveId:u,onActiveChange:d,onItemSelect:p,renderPreview:m,showPreview:h=!0,previewSide:g=`after`,highlightActive:_=!1,itemSize:v=24,children:y,className:b,railClassName:x,previewContainerClassName:S,previewClassName:C}){let w=(0,E.useId)(),T=l(),D=f(),[k,A]=(0,E.useState)(u??e[0]?.id??``),[j,M]=(0,E.useState)(null),[N,P]=(0,E.useState)(null),F=r??k,I=e.some(e=>e.id===F)?F:e[0]?.id??``,L=j??N??``,R=L||(_?I:``),z=e.findIndex(e=>e.id===R),B=e.length?`repeat(${e.length}, ${v}px)`:void 0,V=n===`horizontal`,H=e=>{r===void 0&&A(e),d?.(e)};return(0,O.jsxs)(a.div,{layoutRoot:!0,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||P(null)},className:i(`isolate relative flex w-full overflow-visible`,V?`min-h-64 flex-col items-center justify-center`:`min-h-80`,b),children:[(0,O.jsx)(`nav`,{"aria-label":t,onPointerLeave:()=>M(null),style:V?{gridTemplateColumns:B}:{gridTemplateRows:B},className:i(`relative z-10 grid shrink-0`,V?`h-12 w-fit max-w-full self-center justify-center`:`w-12 content-center`,x),children:e.map((e,t)=>{let n=e.id===I,r=e.id===R,s=z<0?1/0:Math.abs(t-z),c=r?1:s===1?.68:s===2?.44:.25,l=(0,O.jsx)(O.Fragment,{children:(0,O.jsx)(a.span,{"data-slot":`preview-rail-tick`,"aria-hidden":`true`,animate:V?{scaleY:c}:{scaleX:c},transition:T?{duration:0}:o,className:i(`block bg-current`,V?`h-12 w-0.5 origin-bottom`:`h-0.5 w-12 origin-left`,r?`text-foreground`:void 0)})}),u=i(`relative flex text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,V?`h-12 w-6 items-end justify-center`:`h-6 w-12 items-center`),d=V?{width:v}:{height:v},f=()=>{D&&M(e.id)},m=t=>{t.matches(`:focus-visible`)&&P(e.id)},h=()=>{H(e.id),p?.(e)};return e.href?(0,O.jsx)(`a`,{"data-slot":`preview-rail-item`,href:e.href,target:e.target,rel:e.rel??(e.target===`_blank`?`noreferrer noopener`:void 0),"aria-label":e.ariaLabel??e.label,"aria-current":n?`page`:void 0,onPointerEnter:f,onMouseEnter:f,onPointerDown:()=>P(null),onFocus:e=>m(e.currentTarget),onClick:h,style:d,className:u,children:l},e.id):(0,O.jsx)(`button`,{"data-slot":`preview-rail-item`,type:`button`,"aria-label":e.ariaLabel??e.label,"aria-current":n?`location`:void 0,onPointerEnter:f,onMouseEnter:f,onPointerDown:()=>P(null),onFocus:e=>m(e.currentTarget),onClick:h,style:d,className:u,children:l},e.id)})}),h?(0,O.jsx)(`div`,{"aria-hidden":`true`,style:V?{gridTemplateColumns:B}:{gridTemplateRows:B},className:i(`pointer-events-none absolute z-50 grid`,V?`top-1/2 left-1/2 h-5 w-fit max-w-full -translate-x-1/2 -translate-y-1/2 justify-center`:g===`before`?`inset-y-0 right-16 left-4 content-center`:`inset-y-0 right-4 left-16 content-center`,S),children:e.map(e=>(0,O.jsx)(`div`,{style:V?{width:v}:{height:v},className:i(`relative flex items-center`,V?`justify-center`:void 0),children:(0,O.jsx)(c,{mode:`wait`,initial:!1,children:e.id===L?(0,O.jsx)(a.div,{initial:T?{opacity:0}:{opacity:0,y:4,filter:`blur(6px)`},animate:T?{opacity:1}:{opacity:1,y:0,filter:`blur(0px)`},exit:T?{opacity:0}:{opacity:0,y:-2,filter:`blur(4px)`,transition:{duration:.12,ease:s}},transition:{duration:T?0:.18,ease:s},className:i(V?`absolute bottom-12 left-1/2 w-72 -translate-x-1/2`:i(`w-full max-w-sm`,g===`before`&&`ml-auto`),C),children:(0,O.jsx)(a.div,{layoutId:`preview-rail-card-${w}`,transition:T?{duration:0}:o,children:m?m(e):(0,O.jsx)(ee,{item:e})})},e.id):null})},e.id))}):null,y?(0,O.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1`,children:y}):null]})}var z=56,B=88;function V(e,t){if(e.length<=t)return e;let n=e.slice(0,t),r=n.lastIndexOf(` `);return`${n.slice(0,r>t*.65?r:t).trim()}…`}function H(e){return((e.querySelector(`[data-slot="message-bubble-content"]`)??e.querySelector(`[data-slot="message-content"]`)??e).textContent??``).replace(/\s+/g,` `).trim()}function U(e,t){let n=H(e);if(!n)return{label:`Message`,description:void 0};if(n.length<=z){let e=t?H(t):``;return{label:n,description:e?V(e,B):void 0}}let r=n.slice(0,z).lastIndexOf(` `),i=r>z*.65?r:z,a=`${n.slice(0,i).trim()}…`,o=t?H(t):n.slice(i).trim();return{label:a,description:o?V(o,B):void 0}}function te({navigation:e,followThreshold:t,contentRef:n,viewportRef:r,reduce:i,smooth:a,scrollToEnd:o,setFollowing:s,markProgrammaticScroll:c}){let l=(0,E.useRef)(void 0),u=(0,E.useRef)(new WeakMap),d=(0,E.useRef)(0),f=(0,E.useRef)(new Map),[p,m]=(0,E.useState)([]),[h,g]=(0,E.useState)(``),[_,v]=(0,E.useState)(!1),y=(0,E.useCallback)(()=>{if(e!==`rail`)return;let n=r.current,i=[...f.current.entries()];if(!n||i.length===0)return;let a=n.getBoundingClientRect();if(n.scrollTop<=t){let e=i[0]?.[0]??``;g(t=>t===e?t:e);return}if(n.scrollHeight-n.scrollTop-n.clientHeight<=t){let e=i.at(-1)?.[0]??``;g(t=>t===e?t:e);return}let o=a.top+a.height/2,s=i[0]?.[0]??``,c=1/0;for(let[e,t]of i){let n=t.getBoundingClientRect(),r=Math.abs(n.top+n.height/2-o);r<c&&(c=r,s=e)}g(e=>e===s?e:s)},[t,e,r]),b=(0,E.useCallback)(()=>{if(e!==`rail`)return;let t=n.current,i=r.current;if(!t||!i)return;let a=Array.from(t.querySelectorAll(`[data-slot="message"]`)),o=new Map,s=a.map((e,t)=>{let n=u.current.get(e);n||(d.current+=1,n=`message-rail-${d.current}`,u.current.set(e,n)),o.set(n,e);let r=e.dataset.from??`conversation`,i=U(e,r===`user`?a.slice(t+1).find(e=>e.dataset.from===`assistant`):void 0);return{id:n,label:i.label,description:i.description,ariaLabel:`Go to ${r} message ${t+1} of ${a.length}`}});f.current=o,m(e=>e.length===s.length&&e.every((e,t)=>e.id===s[t]?.id&&e.label===s[t]?.label&&e.description===s[t]?.description&&e.ariaLabel===s[t]?.ariaLabel)?e:s),v(i.scrollHeight>i.clientHeight+1&&a.length>1)},[n,e,r]),x=(0,E.useCallback)(()=>{e===`rail`&&(l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{b(),y()}))},[e,b,y]);return(0,E.useEffect)(()=>{if(e!==`rail`){f.current.clear(),m([]),v(!1);return}let t=n.current,i=r.current;if(!t||!i)return;x();let a=typeof MutationObserver>`u`?null:new MutationObserver(x);a?.observe(t,{childList:!0,characterData:!0,subtree:!0});let o=typeof ResizeObserver>`u`?null:new ResizeObserver(x);return o?.observe(t),o?.observe(i),()=>{a?.disconnect(),o?.disconnect()}},[n,e,x,r]),(0,E.useEffect)(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[]),{activeRailId:h,railItems:p,railOverflowing:_,scheduleRailSync:x,scrollToRailItem:(0,E.useCallback)(e=>{let t=r.current,n=f.current.get(e.id);if(!t||!n)return;let l=p.at(-1)?.id===e.id;if(g(e.id),l){s(!0),o(i||!a?`auto`:`smooth`);return}s(!1),c(i||!a?`auto`:`smooth`);let u=t.getBoundingClientRect(),d=n.getBoundingClientRect(),m=t.scrollTop+d.top-u.top-(t.clientHeight-d.height)/2,h=i||!a?`auto`:`smooth`;typeof t.scrollTo==`function`?t.scrollTo({top:m,behavior:h}):t.scrollTop=m},[c,p,i,o,s,a,r])}}function ne({followOutput:e=!0,followThreshold:t=56,smooth:n=!0,onFollowChange:r,label:a=`Conversation`,busy:o,navigation:s,navigationLabel:c=`Message navigation`,viewportClassName:u,contentClassName:d,railClassName:f,viewportRef:p,viewportProps:m,contentProps:h,className:g,children:_,...v}){let y=l()??!1,b=(0,E.useRef)(null),x=(0,E.useRef)(null),S=(0,E.useRef)(e),C=(0,E.useRef)(!1),w=(0,E.useRef)(void 0),T=(0,E.useRef)(void 0),{onScroll:D,onWheel:k,onTouchStart:A,onKeyDown:j,...M}=m??{},N=(0,E.useCallback)(e=>{b.current=e,typeof p==`function`?p(e):p&&(p.current=e)},[p]),P=(0,E.useCallback)(e=>{S.current!==e&&(S.current=e,r?.(e))},[r]),F=(0,E.useCallback)(e=>{C.current=!0,w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{C.current=!1},e===`smooth`?320:0)},[]),I=(0,E.useCallback)(e=>{let t=b.current;t&&(F(e),typeof t.scrollTo==`function`?t.scrollTo({top:t.scrollHeight,behavior:e}):t.scrollTop=t.scrollHeight)},[F]),{activeRailId:L,railItems:ee,railOverflowing:z,scheduleRailSync:B,scrollToRailItem:V}=te({navigation:s,followThreshold:t,contentRef:x,viewportRef:b,reduce:y,smooth:n,scrollToEnd:I,setFollowing:P,markProgrammaticScroll:F}),H=(0,E.useEffectEvent)(B),U=(0,E.useEffectEvent)(I),ne=(0,E.useCallback)(()=>{let e=b.current;if(!e||C.current)return;let n=e.scrollHeight-e.scrollTop-e.clientHeight;P(n<=t),B()},[t,B,P]),W=(0,E.useCallback)(()=>{C.current=!1},[]);(0,E.useLayoutEffect)(()=>{if(S.current=e,e)return T.current=requestAnimationFrame(()=>U(`auto`)),()=>{T.current&&cancelAnimationFrame(T.current)}},[e]),(0,E.useEffect)(()=>{let t=x.current;if(!t||typeof ResizeObserver>`u`)return;let r=new ResizeObserver(()=>{H(),!(!e||!S.current)&&U(y||!n?`auto`:`smooth`)});return r.observe(t),()=>r.disconnect()},[e,y,n]),(0,E.useEffect)(()=>()=>{w.current&&window.clearTimeout(w.current),T.current&&cancelAnimationFrame(T.current)},[]);let G=(0,O.jsx)(`section`,{ref:N,"aria-label":a,...M,onScroll:e=>{ne(),D?.(e)},onWheel:e=>{W(),k?.(e)},onTouchStart:e=>{W(),A?.(e)},onKeyDown:e=>{[`ArrowUp`,`PageUp`,`Home`].includes(e.key)&&W(),j?.(e)},className:i(`h-full overflow-y-auto overscroll-contain outline-none [overflow-anchor:none] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring`,s===`rail`?`[-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`:`[scrollbar-gutter:stable]`,u,s===`rail`&&z&&`pr-10`),children:(0,O.jsx)(`div`,{ref:x,role:`log`,"aria-live":o?`off`:`polite`,"aria-relevant":`additions text`,"aria-busy":o,className:d,...h,children:_})});return(0,O.jsx)(`div`,{"data-slot":`message-scroller`,className:i(`min-h-0`,g),...v,children:s===`rail`?(0,O.jsx)(R,{items:z?ee:[],label:c,activeId:L,onItemSelect:V,previewSide:`before`,highlightActive:!0,itemSize:14,className:`h-full min-h-0 overflow-hidden`,previewContainerClassName:`right-8 left-3`,previewClassName:`mr-1 w-64 max-w-full [&_[data-slot=preview-rail-card]]:h-20 [&_[data-slot=preview-rail-card]]:overflow-hidden [&_[data-slot=preview-rail-card]]:p-3 [&_[data-slot=preview-rail-title]]:line-clamp-1 [&_[data-slot=preview-rail-title]]:text-xs [&_[data-slot=preview-rail-title]]:leading-4 [&_[data-slot=preview-rail-description]]:line-clamp-2 [&_[data-slot=preview-rail-description]]:text-xs [&_[data-slot=preview-rail-description]]:leading-4`,railClassName:i(`absolute inset-y-3 right-1 w-7 content-center py-1 [&_[data-slot=preview-rail-item]]:w-7 [&_[data-slot=preview-rail-item]]:justify-end [&_[data-slot=preview-rail-tick]]:h-px [&_[data-slot=preview-rail-tick]]:w-4 [&_[data-slot=preview-rail-tick]]:origin-right`,z?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0`,f),children:G}):G})}var W=(0,E.createContext)({from:`assistant`}),G={type:`spring`,stiffness:480,damping:32,mass:.62};function re({from:e,animateIn:t=!1,children:n,className:r,initial:o,animate:s,transition:c,exit:u,style:d,...f}){let p=l()??!1,m=(0,E.useMemo)(()=>({from:e}),[e]);return(0,O.jsx)(D.Provider,{value:e===`user`?`end`:`start`,children:(0,O.jsx)(W.Provider,{value:m,children:(0,O.jsx)(a.article,{"data-slot":`message`,"data-from":e,"aria-label":f[`aria-label`]??`${e} message`,initial:o??(t&&!p?{opacity:0,transform:`translateY(8px) scale(0.95)`}:!1),animate:s??(t&&!p?{opacity:1,transform:`translateY(0px) scale(1)`}:{opacity:1}),exit:u??(p?{opacity:0}:{opacity:0,transform:`translateY(-3px) scale(0.99)`}),transition:c??(p?{duration:.12}:G),style:{transformOrigin:e===`user`?`100% 100%`:`0% 100%`,...d},className:i(`group/message flex w-full items-start gap-2`,e===`user`?`flex-row-reverse`:`flex-row`,r),...f,children:n})})})}function ie({className:e,...t}){let{from:n}=(0,E.useContext)(W);return(0,O.jsx)(`div`,{"data-slot":`message-content`,className:i(`flex min-w-0 flex-1 flex-col gap-1.5`,n===`user`?`items-end`:`items-start`,e),...t})}var ae=(0,E.memo)(function({title:e=`Something went wrong`,message:t,className:n}){return(0,O.jsx)(`div`,{className:i(`flex justify-start`,n),children:(0,O.jsxs)(`div`,{className:`rounded-[8px] border border-red-500/30 bg-red-500/10 px-4 py-2.5 text-sm text-an-foreground`,children:[(0,O.jsx)(`div`,{className:`font-medium text-an-foreground`,children:e}),(0,O.jsx)(`div`,{className:`mt-0.5 text-an-foreground-muted`,children:t})]})})}),oe=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,minute:`2-digit`,hour12:!0}),se=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`});function ce(e){let t=new Date;return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()?oe.format(e):se.format(e)}function le({text:e,onCopied:t}){let[n,r]=(0,E.useState)(!1),a=(0,E.useRef)(null);return(0,E.useEffect)(()=>()=>{a.current&&window.clearTimeout(a.current)},[]),(0,O.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-label":n?`Copied`:`Copy message`,onClick:async()=>{try{await navigator.clipboard.writeText(e),r(!0),a.current&&window.clearTimeout(a.current),a.current=window.setTimeout(()=>{r(!1),a.current=null},2e3),b.success(`Copied to clipboard`),t?.()}catch{b.error(`Failed to copy to clipboard`)}},onPointerDown:e=>{e.stopPropagation()},onMouseDown:e=>e.stopPropagation(),className:i(`flex size-6 items-center justify-center rounded-md transition-[background-color,opacity,transform] duration-150 ease-out active:scale-[0.97]`,`bg-transparent opacity-50 hover:bg-an-foreground/10 hover:opacity-100`),children:(0,O.jsxs)(`div`,{className:`relative size-3.5`,children:[(0,O.jsx)(h,{className:i(`absolute inset-0 h-3.5 w-3.5 text-an-foreground-muted transition-[opacity,transform] duration-150 ease-out`,n?`scale-50 opacity-0`:`scale-100 opacity-100`)}),(0,O.jsx)(p,{className:i(`absolute inset-0 h-3.5 w-3.5 text-an-foreground-muted transition-[opacity,transform] duration-150 ease-out`,n?`scale-100 opacity-100`:`scale-50 opacity-0`)})]})})}function ue({text:e,timestamp:t,heightClass:n,hoverClass:r,isVisible:a,alignClass:o,onCopied:s}){return(0,O.jsxs)(`div`,{className:i(`pointer-events-none flex items-center gap-1 pt-1 text-xs text-an-foreground-muted/70 opacity-0 transition-opacity duration-100`,n,o,r,a&&`pointer-events-auto opacity-100`),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),children:[t&&(0,O.jsx)(`span`,{children:t}),e&&(0,O.jsx)(le,{text:e,onCopied:s})]})}function de(e){if(typeof e==`string`)return e;if(e===void 0)return``;try{return JSON.stringify(e,null,2)??``}catch{return String(e)}}function fe({part:e}){let t=de(e.payload);return(0,O.jsxs)(`section`,{"data-payload-kind":e.kind,className:`w-full min-w-0 overflow-hidden rounded-xl border border-border/60 bg-muted/40 text-sm`,children:[(0,O.jsx)(`div`,{className:`border-b border-border/50 px-3 py-2 text-xs font-medium text-muted-foreground`,children:e.title}),e.text?(0,O.jsx)(`pre`,{className:`m-0 whitespace-pre-wrap break-words p-3 font-mono text-xs leading-5 text-foreground/80`,children:e.text}):null,t?(0,O.jsxs)(`details`,{open:!0,className:`border-t border-border/50 px-3 py-2`,children:[(0,O.jsx)(`summary`,{className:`cursor-pointer text-xs font-medium text-muted-foreground`,children:`Payload`}),(0,O.jsx)(`pre`,{className:`m-0 mt-2 max-w-full whitespace-pre-wrap break-words font-mono text-xs leading-5 text-foreground/70`,children:t})]}):null]})}function K(e){return typeof e==`object`&&!!e}function q(e){return K(e)&&e.type===`text`&&typeof e.text==`string`}function pe(e){return K(e)&&e.type===`error`&&typeof e.message==`string`}function me(e){return K(e)&&e.type===`payload`&&typeof e.kind==`string`&&typeof e.title==`string`}function J(e){if(!K(e))return!1;let t=e.type;return t===`dynamic-tool`||typeof t==`string`&&t.startsWith(`tool-`)}function he(e,t){let n=[];for(let t of e)q(t)&&n.push(t.text);return n.join(t)}function Y(e){return typeof e==`object`&&!!e}function X(e){if(typeof e!=`string`)return e;let t=e.trim();if(!t)return e;try{let n=JSON.parse(t);return Y(n)||Array.isArray(n)?n:e}catch{return e}}function ge(e){if(!Y(e)||typeof e.type!=`string`||!e.type.startsWith(`tool-`))return e;let t=X(e.input),n=X(e.output),r=X(e.result),i=t!==e.input,a=n!==e.output,o=r!==e.result;if(!i&&!a&&!o)return e;let s={...e};return i&&(s.input=t),a&&(s.output=n),o&&(s.result=r),s}function _e(e){let t=!1,n=e.map(e=>{let n=ge(e);return n!==e&&(t=!0),n});return t?n:e}(0,E.memo)(function(e){let{message:t,UserMessageComponent:n,userMessageClassName:r,onCopied:i,display:a}=e,{enableImagePreview:o,showCopyToolbar:s,isMounted:c,isCopyVisible:l}=a,u=he(t.parts??[],``),d=(t.parts??[]).length>0;if(!u&&!d)return null;let f=t?.createdAt,p=`user-${t.id}`,m=c&&f?ce(new Date(f)):void 0;return(0,O.jsxs)(`div`,{className:`group/user-message`,children:[(0,O.jsx)(n,{message:t,className:r,enableImagePreview:o}),(s&&!!u||!!m)&&(0,O.jsx)(ue,{text:s?u:``,timestamp:m,heightClass:`h-[28px]`,hoverClass:`group-hover/user-message:opacity-100 group-hover/user-message:pointer-events-auto`,isVisible:l,alignClass:`justify-end`,onCopied:()=>i(p)})]})}),(0,E.memo)(function(e){let{assistantMsgs:t,turnKey:n,ToolRendererComponent:r,TextRendererComponent:i,toolRenderers:a,onOpenUIAction:o,onOpenUIArtifactReady:s,onOpenArtifact:c,onCopied:l,stream:u,copy:d,display:f}=e,{isLast:p,isStreaming:m}=u,{enabled:h,isVisible:g}=d,{suppressQuestionTool:_}=f,v=he(t.flatMap(e=>e.parts??[]),`
|
|
3
|
+
|
|
4
|
+
`),y=m&&p,b=h&&!!v.trim()&&!y,x=`assistant-${n}-all`,S=h?v:``;return(0,O.jsxs)(`div`,{className:`group/assistant-turn`,children:[(0,O.jsx)(`div`,{className:`flex flex-col gap-3`,children:t.map((e,n)=>{let l=p&&n===t.length-1;return(0,O.jsx)(Se,{msg:e,isLast:l,isStreaming:m,suppressQuestionTool:_,ToolRendererComponent:r,TextRendererComponent:i,toolRenderers:a,onOpenUIAction:o,onOpenUIArtifactReady:s,onOpenArtifact:c},e.id)})}),(b||g)&&(0,O.jsx)(ue,{text:S,heightClass:`h-[48px] flex items-start w-full`,hoverClass:`group-hover/assistant-turn:opacity-100 group-hover/assistant-turn:pointer-events-auto`,isVisible:g,alignClass:`justify-start`,onCopied:()=>l(x)})]})});var ve=`tool-call:`,ye=`unkeyed-tool:`;function be(e,t,n){return t.toolCallId?`${ve}${t.toolCallId}`:`${ye}${e}:${t.type}:${n}`}function xe(e,t){let{messageId:n,isLast:r,isStreaming:i,suppressQuestionTool:a,suppressTextWhenPlanWrite:o=!1,ToolRendererComponent:s,TextRendererComponent:c,toolRenderers:l,onOpenUIAction:u,onOpenUIArtifactReady:d,onOpenArtifact:f}=t,p=[],m=[],h=o&&e.some(e=>J(e)&&e.type===`tool-PlanWrite`),g=new Set(e.filter(e=>J(e)&&(e.type===`tool-Task`||e.type===`tool-Agent`)&&typeof e.toolCallId==`string`).map(e=>e.toolCallId)),_=new Map,v=new Set,y=new Map;for(let t of e){if(!J(t)||t.type===`tool-TaskOutput`||!t.toolCallId||!t.toolCallId.includes(`:`))continue;let e=t.toolCallId.split(`:`)[0];g.has(e)&&(_.has(e)||_.set(e,[]),_.get(e).push(t),v.add(t.toolCallId))}let b=0;for(;b<e.length;){let t=e[b];if(J(t)&&t.type===`tool-TaskOutput`){b++;continue}if(q(t)){let e=t.text;e&&!h&&m.push(e),b++;continue}if(pe(t)){p.push((0,O.jsx)(ae,{title:t.title,message:t.message},`${n}-error-${t.title}-${t.message}`)),b++;continue}if(me(t)){p.push((0,O.jsx)(fe,{part:t},`${n}-payload-${b}`)),b++;continue}if(J(t)){if(a&&t.type===`tool-Question`){b++;continue}if(t.toolCallId&&v.has(t.toolCallId)){b++;continue}let e=r&&i?`streaming`:void 0,o=t.toolCallId,c=(t.type===`tool-Task`||t.type===`tool-Agent`)&&o?_.get(o)||[]:void 0,u=t.toolCallId?0:y.get(t.type)??0;t.toolCallId||y.set(t.type,u+1),p.push((0,O.jsx)(s,{part:t,nestedTools:c,chatStatus:e,toolRenderers:l},be(n,t,u))),b++;continue}b++}let x=m.join(`
|
|
5
|
+
|
|
6
|
+
`);return x&&p.push((0,O.jsx)(`div`,{className:`group/assistant-text text-[0.875rem]`,children:(0,O.jsx)(c,{content:x,isStreaming:i,messageId:n,onOpenUIAction:u,onOpenUIArtifactReady:d,onOpenArtifact:f,className:`leading-relaxed [&_p]:leading-relaxed`})},`${n}-text-final`)),p}function Se({msg:e,isLast:t,isStreaming:n,suppressQuestionTool:r,ToolRendererComponent:i,TextRendererComponent:a,toolRenderers:o,onOpenUIAction:s,onOpenUIArtifactReady:c,onOpenArtifact:l}){let u=(0,E.useMemo)(()=>_e(e.parts??[]),[e.parts]),d=(0,E.useMemo)(()=>xe(u,{messageId:e.id,isLast:t,isStreaming:n,suppressQuestionTool:r,ToolRendererComponent:i,TextRendererComponent:a,toolRenderers:o,onOpenUIAction:s,onOpenUIArtifactReady:c,onOpenArtifact:l}),[u,e.id,t,n,r,i,a,o,s,c,l]);return d.length>1?(0,O.jsx)(`div`,{className:`group/assistant-turn flex flex-col gap-3`,children:d}):(0,O.jsx)(`div`,{className:`group/assistant-turn`,children:d})}var Ce=e(n(),1);function we({open:e,onClose:t,images:n,initialIndex:r=0}){let[a,o]=(0,E.useState)(r),s=n.length>1;(0,E.useEffect)(()=>{e&&o(r)},[e,r]);let c=(0,E.useCallback)(e=>{e?.stopPropagation(),o(e=>e>0?e-1:n.length-1)},[n.length]),l=(0,E.useCallback)(e=>{e?.stopPropagation(),o(e=>e<n.length-1?e+1:0)},[n.length]),u=(0,E.useEffectEvent)(e=>{switch(e.key){case`ArrowLeft`:e.preventDefault(),s&&c();break;case`ArrowRight`:e.preventDefault(),s&&l()}});(0,E.useEffect)(()=>{if(!e)return;let t=e=>u(e);return window.addEventListener(`keydown`,t,!0),()=>window.removeEventListener(`keydown`,t,!0)},[e]),(0,E.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=t}},[e]);let d=(0,E.useRef)(null),f=(0,E.useEffectEvent)(e=>{d.current&&e.target===d.current&&t()});if((0,E.useEffect)(()=>{if(!e)return;let t=d.current;if(!t)return;t.open||t.showModal();let n=e=>f(e);return t.addEventListener(`click`,n),()=>{t.removeEventListener(`click`,n),t.open&&t.close()}},[e]),typeof document>`u`||!e)return null;let p=n[a]??n[0];return p?.url?(0,Ce.createPortal)((0,O.jsxs)(`dialog`,{ref:d,"aria-label":`Image viewer`,onClose:()=>t(),className:`fixed inset-0 z-50 m-0 flex h-full max-h-none w-full max-w-none items-center justify-center border-0 bg-black/90 p-0 backdrop:bg-transparent`,children:[(0,O.jsx)(`button`,{type:`button`,onClick:t,"aria-label":`Close fullscreen (Esc)`,className:`absolute top-4 right-4 z-10 inline-flex size-9 items-center justify-center rounded-full bg-black/50 text-white transition-colors hover:bg-black/70`,children:(0,O.jsx)(v,{className:`size-5`})}),s&&(0,O.jsx)(`button`,{type:`button`,onClick:c,"aria-label":`Previous image (←)`,className:`absolute top-1/2 left-4 z-10 inline-flex size-10 -translate-y-1/2 items-center justify-center rounded-full bg-black/50 text-white transition-colors hover:bg-black/70`,children:(0,O.jsx)(S,{className:`size-6`})}),(0,O.jsx)(`img`,{src:p.url,alt:p.filename??`Image preview`,className:`max-h-[85vh] max-w-[90vw] object-contain select-none`,onClick:e=>e.stopPropagation(),draggable:!1}),s&&(0,O.jsx)(`button`,{type:`button`,onClick:l,"aria-label":`Next image (→)`,className:`absolute top-1/2 right-4 z-10 inline-flex size-10 -translate-y-1/2 items-center justify-center rounded-full bg-black/50 text-white transition-colors hover:bg-black/70`,children:(0,O.jsx)(m,{className:`size-6`})}),s&&(0,O.jsxs)(`div`,{className:`absolute bottom-6 left-1/2 flex -translate-x-1/2 flex-col items-center gap-3`,children:[(0,O.jsx)(`div`,{className:`flex gap-2`,children:n.map((e,t)=>(0,O.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),o(t)},"aria-label":`Go to image ${t+1}`,className:i(`size-2 rounded-full transition-all`,t===a?`scale-125 bg-white`:`bg-white/40 hover:bg-white/60`)},e.url))}),(0,O.jsxs)(`span`,{className:`text-sm text-white/70`,children:[a+1,` / `,n.length]})]})]}),document.body):null}function Te(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function Ee(e,t){if(t)return`image`;let n=e.split(`.`).pop()?.toLowerCase();return[`js`,`ts`,`jsx`,`tsx`,`py`,`rb`,`go`,`rs`,`java`,`kt`,`swift`,`c`,`cpp`,`h`,`hpp`,`cs`,`php`].includes(n||``)?`code`:[`json`,`yaml`,`yml`,`xml`].includes(n||``)?`data`:`text`}function De(e){switch(e){case`image`:return(0,O.jsx)(_,{className:`size-4 text-muted-foreground`});case`code`:return(0,O.jsx)(w,{className:`size-4 text-muted-foreground`});case`data`:return(0,O.jsx)(C,{className:`size-4 text-muted-foreground`});default:return(0,O.jsx)(g,{className:`size-4 text-muted-foreground`})}}function Oe({id:e,filename:t,size:n,isImage:r,url:a,onRemove:o,className:s,display:c=`chip`,enableImagePreview:l=!0}){let[u,d]=(0,E.useState)(!1),[f,p]=(0,E.useState)(!1),m=Ee(t,r),h=c===`image-only`&&r&&!!a,g=!!(l&&r&&a),_=e=>{e?.stopPropagation(),p(!0)};return(0,O.jsxs)(`div`,{className:i(`relative rounded-[calc(var(--an-input-border-radius)-var(--an-context-padding))] bg-muted/50`,h?`flex size-10 items-center justify-center`:`flex max-w-[200px] min-w-[120px] items-center gap-2 py-1 pr-2 pl-1`,s),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[h?(0,O.jsx)(`div`,{className:i(`size-8 shrink-0 overflow-hidden rounded-[calc(var(--an-input-border-radius)-var(--an-context-padding)-2px)]`,g&&`cursor-pointer`),onClick:g?_:void 0,role:g?`button`:void 0,tabIndex:g?0:void 0,"aria-label":g?`Preview ${t}`:void 0,onKeyDown:g?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),_())}:void 0,children:(0,O.jsx)(`img`,{src:a,alt:t,className:`h-full w-full object-cover`})}):(0,O.jsxs)(O.Fragment,{children:[r&&a?(0,O.jsx)(`div`,{className:i(`w-8 shrink-0 self-stretch overflow-hidden rounded-[calc(var(--an-input-border-radius)-var(--an-context-padding)-2px)]`,g&&`cursor-pointer`),onClick:g?_:void 0,role:g?`button`:void 0,tabIndex:g?0:void 0,"aria-label":g?`Preview ${t}`:void 0,onKeyDown:g?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),_())}:void 0,children:(0,O.jsx)(`img`,{src:a,alt:t,className:`aspect-square h-full w-full object-cover`})}):(0,O.jsx)(`div`,{className:`flex w-8 shrink-0 items-center justify-center self-stretch rounded-[calc(var(--an-input-border-radius)-var(--an-context-padding)-2px)] bg-muted`,children:De(m)}),(0,O.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,O.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,title:t,children:t}),n!==void 0&&(0,O.jsx)(`span`,{className:`text-[0.625rem] text-muted-foreground`,children:Te(n)})]})]}),o&&(0,O.jsx)(`button`,{onClick:e=>{e.stopPropagation(),o()},"aria-label":`Remove ${t}`,className:`absolute -top-1.5 -right-1.5 z-10 flex size-4 items-center justify-center rounded-full border border-border bg-background text-muted-foreground transition-[opacity,transform] duration-150 ease-out hover:text-foreground active:scale-[0.97] ${u?`opacity-100`:`opacity-0`}`,type:`button`,children:(0,O.jsx)(v,{className:`size-3`})}),g&&a&&(0,O.jsx)(we,{open:f,onClose:()=>p(!1),images:[{id:e,url:a,filename:t}]})]})}function Z(e){return typeof e==`object`&&!!e}function ke(e){if(!Z(e))return null;let t=e.type;if(typeof t!=`string`)return null;if(t===`image`){let t=e;return t.url??t.image??null}if(t===`data-image`)return e.data?.url??null;if(t===`file`){let t=e;if(t.mimeType?.startsWith(`image/`)){if(t.url)return t.url;if(t.data)return`data:${t.mimeType};base64,${t.data}`}}return null}function Ae(e){if(!Z(e)||e.type!==`file`)return null;let t=e,n=t.filename||t.name||t.fileName||`Attachment`;return t.mimeType?.startsWith(`image/`)??!1?null:{filename:n,size:t.size}}var je=(0,E.memo)(function({message:e,className:t,enableImagePreview:n=!0}){let[r,a]=(0,E.useState)(null),o=(e.parts?.filter(q)??[]).map(e=>e.text).join(``),s=[],c=[];for(let t of e.parts??[]){let e=ke(t);e&&s.push(e);let n=Ae(t);n&&c.push(n)}if(Z(e)&&Array.isArray(e.experimental_attachments))for(let t of e.experimental_attachments)t.contentType?.startsWith(`image/`)&&t.url&&s.push(t.url);if(!o&&s.length===0&&c.length===0)return null;let l=s.map((t,n)=>({id:`${e.id}-img-${n}`,url:t,filename:`image-${n+1}`}));return(0,O.jsxs)(`div`,{className:i(`flex flex-col items-end gap-1`,t),children:[s.length>0&&s.map((e,t)=>(0,O.jsx)(`div`,{className:i(`max-w-[200px] rounded-an-message bg-an-foreground/4 p-1.5`,n&&`cursor-pointer`),onClick:n?()=>a(t):void 0,role:n?`button`:void 0,tabIndex:n?0:void 0,onKeyDown:n?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),a(t))}:void 0,children:(0,O.jsx)(`img`,{src:e,alt:`attachment`,className:`block max-h-[120px] max-w-[184px] rounded-an-message-inner object-cover`})},e)),n&&l.length>0&&(0,O.jsx)(we,{open:r!==null,onClose:()=>a(null),images:l,initialIndex:r??0}),c.length>0&&(0,O.jsx)(`div`,{className:`flex flex-col items-end gap-2`,children:c.map((e,t)=>(0,O.jsx)(Oe,{id:`${e.filename}-${t}`,filename:e.filename,size:e.size},`${e.filename}-${e.size}`))}),o&&(0,O.jsx)(`div`,{className:`ms-[70px] max-w-[calc(95%-40px)]`,children:(0,O.jsx)(`div`,{className:`rounded-an-message bg-an-user-message-bg px-3.5 py-1.5 text-sm text-an-user-message-text transition-colors`,children:(0,O.jsx)(`p`,{className:`leading-5 wrap-break-word whitespace-pre-wrap`,children:o})})})]})}),Me=(0,E.lazy)(()=>y(async()=>{let{GenerativeTextRenderer:e}=await import(`./openui-renderer-TLNe5e_Q.js`).then(e=>e.n);return{GenerativeTextRenderer:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29])).then(({GenerativeTextRenderer:e})=>({default:e})));function Ne({className:e,content:t}){return(0,O.jsx)(`div`,{className:e?`${e} whitespace-pre-wrap`:`whitespace-pre-wrap`,children:t})}function Pe(e){return(0,E.useMemo)(()=>x(e.content).some(e=>e.type===`openui`),[e.content])?(0,O.jsx)(E.Suspense,{fallback:(0,O.jsx)(Ne,{className:e.className,content:e.content}),children:(0,O.jsx)(Me,{...e})}):(0,O.jsx)(d,{className:e.className,content:e.content})}function Q(e,t,n){if(n===0)return 0;let r=0,i=n;for(;r<i;){let n=Math.floor((r+i)/2);e[n]<=t?r=n+1:i=n}return Math.max(0,Math.min(n-1,r-1))}function $(e,t,n,r){let i=[0];for(let[a,o]of e.entries())i.push(i[i.length-1]+(t.get(o)??n)+(a<e.length-1?r:0));return i}function Fe({estimateSize:e,getItemKey:t,itemGap:n=0,items:r,overscan:i=1.5,renderItem:a,viewportRef:o}){let s=(0,E.useMemo)(()=>r.map((e,n)=>t(e,n)),[t,r]),c=r.length>=40,[l,u]=(0,E.useState)(()=>new Map),[d,f]=(0,E.useState)({height:0,scrollTop:0}),p=(0,E.useRef)(s),m=(0,E.useRef)(l),h=(0,E.useRef)(e),g=(0,E.useRef)(n),_=(0,E.useRef)([0]),v=(0,E.useRef)(0),y=(0,E.useRef)(new Map),b=(0,E.useRef)(new WeakMap),x=(0,E.useRef)(null),S=(0,E.useCallback)(()=>{let e=o.current;if(!e)return;let t={height:e.clientHeight,scrollTop:e.scrollTop};f(e=>e.height===t.height&&e.scrollTop===t.scrollTop?e:t)},[o]),C=(0,E.useCallback)((e,t)=>{let n=y.current.get(e);n&&n!==t&&(x.current?.unobserve(n),y.current.delete(e)),t&&(y.current.set(e,t),b.current.set(t,e),x.current?.observe(t))},[]),w=(0,E.useMemo)(()=>$(s,l,e,n),[e,n,s,l]);(0,E.useLayoutEffect)(()=>{S()},[r.length,S]),(0,E.useLayoutEffect)(()=>{p.current=s,m.current=l,h.current=e,g.current=n,_.current=w},[e,n,s,l,w]),(0,E.useEffect)(()=>{let e=o.current;if(!e)return;e.addEventListener(`scroll`,S,{passive:!0}),window.addEventListener(`resize`,S),S();let t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(S),t.observe(e)),()=>{e.removeEventListener(`scroll`,S),window.removeEventListener(`resize`,S),t?.disconnect()}},[S,o]);let T=(0,E.useCallback)(e=>{let t=m.current,n=t;for(let r of e){let e=b.current.get(r.target),i=r.contentRect.height;!e||i<=0||t.get(e)===i||(n===t&&(n=new Map(t)),n.set(e,i))}if(n===t)return;let r=o.current,i=p.current,a=$(i,n,h.current,g.current);if(r&&i.length>0){let e=_.current,t=Q(e,Math.max(0,r.scrollTop),i.length),n=i[t];if(n&&t>0){let r=(a[i.indexOf(n)]??0)-(e[t]??0);r!==0&&(v.current+=r)}}m.current=n,_.current=a,u(n)},[o]);if((0,E.useLayoutEffect)(()=>{if(!c||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(e=>T(e));x.current=e;for(let t of y.current.values())e.observe(t);return()=>{e.disconnect(),x.current===e&&(x.current=null)}},[c,T]),(0,E.useEffect)(()=>{let e=m.current;if(e.size===0)return;let t=new Set(s),n=new Map([...e].filter(([e])=>t.has(e)));n.size!==e.size&&(m.current=n,u(n))},[s]),(0,E.useLayoutEffect)(()=>{let e=v.current,t=o.current;!t||e===0||(t.scrollTop+=e,v.current=0,S())},[l,S,o]),!c)return(0,O.jsx)(O.Fragment,{children:r.map((e,t)=>(0,O.jsx)(E.Fragment,{children:a(e,t)},s[t]))});let D=w[w.length-1]??0,k=Math.max(e,d.height*i),A=Q(w,Math.max(0,d.scrollTop-k),r.length),j=Math.min(r.length-1,Q(w,d.scrollTop+d.height+k,r.length)+1);return(0,O.jsx)(`div`,{"data-rendered-turn-count":j-A+1,"data-total-turn-count":r.length,"data-virtualized-transcript":`true`,style:{height:D,position:`relative`,width:`100%`},children:r.slice(A,j+1).map((e,t)=>{let n=A+t,r=s[n];return(0,O.jsx)(`div`,{ref:e=>C(r,e),"data-virtualized-turn-index":n,style:{left:0,position:`absolute`,right:0,top:w[n]},children:a(e,n)},r)})})}export{xe as a,ie as c,L as d,T as f,Oe as i,ne as l,Pe as n,_e as o,S as p,je as r,re as s,Fe as t,P as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./utils-Eg7xtNmV.js";import{f as i,o as a,r as o,u as s}from"./ease-u56MhKYS.js";import{n as c,t as l}from"./use-reduced-motion-eORd7fqW.js";import{t as u}from"./resource-helpers-Q2T0YCMO.js";import{t as d}from"./chevron-right-DrJxToLs.js";import{t as f}from"./circle-alert-CONlFReH.js";import{t as p}from"./file-text-T-NcAlZs.js";import{S as m,b as h,i as g,n as _,r as v,s as y,t as b,x,y as S}from"./horizontal-resize-Cp3iHMH7.js";import{t as C}from"./folder-BC5p7qK7.js";import{t as w}from"./hard-drive-CHqgr7VQ.js";import{t as T}from"./workspace-path-nav-C0AQNZyy.js";import{t as E}from"./markdown-lvexwooo.js";import{a as D,i as O,n as k,r as A}from"./skeleton-loaders-C9vHwAYV.js";var j=e(t(),1),M=n();function N(e){return null}function P(e){return null}var F={duration:.22,ease:o},I={duration:.3,ease:o};function L(e,t,n=0,r=null){return e.flatMap((i,a)=>{let o={item:i,depth:n,parentId:r,position:a+1,setSize:e.length};return i.type!==`folder`||!t.has(i.value)||!i.children?.length?[o]:[o,...L(i.children,t,n+1,i.value)]})}function R(e){let t=[];return j.Children.forEach(e,e=>{if((0,j.isValidElement)(e)){if(e.type===j.Fragment){let n=e.props;t.push(...R(n.children));return}if(e.type===N){let n=e.props;t.push({value:n.value,name:n.name,type:`folder`,icon:n.icon,disabled:n.disabled,className:n.className,children:R(n.children)});return}if(e.type===P){let n=e.props;t.push({value:n.value,name:n.name,type:`file`,icon:n.icon,disabled:n.disabled,className:n.className})}}}),t}function z({item:e,open:t,reduce:n}){return e.type===`file`?(0,M.jsx)(m,{className:`size-4`}):n?t?(0,M.jsx)(x,{className:`size-4`}):(0,M.jsx)(C,{className:`size-4`}):(0,M.jsx)(c,{initial:!1,mode:`popLayout`,children:(0,M.jsx)(i.span,{initial:{opacity:0,scale:.75,rotate:t?-8:8},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.75,rotate:t?8:-8},transition:s,className:`absolute inset-0 grid place-items-center`,children:t?(0,M.jsx)(x,{className:`size-4`}):(0,M.jsx)(C,{className:`size-4`})},t?`open`:`closed`)})}function B({children:e,value:t,defaultValue:n=null,onValueChange:o,expandedIds:c,defaultExpandedIds:u=[],onExpandedChange:f,ariaLabel:p=`Files`,indent:m=18,className:h,classNames:_}){let v=l()??!1,[y,b]=(0,j.useState)(n),[x,S]=(0,j.useState)(u),[C,w]=(0,j.useState)(t??n),T=(0,j.useRef)(new Map),E=t===void 0?y:t,D=c??x,O=(0,j.useMemo)(()=>new Set(D),[D]),k=(0,j.useMemo)(()=>R(e),[e]),A=(0,j.useMemo)(()=>L(k,O),[O,k]),N=C!==null&&A.some(({item:e})=>e.value===C)?C:A[0]?.item.value??null;C!==N&&w(N);let P=(0,j.useCallback)(e=>{w(e);let t=T.current.get(e);t?t.focus():requestAnimationFrame(()=>T.current.get(e)?.focus())},[]),B=(0,j.useCallback)(e=>{e.disabled||(t===void 0&&b(e.value),o?.(e.value))},[o,t]),V=(0,j.useCallback)(e=>{c===void 0&&S(e),f?.(e)},[c,f]),H=(0,j.useCallback)(e=>{let t=new Set(D);t.has(e)?t.delete(e):t.add(e),V(Array.from(t))},[D,V]),U=(0,j.useCallback)((e,t)=>{let n=A.findIndex(({item:e})=>e.value===t.item.value),r=A[n-1],i=A[n+1],a=t.item.type===`folder`&&!!t.item.children?.length,o=a&&O.has(t.item.value);if(e.key===`ArrowDown`&&i)e.preventDefault(),P(i.item.value);else if(e.key===`ArrowUp`&&r)e.preventDefault(),P(r.item.value);else if(e.key===`Home`&&A[0])e.preventDefault(),P(A[0].item.value);else if(e.key===`End`&&A.at(-1))e.preventDefault(),P(A.at(-1)?.item.value??t.item.value);else if(e.key===`ArrowRight`&&a)e.preventDefault(),!o&&!t.item.disabled?H(t.item.value):i?.parentId===t.item.value&&P(i.item.value);else if(e.key===`ArrowLeft`)e.preventDefault(),a&&o&&!t.item.disabled?H(t.item.value):t.parentId&&P(t.parentId);else if(e.key===`Enter`||e.key===` `){if(e.preventDefault(),t.item.disabled)return;B(t.item),a&&H(t.item.value)}},[O,P,A,B,H]);return(0,M.jsx)(g,{role:`tree`,"aria-label":p,"aria-multiselectable":`false`,inset:0,pillClassName:`rounded-xl bg-muted`,pillContainerClassName:`inset-y-auto top-0 h-9`,className:r(`min-w-0`,h,_?.tree),children:A.map(e=>{let t=e.item.type===`folder`,n=t&&!!e.item.children?.length,o=n&&O.has(e.item.value),c=E===e.item.value;return(0,M.jsx)(i.div,{layout:!v&&`position`,initial:!v&&{opacity:0,y:-6},animate:{opacity:e.item.disabled?.42:1,y:0,transition:v?{duration:0}:{...F,delay:Math.min(e.position*.025,.1)}},transition:v?{duration:0}:a,children:(0,M.jsxs)(`button`,{ref:t=>{t?T.current.set(e.item.value,t):T.current.delete(e.item.value)},type:`button`,role:`treeitem`,"aria-level":e.depth+1,"aria-posinset":e.position,"aria-setsize":e.setSize,"aria-selected":c,"aria-expanded":n?o:void 0,"aria-disabled":e.item.disabled||void 0,tabIndex:N===e.item.value?0:-1,onFocus:()=>w(e.item.value),onKeyDown:t=>U(t,e),onClick:()=>{e.item.disabled||(B(e.item),n&&H(e.item.value))},className:r(`group/file-tree relative flex h-9 w-full items-center gap-2 overflow-hidden rounded-lg pr-2 text-left text-sm text-muted-foreground outline-none`,`transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset`,`aria-disabled:cursor-not-allowed`,c&&`bg-muted font-medium text-foreground`,_?.item,e.item.className),style:{paddingLeft:8+e.depth*m},children:[e.depth>0?(0,M.jsx)(i.span,{"aria-hidden":`true`,initial:!v&&{opacity:0,scaleY:0},animate:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:0},transition:v?{duration:0}:I,className:`absolute top-0 bottom-0 w-px origin-top bg-border/70`,style:{left:16+(e.depth-1)*m}}):null,(0,M.jsx)(i.span,{"aria-hidden":`true`,animate:{rotate:o?90:0},transition:v?{duration:0}:s,className:r(`relative z-10 grid size-4 shrink-0 place-items-center`,!n&&`opacity-0`),children:(0,M.jsx)(d,{className:`size-3.5`})}),(0,M.jsx)(`span`,{"aria-hidden":`true`,className:r(`relative z-10 grid size-4 shrink-0 place-items-center text-muted-foreground transition-colors group-hover/file-tree:text-foreground`,t&&o&&`text-foreground`,_?.icon),children:e.item.icon??(0,M.jsx)(z,{item:e.item,open:o,reduce:v})}),(0,M.jsx)(`span`,{className:r(`relative z-10 min-w-0 flex-1 truncate`,_?.label),children:e.item.name})]})},e.item.value)})})}var V=`fleet-prime:v1:workspace-tree-width`,H=120,U=200,W=160,G=8;function K(e,t){let n=Math.max(H,t-W-G);return Math.min(n,Math.max(H,Math.round(e)))}function q(e){return _(V,U,t=>e===void 0?Math.max(H,Math.round(t)):K(t,e))}function J(e){v(V,e)}var Y=e=>{let t=window.matchMedia(`(min-width: 640px)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},X=()=>window.matchMedia(`(min-width: 640px)`).matches,Z=()=>!1;function Q(e){let[t,n]=(0,j.useState)(q),r=(0,j.useSyncExternalStore)(Y,X,Z),i=(0,j.useRef)(null),a=(0,j.useCallback)(e=>{let r=i.current?.clientWidth??0;if(r===0)return;let a=K(t,r);b({event:e,startWidth:a,getNextWidth:(e,t,n)=>K(n+(e-t),r),onWidthChange:e=>{n(e),J(e)}})},[t]);return(0,j.useEffect)(()=>{let e=i.current;if(!e)return;let t=e.clientWidth;t<640||n(e=>{let n=K(e,t);return n===e?e:(J(n),n)})},[]),{handleTreeResizeStart:a,isSplitLayout:r,splitRef:i,splitStyle:r?{gridTemplateColumns:`${t}px 8px minmax(160px, 1fr)`}:void 0}}var ee=15e3;function te(e){return e instanceof DOMException&&e.name===`AbortError`?Error(`Preview timed out`):e instanceof Error?e.name===`AbortError`||/aborted|timed out/i.test(e.message)?Error(`Preview timed out`):e:Error(String(e))}function ne({error:e,emptyDescription:t=`agent-workspace has not been loaded yet.`,emptyTitle:n=`Workspace unavailable`,loadWorkspaceFile:r,loading:i,onSelectedPathChange:a,previewEmptyDescription:o=`Choose a workspace file to preview its Markdown.`,previewEmptyTitle:s=`Select a file`,scopePath:c,scopeLabel:l,selectedPath:d,treeTestId:p=`workspace-tree`,workspace:m}){let[g,_]=(0,j.useState)(null),v=a!==void 0,b=v?d??null:g,x=e=>{if(v){a(e);return}_(e)},[C,E]=(0,j.useState)(null),[k,N]=(0,j.useState)(null),[P,F]=(0,j.useState)(!1),I=(0,j.useRef)(null),{handleTreeResizeStart:L,splitRef:R,splitStyle:z}=Q(m),V=(0,j.useMemo)(()=>{if(!m)return{headerLabel:l??`agent-workspace`,nodes:[]};if(!c)return{headerLabel:m.root,nodes:m.nodes};let e=u(m.nodes,c);return e?e.type===`directory`?{headerLabel:l??e.name,nodes:e.children??[]}:{headerLabel:l??e.name,nodes:[e]}:{headerLabel:l??c.split(`/`).pop()??c,nodes:[]}},[l,c,m]);return(0,j.useEffect)(()=>{if(!(!m||!b)){if(c&&!T(b,c)){x(null),E(null),N(null);return}u(m.nodes,b)?.type!==`file`&&(x(null),E(null),N(null))}},[a,c,b,m]),(0,j.useEffect)(()=>{if(!b){F(!1);return}let e=b,t=new AbortController,n=window.setTimeout(()=>t.abort(),ee),i=!1;return E(t=>t?.path===e?t:null),F(!0),N(null),(async()=>{try{let n=await Promise.race([r(e,t.signal),new Promise((e,n)=>{let r=()=>n(new DOMException(`Preview timed out`,`AbortError`));if(t.signal.aborted){r();return}t.signal.addEventListener(`abort`,r,{once:!0})})]);if(i)return;E(n),N(null)}catch(e){if(i)return;E(null),N(te(e))}finally{i||F(!1)}})(),()=>{i=!0,window.clearTimeout(n),t.abort()}},[r,b,m]),(0,j.useEffect)(()=>{if(!b||typeof window>`u`||window.matchMedia(`(min-width: 960px)`).matches)return;let e=window.requestAnimationFrame(()=>{I.current?.scrollIntoView({block:`start`,inline:`nearest`,behavior:`auto`})});return()=>window.cancelAnimationFrame(e)},[b]),e?y(e)?(0,M.jsx)(D,{icon:f,title:`Daytona not connected`,description:`Connect a Daytona API key for your account to browse and preview your agent workspace.`}):(0,M.jsx)(D,{icon:f,title:`Unable to load workspace`,description:e.message}):i&&!m?(0,M.jsx)(A,{}):!m||c&&V.nodes.length===0?(0,M.jsx)(D,{icon:w,title:n,description:t}):(0,M.jsxs)(`div`,{ref:R,className:`relative grid h-full min-h-0 grid-cols-1 gap-2 overflow-hidden ${S}`,style:z,children:[(0,M.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-col overflow-hidden`,children:(0,M.jsxs)(`div`,{"data-testid":p,className:`min-h-0 min-w-0 flex-1 overflow-y-auto`,children:[(0,M.jsxs)(`div`,{className:`mb-2 flex min-w-0 items-center gap-2 rounded-sm bg-foreground/5 px-2 py-1.5`,children:[(0,M.jsx)(w,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,M.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:V.headerLabel})]}),(0,M.jsx)(B,{ariaLabel:c?`Files in ${V.headerLabel}`:`Workspace files`,className:`gap-0.5`,classNames:{item:`h-8 gap-1.5 rounded-sm text-label font-normal text-foreground/65 hover:bg-foreground/5 hover:text-foreground/80 aria-selected:bg-foreground/8 aria-selected:text-foreground/80`,icon:`size-3.5 text-foreground/35`,label:`text-label`},value:b,onValueChange:e=>{u(m.nodes,e)?.type===`file`&&x(e)},children:V.nodes.map(e=>$(e))}),m.diagnostics.length>0&&!c&&(0,M.jsx)(`div`,{className:`mt-2 border-t border-border/60 pt-2`,children:(0,M.jsx)(O,{id:`workspace-diagnostics`,label:`Diagnostics`,icon:f,items:m.diagnostics.map((e,t)=>({name:`Diagnostic ${t+1}`,description:e}))})})]})}),(0,M.jsx)(`button`,{type:`button`,"aria-label":`Resize workspace tree`,className:`min-h-0 cursor-col-resize touch-none bg-transparent transition-colors outline-none hover:bg-foreground/10 focus-visible:bg-foreground/10 ${h}`,"data-testid":`workspace-tree-resize-handle`,onPointerDown:L}),(0,M.jsx)(re,{emptyDescription:o,emptyTitle:s,error:k,loading:P,preview:C,previewRef:I,selectedPath:b})]})}function $(e){return e.type===`directory`?(0,M.jsx)(N,{value:e.path,name:e.name,children:e.children?.map(e=>$(e))},e.path):(0,M.jsx)(P,{value:e.path,name:e.name},e.path)}function re({emptyDescription:e,emptyTitle:t,error:n,loading:r,preview:i,previewRef:a,selectedPath:o}){return(0,M.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-col overflow-hidden rounded-md border border-border/60 bg-background`,"data-testid":`workspace-preview`,ref:a,children:[(0,M.jsxs)(`div`,{className:`flex min-h-9 min-w-0 shrink-0 items-center gap-2 border-b border-border/60 px-2.5`,children:[(0,M.jsx)(p,{className:`size-3.5 shrink-0 text-foreground/35`}),(0,M.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:i?.name??o??`Preview`})]}),(0,M.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-3 py-2`,children:[!o&&(0,M.jsx)(D,{icon:p,title:t,description:e}),o&&r&&!i&&(0,M.jsx)(k,{}),o&&n&&(0,M.jsx)(D,{icon:f,title:`Unable to load preview`,description:n.message}),o&&!n&&i?.status===`too-large`&&(0,M.jsx)(D,{icon:f,title:`Preview too large`,description:`${i.name} is too large to preview safely.`}),o&&!n&&i?.status===`unsupported`&&(0,M.jsx)(D,{icon:f,title:`Unsupported preview`,description:`${i.name} is not a supported text file.`}),o&&!n&&i&&(i.status===void 0||i.status===`ok`)&&(0,M.jsx)(E,{className:`text-label leading-relaxed`,content:i.content})]})]})}export{ne as WorkspacePanelContent};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-09-
|
|
3
|
-
"routeEntry": "routes-
|
|
4
|
-
"routeEntryGzipBytes":
|
|
5
|
-
"routeEntryReduction": 0.
|
|
6
|
-
"eagerFiles":
|
|
7
|
-
"eagerGzipBytes":
|
|
2
|
+
"timestamp": "2026-09-12T13:27:24.204Z",
|
|
3
|
+
"routeEntry": "routes-XGsAIqBJ.js",
|
|
4
|
+
"routeEntryGzipBytes": 98751,
|
|
5
|
+
"routeEntryReduction": 0.9067096569406368,
|
|
6
|
+
"eagerFiles": 68,
|
|
7
|
+
"eagerGzipBytes": 369113,
|
|
8
8
|
"passed": true,
|
|
9
9
|
"violations": []
|
|
10
10
|
}
|
package/dist/web/launcher.mjs
CHANGED
|
@@ -94,7 +94,16 @@ async function handleRequest(request, response) {
|
|
|
94
94
|
response.end();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
Readable.fromWeb(webResponse.body)
|
|
97
|
+
const body = Readable.fromWeb(webResponse.body);
|
|
98
|
+
body.on("error", (streamError) => {
|
|
99
|
+
if (!response.writableEnded) {
|
|
100
|
+
response.destroy(streamError instanceof Error ? streamError : undefined);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
response.on("error", () => {
|
|
104
|
+
body.destroy();
|
|
105
|
+
});
|
|
106
|
+
body.pipe(response);
|
|
98
107
|
} catch (error) {
|
|
99
108
|
if (response.headersSent) {
|
|
100
109
|
response.destroy(error instanceof Error ? error : undefined);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-MLKGABMK.js";
|
|
2
2
|
|
|
3
|
-
// web/app/dist/server/assets/_tanstack-start-manifest_v-
|
|
3
|
+
// web/app/dist/server/assets/_tanstack-start-manifest_v-0L7fqnH4.js
|
|
4
4
|
var tsrStartManifest = () => ({ routes: {
|
|
5
5
|
__root__: {
|
|
6
6
|
filePath: "/home/circleci/prime-agent/web/app/src/routes/__root.tsx",
|
|
@@ -15,57 +15,58 @@ var tsrStartManifest = () => ({ routes: {
|
|
|
15
15
|
"/api/workspace/tree"
|
|
16
16
|
],
|
|
17
17
|
preloads: [
|
|
18
|
-
"/assets/index-
|
|
18
|
+
"/assets/index-CSGplyr_.js",
|
|
19
19
|
"/assets/rolldown-runtime-hePW80VL.js",
|
|
20
20
|
"/assets/bundle-mjs-DKHVkVWu.js",
|
|
21
21
|
"/assets/react-dom-Bwxum3ti.js",
|
|
22
22
|
"/assets/jsx-runtime-NZYk81nU.js",
|
|
23
|
-
"/assets/analytics-stub-
|
|
24
|
-
"/assets/button-
|
|
23
|
+
"/assets/analytics-stub-B6zGMuSV.js",
|
|
24
|
+
"/assets/button-C5wFDY5_.js",
|
|
25
|
+
"/assets/card-DA3Vnqay.js",
|
|
25
26
|
"/assets/layout-gyLzPvVv.js",
|
|
26
|
-
"/assets/toast-
|
|
27
|
-
"/assets/card-BKl76a3R.js",
|
|
27
|
+
"/assets/toast-D3c9XeGe.js",
|
|
28
28
|
"/assets/ui-preferences-CImQGZm_.js",
|
|
29
29
|
"/assets/preload-helper-Czpn1I53.js"
|
|
30
30
|
],
|
|
31
31
|
scripts: [{ attrs: {
|
|
32
32
|
type: "module",
|
|
33
33
|
async: true,
|
|
34
|
-
src: "/assets/index-
|
|
34
|
+
src: "/assets/index-CSGplyr_.js"
|
|
35
35
|
} }]
|
|
36
36
|
},
|
|
37
37
|
"/": {
|
|
38
38
|
filePath: "/home/circleci/prime-agent/web/app/src/routes/index.tsx",
|
|
39
39
|
children: void 0,
|
|
40
40
|
preloads: [
|
|
41
|
-
"/assets/routes-
|
|
41
|
+
"/assets/routes-XGsAIqBJ.js",
|
|
42
|
+
"/assets/utils-Eg7xtNmV.js",
|
|
42
43
|
"/assets/ease-u56MhKYS.js",
|
|
43
|
-
"/assets/prompt-input-
|
|
44
|
+
"/assets/prompt-input-fwP8TsgQ.js",
|
|
44
45
|
"/assets/use-reduced-motion-eORd7fqW.js",
|
|
45
46
|
"/assets/createBaseUIEventDetails-DV0dQrBX.js",
|
|
46
|
-
"/assets/dialog-
|
|
47
|
-
"/assets/provider-catalog-
|
|
47
|
+
"/assets/dialog-pBGUjAQ7.js",
|
|
48
|
+
"/assets/provider-catalog-DYMFdbKc.js",
|
|
48
49
|
"/assets/useBaseUiId-CHqXB2UQ.js",
|
|
49
|
-
"/assets/provider-label-
|
|
50
|
-
"/assets/utils-Eg7xtNmV.js",
|
|
50
|
+
"/assets/provider-label-B4q5mI65.js",
|
|
51
51
|
"/assets/createLucideIcon-DwxZHm0M.js",
|
|
52
|
-
"/assets/right-panel-registry-
|
|
53
|
-
"/assets/citations-
|
|
52
|
+
"/assets/right-panel-registry-BBlxLxnx.js",
|
|
53
|
+
"/assets/citations-BPv8HIpf.js",
|
|
54
54
|
"/assets/resource-helpers-Q2T0YCMO.js",
|
|
55
55
|
"/assets/bot-Bs7QWJ2q.js",
|
|
56
56
|
"/assets/check-JjHKAZas.js",
|
|
57
57
|
"/assets/chevron-down-BEVGmnSb.js",
|
|
58
|
-
"/assets/virtualized-turn-list-
|
|
58
|
+
"/assets/virtualized-turn-list-CdMa-ydT.js",
|
|
59
59
|
"/assets/chevron-right-DrJxToLs.js",
|
|
60
60
|
"/assets/chevron-up-CnSvySGH.js",
|
|
61
61
|
"/assets/circle-alert-CONlFReH.js",
|
|
62
62
|
"/assets/loader-circle-DjfHXUPB.js",
|
|
63
|
-
"/assets/action-swap-roll-
|
|
63
|
+
"/assets/action-swap-roll-COzQ86wm.js",
|
|
64
64
|
"/assets/file-text-T-NcAlZs.js",
|
|
65
|
-
"/assets/horizontal-resize-
|
|
65
|
+
"/assets/horizontal-resize-Cp3iHMH7.js",
|
|
66
66
|
"/assets/folder-BC5p7qK7.js",
|
|
67
67
|
"/assets/gauge-DNpstbBn.js",
|
|
68
68
|
"/assets/package-CdcJFPf2.js",
|
|
69
|
+
"/assets/pencil-DcUwsKLn.js",
|
|
69
70
|
"/assets/plus-DXN1Bg_z.js",
|
|
70
71
|
"/assets/refresh-cw-IThTJ3j-.js",
|
|
71
72
|
"/assets/rotate-ccw-WNFNkKQD.js",
|
|
@@ -75,16 +76,16 @@ var tsrStartManifest = () => ({ routes: {
|
|
|
75
76
|
"/assets/triangle-alert-CU-gd7ui.js",
|
|
76
77
|
"/assets/x-CsRC_tCI.js",
|
|
77
78
|
"/assets/safe-storage-s25GrfpH.js",
|
|
79
|
+
"/assets/surfaces-BhAXz9So.js",
|
|
78
80
|
"/assets/cn-C8c0S2mI.js",
|
|
79
|
-
"/assets/notify-
|
|
80
|
-
"/assets/workspace-path-nav-C0AQNZyy.js",
|
|
81
|
+
"/assets/notify-DxL0VD7Z.js",
|
|
81
82
|
"/assets/useControlled-CJJ9BOQB.js",
|
|
82
|
-
"/assets/
|
|
83
|
-
"/assets/
|
|
83
|
+
"/assets/workspace-path-nav-C0AQNZyy.js",
|
|
84
|
+
"/assets/agent-disclosure-DAMuuGcM.js",
|
|
84
85
|
"/assets/prime-agent-artifacts-C-g1VPiW.js",
|
|
85
|
-
"/assets/chat-
|
|
86
|
+
"/assets/chat-BhYseKd6.js",
|
|
86
87
|
"/assets/right-panel-context-DHlNWJsF.js",
|
|
87
|
-
"/assets/input-
|
|
88
|
+
"/assets/input-PcdubeKn.js",
|
|
88
89
|
"/assets/artifacts-utils-N_kUFbz2.js"
|
|
89
90
|
]
|
|
90
91
|
}
|
package/dist/web/server/{agent-activity-CS2rbF_C-A3R26CYH.js → agent-activity-BuEE6iVw-CDZLK4D2.js}
RENAMED
|
@@ -15,20 +15,20 @@ import {
|
|
|
15
15
|
} from "./chunk-JIULUYHT.js";
|
|
16
16
|
import {
|
|
17
17
|
AgentDisclosure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VPKX7QRU.js";
|
|
19
19
|
import {
|
|
20
20
|
Wrench
|
|
21
21
|
} from "./chunk-O2DUZJYK.js";
|
|
22
22
|
import {
|
|
23
23
|
AnimatePresence,
|
|
24
24
|
useReducedMotion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NIZBFVJF.js";
|
|
26
26
|
import {
|
|
27
27
|
EASE_OUT,
|
|
28
28
|
SPRING_LAYOUT,
|
|
29
29
|
SPRING_SWAP,
|
|
30
30
|
m
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EBG3XFGQ.js";
|
|
32
32
|
import "./chunk-FAGDMGLK.js";
|
|
33
33
|
import {
|
|
34
34
|
isSafeExternalUrl
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import "./chunk-JDCCC7A7.js";
|
|
55
55
|
import "./chunk-MLKGABMK.js";
|
|
56
56
|
|
|
57
|
-
// web/app/dist/server/assets/agent-activity-
|
|
57
|
+
// web/app/dist/server/assets/agent-activity-BuEE6iVw.js
|
|
58
58
|
import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
59
59
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
60
60
|
var Circle = createLucideIcon("circle", [["circle", {
|
|
@@ -9,51 +9,51 @@ import {
|
|
|
9
9
|
FileDiff,
|
|
10
10
|
ToolResult,
|
|
11
11
|
ToolResultOutput
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-DLUZFOG3.js";
|
|
13
|
+
import "./chunk-EJEPDVK6.js";
|
|
14
|
+
import "./chunk-VPKX7QRU.js";
|
|
15
15
|
import {
|
|
16
16
|
Collapsible,
|
|
17
17
|
CollapsibleContent,
|
|
18
18
|
CollapsibleTrigger
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MNPHMZU7.js";
|
|
20
20
|
import "./chunk-OOXWPL22.js";
|
|
21
21
|
import "./chunk-O2DUZJYK.js";
|
|
22
22
|
import "./chunk-ON33WDZX.js";
|
|
23
23
|
import "./chunk-TNL4YV63.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-NIZBFVJF.js";
|
|
25
25
|
import {
|
|
26
26
|
ChevronRight
|
|
27
27
|
} from "./chunk-3C4CFCIS.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-EBG3XFGQ.js";
|
|
29
29
|
import "./chunk-FAGDMGLK.js";
|
|
30
30
|
import {
|
|
31
31
|
GenerativeTextRenderer,
|
|
32
32
|
OpenUIHtmlArtifactView
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-O3HDELZ2.js";
|
|
34
34
|
import {
|
|
35
35
|
UiErrorBoundary
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-D27LRYVT.js";
|
|
37
|
+
import "./chunk-3TIMGWWI.js";
|
|
38
|
+
import "./chunk-PLYZ7P2Y.js";
|
|
39
|
+
import "./chunk-KP2PNDGL.js";
|
|
40
|
+
import "./chunk-NNKJTKOQ.js";
|
|
41
41
|
import "./chunk-RJOANOT4.js";
|
|
42
42
|
import "./chunk-NFRJDPB3.js";
|
|
43
43
|
import "./chunk-OZO5ARFA.js";
|
|
44
44
|
import "./chunk-L46H6IDX.js";
|
|
45
45
|
import "./chunk-WWJF4RO2.js";
|
|
46
46
|
import "./chunk-7PQTPSEE.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-5UCAJBAH.js";
|
|
48
|
+
import "./chunk-4WBFCB4O.js";
|
|
49
49
|
import {
|
|
50
50
|
Button
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-WNCAL4HN.js";
|
|
52
52
|
import "./chunk-4QD4PCVP.js";
|
|
53
53
|
import "./chunk-S3PQ6HKH.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-MNBGB2SP.js";
|
|
55
55
|
import "./chunk-JBLHIEVG.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-XIB6XNUX.js";
|
|
57
57
|
import "./chunk-ST5I2PLN.js";
|
|
58
58
|
import "./chunk-YOM42BKD.js";
|
|
59
59
|
import {
|
|
@@ -71,7 +71,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
71
71
|
import "./chunk-L547YHC4.js";
|
|
72
72
|
import "./chunk-MLKGABMK.js";
|
|
73
73
|
|
|
74
|
-
// web/app/dist/server/assets/artifacts-panel-
|
|
74
|
+
// web/app/dist/server/assets/artifacts-panel-D3ySO--V.js
|
|
75
75
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
76
76
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
77
77
|
var LayoutTemplate = createLucideIcon("layout-template", [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RIGHT_PANEL_LAUNCHER_DEFINITIONS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2DDWXTVG.js";
|
|
4
4
|
import {
|
|
5
5
|
Keyboard,
|
|
6
6
|
Monitor,
|
|
@@ -24,18 +24,18 @@ import {
|
|
|
24
24
|
CommandItem,
|
|
25
25
|
CommandList,
|
|
26
26
|
CommandSeparator
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-RIP3PBWT.js";
|
|
28
|
+
import "./chunk-NJ4QEZHK.js";
|
|
29
29
|
import "./chunk-JIULUYHT.js";
|
|
30
30
|
import "./chunk-7PQTPSEE.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-5UCAJBAH.js";
|
|
32
|
+
import "./chunk-4WBFCB4O.js";
|
|
33
|
+
import "./chunk-WNCAL4HN.js";
|
|
34
34
|
import "./chunk-4QD4PCVP.js";
|
|
35
35
|
import "./chunk-S3PQ6HKH.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-MNBGB2SP.js";
|
|
37
37
|
import "./chunk-JBLHIEVG.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-XIB6XNUX.js";
|
|
39
39
|
import "./chunk-EAJTWMK5.js";
|
|
40
40
|
import "./chunk-SFTKGQ7H.js";
|
|
41
41
|
import "./chunk-X7D6GFQU.js";
|
|
@@ -47,7 +47,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
47
47
|
import "./chunk-L547YHC4.js";
|
|
48
48
|
import "./chunk-MLKGABMK.js";
|
|
49
49
|
|
|
50
|
-
// web/app/dist/server/assets/chat-command-palette-
|
|
50
|
+
// web/app/dist/server/assets/chat-command-palette-kAbXhWVg.js
|
|
51
51
|
import { useState } from "react";
|
|
52
52
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
53
53
|
var RotateCcwClock = createLucideIcon("rotate-ccw-clock", [
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
createLucideIcon
|
|
22
22
|
} from "./chunk-4ZIEVI5O.js";
|
|
23
23
|
|
|
24
|
-
// web/app/dist/server/assets/right-panel-registry-
|
|
24
|
+
// web/app/dist/server/assets/right-panel-registry-C3gjjGnm.js
|
|
25
25
|
import { Suspense, lazy } from "react";
|
|
26
26
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
27
|
var Activity = createLucideIcon("activity", [["path", {
|
|
@@ -46,12 +46,12 @@ var Library = createLucideIcon("library", [
|
|
|
46
46
|
key: "6qkkli"
|
|
47
47
|
}]
|
|
48
48
|
]);
|
|
49
|
-
var LazyArtifactsPanel = lazy(() => import("./artifacts-panel-
|
|
49
|
+
var LazyArtifactsPanel = lazy(() => import("./artifacts-panel-D3ySO--V-XSL53CXL.js").then(({ ArtifactsPanelContent }) => ({ default: ArtifactsPanelContent })));
|
|
50
50
|
var LazyResourcesPanel = lazy(() => import("./resources-panel-CE5pD4vy-V5FXBTYC.js").then(({ ResourcesPanelContent }) => ({ default: ResourcesPanelContent })));
|
|
51
51
|
var LazySessionInsightsPanel = lazy(() => import("./session-insights-panel-CUhdgvRt-VB2HUCQP.js").then(({ SessionInsightsPanel }) => ({ default: SessionInsightsPanel })));
|
|
52
|
-
var LazyReplPanel = lazy(() => import("./repl-panel-
|
|
53
|
-
var LazySubagentsPanel = lazy(() => import("./subagents-panel-
|
|
54
|
-
var LazyWorkspacePanel = lazy(() => import("./workspace-panel-
|
|
52
|
+
var LazyReplPanel = lazy(() => import("./repl-panel-CuyF8wt5-CHDT2Q3N.js").then(({ ReplPanelContent }) => ({ default: ReplPanelContent })));
|
|
53
|
+
var LazySubagentsPanel = lazy(() => import("./subagents-panel-Berjd7HJ-EI5ZKC6V.js").then(({ SubagentsPanelContent }) => ({ default: SubagentsPanelContent })));
|
|
54
|
+
var LazyWorkspacePanel = lazy(() => import("./workspace-panel-CBBa_3UO-B4PPFPMA.js").then(({ WorkspacePanelContent }) => ({ default: WorkspacePanelContent })));
|
|
55
55
|
function PanelFallback() {
|
|
56
56
|
return /* @__PURE__ */ jsxs("div", {
|
|
57
57
|
className: "flex min-h-32 flex-col gap-3 p-4",
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
useFloatingTree,
|
|
33
33
|
useRenderDialogRoot,
|
|
34
34
|
useSurface
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4WBFCB4O.js";
|
|
36
36
|
import {
|
|
37
37
|
Button,
|
|
38
38
|
Timeout,
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
ownerDocument,
|
|
46
46
|
require_shim,
|
|
47
47
|
useTimeout
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WNCAL4HN.js";
|
|
49
49
|
import {
|
|
50
50
|
useValueAsRef
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MNBGB2SP.js";
|
|
52
52
|
import {
|
|
53
53
|
NOOP,
|
|
54
54
|
addEventListener,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
useOnMount,
|
|
60
60
|
useRefWithInit,
|
|
61
61
|
useStableCallback
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-XIB6XNUX.js";
|
|
63
63
|
import {
|
|
64
64
|
Plug
|
|
65
65
|
} from "./chunk-AHTO6GDS.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
cn
|
|
71
71
|
} from "./chunk-DJMHPJBP.js";
|
|
72
72
|
|
|
73
|
-
// web/app/dist/server/assets/provider-label-
|
|
73
|
+
// web/app/dist/server/assets/provider-label-CovTgPRx.js
|
|
74
74
|
import * as React$1 from "react";
|
|
75
75
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
76
76
|
import * as ReactDOM from "react-dom";
|
|
@@ -181,13 +181,6 @@ var Cpu = createLucideIcon("cpu", [
|
|
|
181
181
|
key: "z9xiuo"
|
|
182
182
|
}]
|
|
183
183
|
]);
|
|
184
|
-
var Pencil = createLucideIcon("pencil", [["path", {
|
|
185
|
-
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
186
|
-
key: "1a8usu"
|
|
187
|
-
}], ["path", {
|
|
188
|
-
d: "m15 5 4 4",
|
|
189
|
-
key: "1mk7zo"
|
|
190
|
-
}]]);
|
|
191
184
|
var Server = createLucideIcon("server", [
|
|
192
185
|
["rect", {
|
|
193
186
|
width: "20",
|
|
@@ -943,15 +936,6 @@ var fleetPiRowSurface = cva("flex min-w-0 rounded-[4px] border", {
|
|
|
943
936
|
interactive: false
|
|
944
937
|
}
|
|
945
938
|
});
|
|
946
|
-
function Spinner({ className, ...props }) {
|
|
947
|
-
return /* @__PURE__ */ jsx(LoaderCircle, {
|
|
948
|
-
"data-slot": "spinner",
|
|
949
|
-
role: "status",
|
|
950
|
-
"aria-label": "Loading",
|
|
951
|
-
className: cn("size-4 animate-spin", className),
|
|
952
|
-
...props
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
939
|
function AlertDialogRoot(props) {
|
|
956
940
|
return useRenderDialogRoot("alert-dialog", props);
|
|
957
941
|
}
|
|
@@ -1023,6 +1007,15 @@ function AlertDialogAction({ ...props }) {
|
|
|
1023
1007
|
...props
|
|
1024
1008
|
});
|
|
1025
1009
|
}
|
|
1010
|
+
function Spinner({ className, ...props }) {
|
|
1011
|
+
return /* @__PURE__ */ jsx(LoaderCircle, {
|
|
1012
|
+
"data-slot": "spinner",
|
|
1013
|
+
role: "status",
|
|
1014
|
+
"aria-label": "Loading",
|
|
1015
|
+
className: cn("size-4 animate-spin", className),
|
|
1016
|
+
...props
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1026
1019
|
var PROVIDER_METADATA = {
|
|
1027
1020
|
"amazon-bedrock": {
|
|
1028
1021
|
icon: Server,
|
|
@@ -1166,7 +1159,6 @@ function formatProviderLabel(provider) {
|
|
|
1166
1159
|
export {
|
|
1167
1160
|
ArrowLeft,
|
|
1168
1161
|
Cpu,
|
|
1169
|
-
Pencil,
|
|
1170
1162
|
Settings,
|
|
1171
1163
|
Trash2,
|
|
1172
1164
|
getDelay,
|
|
@@ -1184,7 +1176,6 @@ export {
|
|
|
1184
1176
|
CHAT_HEADER_LAYER_CLASS,
|
|
1185
1177
|
PANEL_OVERLAY_CLASS,
|
|
1186
1178
|
fleetPiRowSurface,
|
|
1187
|
-
Spinner,
|
|
1188
1179
|
AlertDialog,
|
|
1189
1180
|
AlertDialogContent,
|
|
1190
1181
|
AlertDialogTitle,
|
|
@@ -1192,6 +1183,7 @@ export {
|
|
|
1192
1183
|
AlertDialogFooter,
|
|
1193
1184
|
AlertDialogCancel,
|
|
1194
1185
|
AlertDialogAction,
|
|
1186
|
+
Spinner,
|
|
1195
1187
|
PROVIDER_METADATA,
|
|
1196
1188
|
ProviderBrandIcon,
|
|
1197
1189
|
formatProviderLabel
|
|
@@ -2,8 +2,7 @@ import {
|
|
|
2
2
|
cn
|
|
3
3
|
} from "./chunk-DJMHPJBP.js";
|
|
4
4
|
|
|
5
|
-
// web/app/dist/server/assets/src-
|
|
6
|
-
import "react";
|
|
5
|
+
// web/app/dist/server/assets/src-DqMPYo0-.js
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
function Card({ className, size = "default", ...props }) {
|
|
9
8
|
return /* @__PURE__ */ jsx("div", {
|