@alwith/module-chat 0.6.21 → 0.6.24
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/README.md +1 -1
- package/dist/agent/client.js +1 -1
- package/dist/{chunk-dtxc0x7y.js → chunk-0myf2ak0.js} +2 -2
- package/dist/{chunk-j64839nf.js → chunk-11vn501z.js} +1 -1
- package/dist/{chunk-5pyvgshe.js → chunk-1pb43y89.js} +1 -1
- package/dist/{chunk-81hxr15a.js → chunk-1rwkdezk.js} +1 -1
- package/dist/{chunk-mvd124vs.js → chunk-2cc8d35c.js} +1 -1
- package/dist/{chunk-njwb0rbw.js → chunk-3qwtda21.js} +1 -1
- package/dist/{chunk-cfx5s6fz.js → chunk-3zae491f.js} +1 -1
- package/dist/{chunk-nmtz0797.js → chunk-4fmn1kk4.js} +1 -1
- package/dist/{chunk-v9jqk03c.js → chunk-4r0ffb0s.js} +1 -1
- package/dist/{chunk-5dgmqyg1.js → chunk-5ryfm4ka.js} +1 -1
- package/dist/{chunk-cc6x7r61.js → chunk-6tvq472s.js} +2 -2
- package/dist/{chunk-mc5668pn.js → chunk-6vdayg6w.js} +1 -1
- package/dist/{chunk-xqpdvq05.js → chunk-6w8p1hwb.js} +1 -1
- package/dist/{chunk-hp0eqd8x.js → chunk-73541c5k.js} +2 -2
- package/dist/{chunk-cn07a5nh.js → chunk-79ayc6qy.js} +1 -1
- package/dist/{chunk-mwthxh95.js → chunk-84eye2j0.js} +1 -1
- package/dist/{chunk-f1awp8vf.js → chunk-8mzbkjhk.js} +1 -1
- package/dist/{chunk-6e9wwjgv.js → chunk-a6ysp1fp.js} +1 -1
- package/dist/{chunk-exkacmay.js → chunk-a9grdyep.js} +1 -1
- package/dist/{chunk-689vpcc9.js → chunk-b61qhh61.js} +2 -2
- package/dist/{chunk-f7bn0nd2.js → chunk-bane0xc8.js} +2 -2
- package/dist/{chunk-ztnq7bts.js → chunk-bcnh0z8e.js} +2 -2
- package/dist/chunk-bfb8bpwc.js +2 -0
- package/dist/chunk-bgav9cq2.js +2 -0
- package/dist/{chunk-e6ya95ee.js → chunk-bshgrwe9.js} +2 -2
- package/dist/{chunk-5cf6ny70.js → chunk-cer4dxas.js} +1 -1
- package/dist/{chunk-4dp24aja.js → chunk-csbv8m51.js} +1 -1
- package/dist/{chunk-v78f93yn.js → chunk-d5gt1x0n.js} +1 -1
- package/dist/{chunk-9zgkpv8m.js → chunk-d6ke5e80.js} +2 -2
- package/dist/{chunk-c092x92d.js → chunk-e5m9kg1w.js} +1 -1
- package/dist/{chunk-ztb6vjcg.js → chunk-eqbp85f3.js} +1 -1
- package/dist/{chunk-s0z838qq.js → chunk-et2pdaz7.js} +1 -1
- package/dist/{chunk-g4devj8d.js → chunk-f9z37ptq.js} +2 -2
- package/dist/{chunk-5ygqjna0.js → chunk-geh3wyxw.js} +1 -1
- package/dist/{chunk-8a0fd2f5.js → chunk-gkyvgjyx.js} +1 -1
- package/dist/{chunk-0n26qaxb.js → chunk-gpcsb4tg.js} +1 -1
- package/dist/{chunk-05zhvfrp.js → chunk-h0k80cxs.js} +1 -1
- package/dist/chunk-j2cdjycf.js +2 -0
- package/dist/{chunk-0faa9z99.js → chunk-mcrd86tx.js} +1 -1
- package/dist/{chunk-jj5y2js2.js → chunk-mdercwm8.js} +2 -2
- package/dist/{chunk-hgtbhvyh.js → chunk-mfn37eme.js} +1 -1
- package/dist/{chunk-qe4nwsn7.js → chunk-mtn6vdf8.js} +1 -1
- package/dist/{chunk-cfpm71vd.js → chunk-p1tcxky2.js} +1 -1
- package/dist/chunk-p811gdar.js +2 -0
- package/dist/{chunk-p781sb6h.js → chunk-p8cm3xw1.js} +2 -2
- package/dist/{chunk-y93q3v30.js → chunk-q7ka46hb.js} +3 -3
- package/dist/{chunk-e5mn6ern.js → chunk-qm2jq2bq.js} +1 -1
- package/dist/{chunk-ag8696fb.js → chunk-qvw0kyse.js} +1 -1
- package/dist/{chunk-npev9ffr.js → chunk-rg8kj085.js} +1 -1
- package/dist/chunk-s05ftq29.js +2 -0
- package/dist/{chunk-8rtjn0tg.js → chunk-s3j71dbh.js} +1 -1
- package/dist/{chunk-v0h0jqej.js → chunk-t686zwxk.js} +1 -1
- package/dist/{chunk-3ek4vddd.js → chunk-tctdn4kk.js} +1 -1
- package/dist/{chunk-wrfs7q9f.js → chunk-tknyjndw.js} +1 -1
- package/dist/{chunk-94gqvrk7.js → chunk-v3dq3hx2.js} +2 -2
- package/dist/{chunk-qkv8wzq1.js → chunk-vkj5fznh.js} +2 -2
- package/dist/{chunk-grxjvm9h.js → chunk-whb8ttdy.js} +2 -2
- package/dist/{chunk-xre7g1gy.js → chunk-whzs7yxf.js} +1 -1
- package/dist/{chunk-x6m7zsg1.js → chunk-ww3f6z4x.js} +1 -1
- package/dist/{chunk-rn5bqc82.js → chunk-wyxa2tfm.js} +1 -1
- package/dist/{chunk-xw6rsyvx.js → chunk-ym6jphs4.js} +3 -3
- package/dist/chunk-znagg8v9.js +2 -0
- package/dist/{chunk-wd82qz3x.js → chunk-zpqj0ka8.js} +2 -2
- package/dist/{chunk-ca4vetrh.js → chunk-zzqbe5r0.js} +1 -1
- package/dist/client.js +1 -1
- package/dist/codex/activity-group.js +1 -1
- package/dist/codex/artifact-links.js +1 -1
- package/dist/codex/assistant-message.js +1 -1
- package/dist/codex/image-view-activity.js +1 -1
- package/dist/codex/markdown-renderer.js +1 -1
- package/dist/composer/inline-document.js +1 -1
- package/dist/composer/inline-dom.js +1 -1
- package/dist/composer/prompt-input-inline.js +1 -1
- package/dist/conversation/action-card.js +1 -1
- package/dist/conversation/composer/app-mentions.js +1 -1
- package/dist/conversation/composer/apps-menu.js +1 -1
- package/dist/conversation/composer/composer-menu.js +1 -1
- package/dist/conversation/composer/composer.js +1 -1
- package/dist/conversation/composer/config-options.js +1 -1
- package/dist/conversation/composer/mention-chips.js +1 -1
- package/dist/conversation/composer/model-menu.js +1 -1
- package/dist/conversation/composer/pasted-text-attachment.js +1 -1
- package/dist/conversation/composer/permission-mode-menu.js +1 -1
- package/dist/conversation/composer/prompt-history.js +1 -1
- package/dist/conversation/composer/slash-command-button.js +1 -1
- package/dist/conversation/composer/submit-button.js +1 -1
- package/dist/conversation/composer/usage-meter.js +1 -1
- package/dist/conversation/connection-notice.js +1 -1
- package/dist/conversation/context.js +1 -1
- package/dist/conversation/conversation-body.js +1 -1
- package/dist/conversation/conversation-search.js +1 -1
- package/dist/conversation/conversation-view.d.ts +1 -0
- package/dist/conversation/conversation-view.js +1 -1
- package/dist/conversation/conversation.js +1 -1
- package/dist/conversation/diff-modal.js +1 -1
- package/dist/conversation/draft-project-picker.js +1 -1
- package/dist/conversation/session-actions.js +1 -1
- package/dist/conversation/subagent-sessions.js +1 -1
- package/dist/conversation/subagent-tasks.js +1 -1
- package/dist/desktop/desktop-composer.js +1 -1
- package/dist/desktop/desktop.js +1 -1
- package/dist/desktop/draft-model-select.js +1 -1
- package/dist/desktop/model-catalog.js +1 -1
- package/dist/desktop/model-recovery.js +1 -1
- package/dist/desktop/model-settings-action.js +1 -1
- package/dist/desktop/native-file-drop.js +1 -1
- package/dist/lib/app-reference.js +1 -1
- package/dist/mermaid/diagram.js +1 -1
- package/dist/mermaid/index.js +1 -1
- package/dist/plugins/catalog-skeleton.js +1 -1
- package/dist/plugins/host.d.ts +1 -1
- package/dist/plugins/host.js +1 -1
- package/dist/plugins/plugin-detail-page.js +1 -1
- package/dist/plugins/plugins-page.js +1 -1
- package/dist/plugins/plugins.js +1 -1
- package/dist/plugins/skill-document.js +1 -1
- package/dist/plugins/skills-tab.js +1 -1
- package/dist/plugins/store.d.ts +1 -1
- package/dist/plugins/store.js +1 -1
- package/dist/search/chat-search.js +1 -1
- package/dist/search/codex-source-matches.js +1 -1
- package/dist/search/find-bar.js +1 -1
- package/dist/session-timeline/activity-group.js +1 -1
- package/dist/session-timeline/assistant-content.js +1 -1
- package/dist/session-timeline/assistant-turn.js +1 -1
- package/dist/session-timeline/async-questions.js +1 -1
- package/dist/session-timeline/edited-files-card.js +1 -1
- package/dist/session-timeline/host.js +1 -1
- package/dist/session-timeline/image-generation-progress.js +1 -1
- package/dist/session-timeline/navigation-rail.js +1 -1
- package/dist/session-timeline/resource-content.js +1 -1
- package/dist/session-timeline/session-timeline.js +1 -1
- package/dist/session-timeline/turn-error.js +1 -1
- package/dist/session-timeline/user-message.js +1 -1
- package/dist/settings/codex-account-card.js +1 -1
- package/dist/settings/login-card.js +1 -1
- package/dist/settings/model-alias-settings.js +1 -1
- package/dist/settings/provider-section.js +1 -1
- package/dist/settings/settings.js +1 -1
- package/native/darwin-arm64/artifact.json +1 -1
- package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
- package/native/win32-x64/alwith_native_chat.dll +0 -0
- package/native/win32-x64/artifact.json +1 -1
- package/package.json +2 -7
- package/dist/chunk-200zk66j.js +0 -2
- package/dist/chunk-3vzbqfsh.js +0 -2
- package/dist/chunk-5wqbhb7a.js +0 -2
- package/dist/chunk-7e86wygk.js +0 -2
- package/dist/chunk-ft7k6n4g.js +0 -2
- package/dist/chunk-wdph90qk.js +0 -2
- package/dist/import.d.ts +0 -1
- package/dist/import.js +0 -1
package/dist/chunk-5wqbhb7a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o}from"./chunk-g4devj8d.js";import{kn,e,x}from"./chunk-e6ya95ee.js";import{Ne}from"./chunk-5dgmqyg1.js";import{Gt}from"./chunk-8a0fd2f5.js";import{zt}from"./chunk-hp0eqd8x.js";import{Vt,jt}from"./chunk-y93q3v30.js";import{$t}from"./chunk-94gqvrk7.js";import{LockIcon as H,UnplugIcon as k}from"lucide-react";import{useMemo as O,useRef as S}from"react";import{Alert as C,AlertDescription as N,AlertTitle as h}from"@nyssance/shadcn/vega/components/ui/alert";import{Button as w}from"@nyssance/shadcn/vega/components/ui/button";import{Empty as M,EmptyDescription as P,EmptyHeader as z,EmptyTitle as B}from"@nyssance/shadcn/vega/components/ui/empty";import{jsx as r,jsxs as i}from"react/jsx-runtime";function _s({host:t,client:c,...s}){let m=O(()=>t.openDiff?t:{...t,openDiff:Vt},[t]);return i(kn,{host:m,client:c,children:[r(I,{...s}),!t.openDiff&&r(jt,{})]})}function I({session:t,header:c,overlay:s,timeline:m,composer:D,readOnlyActions:g,welcome:E,children:T,rootRef:l,search:A=!0}){let{host:d,client:R}=e(),p=S(null),b=(a)=>{if(p.current=a,typeof l==="function")l(a);else if(l)l.current=a},{t:n}=d,f=o((a)=>a.connection==="ready"),v=o((a)=>a.historyPages[t.id]?.error),y=()=>x(d,R.open(t.id,t.cwd)),u=t.items.length===0&&t.attached&&!t.restoring&&t.state==="idle";return i("div",{"data-chat-drop-zone":!0,ref:b,className:"flex h-full min-h-0 flex-col",children:[c,i("div",{className:"relative flex min-h-0 flex-1 flex-col","data-chat-content":!0,children:[A&&!u&&r(zt,{sessionId:t.id,rootRef:p}),s,f&&!t.attached&&!t.restoring&&!t.readOnly&&r("div",{className:"mx-auto my-3 w-full max-w-4xl px-4",children:i(C,{children:[r(k,{}),r(h,{children:n("conversation.stopped")}),r(N,{children:r(w,{size:"sm",variant:"outline",onClick:y,children:n("conversation.reconnect")})})]})}),u?E??r(M,{className:"flex-1",children:i(z,{children:[r(B,{className:"text-[28px] font-normal",children:n("conversation.welcomeTitle")}),r(P,{children:n("conversation.welcomeDescription")})]})}):r(Gt,{session:t,timeline:m}),r($t,{sessionId:t.id}),t.readOnly?r("div",{className:"mx-auto w-full max-w-3xl shrink-0 px-6 pb-5","data-readonly-composer":!0,children:i(C,{className:"flex items-center justify-between gap-4 rounded-3xl px-5 py-4",children:[i("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[r(H,{"aria-hidden":"true",className:"size-4 shrink-0"}),i("div",{className:"min-w-0 space-y-1",children:[r(h,{children:n("conversation.readOnlyTitle")}),r(N,{children:n("conversation.readOnlyDescription")}),v&&r("p",{role:"alert",className:"text-destructive break-words",children:v})]})]}),i("div",{className:"border-border flex shrink-0 items-center gap-1 border-s ps-3","data-readonly-actions":!0,children:[r(w,{size:"sm",variant:"outline",className:"text-foreground cursor-pointer disabled:cursor-not-allowed",onClick:y,disabled:!f||t.restoring,children:n(t.restoring?"conversation.restoring":"conversation.readOnlyRetry")}),g]})]})}):D??r(Ne,{session:t})]}),T]})}
|
|
2
|
-
export{_s};
|
package/dist/chunk-7e86wygk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w}from"./chunk-g4devj8d.js";import{e}from"./chunk-e6ya95ee.js";import{me,S}from"./chunk-h8r785ne.js";import{Ee}from"./chunk-7xvrsw7x.js";import{wn}from"./chunk-cfpm71vd.js";import{useState as u}from"react";import{Button as C}from"@nyssance/shadcn/vega/components/ui/button";import{jsx as s,jsxs as x}from"react/jsx-runtime";function xn({client:a,session:f,providers:v,catalog:y}){let{host:r}=e(),d=(o)=>r.reportError?r.reportError(o):console.error(o),i=Ee(v,d),[n,m]=u(!1),[t,p]=u(null),c=w(a.store,(o)=>o.nativeModels),g=t!==null&&(c.some((o)=>o.id===t)||i!==null&&me(i).some((o)=>o.models.some((l)=>S(o.id,l.id)===t)));async function M(o){p(o),m(!0);try{await a.resumeModel(f.id,o)}catch(l){d(l)}finally{m(!1)}}return x("div",{className:"text-muted-foreground flex items-center justify-between gap-3 px-4 py-2 text-sm","aria-busy":n,children:[s("span",{children:r.t("provider.managed.reselect")}),s("fieldset",{disabled:n,children:s(wn,{snapshot:i,model:t,onChange:p,nativeModels:c,catalog:y})}),s(C,{size:"sm",disabled:n||!g,onClick:()=>{if(t!==null)M(t)},children:r.t("provider.managed.resume")})]})}
|
|
2
|
-
export{xn};
|
package/dist/chunk-ft7k6n4g.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d,i}from"./chunk-0faa9z99.js";import{k}from"./chunk-qk1yqepm.js";import{B}from"./chunk-3z5zyra7.js";import{ke}from"./chunk-6e9wwjgv.js";import{Q,Pe,Ie}from"./chunk-e04g26qm.js";import{ExternalLinkIcon as M,PlusIcon as W}from"lucide-react";import{useEffect as _,useState as y}from"react";import{Badge as L}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as q,DialogContent as F,DialogDescription as G,DialogHeader as J,DialogTitle as K}from"@nyssance/shadcn/vega/components/ui/dialog";import{Spinner as S}from"@nyssance/shadcn/vega/components/ui/spinner";import{Switch as X}from"@nyssance/shadcn/vega/components/ui/switch";import{jsx as e,jsxs as s,Fragment as O}from"react/jsx-runtime";function Jt({entry:o,onBack:p}){let u=d(),{t:l}=u,P=i((a)=>a.readPlugin),C=i((a)=>a.installed.find(({plugin:g})=>g.id===o.plugin.id)),v=i((a)=>a.busyIds[o.plugin.id]),T=i((a)=>a.install),H=i((a)=>a.uninstall),V=i((a)=>a.setPluginEnabled),[n,U]=y(null),[D,I]=y(null),[j,R]=y(0),[r,z]=y(null);_(()=>{let a=!0;return I(null),U(null),P(o).then((g)=>{if(a)U(g)},(g)=>{if(a)I(g instanceof Error?g.message:String(g))}),()=>{a=!1}},[o,P,j]);let m=n?.summary??o.plugin,c=C?.plugin??m,t=m.interface,h=t?.displayName??m.name,b=c.availability!=="AVAILABLE"||c.installPolicy==="NOT_AVAILABLE",E=t?.longDescription??n?.description??t?.shortDescription,A=[...u.assetUrl?t?.screenshots.map((a)=>u.assetUrl(a))??[]:[],...t?.screenshotUrls??[]];return s("div",{className:"toolbox-surface flex min-h-0 flex-1 flex-col overflow-hidden",children:[e(Ie,{children:s("header",{className:"flex min-w-0 flex-col gap-4",children:[s("nav",{"aria-label":l("plugins.detail.root"),className:"flex min-w-0 items-center gap-2 text-[13px]",children:[e(f,{variant:"link",size:"sm",className:"text-muted-foreground hover:text-foreground px-2 hover:no-underline",onClick:p,children:l("plugins.detail.root")}),e("span",{"aria-hidden":"true",className:"text-muted-foreground/50 text-sm",children:"/"}),e("span",{"aria-current":"page",className:"truncate",children:h})]}),s("div",{className:"flex min-h-9 flex-wrap items-center justify-between gap-4",children:[s("div",{className:"flex min-w-0 items-center gap-3",children:[e(B,{name:m.name,className:"size-9 shrink-0 rounded-lg"}),e("h1",{className:"min-w-0 text-2xl leading-8 font-semibold break-words",children:h})]}),e("div",{className:"flex shrink-0 items-center gap-3",children:C?s(O,{children:[e(X,{checked:c.enabled,disabled:!!v||b,"aria-label":l(c.enabled?"plugins.card.disable":"plugins.card.enable",{pluginName:h}),onCheckedChange:(a)=>void V(c,a)}),e(f,{variant:"outline",size:"sm",disabled:!!v,onClick:()=>void H(c),children:v?e(S,{}):l("plugins.detail.uninstall")})]}):e(f,{size:"icon-sm",variant:"ghost",className:"text-foreground shrink-0","aria-label":l(b?"plugins.detail.unavailable":"plugins.detail.install"),title:l(b?"plugins.detail.unavailable":"plugins.detail.install"),disabled:!!v||b,onClick:()=>void T({...o,plugin:m}).catch(()=>{}),children:v?e(S,{"aria-hidden":"true"}):e(W,{className:"size-5",strokeWidth:2,"aria-hidden":"true"})})})]})]})}),e(k,{className:"pe-0",viewportClassName:"pe-0",children:s("div",{className:`${Q} pt-2`,children:[t?.shortDescription&&e("p",{className:"text-muted-foreground text-sm leading-6",children:t.shortDescription}),m.keywords.length>0&&e("div",{className:"mt-3 flex flex-wrap gap-2",children:[...new Set(m.keywords)].map((a)=>e(L,{variant:"secondary",className:"text-xs font-normal",children:a},a))}),s("div",{className:"mt-6 flex items-stretch overflow-x-auto border-y py-4",children:[t?.developerName&&e(x,{label:l("plugins.detail.developer"),children:t.developerName}),t?.category&&e(x,{label:l("plugins.detail.category"),children:t.category}),(c.localVersion??c.version)&&e(x,{label:l("plugins.detail.version"),children:c.localVersion??c.version}),e(x,{label:l("plugins.headings.marketplace"),children:o.marketplace.interface?.displayName??o.marketplace.name}),t?.websiteUrl&&e(x,{label:l("plugins.detail.website"),children:e(w,{url:t.websiteUrl,label:l("plugins.detail.website")})})]}),!n&&!D&&s("div",{role:"status",className:"text-muted-foreground mt-8 flex items-center gap-2 text-sm",children:[e(S,{}),l("plugins.detail.loading")]}),D&&s("div",{role:"alert",className:"mt-8 space-y-2",children:[s("p",{className:"text-destructive text-sm",children:[l("plugins.detail.errorTitle"),": ",D]}),e(f,{variant:"outline",size:"sm",className:"h-9",onClick:()=>R((a)=>a+1),children:l("plugins.loadError.retry")})]}),E&&e("p",{className:"mt-8 text-sm leading-6 whitespace-pre-wrap",children:E}),A.length>0&&e("div",{className:"mt-6 flex gap-3 overflow-x-auto",children:[...new Set(A)].map((a)=>e("img",{src:a,alt:h,loading:"lazy",className:"max-h-72 max-w-full rounded-xl border object-contain"},a))}),t&&t.capabilities.length>0&&e(N,{label:l("plugins.detail.capabilities"),count:t.capabilities.length,children:t.capabilities.map((a)=>e(L,{variant:"secondary",className:"me-2",children:a},a))}),n&&n.mcpServers.length>0&&e(N,{label:l("plugins.detail.mcpServers"),count:n.mcpServers.length,children:n.mcpServers.map((a)=>s("div",{className:"flex items-center gap-3 py-1",children:[e(B,{name:m.name,className:"size-6 rounded-md"}),e("span",{className:"text-sm font-medium",children:a})]},a))}),n&&n.skills.length>0&&e(N,{label:l("plugins.detail.skills"),count:n.skills.length,children:n.skills.map((a)=>s(f,{variant:"ghost",className:"h-auto w-full justify-start gap-3 rounded-xl px-3 py-3 text-start whitespace-normal",onClick:()=>z(a),children:[e(B,{name:a.name,className:"size-8"}),s("span",{className:"min-w-0 flex-1",children:[e("span",{className:"block text-sm font-medium",children:a.interface?.displayName??a.name}),e("span",{className:"text-muted-foreground mt-1 block truncate text-[13px] leading-5 font-normal",children:a.interface?.shortDescription??a.shortDescription??a.description})]})]},a.path??a.name))}),n&&n.apps.length>0&&e(N,{label:l("plugins.detail.apps"),count:n.apps.length,children:n.apps.map((a)=>s("div",{className:"rounded-xl px-3 py-3",children:[e("div",{className:"text-sm font-medium",children:a.name}),a.description&&e("p",{className:"text-muted-foreground mt-1 text-[13px] leading-5",children:a.description}),a.installUrl&&e(w,{url:a.installUrl,label:l("plugins.installModal.connect")})]},a.id))}),n&&n.hooks.length>0&&e(N,{label:l("plugins.detail.hooks"),count:n.hooks.length,children:n.hooks.map((a)=>e("p",{className:"text-sm",children:a.eventName},a.key))}),(t?.privacyPolicyUrl||t?.termsOfServiceUrl)&&s("div",{className:"mt-10 flex flex-wrap gap-4 border-t pt-4",children:[t.privacyPolicyUrl&&e(w,{url:t.privacyPolicyUrl,label:l("plugins.detail.privacyPolicy")}),t.termsOfServiceUrl&&e(w,{url:t.termsOfServiceUrl,label:l("plugins.detail.termsOfService")})]})]})}),e(q,{open:r!==null,onOpenChange:(a)=>{if(!a)z(null)},children:e(F,{className:Pe,children:r&&s(O,{children:[e("div",{className:"shrink-0 pr-8",children:e(B,{name:r.name,className:"size-10"})}),s("div",{className:"min-h-0 space-y-6 overflow-y-auto overscroll-contain",children:[s(J,{className:"gap-3",children:[e(K,{className:"text-2xl leading-8 font-semibold break-words",children:r.interface?.displayName??r.name}),e(G,{className:"text-sm leading-6 break-words whitespace-pre-wrap",children:r.description})]}),e(ke,{path:r.path,description:r.description},r.path??r.name)]})]})})})]})}function x({label:o,children:p}){return s("div",{className:"flex min-w-28 shrink-0 flex-col items-center justify-between gap-1.5 border-e px-6 first:ps-2 last:border-e-0",children:[e("span",{className:"text-muted-foreground text-xs",children:o}),e("span",{className:"flex items-center text-sm font-normal",children:p})]})}function N({label:o,count:p,children:u}){return s("section",{className:"mt-8",children:[s("h2",{className:"text-base font-medium",children:[o," ",e("span",{className:"text-muted-foreground font-normal",children:p})]}),e("div",{className:"mt-3 flex flex-col gap-2",children:u})]})}function w({url:o,label:p}){let{openLink:u}=d();if(!/^https?:\/\//i.test(o))return null;return s(f,{variant:"link",className:"text-muted-foreground h-auto p-0 text-xs",title:o,onClick:()=>u(o),children:[p,e(M,{className:"size-3.5"})]})}
|
|
2
|
-
export{Jt};
|
package/dist/chunk-wdph90qk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createStore as I}from"@alwith/api/client";function k(t){return t instanceof Error?t.message:String(t)}function R(t){return t.interface?.displayName??t.name}function v(t){let u={},i=new Map,l=new Map;for(let c of t.data){for(let o of c.skills)if(i.set(o.path,o),o.scope==="repo"){let m=u[c.cwd]??[];if(!m.includes(o.path))m.push(o.path);u[c.cwd]=m}for(let o of c.errors)l.set(o.path,o)}return{skills:[...i.values()],errors:[...l.values()],projects:u}}function A(t){let u=[];for(let i of t.marketplaces)for(let l of i.plugins)if(l.installed)u.push({plugin:l,marketplace:i});return u.toSorted((i,l)=>(l.plugin.installedAt??0)-(i.plugin.installedAt??0))}function ui(t){let{plugin:u,marketplace:i}=t;return{installAttemptId:crypto.randomUUID(),pluginName:i.path===null?u.remotePluginId??u.name:u.name,...i.path===null?{remoteMarketplaceName:i.name}:{marketplacePath:i.path}}}function N(t){let{plugin:u,marketplace:i}=t;return{pluginName:i.path===null?u.remotePluginId??u.name:u.name,...i.path===null?{remoteMarketplaceName:i.name}:{marketplacePath:i.path}}}function nn(t,u){let i=u??{t:(e)=>e},l=(e,r)=>i.t(e,r),c=(e)=>i.notify?.(e),o=(e)=>{if(i.reportError)i.reportError(Error(e));else console.error(e)},m=null,b=null,g=(e)=>S.setState(e),P=()=>S.getState(),y=async(e=!1)=>{if(await P().refresh(void 0,{forceRefetch:e,background:!0}),P().error)throw Error(l("plugins.toast.syncError",{message:P().error}))},f=(e,r)=>g((n)=>{let s={...n.busyIds};if(r===null)delete s[e];else s[e]=r;return{busyIds:s}}),h=(e,r)=>g((n)=>{let s={...n.busyMarketplaces};if(r)s[e]=!0;else delete s[e];return{busyMarketplaces:s}}),M=I({loading:!1,loadedScope:null,upgrading:!1,error:null,cwds:[],marketplaces:[],marketplaceLoadErrors:[],featuredPluginIds:[],installed:[],skills:[],skillProjects:{},skillErrors:[],busyIds:{},busySkills:{},busyMarketplaces:{},refresh:(e=P().cwds,r={})=>{let n=r.forceRefetch===!0||m?.forceRefetch===!0,s=r.catalog!==!1||n||m?.catalog===!0;if(m={cwds:e,forceRefetch:n,catalog:s},g({cwds:e,...!r.background?{loading:!0}:{}}),b)return b;return b=(async()=>{while(m){let a=m;m=null,g({error:null});try{let[d,p,E]=await Promise.all([t.listSkills(a.cwds,a.forceRefetch),a.catalog?t.listPlugins({...a.cwds.length>0?{cwds:a.cwds}:{},...a.forceRefetch?{forceRefetch:!0}:{}}):null,t.installedPlugins(a.cwds)]);if(m)continue;let w=v(d);g({loadedScope:JSON.stringify(a.cwds),skills:w.skills,skillProjects:w.projects,skillErrors:w.errors,...p?{marketplaces:p.marketplaces,marketplaceLoadErrors:p.marketplaceLoadErrors,featuredPluginIds:p.featuredPluginIds}:{},installed:A(E)})}catch(d){if(!m)g({error:k(d)})}}})().finally(()=>{b=null,g({loading:!1})}),b},install:async(e)=>{if(e.plugin.id in P().busyIds)throw Error("Plugin operation already in progress");let r=R(e.plugin);f(e.plugin.id,"installing");try{let n=await t.installPlugin(ui(e));return await y(),f(e.plugin.id,null),c(l("plugins.toast.installed",{pluginName:r})),n}catch(n){throw o(`${l("plugins.toast.installError")}: ${k(n)}`),n}finally{f(e.plugin.id,null)}},setPluginEnabled:async(e,r)=>{if(e.id in P().busyIds)return;f(e.id,"toggling");let n=(a)=>g((d)=>({installed:d.installed.map((p)=>p.plugin.id===e.id?{...p,plugin:{...p.plugin,enabled:a}}:p)}));n(r);let s=e.enabled;try{let a=e.source.type==="remote"?e.remotePluginId:void 0;if(a===null)throw Error("Remote plugin ID is missing");let d=await t.setPluginEnabled(e.id,r,a);s=d.enabled,n(d.enabled),await y();let p=P().installed.find((E)=>E.plugin.id===e.id);if(p)s=p.plugin.enabled;if(!p||s!==r)throw Error(l("plugins.toast.toggleNotApplied"));f(e.id,null),c(l(r?"plugins.toast.enabled":"plugins.toast.disabled",{pluginName:R(e)}))}catch(a){n(s),o(`${l("plugins.toast.toggleError")}: ${k(a)}`)}finally{f(e.id,null)}},uninstall:async(e)=>{if(e.id in P().busyIds)return;let r=R(e);f(e.id,"uninstalling");try{let n=e.source.type==="remote"?e.remotePluginId:e.id;if(!n)throw Error("Remote plugin ID is missing");if(await t.uninstallPlugin(n),await y(),P().installed.some((s)=>s.plugin.id===e.id))throw Error(l("plugins.toast.uninstallNotApplied"));f(e.id,null),c(l("plugins.toast.uninstalled",{pluginName:r}))}catch(n){o(`${l("plugins.toast.uninstallError")}: ${k(n)}`)}finally{f(e.id,null)}},readPlugin:async(e)=>(await t.readPlugin(N(e))).plugin,setSkillEnabled:async(e,r)=>{if(e.path in P().busySkills)return;g((s)=>({busySkills:{...s.busySkills,[e.path]:!0}})),g((s)=>({skills:s.skills.map((a)=>a.path===e.path?{...a,enabled:r}:a)}));let n=e.interface?.displayName??e.name;try{let s=await t.setSkillEnabled({path:e.path,enabled:r});if(g((a)=>({skills:a.skills.map((d)=>d.path===e.path?{...d,enabled:s.effectiveEnabled}:d)})),s.effectiveEnabled!==r){o(l("plugins.catalog.toggleNotApplied"));return}c(l(r?"plugins.skills.enabledToast":"plugins.skills.disabledToast",{skillName:n}))}catch(s){g((a)=>({skills:a.skills.map((d)=>d.path===e.path?{...d,enabled:e.enabled}:d)})),o(`${l("plugins.skills.toggleError")}: ${k(s)}`)}finally{g((s)=>{let a={...s.busySkills};return delete a[e.path],{busySkills:a}})}},addMarketplace:async(e)=>{let r=await t.addMarketplace(e);return await y(!0),c(r.alreadyAdded?l("plugins.marketplace.alreadyAdded",{marketplaceName:r.marketplaceName}):l("plugins.marketplace.added",{marketplaceName:r.marketplaceName})),r},removeMarketplace:async(e)=>{h(e,!0);try{await t.removeMarketplace(e),await y(),h(e,!1),c(l("plugins.marketplace.removed",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.removeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeMarketplace:async(e)=>{h(e,!0);try{let r=await t.upgradeMarketplaces(e);if(await y(!0),h(e,!1),r.errors.length>0)o(`${l("plugins.marketplace.upgradeError")}: ${r.errors.map((n)=>n.message).join("; ")}`);else c(l("plugins.marketplace.upgraded",{marketplaceName:e}))}catch(r){o(`${l("plugins.marketplace.upgradeError")}: ${k(r)}`)}finally{h(e,!1)}},upgradeAll:async()=>{if(P().upgrading)return;g({upgrading:!0});try{let e=await t.upgradeMarketplaces();if(await y(!0),g({upgrading:!1}),e.errors.length>0)o(l("plugins.marketplace.upgradeAllError"));else c(l("plugins.marketplace.upgradedAll"))}catch(e){o(`${l("plugins.marketplace.upgradeAllRequestError")}: ${k(e)}`)}finally{g({upgrading:!1})}}}),S=Object.assign(M,{bindHost:(e)=>{i=e}});return S}
|
|
2
|
-
export{ui,nn};
|
package/dist/import.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@nyssance/codex-acp-v2/import";
|
package/dist/import.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from"@nyssance/codex-acp-v2/import";
|