@qredence/fleet 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/web/client/assets/{chat-command-palette-DdPlRVuL.js → chat-command-palette-AjGusIEp.js} +1 -1
  3. package/dist/web/client/assets/{create-project-dialog-CaXurRpm.js → create-project-dialog-zTSeGUup.js} +1 -1
  4. package/dist/web/client/assets/globals-BiAbxPQ2.css +2 -0
  5. package/dist/web/client/assets/{index-BJIGh8ag.js → index-NhnAdIsR.js} +2 -2
  6. package/dist/web/client/assets/{message-queue-CPYj2iaw.js → message-queue-BoNn57Po.js} +1 -1
  7. package/dist/web/client/assets/prompt-input-BhVQxoyh.js +1 -0
  8. package/dist/web/client/assets/{prompt-suggestions-ULqmPijZ.js → prompt-suggestions-BRFWFm5y.js} +1 -1
  9. package/dist/web/client/assets/right-panel-registry-gwgnEeUz.js +2 -0
  10. package/dist/web/client/assets/routes-umGEy_Ak.js +16 -0
  11. package/dist/web/client/assets/{settings-dialog-BRWheaBZ.js → settings-dialog-C8YN5D1V.js} +1 -1
  12. package/dist/web/client/assets/{subagent-chat-panel-B6d4Z3bV.js → subagent-chat-panel-BIsmzS45.js} +1 -1
  13. package/dist/web/client/assets/{subagent-transcript-CQuPs6N4.js → subagent-transcript-CEUBL9sF.js} +1 -1
  14. package/dist/web/client/assets/{subagents-panel-ajf--C_-.js → subagents-panel-CFxWpUT0.js} +1 -1
  15. package/dist/web/client/assets/{tokens-BcUIpW6Y.js → tokens-CtP2s1Y3.js} +1 -1
  16. package/dist/web/client/assets/types-D5hZ8IyV.js +1 -0
  17. package/dist/web/client/assets/virtualized-turn-list-DkJIWXFJ.js +6 -0
  18. package/dist/web/client/bundle-budget.json +6 -6
  19. package/dist/web/server/{_tanstack-start-manifest_v-BZR0i182-OLTGGEDQ.js → _tanstack-start-manifest_v-B3Gb4p5p-DO2GL5VM.js} +9 -10
  20. package/dist/web/server/{artifacts-panel-BySfu7im-AKBWHYJS.js → artifacts-panel-CGgpyc85-V3KXDVAX.js} +2 -2
  21. package/dist/web/server/{chat-command-palette-BLGKnp-w-OKFIKD3T.js → chat-command-palette-BMR7RsuI-U5S4X44U.js} +2 -2
  22. package/dist/web/server/{chunk-4B2PJSK5.js → chunk-5TXDGMCK.js} +14 -4
  23. package/dist/web/server/{chunk-ONWT54IL.js → chunk-BS4D5LRR.js} +5 -1
  24. package/dist/web/server/{chunk-JLGBOCFM.js → chunk-ELRLMFHT.js} +49 -33
  25. package/dist/web/server/{chunk-JZ2WBCIH.js → chunk-G6NMFFZX.js} +624 -624
  26. package/dist/web/server/{chunk-47TH5VUT.js → chunk-LBUHLBKK.js} +2 -2
  27. package/dist/web/server/{chunk-2GQATGF4.js → chunk-N47UN47Y.js} +3 -3
  28. package/dist/web/server/{chunk-CIE2PLNB.js → chunk-PX7B5BTI.js} +2 -2
  29. package/dist/web/server/{chunk-NHZRY22Z.js → chunk-SOZKLVNI.js} +59 -19
  30. package/dist/web/server/{create-project-dialog-CigfFgAj-QS27NAJH.js → create-project-dialog-xhTWmcx1-UQQU3MAT.js} +2 -2
  31. package/dist/web/server/{message-queue-BsrLcNPX-CUCBSF6U.js → message-queue-Dg2okv2L-SJTUUJS7.js} +4 -4
  32. package/dist/web/server/{openui-renderer-TbIFXEW2-BET2OXM2.js → openui-renderer-CiWvcD3p-N6I66FOC.js} +1 -1
  33. package/dist/web/server/{prompt-suggestions-D6RXFQF4-7WHYRNMN.js → prompt-suggestions-h17Gu7u1-BS5SU2FY.js} +2 -2
  34. package/dist/web/server/{router-RPObiwZR-AFMFSYSZ.js → router-DOPFvRSC-G7G75P7U.js} +84 -28
  35. package/dist/web/server/{routes-Dn-deuPY-MDXEQXRU.js → routes-i2Ai-ZwX-SMSFONDQ.js} +469 -352
  36. package/dist/web/server/server.js +2 -2
  37. package/dist/web/server/{settings-dialog-CzeangBl-YKL7CLPF.js → settings-dialog-C-xwPYy8-TFICZWEM.js} +7 -7
  38. package/dist/web/server/{subagent-chat-panel-Fa31QewE-YDPOKN74.js → subagent-chat-panel-VEVu0QXU-DPWJFCYR.js} +5 -4
  39. package/dist/web/server/{subagents-panel-DjOcQxp4-GZYOZOYC.js → subagents-panel-Cs3cBcsy-HTQBIYAS.js} +4 -3
  40. package/package.json +1 -1
  41. package/dist/web/client/assets/globals-B-fD_O7k.css +0 -2
  42. package/dist/web/client/assets/prompt-input-a7UP_MAw.js +0 -1
  43. package/dist/web/client/assets/right-panel-registry-BqtgZw7Z.js +0 -2
  44. package/dist/web/client/assets/routes-C37r2W1K.js +0 -16
  45. package/dist/web/client/assets/types-Cr5Z97oW.js +0 -1
  46. package/dist/web/client/assets/virtualized-turn-list-Bcq088gZ.js +0 -6
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./utils-Dpy9ZFOr.js";import{t as i}from"./pencil-Cbgq3ybX.js";import{t as a}from"./x-DEU6H3M-.js";import{t as o}from"./notify-GSsGEKtR.js";import{t as s}from"./tokens-BcUIpW6Y.js";var c=e(t(),1),l=n(),u=[{key:`steering`,label:`Next`},{key:`followUp`,label:`After run`}];function d(e,t){return`${e}:${t}`}function f({queue:e,onDelete:t,onEdit:n,className:f}){let p=e.steering.length+e.followUp.length,[m,h]=(0,c.useState)(null),[g,_]=(0,c.useState)(``);if(p===0)return null;let v=()=>{h(null),_(``)},y=(e,t,n)=>{h(d(e,t)),_(n)},b=async(e,n,r)=>{m===d(e,n)&&v();try{await t?.(e,n,r)===!1&&o.error(`Unable to remove queued message`)}catch{o.error(`Unable to remove queued message`)}},x=async(e,t,r)=>{let i=g.trim();if(i.length===0){await b(e,t,r);return}if(i===r){v();return}try{await n?.(e,t,r,i)===!1?o.error(`Unable to update queued message`):v()}catch{o.error(`Unable to update queued message`)}};return(0,l.jsx)(`section`,{"aria-label":`Queued messages`,className:r(s,`mb-2`,f),children:(0,l.jsxs)(`div`,{className:`rounded-xl border border-border/60 bg-muted/30 p-2`,children:[(0,l.jsxs)(`div`,{className:`mb-1 flex items-baseline justify-between px-1 text-xs text-muted-foreground`,children:[(0,l.jsxs)(`span`,{children:[p,` queued`]}),(0,l.jsx)(`span`,{children:`Sent when the run reaches its lane`})]}),(0,l.jsx)(`div`,{className:`space-y-1`,children:u.flatMap(({key:r,label:o})=>e[r].map((e,s)=>{let c=d(r,s);return(0,l.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 rounded-lg bg-background/80 px-2 py-1.5 text-sm`,children:[(0,l.jsx)(`span`,{className:`mt-0.5 shrink-0 text-micro font-medium uppercase tracking-wide text-muted-foreground`,children:o}),m===c?(0,l.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1.5`,children:[(0,l.jsx)(`textarea`,{value:g,onChange:e=>_(e.target.value),onKeyDown:t=>{if(t.key===`Escape`){t.preventDefault(),v();return}t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),x(r,s,e))},"aria-label":`Edit queued message: ${e}`,rows:2,className:`min-h-10 w-full resize-y rounded-md border border-border/70 bg-background px-2 py-1 text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,autoFocus:!0}),(0,l.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[(0,l.jsx)(`button`,{type:`button`,onClick:()=>void x(r,s,e),className:`rounded-md bg-primary px-2 py-1 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:`Save`}),(0,l.jsx)(`button`,{type:`button`,onClick:v,className:`rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:`Cancel`})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-foreground/80`,children:e}),(0,l.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[n?(0,l.jsx)(`button`,{type:`button`,"aria-label":`Edit queued message: ${e}`,onClick:()=>y(r,s,e),className:`grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,l.jsx)(i,{className:`size-3.5`})}):null,t?(0,l.jsx)(`button`,{type:`button`,"aria-label":`Remove queued message: ${e}`,onClick:()=>void b(r,s,e),className:`grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,l.jsx)(a,{className:`size-3.5`})}):null]})]})]},`${r}:${s}:${e}`)}))})]})})}export{f as MessageQueue};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./utils-Dpy9ZFOr.js";import{t as i}from"./pencil-Cbgq3ybX.js";import{t as a}from"./x-DEU6H3M-.js";import{t as o}from"./notify-GSsGEKtR.js";import{t as s}from"./tokens-CtP2s1Y3.js";var c=e(t(),1),l=n(),u=[{key:`steering`,label:`Next`},{key:`followUp`,label:`After run`}];function d(e,t){return`${e}:${t}`}function f({queue:e,onDelete:t,onEdit:n,className:f}){let p=e.steering.length+e.followUp.length,[m,h]=(0,c.useState)(null),[g,_]=(0,c.useState)(``);if(p===0)return null;let v=()=>{h(null),_(``)},y=(e,t,n)=>{h(d(e,t)),_(n)},b=async(e,n,r)=>{m===d(e,n)&&v();try{await t?.(e,n,r)===!1&&o.error(`Unable to remove queued message`)}catch{o.error(`Unable to remove queued message`)}},x=async(e,t,r)=>{let i=g.trim();if(i.length===0){await b(e,t,r);return}if(i===r){v();return}try{await n?.(e,t,r,i)===!1?o.error(`Unable to update queued message`):v()}catch{o.error(`Unable to update queued message`)}};return(0,l.jsx)(`section`,{"aria-label":`Queued messages`,className:r(s,`mb-2`,f),children:(0,l.jsxs)(`div`,{className:`rounded-xl border border-border/60 bg-muted/30 p-2`,children:[(0,l.jsxs)(`div`,{className:`mb-1 flex items-baseline justify-between px-1 text-xs text-muted-foreground`,children:[(0,l.jsxs)(`span`,{children:[p,` queued`]}),(0,l.jsx)(`span`,{children:`Sent when the run reaches its lane`})]}),(0,l.jsx)(`div`,{className:`space-y-1`,children:u.flatMap(({key:r,label:o})=>e[r].map((e,s)=>{let c=d(r,s);return(0,l.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 rounded-lg bg-background/80 px-2 py-1.5 text-sm`,children:[(0,l.jsx)(`span`,{className:`mt-0.5 shrink-0 text-micro font-medium uppercase tracking-wide text-muted-foreground`,children:o}),m===c?(0,l.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1.5`,children:[(0,l.jsx)(`textarea`,{value:g,onChange:e=>_(e.target.value),onKeyDown:t=>{if(t.key===`Escape`){t.preventDefault(),v();return}t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),x(r,s,e))},"aria-label":`Edit queued message: ${e}`,rows:2,className:`min-h-10 w-full resize-y rounded-md border border-border/70 bg-background px-2 py-1 text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,autoFocus:!0}),(0,l.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[(0,l.jsx)(`button`,{type:`button`,onClick:()=>void x(r,s,e),className:`rounded-md bg-primary px-2 py-1 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:`Save`}),(0,l.jsx)(`button`,{type:`button`,onClick:v,className:`rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:`Cancel`})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-foreground/80`,children:e}),(0,l.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[n?(0,l.jsx)(`button`,{type:`button`,"aria-label":`Edit queued message: ${e}`,onClick:()=>y(r,s,e),className:`grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,l.jsx)(i,{className:`size-3.5`})}):null,t?(0,l.jsx)(`button`,{type:`button`,"aria-label":`Remove queued message: ${e}`,onClick:()=>void b(r,s,e),className:`grid size-6 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,l.jsx)(a,{className:`size-3.5`})}):null]})]})]},`${r}:${s}:${e}`)}))})]})})}export{f as MessageQueue};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./button-BrwYi6QP.js";import{t as i}from"./utils-Dpy9ZFOr.js";import{c as a,d as o}from"./ease-2UPBQU5v.js";import{n as s,t as c}from"./use-reduced-motion-CaQBb3Qc.js";import{t as l}from"./arrow-up-DCwrqIrK.js";import{t as u}from"./square-BbTF3gLc.js";var d=e(t(),1),f=`px-2 text-sm leading-6 whitespace-pre-wrap [overflow-wrap:break-word]`,p=`text-transparent`,m=`text-foreground/55`,h={focused:!1,composing:!1,caretStart:null,caretEnd:null};function g(e,t){return e.focused===t.focused&&e.composing===t.composing&&e.caretStart===t.caretStart&&e.caretEnd===t.caretEnd}function _(e){let{completion:t,value:n,editing:r}=e;if(!t||t.forValue!==n)return null;let i=t.text;return i.length===0||i.trim().length===0||t.mode!==`replace`&&n.endsWith(i)||n.length===0||e.streaming||e.disabled||e.triggerOpen||e.dismissed&&e.dismissed.forValue===n&&e.dismissed.text===i||!r.focused||r.composing||r.caretStart===null||r.caretEnd===null||r.caretStart!==r.caretEnd||r.caretStart!==n.length?null:{text:i,mode:t.mode}}function v(e,t,n=`append`){return n===`replace`?t:`${e}${t}`}function y(e,t){if(t)return t.mode===`append`||/\s$/.test(e)?t.text:` ${t.text}`}var b=n();function x({value:e,defaultValue:t=``,onValueChange:n,onSubmit:h,loading:g=!1,submitWhileLoading:_=!1,onStop:v,minRows:y=2,maxRows:x=8,leadingAction:S,className:C,disabled:w,placeholder:T=`Ask the agent to do something…`,"aria-label":E=`Prompt`,"aria-describedby":D,onKeyDown:O,onScroll:k,ghostText:A,onTextareaRef:j,...M}){let N=c()??!1,P=(0,d.useRef)(null),F=(0,d.useRef)(null),I=(0,d.useRef)(null),L=(0,d.useId)(),R=(0,d.useId)(),[z,B]=(0,d.useState)(void 0),[V,H]=(0,d.useState)(t),U=e??V,W=!!U.trim()&&!w&&(!g||_),G=!!w||g&&!_,K=[L,R,D].filter(Boolean).join(` `),q=(0,d.useCallback)(()=>{let e=P.current,t=I.current;t&&e&&(t.scrollTop=e.scrollTop,B(t=>t===e.clientWidth?t:e.clientWidth))},[]);(0,d.useLayoutEffect)(()=>{q()},[q,A,U]);let J=(0,d.useCallback)(()=>{let e=P.current,t=F.current;if(!e||!t||e.value!==U)return;let n=`${Math.min(Math.max(t.scrollHeight,y*24),x*24)}px`;e.style.height!==n&&(e.style.height=n)},[U,x,y]);(0,d.useLayoutEffect)(()=>{J()},[J]);let Y=(0,d.useRef)(J);(0,d.useEffect)(()=>{Y.current=J}),(0,d.useEffect)(()=>{let e=P.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{Y.current(),q()});return t.observe(e),()=>t.disconnect()},[q]),(0,d.useEffect)(()=>(j?.(P.current),()=>j?.(null)),[j]);let X=t=>{e===void 0&&H(t),n?.(t)},Z=t=>{t?.preventDefault();let n=U.trim();!n||w||g&&!_||(h?.(n),e===void 0&&H(``),P.current?.focus({preventScroll:!0}))},Q=e=>{O?.(e),!(e.defaultPrevented||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)&&(e.preventDefault(),Z())};return(0,b.jsxs)(`form`,{"aria-label":`Message composer`,onSubmit:Z,className:i(`relative w-full rounded-chat-input border border-border/70 bg-sidebar p-2 text-[color:var(--foreground)] shadow-sm transition-[border-color,box-shadow] focus-within:border-chat-input-focus-outline/45 focus-within:ring-2 focus-within:ring-chat-input-focus-outline/25`,w&&`opacity-60`,C),children:[(0,b.jsx)(`div`,{ref:F,"data-slot":`composer-measure`,"aria-hidden":`true`,className:i(`pointer-events-none invisible absolute inset-x-2 top-0`,f),children:`${U}\u200b`}),(0,b.jsx)(`p`,{id:L,className:`sr-only`,children:`Enter to send. Shift+Enter for a new line. Tab accepts an inline suggestion or menu item. Escape dismisses suggestions.`}),(0,b.jsx)(`p`,{id:R,className:`sr-only`,"aria-live":`polite`,children:A?`Suggestion available. Press Tab to accept.`:``}),(0,b.jsxs)(`div`,{className:`relative`,children:[A?(0,b.jsx)(`div`,{"data-slot":`composer-ghost-layer`,"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 select-none overflow-hidden`,children:(0,b.jsxs)(`div`,{ref:I,"data-slot":`composer-ghost-mirror`,className:i(`h-full overflow-hidden pt-1.5`,f,p),style:z===void 0?void 0:{width:`${z}px`},children:[U,(0,b.jsx)(`span`,{"data-slot":`composer-ghost`,className:m,children:A})]})}):null,(0,b.jsx)(`textarea`,{ref:P,value:U,disabled:w,placeholder:T,"aria-label":E,"aria-describedby":K,autoComplete:`off`,rows:y,...M,onChange:e=>X(e.target.value),onKeyDown:Q,onScroll:e=>{k?.(e),q()},className:i(`block w-full resize-none overflow-y-auto bg-transparent pt-1.5 text-foreground outline-none placeholder:text-foreground/70`,f)})]}),(0,b.jsxs)(`div`,{className:`mt-1 flex min-h-8 items-center gap-1.5`,children:[S?(0,b.jsx)(`div`,{role:`group`,"aria-label":`Composer options`,className:`flex min-w-0 items-center gap-1.5`,children:S}):null,g&&v?(0,b.jsx)(r,{type:`button`,size:`icon`,"aria-label":`Stop generating`,onClick:v,className:`ms-auto size-8 rounded-full`,children:(0,b.jsx)(u,{"aria-hidden":`true`,className:`size-3 fill-current`})}):null,!g||W||_?(0,b.jsx)(r,{type:`submit`,size:`icon`,disabled:G||!U.trim(),"aria-label":g?`Send follow-up`:`Send prompt`,className:i(`size-8 rounded-full`,!g&&`ms-auto`,W&&`border-transparent bg-chat-input-accent text-white hover:bg-chat-input-accent/90 focus-visible:border-chat-input-accent focus-visible:ring-chat-input-accent/40`),children:(0,b.jsx)(s,{initial:!1,mode:`popLayout`,children:(0,b.jsx)(o.span,{initial:N?{opacity:1}:{opacity:0,y:3,scale:.8},animate:{opacity:1,y:0,scale:1},exit:N?{opacity:0}:{opacity:0,y:-3,scale:.8},transition:N?{duration:0}:a,className:`grid place-items-center`,children:(0,b.jsx)(l,{"aria-hidden":`true`,className:`size-4`})},`send`)})}):null]})]})}export{g as a,_ as i,h as n,v as o,y as r,x as t};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-Dpy9ZFOr.js";import{d as n}from"./tokens-BcUIpW6Y.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-chat flex-wrap justify-center gap-1.5`,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 cursor-pointer focus-visible:ring-2 focus-visible:ring-ring motion-reduce:animate-none`,u&&`w-full justify-start rounded-2xl px-4 py-2.5 text-start`,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
+ import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-Dpy9ZFOr.js";import{d as n}from"./tokens-CtP2s1Y3.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-chat flex-wrap justify-center gap-1.5`,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 cursor-pointer focus-visible:ring-2 focus-visible:ring-ring motion-reduce:animate-none`,u&&`w-full justify-start rounded-2xl px-4 py-2.5 text-start`,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};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-DDlPULVv.js","assets/rolldown-runtime-hePW80VL.js","assets/react-Cvdyeg_0.js","assets/jsx-runtime-NZYk81nU.js","assets/button-BrwYi6QP.js","assets/react-dom-B7th3XGm.js","assets/utils-Dpy9ZFOr.js","assets/createBaseUIEventDetails-DklXWq23.js","assets/dist-BogNzeK9.js","assets/clsx-DB0hHKMi.js","assets/createLucideIcon-CQY2ECfR.js","assets/tool-result-C-vs_tjQ.js","assets/ease-2UPBQU5v.js","assets/is-ref-object-CEXqIz6L.js","assets/use-reduced-motion-CaQBb3Qc.js","assets/use-presence-D2YmRKr3.js","assets/check-BTwIaCtI.js","assets/chevron-down-Bse1ggZM.js","assets/circle-check-DBhaebaM.js","assets/agent-disclosure-YgLa4c2y.js","assets/loader-circle-BmKYM_C4.js","assets/rotate-ccw-DLkfsmG9.js","assets/square-terminal-BLq2bQVF.js","assets/wrench-BYnD147U.js","assets/preload-helper-Czpn1I53.js","assets/chevron-right-BPCB1mOg.js","assets/package-BkC-HSi-.js","assets/openui-renderer-l1qI5JDt.js","assets/card-BScRdZNS.js","assets/provider-catalog-L0c-bZv6.js","assets/DialogTitle-BwQ9k-MZ.js","assets/useBaseUiId-BlzQUkVG.js","assets/useControlled-CkQSkSv1.js","assets/input-BceH49B1.js","assets/safe-external-url-BnEhm9A0.js","assets/chunk-YOKDWASO-C8deEx7Z.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/openui-utils-DawGoQNp.js","assets/composer-intent-C5pz72T6.js","assets/dialog-B9nXTto4.js","assets/x-DEU6H3M-.js","assets/markdown-C-Y9gskI.js","assets/switch-CoSNSJEY.js","assets/dist-BJJVCio8.js","assets/collapsible-DsbKpD_Y.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/resources-panel-kp_UjnpX.js","assets/resource-helpers-CKbSmzpw.js","assets/file-text-cqOanUYv.js","assets/plug-wCz-036u.js","assets/skeleton-loaders-DOKGa7CW.js","assets/skeleton-D5Y9nBfp.js","assets/session-insights-panel-B0rl37lo.js","assets/repl-panel-UQN9UFG7.js","assets/ipython-tool-CuSGRhXl.js","assets/triangle-alert-BuzmrrqI.js","assets/subagents-panel-CFxWpUT0.js","assets/bot-DETalD3q.js","assets/virtualized-turn-list-DkJIWXFJ.js","assets/citations-DOkXsdCi.js","assets/sparkles-C4VQyMox.js","assets/notify-GSsGEKtR.js","assets/toast-CS0pnDlS.js","assets/tokens-CtP2s1Y3.js","assets/workspace-path-nav-DmxBrMV6.js","assets/subagent-transcript-CEUBL9sF.js","assets/session-tool-renderer-pGdW2MnV.js","assets/eye-iNSvs0UA.js","assets/git-branch-DZEh2mM2.js","assets/search-Cb6fFWew.js","assets/terminal-Ceucj7us.js","assets/dist-CZDnnosQ.js","assets/range-BWOHiLNe.js","assets/surfaces-BULKVm-B.js","assets/tool-timeline-B4ci1oJg.js","assets/refresh-cw-CqPE3kNY.js","assets/workspace-panel-CjKMroC6.js","assets/horizontal-resize-5AxYvGLA.js","assets/safe-storage-s25GrfpH.js","assets/chat-helpers-Bj7_hES7.js","assets/folder-COBtkKZa.js","assets/hard-drive-B3opVeEB.js","assets/session-tree-panel-DF3kuF0P.js","assets/alert-dialog-BfK7648p.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-CQY2ECfR.js";import{t as i}from"./bot-DETalD3q.js";import{t as a}from"./folder-COBtkKZa.js";import{t as o}from"./git-branch-DZEh2mM2.js";import{t as s}from"./package-BkC-HSi-.js";import{i as c,n as l}from"./right-panel-context-DHKWoetk.js";import{t as u}from"./square-terminal-BLq2bQVF.js";import{t as d}from"./preload-helper-Czpn1I53.js";import{t as f}from"./skeleton-D5Y9nBfp.js";var p={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};p.node;var m=r(p),h={name:`library`,size:24,node:[[`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`}]]};h.node;var g=r(h),_=e(t(),1),v=n(),y=(0,_.lazy)(()=>d(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-DDlPULVv.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}))),b=(0,_.lazy)(()=>d(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-kp_UjnpX.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([47,3,1,48,10,2,49,26,50,51,52,6])).then(({ResourcesPanelContent:e})=>({default:e}))),x=(0,_.lazy)(()=>d(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-B0rl37lo.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([53,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),S=(0,_.lazy)(()=>d(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-UQN9UFG7.js`);return{ReplPanelContent:e}},__vite__mapDeps([54,1,2,3,55,6,10,22,56])).then(({ReplPanelContent:e})=>({default:e}))),C=(0,_.lazy)(()=>d(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-CFxWpUT0.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,58,10,59,12,13,14,15,60,17,34,19,61,16,25,49,18,20,41,24,62,63,56,64,65,38,66,67,11,21,22,23,55,68,69,70,71,72,36,37,45,31,32,73,74,75,76,46])).then(({SubagentsPanelContent:e})=>({default:e}))),w=(0,_.lazy)(()=>d(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-CjKMroC6.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([77,1,2,3,6,12,13,14,15,48,10,49,26,50,25,78,79,80,81,82,65,24,51,52])).then(({WorkspacePanelContent:e})=>({default:e}))),T=(0,_.lazy)(()=>d(async()=>{let{SessionTreePanel:e}=await import(`./session-tree-panel-DF3kuF0P.js`);return{SessionTreePanel:e}},__vite__mapDeps([83,1,2,3,4,5,6,7,8,9,69,10,84,30,31])).then(({SessionTreePanel:e})=>({default:e})));function E(){return(0,v.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,v.jsx)(f,{className:`h-5 w-32`}),(0,v.jsx)(f,{className:`h-20 w-full`})]})}function D(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(x,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,transcriptSummary:e.transcriptSummary,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function O(){let e=l(),t=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(b,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function k(){let e=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(w,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function A(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(y,{artifactRuns:e.artifactRuns,openUIBlocks:e.transcriptSummary.openUIBlocks,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function j(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(S,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function M(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(C,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}function N(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(T,{sessionId:e.sessionId,snapshot:e.sessionTreeSnapshot,loading:e.sessionTreeLoading,error:e.sessionTreeError,isStreaming:e.isSessionTreeStreaming,selectedEntryId:e.selectedSessionTreeEntryId,onSelectEntry:e.selectSessionTreeEntry,onRefresh:e.refreshSessionTree,onRewind:e.rewindSessionTree})})}var P={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:g,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:O},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:k},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:s,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:A},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:u,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:j},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:M},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:m,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:D},"session-tree":{id:`session-tree`,order:6,title:`Session tree`,ariaLabel:`Session tree`,commandLabel:`Open Session Tree`,commandKeywords:[`session`,`tree`,`branch`,`rewind`,`history`,`panels`],icon:o,dataTestid:`pi-session-tree-canvas`,mobileDataTestid:`pi-session-tree-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:N}},F=Object.values(P).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function I(e){return P[e]}export{I as n,g as r,F as t};