dal-code 1.0.53 → 1.0.54
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 +5 -0
- package/dist/bundle/chunks/{anthropic-messages-Y6ZFHUZY.js → anthropic-messages-UHE6F2IE.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-M6NPMDKK.js → azure-openai-responses-EK4W2MKL.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/{chunk-6VVU2U7I.js → chunk-2C7JTP5O.js} +1 -1
- package/dist/bundle/chunks/{chunk-BY4XL3JS.js → chunk-33MCYYJ3.js} +1 -1
- package/dist/bundle/chunks/{chunk-GHZXS4EI.js → chunk-356BFRU3.js} +1 -1
- package/dist/bundle/chunks/{chunk-3KP6IUMV.js → chunk-3ZHZINH3.js} +2 -2
- package/dist/bundle/chunks/{chunk-2IIG5FH4.js → chunk-4DMD6C65.js} +1 -1
- package/dist/bundle/chunks/{chunk-6GCEEEP2.js → chunk-B5GJW7C2.js} +1 -1
- package/dist/bundle/chunks/{chunk-EHKSTDLR.js → chunk-CSZTBJOE.js} +1 -1
- package/dist/bundle/chunks/{chunk-XQY5ZHQA.js → chunk-FE533CCR.js} +1 -1
- package/dist/bundle/chunks/{chunk-22WV5HKU.js → chunk-IDZ3QKHZ.js} +1 -1
- package/dist/bundle/chunks/{chunk-FBHNYUW7.js → chunk-K4B5ABCQ.js} +1 -1
- package/dist/bundle/chunks/{chunk-N2RRGQFI.js → chunk-L3RBW36Y.js} +1 -1
- package/dist/bundle/chunks/{chunk-HBTEG3CS.js → chunk-O7G23ELK.js} +1 -1
- package/dist/bundle/chunks/{chunk-YIBYUMGO.js → chunk-R7FBN5UP.js} +2 -2
- package/dist/bundle/chunks/{chunk-YALY2HLR.js → chunk-RKLUP6JT.js} +10 -12
- package/dist/bundle/chunks/{chunk-EGEFD4CT.js → chunk-SCYK4XNE.js} +1 -1
- package/dist/bundle/chunks/{chunk-QYQJQJ5B.js → chunk-VIS5PYQO.js} +1 -1
- package/dist/bundle/chunks/{chunk-YZQKKXBH.js → chunk-XRF4A4KI.js} +1 -1
- package/dist/bundle/chunks/{cli-UYQ4R2DI.js → cli-XOLEGZVC.js} +1 -1
- package/dist/bundle/chunks/{cli-DZWQCYIH.js → cli-YJV3WN2N.js} +1 -1
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-HI7IU5IW.js → cloudflare-workers-ai-system-one-KNGB64NR.js} +1 -1
- package/dist/bundle/chunks/{execute-B5PKAASV.js → execute-6PNQ63VS.js} +1 -1
- package/dist/bundle/chunks/{google-generative-ai-DA5V3QPV.js → google-generative-ai-YJN7TGWU.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-BT23CSDX.js → google-vertex-3BVJFMMZ.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-T62K6I4H.js → llama-cpp-classify-JVUWNG3E.js} +1 -1
- package/dist/bundle/chunks/{mcp-KRPDZMNU.js → mcp-PC3Y3FBI.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-NAYQLEXL.js → mistral-conversations-O6YIQAS5.js} +1 -1
- package/dist/bundle/chunks/{office-UYJNMMJ5.js → office-AXLGVCMO.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-NN7VPVPU.js → openai-codex-responses-YQ5NNPTG.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-OWUZLSV4.js → openai-completions-R4I3PKBD.js} +1 -1
- package/dist/bundle/chunks/{openai-decisions-RU4UQIAZ.js → openai-decisions-IUHMKKHZ.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-NPZBVAJQ.js → openai-responses-E2PHOQF4.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-YX7ATNAW.js → openrouter-images-NCMLTKZW.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-IDL3P2ML.js → pi-messages-GLTSGLSO.js} +1 -1
- package/dist/bundle/chunks/{review-34VIXKJ7.js → review-KXWT7T3V.js} +1 -1
- package/dist/bundle/chunks/{router-WVWEQNZR.js → router-26PXJ7YH.js} +1 -1
- package/dist/bundle/chunks/{runtime-WJYFTWKS.js → runtime-LJBCO7CX.js} +1 -1
- package/dist/bundle/chunks/{sdk-BGOXS6X2.js → sdk-6GP346VB.js} +1 -1
- package/dist/bundle/chunks/{sync-D7K3QQKF.js → sync-ONQZCAYG.js} +1 -1
- package/dist/bundle/chunks/{typesafe-system-one-64X2E56P.js → typesafe-system-one-GQFHU7SQ.js} +1 -1
- package/dist/bundle/chunks/{usage-VBIOUGRZ.js → usage-MY7HTXQB.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-JXLCYYRR.js → virtual-modules-BEBLHRXC.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/core/settings-manager.d.ts +1 -1
- package/dist/core/settings-manager.js +1 -1
- package/dist/core/tools/bash.js +14 -14
- package/dist/core/tools/renderers/bash.js +8 -8
- package/dist/modes/interactive/components/compaction-summary-message.js +1 -3
- package/dist/node_modules/@dalcode/dal-advisor/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-awake/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-capabilities/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-codeindex/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-compat/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-dap/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-goal/package.json +3 -3
- 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-learn/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lsp/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-mcp/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +1 -1
- package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-recall/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-remote/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-router/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-rtk/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-statusline/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-structured/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-sync/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +4 -4
- 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-usage/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/@earendil-works/pi-agent-core/package.json +3 -3
- 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/openrouter.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/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-schema/package.json +1 -1
- 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/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/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
|
@@ -5,4 +5,4 @@ var b=Object.defineProperty;var r=(e,o)=>b(e,"name",{value:o,configurable:!0});i
|
|
|
5
5
|
|
|
6
6
|
${t}`);return o.join(`
|
|
7
7
|
|
|
8
|
-
`)}r(I,"renderSystemMessageUpdate");function P(e,o,i=e.length){return`${e.slice(o,i)} `.slice(0,-1)}r(P,"ownedSlice");var s="1.0.
|
|
8
|
+
`)}r(I,"renderSystemMessageUpdate");function P(e,o,i=e.length){return`${e.slice(o,i)} `.slice(0,-1)}r(P,"ownedSlice");var s="1.0.54",T={name:"dal",url:"https://deepailab.ai",categories:["cli-agent"]},l="dal",M="integrate.api.nvidia.com",R="opencode.ai";function p(...e){let o;for(let i of e)i&&(o={...o},i.userAgent!==void 0&&(o.userAgent=i.userAgent),i.attribution!==void 0&&(o.attribution=i.attribution),i.version!==void 0&&(o.version=i.version));return o}r(p,"mergeClientIdentity");function f(e){return e?.version??s}r(f,"getClientVersion");function $(){if(typeof process>"u")return;let e=process.versions;if(e?.bun)return`bun/${e.bun}`;if(e?.node)return`node/${process.version}`}r($,"runtimeDescription");function g(e){let o=e?.userAgent??"detailed";if(typeof o=="object")return o.custom;if(o==="short")return l;let i=`${l}/${f(e)}`,a=$();return a?`${i} (${process.platform}; ${a}; ${process.arch})`:`${i} (browser)`}r(g,"formatUserAgent");function d(e,o){try{return new URL(e).hostname===o}catch{return!1}}r(d,"matchesHost");function S(e){return e.provider==="openrouter"||e.baseUrl.includes("openrouter.ai")}r(S,"isOpenRouter");function U(e){return e.provider==="nvidia"||d(e.baseUrl,M)}r(U,"isNvidiaNim");function v(e){return e.provider==="opencode"||e.provider==="opencode-go"||d(e.baseUrl,R)}r(v,"isOpenCode");function h(e,o){let i=o?.attribution;if(!i)return{};let{name:a,url:t,categories:n}=i;return S(e)?{"HTTP-Referer":t,"X-OpenRouter-Title":a,...n===void 0||n.length===0?{}:{"X-OpenRouter-Categories":n.join(",")}}:U(e)?{"X-BILLING-INVOKE-ORIGIN":a.charAt(0).toUpperCase()+a.slice(1)}:v(e)?{"x-opencode-client":a}:{}}r(h,"getAttributionHeaders");function m(e,o){return o&&v(e)?{"x-opencode-session":o}:void 0}r(m,"getOpenCodeSessionHeaders");function N(e,o){return{"User-Agent":g(o),...h(e,o)}}r(N,"getIdentityHeaders");function C(e){return"setProvider"in e&&"deleteProvider"in e&&"clearProviders"in e}r(C,"isMutableModels");function D(e,o){let i=r(t=>({...t,identity:p(o,t?.identity)}),"withIdentity"),a={getProviders:r(()=>e.getProviders(),"getProviders"),getProvider:r(t=>e.getProvider(t),"getProvider"),getModels:r(t=>e.getModels(t),"getModels"),getModel:r((t,n)=>e.getModel(t,n),"getModel"),getModelsOfType:r((t,n)=>e.getModelsOfType(t,n),"getModelsOfType"),getModelOfType:r((t,n,u)=>e.getModelOfType(t,n,u),"getModelOfType"),getAllModels:r(t=>e.getAllModels(t),"getAllModels"),refresh:r(t=>e.refresh(t),"refresh"),checkAuth:r((t,n)=>e.checkAuth(t,n),"checkAuth"),getAvailable:r((t,n)=>e.getAvailable(t,n),"getAvailable"),getAvailableOfType:r((t,n,u)=>e.getAvailableOfType(t,n,u),"getAvailableOfType"),getAllAvailable:r((t,n)=>e.getAllAvailable(t,n),"getAllAvailable"),getAuth:e.getAuth.bind(e),login:r((t,n,u,A)=>e.login(t,n,u,A),"login"),logout:r((t,n)=>e.logout(t,n),"logout"),stream:r((t,n,u)=>e.stream(t,n,i(u)),"stream"),complete:r((t,n,u)=>e.complete(t,n,i(u)),"complete"),streamSimple:r((t,n,u)=>e.streamSimple(t,n,i(u)),"streamSimple"),completeSimple:r((t,n,u)=>e.completeSimple(t,n,i(u)),"completeSimple"),streamDeferred:r((t,n,u)=>e.streamDeferred(t,n,i(u)),"streamDeferred"),fetchDeferred:r((t,n,u)=>e.fetchDeferred(t,n,i(u)),"fetchDeferred"),cancelDeferred:r((t,n,u)=>e.cancelDeferred(t,n,i(u)),"cancelDeferred"),generateImages:r((t,n,u)=>e.generateImages(t,n,i(u)),"generateImages"),classify:r((t,n,u)=>e.classify(t,n,i(u)),"classify")};return C(e)?{...a,setProvider:r(t=>e.setProvider(t),"setProvider"),deleteProvider:r(t=>e.deleteProvider(t),"deleteProvider"),clearProviders:r(()=>e.clearProviders(),"clearProviders")}:a}r(D,"withClientIdentity");export{s as PI_AI_VERSION,T as PI_ATTRIBUTION,c as contentText,g as formatUserAgent,h as getAttributionHeaders,f as getClientVersion,N as getIdentityHeaders,m as getOpenCodeSessionHeaders,y as getSystemMessageText,p as mergeClientIdentity,P as ownedSlice,I as renderSystemMessageUpdate,D as withClientIdentity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var O=Object.defineProperty;var n=(t,e)=>O(t,"name",{value:e,configurable:!0});import{createRequire as S}from"node:module";const G=S(import.meta.url);import{getAgentDir as L}from"./chunk-R47JBGS3.js";import{t as k}from"./chunk-
|
|
1
|
+
var O=Object.defineProperty;var n=(t,e)=>O(t,"name",{value:e,configurable:!0});import{createRequire as S}from"node:module";const G=S(import.meta.url);import{getAgentDir as L}from"./chunk-R47JBGS3.js";import{t as k}from"./chunk-XRF4A4KI.js";var h=["planner","executor","reviewer","escalate"],v={planner:"claude-opus-5-5",executor:"deepseek-flash",reviewer:"gpt-6.1-sol",escalate:"claude-opus-5-5"};function E(t){let e=t.toLowerCase();return/claude/.test(e)?"anthropic":/^gpt|^o\d|codex/.test(e)?"openai":/gemini/.test(e)?"google":/grok/.test(e)?"xai":/deepseek/.test(e)?"deepseek":/glm/.test(e)?"zhipu":/kimi/.test(e)?"moonshot":/qwen/.test(e)?"alibaba":/minimax/.test(e)?"minimax":e.split(/[-_/.]/)[0]??e}n(E,"vendorOf");var I=["deepseek","zhipu","moonshot","alibaba","minimax"];function F(t){return I.includes(E(t))}n(F,"isDomesticModel");function A(t){return t.cost.input>0&&t.cost.output>0}n(A,"isPriced");function s(t){return(t.cost.input+t.cost.output)/2}n(s,"blendedPrice");var P=/(?:^|[-_/.:])(?:flash|mini|lite|nano|haiku|small|air|tiny|instant)(?:$|[-_/.:\d])/i;function w(t,e){let o=e.trim();if(!o)return;let r=o.indexOf("/");if(r>0){let l=o.slice(0,r),i=o.slice(r+1);return t.find(a=>a.provider===l&&a.id===i)}return t.find(l=>l.id===o)}n(w,"findSpec");function C(t,e,o=Number.POSITIVE_INFINITY){let r=t.filter(i=>A(i)&&!e.has(i.id)&&s(i)<=o),l=r.filter(i=>!P.test(i.id));return[...l.length>0?l:r].sort((i,a)=>Number(a.reasoning)-Number(i.reasoning)||s(a)-s(i)||i.id.localeCompare(a.id))[0]}n(C,"strongest");function T(t){return[...t.filter(A)].sort((e,o)=>s(e)-s(o)||Number(F(o.id))-Number(F(e.id))||e.id.localeCompare(o.id))[0]}n(T,"cheapest");var _=15;function $(t,e,o={}){let r=[],l=o.maxFallbackPrice??_,i=o.preferDomestic?t.filter(m=>F(m.id)):[...t],a=n((m,x)=>{let b=e[m],f=w(i,b);if(f&&A(f))return f;let R=x();if(R){let N=f?"unpriced":w(t,b)?"not-domestic":"missing";r.push({role:m,spec:b,why:N,replacement:R.id})}return R},"pick"),u=a("executor",()=>T(i));if(!u)return{ok:!1,reason:"no priced model in the catalogue"};let y=new Set([u.id]),c=a("planner",()=>C(i,y,l));if(!c||c.id===u.id||s(c)<=s(u))return{ok:!1,reason:`no priced model stronger than the executor ${u.id}`};let D=a("reviewer",()=>{let m=i.filter(x=>E(x.id)!==E(u.id));return C(m,y,l)??c}),M=a("escalate",()=>c);return!D||!M?{ok:!1,reason:"no reviewer or escalation model"}:{ok:!0,roles:{planner:c,executor:u,reviewer:D,escalate:M,notes:r}}}n($,"resolveRoles");import{existsSync as j,readFileSync as q}from"node:fs";import{join as B}from"node:path";var d={enabled:!0,mainAutoRoute:!0,auxRoute:{subagent:!0,compaction:!0},subagentModel:"route",suggestAuto:!0,roles:{enabled:!0,review:!0,plannerReads:4,planWaitMs:12e4,maxEscalations:1,preferDomestic:!1,maxFallbackPrice:_,models:v}};function W(){return B(L(),"factory.json")}n(W,"factoryConfigPath");function p(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}n(p,"isRecord");function g(t,e,o){return typeof t=="number"&&Number.isFinite(t)&&t>=e&&t<=o?t:void 0}n(g,"numberInRange");function J(t,e){let o={...t};if(typeof e.enabled=="boolean"&&(o.enabled=e.enabled),typeof e.mainAutoRoute=="boolean"&&(o.mainAutoRoute=e.mainAutoRoute),p(e.auxRoute)&&(o.auxRoute={subagent:typeof e.auxRoute.subagent=="boolean"?e.auxRoute.subagent:t.auxRoute.subagent,compaction:typeof e.auxRoute.compaction=="boolean"?e.auxRoute.compaction:t.auxRoute.compaction}),typeof e.subagentModel=="string"&&e.subagentModel.trim()&&(o.subagentModel=e.subagentModel.trim()),typeof e.suggestAuto=="boolean"&&(o.suggestAuto=e.suggestAuto),p(e.roles)){let r=e.roles,l=p(r.models)?r.models:{},i=n(u=>typeof l[u]=="string"&&l[u].trim()?l[u].trim():t.roles.models[u],"spec"),a=g(r.maxEscalations,0,3);o.roles={enabled:typeof r.enabled=="boolean"?r.enabled:t.roles.enabled,review:typeof r.review=="boolean"?r.review:t.roles.review,plannerReads:Math.floor(g(r.plannerReads,0,8)??t.roles.plannerReads),planWaitMs:Math.floor(g(r.planWaitMs,0,3e5)??t.roles.planWaitMs),maxEscalations:a===void 0?t.roles.maxEscalations:Math.floor(a),preferDomestic:typeof r.preferDomestic=="boolean"?r.preferDomestic:t.roles.preferDomestic,maxFallbackPrice:g(r.maxFallbackPrice,0,1e3)??t.roles.maxFallbackPrice,models:Object.fromEntries(h.map(u=>[u,i(u)]))}}return o}n(J,"mergeConfig");function U(){let t=W();if(!j(t))return{config:d,mainAutoRouteExplicit:!1};try{let e=JSON.parse(q(t,"utf8"));return p(e)?{config:J(d,e),mainAutoRouteExplicit:typeof e.mainAutoRoute=="boolean"}:{config:d,mainAutoRouteExplicit:!1,warning:k(`${t}: \u9876\u5C42\u4E0D\u662F JSON \u5BF9\u8C61\uFF0C\u5DF2\u4F7F\u7528\u9ED8\u8BA4\u914D\u7F6E\u3002`)}}catch(e){let o=e instanceof Error?e.message:String(e);return{config:d,mainAutoRouteExplicit:!1,warning:`${t}: ${k("JSON \u89E3\u6790\u5931\u8D25\uFF0C\u5DF2\u4F7F\u7528\u9ED8\u8BA4\u914D\u7F6E\u3002")}${o}`}}}n(U,"loadFactoryConfig");export{d as DEFAULT_CONFIG,v as DEFAULT_ROLE_MODELS,U as loadFactoryConfig,$ as resolveRoles};
|