@qredence/fleet 0.5.1 → 0.5.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.
- package/CHANGELOG.md +7 -0
- package/bin/fleet-prime.mjs +6 -0
- package/dist/web/client/assets/action-swap-roll-DX5o_33Q.js +1 -0
- package/dist/web/client/assets/artifacts-panel-C3yewUBP.js +1 -0
- package/dist/web/client/assets/{chat-CsepBQwy.js → chat-W-yOMyG_.js} +1 -1
- package/dist/web/client/assets/chat-command-palette-D0xDK1j4.js +1 -0
- package/dist/web/client/assets/command-CQzrtjyj.js +2 -0
- package/dist/web/client/assets/{fleet-pi-tool-renderer-BD_ZAjlG.js → fleet-pi-tool-renderer-B0Y7ou0U.js} +16 -16
- package/dist/web/client/assets/generative-text-renderer-SS9c1kNX.js +6 -0
- package/dist/web/client/assets/globals-D_Hy9bT1.css +2 -0
- package/dist/web/client/assets/{index-DweoFRMs.js → index-C9FloFgj.js} +2 -2
- package/dist/web/client/assets/{ipython-tool-BfeIa0nK.js → ipython-tool-BrMePqD-.js} +1 -1
- package/dist/web/client/assets/{openui-renderer-DlUo6ehT.js → openui-renderer-CCfQqUfE.js} +5 -5
- package/dist/web/client/assets/{prime-agent-artifacts-CHGb5V_j.js → prime-agent-artifacts-C-g1VPiW.js} +1 -1
- package/dist/web/client/assets/range-65lubOFp.js +2 -0
- package/dist/web/client/assets/repl-panel-CCh4ly7J.js +1 -0
- package/dist/web/client/assets/routes-DSTyx_J0.js +16 -0
- package/dist/web/client/assets/session-insights-panel-CQdT90Op.js +1 -0
- package/dist/web/client/assets/subagent-chat-panel-D-qw4uWb.js +1 -0
- package/dist/web/client/assets/subagent-transcript-C7oRwEEP.js +1 -0
- package/dist/web/client/assets/subagents-panel-aSMWZP9p.js +1 -0
- package/dist/web/client/assets/{tool-result-CBzwwUE9.js → tool-result-C2NvnN32.js} +3 -3
- package/dist/web/server/{_tanstack-start-manifest_v-bDUlyKY0-KFW35JRO.js → _tanstack-start-manifest_v-DZc7dwm7-6ZQLGXB7.js} +13 -13
- package/dist/web/server/{artifacts-panel-D9w1DHAN-FGRDCYU2.js → artifacts-panel-Bt7YUzm4-NCBMXJ25.js} +15 -15
- package/dist/web/server/{chat-command-palette-BaenPkCN-BHSOPGU4.js → chat-command-palette-Co1L3rUY-RQLNME4T.js} +33 -12
- package/dist/web/server/{chunk-KPNGZR2R.js → chunk-2V6B62OF.js} +204 -204
- package/dist/web/server/{chunk-44IVTHDV.js → chunk-3HUI75QM.js} +60 -60
- package/dist/web/server/{chunk-5AVQZ4AZ.js → chunk-4UBOIY2S.js} +2 -1
- package/dist/web/server/{chunk-Y6LJ4WBI.js → chunk-56HSKUBD.js} +699 -691
- package/dist/web/server/{chunk-RPROZ2JC.js → chunk-5RQ6QAZX.js} +133 -133
- package/dist/web/server/{chunk-PWK2HJIV.js → chunk-6D524OCJ.js} +175 -175
- package/dist/web/server/{chunk-FBOO3G67.js → chunk-AECEK3K7.js} +6 -6
- package/dist/web/server/{chunk-VHCAD46L.js → chunk-AWFOBHH4.js} +4 -4
- package/dist/web/server/{chunk-FVWDJNXR.js → chunk-BEMDNODD.js} +1 -1
- package/dist/web/server/{chunk-X2TUFLTP.js → chunk-BLVCDQ7E.js} +438 -438
- package/dist/web/server/{chunk-EIVNRYP3.js → chunk-FZRBAPUM.js} +2 -2
- package/dist/web/server/chunk-KOIPYBJF.js +3773 -0
- package/dist/web/server/{chunk-XYYNYFFD.js → chunk-LSIHVSUT.js} +2 -2
- package/dist/web/server/{chunk-H64JLONZ.js → chunk-PDRD2X5G.js} +2 -2
- package/dist/web/server/{chunk-FE4KN6T2.js → chunk-RX62LUDV.js} +4 -4
- package/dist/web/server/chunk-SR65ARVS.js +192 -0
- package/dist/web/server/{chunk-WK7CQS2N.js → chunk-SZ65K4CO.js} +48 -48
- package/dist/web/server/{chunk-DO3TVNGA.js → chunk-TO3YPLNZ.js} +6 -6
- package/dist/web/server/{chunk-3IKSPTYI.js → chunk-UKINNXJY.js} +2 -2
- package/dist/web/server/{chunk-M2FGGPNA.js → chunk-VGDP4YDU.js} +70 -45
- package/dist/web/server/{chunk-PCJ5EKFE.js → chunk-VRLTWOVJ.js} +11 -6
- package/dist/web/server/{chunk-HBZ6YKRB.js → chunk-WN77JNYY.js} +2 -2
- package/dist/web/server/{chunk-2U7PWSJX.js → chunk-WZNZQNI4.js} +231 -3633
- package/dist/web/server/{chunk-B2F6MLVZ.js → chunk-XFVL5ITL.js} +2246 -2228
- package/dist/web/server/{chunk-3GSFXWL5.js → chunk-XLCTCC4W.js} +3 -3
- package/dist/web/server/{chunk-AZZHUVJR.js → chunk-Y4MHIA7B.js} +18 -26
- package/dist/web/server/{fleet-pi-tool-renderer-lJvZWmBJ-4M5YI6VS.js → fleet-pi-tool-renderer-CE45vM6T-2UQN6RJM.js} +11 -9
- package/dist/web/server/{fork-picker-dialog-BZzfxdQd-Y725VJ7G.js → fork-picker-dialog-DCzuGelH-TN2Q5OXI.js} +5 -5
- package/dist/web/server/{openui-renderer-Cg4RSE9k-7BTJIYZJ.js → openui-renderer-c36_GYes-HX46N4M5.js} +11 -11
- package/dist/web/server/{repl-panel-BEQrC2ef-V3YEZ7EO.js → repl-panel-D9E8nkQy-L45ZNG2V.js} +4 -3
- package/dist/web/server/{router-CEahIUpn-SRG7XKIH.js → router-_ZpegqiQ-QIE44PIB.js} +1737 -1370
- package/dist/web/server/{routes-BznemByz-F4DJAYIM.js → routes-Ct81-8Tq-LHRMOS7R.js} +2882 -2330
- package/dist/web/server/server.js +3 -3
- package/dist/web/server/{session-insights-panel-JfeTHE0d-3HZB3ZWI.js → session-insights-panel-BHZyKDTo-LRMAMA3O.js} +4 -2
- package/dist/web/server/{settings-dialog-DgeBMORv-7SRSENPM.js → settings-dialog-B4uUS6f--AZ4I4ZOT.js} +142 -142
- package/dist/web/server/{start-CLAD7RcD-56S4BWMM.js → start-BYVnok_H-IA6TWGA3.js} +1 -1
- package/dist/web/server/subagent-chat-panel-C97S3WID-DLOAD5TG.js +63 -0
- package/dist/web/server/subagents-panel-iHpvMIZy-LI6XK66M.js +181 -0
- package/dist/web/server/{workspace-panel-y54P79_B-VPIYUXF6.js → workspace-panel-CHPoiXEo-YB4WS3MK.js} +2 -2
- package/package.json +5 -5
- package/dist/web/client/assets/artifacts-panel-CX62LQ13.js +0 -1
- package/dist/web/client/assets/chat-command-palette-C4sSf8Kg.js +0 -1
- package/dist/web/client/assets/collapsible-DmyYcezk.js +0 -1
- package/dist/web/client/assets/command-CB6emP8m.js +0 -2
- package/dist/web/client/assets/conversation-turns-ByFoWPXe.js +0 -6
- package/dist/web/client/assets/globals-CqqQdk2S.css +0 -2
- package/dist/web/client/assets/range-vSJ7Ux_5.js +0 -2
- package/dist/web/client/assets/repl-panel-DiGS6uCw.js +0 -1
- package/dist/web/client/assets/routes-CxlNCi_v.js +0 -16
- package/dist/web/client/assets/session-insights-panel-DwmwiikS.js +0 -1
- package/dist/web/client/assets/subagents-panel-DGnsK6Nx.js +0 -1
- package/dist/web/server/chunk-ZEVZFLIY.js +0 -334
- package/dist/web/server/subagents-panel-CzZe3co7-2VZ5JTWF.js +0 -332
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-NZYk81nU.js";var t=[`queued`,`running`,`done`,`error`,`cancelled`,`recovering`,`failed`];function n({activityLabel:e,artifactRuns:n,messages:r,planLabel:i,presentation:a,queue:o}){let s=Object.fromEntries(t.map(e=>[e,0]));for(let e of a.rlmChildren)s[e.status]+=1;let c=a.refinements.reduce((e,t)=>({failed:e.failed+Number(t.status===`error`),successful:e.successful+Number(t.status===`success`),total:e.total+1}),{failed:0,successful:0,total:0}),l=n.flatMap(e=>e.artifacts);return{activity:e||i||`Waiting for input`,artifactCount:l.length,assistantMessages:r.filter(e=>e.role===`assistant`).length,bashCommands:a.userBash.length,goal:a.goal,ipythonCells:l.filter(e=>e.kind===`ipython`).length,queuedFollowUps:o.followUp.length,queuedSteering:o.steering.length,refinements:c,rlmChildren:s,userMessages:r.filter(e=>e.role===`user`).length}}var r=e();function i(e){return e.replaceAll(`_`,` `)}function a(e){let t=Math.max(0,Math.round(e)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n}h ${r}m`:r>0?`${r}m ${i}s`:`${i}s`}function o({children:e,label:t}){return(0,r.jsxs)(`section`,{"aria-label":t,className:`rounded-md border border-border/60 bg-background px-3 py-2.5 shadow-[0_1px_4px_-1px_rgba(0,0,0,0.06)]`,children:[(0,r.jsx)(`h3`,{className:`mb-2 text-[11px] font-medium uppercase tracking-wide text-foreground/45`,children:t}),(0,r.jsx)(`dl`,{className:`space-y-1.5 text-[12px]`,children:e})]})}function s({label:e,value:t}){return(0,r.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,r.jsx)(`dt`,{className:`text-foreground/50`,children:e}),(0,r.jsx)(`dd`,{className:`min-w-0 text-right font-medium text-foreground/80`,children:t})]})}function c({goal:e}){return(0,r.jsxs)(o,{label:`Goal`,children:[(0,r.jsx)(s,{label:`Status`,value:i(e.status)}),e.objective?(0,r.jsx)(s,{label:`Objective`,value:(0,r.jsx)(`span`,{className:`block max-w-56 text-pretty`,children:e.objective})}):null,(0,r.jsx)(s,{label:`Elapsed`,value:a(e.timeUsedSeconds)}),(0,r.jsx)(s,{label:`Token usage`,value:e.tokensUsed}),e.tokenBudget===void 0?null:(0,r.jsx)(s,{label:`Token budget`,value:e.tokenBudget}),(0,r.jsx)(s,{label:`Continuations`,value:e.continuationsUsed})]})}function l({activityLabel:e,artifactRuns:i,chatMode:a,messages:l,planLabel:u,presentation:d,queue:f,selectedModelKey:p,sessionId:m,status:h,thinkingLevel:g}){if(!m)return(0,r.jsx)(`section`,{"aria-label":`Session insights`,className:`flex min-h-36 items-center rounded-md border border-dashed border-border/70 px-4 text-center text-[12px] leading-5 text-foreground/45`,children:`Start or open a session to view its live insights.`});let _=n({activityLabel:e,artifactRuns:i,messages:l,planLabel:u,presentation:d,queue:f}),v=t.map(e=>`${_.rlmChildren[e]} ${e}`).join(` · `);return(0,r.jsxs)(`section`,{"aria-label":`Session insights`,className:`space-y-2.5 pb-1`,children:[(0,r.jsxs)(o,{label:`Current state`,children:[(0,r.jsx)(s,{label:`Run status`,value:h}),(0,r.jsx)(s,{label:`Activity`,value:(0,r.jsx)(`span`,{className:`block max-w-56 text-pretty`,children:_.activity})}),(0,r.jsx)(s,{label:`Queued steering`,value:_.queuedSteering}),(0,r.jsx)(s,{label:`Queued follow-ups`,value:_.queuedFollowUps})]}),_.goal?(0,r.jsx)(c,{goal:_.goal}):null,(0,r.jsxs)(o,{label:`Configuration`,children:[(0,r.jsx)(s,{label:`Model`,value:p??`Not selected`}),(0,r.jsx)(s,{label:`Mode`,value:a}),(0,r.jsx)(s,{label:`Reasoning`,value:g??d.thinkingLevel??`Not set`})]}),(0,r.jsxs)(o,{label:`Progress`,children:[(0,r.jsx)(s,{label:`User messages`,value:_.userMessages}),(0,r.jsx)(s,{label:`Assistant messages`,value:_.assistantMessages}),(0,r.jsx)(s,{label:`Artifacts`,value:_.artifactCount}),(0,r.jsx)(s,{label:`Bash commands`,value:_.bashCommands}),(0,r.jsx)(s,{label:`IPython cells`,value:_.ipythonCells}),(0,r.jsx)(s,{label:`RLM children`,value:v||`None`}),(0,r.jsx)(s,{label:`Refinements`,value:`${_.refinements.total} total · ${_.refinements.successful} successful · ${_.refinements.failed} failed`})]}),d.recap?(0,r.jsx)(o,{label:`Existing recap`,children:(0,r.jsx)(s,{label:`Summary`,value:(0,r.jsx)(`span`,{className:`block max-w-56 whitespace-pre-wrap text-left text-pretty`,children:d.recap})})}):null]})}export{l as SessionInsightsPanel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./subagent-transcript-C7oRwEEP.js";var n=e();function r({child:e,parentSessionId:r,state:i}){let a=i.error??(i.status===`error`?Error(e.error??`The subagent thread ended with an error.`):void 0),o=i.loading?`loading`:i.status===`error`||a?`error`:`ready`;return(0,n.jsx)(t,{child:e,fullWidth:!0,parentSessionId:r,status:i.status,transcript:{status:o,messages:i.messages,presentation:i.presentation,error:a},onRefresh:i.refresh})}export{r as SubagentChatPanel};
|
|
@@ -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"./button-0At5xSyU.js";import{t as i}from"./utils-Eg7xtNmV.js";import{m as a}from"./range-65lubOFp.js";import{t as o}from"./bot-Bs7QWJ2q.js";import{c as s,d as c,f as l,h as u,i as d,l as f,m as p,n as m,p as h,r as g,s as _,t as v}from"./generative-text-renderer-SS9c1kNX.js";import{t as y}from"./fleet-pi-tool-renderer-B0Y7ou0U.js";import{n as b}from"./file-text-BhQ0ZnoU.js";import{n as x}from"./notify-Duj26eeZ.js";import{t as S}from"./prime-agent-artifacts-C-g1VPiW.js";var C=e(t(),1),w=n();function T(e){return e.status===`running`||e.status===`recovering`?`streaming`:e.status===`error`||e.status===`failed`?`error`:`ready`}function E({turn:e,isLast:t,isStreaming:n,artifacts:r,presentation:i}){let o=(0,C.useMemo)(()=>e.assistants.flatMap((r,i)=>_(s(r.parts??[]),{messageId:r.id,isLast:t&&i===e.assistants.length-1,isStreaming:n,suppressQuestionTool:!0,ToolRendererComponent:y,TextRendererComponent:v,toolRenderers:a})),[t,n,e.assistants]);return(0,w.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[e.user?(0,w.jsx)(c,{from:`user`,children:(0,w.jsx)(l,{children:(0,w.jsx)(f,{message:e.user,enableImagePreview:!1})})}):null,e.assistants.length>0?(0,w.jsx)(c,{from:`assistant`,children:(0,w.jsx)(l,{children:(0,w.jsx)(p,{variant:`ghost`,children:(0,w.jsxs)(u,{children:[t?(0,w.jsx)(g,{messages:e.assistants,artifacts:r,streaming:n}):null,(0,w.jsx)(`div`,{className:`flex flex-col gap-3`,children:o}),t&&i?(0,w.jsx)(d,{children:i.rlmChildren,tree:i.rlmTree}):null]})})})}):null]})}function D({child:e,parentSessionId:t,transcript:n,onRefresh:a,fullWidth:s=!1,status:c}){let l=(0,C.useMemo)(()=>n?.status===`loading`?[]:m(n?.messages??[]),[n]),u=c??T(e),d=(0,C.useMemo)(()=>n?.status===`loading`?[]:S(n?.messages??[],n?.presentation,u),[u,n]),f=(0,C.useMemo)(()=>d.flatMap(e=>e.artifacts),[d]),p=e.sessionName||e.label;return(0,w.jsxs)(`section`,{"aria-label":`Subagent thread: ${e.label}`,className:i(s?`flex min-h-0 min-w-0 flex-1 flex-col`:`space-y-2`,`min-w-0`),"data-testid":s?`subagent-conversation-surface`:void 0,children:[(0,w.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 rounded-md border border-border/60 bg-background px-2.5 py-2`,children:[(0,w.jsx)(o,{className:`mt-0.5 size-3.5 shrink-0 text-foreground/45`}),(0,w.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,w.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,w.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs font-medium text-foreground/80`,children:p}),(0,w.jsx)(`span`,{className:`shrink-0 text-[10px] capitalize text-foreground/45`,children:e.status})]}),e.model?(0,w.jsx)(`p`,{className:`truncate font-mono text-[10px] text-foreground/40`,children:e.model}):null,e.lastHeardFrom?(0,w.jsxs)(`p`,{className:`truncate text-[10px] text-foreground/40`,children:[`Heartbeat: `,new Date(e.lastHeardFrom).toLocaleTimeString()]}):null,e.answerPreview||e.recap?(0,w.jsx)(`p`,{className:`mt-1 line-clamp-3 whitespace-pre-wrap text-[11px] leading-4 text-foreground/55`,children:e.answerPreview??e.recap}):null]}),a?(0,w.jsx)(r,{"aria-label":`Refresh ${e.label} thread`,className:`shrink-0 text-foreground/40 hover:text-foreground/70`,onClick:a,size:`icon-sm`,title:`Refresh ${e.label} thread`,type:`button`,variant:`ghost`,children:(0,w.jsx)(x,{className:i(`size-3.5`,n?.status===`loading`&&`animate-spin`)})}):null]}),t?n?.status===`loading`?(0,w.jsx)(`div`,{className:i(`flex items-center justify-center rounded-md border border-dashed border-border/70 text-[11px] text-foreground/45`,s?`min-h-32 flex-1`:`min-h-32`),children:`Loading subagent thread…`}):n?.status===`error`&&l.length===0?(0,w.jsxs)(`div`,{role:`alert`,className:`flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2 text-[11px] leading-4 text-destructive`,children:[(0,w.jsx)(b,{className:`mt-0.5 size-3.5 shrink-0`}),(0,w.jsx)(`span`,{children:n.error?.message??`Unable to load this subagent thread.`})]}):l.length===0?(0,w.jsx)(`p`,{className:`rounded-md border border-dashed border-border/70 px-3 py-3 text-[11px] leading-4 text-foreground/45`,children:`This subagent thread has no messages yet.`}):(0,w.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[n?.error?(0,w.jsxs)(`div`,{role:`alert`,className:`mx-4 mt-2 flex items-start gap-2 rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2 text-[11px] leading-4 text-destructive sm:mx-6`,children:[(0,w.jsx)(b,{className:`mt-0.5 size-3.5 shrink-0`}),(0,w.jsx)(`span`,{children:n.error.message})]}):null,(0,w.jsx)(`div`,{className:i(`min-h-0 rounded-md border border-border/60 bg-background`,s?`flex min-h-0 flex-1 flex-col border-x-0 rounded-none border-b-0`:`h-96 max-h-[calc(100svh-18rem)]`),children:(0,w.jsx)(h,{busy:u===`streaming`,className:s?`min-h-0 flex-1`:void 0,followOutput:u===`streaming`,label:`Transcript for ${e.label}`,smooth:u===`streaming`,viewportClassName:s?`px-0`:void 0,contentClassName:i(`flex flex-col gap-4`,s?`mx-auto w-full max-w-3xl px-4 py-6 sm:px-6`:`px-2.5 py-3`),children:l.map((e,t)=>{let r=t===l.length-1;return(0,w.jsx)(E,{turn:e,isLast:r,isStreaming:r&&u===`streaming`,artifacts:r?f:[],presentation:r?n?.presentation:void 0},e.user?.id??`subagent-turn-${t}`)})})})]}):(0,w.jsx)(`p`,{className:`rounded-md border border-dashed border-border/70 px-3 py-3 text-[11px] leading-4 text-foreground/45`,children:`This subagent thread is unavailable until the parent session is active.`})]})}export{D as t};
|
|
@@ -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"./button-0At5xSyU.js";import{t as i}from"./utils-Eg7xtNmV.js";import{t as a}from"./bot-Bs7QWJ2q.js";import{t as o}from"./chevron-right-DrJxToLs.js";import{a as s,o as c}from"./generative-text-renderer-SS9c1kNX.js";import{t as l}from"./subagent-transcript-C7oRwEEP.js";var u=e(t(),1),d=n();function f({agents:e,loadSession:t,onOpenTab:n,parentSessionId:f,tree:p}){let m=(0,u.useMemo)(()=>s(e,p),[e,p]),[h,g]=(0,u.useState)(null),[_,v]=(0,u.useState)({}),y=(0,u.useRef)(new Map),b=m.find(e=>e.id===h)??m[0];(0,u.useEffect)(()=>{h&&m.some(e=>e.id===h)||g(m[0]?.id??null)},[m,h]);let x=(0,u.useCallback)(async(e,n=!1)=>{if(!f)return;let r=`${f}:${e.id}:${e.status}:${e.timestamp}:${e.activeSessionId??``}`,i=_[e.id];if(!n&&i?.requestKey===r)return;let a=(y.current.get(e.id)??0)+1;y.current.set(e.id,a),v(t=>({...t,[e.id]:{requestKey:r,status:`loading`,messages:[]}}));try{let n=await t(f,e.id);if(y.current.get(e.id)!==a)return;v(t=>({...t,[e.id]:{requestKey:r,status:`ready`,messages:n.messages,presentation:n.presentation}}))}catch(t){if(y.current.get(e.id)!==a)return;v(n=>({...n,[e.id]:{requestKey:r,status:`error`,messages:[],error:t instanceof Error?t:Error(String(t))}}))}},[t,f,_]);return(0,u.useEffect)(()=>{b&&x(b)},[x,b]),m.length===0?(0,d.jsx)(`section`,{"aria-label":`Subagents`,className:`flex min-h-36 items-center rounded-md border border-dashed border-border/70 px-4 text-center text-[12px] leading-5 text-foreground/45`,children:`Subagent threads will appear here when Prime delegates work.`}):(0,d.jsxs)(`section`,{"aria-label":`Subagents`,className:`space-y-2 pb-1`,children:[(0,d.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 rounded-sm bg-foreground/5 px-2 py-1.5`,children:[(0,d.jsx)(a,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,d.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:`Invoked subagents`}),(0,d.jsx)(`span`,{className:`shrink-0 text-[10px] text-foreground/40`,children:m.length})]}),(0,d.jsx)(`div`,{className:`space-y-0.5`,"data-testid":`subagent-thread-list`,children:m.map(e=>{let t=e.id===b?.id;return(0,d.jsxs)(r,{type:`button`,variant:`ghost`,size:`sm`,"aria-pressed":t,className:i(`flex w-full min-w-0 items-center gap-2 rounded-md px-2 py-1.5 text-left transition-colors hover:bg-foreground/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,t&&`bg-foreground/8`),style:{paddingLeft:`${8+Math.max(0,e.depth??0)*12}px`},onClick:()=>{g(e.id),n?.(e.id)},children:[(0,d.jsx)(`span`,{className:`shrink-0`,children:c(e.status)}),(0,d.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs text-foreground/80`,children:e.label}),(0,d.jsx)(o,{className:`size-3 shrink-0 text-foreground/30`}),(0,d.jsx)(`span`,{className:`shrink-0 text-[10px] capitalize text-foreground/45`,children:e.status})]},e.id)})}),b?(0,d.jsx)(l,{child:b,parentSessionId:f,transcript:_[b.id],onRefresh:()=>void x(b,!0)}):null]})}export{f as SubagentsPanelContent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-H-qlGkmT.js","assets/rolldown-runtime-hePW80VL.js","assets/preload-helper-Czpn1I53.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.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{d as r,f as i,l as a,p as o,u as s}from"./ease-vFBiNFNK.js";import{t as c}from"./utils-Eg7xtNmV.js";import{t as l}from"./createLucideIcon-DwxZHm0M.js";import{n as u}from"./useControlled-CoY1jSuL.js";import{t as d}from"./chevron-down-BEVGmnSb.js";import{n as f,t as p}from"./loader-circle-6JG5RwxH.js";import{
|
|
3
|
-
`).map(e=>{let t={content:e,offset:j};return j+=e.length+1,t}),N=n??{bash:`Bash`,diff:`Diff`,json:`JSON`,python:`Python`,text:`Text`,tsx:`TSX`,typescript:`TypeScript`}[t];(0,T.useEffect)(()=>()=>{C.current&&window.clearTimeout(C.current)},[]),(0,T.useLayoutEffect)(()=>{let e=S.current;if(!e||!O)return;let t=requestAnimationFrame(()=>{e.scrollHeight<=e.clientHeight||(typeof e.scrollTo==`function`?e.scrollTo({top:e.scrollHeight,behavior:x?`auto`:`smooth`}):e.scrollTop=e.scrollHeight)});return()=>cancelAnimationFrame(t)});let L=(0,T.useCallback)(async()=>{
|
|
4
|
-
`),b),q=(0,T.useCallback)(e=>{i===void 0&&B(e),f?.(e)},[f,i]);(0,T.useEffect)(()=>{M.current!==`streaming`&&n===`streaming`&&q(!0),M.current===`streaming`&&n!==`streaming`&&
|
|
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{d as r,f as i,l as a,p as o,u as s}from"./ease-vFBiNFNK.js";import{t as c}from"./utils-Eg7xtNmV.js";import{t as l}from"./createLucideIcon-DwxZHm0M.js";import{n as u}from"./useControlled-CoY1jSuL.js";import{t as d}from"./chevron-down-BEVGmnSb.js";import{n as f,t as p}from"./loader-circle-6JG5RwxH.js";import{c as m,l as h,n as g,o as _,s as v,t as y}from"./action-swap-roll-DX5o_33Q.js";import{t as b}from"./rotate-ccw-WNFNkKQD.js";import{t as x}from"./square-terminal-BYTN_I86.js";import{t as S}from"./preload-helper-Czpn1I53.js";var C=l(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),w=l(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),T=e(t(),1),E=n(),D=`github-light-high-contrast`,O=`github-dark-high-contrast`,k=null,A=new Map,j=()=>S(()=>import(`./dist-H-qlGkmT.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4]));function M(){return k||=j().then(({createHighlighter:e})=>e({themes:[D,O],langs:[`bash`,`diff`,`json`,`python`,`tsx`,`typescript`]})),k}function N(e,t){return`${t}\u0000${e}`}function P(e,t){let n=N(e,t),r=A.get(n),[i,a]=(0,T.useState)(r?{key:n,code:e,language:t,lines:r}:null);return(0,T.useEffect)(()=>{let r=A.get(n);if(r){a({key:n,code:e,language:t,lines:r});return}let i=!1;return M().then(r=>{if(i)return;let o=r.codeToTokensWithThemes(e,{lang:t,themes:{light:D,dark:O}}).map(e=>e.map(e=>({content:e.content,offset:e.offset,light:e.variants.light?.color,dark:e.variants.dark?.color})));A.set(n,o),a({key:n,code:e,language:t,lines:o})}),()=>{i=!0}},[e,n,t]),i?.key===n||i?.language===t&&e.startsWith(i.code)?i.lines:null}function F({code:e,tokens:t,className:n}){return(0,E.jsx)(`span`,{className:n,children:t?t.map(e=>(0,E.jsx)(`span`,{style:{"--agent-code-light":e.light??`currentColor`,"--agent-code-dark":e.dark??e.light??`currentColor`},className:`text-[var(--agent-code-light)] dark:text-[var(--agent-code-dark)]`,children:e.content},`${e.offset}-${e.content}`)):e})}var I=[];function L({code:e,language:t=`typescript`,languageLabel:n,filename:i,status:s=`complete`,showStatus:l=!0,showLineNumbers:d=!0,highlightLines:f=I,maxHeight:h=280,wrap:g=!1,copyable:_=!0,onCopy:y,className:b}){let x=o()??!1,S=(0,T.useRef)(null),C=(0,T.useRef)(void 0),[w,D]=(0,T.useState)(!1),O=s===`streaming`,k=P(e,t),A=(0,T.useMemo)(()=>new Set(f),[f]),j=0,M=e.split(`
|
|
3
|
+
`).map(e=>{let t={content:e,offset:j};return j+=e.length+1,t}),N=n??{bash:`Bash`,diff:`Diff`,json:`JSON`,python:`Python`,text:`Text`,tsx:`TSX`,typescript:`TypeScript`}[t];(0,T.useEffect)(()=>()=>{C.current&&window.clearTimeout(C.current)},[]),(0,T.useLayoutEffect)(()=>{let e=S.current;if(!e||!O)return;let t=requestAnimationFrame(()=>{e.scrollHeight<=e.clientHeight||(typeof e.scrollTo==`function`?e.scrollTo({top:e.scrollHeight,behavior:x?`auto`:`smooth`}):e.scrollTop=e.scrollHeight)});return()=>cancelAnimationFrame(t)});let L=(0,T.useCallback)(async()=>{y?await y():await navigator.clipboard?.writeText(e),D(!0),C.current&&window.clearTimeout(C.current),C.current=window.setTimeout(()=>D(!1),1600)},[e,y]);return(0,E.jsxs)(`div`,{"data-state":s,"aria-busy":O,className:c(`w-full overflow-hidden rounded-2xl bg-muted/80 text-sm`,b),children:[(0,E.jsxs)(`div`,{className:`flex h-10 items-center gap-2.5 px-3`,children:[(0,E.jsx)(v,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground/70`}),i?(0,E.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs text-foreground/80`,children:i}):null,(0,E.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground/55`,children:N}),l?(0,E.jsxs)(`span`,{className:c(`ml-auto inline-flex shrink-0 items-center gap-1 text-[10px] font-medium`,O?`text-blue-600 dark:text-blue-400`:`text-emerald-600 dark:text-emerald-400`),children:[O?(0,E.jsx)(p,{className:c(`size-3`,!x&&`animate-spin`)}):(0,E.jsx)(u,{className:`size-3`}),O?`Writing`:`Ready`]}):null,_||y?(0,E.jsx)(r.button,{type:`button`,"aria-label":w?`Copied`:`Copy code`,title:w?`Copied`:`Copy code`,onClick:L,whileTap:x?void 0:{scale:.9},transition:a,className:c(`grid size-7 shrink-0 place-items-center rounded-full text-muted-foreground outline-none transition-colors hover:bg-background/70 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,!l&&`ml-auto`),children:w?(0,E.jsx)(u,{className:`size-3.5`}):(0,E.jsx)(m,{className:`size-3.5`})}):null]}),(0,E.jsx)(`div`,{ref:S,role:O?`log`:void 0,"aria-live":O?`polite`:void 0,className:`overflow-auto border-t border-foreground/[0.06] py-2 [scrollbar-color:color-mix(in_oklab,var(--muted-foreground)_35%,transparent)_transparent] [scrollbar-width:thin]`,style:{maxHeight:h},children:(0,E.jsx)(`pre`,{className:`m-0 min-w-max font-mono text-xs leading-5 text-foreground/85`,children:(0,E.jsx)(`code`,{children:M.map((e,t)=>{let n=t+1;return(0,E.jsxs)(`span`,{className:c(`grid min-h-5`,d?`grid-cols-[2.75rem_minmax(0,1fr)]`:`grid-cols-1`,A.has(n)&&`bg-blue-500/[0.07]`),children:[d?(0,E.jsx)(`span`,{className:`select-none pr-3 text-right tabular-nums text-muted-foreground/35`,children:n}):null,(0,E.jsx)(F,{code:e.content,tokens:k?.[t],className:c(`pr-4`,d?`pl-1`:`pl-4`,g?`whitespace-pre-wrap break-words`:`whitespace-pre`)})]},e.offset)})})})})]})}function R({value:e,type:t}){return e?(0,E.jsxs)(`span`,{className:c(`font-mono text-xs tabular-nums`,t===`added`?`text-emerald-600 dark:text-emerald-400`:`text-rose-600 dark:text-rose-400`),children:[t===`added`?`+`:`−`,e]}):null}function z({file:e,lines:t,status:n=`streaming`,open:i,defaultOpen:l=!0,onOpenChange:f,collapseOnComplete:_=!0,maxHeight:y=220,language:b=`typescript`,copyText:x,onCopy:S,className:w}){let D=o()??!1,O=(0,T.useId)(),k=`${O}-trigger`,A=`${O}-content`,j=(0,T.useRef)(null),M=(0,T.useRef)(n),N=(0,T.useRef)(void 0),[I,L]=(0,T.useState)(!1),[z,B]=(0,T.useState)(l),V=i??z,H=n===`streaming`,U=t.filter(e=>e.type===`added`).length,W=t.filter(e=>e.type===`removed`).length,G=!!(x||S),K=P(t.map(e=>e.content).join(`
|
|
4
|
+
`),b),q=(0,T.useCallback)(e=>{i===void 0&&B(e),f?.(e)},[f,i]);(0,T.useEffect)(()=>{M.current!==`streaming`&&n===`streaming`&&q(!0),M.current===`streaming`&&n!==`streaming`&&_&&q(!1),M.current=n},[_,q,n]),(0,T.useEffect)(()=>()=>{N.current&&window.clearTimeout(N.current)},[]),(0,T.useLayoutEffect)(()=>{let e=j.current;if(!e||!V||!H)return;let t=requestAnimationFrame(()=>{e.scrollHeight<=e.clientHeight||(typeof e.scrollTo==`function`?e.scrollTo({top:e.scrollHeight,behavior:D?`auto`:`smooth`}):e.scrollTop=e.scrollHeight)});return()=>cancelAnimationFrame(t)});let J=(0,T.useCallback)(async()=>{S?await S():x&&await navigator.clipboard?.writeText(x),L(!0),N.current&&window.clearTimeout(N.current),N.current=window.setTimeout(()=>L(!1),1600)},[x,S]);return(0,E.jsxs)(`div`,{"data-state":n,"aria-busy":H,className:c(`w-full text-sm`,w),children:[(0,E.jsxs)(`button`,{id:k,type:`button`,"aria-expanded":V,"aria-controls":A,onClick:()=>q(!V),className:`group flex min-h-9 w-full items-center gap-2 rounded-md py-1 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,children:[(0,E.jsx)(v,{"aria-hidden":`true`,className:`size-4 shrink-0 text-muted-foreground`}),(0,E.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-foreground/80`,children:e}),(0,E.jsxs)(`span`,{className:`flex shrink-0 items-center gap-2`,children:[(0,E.jsx)(R,{value:U,type:`added`}),(0,E.jsx)(R,{value:W,type:`removed`})]}),(0,E.jsx)(`span`,{className:`grid size-4 shrink-0 place-items-center text-muted-foreground/60`,children:H?(0,E.jsx)(p,{"aria-label":`Applying changes`,className:c(`size-3.5`,!D&&`animate-spin`)}):n===`error`?(0,E.jsx)(h,{"aria-label":`Changes failed`,className:`size-3.5`}):n===`cancelled`?(0,E.jsx)(C,{"aria-label":`Changes cancelled`,className:`size-3.5`}):(0,E.jsx)(u,{"aria-label":`Changes applied`,className:`size-3.5`})}),(0,E.jsx)(r.span,{"aria-hidden":`true`,animate:{rotate:V?180:0},transition:D?{duration:0}:s,className:`shrink-0 text-muted-foreground/45 transition-colors group-hover:text-muted-foreground`,children:(0,E.jsx)(d,{className:`size-3.5`})})]}),(0,E.jsx)(g,{id:A,role:`region`,"aria-labelledby":k,open:V,children:(0,E.jsx)(`div`,{className:`pl-6 pt-1.5`,children:(0,E.jsxs)(`div`,{className:`overflow-hidden rounded-xl bg-muted/80`,children:[(0,E.jsx)(`div`,{ref:j,"data-slot":`file-diff-viewport`,"aria-live":`polite`,className:`scrollbar-hide overflow-auto`,style:{maxHeight:y},children:(0,E.jsxs)(`div`,{className:`font-mono text-xs leading-5`,children:[(0,E.jsx)(`span`,{className:`sr-only`,children:`File changes`}),t.map((e,t)=>{let n=e.type??`context`;return(0,E.jsxs)(`div`,{className:c(`grid grid-cols-[2.25rem_2.25rem_1rem_minmax(0,1fr)]`,n===`added`&&`bg-emerald-500/[0.07]`,n===`removed`&&`bg-rose-500/[0.07]`),children:[(0,E.jsx)(`span`,{className:`select-none pr-2 text-right tabular-nums text-muted-foreground/40`,children:e.oldLine}),(0,E.jsx)(`span`,{className:`select-none pr-2 text-right tabular-nums text-muted-foreground/40`,children:e.newLine}),(0,E.jsx)(`span`,{className:c(`select-none text-center text-muted-foreground/45`,n===`added`&&`text-emerald-600 dark:text-emerald-400`,n===`removed`&&`text-rose-600 dark:text-rose-400`),children:n===`added`?`+`:n===`removed`?`−`:``}),(0,E.jsx)(F,{code:e.content,tokens:K?.[t],className:`min-w-0 whitespace-pre px-1.5`})]},e.id)})]})}),G?(0,E.jsx)(`div`,{className:`flex justify-end px-2 pb-1.5 pt-1`,children:(0,E.jsx)(r.button,{type:`button`,"aria-label":I?`Copied`:`Copy diff`,title:I?`Copied`:`Copy diff`,onClick:J,whileTap:D?void 0:{scale:.9},transition:a,className:`grid size-7 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-background/70 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:I?(0,E.jsx)(u,{className:`size-3.5`}):(0,E.jsx)(m,{className:`size-3.5`})})}):null]})})})]})}function B(e){return e===`running`?`Running`:e===`success`?`Completed`:e===`error`?`Failed`:`Cancelled`}function V(e,t){return typeof e==`string`||typeof e==`number`?String(e):t}function H(e){return e===`running`?`text-blue-600 dark:text-blue-400`:e===`success`?`text-emerald-600 dark:text-emerald-400`:e===`error`?`text-rose-600 dark:text-rose-400`:`text-muted-foreground`}function U({kind:e}){return e===`terminal`?(0,E.jsx)(x,{className:`size-4`}):e===`request`?(0,E.jsx)(w,{className:`size-4`}):(0,E.jsx)(_,{className:`size-4`})}function W({status:e,reduce:t}){return e===`running`?(0,E.jsx)(p,{className:c(`size-3`,!t&&`animate-spin`)}):e===`success`?(0,E.jsx)(f,{className:`size-3`}):e===`error`?(0,E.jsx)(h,{className:`size-3`}):(0,E.jsx)(C,{className:`size-3`})}function G({label:e,onClick:t,children:n}){let r=o()??!1;return(0,E.jsx)(i.button,{type:`button`,"aria-label":e,title:e,onClick:t,whileTap:r?void 0:{scale:.9},transition:a,className:`grid size-7 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:n})}function K({children:e,language:t=`bash`,label:n,className:r}){return(0,E.jsxs)(`div`,{className:`space-y-1.5`,children:[n?(0,E.jsx)(`div`,{className:`px-0.5 text-[10px] font-medium uppercase tracking-[0.12em] text-muted-foreground/60`,children:n}):null,(0,E.jsx)(`pre`,{className:c(`m-0 whitespace-pre-wrap break-words font-mono text-xs leading-5 text-foreground/80`,r),children:(0,E.jsx)(`code`,{children:e})})]})}function q({tool:e,title:t,children:n,status:r=`running`,kind:a=`custom`,meta:l,icon:f,open:p,defaultOpen:h=!0,onOpenChange:_,collapseOnComplete:v=!0,maxHeight:x=220,copyText:S,onCopy:C,onRetry:w,className:D,contentClassName:O}){let k=o()??!1,A=(0,T.useId)(),j=`${A}-trigger`,M=`${A}-content`,N=(0,T.useRef)(null),P=(0,T.useRef)(r),F=(0,T.useRef)(void 0),[I,L]=(0,T.useState)(!1),[R,z]=(0,T.useState)(h),K=p??R,q=r===`running`,J=!!(S||C),Y=V(t,r),X=V(l,`${r}-meta`),Z=V(e,`${r}-tool`),Q=B(r),$=(0,T.useCallback)(e=>{p===void 0&&z(e),_?.(e)},[_,p]);(0,T.useEffect)(()=>{P.current!==`running`&&r===`running`&&$(!0),P.current===`running`&&r!==`running`&&v&&$(!1),P.current=r},[v,$,r]),(0,T.useEffect)(()=>()=>{F.current&&window.clearTimeout(F.current)},[]),(0,T.useLayoutEffect)(()=>{let e=N.current;if(!e||!K||!q)return;let t=requestAnimationFrame(()=>{typeof e.scrollTo==`function`?e.scrollTo({top:e.scrollHeight,behavior:k?`auto`:`smooth`}):e.scrollTop=e.scrollHeight});return()=>cancelAnimationFrame(t)});let ee=(0,T.useCallback)(async()=>{C?await C():S&&await navigator.clipboard?.writeText(S),L(!0),F.current&&window.clearTimeout(F.current),F.current=window.setTimeout(()=>L(!1),1600)},[S,C]);return(0,E.jsxs)(`div`,{"data-state":r,"aria-busy":q,className:c(`w-full text-sm`,D),children:[(0,E.jsxs)(`button`,{id:j,type:`button`,"aria-expanded":K,"aria-controls":M,onClick:()=>$(!K),className:`group flex min-h-9 w-full items-center gap-2 rounded-md py-1 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,children:[(0,E.jsx)(`span`,{"aria-hidden":`true`,className:`grid size-4 shrink-0 place-items-center text-muted-foreground`,children:f??(0,E.jsx)(U,{kind:a})}),(0,E.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-2`,children:[(0,E.jsx)(`span`,{className:`min-w-0 truncate font-medium text-foreground/90`,children:(0,E.jsx)(y,{value:Y,children:t})}),l?(0,E.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground/60`,children:(0,E.jsx)(y,{value:X,children:l})}):null,(0,E.jsx)(`span`,{className:`min-w-0 truncate font-mono text-[11px] text-muted-foreground/55`,children:(0,E.jsx)(y,{value:Z,children:e})})]}),(0,E.jsxs)(`span`,{className:c(`inline-flex shrink-0 items-center gap-1 text-[11px] font-medium`,H(r)),children:[(0,E.jsx)(W,{status:r,reduce:k}),(0,E.jsx)(y,{value:r,children:Q})]}),(0,E.jsx)(i.span,{"aria-hidden":`true`,animate:{rotate:K?180:0},transition:k?{duration:0}:s,className:`shrink-0 text-muted-foreground/50 transition-colors group-hover:text-muted-foreground`,children:(0,E.jsx)(d,{className:`size-3.5`})})]}),(0,E.jsx)(g,{id:M,role:`region`,"aria-labelledby":j,open:K,children:(0,E.jsx)(`div`,{className:`pl-6 pt-1.5`,children:(0,E.jsxs)(`div`,{className:`overflow-hidden rounded-xl bg-muted/80`,children:[(0,E.jsx)(`div`,{ref:N,role:`log`,"aria-live":`polite`,className:`scrollbar-hide overflow-y-auto`,style:{maxHeight:x},children:(0,E.jsx)(`div`,{className:c(`p-3`,O),children:n})}),J||w?(0,E.jsxs)(`div`,{className:`flex items-center gap-0.5 px-2 pb-1.5`,children:[J?(0,E.jsx)(G,{label:I?`Copied`:`Copy result`,onClick:ee,children:I?(0,E.jsx)(u,{className:`size-3.5`}):(0,E.jsx)(m,{className:`size-3.5`})}):null,w?(0,E.jsx)(G,{label:`Run again`,onClick:w,children:(0,E.jsx)(b,{className:`size-3.5`})}):null,(0,E.jsx)(`span`,{className:`ml-auto text-[11px] text-muted-foreground/55`,children:(0,E.jsx)(y,{value:r,children:Q})})]}):null]})})})]})}export{L as i,K as n,z as r,q as t};
|
|
@@ -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-DZc7dwm7.js
|
|
4
4
|
var tsrStartManifest = () => ({ routes: {
|
|
5
5
|
__root__: {
|
|
6
6
|
filePath: "/home/circleci/prime-agent/web/app/src/routes/__root.tsx",
|
|
@@ -15,7 +15,7 @@ var tsrStartManifest = () => ({ routes: {
|
|
|
15
15
|
"/api/workspace/tree"
|
|
16
16
|
],
|
|
17
17
|
preloads: [
|
|
18
|
-
"/assets/index-
|
|
18
|
+
"/assets/index-C9FloFgj.js",
|
|
19
19
|
"/assets/rolldown-runtime-hePW80VL.js",
|
|
20
20
|
"/assets/bundle-mjs-DKHVkVWu.js",
|
|
21
21
|
"/assets/react-dom-Bwxum3ti.js",
|
|
@@ -31,14 +31,14 @@ var tsrStartManifest = () => ({ routes: {
|
|
|
31
31
|
scripts: [{ attrs: {
|
|
32
32
|
type: "module",
|
|
33
33
|
async: true,
|
|
34
|
-
src: "/assets/index-
|
|
34
|
+
src: "/assets/index-C9FloFgj.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-DSTyx_J0.js",
|
|
42
42
|
"/assets/ease-vFBiNFNK.js",
|
|
43
43
|
"/assets/x-BgciQ7_C.js",
|
|
44
44
|
"/assets/dialog-DZ44tBtH.js",
|
|
@@ -47,18 +47,18 @@ var tsrStartManifest = () => ({ routes: {
|
|
|
47
47
|
"/assets/provider-label-jKm8v18u.js",
|
|
48
48
|
"/assets/utils-Eg7xtNmV.js",
|
|
49
49
|
"/assets/createLucideIcon-DwxZHm0M.js",
|
|
50
|
-
"/assets/command-
|
|
51
|
-
"/assets/range-
|
|
50
|
+
"/assets/command-CQzrtjyj.js",
|
|
51
|
+
"/assets/range-65lubOFp.js",
|
|
52
52
|
"/assets/resource-helpers-ULlyU8qK.js",
|
|
53
53
|
"/assets/bot-Bs7QWJ2q.js",
|
|
54
54
|
"/assets/useControlled-CoY1jSuL.js",
|
|
55
55
|
"/assets/chevron-down-BEVGmnSb.js",
|
|
56
56
|
"/assets/chevron-right-DrJxToLs.js",
|
|
57
|
-
"/assets/
|
|
57
|
+
"/assets/generative-text-renderer-SS9c1kNX.js",
|
|
58
58
|
"/assets/safe-external-url-Bl_78dpZ.js",
|
|
59
59
|
"/assets/file-text-BhQ0ZnoU.js",
|
|
60
60
|
"/assets/loader-circle-6JG5RwxH.js",
|
|
61
|
-
"/assets/
|
|
61
|
+
"/assets/action-swap-roll-DX5o_33Q.js",
|
|
62
62
|
"/assets/sparkles-C5H3Jtgf.js",
|
|
63
63
|
"/assets/horizontal-resize-C1TpRLNC.js",
|
|
64
64
|
"/assets/folder-BC5p7qK7.js",
|
|
@@ -68,12 +68,12 @@ var tsrStartManifest = () => ({ routes: {
|
|
|
68
68
|
"/assets/rotate-ccw-WNFNkKQD.js",
|
|
69
69
|
"/assets/search-eWVnAJsb.js",
|
|
70
70
|
"/assets/square-terminal-BYTN_I86.js",
|
|
71
|
-
"/assets/chat-CsepBQwy.js",
|
|
72
|
-
"/assets/input-CqC82Agz.js",
|
|
73
|
-
"/assets/artifacts-utils-N_kUFbz2.js",
|
|
74
71
|
"/assets/cn-C8c0S2mI.js",
|
|
75
|
-
"/assets/
|
|
76
|
-
"/assets/
|
|
72
|
+
"/assets/workspace-path-nav-C0AQNZyy.js",
|
|
73
|
+
"/assets/prime-agent-artifacts-C-g1VPiW.js",
|
|
74
|
+
"/assets/chat-W-yOMyG_.js",
|
|
75
|
+
"/assets/input-CqC82Agz.js",
|
|
76
|
+
"/assets/artifacts-utils-N_kUFbz2.js"
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
} });
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-AQ66E5OW.js";
|
|
4
4
|
import {
|
|
5
5
|
primeAgentArtifactDiff
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4UBOIY2S.js";
|
|
7
7
|
import {
|
|
8
8
|
CodeBlock,
|
|
9
9
|
FileDiff,
|
|
10
10
|
ToolResult,
|
|
11
11
|
ToolResultOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UKINNXJY.js";
|
|
13
13
|
import {
|
|
14
14
|
Collapsible,
|
|
15
15
|
CollapsibleContent,
|
|
16
16
|
CollapsibleTrigger
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6D524OCJ.js";
|
|
18
18
|
import "./chunk-QJBEWT4E.js";
|
|
19
19
|
import "./chunk-FAGDMGLK.js";
|
|
20
20
|
import "./chunk-6RJYXDSD.js";
|
|
@@ -25,27 +25,27 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
GenerativeTextRenderer,
|
|
27
27
|
OpenUIHtmlArtifactView
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WZNZQNI4.js";
|
|
29
29
|
import {
|
|
30
30
|
UiErrorBoundary
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-WN77JNYY.js";
|
|
32
|
+
import "./chunk-KOIPYBJF.js";
|
|
33
|
+
import "./chunk-XFVL5ITL.js";
|
|
34
34
|
import "./chunk-NFRJDPB3.js";
|
|
35
35
|
import "./chunk-LESNF5O4.js";
|
|
36
36
|
import "./chunk-52SJQXO4.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-AECEK3K7.js";
|
|
38
|
+
import "./chunk-TO3YPLNZ.js";
|
|
39
39
|
import "./chunk-RJOANOT4.js";
|
|
40
40
|
import "./chunk-QLY3L4A2.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-AWFOBHH4.js";
|
|
42
42
|
import "./chunk-NLIUTTKL.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-RX62LUDV.js";
|
|
44
44
|
import {
|
|
45
45
|
Button
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-5RQ6QAZX.js";
|
|
47
|
+
import "./chunk-LSIHVSUT.js";
|
|
48
|
+
import "./chunk-BLVCDQ7E.js";
|
|
49
49
|
import "./chunk-ST5I2PLN.js";
|
|
50
50
|
import "./chunk-MDYA4NXK.js";
|
|
51
51
|
import {
|
|
@@ -63,7 +63,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
63
63
|
import "./chunk-L547YHC4.js";
|
|
64
64
|
import "./chunk-MLKGABMK.js";
|
|
65
65
|
|
|
66
|
-
// web/app/dist/server/assets/artifacts-panel-
|
|
66
|
+
// web/app/dist/server/assets/artifacts-panel-Bt7YUzm4.js
|
|
67
67
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
68
68
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
69
69
|
var LayoutTemplate = createLucideIcon("layout-template", [
|
|
@@ -6,10 +6,9 @@ import {
|
|
|
6
6
|
CommandItem,
|
|
7
7
|
CommandList,
|
|
8
8
|
CommandSeparator,
|
|
9
|
-
|
|
10
|
-
RotateCcwClock,
|
|
9
|
+
RIGHT_PANEL_LAUNCHER_DEFINITIONS,
|
|
11
10
|
Square
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y4MHIA7B.js";
|
|
13
12
|
import "./chunk-OLG5DQ7V.js";
|
|
14
13
|
import {
|
|
15
14
|
Keyboard,
|
|
@@ -19,28 +18,44 @@ import {
|
|
|
19
18
|
} from "./chunk-EY2O73OV.js";
|
|
20
19
|
import {
|
|
21
20
|
Plus
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XLCTCC4W.js";
|
|
23
22
|
import "./chunk-74QOI457.js";
|
|
24
23
|
import "./chunk-2H6A6Z7F.js";
|
|
25
24
|
import "./chunk-52SJQXO4.js";
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AWFOBHH4.js";
|
|
27
26
|
import "./chunk-NLIUTTKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-RX62LUDV.js";
|
|
28
|
+
import "./chunk-5RQ6QAZX.js";
|
|
29
|
+
import "./chunk-LSIHVSUT.js";
|
|
30
|
+
import "./chunk-BLVCDQ7E.js";
|
|
32
31
|
import "./chunk-EAJTWMK5.js";
|
|
33
32
|
import "./chunk-ZGFQ7HIX.js";
|
|
34
33
|
import "./chunk-G5BCQQ5N.js";
|
|
35
|
-
import
|
|
34
|
+
import {
|
|
35
|
+
createLucideIcon
|
|
36
|
+
} from "./chunk-E26EAQIM.js";
|
|
36
37
|
import "./chunk-DJMHPJBP.js";
|
|
37
38
|
import "./chunk-JDCCC7A7.js";
|
|
38
39
|
import "./chunk-L547YHC4.js";
|
|
39
40
|
import "./chunk-MLKGABMK.js";
|
|
40
41
|
|
|
41
|
-
// web/app/dist/server/assets/chat-command-palette-
|
|
42
|
+
// web/app/dist/server/assets/chat-command-palette-Co1L3rUY.js
|
|
42
43
|
import { useState } from "react";
|
|
43
44
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
45
|
+
var RotateCcwClock = createLucideIcon("rotate-ccw-clock", [
|
|
46
|
+
["path", {
|
|
47
|
+
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
48
|
+
key: "1357e3"
|
|
49
|
+
}],
|
|
50
|
+
["path", {
|
|
51
|
+
d: "M3 3v5h5",
|
|
52
|
+
key: "1xhq8a"
|
|
53
|
+
}],
|
|
54
|
+
["path", {
|
|
55
|
+
d: "M12 7v5l4 2",
|
|
56
|
+
key: "1fdv2h"
|
|
57
|
+
}]
|
|
58
|
+
]);
|
|
44
59
|
function ChatCommandPalette({ open, onOpenChange, onNewSession, onStop, onResumeSession, onSetRightPanel, onThemeChange, sessions, isStreaming, themePreference }) {
|
|
45
60
|
const [search, setSearch] = useState("");
|
|
46
61
|
const [prevOpen, setPrevOpen] = useState(open);
|
|
@@ -84,7 +99,7 @@ function ChatCommandPalette({ open, onOpenChange, onNewSession, onStop, onResume
|
|
|
84
99
|
/* @__PURE__ */ jsx(CommandSeparator, {}),
|
|
85
100
|
/* @__PURE__ */ jsx(CommandGroup, {
|
|
86
101
|
heading: "Panels",
|
|
87
|
-
children:
|
|
102
|
+
children: RIGHT_PANEL_LAUNCHER_DEFINITIONS.map((definition) => {
|
|
88
103
|
const Icon = definition.icon;
|
|
89
104
|
return /* @__PURE__ */ jsxs(CommandItem, {
|
|
90
105
|
onSelect: () => handleSelect(() => onSetRightPanel(definition.id)),
|
|
@@ -146,3 +161,9 @@ function ChatCommandPalette({ open, onOpenChange, onNewSession, onStop, onResume
|
|
|
146
161
|
export {
|
|
147
162
|
ChatCommandPalette
|
|
148
163
|
};
|
|
164
|
+
/**
|
|
165
|
+
* @license lucide-react v1.33.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/
|