dal-code 1.0.33 → 1.0.34
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 +8 -0
- package/NOTICE +8 -0
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/agent-session.js +8 -8
- package/dist/core/bash-executor.js +1 -1
- package/dist/core/bug-report.js +4 -4
- package/dist/core/compaction/branch-summarization.js +2 -2
- package/dist/core/compaction/compaction.d.ts +4 -2
- package/dist/core/compaction/compaction.js +13 -13
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/index.js +1 -1
- package/dist/core/compaction/tool-output-pruning.d.ts +19 -0
- package/dist/core/compaction/tool-output-pruning.js +7 -0
- package/dist/core/compaction/utils.d.ts +1 -0
- package/dist/core/compaction/utils.js +9 -9
- package/dist/core/settings-manager.d.ts +11 -2
- package/dist/core/settings-manager.js +1 -1
- package/dist/core/source-info.d.ts +1 -0
- package/dist/core/source-info.js +1 -1
- package/dist/core/tools/bash.js +18 -14
- package/dist/core/tools/output-accumulator.js +3 -3
- package/dist/core/tools/output-condense.js +3 -0
- package/dist/core/tools/powershell.js +1 -1
- package/dist/dal/manifest.js +1 -1
- package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-goal/LICENSE +45 -0
- package/dist/node_modules/@dalcode/dal-goal/package.json +35 -0
- package/dist/node_modules/@dalcode/dal-goal/src/core.js +10 -0
- package/dist/node_modules/@dalcode/dal-goal/src/index.js +7 -0
- package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-lsp/package.json +4 -3
- package/dist/node_modules/@dalcode/dal-lsp/src/checkers.js +4 -0
- package/dist/node_modules/@dalcode/dal-lsp/src/index.js +8 -6
- package/dist/node_modules/@dalcode/dal-mcp/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +3 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +3 -2
- package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -2
- package/dist/node_modules/@dalcode/dal-plugins/src/brand.d.ts +17 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/brand.js +1 -1
- package/dist/node_modules/@dalcode/dal-plugins/src/index.js +12 -8
- package/dist/node_modules/@dalcode/dal-plugins/src/manage.js +8 -8
- package/dist/node_modules/@dalcode/dal-plugins/src/market.js +4 -0
- package/dist/node_modules/@dalcode/dal-plugins/src/settings.js +1 -1
- package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-rewind/LICENSE +24 -0
- package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-router/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-router/src/index.js +4 -4
- package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
- package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
- package/dist/node_modules/@dalcode/deepailab/src/index.js +2 -2
- package/dist/node_modules/@earendil-works/chord/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-client/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-protocol/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-server/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +1 -1
- package/dist/utils/clipboard-image.js +1 -1
- package/dist/utils/clipboard.js +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-plugins",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
25
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
26
|
+
"@dalcode/dal-skills": "1.0.34",
|
|
27
|
+
"@dalcode/deepailab": "1.0.34",
|
|
26
28
|
"typebox": "1.3.27"
|
|
27
29
|
},
|
|
28
30
|
"peerDependencies": {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ExtensionAPI, ExtensionUIContext } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
export declare function brandText(text: string): string;
|
|
3
|
+
export declare function brandUI(ui: ExtensionUIContext): ExtensionUIContext;
|
|
4
|
+
export declare function brandContext<T>(ctx: T): T;
|
|
5
|
+
export interface PackageInfo {
|
|
6
|
+
name?: string;
|
|
7
|
+
root: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function findPackageInfo(resolvedPath: string): PackageInfo | undefined;
|
|
10
|
+
export declare function isCommunityExtension(resolvedPath: string, info?: PackageInfo | undefined): boolean;
|
|
11
|
+
export interface CommunityApiHooks {
|
|
12
|
+
onUse?: () => void;
|
|
13
|
+
onRegisterTool?: (name: string) => void;
|
|
14
|
+
acceptTool?: (name: string) => boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function brandSchema<T>(schema: T): T;
|
|
17
|
+
export declare function decorateCommunityApi(api: ExtensionAPI, hooks?: CommunityApiHooks): ExtensionAPI;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var W=Object.defineProperty;var p=(t,e)=>W(t,"name",{value:e,configurable:!0});var j=Object.defineProperty,n=p((t,e)=>j(t,"name",{value:e,configurable:!0}),"s");import{existsSync as M,readFileSync as v}from"node:fs";import{dirname as x,isAbsolute as S,join as k}from"node:path";const I=/(?<![\w@./\\~-])(?:pi|Pi)(?![\w/-]|\.\w)/g;function i(t){return t.replace(I,"DAL")}p(i,"a"),n(i,"brandText");const u=n(t=>t===void 0?void 0:i(t),"brandOptional");function C(t){return{notify:n((e,r)=>{if(typeof e=="string"){t.notify(i(e),r);return}const s=e;t.notify({...s,message:i(String(s.message))})},"notify"),setWidget:n((e,r,s)=>{const o=Array.isArray(r)?r.map(a=>i(String(a))):r;t.setWidget(e,o,s)},"setWidget"),select:n(async(e,r,s)=>{const o=r.map(i);if(new Set(o).size!==o.length)return t.select(i(e),r,s);const a=await t.select(i(e),o,s);if(a===void 0)return;const c=o.indexOf(a);return c>=0?r[c]:a},"select"),confirm:n((e,r,s)=>t.confirm(i(e),i(r),s),"confirm"),input:n((e,r,s)=>t.input(i(e),u(r),s),"input"),editor:n((e,r)=>t.editor(i(e),r),"editor"),setStatus:n((e,r)=>t.setStatus(e,u(r)),"setStatus"),setWorkingMessage:n(e=>t.setWorkingMessage(u(e)),"setWorkingMessage"),setTitle:n(e=>t.setTitle(i(e)),"setTitle"),setPanel:n((e,r)=>t.setPanel(e,r&&{...r,title:u(r.title),lines:r.lines?.map(i)}),"setPanel"),requestInput:n(e=>t.requestInput({...e,title:i(e.title),placeholder:u(e.placeholder)}),"requestInput"),requestChoice:n(e=>t.requestChoice({...e,title:i(e.title),items:e.items.map(r=>({...r,label:i(r.label),description:u(r.description)}))}),"requestChoice")}}p(C,"U"),n(C,"uiOverrides");const w=new WeakMap;function b(t){const e=w.get(t);if(e)return e;const r=C(t),s=new Proxy(t,{get(o,a,c){const l=Reflect.get(o,a,o);if(typeof l!="function")return l;const m=r[a];return typeof m=="function"?m:l.bind(o)}});return w.set(t,s),s}p(b,"E"),n(b,"brandUI");function f(t){return!t||typeof t!="object"?t:new Proxy(t,{get(e,r,s){const o=Reflect.get(e,r,e);return r==="ui"&&o&&typeof o=="object"?b(o):typeof o=="function"?o.bind(e):o}})}p(f,"g"),n(f,"brandContext");function h(t){if(!S(t))return;let e=x(t);for(;;){const r=k(e,"package.json");if(M(r))try{const o=JSON.parse(v(r,"utf8"));return{name:typeof o.name=="string"?o.name:void 0,root:e}}catch{return{root:e}}const s=x(e);if(s===e)return;e=s}}p(h,"v"),n(h,"findPackageInfo");function A(t,e=h(t)){return S(t)?!e?.name?.startsWith("@dalcode/"):!1}p(A,"W"),n(A,"isCommunityExtension");function g(t){if(Array.isArray(t))return t.map(r=>g(r));if(!t||typeof t!="object")return t;const e={};for(const r of Reflect.ownKeys(t)){const s=t[r];e[r]=(r==="description"||r==="title")&&typeof s=="string"?i(s):g(s)}return e}p(g,"p"),n(g,"brandSchema");function d(t){return typeof t=="string"?i(t):Array.isArray(t)?t.map(e=>e&&e.type==="text"&&typeof e.text=="string"?{...e,text:i(e.text)}:e):t}p(d,"m"),n(d,"brandContent");function P(t,e){if(!e||typeof e!="object")return e;const r={...e},s=t?.systemPrompt;return typeof r.systemPrompt=="string"&&typeof s=="string"&&r.systemPrompt!==s&&(r.systemPrompt.startsWith(s)?r.systemPrompt=s+i(r.systemPrompt.slice(s.length)):r.systemPrompt.endsWith(s)&&(r.systemPrompt=i(r.systemPrompt.slice(0,-s.length))+s)),r.message&&typeof r.message=="object"&&(r.message={...r.message,content:d(r.message.content)}),r}p(P,"k"),n(P,"brandAgentStartResult");function T(t,e={}){const r=t.on;return{...t,on:n(((s,o)=>r(s,(a,c,...l)=>{const m=o(a,f(c),...l);return s!=="before_agent_start"?m:m instanceof Promise?m.then(y=>P(a,y)):P(a,m)})),"on"),registerTool:n(s=>{if(e.onRegisterTool?.(s.name),e.acceptTool&&!e.acceptTool(s.name))return;const o={execute:n((a,c,l,m,y)=>(e.onUse?.(),s.execute.call(s,a,c,l,m,f(y))),"execute"),label:typeof s.label=="string"?i(s.label):s.label,description:typeof s.description=="string"?i(s.description):s.description,promptSnippet:u(s.promptSnippet),promptGuidelines:s.promptGuidelines?.map(a=>i(a)),parameters:g(s.parameters)};t.registerTool(new Proxy(s,{get:n((a,c,l)=>Object.hasOwn(o,c)?o[c]:Reflect.get(a,c,l),"get")}))},"registerTool"),registerCommand:n((s,o)=>t.registerCommand(s,{...o,description:u(o.description),handler:n((a,c)=>(e.onUse?.(),o.handler(a,f(c))),"handler")}),"registerCommand"),registerShortcut:n((s,o)=>t.registerShortcut(s,{...o,description:u(o.description),handler:n(a=>o.handler(f(a)),"handler")}),"registerShortcut"),registerFlag:n((s,o)=>t.registerFlag(s,{...o,description:u(o.description)}),"registerFlag"),sendMessage:n((s,o)=>t.sendMessage({...s,content:d(s.content)},o),"sendMessage"),sendUserMessage:n((s,o)=>t.sendUserMessage(d(s),o),"sendUserMessage")}}p(T,"j"),n(T,"decorateCommunityApi");export{f as brandContext,g as brandSchema,i as brandText,b as brandUI,T as decorateCommunityApi,h as findPackageInfo,A as isCommunityExtension};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var X=Object.defineProperty;var p=(n,r)=>X(n,"name",{value:r,configurable:!0});var Z=Object.defineProperty,i=p((n,r)=>Z(n,"name",{value:r,configurable:!0}),"a");import{t as u}from"@dalcode/dal-pi-kit";import{defaultConfig as uu}from"@dalcode/deepailab/oidc";import{getAgentDir as eu,getPackageDir as tu}from"@earendil-works/pi-coding-agent";import{Type as w}from"typebox";import{brandText as au,decorateCommunityApi as ru,findPackageInfo as su,isCommunityExtension as nu}from"./brand.js";import{applyCommunityEnv as ou}from"./compat.js";import{autoUpdateAllowed as iu,communityPackages as Fu,createPluginManager as h,installPlugin as lu,promptStalePlugins as _,readPluginSettings as cu,updatePlugins as I}from"./manage.js";import{fetchMarketPackages as mu,formatMarket as Eu,installsPackage as Du,isMarketResult as v,matchMarket as gu}from"./market.js";import{createNpmArgsHook as pu,installNpmArgsHook as Au}from"./npm-hook.js";import{latestUserText as du,rankPluginResults as Cu}from"./rank.js";import{chooseRegistry as L,NPMJS_REGISTRY as fu,searchPlugins as hu}from"./registry.js";import{readState as B,registryCachePath as Bu,statePath as yu,UsageRecorder as $u,updateState as wu}from"./state.js";import{hostToolNames as q,shadowedTools as Pu,ToolOwnership as Tu}from"./tools.js";const ku=Symbol.for("dalcode.extensions.apiDecorator"),J=Symbol.for("dalcode.plugins.packageTools");function G(){const n=globalThis;return n[J]??=new Map,n[J]}p(G,"Ae"),i(G,"packageTools");const H=8,W=20,bu=w.Object({query:w.String({description:u("\u8981\u627E\u7684\u80FD\u529B\uFF0C\u7528\u82F1\u6587\u5173\u952E\u8BCD\u6548\u679C\u6700\u597D\uFF0C\u4F8B\u5982 todo\u3001memory\u3001browser\u3001mcp\u3002")}),limit:w.Optional(w.Number({description:u("\u8FD4\u56DE\u7ED3\u679C\u6570\uFF081\u201320\uFF0C\u9ED8\u8BA4 8\uFF09"),minimum:1,maximum:W}))});function R(n){return n?n.slice(0,10):"?"}p(R,"B"),i(R,"formatDate");function z(n){if(!n)return"?";const r=Object.entries(n);return r.length>0?r.map(([m,D])=>`${m} ${D}`).join(", "):u("\u65E0")}p(z,"be"),i(z,"formatPeers");function P(n,r,m=new Map,D=[]){return r.length===0?`${u("\u6CA1\u6709\u627E\u5230\u76F8\u5173\u63D2\u4EF6\uFF1A")}${n}`:r.map((l,A)=>{const c=l.installScripts&&Object.keys(l.installScripts).length>0,d=m.get(l.name),f=v(l,D)?u("DAL \u5E02\u573A"):u("\u672A\u5BA1\u6838\u7684\u7B2C\u4E09\u65B9\u4EE3\u7801");return[`${A+1}. [${f}] ${d?"\u2605 ":""}${l.name}@${l.version} \u2014 ${l.description?au(l.description):u("\uFF08\u65E0\u63CF\u8FF0\uFF09")}`,...d?[` ${u("\u63A8\u8350\u7406\u7531\uFF1A\u6309\u4F60\u7684\u4EFB\u52A1\u5224\u65AD\uFF0C\u5B83\u76F4\u63A5\u63D0\u4F9B\u6240\u9700\u7684\u80FD\u529B")} (${u("\u7F6E\u4FE1\u5EA6 ")}${Math.round(d.confidence*100)}%)`]:[],` ${u("\u5468\u4E0B\u8F7D\uFF1A")}${l.weeklyDownloads??"?"} \xB7 ${u("\u6700\u540E\u53D1\u5E03\uFF1A")}${R(l.published)} \xB7 ${u("peer \u4F9D\u8D56\uFF1A")}${z(l.peerDependencies)}${c?` \xB7 ${u("\u542B\u5B89\u88C5\u811A\u672C")}`:""}`,` ${u("\u5B89\u88C5\uFF1A")}/plugins install ${l.source}`].join(`
|
|
2
2
|
`)}).join(`
|
|
3
|
-
`)}
|
|
4
|
-
`)}
|
|
3
|
+
`)}p(P,"F"),i(P,"formatSearchResults");function x(n){return n.map(r=>{const m=`${r.from??"?"} \u2192 ${r.to??"?"}`;switch(r.status){case"updated":return`${r.name} ${m}`;case"rolled-back":return`${r.name} ${m} ${u("\u52A0\u8F7D\u5931\u8D25\uFF0C\u5DF2\u56DE\u6EDA\uFF1A")}${r.error??""}`;case"skipped":return`${r.name} ${m} ${u("\u6B64\u7248\u672C\u4E4B\u524D\u52A0\u8F7D\u5931\u8D25\uFF0C\u5DF2\u8DF3\u8FC7")}`;default:return`${r.name} ${u("\u66F4\u65B0\u5931\u8D25\uFF1A")}${r.error??""}`}}).join(`
|
|
4
|
+
`)}p(x,"G"),i(x,"formatOutcomes");const j=i(()=>u("\u7528\u6CD5\uFF1A/plugins search <\u5173\u952E\u8BCD> | /plugins install <npm:\u5305\u540D|git:...> [--local] | /plugins list | /plugins update | /plugins prune | /plugins registry"),"USAGE");function K(n){const r=eu();let m;try{m=tu()}catch{m=void 0}ou({agentDir:r,packageDir:m});const D=cu(r),l=Bu(r),A=i(async(o=!1)=>(await L({cachePath:l,configured:D.registry,force:o})).registry,"resolveRegistry");Au(pu(()=>A()));const c=yu(r),d=new $u(c),f=G(),T=Pu(),M=new Tu(B(c).hostTools??[]);globalThis[ku]=(o,e)=>{const F=su(e.resolvedPath);if(!nu(e.resolvedPath,F))return{...o,registerTool:i(t=>{M.claim(t.name,e.extensionPath,!1),o.registerTool(t)},"registerTool")};const s=F?.name;return ru(o,{onUse:s?()=>d.record(s):void 0,onRegisterTool:s?t=>{const a=f.get(s)??new Set;a.add(t),f.set(s,a)}:void 0,acceptTool:i(t=>{if(M.claim(t,e.extensionPath,!0))return!0;if(s){const a=T.get(s)??new Set;a.add(t),T.set(s,a)}return!1},"acceptTool")})};const N=i(async(o,e)=>hu(o,{size:e,metadataRegistry:await A()??fu}),"search");n.registerTool({name:"plugin_search",label:u("\u641C\u7D22\u63D2\u4EF6"),description:u("\u641C\u7D22\u80FD\u6269\u5C55\u4F60\u80FD\u529B\u7684\u63D2\u4EF6\uFF1A\u5148\u5217 DAL \u5E02\u573A\uFF08DeepAILab \u4E3A\u7528\u6237\u8D26\u53F7\u5217\u51FA\u7684\u63D2\u4EF6\uFF09\uFF0C\u518D\u5217 npm \u4E0A\u7684\u793E\u533A\u63D2\u4EF6\uFF0C\u8FD4\u56DE\u540D\u79F0\u3001\u63CF\u8FF0\u3001\u5468\u4E0B\u8F7D\u91CF\u3001\u6700\u540E\u53D1\u5E03\u65F6\u95F4\u548C peer \u4F9D\u8D56\u3002\u5F53\u4F60\u7F3A\u5C11\u5B8C\u6210\u4EFB\u52A1\u6240\u9700\u7684\u67D0\u79CD\u80FD\u529B\u65F6\u4F7F\u7528\u3002\u793E\u533A\u63D2\u4EF6\u662F\u672A\u7ECF DAL \u5BA1\u6838\u7684\u7B2C\u4E09\u65B9\u4EE3\u7801\uFF0C\u4F1A\u4EE5\u7528\u6237\u7684\u6743\u9650\u5728\u7528\u6237\u7535\u8111\u4E0A\u8FD0\u884C\u3002\u4F60\u7EDD\u4E0D\u80FD\u81EA\u5DF1\u5B89\u88C5\u63D2\u4EF6\uFF08\u4E0D\u8981\u8FD0\u884C dal install\u3001npm install \u7B49\u547D\u4EE4\uFF09\uFF1A\u628A\u5019\u9009\u544A\u8BC9\u7528\u6237\u5E76\u6807\u660E\u54EA\u4E9B\u672A\u7ECF\u5BA1\u6838\uFF0C\u7531\u7528\u6237\u51B3\u5B9A\u662F\u5426\u6267\u884C /plugins install\u3002"),promptSnippet:u("plugin_search - \u641C\u7D22\u63D2\u4EF6\uFF08\u7F3A\u5C11\u67D0\u79CD\u80FD\u529B\u65F6\uFF09\uFF1B\u53EA\u63A8\u8350\uFF0C\u4E0D\u5B89\u88C5"),parameters:bu,execute:i(async(o,e,F,s,t)=>{const a=e.query.trim();if(!a)throw new Error(u("plugin_search\uFF1Aquery \u4E0D\u80FD\u4E3A\u7A7A\u3002"));const g=Math.min(Math.max(1,Math.floor(e.limit??H)),W);let E;try{E=await t.modelRegistry?.getApiKeyForProvider?.("deepailab")}catch{E=void 0}const[y,C]=await Promise.all([N(a,g),mu(uu().apiBase,E)]);let k="";try{k=du(t.sessionManager.getBranch())}catch{k=""}const $=await Cu(k,a,y),O=gu(a,C),b=[...$.results.filter(S=>v(S,C)),...$.results.filter(S=>!v(S,C))],Q=u("\u63D2\u4EF6\u53EA\u80FD\u7531\u7528\u6237\u5B89\u88C5\uFF1A\u628A\u5019\u9009\u548C\u5B89\u88C5\u547D\u4EE4\u544A\u8BC9\u7528\u6237\uFF0C\u5E76\u8BF4\u660E\u6807\u4E3A\u201C\u672A\u5BA1\u6838\u7684\u7B2C\u4E09\u65B9\u4EE3\u7801\u201D\u7684\u63D2\u4EF6\u672A\u7ECF DAL \u5BA1\u6838\u3001\u4F1A\u4EE5\u7528\u6237\u6743\u9650\u8FD0\u884C\u3002\u4E0D\u8981\u81EA\u5DF1\u8FD0\u884C\u4EFB\u4F55\u5B89\u88C5\u547D\u4EE4\u3002"),U=Eu(O),V=`${u("\u793E\u533A\u63D2\u4EF6\uFF08npm\uFF09\uFF1A")}
|
|
5
|
+
${P(a,b,$.recommended,C)}`;return{content:[{type:"text",text:`${U?`${U}
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
`:""}${V}
|
|
8
|
+
|
|
9
|
+
${Q}`}],details:{query:a,count:b.length,results:b,market:O,recommended:[...$.recommended.keys()]}}},"execute")});const Y=i(o=>{const e=h(o.cwd,r),F=Fu(e);if(F.length===0)return u("\u8FD8\u6CA1\u6709\u5B89\u88C5\u793E\u533A\u63D2\u4EF6\u3002\u7528 /plugins search <\u5173\u952E\u8BCD> \u67E5\u627E\u3002");const s=B(c),t=n.getAllTools();return F.map(a=>{const g=[...f.get(a.name)??[]].map(E=>{const y=t.find(C=>C.name===E);return y&&a.installedPath&&y.sourceInfo.path.startsWith(a.installedPath)&&!T.get(a.name)?.has(E)?E:`${E}${u("\uFF08\u4E0E\u5185\u7F6E\u5DE5\u5177\u540C\u540D\uFF0C\u672A\u52A0\u8F7D\uFF09")}`}).join(", ");return[`${a.name}@${a.version??"?"} (${a.scope==="project"?u("\u9879\u76EE\u7EA7"):u("\u7528\u6237\u7EA7")})`,` ${u("\u6700\u8FD1\u4F7F\u7528\uFF1A")}${R(s.lastUsed[a.name])}`,` ${u("\u5DE5\u5177\uFF1A")}${g||u("\u65E0")}`].join(`
|
|
7
10
|
`)}).join(`
|
|
8
|
-
`)},"listPlugins");
|
|
9
|
-
`);e.ui.notify(`${u("\u4E0B\u8F7D\u6E90\uFF1A")}${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
11
|
+
`)},"listPlugins");n.registerCommand("plugins",{description:u("\u793E\u533A\u63D2\u4EF6\uFF1A\u641C\u7D22\u3001\u5B89\u88C5\u3001\u5217\u8868\u3001\u66F4\u65B0\u3001\u6E05\u7406"),getArgumentCompletions:i(o=>{const e=["search","install","list","update","prune","registry"],F=o.trimStart();return F.includes(" ")?null:e.filter(s=>s.startsWith(F)).map(s=>({value:s,label:s}))},"getArgumentCompletions"),handler:i(async(o,e)=>{const[F="",...s]=o.trim().split(/\s+/).filter(Boolean);switch(F){case"search":{const t=s.join(" ");if(!t){e.ui.notify(j(),"warning");return}try{e.ui.notify(P(t,await N(t,H)),"info")}catch(a){e.ui.notify(`${u("\u641C\u7D22\u5931\u8D25\uFF1A")}${a instanceof Error?a.message:String(a)}`,"error")}return}case"install":{const t=s.includes("--local"),a=s.find(g=>g!=="--local");if(!a){e.ui.notify(j(),"warning");return}await lu(a,t,e,{manager:h(e.cwd,r),statePath:c,resolveRegistry:i(()=>A(),"resolveRegistry"),hostToolNames:i(()=>q(n.getAllTools()),"hostToolNames")});return}case"list":e.ui.notify(Y(e),"info");return;case"update":{const t=await I({manager:h(e.cwd,r),statePath:c,resolveRegistry:i(()=>A(),"resolveRegistry")},!0);e.ui.notify(t.length>0?x(t):u("\u63D2\u4EF6\u90FD\u662F\u6700\u65B0\u7248\u672C\u3002"),"info");return}case"prune":{(await _(e,h(e.cwd,r),c,D.staleDays,B(c))).length===0&&e.ui.notify(u("\u6CA1\u6709\u9700\u8981\u6E05\u7406\u7684\u63D2\u4EF6\u3002"),"info");return}case"registry":{const t=await L({cachePath:l,configured:D.registry,force:!0}),a=Object.entries(t.timings).map(([g,E])=>` ${g}: ${E===null?u("\u65E0\u54CD\u5E94"):`${E} ms`}`).join(`
|
|
12
|
+
`);e.ui.notify(`${u("\u4E0B\u8F7D\u6E90\uFF1A")}${t.registry??u("npm \u9ED8\u8BA4\u914D\u7F6E")} (${t.reason})
|
|
13
|
+
${a}`,"info");return}default:e.ui.notify(j(),"info")}},"handler")}),n.on("session_start",(o,e)=>{const F=q(n.getAllTools());if(JSON.stringify(F)!==JSON.stringify(B(c).hostTools??[]))try{wu(c,t=>{t.hostTools=F})}catch{}if(o.reason!=="startup"||!e.hasUI)return;const s=h(e.cwd,r);_(e,s,c,D.staleDays,B(c)).catch(()=>{}),D.autoUpdate!==!1&&I({manager:s,statePath:c,resolveRegistry:i(()=>A(),"resolveRegistry"),allow:i(t=>iu(D,t),"allow")}).then(t=>{if(t.length===0)return;const a=t.some(g=>g.status!=="updated");e.ui.notify(`${u("\u63D2\u4EF6\u540E\u53F0\u66F4\u65B0\uFF08\u91CD\u542F\u6216 /reload \u540E\u751F\u6548\uFF09\uFF1A")}
|
|
14
|
+
${x(t)}`,a?"warning":"info")}).catch(()=>{})}),n.on("tool_call",async(o,e)=>{if(o.toolName!=="bash"&&o.toolName!=="powershell")return;const F=o.input.command;if(typeof F!="string"||!Du(F))return;const s=u("\u5B89\u88C5\u6216\u66F4\u65B0\u63D2\u4EF6\u5FC5\u987B\u7531\u7528\u6237\u786E\u8BA4\uFF1A\u8BF7\u628A\u63D2\u4EF6\u548C\u5B89\u88C5\u547D\u4EE4\u544A\u8BC9\u7528\u6237\uFF0C\u7531\u7528\u6237\u6267\u884C /plugins install\u3002");return e.hasUI?await e.ui.confirm(u("\u5141\u8BB8\u52A9\u624B\u5B89\u88C5\u6216\u66F4\u65B0\u63D2\u4EF6\uFF1F"),`${F}
|
|
15
|
+
${u("\u63D2\u4EF6\u662F\u672A\u7ECF DAL \u5BA1\u6838\u7684\u7B2C\u4E09\u65B9\u4EE3\u7801\uFF0C\u4F1A\u4EE5\u4F60\u7684\u6743\u9650\u5728\u672C\u673A\u8FD0\u884C\u3002")}`)?void 0:{block:!0,reason:s}:{block:!0,reason:s}}),n.on("session_shutdown",()=>{d.flush()})}p(K,"Ee"),i(K,"dalPlugins");export{K as default,P as formatSearchResults};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var Y=Object.defineProperty;var F=(u,e)=>Y(u,"name",{value:e,configurable:!0});var G=Object.defineProperty,g=F((u,e)=>G(u,"name",{value:e,configurable:!0}),"
|
|
2
|
-
`)}F(T,"
|
|
3
|
-
${T(
|
|
4
|
-
${o("\u62D2\u7EDD\u5219\u4EE5 --ignore-scripts \u5B89\u88C5\uFF0C\u63D2\u4EF6\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u5DE5\u4F5C\u3002")}`)&&m.allowScripts.add(i.name)}y(
|
|
1
|
+
var Y=Object.defineProperty;var F=(u,e)=>Y(u,"name",{value:e,configurable:!0});var G=Object.defineProperty,g=F((u,e)=>G(u,"name",{value:e,configurable:!0}),"d");import{existsSync as V,mkdtempSync as q,readFileSync as K,rmSync as Q}from"node:fs";import{tmpdir as X}from"node:os";import{join as M}from"node:path";import{t as o}from"@dalcode/dal-pi-kit";import{DefaultPackageManager as Z,discoverAndLoadExtensions as uu,SettingsManager as eu}from"@earendil-works/pi-coding-agent";import{scanHardcodedPiPaths as au}from"./compat.js";import{npmHookState as L,packageNameOfSpec as tu}from"./npm-hook.js";import{fetchPackageMetadata as O}from"./registry.js";import{autoUpdateAllowed as nu,DEFAULT_STALE_DAYS as su,readPluginSettings as ru}from"./settings.js";import{readState as ou,updateState as D}from"./state.js";function x(u,e){return new Z({cwd:u,agentDir:e,settingsManager:eu.create(u,e)})}F(x,"fe"),g(x,"createPluginManager");function B(u){const e=u.trim();return/^(npm|git|https?|ssh):/.test(e)||/^[./~]/.test(e)||e.startsWith("git@")?e:`npm:${e}`}F(B,"K"),g(B,"normalizeSource");function C(u){if(!u.startsWith("npm:"))return;const e=u.slice(4),a=tu(e),n=e.length>a.length?e.slice(a.length+1):void 0;return{name:a,version:n}}F(C,"j"),g(C,"npmSpec");function S(u){if(u)try{return JSON.parse(K(M(u,"package.json"),"utf8"))}catch{return}}F(S,"$"),g(S,"readPackageJson");function $(u){const e=[];for(const a of u.listConfiguredPackages()){const n=S(a.installedPath),r=n?.name??C(a.source)?.name??a.source;r.startsWith("@dalcode/")||e.push({source:a.source,scope:a.scope,name:r,installedPath:a.installedPath,version:n?.version})}return e}F($,"x"),g($,"communityPackages");function I(u){const e=L().last;return e&&e.at>=u?e:void 0}F(I,"Q"),g(I,"lastNpmCall");function y(u,e){u.hasUI&&(u.ui.setWorkingVisible?.(e!==void 0),u.ui.setWorkingMessage?.(e))}F(y,"w"),g(y,"showWorking");function T(u){return Object.entries(u).map(([e,a])=>` ${e}: ${a}`).join(`
|
|
2
|
+
`)}F(T,"Z"),g(T,"describeScripts");async function W(u,e,a,n){if(e&&!a.isProjectTrusted()){a.ui.notify(o("\u9879\u76EE\u672A\u53D7\u4FE1\u4EFB\uFF0C\u65E0\u6CD5\u5B89\u88C5\u9879\u76EE\u7EA7\u63D2\u4EF6\u3002\u5148\u8FD0\u884C /trust \u4FDD\u5B58\u4FE1\u4EFB\u51B3\u7B56\uFF0C\u518D\u91CD\u8BD5\u3002"),"error");return}const r=B(u),i=C(r),m=L(),f=i?await n.resolveRegistry():void 0;if(i){let c;try{c=await(n.fetchMetadata??O)(i.name,f,i.version??"latest")}catch(w){a.ui.notify(`${o("\u8BFB\u53D6\u63D2\u4EF6\u4FE1\u606F\u5931\u8D25\uFF1A")}${i.name} \u2014 ${w instanceof Error?w.message:String(w)}`,"error");return}const b=c.installScripts;Object.keys(b).length>0&&await a.ui.confirm(o("\u8BE5\u63D2\u4EF6\u58F0\u660E\u4E86\u5B89\u88C5\u811A\u672C\uFF0C\u662F\u5426\u5141\u8BB8\u8FD0\u884C\uFF1F"),`${i.name}@${c.version}
|
|
3
|
+
${T(b)}
|
|
4
|
+
${o("\u62D2\u7EDD\u5219\u4EE5 --ignore-scripts \u5B89\u88C5\uFF0C\u63D2\u4EF6\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u5DE5\u4F5C\u3002")}`)&&m.allowScripts.add(i.name)}y(a,o("\u6B63\u5728\u5B89\u88C5\u63D2\u4EF6\uFF0C\u8BF7\u7A0D\u5019\u2026")),n.manager.setProgressCallback(c=>{c.message&&y(a,c.message)});const l=Date.now();try{await n.manager.install(r,{local:e})}catch(c){a.ui.notify(`${o("\u63D2\u4EF6\u5B89\u88C5\u5931\u8D25\uFF1A")}${c instanceof Error?c.message:String(c)}`,"error");return}finally{i&&m.allowScripts.delete(i.name),n.manager.setProgressCallback(void 0),y(a,void 0)}const t=I(l),d=e?"project":"user",s=n.manager.getInstalledPath(r,d),h=n.manager.readDeclaredPermissions(s)??[],P=await n.manager.readGitHead(s),E=s?au(s):[],p=new Set(n.hostToolNames?.()??[]),j=s?(await A(s)).toolNames.filter(c=>p.has(c)):[],z=[`${r}${e?o("\uFF08\u9879\u76EE\u7EA7\uFF09"):o("\uFF08\u7528\u6237\u7EA7\uFF09")}`,h.length>0?`${o("\u58F0\u660E\u7684\u6743\u9650\uFF1A")}${h.join(", ")}`:void 0,j.length>0?`${o("\u6CE8\u610F\uFF1A\u4EE5\u4E0B\u5DE5\u5177\u4E0E DAL \u5185\u7F6E\u5DE5\u5177\u540C\u540D\uFF0C\u4E0D\u4F1A\u52A0\u8F7D\uFF08\u63D2\u4EF6\u5176\u4F59\u529F\u80FD\u7167\u5E38\uFF09\uFF1A")}${j.join(", ")}`:void 0,E.length>0?`${o("\u6CE8\u610F\uFF1A\u8BE5\u63D2\u4EF6\u628A\u90E8\u5206\u6570\u636E\u5199\u5728\u56FA\u5B9A\u7684 .pi \u76EE\u5F55\uFF0CDAL \u65E0\u6CD5\u6539\u5230\u81EA\u5DF1\u7684\u76EE\u5F55\uFF1A")}
|
|
5
5
|
${E.slice(0,5).map(c=>` ${c.file}:${c.line} ${c.scope==="home"?"~/.pi":o("<\u9879\u76EE>/.pi")}`).join(`
|
|
6
6
|
`)}`:void 0].filter(Boolean).join(`
|
|
7
|
-
`);if(!await
|
|
8
|
-
${o("\u4E0B\u8F7D\u6E90\uFF1A")}${
|
|
9
|
-
npm ${
|
|
10
|
-
${o("\u53EF\u5728\u8BBE\u7F6E dalPlugins.staleDays \u4E2D\u8C03\u6574\u5929\u6570\uFF0C\u8BBE\u4E3A 0 \u5173\u95ED\u63D0\u9192\u3002")}`))try{await e.removeAndPersist(
|
|
7
|
+
`);if(!await a.ui.confirm(o("\u4FDD\u7559\u8BE5\u63D2\u4EF6\uFF1F"),z)){try{await n.manager.remove(r,{local:e})}catch(c){a.ui.notify(`${o("\u79FB\u9664\u672A\u4FDD\u7559\u7684\u63D2\u4EF6\u5931\u8D25\uFF0C\u53EF\u7A0D\u540E\u624B\u52A8\u6E05\u7406\uFF1A")}${c instanceof Error?c.message:String(c)}`,"warning");return}a.ui.notify(o("\u5DF2\u53D6\u6D88\u5B89\u88C5\u3002"),"info");return}n.manager.addSourceToSettings(r,{local:e,resolvedCommit:P});const U=S(s)?.name??i?.name;U&&D(n.statePath,c=>{c.lastUsed[U]=new Date().toISOString()});const R=t?`
|
|
8
|
+
${o("\u4E0B\u8F7D\u6E90\uFF1A")}${t.registry??o("npm \u9ED8\u8BA4\u914D\u7F6E")}${t.ignoreScripts?" \xB7 --ignore-scripts":""}
|
|
9
|
+
npm ${t.args.join(" ")}`:"";return a.ui.notify(`${o("\u5DF2\u5B89\u88C5\u63D2\u4EF6\uFF1A")}${r}${R}`,"info"),await a.reload(),r}F(W,"pe"),g(W,"installPlugin");const _=1440*60*1e3;function k(u,e,a,n=Date.now()){const r=[],i=[];if(a<=0)return{stale:r,firstSeen:i};for(const m of u){const f=e.lastUsed[m.name],l=f?Date.parse(f):Number.NaN;if(Number.isNaN(l)){i.push(m.name);continue}const t=Math.floor((n-l)/_);t>a&&r.push({pkg:m,days:t})}return{stale:r,firstSeen:i}}F(k,"ee"),g(k,"findStalePackages");async function H(u,e,a,n,r){const i=$(e),{stale:m,firstSeen:f}=k(i,r,n);if(f.length>0){const t=new Date().toISOString();D(a,d=>{for(const s of f)d.lastUsed[s]??=t})}const l=[];for(const{pkg:t,days:d}of m)if(await u.ui.confirm(o("\u79FB\u9664\u957F\u671F\u672A\u4F7F\u7528\u7684\u63D2\u4EF6\uFF1F"),`${t.name} \u2014 ${d}${o(" \u5929\u672A\u4F7F\u7528")}
|
|
10
|
+
${o("\u53EF\u5728\u8BBE\u7F6E dalPlugins.staleDays \u4E2D\u8C03\u6574\u5929\u6570\uFF0C\u8BBE\u4E3A 0 \u5173\u95ED\u63D0\u9192\u3002")}`))try{await e.removeAndPersist(t.source,{local:t.scope==="project"}),l.push(t.name),D(a,s=>{delete s.lastUsed[t.name],delete s.failedUpdates[t.name]})}catch(s){u.ui.notify(`${o("\u79FB\u9664\u63D2\u4EF6\u5931\u8D25\uFF1A")}${t.name} \u2014 ${s instanceof Error?s.message:String(s)}`,"warning")}else D(a,s=>{s.lastUsed[t.name]=new Date().toISOString()});return l.length>0&&u.ui.notify(`${o("\u5DF2\u79FB\u9664\u63D2\u4EF6\uFF08\u91CD\u542F\u540E\u751F\u6548\uFF09\uFF1A")}${l.join(", ")}`,"info"),l}F(H,"Pe"),g(H,"promptStalePlugins");const v=Symbol.for("dalcode.extensions.apiDecorator");async function A(u){if(!V(u))return{errors:[`${u}: missing`],toolNames:[]};const e=q(M(X(),"dal-plugins-verify-")),a=globalThis,n=a[v];delete a[v];try{const r=await uu([u],e,e),i=r.errors.map(m=>`${m.path}: ${m.error}`);return i.length===0&&r.extensions.length===0&&i.push(`${u}: no extensions loaded`),{errors:i,toolNames:r.extensions.flatMap(m=>[...m.tools.keys()])}}finally{n!==void 0&&(a[v]=n),Q(e,{recursive:!0,force:!0})}}F(A,"L"),g(A,"loadPackageIsolated");async function N(u){return(await A(u)).errors}F(N,"te"),g(N,"verifyPackageLoads");async function J(u,e=!1){const a=u.now??Date.now(),n=ou(u.statePath),r=n.lastUpdateCheck?Date.parse(n.lastUpdateCheck):Number.NaN;if(!e&&!Number.isNaN(r)&&a-r<_&&a>=r)return[];D(u.statePath,l=>{l.lastUpdateCheck=new Date(a).toISOString()});const i=(await u.manager.checkForAvailableUpdates()).filter(l=>l.type==="npm"),m=new Map($(u.manager).map(l=>[l.source,l])),f=[];for(const l of i){const t=m.get(l.source);if(!t?.installedPath||u.allow&&!u.allow(t.name))continue;const d=t.version;let s;try{const p=await u.resolveRegistry();s=(await(u.fetchMetadata??O)(t.name,p,"latest")).version}catch{}if(s&&n.failedUpdates[t.name]===s){f.push({name:t.name,from:d,to:s,status:"skipped"});continue}try{await u.manager.update(l.source)}catch(p){f.push({name:t.name,from:d,to:s,status:"failed",error:String(p)});continue}const h=await(u.verify??N)(t.installedPath),P=S(t.installedPath)?.version;if(h.length===0){f.push({name:t.name,from:d,to:P??s,status:"updated"});continue}const E=P??s;if(d)try{await u.manager.install(`npm:${t.name}@${d}`,{local:t.scope==="project"})}catch(p){f.push({name:t.name,from:d,to:E,status:"failed",error:String(p)});continue}E&&D(u.statePath,p=>{p.failedUpdates[t.name]=E}),f.push({name:t.name,from:d,to:E,status:"rolled-back",error:h.join("; ")})}return f}F(J,"he"),g(J,"updatePlugins");export{su as DEFAULT_STALE_DAYS,nu as autoUpdateAllowed,$ as communityPackages,x as createPluginManager,k as findStalePackages,W as installPlugin,A as loadPackageIsolated,B as normalizeSource,H as promptStalePlugins,S as readPackageJson,ru as readPluginSettings,J as updatePlugins,N as verifyPackageLoads};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var k=Object.defineProperty;var n=(t,e)=>k(t,"name",{value:e,configurable:!0});var $=Object.defineProperty,u=n((t,e)=>$(t,"name",{value:e,configurable:!0}),"a");import{t as s}from"@dalcode/dal-pi-kit";import{fetchAccountPackages as h}from"@dalcode/dal-skills/packages";async function o(t,e){if(!e)return[];try{return await h(t,e)}catch{return[]}}n(o,"P"),u(o,"fetchMarketPackages");function c(t){return t.replace(/^npm:/,"").trim().toLowerCase()}n(c,"l"),u(c,"sourceName");function i(t,e){const a=t.toLowerCase().split(/\s+/).filter(Boolean);return a.length===0?[]:e.filter(r=>{const F=`${r.source} ${r.name} ${r.description}`.toLowerCase();return a.some(p=>F.includes(p))})}n(i,"k"),u(i,"matchMarket");function l(t,e){const a=t.name.toLowerCase();return e.some(r=>c(r.source)===a)}n(l,"d"),u(l,"isMarketResult");function f(t){if(t.length===0)return"";const e=t.map((a,r)=>`${r+1}. [${s("DAL \u5E02\u573A")}] ${a.name}${a.name!==a.source?` (${a.source})`:""} \u2014 ${a.description||s("\uFF08\u65E0\u63CF\u8FF0\uFF09")}
|
|
2
|
+
${s("\u5B89\u88C5\uFF1A")}/plugins install ${a.source}`);return`${s("DAL \u5E02\u573A\uFF08DeepAILab \u4E3A\u4F60\u7684\u8D26\u53F7\u5217\u51FA\u7684\u63D2\u4EF6\uFF09\uFF1A")}
|
|
3
|
+
${e.join(`
|
|
4
|
+
`)}`}n(f,"$"),u(f,"formatMarket");const A=/(?:^|[\s;&|(`])(?:\S*\/)?(?:dal|pi)\s+(install|update)\b([^;&|`\n]*)/g;function m(t){for(const e of t.matchAll(A)){if(e[1]==="install")return!0;const a=(e[2]??"").trim().split(/\s+/).filter(Boolean);for(const r of a)if(r==="--all"||r==="--extensions"||r==="--extension"||!r.startsWith("-")&&r!=="self"&&r!=="dal")return!0}return!1}n(m,"h"),u(m,"installsPackage");export{o as fetchMarketPackages,f as formatMarket,m as installsPackage,l as isMarketResult,i as matchMarket};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var l=Object.defineProperty;var r=(e,t)=>l(e,"name",{value:t,configurable:!0});var p=Object.defineProperty,n=r((e,t)=>p(e,"name",{value:t,configurable:!0}),"n");import{readFileSync as d}from"node:fs";import{join as g}from"node:path";const s=30;function i(e){let t={};try{const a=JSON.parse(d(g(e,"settings.json"),"utf8"));a.dalPlugins&&typeof a.dalPlugins=="object"&&(t=a.dalPlugins)}catch{}return{staleDays:typeof t.staleDays=="number"&&t.staleDays>=0?t.staleDays:s,autoUpdate:o(t.autoUpdate),registry:typeof t.registry=="string"&&t.registry.trim()?t.registry.trim():void 0}}r(i,"f"),n(i,"readPluginSettings");function o(e){if(e===!0)return!0;if(Array.isArray(e)){const t=e.filter(a=>typeof a=="string"&&a.trim().length>0);return t.length>0?t.map(a=>a.trim()):!1}return!1}r(o,"u"),n(o,"parseAutoUpdate");function u(e,t){return e.autoUpdate===!0?!0:e.autoUpdate===!1?!1:e.autoUpdate.includes(t)}r(u,"p"),n(u,"autoUpdateAllowed");export{s as DEFAULT_STALE_DAYS,u as autoUpdateAllowed,i as readPluginSettings};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-review",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Code review: a read-only reviewer sub-agent over uncommitted changes, a base branch, a commit, a PR or a supplied diff, returning structured, deduplicated findings. /review in the TUI, dal -p, RPC and the SDK.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
23
|
-
"@dalcode/dal-subagent": "1.0.
|
|
22
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
23
|
+
"@dalcode/dal-subagent": "1.0.34",
|
|
24
24
|
"typebox": "1.3.7"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
+
Copyright (c) 2026 arpagon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
MIT License
|
|
26
|
+
|
|
3
27
|
Copyright (c) 2025 Mario Zechner
|
|
4
28
|
|
|
5
29
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-rewind",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Git checkpoints for DAL: a snapshot after every turn that changes files, /rewind, Esc+Esc, safe restore, undo. Adapted from pi-rewind 0.5.0 (MIT, arpagon).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
+
"@dalcode/dal-pi-kit": "1.0.34"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-router",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
29
|
-
"@dalcode/deepailab": "1.0.
|
|
30
|
-
"@earendil-works/pi-tui": "^1.0.
|
|
28
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
29
|
+
"@dalcode/deepailab": "1.0.34",
|
|
30
|
+
"@earendil-works/pi-tui": "^1.0.34"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@earendil-works/pi-coding-agent": "^1.0.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var q=Object.defineProperty;var v=(
|
|
2
|
-
`),!
|
|
3
|
-
`);const L=ne(k.groups,k.skills);if(L)return{message:{customType:"dal-router-assist",content:[{type:"text",text:L}],display:!1}}}v(
|
|
4
|
-
`),
|
|
1
|
+
var q=Object.defineProperty;var v=(o,d)=>q(o,"name",{value:d,configurable:!0});var Z=Object.defineProperty,l=v((o,d)=>Z(o,"name",{value:d,configurable:!0}),"d");import{t as g}from"@dalcode/dal-pi-kit";import{getSupportedThinkingLevels as ee}from"@earendil-works/pi-ai";import{compact as te}from"@earendil-works/pi-coding-agent";import{fuzzyFilter as oe}from"@earendil-works/pi-tui";import{ASSIST_THINKING_LEVELS as se,assistMessage as ne,buildAssistQuestions as ie,interpretAssist as ae,MAX_SKILL_CANDIDATES as re,planIsEmpty as ue,skillSearchApi as le,toolCatalogApi as J}from"./assist.js";import{runFactoryCommand as ce}from"./commands.js";import{decideCompactionDeferral as de}from"./compact-defer.js";import{jevFeatureEnabled as P,turnAssistEnabled as pe,userPinnedModel as me,userPinnedThinking as fe}from"./config.js";import{jevTimeoutMs as ge,noteJevProxyFailure as ve,resolveJevRoute as O,selectWithJev as ye,warmJevRoute as Ae}from"./jev.js";import{curatePool as he}from"./pool.js";import{autoRouteActive as R,candidates as W,candidatesStale as Fe,clearUnavailable as ke,config as A,configWarning as be,mainAutoRouteExplicit as K,markUnavailable as Ee,persistMainAutoRoute as N,pickCheapestAvailable as Ce,reloadConfig as De,resetThinkingAssist as we,router as Se,setAutoRouteRuntime as H,setCandidates as Re,setThinkingAssistState as T,thinkingAssistState as w,unavailableSet as $}from"./runtime.js";import{createJevService as Te,publishJevService as $e}from"./services.js";function z(o){const d=[];return o.groups.length>0&&d.push(`${g("\u5DE5\u5177 ")}${o.groups.join("/")}`),o.skills.length>0&&d.push(`${g("\u6280\u80FD ")}${o.skills.map(h=>h.name).join("/")}`),o.thinking&&d.push(`${g("\u601D\u8003 ")}${o.thinking}`),d.join(" \xB7 ")}v(z,"Me"),l(z,"describeAssist");const G="deepailab";function x(o){const d=(o.modelRegistry?.getAvailable?.()??[]).filter(s=>s.provider===G&&!$().has(s.id)).map(s=>({model:s,id:s.id,name:s.name,costPerMtok:s.cost&&typeof s.cost.input=="number"&&typeof s.cost.output=="number"?(s.cost.input+s.cost.output)/2:0})),h=he(d).map(({model:s})=>s).map(s=>{const y=s.cost,b=y&&typeof y.input=="number"&&typeof y.output=="number"?(y.input+y.output)/2:0;return{id:s.id,provider:G,contextWindow:s.contextWindow??128e3,maxTokens:s.maxTokens??8192,reasoning:!!s.reasoning,costPerMtok:b}});h.length!==0&&Re(h)}v(x,"G"),l(x,"buildCandidatesFrom");function U(o){let d=!1,h,s=0;const y=Te({config:A,enabled:P,credentials:l(()=>h,"credentials")});$e(y),o.on("session_start",async(t,e)=>{De(),ke(),h=e.modelRegistry,s=0;const n=be();n&&process.stderr.write(`dal-router: ${n}
|
|
2
|
+
`),!K()&&me(e.cwd)&&H(!1),we(fe(e.cwd)),x(e);const a=A();a.enabled&&a.classifier.enabled&&O(a.classifier,e.modelRegistry).then(c=>c&&Ae(c))});function b(t){R()&&(K()&&A().mainAutoRoute?N(!1):H(!1),t.ui.setStatus?.("factory",void 0),t.ui.notify?.(g("\u5DF2\u5207\u6362\u5230\u4F60\u9009\u7684\u6A21\u578B\uFF0C\u4E0D\u518D\u81EA\u52A8\u8DEF\u7531\uFF08\u5728 /model \u91CC\u9009\u201C\u81EA\u52A8\u201D\u53EF\u6062\u590D\uFF09"),"info"))}v(b,"h"),l(b,"stopAutoRoute"),o.on("model_select",async(t,e)=>{d||t.source==="restore"||b(e)}),o.registerModelPickerEntry("auto",{getState:l(()=>{const t=A();if(!(!t.enabled||!t.classifier.enabled||(W()?.length??0)===0))return{label:g("\u81EA\u52A8\uFF08\u667A\u80FD\u8DEF\u7531\uFF09"),description:g("\u6BCF\u8F6E\u6309\u4EFB\u52A1\u4ECE\u6A21\u578B\u6C60\u91CC\u6311\u9009\u5408\u9002\u7684\u6A21\u578B"),current:R()}},"getState"),onSelect:l(t=>{N(!0),t.ui.notify(g("\u4E3B\u5BF9\u8BDD\u81EA\u52A8\u8DEF\u7531\u5DF2\u5F00\u542F\uFF08\u5168\u5C40\u6301\u4E45\u5316\uFF09\u3002"),"info")},"onSelect"),onModelChosen:l((t,e)=>b(e),"onModelChosen")}),o.on("before_agent_start",async(t,e)=>{if(!A().enabled)return;const n=w();!n.pinned&&n.last!==void 0&&o.getThinkingLevel()!==n.last&&T({pinned:!0});try{return await B(t,e)}finally{w().pinned||T({last:o.getThinkingLevel()})}});async function B(t,e){const n=A();let a=R();const c=pe(n);if(!a&&!c)return;const i=await O(n.classifier,e.modelRegistry);if(!i)return;let u=[];a&&(x(e),u=(Fe()?[]:W()??[]).filter(m=>!$().has(m.id)),u.length===0&&(a=!1));const p=c?M(t.prompt,e):void 0,F=p&&!ue(p)?ie(p):{},E=Object.keys(F).length>0;if(!a&&!E)return;const Y=Date.now();let C;const I=l(async m=>{try{const f=await ye(t.prompt,i,ge(i,n.classifier.timeoutMs),m,F);return C=f.answers,f}catch(f){throw i.via==="deepailab"&&ve(f),f}},"ask");let r;if(a)r=await Se().route({prompt:t.prompt,candidates:u,currentModelId:e.model?.id,margin:n.affinity.margin,select:{run:l(async(m,f)=>{const{model:j,modelError:X}=await I(f);if(!j)throw X??new Error("jev returned no model");return j},"run")}});else try{await I(void 0)}catch{}const Q=Date.now()-Y;let S=!1;if(r){if(r.modelId&&r.provider&&r.modelId!==e.model?.id){const m=e.modelRegistry?.find(r.provider,r.modelId);if(m){d=!0;let f;try{f=await o.setModel(m)}finally{d=!1}f?S=!0:(Ee(r.modelId),e.ui.setStatus("factory",void 0))}}S&&e.ui.setStatus?.("factory",`\u2192 ${r.modelId} \xB7 ${r.reason}`)}const V=p&&C?ae(p,C,n.turnAssist.minConfidence):void 0,k=_(V,p,e),D=z(k);if(r&&r.source!=="degraded"){const m=typeof r.confidence=="number"?` \xB7 ${g("\u7F6E\u4FE1\u5EA6 ")}${Math.round(r.confidence*100)}%`:"";e.ui.notify?.(`${r.reason}${m}${D?` \xB7 ${D}`:""}`,"info")}else D&&e.ui.notify?.(D,"info");process.env.DAL_FACTORY_TRACE==="1"&&process.stderr.write(`dal-router trace ${JSON.stringify({jevMs:Q,model:r?{id:r.modelId,source:r.source,switched:S}:void 0,asked:Object.keys(F),answered:C!==void 0,groups:k.groups,skills:k.skills.map(m=>m.name),thinking:k.thinking})}
|
|
3
|
+
`);const L=ne(k.groups,k.skills);if(L)return{message:{customType:"dal-router-assist",content:[{type:"text",text:L}],display:!1}}}v(B,"S"),l(B,"routeTurn");function M(t,e){const n=A().turnAssist,a=n.tools?J()?.inactiveGroups()??[]:[];let c=[];if(n.skills)try{c=le()?.search(t,e.cwd,re)??[]}catch{c=[]}let i=[];if(n.thinking&&e.model?.reasoning&&!w().pinned){const u=new Set(ee(e.model));i=se.filter(p=>u.has(p)),i.length<2&&(i=[])}return{groups:a,skills:c,thinkingLevels:i}}v(M,"$"),l(M,"planAssist");function _(t,e,n){const a=[],c=J();for(const u of t?.groups??[])c&&c.activate(u).length>0&&a.push(u);let i;if(e&&e.thinkingLevels.length>0&&n.model?.reasoning){const u=w(),p=o.getThinkingLevel(),F=u.base??p,E=t?.thinking??F;E!==p&&(o.setThinkingLevel(E),i=o.getThinkingLevel()),T({base:F})}return{groups:a,skills:t?.skills??[],thinking:i}}v(_,"H"),l(_,"applyAssist"),o.on("session_before_compact",async(t,e)=>{const n=A();if(P(n,"compactDefer")&&t.preparation){const i=await de({reason:t.reason,tokens:t.preparation.tokensBefore,contextWindow:e.model?.contextWindow,deferredSoFar:s,maxDefer:n.jevAssist.compactMaxDefer,entries:t.branchEntries,minConfidence:n.jevAssist.minConfidence,ask:l((u,p)=>y.ask("compactDefer",u,p,{credentials:e.modelRegistry}),"ask")});if(process.env.DAL_FACTORY_TRACE==="1"&&process.stderr.write(`dal-router trace ${JSON.stringify({compactDefer:{...i,deferredSoFar:s}})}
|
|
4
|
+
`),i.defer)return s+=1,e.ui.notify?.(`${g("\u6B63\u5904\u5728\u591A\u6B65\u64CD\u4F5C\u4E2D\uFF0C\u81EA\u52A8\u538B\u7F29\u63A8\u8FDF\u5230\u4E0B\u4E00\u8F6E")} (${s}/${n.jevAssist.compactMaxDefer})`,"info"),{cancel:!0}}if(!n.enabled||!n.auxRoute.compaction||o.getSettings().compaction?.summaryModel)return;const a=Ce($()),c=t.preparation;if(!(!a||!c))try{const i=e.modelRegistry?.find(a.provider,a.id);if(!i)return;const u=e.modelRegistry?.getApiKeyAndHeaders?await e.modelRegistry.getApiKeyAndHeaders(i):void 0;return u&&!u.ok?void 0:{compaction:await te(c,i,u?.apiKey,u?.headers,t.customInstructions,t.signal,"off")}}catch{return}}),o.on("session_compact",async()=>{s=0}),o.registerCommand("factory",{description:g("\u67E5\u770B/\u914D\u7F6E\u6A21\u578B\u5DE5\u5382\uFF08status | auto on|off | levels | pool\uFF09"),getArgumentCompletions:l(t=>oe([{value:"status",label:"status"},{value:"auto on",label:"auto on"},{value:"levels",label:"levels"},{value:"pool",label:"pool"}],t,e=>e.value).map(e=>({value:e.value,label:e.label})),"getArgumentCompletions"),handler:l(async(t,e)=>ce(t,e),"handler")})}v(U,"Te"),l(U,"default");export{U as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-skills",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
-
"@dalcode/deepailab": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
24
|
+
"@dalcode/deepailab": "1.0.34",
|
|
25
25
|
"typebox": "1.3.7"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-subagent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
21
|
-
"@dalcode/dal-guard": "1.0.
|
|
22
|
-
"@earendil-works/pi-agent-core": "^1.0.
|
|
23
|
-
"@earendil-works/pi-ai": "^1.0.
|
|
20
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
21
|
+
"@dalcode/dal-guard": "1.0.34",
|
|
22
|
+
"@earendil-works/pi-agent-core": "^1.0.34",
|
|
23
|
+
"@earendil-works/pi-ai": "^1.0.34",
|
|
24
24
|
"typebox": "1.3.7"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-telemetry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.34"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-terminal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Host terminal context: a terminal_read tool and @terminal mentions, registered only when the embedding host advertises the terminal capability.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
22
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
23
23
|
"typebox": "1.3.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-tool-catalog",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
22
22
|
"typebox": "1.3.7"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
27
|
-
"@dalcode/deepailab": "1.0.
|
|
26
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
27
|
+
"@dalcode/deepailab": "1.0.34",
|
|
28
28
|
"typebox": "1.3.27"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-workflow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
20
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
21
21
|
"typebox": "1.3.27"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/deepailab",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
-
"@earendil-works/pi-ai": "^1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.34",
|
|
24
|
+
"@earendil-works/pi-ai": "^1.0.34"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|