@qredence/fleet 0.5.0 → 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 +21 -0
- package/README.md +8 -1
- 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/artifacts-utils-N_kUFbz2.js +1 -0
- package/dist/web/client/assets/bot-Bs7QWJ2q.js +1 -0
- package/dist/web/client/assets/{chat-C64Sv6V-.js → chat-W-yOMyG_.js} +5 -5
- 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/ease-vFBiNFNK.js +9 -0
- package/dist/web/client/assets/{fleet-pi-tool-renderer-ZKiX6Ob_.js → fleet-pi-tool-renderer-B0Y7ou0U.js} +28 -30
- 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/horizontal-resize-C1TpRLNC.js +1 -0
- package/dist/web/client/assets/index-C9FloFgj.js +12 -0
- package/dist/web/client/assets/{input-Clyn18XG.js → input-CqC82Agz.js} +1 -1
- package/dist/web/client/assets/{input-group-MxDAWX3j.js → input-group-H0TG-mkU.js} +1 -1
- package/dist/web/client/assets/ipython-tool-BrMePqD-.js +3 -0
- package/dist/web/client/assets/markdown-DG7pUdsX.js +2 -0
- package/dist/web/client/assets/{markdown-code-pIaEVDUU.js → markdown-code-BgMzpy7O.js} +1 -1
- package/dist/web/client/assets/notify-Duj26eeZ.js +1 -0
- package/dist/web/client/assets/{openui-renderer-NLUpAS3h.js → openui-renderer-CCfQqUfE.js} +5 -5
- package/dist/web/client/assets/openui-utils-DawGoQNp.js +1 -0
- package/dist/web/client/assets/prime-agent-artifacts-C-g1VPiW.js +5 -0
- package/dist/web/client/assets/{provider-catalog-Gx9qaHBM.js → provider-catalog-BZhZuKSz.js} +1 -1
- package/dist/web/client/assets/provider-label-jKm8v18u.js +1 -0
- 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/resource-helpers-ULlyU8qK.js +2 -0
- package/dist/web/client/assets/resources-panel-DSU7VGX2.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/settings-dialog-CkfpTKfM.js +1 -0
- package/dist/web/client/assets/skeleton-loaders-fStjEeRP.js +1 -0
- package/dist/web/client/assets/square-terminal-BYTN_I86.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/{switch-ojzdMno9.js → switch-BFEBpUEU.js} +1 -1
- package/dist/web/client/assets/{tool-result-QvhjpNGX.js → tool-result-C2NvnN32.js} +3 -3
- package/dist/web/client/assets/ui-preferences-DUEFuJFj.js +1 -0
- package/dist/web/client/assets/workspace-panel-CjdXlEvd.js +1 -0
- package/dist/web/client/assets/workspace-path-nav-C0AQNZyy.js +1 -0
- package/dist/web/server/{_tanstack-start-manifest_v-uZddQetG-MNZGQOSA.js → _tanstack-start-manifest_v-DZc7dwm7-6ZQLGXB7.js} +23 -16
- package/dist/web/server/{artifacts-panel-knpQvJ-q-WJLZ76QB.js → artifacts-panel-Bt7YUzm4-NCBMXJ25.js} +39 -72
- package/dist/web/server/{chat-command-palette-CPv5GmGJ-22J32S6P.js → chat-command-palette-Co1L3rUY-RQLNME4T.js} +43 -20
- package/dist/web/server/{chunk-5277VI3D.js → chunk-2V6B62OF.js} +213 -275
- package/dist/web/server/{chunk-W7LNJCRJ.js → chunk-3HUI75QM.js} +75 -67
- package/dist/web/server/{chunk-I3FDTJFO.js → chunk-46VQY7SG.js} +6 -87
- package/dist/web/server/{chunk-PRT4QYOB.js → chunk-4UBOIY2S.js} +2 -35
- package/dist/web/server/{chunk-WTYNN6EV.js → chunk-54II5QXQ.js} +23 -1
- package/dist/web/server/chunk-56HSKUBD.js +1805 -0
- package/dist/web/server/{chunk-RPROZ2JC.js → chunk-5RQ6QAZX.js} +133 -133
- package/dist/web/server/{chunk-APN3LVRT.js → chunk-6D524OCJ.js} +201 -204
- package/dist/web/server/chunk-6GMKRR3C.js +161 -0
- package/dist/web/server/chunk-74QOI457.js +45 -0
- package/dist/web/server/{chunk-UBUXV2TW.js → chunk-AECEK3K7.js} +8 -8
- package/dist/web/server/chunk-AQ66E5OW.js +33 -0
- package/dist/web/server/{chunk-JD6EWZCU.js → chunk-AWFOBHH4.js} +50 -50
- package/dist/web/server/{chunk-MK3P3OBZ.js → chunk-BEMDNODD.js} +5 -5
- package/dist/web/server/{chunk-X2TUFLTP.js → chunk-BLVCDQ7E.js} +438 -438
- package/dist/web/server/chunk-FZRBAPUM.js +48 -0
- package/dist/web/server/chunk-G5BCQQ5N.js +34 -0
- 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-KVHPE5XH.js → chunk-MDYA4NXK.js} +22 -8
- package/dist/web/server/chunk-NFRJDPB3.js +52 -0
- package/dist/web/server/chunk-P66QQWUM.js +67 -0
- package/dist/web/server/{chunk-4KFMONRT.js → chunk-PDRD2X5G.js} +9 -9
- package/dist/web/server/{chunk-XXNFEXDU.js → chunk-QJBEWT4E.js} +2 -70
- package/dist/web/server/{chunk-AQWTGP35.js → chunk-RX62LUDV.js} +8 -8
- 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-C7EKOPZU.js → chunk-TO3YPLNZ.js} +89 -89
- package/dist/web/server/{chunk-IFV5M33X.js → chunk-UKINNXJY.js} +12 -26
- package/dist/web/server/chunk-VGDP4YDU.js +401 -0
- package/dist/web/server/{fleet-pi-tool-renderer-5vYFNeZS-IHKMLT7W.js → chunk-VRLTWOVJ.js} +46 -393
- package/dist/web/server/{chunk-KDSISV4P.js → chunk-WN77JNYY.js} +2 -50
- package/dist/web/server/{chunk-OADQILSQ.js → chunk-WZNZQNI4.js} +267 -3667
- package/dist/web/server/{chunk-KAWYGHDN.js → chunk-XFVL5ITL.js} +2354 -2314
- package/dist/web/server/{chunk-ZX3XOSYO.js → chunk-XLCTCC4W.js} +3 -3
- package/dist/web/server/{chunk-TTQ75CXC.js → chunk-Y4MHIA7B.js} +97 -40
- package/dist/web/server/fleet-pi-tool-renderer-CE45vM6T-2UQN6RJM.js +37 -0
- package/dist/web/server/{fork-picker-dialog-BZzfxdQd-C6SPHFAW.js → fork-picker-dialog-DCzuGelH-TN2Q5OXI.js} +5 -5
- package/dist/web/server/{markdown-Ct_q4D-z-VFWZRBTY.js → markdown-Boni3lHk-AZGKDNAR.js} +1 -1
- package/dist/web/server/{markdown-code-C_ih1bX1-5CIWT3CH.js → markdown-code-BrWukbg3-D2GN4Y77.js} +2 -2
- package/dist/web/server/{openui-renderer-BT5jL0Yf-XYLLN5U6.js → openui-renderer-c36_GYes-HX46N4M5.js} +14 -13
- package/dist/web/server/repl-panel-D9E8nkQy-L45ZNG2V.js +118 -0
- package/dist/web/server/{resources-panel-DNCVHTIg-PJYMXVGE.js → resources-panel-CwKh4U9f-D3VDEMDW.js} +6 -6
- package/dist/web/server/{router-DDxOMz3K-HRBXILHM.js → router-_ZpegqiQ-QIE44PIB.js} +1811 -1334
- package/dist/web/server/{routes-BX4Tv-6R-FHIZYUWW.js → routes-Ct81-8Tq-LHRMOS7R.js} +3958 -4534
- package/dist/web/server/server.js +3 -3
- package/dist/web/server/{session-insights-panel-gYkkAE8H-W4O74Z7H.js → session-insights-panel-BHZyKDTo-LRMAMA3O.js} +5 -3
- package/dist/web/server/{settings-dialog-BTBFLQ1P-ZENQ4KWK.js → settings-dialog-B4uUS6f--AZ4I4ZOT.js} +179 -193
- 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/{chunk-5SZXUN3Y.js → workspace-panel-CHPoiXEo-YB4WS3MK.js} +29 -16
- package/package.json +15 -7
- package/dist/web/client/assets/artifacts-panel-8TyrNBM_.js +0 -1
- package/dist/web/client/assets/chat-command-palette-HpsmKfLO.js +0 -1
- package/dist/web/client/assets/collapsible-WCSnxhr2.js +0 -1
- package/dist/web/client/assets/command-DgfiCKcY.js +0 -2
- package/dist/web/client/assets/globals-BmxtUHFx.css +0 -2
- package/dist/web/client/assets/horizontal-resize-B76jjn5v.js +0 -1
- package/dist/web/client/assets/index-0pBr_bKy.js +0 -12
- package/dist/web/client/assets/markdown-BXWmNJo7.js +0 -2
- package/dist/web/client/assets/prime-agent-artifacts-k9JiTDZM.js +0 -5
- package/dist/web/client/assets/provider-brand-icon-VCebsuTD.js +0 -1
- package/dist/web/client/assets/range-KAaLzImH.js +0 -2
- package/dist/web/client/assets/resources-panel-BWuKeyrb.js +0 -1
- package/dist/web/client/assets/routes-BPRw0UzV.js +0 -20
- package/dist/web/client/assets/session-insights-panel-CPymkzZT.js +0 -1
- package/dist/web/client/assets/settings-dialog-6p8mjg8t.js +0 -1
- package/dist/web/client/assets/shared-DAI9OAw0.js +0 -2
- package/dist/web/client/assets/skeleton-loaders-qxIkJKCA.js +0 -1
- package/dist/web/client/assets/workspace-panel-C67-fqw4.js +0 -1
- package/dist/web/client/assets/workspace-path-nav-BrQHo6es.js +0 -9
- package/dist/web/server/chunk-KJ4UUAEU.js +0 -83
- package/dist/web/server/chunk-NGI44XRR.js +0 -334
- package/dist/web/server/workspace-panel-BNAXF57q-EQCBPEG4.js +0 -28
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-code-pIaEVDUU.js","assets/jsx-runtime-NZYk81nU.js","assets/rolldown-runtime-hePW80VL.js","assets/chunk-BO2N2NFS-BnzHCiyQ.js","assets/bundle-mjs-DKHVkVWu.js","assets/react-dom-Bwxum3ti.js","assets/preload-helper-Czpn1I53.js","assets/lib-ChrQ49PO.js","assets/dist-H-qlGkmT.js","assets/character-entities-legacy-Wut6vMuj.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{i as n}from"./bundle-mjs-DKHVkVWu.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{t as i}from"./utils-Eg7xtNmV.js";import{t as a}from"./preload-helper-Czpn1I53.js";import{r as o}from"./chunk-BO2N2NFS-BnzHCiyQ.js";import"./cn-C8c0S2mI.js";var s=e({Markdown:()=>v,MarkdownFrame:()=>g,fixNumberedListBreaks:()=>d,markdownComponents:()=>h,normalizeCodeFenceLanguages:()=>p}),c=t(n(),1),l=r(),u=(0,c.lazy)(()=>a(async()=>{let{HighlightedMarkdown:e}=await import(`./markdown-code-pIaEVDUU.js`);return{HighlightedMarkdown:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(({HighlightedMarkdown:e})=>({default:e})));function d(e){return e.replace(/^(\d+)\.\s*\n+\s*\n*/gm,`$1. `)}var f=new Set([`bash`,`diff`,`html`,`js`,`json`,`jsx`,`md`,`markdown`,`sh`,`shell`,`text`,`ts`,`tsx`,`yml`,`yaml`]);function p(e){return e.replace(/```([^\n]*)/g,(e,t)=>{let n=String(t||``).trim().toLowerCase();if(!n)return"```";let r=n.split(/\s+/)[0];return f.has(r)?`\`\`\`${r}`:"```text"})}var m=/^(https?:|mailto:)/i,h={h1:({children:e,...t})=>(0,l.jsx)(`h1`,{className:`an-md-h1 mt-3 mb-1.5 text-base font-semibold`,...t,children:e}),h2:({children:e,...t})=>(0,l.jsx)(`h2`,{className:`an-md-h2 mt-3 mb-1.5 text-base font-semibold`,...t,children:e}),h3:({children:e,...t})=>(0,l.jsx)(`h3`,{className:`an-md-h3 mt-2 mb-1 text-sm font-semibold`,...t,children:e}),h4:({children:e,...t})=>(0,l.jsx)(`h4`,{className:`an-md-h4 mt-2 mb-1 text-sm font-medium`,...t,children:e}),p:({children:e,...t})=>(0,l.jsx)(`p`,{className:`an-md-p text-sm leading-relaxed text-an-foreground/80`,...t,children:e}),ul:({children:e,...t})=>(0,l.jsx)(`ul`,{className:`an-md-ul mb-2 flex list-outside list-disc flex-col gap-0.5 pl-4 text-sm text-an-foreground/80`,...t,children:e}),ol:({children:e,...t})=>(0,l.jsx)(`ol`,{className:`an-md-ol mb-2 flex list-outside list-decimal flex-col gap-0.5 pl-5 text-sm text-an-foreground/80`,...t,children:e}),li:({children:e,...t})=>(0,l.jsx)(`li`,{className:`an-md-li pl-0.5 text-sm text-an-foreground/80`,...t,children:e}),strong:({children:e,...t})=>(0,l.jsx)(`strong`,{className:`font-medium text-an-foreground`,...t,children:e}),a:({href:e,children:t,...n})=>{if(typeof e!=`string`||!m.test(e))return(0,l.jsx)(`span`,{children:t});let r=e.startsWith(`http`);return(0,l.jsx)(`a`,{...n,href:e,target:r?`_blank`:void 0,rel:r?`noopener noreferrer`:void 0,className:`an-md-link text-an-primary-color underline-offset-2 hover:underline`,children:t})},blockquote:({children:e,...t})=>(0,l.jsx)(`blockquote`,{className:`an-md-blockquote mb-2 border-l-2 border-an-border-color pl-3 text-sm text-an-foreground/70 italic`,...t,children:e}),hr:({...e})=>(0,l.jsx)(`hr`,{className:`an-md-hr my-4 border-an-border-color`,...e}),table:({children:e,...t})=>(0,l.jsx)(`div`,{className:`my-3 overflow-x-auto rounded-an-tool-border-radius border border-an-border-color`,children:(0,l.jsx)(`table`,{className:`an-md-table w-full text-sm [&>thead]:bg-an-tool-background [&>thead>tr>th]:bg-an-tool-background`,...t,children:e})}),th:({children:e,...t})=>(0,l.jsx)(`th`,{className:`bg-an-background-secondary px-3 py-2 text-left font-medium`,...t,children:e}),td:({children:e,...t})=>(0,l.jsx)(`td`,{className:`border-t border-an-border-color px-3 py-2 text-an-foreground/80`,...t,children:e})};function g({children:e,className:t}){return(0,l.jsx)(`div`,{className:i(`an-markdown`,`overflow-hidden wrap-break-word`,`[&_li>p]:mb-0 [&_li>p]:inline`,t),children:e})}function _({content:e,className:t,codeControls:n}){let r=p(d(e));return(0,l.jsx)(g,{className:t,children:(0,l.jsx)(o,{components:h,controls:{code:n},children:r})})}function v(e){return e.content.includes("```")?(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(_,{...e}),children:(0,l.jsx)(u,{...e})}):(0,l.jsx)(_,{...e})}export{s as a,h as i,g as n,p as o,d as r,v as t};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{G as e}from"./chat-C64Sv6V-.js";var t=`artifacts`;function n(e){return t}var r=/^root\s*=\s*([A-Za-z][A-Za-z0-9]*)/,i=/"((?:\\.|[^"\\]){1,80})"/;function a(e){return i.exec(e)?.[1]??r.exec(e)?.[1]??`Interface`}function o(t){let n=[];for(let r of t)if(r.role===`assistant`){for(let t of r.parts)if(t.type===`text`&&typeof t.text==`string`)for(let i of e(t.text))i.type===`openui`&&n.push({blockId:`${r.id}:${i.id}`,content:i.content,component:a(i.content),ordinal:n.length+1})}return n}function s(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return`${e.replace(/[^a-zA-Z0-9:_-]+/g,`-`).slice(0,96)}-${(t>>>0).toString(36)}`}function c(e){if(typeof e.createdAt==`number`)return e.createdAt;if(e.createdAt instanceof Date)return e.createdAt.getTime();if(typeof e.createdAt==`string`){let t=Date.parse(e.createdAt);if(Number.isFinite(t))return t}return 0}function l(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function u(e,...t){for(let n of t)if(typeof e?.[n]==`string`)return e[n]}function d(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.flatMap(e=>{let t=l(e);return typeof t?.text==`string`?[t.text]:[]}).join(``)||void 0}function f(e,t,n,r){return n.split(`
|
|
2
|
-
`).map((n,i)=>({id:`${e}-${t}-${r}-${i}`,type:r,content:n}))}function p(e){let t=l(e.input),n=l(e.output);return u(t,`path`,`file_path`,`filePath`)??u(n,`path`,`file_path`,`filePath`)??e.title}function m(e){let t=l(e.input),n=l(e.output),r=l(n?.details);return u(n,`diff`,`patch`)??u(r,`diff`,`patch`)??u(t,`diff`,`patch`)}function h(e){let t=l(e.input),n=l(e.output);return(Array.isArray(t?.edits)?t.edits:Array.isArray(n?.edits)?n.edits:[]).flatMap((t,n)=>{let r=l(t);if(!r)return[];let i=u(r,`oldText`,`old_string`,`before`),a=u(r,`newText`,`new_string`,`after`,`content`);return[...i===void 0?[]:f(e.id,n,i,`removed`),...a===void 0?[]:f(e.id,n,a,`added`)]})}function g(e){let t=m(e);if(t?.trim()){let n=t.split(`
|
|
3
|
-
`).map((t,n)=>({id:`${e.id}-${n}`,type:t.startsWith(`+`)&&!t.startsWith(`+++`)?`added`:t.startsWith(`-`)&&!t.startsWith(`---`)?`removed`:`context`,content:t}));return{file:p(e),lines:n,copyText:t}}let n=h(e);if(n.length>0)return{file:p(e),lines:n,copyText:n.map(e=>`${e.type===`added`?`+`:e.type===`removed`?`-`:` `}${e.content}`).join(`
|
|
4
|
-
`)};let r=l(e.input),i=l(e.output);if(!(e.title.toLowerCase().includes(`write`)||r?.content!==void 0))return;let a=d(r?.content)??d(i?.content);if(a===void 0)return;let o=f(e.id,0,a,`added`);return{file:p(e),lines:o,copyText:o.map(e=>`+${e.content}`).join(`
|
|
5
|
-
`)}}function _(e){let t=e.toLowerCase();if(!(t.includes(`thinking`)||t.includes(`reasoning`)||t.includes(`question`)))return t.includes(`bash`)||t.includes(`shell`)?`bash`:t.includes(`ipython`)||t.includes(`python`)?`ipython`:t.includes(`mcp`)?`mcp`:t.includes(`edit`)||t.includes(`write`)||t.includes(`patch`)?`diff`:`generic`}function v(e,t){let n=typeof e.state==`string`?e.state:void 0;return n===`output-error`||n===`error`?`error`:n===`output-available`||n===`complete`||n===`success`?`success`:n===`cancelled`||n===`canceled`||n===`aborted`||n===`interrupted`?`cancelled`:e.error===void 0?e.output!==void 0||e.result!==void 0?`success`:t===`streaming`?`running`:`cancelled`:`error`}function y(e,t){let n=e.find(e=>e.runId===t.runId);if(!n){e.push({id:s(`artifact-run:${t.runId}`),runId:t.runId,artifacts:[t],startedAt:t.timestamp,...t.status===`running`?{}:{endedAt:t.timestamp}});return}let r=n.artifacts.findIndex(e=>e.id===t.id);r<0?n.artifacts.push(t):n.artifacts[r]=t,t.status!==`running`&&(n.endedAt=t.timestamp)}function b(e,t){let n=[];for(let r of e)for(let[e,i]of r.parts.entries()){let a=l(i);if(!a)continue;let o=a?.type;if(typeof o!=`string`||!o.startsWith(`tool-`))continue;let u=o.slice(5),d=_(u);if(!d)continue;let f=a.input??a.args,p=a.output??a.result;if(f===void 0&&p===void 0)continue;let m=typeof a.toolCallId==`string`&&a.toolCallId?a.toolCallId:`${r.id}:${e}`,h=typeof a.runId==`string`&&a.runId?a.runId:r.id,g=c(r);y(n,{id:s(`${h}:${m}:${d}`),runId:h,sourceMessageId:r.id,...typeof a.toolCallId==`string`?{sourceToolCallId:a.toolCallId}:{},kind:d,title:u,status:v(a,t),...f===void 0?{}:{input:f},...p===void 0?{}:{output:p},timestamp:g})}return n}function x(e,t,n){let r=(t?.artifactRuns??[]).map(e=>({...e,artifacts:e.artifacts.map(e=>({...e}))}));for(let t of b(e,n))for(let e of t.artifacts)y(r,e);return r}export{n as i,g as n,o as r,x as t};
|
|
@@ -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,B as a,F as o,N as s,Q as c,V as l,et as u,n as d,st as f,t as p,tt as m}from"./button-0At5xSyU.js";import{F as h,K as g,at as _,g as v,it as y,lt as b,n as x,ot as S,tt as C}from"./x-BgciQ7_C.js";import{n as w}from"./toast-C4s7FYYa.js";import{_ as T,ct as E,d as D,f as O,g as k,h as A,it as j,l as M,m as N,nt as P,p as F,s as I,tt as ee,u as te}from"./dialog-DZ44tBtH.js";import{a as L,r as R,t as z}from"./provider-catalog-Gx9qaHBM.js";import{r as B}from"./useBaseUiId-B9f7fokB.js";import{t as V}from"./utils-Eg7xtNmV.js";import{t as H}from"./createLucideIcon-DwxZHm0M.js";import{t as ne}from"./loader-circle-6JG5RwxH.js";import{i as re,n as ie,r as ae,t as U}from"./sparkles-C5H3Jtgf.js";import{t as oe}from"./plug-Dt6VN0zF.js";var W=e(t(),1),se=f();function ce(e,t){return t!=null&&!j(t)?0:typeof e==`function`?e():e}function G(e,t,n){let r=ce(e,n);return typeof r==`number`?r:r?.[t]}function le(e){return typeof e==`function`?e():e}function ue(e,t){return t||e===`click`||e===`mousedown`}function de(e){return e?.includes(`mouse`)&&e!==`mousedown`}function fe(e){let t=W.useCallback(t=>e===void 0?b:e.subscribeStore(t),[e]),n=W.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,se.useSyncExternalStore)(t,n,()=>e?.serverStore)}var pe=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new c,this.restTimeout=new c,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},K=new WeakMap;function q(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&K.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),K.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function me(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=K.get(n);a&&a!==e&&q(a),q(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,K.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function he(e){let t=e.context.dataRef.current,n=_(()=>t.hoverInteractionState??pe.create()).current;return t.hoverInteractionState||=n,S(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ge(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:c}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=d.useState(`floatingElement`),_=d.useState(`domReferenceElement`),{dataRef:b}=d.context,S=P(),w=ee(),T=he(d),D=i(),O=C(()=>ue(b.current.openEvent?.type,T.interactedInside)),k=C(()=>de(b.current.openEvent?.type)),A=C(()=>{q(T)});y(()=>{f||(T.pointerType=void 0,T.restTimeoutPending=!1,T.interactedInside=!1,A())},[f,T,A]),W.useEffect(()=>A,[A]),y(()=>{if(n&&f&&T.handleCloseOptions?.blockPointerEvents&&k()&&g(_)&&p){let e=_,t=p,n=u(p),r=S?.nodesRef.current.find(e=>e.id===w)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=T.pointerEventsScopeElement===t?null:T.pointerEventsScopeElement,a=r===t?null:r,o=T.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return me(T,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{A()}}},[n,f,_,p,T,k,S,w,A]),W.useEffect(()=>{if(!n)return;function e(){return!!(S&&w&&E(S.nodesRef.current,w).length>0)}function t(e){let t=G(r,`close`,T.pointerType),n=()=>{d.setOpen(!1,x(v,e)),S?.events.emit(`floating.closed`,e)};t?T.openChangeTimeout.start(t,n):(T.openChangeTimeout.clear(),n())}function i(e){let t=l(e);if(!s(t)){T.interactedInside=!1;return}T.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function u(){T.openChangeTimeout.clear(),D.clear(),S?.events.off(`floating.closed`,_),A()}function f(n){if(e()&&S){S.events.on(`floating.closed`,_);return}if(o(n.relatedTarget,d.context.triggerElements))return;let r=b.current.floatingContext?.nodeId??c,i=n.relatedTarget;if(!(S&&r&&g(i)&&E(S.nodesRef.current,r,!1).some(e=>a(e.context?.elements.floating,i)))){if(T.handler){T.handler(n);return}A(),k()&&!O()&&t(n)}}function _(t){!S||!w||e()||D.start(0,()=>{S.events.off(`floating.closed`,_),d.setOpen(!1,x(v,t)),S.events.emit(`floating.closed`,t)})}let y=p;return m(y&&h(y,`mouseenter`,u),y&&h(y,`mouseleave`,f),y&&h(y,`pointerdown`,i,!0),()=>{S?.events.off(`floating.closed`,_)})},[n,p,d,b,r,c,k,O,A,T,S,w,D])}var _e=e(n(),1),ve={current:null};function ye(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:s=!1,restMs:c=0,move:d=!0,triggerElementRef:f=ve,externalTree:p,isActiveTrigger:_=!0,getHandleCloseContext:y,isClosing:b,shouldOpen:S,guardStaleOpen:w=!1}=t,T=`rootStore`in e?e.rootStore:e,{dataRef:E,events:D}=T.context,O=P(p),k=he(T),A=W.useRef(!1),M=B(i),N=B(r),F=B(c),I=B(n),ee=B(S),te=B(b),L=C(()=>ue(E.current.openEvent?.type,k.interactedInside)),R=C(()=>ee.current?.()!==!1),z=C((e,t,n)=>{let r=T.context.triggerElements;if(r.hasElement(t))return!e||!a(e,t);if(!g(n))return!1;let i=n;return r.hasMatchingElement(e=>a(e,i))&&(!e||!a(e,i))}),V=C(()=>{k.handler&&=(u(T.select(`domReferenceElement`)).removeEventListener(`mousemove`,k.handler),void 0)}),H=C(()=>{q(k)});return _&&(k.handleCloseOptions=M.current?.__options),W.useEffect(()=>V,[V]),W.useEffect(()=>{if(!n)return;function e(e){e.open?A.current=!1:(A.current=e.reason===v,V(),k.openChangeTimeout.clear(),k.restTimeout.clear(),k.blockMouseMove=!0,k.restTimeoutPending=!1)}return D.on(`openchange`,e),()=>{D.off(`openchange`,e)}},[n,D,k,V]),W.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=G(N.current,`close`,k.pointerType);n?k.openChangeTimeout.start(n,()=>{T.setOpen(!1,x(v,e)),O?.events.emit(`floating.closed`,e)}):t&&(k.openChangeTimeout.clear(),T.setOpen(!1,x(v,e)),O?.events.emit(`floating.closed`,e))}let t=f.current??(_?T.select(`domReferenceElement`):null);if(!g(t))return;function r(e){if(k.openChangeTimeout.clear(),k.blockMouseMove=!1,s&&!j(k.pointerType))return;let t=le(F.current),n=G(N.current,`open`,k.pointerType),r=l(e),i=e.currentTarget??null,o=T.select(`domReferenceElement`),c=i;if(g(r)&&!T.context.triggerElements.hasElement(r)){for(let e of T.context.triggerElements.elements())if(a(e,r)){c=e;break}}g(i)&&g(o)&&!T.context.triggerElements.hasElement(i)&&a(i,o)&&(c=o);let u=c!=null&&z(o,c,r),d=T.select(`open`),f=te.current?.()??T.select(`transitionStatus`)===`ending`,p=!d&&f&&A.current,m=!u&&g(c)&&g(o)&&a(o,c)&&p,h=t>0&&!n,_=u&&(d||p)||m,y=!d||u;if(_){R()&&T.setOpen(!0,x(v,e,c));return}h||(n?k.openChangeTimeout.start(n,()=>{y&&R()&&T.setOpen(!0,x(v,e,c))}):y&&R()&&T.setOpen(!0,x(v,e,c)))}function i(t){if(L()){H();return}V();let n=T.select(`domReferenceElement`),r=u(n);k.restTimeout.clear(),k.restTimeoutPending=!1;let i=E.current.floatingContext??y?.();if(!o(t.relatedTarget,T.context.triggerElements)){if(M.current&&i){T.select(`open`)||k.openChangeTimeout.clear();let n=f.current;k.handler=M.current({...i,tree:O,x:t.clientX,y:t.clientY,onClose(){H(),V(),I.current&&!L()&&n===T.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,k.handler),k.handler(t);return}(k.pointerType!==`touch`||!a(T.select(`floatingElement`),t.relatedTarget))&&e(t)}}function c(e){a(t,e.relatedTarget)||(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1)}let p=w?h(t,`mouseout`,c):void 0;return d?m(h(t,`mousemove`,r,{once:!0}),h(t,`mouseenter`,r),h(t,`mouseleave`,i),p):m(h(t,`mouseenter`,r),h(t,`mouseleave`,i),p)},[V,H,E,N,T,n,M,k,_,z,L,s,d,F,f,O,I,y,te,R,w]),W.useMemo(()=>{if(!n)return;function e(e){k.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=T.select(`domReferenceElement`),i=T.select(`open`),a=z(r,n,e.target);if(s&&!j(k.pointerType))return;if(i&&a&&k.handleCloseOptions?.blockPointerEvents){let e=T.select(`floatingElement`);if(e){let t=k.handleCloseOptions?.getScope?.()??n.ownerDocument.body;me(k,{scopeElement:t,referenceElement:n,floatingElement:e})}}let o=le(F.current);if(i&&!a||o===0||!a&&k.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;k.restTimeout.clear();function c(){if(k.restTimeoutPending=!1,L())return;let e=T.select(`open`);!k.blockMouseMove&&(!e||a)&&R()&&T.setOpen(!0,x(v,t,n))}k.pointerType===`touch`?_e.flushSync(()=>{c()}):a&&i?c():(k.restTimeoutPending=!0,k.restTimeout.start(o,c))}}},[n,k,L,z,s,T,F,R])}var be=.1,xe=be*be,J=.5;function Y(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function X(e,t,n,r,i,a,o,s,c,l){let u=!1;return Y(e,t,n,r,i,a)&&(u=!u),Y(e,t,i,a,o,s)&&(u=!u),Y(e,t,o,s,c,l)&&(u=!u),Y(e,t,c,l,n,r)&&(u=!u),u}function Se(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Z(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Ce(e={}){let{blockPointerEvents:t=!1}=e,n=new c,r=({x:e,y:t,placement:r,elements:i,onClose:o,nodeId:s,tree:c})=>{let u=r?.split(`-`)[0],d=!1,f=null,p=null,m=typeof performance<`u`?performance.now():0;function h(e,t){let n=performance.now(),r=n-m;if(f===null||p===null||r===0)return f=e,p=t,m=n,!1;let i=e-f,a=t-p,o=i*i+a*a,s=r*r*xe;return f=e,p=t,m=n,o<s}function _(){n.clear(),o()}return function(r){n.clear();let o=i.domReference,f=i.floating;if(!o||!f||u==null||e==null||t==null)return;let{clientX:p,clientY:m}=r,v=l(r),y=r.type===`mouseleave`,b=a(f,v),x=a(o,v);if(b&&(d=!0,!y))return;if(x&&(d=!1,!y)){d=!0;return}if(y&&g(r.relatedTarget)&&a(f,r.relatedTarget))return;function S(){return!!(c&&E(c.nodesRef.current,s).length>0)}function C(){S()||_()}if(S())return;let w=o.getBoundingClientRect(),T=f.getBoundingClientRect(),D=e>T.right-T.width/2,O=t>T.bottom-T.height/2,k=T.width>w.width,A=T.height>w.height,j=(k?w:T).left,M=(k?w:T).right,N=(A?w:T).top,P=(A?w:T).bottom;if(u===`top`&&t>=w.bottom-1||u===`bottom`&&t<=w.top+1||u===`left`&&e>=w.right-1||u===`right`&&e<=w.left+1){C();return}let F=!1;switch(u){case`top`:F=Z(p,m,j,w.top+1,M,T.bottom-1);break;case`bottom`:F=Z(p,m,j,T.top+1,M,w.bottom-1);break;case`left`:F=Z(p,m,T.right-1,P,w.left+1,N);break;case`right`:F=Z(p,m,w.right-1,P,T.left+1,N)}if(F)return;if(d&&!Se(p,m,w)){C();return}if(!y&&h(p,m)){C();return}let I=!1;switch(u){case`top`:{let n=k?J/2:J*4,r=k||D?e+n:e-n,i=k?e-n:D?e+n:e-n,a=t+J+1,o=D||k?T.bottom-J:T.top,s=D?k?T.bottom-J:T.top:T.bottom-J;I=X(p,m,r,a,i,a,T.left,o,T.right,s);break}case`bottom`:{let n=k?J/2:J*4,r=k||D?e+n:e-n,i=k?e-n:D?e+n:e-n,a=t-J,o=D||k?T.top+J:T.bottom,s=D?k?T.top+J:T.bottom:T.top+J;I=X(p,m,r,a,i,a,T.left,o,T.right,s);break}case`left`:{let n=A?J/2:J*4,r=A||O?t+n:t-n,i=A?t-n:O?t+n:t-n,a=e+J+1,o=O||A?T.right-J:T.left,s=O?A?T.right-J:T.left:T.right-J;I=X(p,m,o,T.top,s,T.bottom,a,r,a,i);break}case`right`:{let n=A?J/2:J*4,r=A||O?t+n:t-n,i=A?t-n:O?t+n:t-n,a=e-J,o=O||A?T.left+J:T.right,s=O?A?T.left+J:T.right:T.left+J;I=X(p,m,a,r,a,i,o,T.top,s,T.bottom);break}}I?d||n.start(40,C):C()}};return r.__options={...e,blockPointerEvents:t},r}var we=H(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Te=H(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Ee=H(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),De=H(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),Oe=H(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),ke=H(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Ae=H(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),je=H(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Me=H(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Ne=H(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),Pe=H(`zap`,[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]),Fe=`h-8 shrink-0 cursor-pointer rounded-[7px] border-border/45 bg-background/65 text-[11px] font-semibold text-foreground/75 shadow-sm transition-[background-color,border-color,box-shadow,opacity,transform] duration-150 hover:bg-foreground/5 active:scale-[0.96] disabled:opacity-50`,Ie=`relative after:absolute after:top-1/2 after:left-1/2 after:size-10 after:-translate-x-1/2 after:-translate-y-1/2`,Le=`relative after:absolute after:inset-x-0 after:-top-1.5 after:-bottom-1.5`,Re=`relative inline-flex h-9 items-center gap-1.5 rounded-[10px] border border-border/70 px-3 text-label font-medium whitespace-nowrap shadow-sm backdrop-blur transition-colors`,ze=`bg-sidebar text-foreground/55 hover:bg-background hover:text-foreground/75`,Be=`bg-background text-foreground/75`,Ve=`${ze} data-[state=inactive]:shadow-sm`,He=`${Be} data-[state=active]:shadow-sm`,Ue=`relative z-10 overflow-visible`,We=`h-full min-h-0 w-[min(360px,calc(100vw-1.5rem))] overflow-hidden rounded-md border border-border/70 bg-background/95 shadow-lg backdrop-blur`,Ge=d(`flex min-w-0 rounded-[4px] border`,{variants:{tone:{default:`border-border/30 bg-background/30`,muted:`border-border/20 bg-foreground/1.5`,inset:`border-border/60 bg-foreground/2`,dashed:`border-dashed border-border/25 bg-background/10`},padding:{sm:`p-2`,md:`px-2.5 py-2`,lg:`p-2.5`},interactive:{true:`transition-[border-color,background-color,box-shadow] duration-200 hover:border-border/45 hover:bg-foreground/2 hover:shadow-sm`,lift:`transition-[border-color,background-color,box-shadow,transform] duration-200 hover:-translate-y-px hover:border-border/45 hover:bg-foreground/3.5 hover:shadow-sm`,false:``}},defaultVariants:{tone:`default`,padding:`sm`,interactive:!1}}),Q=r();function Ke({className:e,...t}){return(0,Q.jsx)(ne,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:V(`size-4 animate-spin`,e),...t})}function qe(e){return M(`alert-dialog`,e)}var Je=4;function Ye({...e}){return(0,Q.jsx)(qe,{"data-slot":`alert-dialog`,...e})}function Xe({...e}){return(0,Q.jsx)(te,{"data-slot":`alert-dialog-portal`,...e})}function Ze({className:e,...t}){return(0,Q.jsx)(N,{"data-slot":`alert-dialog-backdrop`,className:V(`fixed inset-0 isolate z-[60] bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function Qe({className:e,children:t,...n}){let r=k(),i=Math.min(r+Je,8);return(0,Q.jsxs)(Xe,{children:[(0,Q.jsx)(Ze,{}),(0,Q.jsx)(D,{"data-slot":`alert-dialog-content`,className:V(`fixed top-1/2 left-1/2 z-[60] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-6 text-sm text-popover-foreground outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,T(i),e),...n,children:(0,Q.jsx)(A,{value:i,children:t})})]})}function $e({className:e,...t}){return(0,Q.jsx)(I,{"data-slot":`alert-dialog-title`,className:V(`font-heading text-base leading-none font-medium`,e),...t})}function et({className:e,...t}){return(0,Q.jsx)(O,{"data-slot":`alert-dialog-description`,className:V(`text-sm text-pretty text-muted-foreground`,e),...t})}function tt({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:V(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function nt({...e}){return(0,Q.jsx)(F,{"data-slot":`alert-dialog-cancel`,render:(0,Q.jsx)(p,{variant:`outline`}),...e})}function rt({...e}){return(0,Q.jsx)(F,{"data-slot":`alert-dialog-action`,render:(0,Q.jsx)(p,{variant:`destructive`}),...e})}function it(e,t){return w.add({title:e,type:t})}var at=Object.assign(e=>it(e),{success:e=>it(e,`success`),error:e=>it(e,`error`),message:e=>it(e,`info`)}),ot={"amazon-bedrock":{icon:Ae,placeholder:`AKIA... (AWS access key id)`,help:`Amazon Bedrock uses standard AWS credentials (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY) plus AWS_REGION. This field sets AWS_ACCESS_KEY_ID in .env.local.`},openai:{icon:U,placeholder:`sk-proj-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENAI_API_KEY environment variable.`},"openai-chat-completions":{icon:U,placeholder:`sk-... or nvapi-...`,help:`OpenAI-compatible Chat Completions root (e.g. https://opencode.ai/zen/v1). Paste …/chat/completions if you want — it is normalized. Requires API key, base URL, and model name.`},"openai-chat-completions-model":{icon:U,placeholder:`meta/llama-3.1-70b-instruct`,help:`Gateway model name registered when /models is empty or incomplete.`},anthropic:{icon:Te,placeholder:`sk-ant-...`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:ie,placeholder:`Path to service account JSON, or credentials text...`,help:`Stored securely in your root .env.local file. Overrides the active GOOGLE_APPLICATION_CREDENTIALS environment variable.`},google:{icon:Ee,placeholder:`AIzaSy...`,help:`Stored securely in your root .env.local file. Overrides the active GEMINI_API_KEY environment variable.`},mistral:{icon:Ne,placeholder:`Your Mistral API key...`,help:`Stored securely in your root .env.local file. Overrides the active MISTRAL_API_KEY environment variable.`},groq:{icon:Pe,placeholder:`gsk_...`,help:`Stored securely in your root .env.local file. Overrides the active GROQ_API_KEY environment variable.`},openrouter:{icon:ae,placeholder:`sk-or-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENROUTER_API_KEY environment variable.`},"vercel-ai-gateway":{icon:re,placeholder:`Your AI Gateway API key...`,help:`Stored securely in your root .env.local file. Overrides the active AI_GATEWAY_API_KEY environment variable.`},"github-copilot":{icon:Te,placeholder:`OAuth subscription`,help:`GitHub Copilot uses device-code OAuth. Sign in from Settings; credentials are stored in auth.json.`},"openai-codex":{icon:U,placeholder:`OAuth subscription`,help:`OpenAI Codex uses ChatGPT OAuth. Sign in from Settings; credentials are stored in auth.json.`},ollama:{icon:De,placeholder:`http://localhost:11434 (default)`,help:`Configure local Ollama execution endpoints. Overrides the active OLLAMA_BASE_URL environment variable.`},custom:{icon:oe,placeholder:`sk-... / provider key`,help:`Register any OpenAI-, Anthropic-, or Google-compatible endpoint through Pi's native custom-provider mechanism. Requires a name, API key, https base URL, API family, and at least one model id. Deployed accounts only.`}},$=`size-4`;function st({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:V($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.368v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.814 3.354-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.079.079 0 0 0-.041-.067zm2.01-3.023l-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zM8.306 12.683l-2.02-1.163a.08.08 0 0 1-.038-.057V6.074a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.392.681zm1.098-2.016l2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z`})})}function ct({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:V($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M17.305 14.256h-3.778l-2.28-7.23h-.005l-2.32 7.23H5.145L9.93 3h4.14l4.235 11.256zm-8.48 2.37h6.37l1.16 3.374h3.465L14.18 3h-4.36L4.15 20h3.465l1.21-3.374z`})})}function lt({className:e}){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:V($,e),fill:`currentColor`,"aria-hidden":!0,children:[(0,Q.jsx)(`path`,{d:`M21.6 12.23c0-.71-.06-1.4-.18-2.05H12v3.87h5.38a4.6 4.6 0 0 1-2 3.02v2.5h3.24c1.89-1.74 2.98-4.3 2.98-7.34z`}),(0,Q.jsx)(`path`,{d:`M12 22c2.7 0 4.96-.89 6.61-2.42l-3.24-2.5c-.9.6-2.04.96-3.37.96-2.59 0-4.78-1.75-5.56-4.1H3.1v2.58A9.99 9.99 0 0 0 12 22z`}),(0,Q.jsx)(`path`,{d:`M6.44 13.94A5.99 5.99 0 0 1 6.12 12c0-.67.12-1.33.32-1.94V7.48H3.1A9.99 9.99 0 0 0 2 12c0 1.61.39 3.14 1.1 4.52l3.34-2.58z`}),(0,Q.jsx)(`path`,{d:`M12 5.96c1.47 0 2.79.5 3.82 1.5l2.87-2.87C16.95 2.99 14.7 2 12 2A9.99 9.99 0 0 0 3.1 7.48l3.34 2.58C7.22 7.71 9.41 5.96 12 5.96z`})]})}function ut({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:V($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.4-4-1.4-.5-1.4-1.3-1.8-1.3-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1.1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.8-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.3.5-2.4 1.2-3.2-.1-.3-.5-1.5.1-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.9 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3z`})})}function dt({provider:e,api:t,className:n}){let r=e.toLowerCase();if(R(r)||r===`custom`)return t===`anthropic-messages`?(0,Q.jsx)(ct,{className:n}):t===`google-genai`?(0,Q.jsx)(lt,{className:n}):(0,Q.jsx)(st,{className:n});if(r===`openai`||r===`openai-codex`||L(r))return(0,Q.jsx)(st,{className:n});if(r===`anthropic`)return(0,Q.jsx)(ct,{className:n});if(r===`google`||r===`google-vertex`)return(0,Q.jsx)(lt,{className:n});if(r===`github-copilot`||r===`github`)return(0,Q.jsx)(ut,{className:n});let i=e in ot?ot[e].icon:De;return(0,Q.jsx)(i,{className:V($,n),"aria-hidden":!0})}function ft(e){return z.find(t=>t.id===e)?.name??e}export{we as A,Ge as C,Oe as D,ke as E,fe as F,G as I,ye as M,ge as N,De as O,he as P,We as S,je as T,Fe as _,Ye as a,Ie as b,Qe as c,$e as d,Ke as f,ze as g,Re as h,at as i,Ce as j,Te as k,et as l,Be as m,ft as n,rt as o,Ue as p,ot as r,nt as s,dt as t,tt as u,He as v,Me as w,Le as x,Ve as y};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-BXWmNJo7.js","assets/rolldown-runtime-hePW80VL.js","assets/bundle-mjs-DKHVkVWu.js","assets/jsx-runtime-NZYk81nU.js","assets/utils-Eg7xtNmV.js","assets/preload-helper-Czpn1I53.js","assets/chunk-BO2N2NFS-BnzHCiyQ.js","assets/react-dom-Bwxum3ti.js","assets/lib-ChrQ49PO.js","assets/cn-C8c0S2mI.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{_ as r,g as i,l as a,m as o,o as s,p as c}from"./workspace-path-nav-BrQHo6es.js";import{t as l}from"./utils-Eg7xtNmV.js";import{t as u}from"./createLucideIcon-DwxZHm0M.js";import{t as d}from"./chevron-down-BEVGmnSb.js";import{t as f}from"./safe-external-url-Bl_78dpZ.js";import{a as p}from"./collapsible-WCSnxhr2.js";import{a as m}from"./sparkles-C5H3Jtgf.js";import{t as h}from"./preload-helper-Czpn1I53.js";var g=u(`book-open-text`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M16 13h2`,key:`weia3s`}],[`path`,{d:`M16 9h2`,key:`1n7gjm`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}],[`path`,{d:`M6 13h2`,key:`1cckiz`}],[`path`,{d:`M6 9h2`,key:`1k7j9f`}]]),_=u(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),v=u(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),y=u(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),b=u(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),x=e(t(),1),S=n(),C=`bg-background shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.12)] dark:bg-popover dark:shadow-none`,w=`bg-background shadow-[0_2px_8px_rgba(0,0,0,0.05),0_20px_48px_-16px_rgba(0,0,0,0.18)] dark:bg-popover dark:shadow-[0_20px_48px_-16px_rgba(0,0,0,0.55)]`,T=`bg-foreground/[0.04] dark:bg-foreground/[0.06]`,E=`col-start-1 row-start-1 flex w-max items-center gap-1.5 leading-none transition-[opacity,filter] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none`,D=`opacity-100 blur-none`,O=`pointer-events-none select-none opacity-0 blur-[2px]`,k=`h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] data-[ending-style]:h-0 data-[starting-style]:h-0 motion-reduce:transition-none`,A=`font-mono text-[11px] tracking-tight`;function j({active:e=!0,className:t,...n}){return(0,S.jsx)(`span`,{className:l(e&&`shimmer motion-reduce:animate-none`,t),...n})}function M({active:e,children:t,className:n}){let r=(0,x.useRef)(null),i=(0,x.useRef)(null),[a,o]=(0,x.useState)(null);return(0,x.useLayoutEffect)(()=>{let t=(e===0?r:i).current;if(!t)return;let n=()=>o(Math.ceil(t.getBoundingClientRect().width));n();let a=new ResizeObserver(n);return a.observe(t),()=>a.disconnect()},[e]),(0,S.jsxs)(`span`,{style:a===null?void 0:{width:a},className:l(`grid overflow-x-clip transition-[width] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none`,n),children:[(0,S.jsx)(`span`,{ref:r,"aria-hidden":e!==0,className:l(E,e===0?D:O),children:t[0]}),(0,S.jsx)(`span`,{ref:i,"aria-hidden":e!==1,className:l(E,e===1?D:O),children:t[1]})]})}function N(){let[e,t]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(`(hover: hover) and (pointer: fine)`),n=()=>t(e.matches);return n(),e.addEventListener?.(`change`,n),()=>e.removeEventListener?.(`change`,n)},[]),e}function P(e){try{return new URL(`/favicon.ico`,e).toString()}catch{return null}}function F(e,t){return`${e}-${t.replace(/[^a-zA-Z0-9_-]/g,`-`)}`}function I({url:e,className:t}){let n=e&&f(e)?P(e):null,[r,i]=(0,x.useState)(null);return(0,S.jsx)(`span`,{"aria-hidden":`true`,className:l(`grid size-5 shrink-0 place-items-center text-muted-foreground`,t),children:n&&r!==n?(0,S.jsx)(`img`,{src:n,alt:``,width:16,height:16,referrerPolicy:`no-referrer`,onError:()=>i(n),className:`size-4 rounded-sm object-contain`}):(0,S.jsx)(_,{className:`size-3.5`})})}function L({citations:e,limit:t=3,className:n}){return(0,S.jsx)(`span`,{"aria-hidden":`true`,className:l(`flex -space-x-1.5`,n),children:e.slice(0,t).map(e=>(0,S.jsx)(I,{url:e.url,className:`size-6 rounded-full bg-background ring-2 ring-background`},e.id))})}function R({citation:e,index:t,idPrefix:n}){let r=e.url&&f(e.url)?e.url:void 0,i=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(I,{url:e.url}),(0,S.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-0.5`,children:[(0,S.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground/80 transition-colors group-hover/citation:text-foreground`,children:e.title}),e.domain?(0,S.jsx)(`span`,{className:`min-w-0 truncate text-xs text-muted-foreground/60`,children:e.domain}):null]}),(0,S.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5`,children:[(0,S.jsx)(`span`,{className:`grid size-5 place-items-center rounded-md bg-foreground/[0.05] text-[10px] font-semibold tabular-nums text-muted-foreground`,children:t}),r?(0,S.jsx)(m,{className:`size-3.5 text-muted-foreground/40 transition-colors group-hover/citation:text-muted-foreground`}):null]})]}),a=`group/citation flex items-center gap-2 rounded-md px-1.5 py-1 outline-none focus-visible:ring-2 focus-visible:ring-ring`,o=F(n,e.id);return r?(0,S.jsx)(`a`,{id:o,href:r,target:`_blank`,rel:`noreferrer noopener`,className:a,children:i}):(0,S.jsx)(`div`,{id:o,className:a,children:i})}function z({citations:e,idPrefix:t,className:n}){let c=i()??!1,u=(0,x.useId)(),d=t??`citation-list-${u.replace(/:/g,``)}`;return(0,S.jsx)(`div`,{className:l(`grid gap-0.5`,n),children:(0,S.jsx)(r,{mode:`popLayout`,children:e.map((e,t)=>(0,S.jsx)(o.div,{layout:`position`,initial:c?{opacity:1}:{opacity:0,y:6},animate:{opacity:1,y:0},exit:c?{opacity:0}:{opacity:0,y:-3},transition:c?{duration:0}:{opacity:{duration:.18,ease:s},y:a,layout:a},children:(0,S.jsx)(R,{citation:e,index:t+1,idPrefix:d})},e.id))})})}function B({citations:e,title:t=`Sources`,open:n,defaultOpen:r=!1,onOpenChange:a,idPrefix:s,className:u}){let f=i()??!1,m=(0,x.useId)(),h=`${m}-content`,_=s??`citation-${m.replace(/:/g,``)}`,[v,y]=(0,x.useState)(r),b=n??v,C=(0,x.useCallback)(e=>{n===void 0&&y(e),a?.(e)},[a,n]);return(0,S.jsxs)(`div`,{className:l(`w-full text-sm`,u),children:[(0,S.jsxs)(`button`,{type:`button`,"aria-expanded":b,"aria-controls":h,onClick:()=>C(!b),className:`group -ml-1 flex min-h-8 items-center gap-2 rounded-lg px-1 text-left text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,S.jsx)(g,{className:`size-4`}),(0,S.jsx)(`span`,{className:`font-medium`,children:t}),(0,S.jsx)(`span`,{className:`rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-semibold tabular-nums`,children:e.length}),(0,S.jsx)(o.span,{"aria-hidden":`true`,animate:{rotate:b?180:0},transition:f?{duration:0}:c,className:`text-muted-foreground/60`,children:(0,S.jsx)(d,{className:`size-3.5`})})]}),(0,S.jsx)(p,{id:h,open:b,children:(0,S.jsx)(z,{citations:e,idPrefix:_,className:`mt-1`})})]})}var V=(0,x.lazy)(()=>h(async()=>{let{Markdown:e}=await import(`./markdown-BXWmNJo7.js`).then(e=>e.a);return{Markdown:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(({Markdown:e})=>({default:e})));function H(e){return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`div`,{className:e.className?`${e.className} whitespace-pre-wrap`:`whitespace-pre-wrap`,children:e.content}),children:(0,S.jsx)(V,{...e})})}var U={};function W(e,t,n){return Number.isNaN(e)?t:Math.min(n,Math.max(t,e))}function G(e,t){return e.slice(0,Math.floor(W(t,0,e.length)))}function K(e,t){return t>0?W(e/t*100,0,100):0}function q(e,t){return t>0?Math.floor(W(e,0,t)):0}export{b as _,H as a,_ as b,B as c,M as d,k as f,C as g,A as h,U as i,N as l,w as m,q as n,z as o,T as p,G as r,L as s,K as t,j as u,y as v,g as x,v as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{a as t,n,t as r}from"./shared-DAI9OAw0.js";import{n as i}from"./file-text-BhQ0ZnoU.js";import{t as a}from"./skeleton-loaders-qxIkJKCA.js";var o=e();function s({error:e,loading:s,resources:c,workspace:l}){let u=t(c,l);return(0,o.jsxs)(o.Fragment,{children:[e&&(0,o.jsx)(n,{icon:i,title:`Unable to load resources`,description:e.message}),!e&&s&&!c&&(0,o.jsx)(a,{}),!e&&c&&u.map(e=>(0,o.jsx)(r,{...e},e.id))]})}export{s as ResourcesPanelContent};
|