dal-code 1.0.51 → 1.0.52
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 +11 -0
- package/NOTICE +17 -1
- package/dist/bundle/chunks/{anthropic-messages-2P3UGLIO.js → anthropic-messages-NK5NGKAI.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-S4GNH2XC.js → azure-openai-responses-VEASENYL.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/{chunk-B7NRFMLU.js → chunk-4VJJ6NXH.js} +1 -1
- package/dist/bundle/chunks/{chunk-FCKLBLA4.js → chunk-6EEJ4MZH.js} +1 -1
- package/dist/bundle/chunks/{chunk-H5FHS6BV.js → chunk-A5CI3CVQ.js} +1 -1
- package/dist/bundle/chunks/{chunk-CFPQOC7P.js → chunk-AAQZXQA7.js} +1 -1
- package/dist/bundle/chunks/{chunk-GSGE3ULF.js → chunk-ANL2BCIQ.js} +1 -1
- package/dist/bundle/chunks/{chunk-VNHNHA4V.js → chunk-CS4T4O5O.js} +1 -1
- package/dist/bundle/chunks/{chunk-PWZRJWNP.js → chunk-DLKRCASW.js} +1 -1
- package/dist/bundle/chunks/{chunk-AL7NZVPP.js → chunk-HEFI7NO7.js} +1 -1
- package/dist/bundle/chunks/{chunk-R44HF4S5.js → chunk-KJW3E2CB.js} +1 -1
- package/dist/bundle/chunks/chunk-ON7ZX67F.js +30 -0
- package/dist/bundle/chunks/{chunk-BEDAM2M7.js → chunk-OQWPBJCS.js} +1 -1
- package/dist/bundle/chunks/{chunk-ATQJO2OE.js → chunk-TK2WJTRC.js} +1 -1
- package/dist/bundle/chunks/{chunk-RR3ZP63P.js → chunk-UVKMBM5X.js} +2 -2
- package/dist/bundle/chunks/{chunk-RCVVRHMF.js → chunk-WIZGOHKY.js} +1 -1
- package/dist/bundle/chunks/{chunk-HXK5EFBE.js → chunk-XAS5HHBW.js} +284 -276
- package/dist/bundle/chunks/{chunk-2KOJ4RNS.js → chunk-XDBGA662.js} +1 -1
- package/dist/bundle/chunks/chunk-YWNDPXVM.js +25 -0
- package/dist/bundle/chunks/{cli-ZEDY5U67.js → cli-GXB5WYKG.js} +1 -1
- package/dist/bundle/chunks/{cli-FWMQKBFA.js → cli-YPE3BB5X.js} +1 -1
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-E6TEENDO.js → cloudflare-workers-ai-system-one-B7WOBGWO.js} +1 -1
- package/dist/bundle/chunks/{execute-62LDYHXA.js → execute-27QCJECT.js} +1 -1
- package/dist/bundle/chunks/{google-generative-ai-V5DLXTF7.js → google-generative-ai-MBMRBHSZ.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-K3KYGGLI.js → google-vertex-S2ZFBDPP.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-JCTIEHTL.js → llama-cpp-classify-S4LVGNNY.js} +1 -1
- package/dist/bundle/chunks/{mcp-VF7EY5WC.js → mcp-6LJKGKJQ.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-LVBXTF6R.js → mistral-conversations-C7LUXIEY.js} +1 -1
- package/dist/bundle/chunks/{office-PONBADQP.js → office-5OWKTZOA.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-WBZKNYLX.js → openai-codex-responses-YQQXJ24E.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-HMHQRGX4.js → openai-completions-7CMH2FKD.js} +1 -1
- package/dist/bundle/chunks/{openai-decisions-R7OFRKLL.js → openai-decisions-AOGZTREY.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-BHXRQFCI.js → openai-responses-ZSOGZ3MK.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-BIMNIXQZ.js → openrouter-images-AHXST2TH.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-X5YTLXQJ.js → pi-messages-QERJLMZ6.js} +1 -1
- package/dist/bundle/chunks/{review-WCGIBVLM.js → review-5G56KIWY.js} +1 -1
- package/dist/bundle/chunks/{router-7E5LU7US.js → router-776Z7G7G.js} +1 -1
- package/dist/bundle/chunks/{runtime-5PTUOEM2.js → runtime-NKPT25KD.js} +1 -1
- package/dist/bundle/chunks/{sdk-ZUFIGPSS.js → sdk-TVC4GDUX.js} +1 -1
- package/dist/bundle/chunks/sync-JBDC3YBK.js +7 -0
- package/dist/bundle/chunks/{typesafe-system-one-KOIOG3HP.js → typesafe-system-one-MMNGGQ46.js} +1 -1
- package/dist/bundle/chunks/{usage-2EVEFGNI.js → usage-BDCIALHO.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-MYMONT3Y.js → virtual-modules-25RQ6XTV.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/dal/builtins.js +2 -2
- package/dist/dal/manifest.d.ts +1 -0
- package/dist/dal/manifest.js +1 -1
- package/dist/dal/safety-net.js +11 -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 +4 -2
- package/dist/node_modules/@dalcode/dal-learn/src/engine.js +4 -4
- package/dist/node_modules/@dalcode/dal-learn/src/extract.js +31 -5
- package/dist/node_modules/@dalcode/dal-learn/src/index.js +15 -15
- package/dist/node_modules/@dalcode/dal-learn/src/learn-mode.js +1 -0
- package/dist/node_modules/@dalcode/dal-learn/src/lessons.js +4 -3
- package/dist/node_modules/@dalcode/dal-learn/src/project-map.js +2 -2
- package/dist/node_modules/@dalcode/dal-learn/src/safety.js +2 -2
- package/dist/node_modules/@dalcode/dal-learn/src/signals.js +6 -5
- package/dist/node_modules/@dalcode/dal-learn/src/store.js +3 -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 +3 -3
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +3 -3
- 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-sync/src/core.js +2 -2
- 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/dal-workflow/src/todo-snapshot.js +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/amazon-bedrock.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.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/dist/providers/data/radius.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.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
- package/dist/bundle/chunks/chunk-JE6UXK35.js +0 -30
- package/dist/bundle/chunks/chunk-NUIR7PPD.js +0 -25
- package/dist/bundle/chunks/sync-LOX6TIM6.js +0 -4
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
var
|
|
2
|
-
`,{mode:384}),
|
|
1
|
+
var Q=Object.defineProperty;var o=(t,e)=>Q(t,"name",{value:e,configurable:!0});var V=Object.defineProperty,i=o((t,e)=>V(t,"name",{value:e,configurable:!0}),"i");import{existsSync as W,mkdirSync as x,readdirSync as Z,readFileSync as q,renameSync as B,rmSync as k,unlinkSync as H}from"node:fs";import{dirname as tt,join as d,resolve as et}from"node:path";import{DATA_FORMAT_KEY as E,declaredDataFormat as j,reportNewerDataFormat as R,withFileLockSync as rt,writeFileAtomicSync as N}from"@dalcode/dal-pi-kit";import{getAgentDir as nt}from"@earendil-works/pi-coding-agent";const f=1;function _(t){if(t)return t;const e=process.env.DAL_LEARN_DIR?.trim();return e?et(e):d(nt(),"learned")}o(_,"Q"),i(_,"learnedRoot");function F(t){return d(t,"user")}o(F,"V"),i(F,"userDir");function M(t,e){return d(t,"projects",e)}o(M,"W"),i(M,"projectDir");function y(t){let e;try{e=q(t,"utf8")}catch{return}try{const r=JSON.parse(e);return r&&typeof r=="object"&&!Array.isArray(r)?r:void 0}catch{return}}o(y,"l"),i(y,"readRaw");function v(t,e){const r=y(t),n=r!==void 0&&j(r)>f;return n&&R(t),{value:e(r),readOnly:n}}o(v,"O"),i(v,"readDoc");function D(t,e,r){return x(tt(t),{recursive:!0,mode:448}),rt(t,()=>{const n=y(t);if(n!==void 0&&j(n)>f){R(t);return}const s=r(e(n));if(s===void 0)return;const c={...n??{},...s,[E]:f};return N(t,`${JSON.stringify(c,null," ")}
|
|
2
|
+
`,{mode:384}),s})}o(D,"P"),i(D,"updateDoc");function O(t){return W(t)}o(O,"Z"),i(O,"fileExists");function l(t,e){return typeof t=="string"?t.trim().slice(0,e):""}o(l,"g"),i(l,"str");function a(t){return typeof t=="number"&&Number.isFinite(t)&&t>=0?Math.floor(t):0}o(a,"u"),i(a,"num");function m(t,e,r){return Array.isArray(t)?t.filter(n=>typeof n=="string"&&n.length>0).map(n=>n.slice(0,r)).slice(-e):[]}o(m,"x"),i(m,"strList");function $(t){return Array.isArray(t)?t.filter(e=>!!e&&typeof e=="object"&&!Array.isArray(e)):[]}o($,"ee"),i($,"records");function S(t){const e=new Date(t);return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}o(S,"L"),i(S,"dayOf");function b(t){let e=0;for(const r of t)/[⺀-鿿가-豈--]/u.test(r)&&e++;return e+Math.ceil((t.length-e)/4)}o(b,"ne"),i(b,"estimateTokens");function T(t){return{day:l(t?.day,10),runs:a(t?.runs),reflectRuns:a(t?.reflectRuns),inputTokens:a(t?.inputTokens),outputTokens:a(t?.outputTokens)}}o(T,"b"),i(T,"parseUsage");function h(t,e){const r=S(e);return t.day===r?t:{day:r,runs:0,reflectRuns:0,inputTokens:0,outputTokens:0}}o(h,"T"),i(h,"today");function w(t,e){return h(v(d(t,"usage.json"),T).value,e)}o(w,"te"),i(w,"readUsage");function L(t,e,r,n="draft"){const s=n==="reflect"?"reflectRuns":"runs";return D(d(t,"usage.json"),T,c=>{const u=h(c,r);return u[s]>=e?void 0:{...u,[s]:u[s]+1}})!==void 0}o(L,"re"),i(L,"claimExtraction");function I(t,e,r,n){D(d(t,"usage.json"),T,s=>{const c=h(s,n);return{...c,inputTokens:c.inputTokens+a(e),outputTokens:c.outputTokens+a(r)}})}o(I,"ie"),i(I,"recordExtractionTokens");const ot=["draft","reflect","induce"],K=20,G=10080*60*1e3,J=3,st=/^[a-z0-9-]{4,64}\.json$/;function g(t){return d(t,"pending")}o(g,"D"),i(g,"pendingDir");function A(t,e){return d(g(t),`${e}.json`)}o(A,"m"),i(A,"pendingPath");function P(t){if(!t)return;const e=t.reason&&typeof t.reason=="object"?t.reason:{},r=ot.includes(t.kind)?t.kind:"draft",n=m(t.injected,40,16),s={id:l(t.id,64),kind:r,...r==="reflect"?{injected:n,outcome:t.outcome==="failed"?"failed":"passed",...m(t.touched,20,80).length?{touched:m(t.touched,20,80)}:{}}:{},...r==="induce"&&n.length>0?{injected:n}:{},createdAt:a(t.createdAt),attempts:a(t.attempts),projectKey:l(t.projectKey,128),projectRoot:l(t.projectRoot,4096),sessionId:l(t.sessionId,200),excerpt:typeof t.excerpt=="string"?t.excerpt:"",reason:{corrected:e.corrected===!0,detour:e.detour===!0,denials:a(e.denials),fixes:a(e.fixes)}};return s.id&&s.projectKey&&s.excerpt&&s.createdAt>0&&(r!=="reflect"||n.length>0)?s:void 0}o(P,"h"),i(P,"parsePending");function U(t,e){x(g(t),{recursive:!0,mode:448});const r={...e,[E]:f};N(A(t,e.id),`${JSON.stringify(r,null," ")}
|
|
3
|
+
`,{mode:384})}o(U,"oe"),i(U,"writePending");function X(t,e){try{return H(A(t,e)),!0}catch{return!1}}o(X,"se"),i(X,"removePending");function Y(t,e){const r=g(t),n=[];for(const s of z(r)){if(!st.test(s))continue;const c=d(r,s),u=y(c),p=P(u);if(!p||u!==void 0&&j(u)>f||e-p.createdAt>G||p.attempts>=J||`${p.id}.json`!==s){(!u||j(u)<=f)&&k(c,{force:!0});continue}n.push(p)}for(n.sort((s,c)=>s.createdAt-c.createdAt);n.length>K;){const s=n.shift();s&&k(A(t,s.id),{force:!0})}return n}o(Y,"ue"),i(Y,"listPending");function z(t){try{return Z(t)}catch{return[]}}o(z,"X"),i(z,"readdirSafe");function C(t,e){const r=A(t,e),n=`${r}.claimed`;try{B(r,n)}catch{return}const s=P(y(n));return k(n,{force:!0}),s}o(C,"ce"),i(C,"claimPending");export{f as LEARNED_FORMAT,K as MAX_PENDING,J as MAX_PENDING_ATTEMPTS,G as PENDING_TTL_MS,L as claimExtraction,C as claimPending,S as dayOf,b as estimateTokens,O as fileExists,_ as learnedRoot,Y as listPending,a as num,g as pendingDir,M as projectDir,v as readDoc,w as readUsage,I as recordExtractionTokens,$ as records,X as removePending,l as str,m as strList,D as updateDoc,F as userDir,U as writePending};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-lsp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dalcode/dal-bridge": "1.0.
|
|
25
|
-
"@dalcode/dal-dap": "1.0.
|
|
26
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
+
"@dalcode/dal-bridge": "1.0.52",
|
|
25
|
+
"@dalcode/dal-dap": "1.0.52",
|
|
26
|
+
"@dalcode/dal-pi-kit": "1.0.52",
|
|
27
27
|
"cross-spawn": "7.0.6",
|
|
28
28
|
"typebox": "1.3.7",
|
|
29
29
|
"typescript": "5.9.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dalcode/dal-bridge": "1.0.
|
|
33
|
-
"@dalcode/dal-guard": "1.0.
|
|
34
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
35
|
-
"@dalcode/deepailab": "1.0.
|
|
36
|
-
"@earendil-works/pi-mcp": "1.0.
|
|
32
|
+
"@dalcode/dal-bridge": "1.0.52",
|
|
33
|
+
"@dalcode/dal-guard": "1.0.52",
|
|
34
|
+
"@dalcode/dal-pi-kit": "1.0.52",
|
|
35
|
+
"@dalcode/deepailab": "1.0.52",
|
|
36
|
+
"@earendil-works/pi-mcp": "1.0.52",
|
|
37
37
|
"cross-spawn": "7.0.6"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-office",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
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.52",
|
|
22
22
|
"docx": "9.7.1",
|
|
23
23
|
"echarts": "6.1.0",
|
|
24
24
|
"exceljs": "4.4.0",
|