@runfusion/fusion 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +2058 -1709
- package/dist/client/assets/{AgentDetailView-Du65-jDo.js → AgentDetailView-DyzuiJas.js} +1 -1
- package/dist/client/assets/AgentsView-C2f7esMv.css +1 -0
- package/dist/client/assets/{AgentsView-BkgNEbNs.js → AgentsView-CgweOTe6.js} +46 -46
- package/dist/client/assets/{ChatView-LDte0TdV.js → ChatView-DrY8FMIt.js} +1 -1
- package/dist/client/assets/{DevServerView-AXznq3jv.js → DevServerView-fvjo36sF.js} +1 -1
- package/dist/client/assets/{DirectoryPicker-CSp3G115.js → DirectoryPicker-D5KQ-im_.js} +1 -1
- package/dist/client/assets/{DocumentsView-DOe0E1WQ.js → DocumentsView-D2wK7FYJ.js} +1 -1
- package/dist/client/assets/{InsightsView-DWZbS6z-.js → InsightsView-DfY3sa1j.js} +1 -1
- package/dist/client/assets/{MemoryView-BxnlhBoa.js → MemoryView-CyAQgXwO.js} +1 -1
- package/dist/client/assets/{NodesView-DO9jxhM4.js → NodesView-g26-j7rg.js} +4 -4
- package/dist/client/assets/{PiExtensionsManager-CfXZaWl7.js → PiExtensionsManager-DfMr3Gls.js} +3 -3
- package/dist/client/assets/{PluginManager-r6CWD9u-.js → PluginManager-DiMOD-Kj.js} +1 -1
- package/dist/client/assets/{RoadmapsView-CgAM3YfN.js → RoadmapsView-DJC4F4CD.js} +1 -1
- package/dist/client/assets/SettingsModal-BnekMOV2.css +1 -0
- package/dist/client/assets/{SettingsModal-fmRtzH8z.js → SettingsModal-Cx3iMWDs.js} +1 -1
- package/dist/client/assets/SettingsModal-DjVE27r5.js +31 -0
- package/dist/client/assets/{SetupWizardModal-oRNpImWR.js → SetupWizardModal-Cow6woq6.js} +1 -1
- package/dist/client/assets/{SkillsView-BhwtL-0_.js → SkillsView-DTB2cmXQ.js} +1 -1
- package/dist/client/assets/{TodoView-CmhUBFNV.js → TodoView-CyxdHUdz.js} +1 -1
- package/dist/client/assets/{folder-open-CrTagHrr.js → folder-open-C3zB1vmh.js} +1 -1
- package/dist/client/assets/{index-S9oR77v2.css → index-Belw0PQt.css} +1 -1
- package/dist/client/assets/{index-BTeSa6vk.js → index-DJDWSrju.js} +14 -14
- package/dist/client/assets/{list-checks-DR26h_Io.js → list-checks-CK3_6p5e.js} +1 -1
- package/dist/client/assets/{star-CO_D42zy.js → star-BQhDgM9V.js} +1 -1
- package/dist/client/assets/{upload-BcrgS-iu.js → upload-DDdZveEJ.js} +1 -1
- package/dist/client/assets/{users-4d8al5Sp.js → users-DWWgd19M.js} +1 -1
- package/dist/client/brands/hermes-logo.svg +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/version.json +1 -1
- package/dist/extension.js +1340 -1126
- package/dist/pi-claude-cli/package.json +1 -1
- package/package.json +7 -6
- package/dist/client/assets/AgentsView-D12CuIFc.css +0 -1
- package/dist/client/assets/SettingsModal-DPDQyWim.css +0 -1
- package/dist/client/assets/SettingsModal-GZdRt8fX.js +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as e}from"./vendor-react-K0fH_qHe.js";import{f as X,b8 as _,b9 as q,ba as B,aP as G,X as P,R as J,N as O,H as Y,L as Z,ag as I}from"./index-
|
|
1
|
+
import{r as i,j as e}from"./vendor-react-K0fH_qHe.js";import{f as X,b8 as _,b9 as q,ba as B,aP as G,X as P,R as J,N as O,H as Y,L as Z,ag as I}from"./index-DJDWSrju.js";import"./vendor-xterm-DzcZoU0P.js";function ie({projectId:c,addToast:o,onClose:Q}){const[d,v]=i.useState([]),[f,y]=i.useState(!0),[A,E]=i.useState(!1),[L,p]=i.useState(null),[D,K]=i.useState([]),[h,V]=i.useState(""),[m,g]=i.useState(null),[k,x]=i.useState(null),[W,R]=i.useState(!1),[z,j]=i.useState(null),r=i.useRef(null),[N,H]=i.useState(""),F=h.trim()?d.filter(s=>s.name.toLowerCase().includes(h.toLowerCase())||s.relativePath.toLowerCase().includes(h.toLowerCase())):d,C=i.useCallback(async()=>{y(!0);try{const s=await X(c);v(s)}catch(s){const a=s instanceof Error?s.message:"Failed to load discovered skills";o(a,"error")}finally{y(!1)}},[c,o]),u=i.useCallback(async s=>{const a=l=>{if(!l||typeof l!="object")return!1;const t=l;if(typeof t.status=="number"&&t.status>=500)return!0;if(t.details&&typeof t.details=="object"){const w=t.details;if(typeof w.code=="string"&&w.code.startsWith("upstream_"))return!0}const n=l;return typeof n.error=="string"&&typeof n.code=="string"};E(!0),p(null);try{const l=await _(s,20,c);K(l.entries)}catch(l){if(a(l))p("Catalog is temporarily unavailable. Please try again later.");else{const t=l instanceof Error?l.message:"Failed to load catalog";p(t)}}finally{E(!1)}},[c]);i.useEffect(()=>{C(),u("")},[C,u]);const M=i.useCallback(s=>{V(s),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{H(s),r.current=null},300)},[]);i.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),i.useEffect(()=>{u(N)},[N,u]);const T=i.useCallback(async(s,a)=>{const l=!a;v(t=>t.map(n=>n.id===s?{...n,toggling:!0}:n));try{await q(s,l,c),v(t=>t.map(n=>n.id===s?{...n,enabled:l,toggling:!1}:n)),o(`Skill ${l?"enabled":"disabled"}`,"success")}catch(t){v(w=>w.map(S=>S.id===s?{...S,toggling:!1}:S));const n=t instanceof Error?t.message:"Failed to toggle skill";o(`Failed to toggle skill: ${n}`,"error")}},[c,o]),b=i.useCallback(async s=>{R(!0),j(null),x(null);try{const a=await B(s,c);x(a)}catch(a){const l=a instanceof Error?a.message:"Failed to load skill content";j(l)}finally{R(!1)}},[c]),$=i.useCallback((s,a)=>{if(!(a&&a.target.closest(".skills-view-item-toggle"))){if(m===s){g(null),x(null),j(null);return}g(s),b(s)}},[m,b]),U=i.useCallback(s=>{m!==s&&g(s),b(s)},[b,m]);return e.jsxs("div",{className:"skills-view","data-testid":"skills-view",children:[e.jsxs("div",{className:"skills-view-header",children:[e.jsxs("div",{className:"skills-view-title",children:[e.jsxs("h2",{children:[e.jsx(G,{size:20}),"Skills"]}),e.jsxs("span",{className:"skills-view-count","aria-label":`${d.length} discovered skills`,children:[d.length," discovered"]})]}),e.jsxs("div",{className:"skills-view-actions",children:[e.jsx("button",{className:"btn-icon skills-view-close touch-target",onClick:Q,"aria-label":"Close skills view",children:e.jsx(P,{size:16})}),e.jsxs("button",{className:"btn btn-sm touch-target",onClick:()=>void C(),disabled:f,children:[e.jsx(J,{size:14,className:f?"spin":""}),"Refresh"]})]})]}),e.jsxs("div",{className:"skills-view-content",children:[e.jsx("div",{className:"skills-view-search",children:e.jsx("input",{type:"text",className:"form-input",placeholder:"Search skills...",value:h,onChange:s=>M(s.target.value),"aria-label":"Search skills"})}),e.jsxs("section",{className:"skills-view-section","aria-labelledby":"discovered-skills-title",children:[e.jsx("h3",{id:"discovered-skills-title",className:"skills-view-section-title",children:"Discovered Skills"}),f?e.jsxs("div",{className:"skills-view-loading",children:[e.jsx("span",{className:"spinner"}),"Loading discovered skills..."]}):d.length===0?e.jsx("div",{className:"skills-view-empty",children:e.jsx("p",{children:"No skills discovered in this project."})}):F.length===0?e.jsx("div",{className:"skills-view-empty",children:e.jsx("p",{children:"No discovered skills match your search."})}):e.jsx("div",{className:"skills-view-list",children:F.map(s=>{const a=m===s.id;return e.jsxs("div",{children:[e.jsxs("div",{className:`skills-view-item${a?" skills-view-item--selected":""}`,onClick:l=>$(s.id,l),role:"button",tabIndex:0,onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),$(s.id))},"aria-expanded":a,"aria-label":`View details for ${s.name}`,children:[e.jsxs("div",{className:"skills-view-item-info",children:[e.jsxs("span",{className:"skills-view-item-name",children:[a?e.jsx(O,{size:14}):e.jsx(Y,{size:14}),s.name]}),e.jsx("span",{className:"skills-view-item-path",children:s.relativePath}),e.jsx("span",{className:"skills-view-item-source",children:s.metadata.source})]}),e.jsxs("label",{className:"skills-view-item-toggle",onClick:l=>l.stopPropagation(),children:[e.jsx("input",{type:"checkbox",checked:s.enabled,disabled:s.toggling,onChange:()=>void T(s.id,s.enabled),"aria-label":`${s.enabled?"Disable":"Enable"} ${s.name}`}),e.jsx("span",{className:"skills-view-toggle-slider"})]})]}),a&&e.jsxs("div",{className:"skills-view-detail","data-testid":"skill-detail",children:[e.jsxs("div",{className:"skills-view-detail-header",children:[e.jsx("span",{className:"skills-view-detail-title",children:s.name}),e.jsxs("button",{className:"btn btn-sm skills-view-detail-close",onClick:()=>{g(null),x(null),j(null)},"aria-label":"Close skill detail",children:[e.jsx(P,{size:14}),"Close"]})]}),W?e.jsxs("div",{className:"skills-view-detail-loading",children:[e.jsx(Z,{size:16,className:"spin"}),"Loading skill content..."]}):z?e.jsxs("div",{className:"skills-view-detail-error",children:[e.jsx(I,{size:14}),e.jsx("span",{children:z}),e.jsx("button",{className:"btn btn-sm",onClick:()=>U(s.id),children:"Retry"})]}):k?e.jsxs(e.Fragment,{children:[e.jsx("pre",{className:"skills-view-detail-content",children:k.skillMd||"(No SKILL.md found)"}),k.files.length>0&&e.jsxs("div",{className:"skills-view-detail-files",children:[e.jsx("span",{className:"skills-view-detail-files-label",children:"Files:"}),k.files.map(l=>e.jsxs("span",{className:"badge badge--sm",children:[l.name,l.type==="directory"&&"/"]},l.relativePath))]})]}):null]})]},s.id)})})]}),e.jsxs("section",{className:"skills-view-section","aria-labelledby":"catalog-title",children:[e.jsx("h3",{id:"catalog-title",className:"skills-view-section-title",children:"Skills Catalog"}),L?e.jsxs("div",{className:"skills-view-error",children:[e.jsx("p",{children:L}),e.jsx("button",{className:"btn btn-sm",onClick:()=>void u(N),children:"Try Again"})]}):A?e.jsxs("div",{className:"skills-view-loading",children:[e.jsx("span",{className:"spinner"}),"Loading catalog..."]}):D.length===0?e.jsx("div",{className:"skills-view-empty",children:h?e.jsx("p",{children:"No skills match your search."}):e.jsx("p",{children:"No skills available in the catalog."})}):e.jsx("div",{className:"skills-view-grid",children:D.map(s=>e.jsxs("div",{className:"skills-view-card",children:[e.jsx("h4",{className:"skills-view-card-title",children:s.name}),s.description&&e.jsx("p",{className:"skills-view-card-description",children:s.description}),s.tags&&s.tags.length>0&&e.jsx("div",{className:"skills-view-card-tags",children:s.tags.map(a=>e.jsx("span",{className:"badge badge--sm",children:a},a))}),s.installs!==void 0&&e.jsxs("span",{className:"skills-view-card-installs",children:[s.installs.toLocaleString()," installs"]})]},s.id))})]})]})]})}export{ie as SkillsView};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as e}from"./vendor-react-K0fH_qHe.js";import{c as kt,bJ as It,bK as Nt,bL as wt,bM as Ct,bN as St,bO as At,bP as Et,bQ as $t,o as Dt,i as Ft,r as q,bR as rt,L as Tt,y as zt,b5 as G,X as H,au as ct,
|
|
1
|
+
import{r as d,j as e}from"./vendor-react-K0fH_qHe.js";import{c as kt,bJ as It,bK as Nt,bL as wt,bM as Ct,bN as St,bO as At,bP as Et,bQ as $t,o as Dt,i as Ft,r as q,bR as rt,L as Tt,y as zt,b5 as G,X as H,au as ct,M as lt,a9 as Mt,N as Ot,B as ut}from"./index-DJDWSrju.js";import{L as mt}from"./list-checks-CK3_6p5e.js";import"./vendor-xterm-DzcZoU0P.js";/**
|
|
2
2
|
* @license lucide-react v1.7.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|