@qredence/fleet 0.5.10 → 0.5.11
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 +15 -0
- package/dist/web/client/assets/agent-activity-CwMDU7aP.js +1 -0
- package/dist/web/client/assets/artifacts-panel-CQmFEF_H.js +1 -0
- package/dist/web/client/assets/{chat-command-palette-DfYSPPXI.js → chat-command-palette-CmHTS3rs.js} +1 -1
- package/dist/web/client/assets/{chat-C8XDWWXz.js → chat-yh02zgA7.js} +1 -1
- package/dist/web/client/assets/{citations-BQ_pr_9_.js → citations-C_tPOJE_.js} +1 -1
- package/dist/web/client/assets/{fleet-message-queue-zWM5-y18.js → fleet-message-queue-DUz6Hfrf.js} +1 -1
- package/dist/web/client/assets/{fleet-pi-tool-renderer-AJoMbXBa.js → fleet-pi-tool-renderer-BEDIO3al.js} +4 -4
- package/dist/web/client/assets/fleet-reasoning-panel-CbkO7u-v.js +1 -0
- package/dist/web/client/assets/{fleet-subagent-list-BnRnrWKS.js → fleet-subagent-list-iKUtLJKZ.js} +1 -1
- package/dist/web/client/assets/fleet-tool-timeline-C8heL7ae.js +1 -0
- package/dist/web/client/assets/{fork-picker-dialog-CkcSekBl.js → fork-picker-dialog-ByBOGVsa.js} +1 -1
- package/dist/web/client/assets/globals-B_I1Eq1u.css +2 -0
- package/dist/web/client/assets/horizontal-resize-qK6eRhIG.js +1 -0
- package/dist/web/client/assets/{index-DlnHLDpx.js → index-C1zOjrMK.js} +3 -3
- package/dist/web/client/assets/{ipython-tool-BrMePqD-.js → ipython-tool-ldJ9F1Cw.js} +1 -1
- package/dist/web/client/assets/model-selector-list-DsKTuAgS.js +1 -0
- package/dist/web/client/assets/{openui-renderer-DwYFJdbe.js → openui-renderer-J3dhPpL4.js} +5 -5
- package/dist/web/client/assets/prompt-input-qPIXZ-Rb.js +1 -0
- package/dist/web/client/assets/prompt-suggestions-Cc--lSNR.js +1 -0
- package/dist/web/client/assets/{provider-label-BCJh04J5.js → provider-label-Dpr7djG9.js} +1 -1
- package/dist/web/client/assets/repl-panel-DsPX04Xr.js +1 -0
- package/dist/web/client/assets/{resources-panel-Bo8dfUdm.js → resources-panel-D867-goy.js} +1 -1
- package/dist/web/client/assets/right-panel-registry-DewpBWHM.js +2 -0
- package/dist/web/client/assets/routes-vNkVToAF.js +16 -0
- package/dist/web/client/assets/safe-storage-s25GrfpH.js +1 -0
- package/dist/web/client/assets/session-insights-panel-YnaXvTpi.js +1 -0
- package/dist/web/client/assets/settings-dialog-B-v4me3Y.js +1 -0
- package/dist/web/client/assets/skeleton-loaders-C9vHwAYV.js +1 -0
- package/dist/web/client/assets/{subagent-chat-panel-DseoO31p.js → subagent-chat-panel-DkVUumrP.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-D8wmQxXe.js +1 -0
- package/dist/web/client/assets/subagents-panel-BMp2Ego0.js +1 -0
- package/dist/web/client/assets/{surfaces-cW-gp56p.js → surfaces-DI-U-_2a.js} +1 -1
- package/dist/web/client/assets/tool-result-DfnPN0FQ.js +4 -0
- package/dist/web/client/assets/ui-preferences-CImQGZm_.js +1 -0
- package/dist/web/client/assets/virtualized-turn-list-DMJENRY0.js +6 -0
- package/dist/web/client/assets/{workspace-panel-DI1W3ce9.js → workspace-panel-G6yMpKJ8.js} +1 -1
- package/dist/web/client/bundle-budget.json +6 -6
- package/dist/web/server/{_tanstack-start-manifest_v-Cdx6hy2i-I7A5YJRU.js → _tanstack-start-manifest_v-po4woX6g-AUGCOEZ2.js} +14 -13
- package/dist/web/server/{agent-activity-B-JMvecd-SLE3GGY2.js → agent-activity-CS2rbF_C-A3R26CYH.js} +2 -2
- package/dist/web/server/{artifacts-panel-DLMK1O8P-42T45JMA.js → artifacts-panel-8GGUCtOd-X5TNKTY2.js} +12 -12
- package/dist/web/server/{chat-command-palette-CdYwoTMe-4LBAZF7K.js → chat-command-palette-Dgl5tqWn-72LLEWUD.js} +2 -2
- package/dist/web/server/{chunk-K5ESTT4A.js → chunk-7MDZVLIY.js} +11 -3
- package/dist/web/server/{chunk-EBCYJSBR.js → chunk-7SD2ZSEA.js} +3 -3
- package/dist/web/server/{chunk-M564UIEY.js → chunk-ABBWBBSS.js} +8 -8
- package/dist/web/server/{chunk-KNJUSMBT.js → chunk-BXWAUTTH.js} +2 -2
- package/dist/web/server/{chunk-54II5QXQ.js → chunk-ETTDO4UO.js} +6 -3
- package/dist/web/server/{chunk-EHNIN245.js → chunk-GETSIVNU.js} +5 -5
- package/dist/web/server/{chunk-NRDG2ISJ.js → chunk-GGT2ZKDB.js} +49 -49
- package/dist/web/server/{chunk-X2R5YPQZ.js → chunk-IJPCV6DH.js} +3 -2
- package/dist/web/server/{chunk-AJJ2S5FF.js → chunk-JQDLJ7KI.js} +20 -20
- package/dist/web/server/{chunk-VHBFU4TG.js → chunk-JUROEEWM.js} +43 -14
- package/dist/web/server/{chunk-TCH3U26B.js → chunk-MIW4LJTV.js} +2 -2
- package/dist/web/server/{chunk-2TRF62K5.js → chunk-N6NOTURM.js} +3 -3
- package/dist/web/server/{chunk-5XX7RKJ6.js → chunk-NXJ32VFR.js} +5 -5
- package/dist/web/server/{chunk-EOVMHQ2H.js → chunk-O4OTWWPF.js} +7 -7
- package/dist/web/server/{chunk-OB5OSYJK.js → chunk-RNOJACWQ.js} +53 -29
- package/dist/web/server/chunk-SZJUXVWG.js +40 -0
- package/dist/web/server/{chunk-6AW2XFTZ.js → chunk-WILCIZYU.js} +194 -10
- package/dist/web/server/{chunk-FED63ZHU.js → chunk-WKV2Z4KO.js} +10 -5
- package/dist/web/server/{chunk-ANL4B775.js → chunk-XLNCWZMZ.js} +2 -2
- package/dist/web/server/{chunk-GM32R7JW.js → chunk-YKVGQBZA.js} +10 -8
- package/dist/web/server/{chunk-3PIUR75R.js → chunk-YXXRP3NS.js} +9 -9
- package/dist/web/server/{fleet-message-queue-BxycG26e-2XLOTCLP.js → fleet-message-queue-j0DCU5Xy-5HKBHMPV.js} +2 -2
- package/dist/web/server/{fleet-pi-tool-renderer-RIeVlM9J-D6MISCQC.js → fleet-pi-tool-renderer-umKunT3K-O4GBH35V.js} +5 -5
- package/dist/web/server/{fleet-reasoning-panel-D_K48UOT-GN2PA6KT.js → fleet-reasoning-panel-BxC2COxi-GPLMQSTT.js} +9 -9
- package/dist/web/server/{fleet-subagent-list-5luKtpds-3OTVFHJQ.js → fleet-subagent-list-CpSYzCIq-JDH2LHSS.js} +1 -1
- package/dist/web/server/{fleet-tool-timeline-DwRqQgOj-HUFLGMDV.js → fleet-tool-timeline-IB36_PB2-XJENTO6I.js} +1 -1
- package/dist/web/server/{fork-picker-dialog-B9yGc8Au-IL63F2DN.js → fork-picker-dialog-DlINz9UQ-UWIXFDJX.js} +3 -3
- package/dist/web/server/{model-selector-list-cb2-ewoA-KIVU6LD3.js → model-selector-list-OYnzNbyu-HBGCNF2L.js} +5 -5
- package/dist/web/server/{openui-renderer-Czy5Vo2L-BLXPJD65.js → openui-renderer-Cj7kfqyL-EKJ6JTTQ.js} +4 -4
- package/dist/web/server/{prompt-suggestions-BOmHi4-J-C563CHFU.js → prompt-suggestions-D4AEEY7K-RZSP7PWV.js} +3 -3
- package/dist/web/server/{repl-panel-yyxhwe4c-7U6HXYPS.js → repl-panel-D5KsoJik-BQKO53JO.js} +9 -9
- package/dist/web/server/{resources-panel-j4fAIi9g-5C267IXV.js → resources-panel-CE5pD4vy-V5FXBTYC.js} +2 -2
- package/dist/web/server/{router-CgSWrAYc-5UBYSZTJ.js → router-Ci1wxI7I-E2AYMNON.js} +253 -76
- package/dist/web/server/{routes-CP_BBhD0-BAWQYGKY.js → routes-CRpm9-Sa-IYK6MUJO.js} +705 -537
- package/dist/web/server/server.js +2 -2
- package/dist/web/server/{session-insights-panel-BHZyKDTo-LRMAMA3O.js → session-insights-panel-CUhdgvRt-VB2HUCQP.js} +4 -4
- package/dist/web/server/{settings-dialog-CxHe8nym-KKXDPTIW.js → settings-dialog-BvkgNflv-GPJ6COQO.js} +14 -10
- package/dist/web/server/{subagent-chat-panel-DlSsM59d-DBW7DI3T.js → subagent-chat-panel-CMuvW9Sd-M5TEEGQW.js} +11 -11
- package/dist/web/server/{subagents-panel-Txzk8oDb-NRKLASYN.js → subagents-panel-DgfB6_Yy-4INEPE3Y.js} +13 -13
- package/dist/web/server/{workspace-panel-BOs-58Cv-SWQBMZSB.js → workspace-panel-bpwj-Veu-Q2CEJMN4.js} +4 -3
- package/package.json +1 -1
- package/dist/web/client/assets/agent-activity-CDcDNVC6.js +0 -1
- package/dist/web/client/assets/artifacts-panel-CObI-DMt.js +0 -1
- package/dist/web/client/assets/fleet-reasoning-panel-MtbSdoCv.js +0 -1
- package/dist/web/client/assets/fleet-tool-timeline-COzPrwr8.js +0 -1
- package/dist/web/client/assets/generative-text-renderer-CDKHv-v_.js +0 -6
- package/dist/web/client/assets/globals-DisQPFtV.css +0 -2
- package/dist/web/client/assets/horizontal-resize-Bl3AyBJg.js +0 -1
- package/dist/web/client/assets/model-selector-list-DQaPFUYt.js +0 -1
- package/dist/web/client/assets/prompt-input-DZ4cho_e.js +0 -1
- package/dist/web/client/assets/prompt-suggestions-CXM6knMK.js +0 -1
- package/dist/web/client/assets/repl-panel-BDQ5MEgV.js +0 -1
- package/dist/web/client/assets/right-panel-registry-VVRPktV3.js +0 -2
- package/dist/web/client/assets/routes-DAikUNzO.js +0 -16
- package/dist/web/client/assets/session-insights-panel-CQdT90Op.js +0 -1
- package/dist/web/client/assets/settings-dialog-DS64KmwC.js +0 -1
- package/dist/web/client/assets/skeleton-loaders-DjGv9LLA.js +0 -1
- package/dist/web/client/assets/subagent-transcript-cxVKYnh9.js +0 -1
- package/dist/web/client/assets/subagents-panel-CHC96I68.js +0 -1
- package/dist/web/client/assets/tool-result-Baj3CdL_.js +0 -4
- package/dist/web/client/assets/ui-preferences-DUEFuJFj.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
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{d as r,o as i}from"./ease-u56MhKYS.js";import{n as a,t as o}from"./use-reduced-motion-eORd7fqW.js";import{t as s}from"./utils-Eg7xtNmV.js";import{t as c}from"./createLucideIcon-DwxZHm0M.js";var l=c(`file`,[[`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`}]]),u=c(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),d=.5,f=`hidden min-[960px]:flex`,p=`min-[960px]:hidden`,m=`hidden min-[640px]:block`,h=`min-[640px]:gap-0`,g=e(t(),1),_=n(),v={initial:{opacity:0,filter:`blur(6px)`},animate:{opacity:1,filter:`blur(0px)`},exit:e=>e?{}:{opacity:0,filter:`blur(6px)`}},y={initial:{opacity:0},animate:{opacity:1},exit:e=>e?{}:{opacity:0}},b=(0,g.forwardRef)(function({children:e,as:t=`div`,className:n,onMouseLeave:c,pillClassName:l,pillContainerClassName:u,inset:d=20,...f},p){let[m,h]=(0,g.useState)(null),b=(0,g.useId)(),x=o(),S=g.Children.toArray(e).reduce((e,t,n)=>{if(!(0,g.isValidElement)(t))return e;let o=t,c=o.key?String(o.key):`item-${n}`;return e.push((0,g.cloneElement)(o,{key:c,className:s(`relative`,o.props.className),onMouseEnter:()=>{o.props.onMouseEnter?.(),h(c)}},(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a,{custom:m!==null,children:m===null?null:(0,_.jsx)(r.div,{variants:x?y:v,initial:`initial`,animate:`animate`,exit:`exit`,custom:m!==null,className:s(`pointer-events-none absolute inset-y-0`,u),style:{left:-d,right:-d},children:m===c?(0,_.jsx)(r.div,{layoutId:`shared-bg-${b}`,transition:x?{duration:0}:i,className:s(`pointer-events-none h-full w-full rounded-2xl bg-primary/[0.06]`,l)}):null})}),(0,_.jsx)(`div`,{className:`relative z-10`,children:o.props.children})]}))),e},[]),C=e=>{h(null),c?.(e)};return t===`ul`?(0,_.jsx)(r.ul,{...f,ref:p,layoutRoot:!0,onMouseLeave:C,className:s(`flex w-full flex-col`,n),children:S}):(0,_.jsx)(r.div,{...f,ref:p,layoutRoot:!0,onMouseLeave:C,className:s(`flex w-full flex-col`,n),children:S})}),x=[/\bsk-[A-Za-z0-9._-]{8,}\b/g,/\b(?:github_pat_|gh[pousr]_)[A-Za-z0-9_]{8,}\b/g,/\bxox[baprs]-[A-Za-z0-9-]{8,}\b/g,/\bAIza[A-Za-z0-9_-]{20,}\b/g],S=/\b(api[ _-]?key|access[ _-]?token|auth[ _-]?token|bearer|password|secret)\s*([:=])\s*(?:"[^"]*"|'[^']*'|[^\s,;]+)/gi;function C(e){let t=e.replace(S,(e,t,n)=>`${t}${n} [redacted]`);for(let e of x)t=t.replace(e,`[redacted]`);return t}var w=[`off`,`minimal`,`low`,`medium`,`high`,`xhigh`,`max`],T={off:`Off`,minimal:`Minimal`,low:`Low`,medium:`Medium`,high:`High`,xhigh:`Extra high`,max:`Max`};function E(e){return T[e]}function D(e){return e?.thinkingLevels&&e.thinkingLevels.length>0?e.thinkingLevels:e?.reasoning?w:[`off`]}function O(e,t){return e&&t.includes(e)?e:t.includes(`medium`)?`medium`:t[0]??`off`}function k(e){return{id:e.key,name:e.name,provider:e.provider,modelId:e.id,available:e.available,reasoning:e.reasoning,thinkingLevel:e.defaultThinkingLevel,thinkingLevels:e.thinkingLevels}}function A(e,t){if(e)return{provider:e.provider,id:e.modelId,thinkingLevel:t??e.thinkingLevel}}function j(e){if(e.followUp.length+e.steering.length!==0)return e.followUp.length>0?`${e.followUp.length} follow-up queued`:`${e.steering.length} steering message queued`}function M(e){let t=C(e).trim();if(t.length===0)return t;let n=Math.floor(t.length/2);return n>0&&t.slice(0,n)===t.slice(n)?t.slice(0,n):t}function N(e){return!e||typeof e!=`object`||!(e instanceof Error)||e.name!==`ChatRequestError`?!1:e.status===403}function P(e,t,n){if(typeof window>`u`)return t;let r=Number(window.localStorage.getItem(e));return Number.isFinite(r)?n(r):t}function F(e,t){typeof window>`u`||window.localStorage.setItem(e,String(Math.round(t)))}function I({event:e,getNextWidth:t,onWidthChange:n,startWidth:r,startX:i}){e.preventDefault();let a=i??e.clientX,o=e=>{n(t(e.clientX,a,r))},s=()=>{window.removeEventListener(`pointermove`,o),window.removeEventListener(`pointerup`,s)};window.addEventListener(`pointermove`,o),window.addEventListener(`pointerup`,s,{once:!0})}export{m as _,O as a,j as c,A as d,b as f,h as g,d as h,D as i,E as l,p as m,P as n,N as o,f as p,F as r,M as s,I as t,k as u,u as v,l as y};
|
|
@@ -1 +0,0 @@
|
|
|
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{a as r,d as i}from"./ease-u56MhKYS.js";import{t as a}from"./utils-Eg7xtNmV.js";import{t as o}from"./check-JjHKAZas.js";import{t as s}from"./gauge-DNpstbBn.js";import{a as c,i as l,o as u,r as d,s as f,t as p}from"./command-DPfiaYUL.js";var m=e(t(),1),h=n();function g(e,t,n){return Math.min(n,Math.max(t,e))}function _({value:e,onChange:t,min:n=0,max:o=100,step:s=1,label:c,formatValue:l=String,disabled:u=!1,className:d,...f}){let p=(0,m.useId)(),[_,v]=(0,m.useState)(!1),[y,b]=(0,m.useState)(!1),x=Math.max(n,o),S=Math.max(2**-52,s),C=g(e,n,x),w=x===n?0:(C-n)/(x-n),T=w*100,E=w===0?8:0,D=`calc(${T}% + ${20-20*w-E*2.5}px)`,O=`calc(${T}% + ${11-24*w}px)`,k=20-20*w-E*2.5,A=`linear-gradient(to right, transparent calc(${T}% + ${k}px), black calc(${T}% + ${k+2}px))`,j=(0,m.useMemo)(()=>{let e=Math.floor((x-n)/S),t=Array.from({length:e+1},(e,t)=>n+t*S);return t.at(-1)!==x&&t.push(x),t},[n,x,S]),M=l(C),N=l(x),P=(e,t)=>{let r=t.getBoundingClientRect();if(r.width<=0||x===n)return n;let i=n+g((e-r.left)/r.width,0,1)*(x-n);return g(n+Math.round((i-n)/S)*S,n,x)},F=e=>{let r=!0,i=e.key===`ArrowRight`||e.key===`ArrowUp`?1:e.key===`ArrowLeft`||e.key===`ArrowDown`?-1:0;i===0?e.key===`Home`?(e.preventDefault(),t(n)):e.key===`End`?(e.preventDefault(),t(x)):r=!1:(e.preventDefault(),t(g(C+i*S,n,x))),r&&e.stopPropagation()};return(0,h.jsx)(`div`,{className:a(`relative w-full touch-none`,u&&`opacity-50`,d),...f,children:(0,h.jsxs)(`div`,{className:a(`relative h-8 w-full select-none touch-none overflow-hidden rounded-md border border-border bg-background outline-offset-2 transition-colors duration-150`,y&&!u&&`border-foreground/25`,_&&`border-foreground/40 ring-2 ring-ring/60 ring-offset-1 ring-offset-background`),onPointerEnter:()=>b(!0),onPointerLeave:()=>b(!1),onPointerDown:e=>{u||t(P(e.clientX,e.currentTarget))},children:[(0,h.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 z-[1] flex items-center justify-between px-3 pointer-events-none`,style:{WebkitMaskImage:A,maskImage:A},children:j.map(e=>(0,h.jsx)(i.span,{className:`relative flex size-[5px] items-center justify-center rounded-full`,animate:{backgroundColor:e===C?`var(--foreground)`:`var(--muted-foreground)`,opacity:e===C?1:.3},transition:r},e))}),(0,h.jsx)(i.div,{"aria-hidden":`true`,className:`absolute inset-y-0 left-0 z-[3] pointer-events-none bg-foreground/[0.08]`,layout:`size`,style:{width:D},transition:r}),(0,h.jsx)(i.div,{"aria-hidden":`true`,className:a(`absolute z-[3] w-0.5 rounded-full pointer-events-none`),layout:!0,style:{left:O,top:y||_?7:8,bottom:y||_?7:8},animate:{backgroundColor:_?`var(--foreground)`:y?`color-mix(in srgb, var(--foreground) 50%, transparent)`:`color-mix(in srgb, var(--foreground) 25%, transparent)`},transition:r}),(0,h.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-[2] flex items-center px-2`,children:[c?(0,h.jsx)(`span`,{className:`px-2 text-[13px] text-transparent select-none`,"aria-hidden":`true`,children:c}):null,(0,h.jsx)(`span`,{className:`ml-auto px-2 text-[13px] text-transparent tabular-nums select-none`,style:{minWidth:`${N.length}ch`},"aria-hidden":`true`,children:N})]}),(0,h.jsxs)(`div`,{className:`pointer-events-none absolute inset-0 z-[4] flex items-center px-2 text-[13px]`,children:[c?(0,h.jsx)(i.span,{className:`px-2`,animate:{color:y||_?`var(--foreground)`:`var(--muted-foreground)`},transition:r,children:c}):null,(0,h.jsx)(i.span,{className:`ml-auto px-2 tabular-nums`,style:{minWidth:`${N.length}ch`,textAlign:`right`},animate:{color:y||_?`var(--foreground)`:`var(--muted-foreground)`},transition:r,children:M})]}),(0,h.jsx)(`input`,{id:p,type:`range`,min:n,max:x,step:S,value:C,disabled:u,"aria-label":c??`Slider`,"aria-valuetext":M,onChange:e=>t(Number(e.currentTarget.value)),onFocus:()=>v(!0),onBlur:()=>v(!1),onKeyDown:F,className:`absolute inset-0 z-20 m-0 h-full w-full cursor-ew-resize opacity-0 disabled:cursor-not-allowed`})]})})}function v(e){let t=new Map;for(let n of e){let e=t.get(n.provider)??[];e.push(n),t.set(n.provider,e)}return[...t.entries()]}function y({models:e,selectedModel:t,selectedEffort:n,effortLabel:r,onModelChange:i,onEffortChange:a}){let g=(0,m.useMemo)(()=>v(e),[e]);return(0,h.jsxs)(p,{className:`min-h-0 max-h-[min(55vh,28rem)] bg-transparent`,shouldFilter:!0,children:[(0,h.jsx)(c,{placeholder:`Search models…`,"aria-label":`Search models`}),(0,h.jsxs)(f,{className:`min-h-0 flex-1 p-1.5`,children:[(0,h.jsx)(d,{children:`No matching models`}),g.map(([e,n])=>(0,h.jsx)(l,{heading:n[0]?.providerLabel??e,children:n.map(e=>{let n=[e.id,e.name,e.provider,e.providerLabel,e.modelId,...e.keywords??[]].filter(Boolean).join(` `),r=e.id===t?.id;return(0,h.jsxs)(u,{value:n,disabled:e.disabled,onSelect:()=>{e.disabled||i?.(e.id)},className:`items-start gap-2 rounded-lg px-2.5 py-2`,children:[(0,h.jsx)(`span`,{className:`mt-0.5 shrink-0 text-muted-foreground`,children:e.icon??(0,h.jsx)(s,{"aria-hidden":`true`,className:`size-4`})}),(0,h.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,h.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,h.jsx)(`span`,{className:`truncate text-sm font-medium`,children:e.name}),e.disabled?(0,h.jsx)(`span`,{className:`shrink-0 text-[10px] uppercase tracking-wide text-muted-foreground`,children:`Unavailable`}):null]}),(0,h.jsxs)(`span`,{className:`mt-0.5 block truncate text-xs text-muted-foreground`,children:[e.modelId??e.id,e.reasoning?` · reasoning`:``]}),e.description?(0,h.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-muted-foreground/80`,children:e.description}):null]}),r?(0,h.jsx)(o,{"aria-hidden":`true`,className:`mt-1 size-4 shrink-0`}):null]},e.id)})},e))]}),t?.reasoning&&t.efforts?.length?(0,h.jsx)(`div`,{className:`shrink-0 border-t border-border/70 p-2`,children:(0,h.jsx)(_,{label:r,value:Math.max(0,t.efforts.findIndex(e=>e.id===n?.id)),onChange:e=>{let n=t.efforts?.[Math.round(e)];n&&!n.disabled&&a?.(n.id)},min:0,max:Math.max(0,t.efforts.length-1),formatValue:e=>t.efforts?.[Math.round(e)]?.name??``})}):null]})}export{y as ModelSelectorList};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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{$ as i,G as a,H as o,J as s,Q as c,U as l,z as u}from"./layout-gyLzPvVv.js";import{c as d,d as f,h as p,l as m,m as h,p as g,r as _,s as v,u as y}from"./ease-u56MhKYS.js";import{n as b,t as x}from"./use-reduced-motion-eORd7fqW.js";import{t as S}from"./utils-Eg7xtNmV.js";import{t as C}from"./createLucideIcon-DwxZHm0M.js";import{o as w}from"./citations-BQ_pr_9_.js";import{t as T}from"./check-JjHKAZas.js";import{t as ee}from"./chevron-down-BEVGmnSb.js";import{t as E}from"./loader-circle-DjfHXUPB.js";import{t as te}from"./plus-DXN1Bg_z.js";import{t as ne}from"./square-Bhn8gjr0.js";import{t as D}from"./x-CsRC_tCI.js";function O(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],c=s(i,a,o);return t?c(r):c}function k(e,t,n={}){let r=e.get(),o=null,s=r,c,l=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,d=()=>{o&&=(o.stop(),null),e.animation=void 0},f=()=>{let t=j(e.get()),r=j(s);if(t===r){d();return}let i=o?o.getGeneratorVelocity():e.getVelocity();d(),o=new a({keyframes:[t,r],velocity:i,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:c})},p=()=>{f(),e.animation=o??void 0,e.events.animationStart?.notify(),o?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{s=e,c=e=>t(A(e,l)),i.postRender(p)},d),u(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(A(t,l),!1)):e.set(A(t,l))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return d}function A(e,t){return t?e+t:e}function j(e){return typeof e==`number`?e:parseFloat(e)}var M=e(t(),1);function N(e){let t=p(()=>l(e)),{isStatic:n}=(0,M.useContext)(g);if(n){let[,n]=(0,M.useState)(e);(0,M.useEffect)(()=>t.on(`change`,n),[])}return t}function P(e,t){let n=N(t()),r=()=>n.set(t());return r(),h(()=>{let t=()=>i.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),c(r)}}),n}function F(e){o.current=[],e();let t=P(o.current,e);return o.current=void 0,t}function I(e,t,n,r){if(typeof e==`function`)return F(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return R(e,t,n,r);let i=typeof t==`function`?t:O(t,n,r),a=Array.isArray(e)?L(e,i):L([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function L(e,t){let n=p(()=>[]);return P(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function R(e,t,n,r){let i=p(()=>Object.keys(n)),a=p(()=>({}));for(let o of i)a[o]=I(e,t,n[o],r);return a}function z(e,t={}){let{isStatic:n}=(0,M.useContext)(g),r=()=>u(e)?e.get():e;if(n)return I(r);let i=N(r());return(0,M.useInsertionEffect)(()=>k(i,e,t),[i,JSON.stringify(t)]),i}function B(e,t={}){return z(e,{type:`spring`,...t})}var re=C(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),V=r(),H={primary:`bg-primary text-primary-foreground hover:bg-primary/90`,secondary:`border border-border bg-card text-foreground hover:border-border`,ghost:`text-muted-foreground hover:text-foreground hover:bg-primary/5`,outline:`border border-border bg-transparent text-foreground hover:bg-primary/5`},U={sm:`h-8 px-3 text-xs gap-1.5 rounded-full`,md:`h-10 px-5 text-sm gap-2 rounded-full`,lg:`h-12 px-6 text-base gap-2 rounded-full`,icon:`h-8 w-8 rounded-lg`},W=(0,M.forwardRef)(function({variant:e=`primary`,size:t=`md`,pressScale:n=.93,ripple:r=!1,className:i,children:a,onPointerDown:o,...s},c){let l=x(),u=w(),[d,p]=(0,M.useState)([]),h=(0,M.useRef)(0),g=(0,M.useCallback)(e=>{if(r&&!l){let t=e.currentTarget.getBoundingClientRect(),n=Math.max(t.width,t.height)*2,r=h.current++;p(i=>[...i,{id:r,x:e.clientX-t.left,y:e.clientY-t.top,size:n}])}o?.(e)},[r,l,o]);return(0,V.jsxs)(f.button,{ref:c,type:`button`,whileTap:l?void 0:{scale:n},whileHover:l||!u?void 0:{scale:1.02},transition:m,onPointerDown:g,className:S(`inline-flex items-center justify-center font-medium select-none`,`transition-colors`,`disabled:pointer-events-none disabled:opacity-50`,r&&`relative overflow-hidden`,H[e],U[t],i),...s,children:[(0,V.jsx)(`span`,{className:S(`pointer-events-none absolute inset-0 overflow-hidden rounded-[inherit]`,!r&&`hidden`),children:(0,V.jsx)(b,{children:r&&!l?d.map(e=>(0,V.jsx)(f.span,{className:`absolute rounded-full bg-current`,style:{left:e.x,top:e.y,width:e.size,height:e.size,x:`-50%`,y:`-50%`},initial:{scale:.05,opacity:.3},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:1.6,ease:_},onAnimationComplete:()=>p(t=>t.filter(t=>t.id!==e.id))},e.id)):null})}),a]})});(0,M.forwardRef)(function({variant:e=`primary`,size:t=`md`,pressScale:n=.93,className:r,children:i,...a},o){let s=x(),c=w();return(0,V.jsx)(f.a,{ref:o,whileTap:s?void 0:{scale:n},whileHover:s||!c?void 0:{scale:1.02},transition:m,className:S(`inline-flex items-center justify-center font-medium select-none`,`transition-colors`,H[e],U[t],r),...a,children:i})});function G({children:e,strength:t=.35,className:n}){let r=(0,M.useRef)(null),i=x(),a=w(),o=!i&&a,s=N(0),c=N(0),l=B(s,v),u=B(c,v);return(0,V.jsx)(f.div,{ref:r,onMouseMove:e=>{let n=r.current;if(!n||!o)return;let i=n.getBoundingClientRect();s.set((e.clientX-i.left-i.width/2)*t),c.set((e.clientY-i.top-i.height/2)*t)},onMouseLeave:()=>{s.set(0),c.set(0)},style:{x:l,y:u},className:S(`inline-block`,n),children:e})}(0,M.forwardRef)(function({strength:e=.25,magneticClassName:t,children:n,...r},i){return(0,V.jsx)(G,{strength:e,className:t,children:(0,V.jsx)(W,{ref:i,...r,children:n})})});var K=.025,q=`blur(6px)`,ie={initial:{opacity:0,y:`105%`,filter:q},animate:(e=0)=>({opacity:1,y:`0%`,filter:`blur(0px)`,transition:{...y,delay:e}}),exit:(e=0)=>({opacity:0,y:`-105%`,filter:q,transition:{duration:.16,ease:_,delay:e*.5}})},ae={initial:{opacity:0,width:0,scale:.7,filter:q},animate:{opacity:1,width:`1.5rem`,scale:1,filter:`blur(0px)`,transition:y},exit:{opacity:0,width:0,scale:.7,filter:q,transition:{duration:.16,ease:_}}};function J({keyId:e,children:t}){let n=x();return(0,V.jsx)(f.span,{variants:ae,initial:n?{opacity:0}:`initial`,animate:n?{opacity:1}:`animate`,exit:n?{opacity:0}:`exit`,transition:n?{duration:.15}:void 0,className:`inline-grid shrink-0 place-items-center overflow-hidden`,children:t},e)}function oe({value:e,children:t}){let n=x(),r=(0,M.useRef)(null),[i,a]=(0,M.useState)(),o=typeof t==`string`?t:null,s=o!==null&&!n;return(0,M.useLayoutEffect)(()=>{let e=r.current?.offsetWidth;e&&a(t=>t===e?t:e)}),(0,V.jsxs)(f.span,{initial:!1,layout:`size`,style:{width:i},transition:n?{duration:0}:y,className:`relative inline-block overflow-hidden whitespace-nowrap align-bottom`,children:[(0,V.jsx)(`span`,{ref:r,"aria-hidden":!0,className:`invisible inline-block whitespace-nowrap`,children:s?o.split(``).map((e,t)=>(0,V.jsx)(`span`,{className:`inline-block whitespace-pre`,children:e},t)):t}),s?(0,V.jsx)(`span`,{className:`sr-only`,children:o}):null,(0,V.jsx)(b,{initial:!1,children:s?(0,V.jsx)(f.span,{"aria-hidden":!0,initial:`initial`,animate:`animate`,exit:`exit`,className:`absolute left-0 top-0 inline-block whitespace-pre`,children:o.split(``).map((e,t)=>(0,V.jsx)(f.span,{custom:t*K,variants:ie,className:`inline-block whitespace-pre`,children:e},t))},`cascade-${e}`):(0,V.jsx)(f.span,{initial:n?{opacity:0}:{opacity:0,y:14,filter:q},animate:n?{opacity:1}:{opacity:1,y:0,filter:`blur(0px)`},exit:n?{opacity:0}:{opacity:0,y:-14,filter:q},transition:n?{duration:.15}:y,className:`absolute left-0 top-0 inline-block`,children:t},`text-${e}`)})]})}(0,M.forwardRef)(function({state:e=`idle`,children:t,loadingText:n=`Loading`,successText:r=`Done`,errorText:i=`Try again`,icon:a,disabled:o,...s},c){let l=e===`loading`,u=e===`loading`?n:e===`success`?r:e===`error`?i:t,d=typeof u==`string`?`${e}-${u}`:e;return(0,V.jsx)(W,{ref:c,disabled:o||l,"aria-busy":l,whileHover:void 0,...s,children:(0,V.jsxs)(`span`,{"aria-live":`polite`,className:`relative inline-flex items-center justify-center overflow-hidden`,children:[(0,V.jsxs)(b,{initial:!1,children:[e===`loading`?(0,V.jsx)(J,{keyId:`loading-icon`,children:(0,V.jsx)(E,{className:`h-4 w-4 animate-spin`})}):null,e===`success`?(0,V.jsx)(J,{keyId:`success-icon`,children:(0,V.jsx)(T,{className:`h-4 w-4`})}):null,e===`error`?(0,V.jsx)(J,{keyId:`error-icon`,children:(0,V.jsx)(D,{className:`h-4 w-4`})}):null]}),(0,V.jsx)(oe,{value:d,children:u}),(0,V.jsx)(b,{initial:!1,children:e===`idle`&&a?(0,V.jsx)(J,{keyId:`idle-icon`,children:a}):null})]})})});var se=e(n(),1);function ce(e,t){return e?.trigger.left===t.trigger.left&&e.trigger.top===t.trigger.top&&e.trigger.width===t.trigger.width&&e.trigger.height===t.trigger.height&&e.content.width===t.content.width&&e.content.height===t.content.height}function Y(e,t,n){let[r,i]=(0,M.useState)(null),a=(0,M.useCallback)(()=>{let n=e.current,r=t.current;if(!n||!r)return;let a=n.getBoundingClientRect(),o={trigger:{left:a.left,top:a.top,width:a.width,height:a.height},content:{width:r.offsetWidth,height:r.offsetHeight}};i(e=>ce(e,o)?e:o)},[t,e]);return(0,M.useLayoutEffect)(()=>{if(a(),!n)return;let r=e.current,i=t.current,o=new ResizeObserver(a);return r&&o.observe(r),i&&o.observe(i),window.addEventListener(`scroll`,a,!0),window.addEventListener(`resize`,a),()=>{o.disconnect(),window.removeEventListener(`scroll`,a,!0),window.removeEventListener(`resize`,a)}},[n,t,e,a]),r}function le(){return()=>{}}function ue(){return!0}function de(){return!1}function X(){return(0,M.useSyncExternalStore)(le,ue,de)}var fe=(0,M.createContext)(null);function pe(e){let t=(0,M.useContext)(fe);if(!t)throw Error(`${e} must be used within <MorphPopover>`);return t}function me({children:e,open:t,defaultOpen:n=!1,onOpenChange:r,className:i}){let a=(0,M.useId)(),o=(0,M.useRef)(null),s=(0,M.useRef)(null),c=(0,M.useRef)(null),[l,u]=(0,M.useState)(n),d=t!==void 0,f=d?t:l,p=(0,M.useCallback)(e=>{d||u(e),r?.(e)},[d,r]),m=(0,M.useCallback)(()=>p(!f),[p,f]),h=(0,M.useEffectEvent)(p);(0,M.useEffect)(()=>{if(!f)return;let e=e=>e.key===`Escape`&&h(!1),t=e=>{let t=e.target;o.current&&!o.current.contains(t)&&!c.current?.contains(t)&&h(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`pointerdown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`pointerdown`,t)}},[f]);let g=(0,M.useMemo)(()=>({open:f,setOpen:p,toggle:m,triggerId:`${a}-trigger`,contentId:`${a}-content`,triggerRef:s,contentRef:c}),[f,p,m,a]);return(0,V.jsx)(fe.Provider,{value:g,children:(0,V.jsx)(`div`,{ref:o,className:S(`relative inline-flex`,i),children:e})})}function he(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&typeof n==`object`&&(n.current=t)}}function ge({children:e}){let t=pe(`MorphPopoverTrigger`);if(!(0,M.isValidElement)(e))return e;let n=e,r=n.props.onClick,i=n.props.ref;return(0,M.cloneElement)(n,{id:t.triggerId,ref:he(i,e=>{t.triggerRef.current=e}),onClick:e=>{r?.(e),t.toggle()},"aria-haspopup":`dialog`,"aria-expanded":t.open,"aria-controls":t.open?t.contentId:void 0})}var _e=(e,t)=>`${e===`bottom`?`top`:`bottom`} ${t===`end`?`right`:`left`}`;function ve(e,t,n){return`inset(${e===`bottom`?`0%`:`92%`} ${t===`end`?`0%`:`92%`} ${e===`bottom`?`92%`:`0%`} ${t===`end`?`92%`:`0%`} round ${n}px)`}var ye=e=>`inset(0% 0% 0% 0% round ${e}px)`,be={duration:.32,ease:_};function xe({children:e,side:t=`bottom`,align:n=`end`,sideOffset:r=8,radius:i=16,className:a}){let o=pe(`MorphPopoverContent`),s=x()??!1,c=X(),l=Y(o.triggerRef,o.contentRef,c&&o.open),u=l?n===`end`?l.trigger.left+l.trigger.width-l.content.width:l.trigger.left:0,p=l?t===`bottom`?l.trigger.top+l.trigger.height+r:l.trigger.top-l.content.height-r:0,m=s?void 0:{hidden:{opacity:0,scale:.96,transition:d},show:{opacity:1,scale:1,transition:d}},h=s?void 0:{hidden:{clipPath:ve(t,n,i),transition:be},show:{clipPath:ye(i),transition:be}};return c?(0,se.createPortal)((0,V.jsx)(b,{children:o.open?(0,V.jsx)(f.div,{"data-morph-popover-portal":``,variants:m,initial:s?{opacity:0}:`hidden`,animate:s?{opacity:1}:`show`,exit:s?{opacity:0}:`hidden`,transition:s?{duration:.12}:void 0,style:{left:u,top:p,visibility:l?`visible`:`hidden`,transformOrigin:_e(t,n)},className:`fixed z-[9999] [filter:drop-shadow(0_10px_18px_rgba(0,0,0,0.14))]`,children:(0,V.jsx)(f.div,{ref:o.contentRef,id:o.contentId,role:`dialog`,"aria-labelledby":o.triggerId,variants:h,style:{borderRadius:i},className:S(`overflow-hidden border border-border bg-background`,a),children:e})}):null}),document.body):null}var Z={duration:0},Se={type:`spring`,duration:.4,bounce:.3},Ce={hidden:{},show:{transition:{staggerChildren:.035,delayChildren:.05}}},we={hidden:{opacity:0,y:-6,filter:`blur(3px)`},show:{opacity:1,y:0,filter:`blur(0px)`}},Q=(0,M.createContext)(null);function $(e){let t=(0,M.useContext)(Q);if(!t)throw Error(`${e} must be used within <AnimatedSelect>`);return t}function Te({value:e,defaultValue:t,onValueChange:n,disabled:r=!1,className:i,children:a}){let o=x()??!1,s=(0,M.useId)(),c=(0,M.useRef)(null),[l,u]=(0,M.useState)(!1),[d,f]=(0,M.useState)(t),[p,m]=(0,M.useState)(new Map),[h,g]=(0,M.useState)(`bottom`),_=e!==void 0,v=_?e:d,y=(0,M.useCallback)(e=>{_||f(e),n?.(e),u(!1)},[_,n]),b=(0,M.useCallback)((e,t)=>{m(n=>n.get(e)===t?n:new Map(n).set(e,t))},[]),C=(0,M.useCallback)(e=>{m(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},[]);(0,M.useEffect)(()=>{if(!l)return;let e=e=>e.key===`Escape`&&u(!1),t=e=>{c.current&&!c.current.contains(e.target)&&u(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`pointerdown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`pointerdown`,t)}},[l]);let w=(0,M.useMemo)(()=>({value:v,open:l,setOpen:u,select:y,register:b,unregister:C,labelFor:e=>e===void 0?void 0:p.get(e),reduce:o,triggerId:`${s}-trigger`,listId:`${s}-list`,disabled:r,placement:h,setPlacement:g}),[v,l,y,b,C,p,o,s,r,h]);return(0,V.jsx)(Q.Provider,{value:w,children:(0,V.jsx)(`div`,{ref:c,className:S(`relative`,i),children:a})})}function Ee({className:e,children:t}){let n=$(`AnimatedSelectTrigger`),r=n.placement===`top`,i=n.open?[0,0,12]:[12,0,12],a=n.reduce?{duration:0}:n.open?{duration:.6,times:[0,.4,1],ease:_}:{duration:.42,times:[0,.5,1],ease:_};return(0,V.jsxs)(f.button,{type:`button`,id:n.triggerId,disabled:n.disabled,"aria-haspopup":`listbox`,"aria-expanded":n.open,"aria-controls":n.listId,onClick:()=>n.setOpen(!n.open),initial:!1,animate:{borderTopLeftRadius:r?i:12,borderTopRightRadius:r?i:12,borderBottomLeftRadius:r?12:i,borderBottomRightRadius:r?12:i},transition:{borderTopLeftRadius:r?a:Z,borderTopRightRadius:r?a:Z,borderBottomLeftRadius:r?Z:a,borderBottomRightRadius:r?Z:a},className:S(`relative z-10 flex w-full items-center justify-between gap-2 rounded-xl border border-border bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors`,`hover:border-(--color-border-strong) focus-visible:ring-2 focus-visible:ring-foreground/20`,`disabled:pointer-events-none disabled:opacity-50`,e),children:[t,(0,V.jsx)(f.span,{"aria-hidden":!0,animate:{rotate:n.open?180:0},transition:n.reduce?{duration:0}:Se,className:`text-muted-foreground`,children:(0,V.jsx)(ee,{className:`h-4 w-4`})})]})}function De({className:e,children:t}){let n=$(`AnimatedSelectContent`),r=(0,M.useRef)(null),[i,a]=(0,M.useState)(0),o=n.open,{setPlacement:s}=n;(0,M.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>a(e.offsetHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}),(0,M.useLayoutEffect)(()=>{if(!o)return;let e=document.getElementById(n.triggerId),t=r.current;if(!e||!t)return;let i=e.getBoundingClientRect(),a=t.offsetHeight,c=window.innerHeight-i.bottom,l=i.top;s(c<a+16&&l>c?`top`:`bottom`)},[o,n.triggerId,s]);let c=n.placement===`top`,l=o?8:0,u=o?12:0,d=o?{type:`spring`,duration:.6,bounce:.5,delay:.12}:{type:`spring`,duration:.3,bounce:.1},p=o?{duration:.3,ease:_,delay:.14}:{duration:.16,ease:_};return(0,V.jsx)(f.div,{id:n.listId,role:`listbox`,"aria-labelledby":n.triggerId,"aria-hidden":!o,inert:!o,initial:!1,animate:n.reduce?{opacity:+!!o,height:o?i:0}:{opacity:+!!o,height:o?i:0,marginTop:c?0:l,marginBottom:c?l:0,borderTopLeftRadius:c?12:u,borderTopRightRadius:c?12:u,borderBottomLeftRadius:c?u:12,borderBottomRightRadius:c?u:12},transition:n.reduce?{duration:.12}:{opacity:o?{duration:.18}:{duration:.16,delay:.12},height:o?{type:`spring`,duration:.42,bounce:.14}:{duration:.26,ease:_,delay:.14},marginTop:c?Z:d,marginBottom:c?d:Z,borderTopLeftRadius:c?Z:p,borderTopRightRadius:c?Z:p,borderBottomLeftRadius:c?p:Z,borderBottomRightRadius:c?p:Z},style:{transformOrigin:c?`bottom`:`top`,overflow:`hidden`,pointerEvents:o?`auto`:`none`},className:S(`absolute left-0 right-0 z-20 rounded-xl border border-border bg-background shadow-lg`,c?`bottom-full`:`top-full`,e),children:(0,V.jsx)(f.div,{ref:r,variants:n.reduce?void 0:Ce,initial:!1,animate:o?`show`:`hidden`,className:`p-1`,children:t})})}function Oe({value:e,disabled:t=!1,className:n,children:r}){let i=$(`AnimatedSelectItem`),a=i.value===e,o=typeof r==`string`?r:e;return(0,M.useLayoutEffect)(()=>(i.register(e,o),()=>i.unregister(e)),[i.register,i.unregister,e,o]),(0,V.jsx)(f.li,{variants:i.reduce?void 0:we,children:(0,V.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":a,disabled:t,onClick:()=>i.select(e),className:S(`flex w-full items-center justify-between gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm outline-none transition-colors`,a?`bg-muted text-foreground`:`text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:bg-muted`,`disabled:pointer-events-none disabled:opacity-50`,n),children:[r,a?(0,V.jsx)(T,{className:`h-3.5 w-3.5 shrink-0`}):null]})})}function ke({value:e,defaultValue:t=``,onValueChange:n,models:r=[],model:i,defaultModel:a,onModelChange:o,actions:s=[],onAction:c,onSubmit:l,loading:u=!1,submitWhileLoading:d=!1,onStop:p,minRows:m=2,maxRows:h=8,leadingAction:g,className:_,disabled:v,placeholder:C=`Ask the agent to do something…`,"aria-label":w=`Prompt`,onKeyDown:T,...ee}){let E=x()??!1,D=(0,M.useRef)(null),O=(0,M.useRef)(null),[k,A]=(0,M.useState)(t),[j,N]=(0,M.useState)(a??r[0]?.value),[P,F]=(0,M.useState)(!1),I=e??k,L=i??j,R=r.find(e=>e.value===L),z=!!I.trim()&&!v&&(!u||d),B=(0,M.useCallback)(()=>{let e=D.current,t=O.current;if(!e||!t||e.value!==I)return;let n=`${Math.min(Math.max(t.scrollHeight,m*24),h*24)}px`;e.style.height!==n&&(e.style.height=n)},[I,h,m]);(0,M.useLayoutEffect)(()=>{B()},[B]);let H=(0,M.useRef)(B);H.current=B,(0,M.useEffect)(()=>{let e=D.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>H.current());return t.observe(e),()=>t.disconnect()},[]);let U=t=>{e===void 0&&A(t),n?.(t)},G=e=>{i===void 0&&N(e),o?.(e)},K=t=>{t?.preventDefault();let n=I.trim();!n||v||u&&!d||(l?.(n,L),e===void 0&&A(``),D.current?.focus({preventScroll:!0}))},q=e=>{T?.(e),!(e.defaultPrevented||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)&&(e.preventDefault(),K())};return(0,V.jsxs)(`form`,{onSubmit:K,className:S(`relative w-full rounded-[24px] border border-border/70 bg-sidebar p-2 text-[color:var(--foreground)] shadow-sm transition-[border-color,box-shadow] focus-within:border-foreground/25 focus-within:ring-1 focus-within:ring-ring/20`,v&&`opacity-60`,_),children:[(0,V.jsx)(`div`,{ref:O,"aria-hidden":`true`,className:`pointer-events-none invisible absolute inset-x-2 top-0 whitespace-pre-wrap px-2 text-sm leading-6 [overflow-wrap:break-word]`,children:`${I}\u200b`}),(0,V.jsx)(`textarea`,{ref:D,value:I,disabled:v,placeholder:C,"aria-label":w,rows:m,...ee,onChange:e=>U(e.target.value),onKeyDown:q,className:`scrollbar-hide block w-full resize-none overflow-y-auto bg-transparent px-2 pt-1.5 text-sm leading-6 text-foreground outline-none placeholder:text-foreground/55`}),(0,V.jsxs)(`div`,{className:`mt-1 flex min-h-8 items-center gap-1`,children:[s.length?(0,V.jsxs)(me,{open:P,onOpenChange:F,children:[(0,V.jsx)(ge,{children:(0,V.jsx)(W,{type:`button`,variant:`ghost`,size:`icon`,disabled:v||u,"aria-label":`Add to prompt`,className:`size-8 rounded-full text-foreground/70 hover:text-foreground`,children:(0,V.jsx)(f.span,{"aria-hidden":`true`,animate:{rotate:P?45:0},transition:E?{duration:0}:y,children:(0,V.jsx)(te,{className:`size-4`})})})}),(0,V.jsx)(xe,{side:`top`,align:`start`,sideOffset:8,radius:12,className:`w-56 p-1.5`,children:s.map(e=>(0,V.jsxs)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>{c?.(e.value),F(!1)},className:`flex w-full items-start gap-2.5 rounded-lg px-2.5 py-2 text-left outline-none transition-colors hover:bg-muted focus-visible:bg-muted disabled:pointer-events-none disabled:opacity-50`,children:[e.icon?(0,V.jsx)(`span`,{className:`mt-0.5 grid size-5 shrink-0 place-items-center text-foreground/70 [&_svg]:size-4`,children:e.icon}):null,(0,V.jsxs)(`span`,{className:`min-w-0`,children:[(0,V.jsx)(`span`,{className:`block text-sm text-foreground`,children:e.label}),e.description?(0,V.jsx)(`span`,{className:`mt-0.5 block text-xs leading-4 text-foreground/60`,children:e.description}):null]})]},e.value))})]}):null,g,r.length?(0,V.jsxs)(Te,{value:L,onValueChange:G,disabled:v||u,className:`min-w-0`,children:[(0,V.jsx)(Ee,{className:`h-8 w-auto max-w-52 rounded-xl border-0 bg-transparent px-2 py-0 text-xs hover:bg-muted focus-visible:ring-2`,children:(0,V.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[R?.icon?(0,V.jsx)(`span`,{className:`grid size-4 shrink-0 place-items-center text-foreground/70 [&_svg]:size-3.5`,children:R.icon}):null,(0,V.jsx)(`span`,{className:`truncate text-foreground/70`,children:R?.label??`Choose model`})]})}),(0,V.jsx)(De,{className:`right-auto w-52 shadow-none`,children:r.map(e=>(0,V.jsx)(Oe,{value:e.value,disabled:e.disabled,className:`py-2`,children:(0,V.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[e.icon?(0,V.jsx)(`span`,{className:`grid size-5 shrink-0 place-items-center text-muted-foreground [&_svg]:size-4`,children:e.icon}):null,(0,V.jsx)(`span`,{className:`min-w-0 truncate text-sm text-foreground`,children:e.label})]})},e.value))})]}):null,u&&p?(0,V.jsx)(W,{type:`button`,size:`icon`,"aria-label":`Stop generating`,onClick:p,className:`ml-auto size-8 rounded-full`,children:(0,V.jsx)(ne,{className:`size-3 fill-current`})}):null,!u||z?(0,V.jsx)(W,{type:`submit`,size:`icon`,disabled:!z,"aria-label":u?`Steer current run`:`Send prompt`,className:S(`size-8 rounded-full`,!u&&`ml-auto`),children:(0,V.jsx)(b,{initial:!1,mode:`popLayout`,children:(0,V.jsx)(f.span,{initial:E?{opacity:1}:{opacity:0,y:3,scale:.8},animate:{opacity:1,y:0,scale:1},exit:E?{opacity:0}:{opacity:0,y:-3,scale:.8},transition:E?{duration:0}:y,className:`grid place-items-center`,children:(0,V.jsx)(re,{className:`size-4`})},`send`)})}):null]})]})}export{X as a,re as c,ge as i,me as n,Y as o,xe as r,W as s,ke as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-Eg7xtNmV.js";import{s as n}from"./surfaces-cW-gp56p.js";var r=e();function i({suggestions:e,selectedSuggestion:i,cycle:a,onSuggestion:o,variant:s=`pills`,className:c,...l}){let u=s===`list`;return(0,r.jsx)(`div`,{"data-slot":`suggestions`,className:t(u?`flex w-full max-w-sm flex-col gap-2`:`flex w-full max-w-xl flex-wrap justify-center gap-1`,c),...l,children:e.map((e,a)=>(0,r.jsx)(`button`,{type:`button`,"aria-pressed":i===e,onClick:()=>o(e),className:t(n,`fade-in slide-in-from-bottom-2 animate-in fill-mode-both flex cursor-pointer items-center text-[13px] text-foreground/80 transition-[color,transform] duration-300 hover:-translate-y-px hover:text-foreground focus-visible:text-foreground active:scale-[0.96] motion-reduce:animate-none`,u?`w-full rounded-2xl px-4 py-2.5 text-start`:`rounded-full px-4 py-2`,i===e&&`!bg-foreground !text-background hover:!text-background focus-visible:!text-background`),style:{animationDelay:`${a*70}ms`},children:e},e))},a)}export{i as PromptSuggestions};
|
|
@@ -1 +0,0 @@
|
|
|
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{o as r,t as i}from"./ipython-tool-BrMePqD-.js";import{t as a}from"./square-terminal-BYTN_I86.js";import{t as o}from"./triangle-alert-CU-gd7ui.js";var s=e(t(),1),c=n(),l={running:{toolState:`input-streaming`,label:`Running`},error:{toolState:`output-error`,label:`Failed`},cancelled:{toolState:`aborted`,label:`Cancelled`},success:{toolState:`output-available`,label:`Completed`}};function u(e){return l[e].toolState}function d(e){return{type:`tool-IPython`,toolCallId:e.sourceToolCallId??e.id,state:u(e.status),input:e.input,output:e.output,backgroundOutput:e.backgroundOutput}}function f(e){return l[e].label}function p({artifact:e,index:t,selected:n}){let a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{n&&requestAnimationFrame(()=>{a.current?.focus({preventScroll:!0}),a.current?.scrollIntoView({block:`nearest`})})},[e.id,n]),(0,c.jsxs)(`article`,{ref:a,tabIndex:-1,className:`overflow-hidden rounded-md border border-border/60 bg-background outline-none focus-visible:ring-2 focus-visible:ring-ring`,"data-repl-run-id":e.id,children:[(0,c.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 border-b border-border/50 px-2.5 py-1.5`,children:[(0,c.jsx)(r,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,c.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-medium text-foreground/70`,children:[`Cell `,t+1]}),(0,c.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:f(e.status)})]}),(0,c.jsx)(`div`,{className:`p-2`,children:(0,c.jsx)(i,{part:d(e)})})]})}function m({artifactRuns:e=[],selectedArtifactId:t,kernelDiagnostics:n}){let r=e.flatMap(e=>e.artifacts).filter(e=>e.kind===`ipython`);return(0,c.jsxs)(`section`,{"aria-label":`REPL runs`,className:`space-y-2 pb-1`,children:[(0,c.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 rounded-sm bg-foreground/5 px-2 py-1.5`,children:[(0,c.jsx)(a,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,c.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:`IPython cells`}),(0,c.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:r.length>0?r.length:`none yet`})]}),n?(0,c.jsxs)(`details`,{className:`overflow-hidden rounded-md border border-border/60 bg-background`,children:[(0,c.jsxs)(`summary`,{className:`flex min-w-0 cursor-pointer items-center gap-2 px-2.5 py-1.5`,children:[(0,c.jsx)(o,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,c.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-medium text-foreground/70`,children:`Kernel diagnostics`}),(0,c.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:n.truncated?`tail`:`stderr`})]}),(0,c.jsx)(`pre`,{className:`max-h-48 overflow-auto border-t border-border/50 px-2.5 py-1.5 font-mono text-[11px] leading-4 whitespace-pre-wrap text-foreground/70`,children:n.tail})]}):null,r.length===0?(0,c.jsx)(`p`,{className:`px-2 text-[11px] leading-4 text-foreground/45`,children:`Executed IPython cells and their output will appear here.`}):(0,c.jsx)(`div`,{className:`space-y-2`,"data-testid":`repl-run-list`,children:r.map((e,n)=>(0,c.jsx)(p,{artifact:e,index:n,selected:e.id===t},e.id))})]})}export{m as ReplPanelContent};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-CObI-DMt.js","assets/rolldown-runtime-hePW80VL.js","assets/bundle-mjs-DKHVkVWu.js","assets/jsx-runtime-NZYk81nU.js","assets/button-BR2WWrFo.js","assets/react-dom-Bwxum3ti.js","assets/createBaseUIEventDetails-DV0dQrBX.js","assets/utils-Eg7xtNmV.js","assets/createLucideIcon-DwxZHm0M.js","assets/tool-result-Baj3CdL_.js","assets/ease-u56MhKYS.js","assets/layout-gyLzPvVv.js","assets/use-reduced-motion-eORd7fqW.js","assets/check-JjHKAZas.js","assets/chevron-down-BEVGmnSb.js","assets/loader-circle-DjfHXUPB.js","assets/circle-x-CkKCB__4.js","assets/action-swap-roll-BB8DFMuf.js","assets/rotate-ccw-WNFNkKQD.js","assets/square-terminal-BYTN_I86.js","assets/wrench-BJNNe07k.js","assets/preload-helper-Czpn1I53.js","assets/agent-disclosure-B8SnhQXL.js","assets/chevron-right-DrJxToLs.js","assets/package-CdcJFPf2.js","assets/openui-renderer-DwYFJdbe.js","assets/dialog-BEZuZhzk.js","assets/useBaseUiId-CHqXB2UQ.js","assets/x-CsRC_tCI.js","assets/provider-catalog-D8G66gwc.js","assets/useControlled-CJJ9BOQB.js","assets/input-0wwjWjKq.js","assets/chevron-up-CnSvySGH.js","assets/card-BKl76a3R.js","assets/chunk-YOKDWASO-BAf618wr.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/openui-utils-DawGoQNp.js","assets/safe-external-url-D3PJJIcM.js","assets/chat-C8XDWWXz.js","assets/switch-9rTeg6J6.js","assets/markdown-DInPmRUG.js","assets/cn-C8c0S2mI.js","assets/dist-BPaFisIZ.js","assets/collapsible-BoXtZZWN.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/artifacts-utils-N_kUFbz2.js","assets/resources-panel-Bo8dfUdm.js","assets/resource-helpers-Q2T0YCMO.js","assets/file-text-T-NcAlZs.js","assets/plug-Dt6VN0zF.js","assets/circle-alert-CONlFReH.js","assets/skeleton-loaders-DjGv9LLA.js","assets/skeleton-CkR2VmWc.js","assets/session-insights-panel-CQdT90Op.js","assets/repl-panel-BDQ5MEgV.js","assets/ipython-tool-BrMePqD-.js","assets/triangle-alert-CU-gd7ui.js","assets/subagents-panel-CHC96I68.js","assets/bot-Bs7QWJ2q.js","assets/subagent-utils-DDH5qm9Z.js","assets/subagent-transcript-cxVKYnh9.js","assets/citations-BQ_pr_9_.js","assets/earth-DGZXAN5r.js","assets/shield-check-CkA2viVW.js","assets/generative-text-renderer-CDKHv-v_.js","assets/image-BbPmlw-n.js","assets/notify-DgMKgZZW.js","assets/toast-Bt9p2OL4.js","assets/fleet-pi-tool-renderer-AJoMbXBa.js","assets/eye-B0DFz5hL.js","assets/search-eWVnAJsb.js","assets/sparkles-DuclzqlE.js","assets/terminal-DOS1s1gm.js","assets/dist-CZDnnosQ.js","assets/workspace-path-nav-C0AQNZyy.js","assets/surfaces-cW-gp56p.js","assets/range-BWOHiLNe.js","assets/fleet-tool-timeline-COzPrwr8.js","assets/refresh-cw-IThTJ3j-.js","assets/fleet-subagent-list-BnRnrWKS.js","assets/workspace-panel-DI1W3ce9.js","assets/horizontal-resize-Bl3AyBJg.js","assets/folder-BC5p7qK7.js","assets/hard-drive-CHqgr7VQ.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"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-DwxZHm0M.js";import{t as i}from"./bot-Bs7QWJ2q.js";import{t as a}from"./folder-BC5p7qK7.js";import{t as o}from"./package-CdcJFPf2.js";import{t as s}from"./square-terminal-BYTN_I86.js";import{t as c}from"./preload-helper-Czpn1I53.js";import{i as l,n as u}from"./right-panel-context-DHlNWJsF.js";import{t as d}from"./skeleton-CkR2VmWc.js";var f=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),p=r(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),m=e(t(),1),h=n(),g=(0,m.lazy)(()=>c(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-CObI-DMt.js`);return{ArtifactsPanelContent: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,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])).then(({ArtifactsPanelContent:e})=>({default:e}))),_=(0,m.lazy)(()=>c(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-Bo8dfUdm.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([47,3,1,48,8,2,49,24,50,51,52,53,7])).then(({ResourcesPanelContent:e})=>({default:e}))),v=(0,m.lazy)(()=>c(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-CQdT90Op.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([54,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),y=(0,m.lazy)(()=>c(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-BDQ5MEgV.js`);return{ReplPanelContent:e}},__vite__mapDeps([55,1,2,3,56,7,8,42,19,57])).then(({ReplPanelContent:e})=>({default:e}))),b=(0,m.lazy)(()=>c(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-CHC96I68.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([58,1,2,3,4,5,6,7,59,8,23,60,51,15,16,61,62,10,11,12,14,63,64,21,22,38,65,13,17,49,66,28,42,67,68,57,37,69,9,18,19,20,32,56,70,71,72,73,74,35,36,75,44,27,30,76,77,78,79,80,45])).then(({SubagentsPanelContent:e})=>({default:e}))),x=(0,m.lazy)(()=>c(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-DI1W3ce9.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([81,1,2,3,10,11,12,7,48,8,49,24,50,23,51,82,83,84,75,41,21,34,5,35,42,52,53])).then(({WorkspacePanelContent:e})=>({default:e})));function S(){return(0,h.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,h.jsx)(d,{className:`h-5 w-32`}),(0,h.jsx)(d,{className:`h-20 w-full`})]})}function C(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(v,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,messages:e.messages,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function w(){let e=u(),t=l();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(_,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function T(){let e=l();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(x,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function E(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(g,{artifactRuns:e.artifactRuns,messages:e.messages,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function D(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(y,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function O(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(b,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}var k={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:p,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:w},workspace:{id:`workspace`,order:1,title:`Workspace`,ariaLabel:`Workspace`,commandLabel:`Open Workspace`,commandKeywords:[`workspace`,`files`,`panels`],icon:a,dataTestid:`pi-workspace-canvas`,mobileDataTestid:`pi-workspace-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:`workspace`,refreshSource:`workspace`,component:T},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:o,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:E},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:s,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:D},subagents:{id:`subagents`,order:4,title:`Subagents`,ariaLabel:`Subagents`,commandLabel:`Open Subagents`,commandKeywords:[`subagents`,`agents`,`threads`,`delegation`,`panels`],icon:i,dataTestid:`pi-subagents-canvas`,mobileDataTestid:`pi-subagents-mobile-panel`,showInLauncher:!1,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:O},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:f,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:C}},A=Object.values(k).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function j(e){return k[e]}export{j as n,p as r,A as t};
|