dal-code 1.0.58 → 1.0.59
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 +4 -0
- package/dist/bundle/chunks/{anthropic-messages-FOIJU7LX.js → anthropic-messages-HVFHIIGX.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-7NBJZKX5.js → azure-openai-responses-RMWKIGFW.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/{chunk-X7I3V6OA.js → chunk-BBNE2TWS.js} +1 -1
- package/dist/bundle/chunks/{chunk-JK74OC6W.js → chunk-F52JQCLE.js} +1 -1
- package/dist/bundle/chunks/{chunk-DVEPGKL5.js → chunk-GZJEAFRS.js} +1 -1
- package/dist/bundle/chunks/{chunk-NYSVXLKF.js → chunk-IKSSB5ZJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-QFBU27TM.js → chunk-J6H2LYOZ.js} +1 -1
- package/dist/bundle/chunks/{chunk-T5PI6B5P.js → chunk-KQRRELCF.js} +1 -1
- package/dist/bundle/chunks/chunk-KT7CXVDN.js +17 -0
- package/dist/bundle/chunks/{chunk-3QG7FIE4.js → chunk-MPLE6M5C.js} +1 -1
- package/dist/bundle/chunks/{chunk-B7KZDIWA.js → chunk-TPOKZ2EU.js} +1 -1
- package/dist/bundle/chunks/{chunk-5MF5GEDD.js → chunk-VDPDHGGJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-SCZEDPDC.js → chunk-WLQ33LIH.js} +1 -1
- package/dist/bundle/chunks/{chunk-CCU76UL3.js → chunk-X63WCLSX.js} +4 -4
- package/dist/bundle/chunks/{chunk-LMZYTWXD.js → chunk-YOQ3KBG5.js} +1 -1
- package/dist/bundle/chunks/{cli-RY666QAD.js → cli-BFWJUYZ5.js} +1 -1
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-CFGOMWWZ.js → cloudflare-workers-ai-system-one-RXFI2EBV.js} +1 -1
- package/dist/bundle/chunks/{google-generative-ai-ZA2RHPNE.js → google-generative-ai-5F5544G4.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-Y2GRWOK7.js → google-vertex-4PSVELDG.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-G2JDOFHY.js → llama-cpp-classify-IPNT4VOW.js} +1 -1
- package/dist/bundle/chunks/{mcp-45D7KCZZ.js → mcp-F3BQ6MQW.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-MLV32BRV.js → mistral-conversations-RSYLYGE4.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-BDK3PY6G.js → openai-codex-responses-OKPZLYIS.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-BLXHKAB3.js → openai-completions-BFCQZRZ2.js} +1 -1
- package/dist/bundle/chunks/{openai-decisions-IGVID576.js → openai-decisions-RJ4MH5XI.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-KHZOEDF2.js → openai-responses-PT5MXG3Q.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-SA6PUASF.js → openrouter-images-ICCH2YHW.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-3VAOLQ2Y.js → pi-messages-Z2XWHIYT.js} +1 -1
- package/dist/bundle/chunks/{review-RZXLHPUZ.js → review-WTYIVWYR.js} +1 -1
- package/dist/bundle/chunks/{router-YBVXODIL.js → router-V3EIAYOF.js} +1 -1
- package/dist/bundle/chunks/{sdk-X6RX7FNE.js → sdk-32L63XRF.js} +1 -1
- package/dist/bundle/chunks/sync-Z5USQ7AN.js +21 -0
- package/dist/bundle/chunks/{typesafe-system-one-ER3DLYNF.js → typesafe-system-one-6UYWINOZ.js} +1 -1
- package/dist/bundle/chunks/{usage-LMRFS2HV.js → usage-JODQIC2H.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-XIUNRFOZ.js → virtual-modules-ERCLFZEY.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/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-learn/src/lessons.js +4 -4
- package/dist/node_modules/@dalcode/dal-learn/src/project-map.js +2 -2
- package/dist/node_modules/@dalcode/dal-learn/src/signals.js +6 -6
- 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/package.json +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/amazon-bedrock.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.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/together.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-JXAFVEE4.js +0 -17
- package/dist/bundle/chunks/sync-CRV6BXXC.js +0 -21
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
`):""}
|
|
3
|
-
`?l():(u==="&"||u==="|")&&e[d+1]===u?(l(),d++):u==="&"?l():u==="|"?r():s+=u}return l(),n}c(J,"W"),a(J,"splitStatements");function $(t){const e=[];let n=!1;for(const o of J(t)){const s=[...o];let i=!1;for(;s.length>1&&yt.test(s.at(-1));)$t.test(s.at(-1))&&(i=!0),s.pop();const r=s.join(" | ").replace(/\s+/g," ");/^cd\s/.test(r)?e.push(r):!wt.test(r)&&v(r)&&(e.push(r),i&&(n=!0))}for(;e.length&&/^cd\s/.test(e.at(-1));)e.pop();return{statements:e,selected:n}}c($,"E"),a($,"checkParts");function w(t){const{statements:e}=$(t);return e.length?e.join(" && "):void 0}c(w,"R"),a(w,"checkCommand");function A(t){return kt.some(e=>e.test(t))}c(A,"X"),a(A,"reportsPass");function K(t){return w(t)??t.replace(/\s+/g," ").trim()}c(K,"Ct"),a(K,"bareCommand");function O(t){return ht.some(e=>e.test(t))}c(O,"Y"),a(O,"reportsFailure");function v(t){for(const[e,n]of G)if(n.test(t))return e}c(v,"x"),a(v,"intentOf");function R(t){const e=w(t)?.split(" && ").filter(n=>!/^cd\s/.test(n))??[];for(const[n,o]of G)if(e.some(s=>o.test(s)))return n}c(R,"Z"),a(R,"commandIntent");function _(t){const e=new Map;for(const o of t)if(o?.role==="toolResult"&&typeof o.toolCallId=="string"){const s=y(o.content);e.set(o.toolCallId,{isError:o.isError===!0,output:s.slice(0,gt),failing:O(s),passing:A(s)})}const n=[];for(const o of t)if(!(o?.role!=="assistant"||!Array.isArray(o.content)))for(const s of o.content){if(s?.type!=="toolCall"||typeof s.name!="string")continue;const i=typeof s.id=="string"?s.id:"",r=s.arguments&&typeof s.arguments=="object"?s.arguments:{},l=e.get(i);if(!l)continue;const d={id:i,name:s.name,args:r,isError:l.isError,output:l.output};if(bt.has(s.name)&&typeof r.command=="string"){const u=T(r.command);d.command=u.command,u.cdDir&&(d.cdDir=u.cdDir);const m=R(u.command);m&&(d.intent=m),m&&it.has(m)&&!d.isError&&l.failing?(d.isError=!0,d.swallowedFailure=!0):m&&!d.isError&&!l.passing&&$(u.command).selected&&(d.unverifiedPass=!0)}n.push(d)}return n}c(_,"J"),a(_,"toolSteps");const X=120,H=/^(?:at\s|\S+\s\(\S+:\d+:\d+\)$|(?:file:\/\/)?\S+\.(?:[cm]?[jt]sx?|py|go|rs|rb|java|kt|php)(?::\d+){1,2}$|.*\bnode:internal\/|Node\.js v\d)/,Y=/^(?:>?\s*\d+\s*\|.*|[\s|]*\^+[\s^~]*|(?:if|else|for|while|switch|const|let|var|return|function|class|import|export|async|await|def|try|catch)\b.*|\}.*)$|\bthrow new\b|=>|[;{]$/,Q=/^(?:(?:duration_ms|type|location|failureType|code|stack|operator|expected|actual|generatedMessage|name):|\.{3}$|-{3}$|TAP version|Subtest:|1\.\.\d+$|(?:tests|suites|pass|fail|cancelled|skipped|todo|duration_ms)\s+\d|Command exited with code)/,vt=/^(?:E\s+)?(?:Uncaught\s+)?(?:[A-Z][\w.]*(?:Error|Exception)|Error|error(?: TS\d+|\[E\d+\])?)(?:\s*\[[\w-]+\])?:\s*\S|\berror TS\d+:\s*\S/,Et=/^(?:expected\b.*\b(?:received|to (?:be|equal)|but got)\b|(?:Expected|Received)(?: value)?:\s*\S|.+\s!==?\s.+)/i,St=/^(?:FAIL(?:ED)?\b|not ok \d+|[✖×✗]\s|--- FAIL:?)/,xt=/not found|no such|cannot|can't|unable|error|fail|missing|denied|unknown|invalid|找不到|不存在|失败|错误/i;function V(t){const e=t.trim().replace(/^#\s?/,"").trim();return e!==""&&(H.test(e)||Y.test(e)||Q.test(e))}c(V,"vt"),a(V,"isUntellingReason");function tt(t){const e=t.findIndex(s=>Et.test(s));if(e<0)return;const n=t[e],o=/^Expected(?: value)?:/i.test(n)?t.slice(e+1,e+4).find(s=>/^Received(?: value)?:/i.test(s)):void 0;return o?`${n}, ${o}`:n}c(tt,"nt"),a(tt,"comparison");function et(t){const e=b(t).replace(/\s+/g," ").trim();return e.length>X?`${e.slice(0,X-1)}\u2026`:e}c(et,"st"),a(et,"clipReason");function st(t){const e=[];for(let n=0;n<t.length;n++){const o=/^error:\s*(.*)$/.exec(t[n]);if(!o)continue;let s=o[1].replace(/^'(.*)'$/,"$1").replace(/^"(.*)"$/,"$1");if(/^\|-?$/.test(s)){const r=[];for(let l=n+1;l<t.length&&r.length<2&&!/^[a-z_]+:\s/i.test(t[l]);l++)r.push(t[l]);s=r.join(" ")}if(!s||s==="test failed")continue;let i="";for(let r=n+1;r<Math.min(t.length,n+12)&&!/^(?:\.{3}|not ok|ok)\b/.test(t[r]);r++){const l=/^name:\s*'?([\w.]+)'?$/.exec(t[r]);if(l){i=l[1];break}}e.push(i&&!s.startsWith(i)?`${i}: ${s}`:s)}return e}c(st,"ot"),a(st,"tapErrors");function L(t){const e=t.split(/\r?\n/).map(s=>s.trim().replace(/^#\s?/,"").trim()).filter(Boolean),n=e.filter(s=>!H.test(s)&&!Y.test(s)&&!Q.test(s)),o=st(e)[0]??n.find(s=>vt.test(s))??tt(n)??n.find(s=>St.test(s))??n.find(s=>xt.test(s))??"";return et(o)}c(L,"rt"),a(L,"failureReason");function h(t){let e="";const n=[];for(const o of $(t).statements){const s=/^cd\s+("[^"]+"|'[^']+'|\S+)$/.exec(o);if(s){const r=s[1].replace(/^["']|["']$/g,"");e=e&&!r.startsWith("/")?`${e}/${r}`:r;continue}const i=o.replace(/\s+/g," ").trim();n.some(r=>r.dir===e&&r.check===i)||n.push({dir:e,check:i,...v(i)?{intent:v(i)}:{}})}return n}c(h,"h"),a(h,"segmentsOf");function nt(t,e){return t===e||` ${t} `.includes(` ${e} `)||` ${e} `.includes(` ${t} `)}c(nt,"it"),a(nt,"overlaps");function F(t,e){const n=h(t),o=h(e),s=a((p,f)=>p.dir===f.dir&&p.check===f.check,"same"),i=n.filter(p=>!o.some(f=>s(p,f)));if(i.length===0)return;const r=new Set(i.map(p=>p.intent)),l=o.filter(p=>!n.some(f=>s(p,f))||r.has(p.intent)),d=i.filter(p=>l.some(f=>f.intent===p.intent));if(d.length===0||l.length===0||[...d,...l].some(p=>/^(?:\/|~|\$)/.test(p.dir))||d.some(p=>l.some(f=>f.dir===p.dir&&nt(p.check,f.check))))return;const u=a(p=>{const f=p[0].dir;if(p.some(j=>j.dir!==f))return;const Z=p.map(j=>j.check).join(" && ");return f?`cd ${f} && ${Z}`:Z},"joined"),m=u(d),C=u(l);if(!(!m||!C||m===C))return{bad:m,good:C}}c(F,"at"),a(F,"fixCommands");function E(t,e,n=!1){const o=h(t),s=h(e);if(s.length===0)return!1;const i=a((r,l)=>r.some(d=>d.dir===l.dir&&d.check===l.check),"has");return s.every(r=>i(o,r))&&(!n||o.every(r=>i(s,r)))}c(E,"_"),a(E,"runsChecks");function S(t){return t.cdDir?`cd ${t.cdDir} && ${t.command??""}`:t.command??""}c(S,"w"),a(S,"located");const Ct=/\|\||;|\n/;function ot(t,e){let n=!1;for(const o of t){if(!o.command)continue;const s=b(S(o));o.isError?E(s,e,!0)&&(n=!1):!o.unverifiedPass&&!Ct.test(o.command)&&E(s,e)&&(n=!0)}return n}c(ot,"At"),a(ot,"passedLast");const jt=/command not found|: not found|is not (?:set|defined)|Missing script|Cannot find (?:module|package)|ERR_MODULE_NOT_FOUND|ENOENT|No such file|unknown (?:option|command|script|flag)|not recognized as|No test files|No tests found|permission denied|EACCES|找不到|未设置|不存在|未找到/i,Tt=/AssertionError|^\s*(?:Expected|Received)(?: value)?:|\bexpected\b.*\b(?:received|to (?:be|equal)|but got)\b|\s!==?\s|^not ok \d+|^#\s*fail\s+[1-9]|^\s*\d+ (?:failing|failed)\b|Tests?:\s+\d+ failed|\berror TS\d+:|\d+ problems? \(\d+ errors?/im;function P(t){return Tt.test(t)&&!jt.test(t)}c(P,"ut"),a(P,"codeFailed");function D(t){const e=[],n=new Set;for(let o=0;o<t.length;o++){const s=t[o];if(!(!s.isError||!s.intent||!s.command||n.has(s.id))&&!P(s.output))for(let i=o+1;i<t.length;i++){const r=t[i];if(r.intent!==s.intent||!r.command||r.isError||r.unverifiedPass)continue;const l=F(S(s),S(r));if(!l)break;n.add(s.id),e.push({intent:s.intent,failed:s,fixed:r,...l,reason:L(s.output),proven:r.intent!=="install"});break}}return e}c(D,"ft"),a(D,"fixPairs");const At=/(?:^|[\s,.!?,。!?])(?:不对|不是这样|错了|搞错|弄错|别这样|不要这样|我说的是|我的意思是|应该是|你又|还是不行|还是错|并不是|别用|不要用|改用)|\b(?:that'?s (?:not|wrong)|not what I (?:asked|meant|said)|you (?:broke|missed|forgot)|wrong (?:file|approach|command)|I said|still (?:broken|failing|wrong)|don'?t use|use \S+ instead|try again)\b/iu;function I(t){return At.test(t)}c(I,"mt"),a(I,"isCorrection");const Ot=/dal-guard|safety.?net|blocked by|was blocked|refused by|not allowed by|用户已拒绝|已拦截|拦截了|需要交互式审批|已被拦下|保护拒绝/i;function N(t){return t.isError&&Ot.test(t.output)}c(N,"bt"),a(N,"isDenial");const Rt=new Set(["grep","find","ls","glob"]);function M(t){return Rt.has(t.name)?!0:!!t.command&&/^(?:rg|grep|ag|find|fd|ls|git\s+grep)\b/.test(t.command)}c(M,"yt"),a(M,"isSearch");function U(t){return`${t.name}:${JSON.stringify(t.args)}`}c(U,"O"),a(U,"callKey");function q(t){const e=new Map;for(const o of t)e.set(U(o),(e.get(U(o))??0)+1);if([...e.values()].some(o=>o>=3)||t.filter(o=>o.isError).length>=3)return!0;let n=0;for(const o of t)if(n=M(o)?n+1:0,n>=6)return!0;return!1}c(q,"St"),a(q,"isDetour");function rt(t,e){const n=t,o=y(n.find(r=>r?.role==="user")?.content),s=n.filter(r=>r?.role==="assistant").map(r=>y(r.content)).filter(Boolean).join(`
|
|
4
|
-
`),
|
|
5
|
-
`);for(;o.length>
|
|
6
|
-
`);return o.slice(0,
|
|
1
|
+
var At=Object.defineProperty;var l=(t,e)=>At(t,"name",{value:e,configurable:!0});var Ft=Object.defineProperty,i=l((t,e)=>Ft(t,"name",{value:e,configurable:!0}),"a");import{isSensitivePath as _t,redact as b}from"./safety.js";const Pt=new Set(["bash","powershell","shell"]),It=4e3;function E(t){return typeof t=="string"?t:Array.isArray(t)?t.filter(e=>!!e&&typeof e=="object"&&e.type==="text").map(e=>e.text).join(`
|
|
2
|
+
`):""}l(E,"$"),i(E,"textOf");function F(t){let e=t.trim(),n;for(;;){const o=/^cd\s+("[^"]+"|'[^']+'|[^\s;&|]+)\s*(?:&&|;)\s*/.exec(e);if(o){const r=o[1].replace(/^["']|["']$/g,"");n=n&&!r.startsWith("/")?`${n}/${r}`:r,e=e.slice(o[0].length);continue}const s=/^(?:[A-Z_][A-Z0-9_]*=(?:"[^"]*"|'[^']*'|\S*)\s+)+/.exec(e);if(s){e=e.slice(s[0].length);continue}break}return{command:e,...n?{cdDir:n}:{}}}l(F,"V"),i(F,"splitCommand");function y(t){const e=String.raw`(?:\s+(?:-{1,2}[\w-]+(?:=\S+|\s+[^\s-]\S*)?|workspace\s+\S+|workspaces(?:\s+foreach)?))*`;return[String.raw`\b(?:npm|pnpm|yarn|bun)${e}\s+(?:run\s+)?(?:${t})\b`,String.raw`\bturbo\s+(?:run\s+)?(?:[^\s-]\S*\s+)*?(?:${t})(?![\w-])`,String.raw`\bnx\s+(?:run\s+\S+:|(?:run-many|affected)\b.*?(?:-t|--targets?)(?:=|\s+)(?:\S*,)?)?(?:${t})(?![\w-])`].join("|")}l(y,"w"),i(y,"scriptPattern");const Q=[["typecheck",new RegExp(String.raw`\btsc\b(?!.*--build)|\bmypy\b|\bpyright\b|${y("typecheck|type-check|check-types")}`)],["test",new RegExp(String.raw`\b(?:vitest|jest|mocha|ava|pytest|tox|rspec|phpunit)\b|${y("test")}|\bnode\s+--test\b|\b(?:go|cargo|dotnet|mix|deno)\s+test\b|\bmake\s+test\b|\bgradlew?\s+test\b|\bmvn\s+test\b`)],["lint",new RegExp(String.raw`\b(?:eslint|biome|ruff|flake8|pylint|golangci-lint|clippy|prettier\s+--check)\b|${y("lint|check")}`)],["build",new RegExp(String.raw`${y("build")}|\b(?:cargo|go|dotnet|swift)\s+build\b|\bmake\b(?!\s+test)|\bgradlew?\s+(?:build|assemble)\b|\bmvn\s+(?:package|install)\b|\btsc\s+--build\b|\bvite\s+build\b|\bwebpack\b`)],["install",/^(?:npm\s+(?:ci|install|i)|pnpm\s+(?:install|i)|yarn(?:\s+install)?|bun\s+install|pip3?\s+install\s+(?:-r|-e|\.)|poetry\s+install|uv\s+sync|bundle\s+install|composer\s+install|go\s+mod\s+download)(?:\s|$)/]],Lt=[/^# fail [1-9]/m,/^npm (?:ERR!|error) (?:code ELIFECYCLE|Lifecycle script|Test failed)/m,/^\s*Tests:\s+\d+ failed/m,/^\s*Test Files\s+\d+ failed/m,/^=+ .*\b\d+ (?:failed|errors?)\b.* =+$/m,/^\s+\d+ failing$/m,/^(?:FAIL|--- FAIL:?)\s/m,/test result: FAILED/,/^make(?:\[\d+\])?: \*\*\* .*Error \d+/m,/\berror TS\d+:/,/^Found \d+ errors? in \d+ files?/m,/^not ok \d+\b(?![^\n]*#\s*(?:TODO|SKIP)\b)/m],Dt=[/^# fail 0\b/m,/^\s*Tests:\s+(?:\d+ (?:skipped|todo), )*\d+ passed/m,/^\s*Test Files\s+\d+ passed/m,/^=+ .*\b\d+ passed\b.* =+$/m,/^\s+\d+ passing\b/m,/^ok\s+\S+\s+[\d.]+s$/m,/test result: ok\b/,/^Found 0 errors\b/m],Nt=/^(?:tail|head|grep|egrep|fgrep|cat|less|more|tee|wc|sort|uniq|cut|column|sed|awk|nl)\b/,Wt=/^(?:head|grep|egrep|fgrep|cut|sed|awk)\b/,Mt=/^(?:echo|printf|cat|ls|pwd|true|false|:|#|sed|awk|grep|rg|head|tail|wc|find|git\s+(?:diff|status|log|show|stash|add)|set|export|printenv|which|whereis|type|command\s+-v|test\s|\[|stat|file|(?:node|npm|pnpm|yarn|bun|npx)\s+(?:-v|--version)|(?:npm|pnpm|yarn)\s+(?:ls|list|view|info|bin|root|config|why))(?:\b|(?=\s|$))/;function V(t){const e=t.replace(/<<-?\s*(['"]?)(\w+)\1([^\n]*)\n[\s\S]*?\n[ \t]*\2[ \t]*(?=\n|$)/g,"<<$2$3").replace(/\s*\d*>&\d+/g,""),n=[];let o=[],s="",r;const a=i(()=>{o.push(s.trim()),s=""},"endStage"),c=i(()=>{a();const u=o.filter(Boolean);u.length&&n.push(u),o=[]},"endStatement");for(let u=0;u<e.length;u++){const d=e[u];if(r){if(d==="\\"&&r==='"'){s+=d+(e[u+1]??""),u++;continue}d===r&&(r=void 0),s+=d;continue}d==="'"||d==='"'?(r=d,s+=d):d==="\\"?(s+=d+(e[u+1]??""),u++):d===";"||d===`
|
|
3
|
+
`?c():(d==="&"||d==="|")&&e[u+1]===d?(c(),u++):d==="&"?c():d==="|"?a():s+=d}return c(),n}l(V,"nt"),i(V,"splitStatements");function j(t){const e=[];let n=!1;for(const o of V(t)){const s=[...o];let r=!1;for(;s.length>1&&Nt.test(s.at(-1));)Wt.test(s.at(-1))&&(r=!0),s.pop();const a=s.join(" | ").replace(/\s+/g," ");/^cd\s/.test(a)?e.push(a):!Mt.test(a)&&I(a)&&(e.push(a),r&&(n=!0))}for(;e.length&&/^cd\s/.test(e.at(-1));)e.pop();return{statements:e,selected:n}}l(j,"T"),i(j,"checkParts");function C(t){const{statements:e}=j(t);return e.length?e.join(" && "):void 0}l(C,"I"),i(C,"checkCommand");function _(t){return Dt.some(e=>e.test(t))}l(_,"st"),i(_,"reportsPass");function Y(t){return C(t)??t.replace(/\s+/g," ").trim()}l(Y,"zt"),i(Y,"bareCommand");function P(t){return Lt.some(e=>e.test(t))}l(P,"rt"),i(P,"reportsFailure");function I(t){for(const[e,n]of Q)if(n.test(t))return e}l(I,"_"),i(I,"intentOf");function L(t){const e=C(t)?.split(" && ").filter(n=>!/^cd\s/.test(n))??[];for(const[n,o]of Q)if(e.some(s=>o.test(s)))return n}l(L,"ot"),i(L,"commandIntent");function D(t){const e=new Map;for(const o of t)if(o?.role==="toolResult"&&typeof o.toolCallId=="string"){const s=E(o.content);e.set(o.toolCallId,{isError:o.isError===!0,output:s.slice(0,It),failing:P(s),passing:_(s)})}const n=[];for(const o of t)if(!(o?.role!=="assistant"||!Array.isArray(o.content)))for(const s of o.content){if(s?.type!=="toolCall"||typeof s.name!="string")continue;const r=typeof s.id=="string"?s.id:"",a=s.arguments&&typeof s.arguments=="object"?s.arguments:{},c=e.get(r);if(!c)continue;const u={id:r,name:s.name,args:a,isError:c.isError,output:c.output};if(Pt.has(s.name)&&typeof a.command=="string"){const d=F(a.command);u.command=d.command,d.cdDir&&(u.cdDir=d.cdDir);const p=L(d.command);p&&(u.intent=p),p&&St.has(p)&&!u.isError&&c.failing?(u.isError=!0,u.swallowedFailure=!0):p&&!u.isError&&!c.passing&&j(d.command).selected&&(u.unverifiedPass=!0)}n.push(u)}return n}l(D,"it"),i(D,"toolSteps");const tt=120,et=/^(?:at\s|\S+\s\(\S+:\d+:\d+\)$|(?:file:\/\/)?\S+\.(?:[cm]?[jt]sx?|py|go|rs|rb|java|kt|php)(?::\d+){1,2}$|.*\bnode:internal\/|Node\.js v\d)/,st=/^(?:>?\s*\d+\s*\|.*|[\s|]*\^+[\s^~]*|(?:if|else|for|while|switch|const|let|var|return|function|class|import|export|async|await|def|try|catch)\b.*|\}.*)$|\bthrow new\b|=>|[;{]$/,nt=/^(?:(?:duration_ms|type|location|failureType|code|stack|operator|expected|actual|generatedMessage|name):|\.{3}$|-{3}$|TAP version|Subtest:|1\.\.\d+$|(?:tests|suites|pass|fail|cancelled|skipped|todo|duration_ms)\s+\d|Command exited with code)/,Ut=/^(?:E\s+)?(?:Uncaught\s+)?(?:[A-Z][\w.]*(?:Error|Exception)|Error|error(?: TS\d+|\[E\d+\])?)(?:\s*\[[\w-]+\])?:\s*\S|\berror TS\d+:\s*\S/,qt=/^(?:expected\b.*\b(?:received|to (?:be|equal)|but got)\b|(?:Expected|Received)(?: value)?:\s*\S|.+\s!==?\s.+)/i,zt=/^(?:FAIL(?:ED)?\b|not ok \d+|[✖×✗]\s|--- FAIL:?)/,Bt=/not found|no such|cannot|can't|unable|error|fail|missing|denied|unknown|invalid|找不到|不存在|失败|错误/i;function rt(t){const e=t.trim().replace(/^#\s?/,"").trim();return e!==""&&(et.test(e)||st.test(e)||nt.test(e))}l(rt,"Vt"),i(rt,"isUntellingReason");function ot(t){const e=t.findIndex(s=>qt.test(s));if(e<0)return;const n=t[e],o=/^Expected(?: value)?:/i.test(n)?t.slice(e+1,e+4).find(s=>/^Received(?: value)?:/i.test(s)):void 0;return o?`${n}, ${o}`:n}l(ot,"ut"),i(ot,"comparison");function at(t){const e=b(t).replace(/\s+/g," ").trim();return e.length>tt?`${e.slice(0,tt-1)}\u2026`:e}l(at,"ft"),i(at,"clipReason");function it(t){const e=[];for(let n=0;n<t.length;n++){const o=/^error:\s*(.*)$/.exec(t[n]);if(!o)continue;let s=o[1].replace(/^'(.*)'$/,"$1").replace(/^"(.*)"$/,"$1");if(/^\|-?$/.test(s)){const a=[];for(let c=n+1;c<t.length&&a.length<2&&!/^[a-z_]+:\s/i.test(t[c]);c++)a.push(t[c]);s=a.join(" ")}if(!s||s==="test failed")continue;let r="";for(let a=n+1;a<Math.min(t.length,n+12)&&!/^(?:\.{3}|not ok|ok)\b/.test(t[a]);a++){const c=/^name:\s*'?([\w.]+)'?$/.exec(t[a]);if(c){r=c[1];break}}e.push(r&&!s.startsWith(r)?`${r}: ${s}`:s)}return e}l(it,"pt"),i(it,"tapErrors");function N(t){const e=t.split(/\r?\n/).map(s=>s.trim().replace(/^#\s?/,"").trim()).filter(Boolean),n=e.filter(s=>!et.test(s)&&!st.test(s)&&!nt.test(s)),o=it(e)[0]??n.find(s=>Ut.test(s))??ot(n)??n.find(s=>zt.test(s))??n.find(s=>Bt.test(s))??"";return at(o)}l(N,"gt"),i(N,"failureReason");const k=i(t=>t,"asIs"),R=i(t=>`dir:${t.replace(/^\.\//,"").replace(/\/+$/,"")||"."}`,"dirTarget"),ct={pnpm:[{names:["-F","--filter","--filter-prod"],value:!0,target:k},{names:["-r","--recursive"],value:!1,target:i(()=>"*","target")},{names:["-C","--dir"],value:!0,target:R},{names:["-w","--workspace-root"],value:!1,target:i(()=>"root","target")}],npm:[{names:["-w","--workspace"],value:!0,target:k},{names:["-ws","--workspaces"],value:!1,target:i(()=>"*","target")},{names:["--prefix"],value:!0,target:R}],yarn:[{names:["--cwd"],value:!0,target:R}],bun:[{names:["-F","--filter"],value:!0,target:k},{names:["--cwd"],value:!0,target:R}]};function h(t,e,n){const o=t[e];for(const s of n)for(const r of s.names){if(s.value&&o.startsWith(`${r}=`))return{target:s.target(o.slice(r.length+1)),next:e+1};if(o!==r)continue;if(!s.value)return{target:s.target(""),next:e+1};const a=t[e+1];return a===void 0?void 0:{target:s.target(a),next:e+2}}}l(h,"b"),i(h,"targetOption");const Zt=/^(?:add|audit|bin|cache|ci|config|create|dedupe|deploy|dlx|env|exec|fetch|help|i|import|info|init|install|link|list|ls|login|logout|outdated|pack|patch|prune|publish|rebuild|remove|rm|root|set|setup|store|unlink|up|update|upgrade|version|view|why|x)$/;function lt(t,e){if(t==="npm")return/^(?:test|t|tst)$/.test(e)?"test":void 0;if(t!=="bun")return Zt.test(e)?void 0:e}l(lt,"ht"),i(lt,"scriptOf");function ut(t){const e=t[0],n=ct[e],o=[],s=[];let r=1;for(;r<t.length;){const p=t[r],g=h(t,r,n);if(g)o.push(g.target),r=g.next;else if(e==="yarn"&&p==="workspace"&&t[r+1])o.push(t[r+1]),r+=2;else if(e==="yarn"&&p==="workspaces")for(o.push("*"),r+=t[r+1]==="foreach"?2:1;t[r]?.startsWith("-");)s.push(t[r++]);else if(p.startsWith("-"))s.push(p),r++;else break}const a=t[r];if(!a)return;const c=a==="run"||a==="run-script",u=c?t[r+1]:lt(e,a);if(c&&!u)return;r+=c?2:1;const d=[];for(;r<t.length;){const p=e==="npm"&&t[r]!=="--"?h(t,r,n):void 0;if(t[r]==="--"){d.push(...t.slice(r));break}p?(o.push(p.target),r=p.next):d.push(t[r++])}return{base:[...u?[e,...s,"run",u]:[e,...s,a],...d].join(" "),targets:o}}l(ut,"bt"),i(ut,"packageShape");function dt(t,e){const n=[{names:["-F","--filter"],value:!0,target:k}],o=[],s=[],r=[];for(let a=e[0]==="run"?1:0;a<e.length;){const c=h(e,a,n);c?(o.push(c.target),a=c.next):e[a].startsWith("-")||r.length>0?r.push(e[a++]):s.push(e[a++])}return{base:[...t,"turbo","run",...s.sort(),...r].join(" "),targets:o}}l(dt,"St"),i(dt,"turboShape");const Gt=/^(?:add|connect|daemon|exec|format(?::\w+)?|g|generate|graph|init|list|migrate|release|repair|report|reset|show|sync|view-logs|watch)$/;function pt(t,e){const[n,o]=e;if(!n||Gt.test(n))return;const s=[...t,"nx"];if(n==="run-many"||n==="affected"){const a=[],c=[],u=[],d=[{names:["-p","--projects"],value:!0,target:k},{names:["-t","--target","--targets"],value:!0,target:i(p=>`task:${p}`,"target")}];for(let p=1;p<e.length;){const g=h(e,p,d);if(!g){u.push(e[p++]);continue}const v=g.target.replace(/^task:/,"").split(",").filter(Boolean);(g.target.startsWith("task:")?c:a).push(...v),p=g.next}return{base:[...s,n,...c.sort(),...u].join(" "),targets:a}}if(n==="run"){const a=o?.indexOf(":")??-1;return!o||a<0?void 0:{base:[...s,"run",o.slice(a),...e.slice(2)].join(" "),targets:a>0?[o.slice(0,a)]:[]}}const r=o&&!o.startsWith("-")?o:void 0;return{base:[...s,"run",`:${n}`,...e.slice(r?2:1)].join(" "),targets:r?[r]:[]}}l(pt,"xt"),i(pt,"nxShape");function ft(t){const e=[{names:["-p","--package"],value:!0,target:k}],n=[],o=[];for(let s=0;s<t.length;){const r=h(t,s,e);r?(n.push(r.target),s=r.next):o.push(t[s++])}return{base:o.join(" "),targets:n}}l(ft,"wt"),i(ft,"cargoShape");const mt=new Set(["-bench","-benchtime","-count","-coverpkg","-coverprofile","-covermode","-cpu","-exec","-o","-p","-parallel","-shuffle","-tags","-timeout","-vet"]);function gt(t){const e=[{names:["-run","--run"],value:!0,target:i(s=>`run:${s}`,"target")},{names:["-skip","--skip"],value:!0,target:i(s=>`skip:${s}`,"target")}],n=[],o=[];for(let s=2;s<t.length;){const r=t[s],a=h(t,s,e);a?(n.push(a.target),s=a.next):r.startsWith("-")?(o.push(mt.has(r)&&t[s+1]?`${r}=${t[s+1]}`:r),s+=mt.has(r)&&t[s+1]?2:1):(n.push(r),s++)}return{base:[...t.slice(0,2),...o].join(" "),targets:n}}l(gt,"kt"),i(gt,"goShape");const Jt=new Set(["-c","-n","-o","-p","-W","--basetemp","--cov","--cov-report","--deselect","--durations","--ignore","--junitxml","--log-level","--maxfail","--rootdir","--tb"]);function ht(t,e){const n=[{names:["-k"],value:!0,target:i(r=>`k:${r}`,"target")},{names:["-m"],value:!0,target:i(r=>`m:${r}`,"target")}],o=[],s=[];for(let r=0;r<e.length;){const a=e[r],c=h(e,r,n);c?(o.push(c.target),r=c.next):Jt.has(a)&&e[r+1]?(s.push(`${a}=${e[r+1]}`),r+=2):a.startsWith("-")?(s.push(a),r++):(o.push(a.replace(/^\.\//,"")),r++)}return{base:[...t,...s.sort()].join(" "),targets:o}}l(ht,"vt"),i(ht,"pytestShape");function bt(t){const e=[];let n="",o,s=!1;for(const r of t)if(o)r===o?o=void 0:n+=r;else if(r==="'"||r==='"')o=r,s=!0;else if(/\s/.test(r))s&&e.push(n),n="",s=!1;else{if(/[|<>`$()]/.test(r))return;n+=r,s=!0}if(!o)return s&&e.push(n),e}l(bt,"$t"),i(bt,"words");function kt(t){const e=bt(t),n={base:t,targets:[]};if(!e?.length)return n;const o=e.findIndex(s=>/^(?:turbo|nx|pytest|py\.test)$/.test(s));if(o>=0&&o<=3){const s=e.slice(0,o),r=e.slice(o+1);return e[o]==="turbo"?dt(s,r):e[o]==="nx"?pt(s,r)??n:ht([...s,"pytest"],r)}return ct[e[0]]?ut(e)??n:e[0]==="cargo"?ft(e):e[0]==="go"&&/^(?:test|build|vet)$/.test(e[1]??"")?gt(e):n}l(kt,"Tt"),i(kt,"shapeOf");function $(t){let e="";const n=[];for(const o of j(t).statements){const s=/^cd\s+("[^"]+"|'[^']+'|\S+)$/.exec(o);if(s){const p=s[1].replace(/^["']|["']$/g,"");e=e&&!p.startsWith("/")?`${e}/${p}`:p;continue}const r=o.replace(/\s+/g," ").trim(),a=kt(r),c=[...new Set(a.targets)].sort(),u=c.length?`${a.base} \u27E8${c.join(" ")}\u27E9`:a.base;if(n.some(p=>p.dir===e&&p.key===u))continue;const d=I(r);n.push({dir:e,check:r,base:a.base,targets:c,key:u,...d?{intent:d}:{}})}return n}l($,"E"),i($,"segmentsOf");function wt(t,e){const n=i((o,s)=>o.every(r=>s.includes(r)),"nested");return t.base===e.base&&(n(t.targets,e.targets)||n(e.targets,t.targets))?!0:t.check===e.check||` ${t.check} `.includes(` ${e.check} `)||` ${e.check} `.includes(` ${t.check} `)}l(wt,"Ct"),i(wt,"overlaps");const vt=/^(?:\/|~|\$)/;function W(t,e){const n=$(t),o=$(e),s=i((f,m)=>f.dir===m.dir&&f.key===m.key,"same"),r=n.filter(f=>!o.some(m=>s(f,m)));if(r.length===0)return;const a=new Set(r.map(f=>f.intent)),c=o.filter(f=>!n.some(m=>s(f,m))||a.has(f.intent)),u=r.filter(f=>c.some(m=>m.intent===f.intent));if(u.length===0||c.length===0)return;const d=i(f=>vt.test(f.dir)||f.targets.some(m=>m.startsWith("dir:")&&vt.test(m.slice(4))),"elsewhere");if([...u,...c].some(d)||u.some(f=>c.some(m=>m.dir===f.dir&&wt(f,m))))return;const p=i(f=>{const m=f[0].dir;if(f.some(A=>A.dir!==m))return;const X=f.map(A=>A.check).join(" && ");return m?`cd ${m} && ${X}`:X},"joined"),g=p(u),v=p(c);if(!g||!v||g===v)return;const Tt=c.every(f=>u.some(m=>m.dir===f.dir&&m.base===f.base));return{bad:g,good:v,...Tt?{retargeted:!0}:{}}}l(W,"Rt"),i(W,"fixCommands");function x(t,e,n=!1){const o=$(t),s=$(e);if(s.length===0)return!1;const r=i((a,c)=>a.some(u=>u.dir===c.dir&&u.key===c.key),"has");return s.every(a=>r(o,a))&&(!n||o.every(a=>r(s,a)))}l(x,"C"),i(x,"runsChecks");function yt(t,e){return t===e||x(t,e,!0)}l(yt,"Zt"),i(yt,"sameChecks");function O(t){return t.cdDir?`cd ${t.cdDir} && ${t.command??""}`:t.command??""}l(O,"R"),i(O,"located");const Kt=/\|\||;|\n/;function $t(t,e){let n=!1;for(const o of t){if(!o.command)continue;const s=b(O(o));o.isError?x(s,e,!0)&&(n=!1):!o.unverifiedPass&&!Kt.test(o.command)&&x(s,e)&&(n=!0)}return n}l($t,"Jt"),i($t,"passedLast");const Ht=/command not found|: not found|is not (?:set|defined)|Missing script|Cannot find (?:module|package)|ERR_MODULE_NOT_FOUND|ENOENT|No such file|unknown (?:option|command|script|flag)|not recognized as|No test files|No tests found|permission denied|EACCES|找不到|未设置|不存在|未找到/i,Xt=/AssertionError|^\s*(?:Expected|Received)(?: value)?:|\bexpected\b.*\b(?:received|to (?:be|equal)|but got)\b|\s!==?\s|^not ok \d+|^#\s*fail\s+[1-9]|^\s*\d+ (?:failing|failed)\b|Tests?:\s+\d+ failed|\berror TS\d+:|\d+ problems? \(\d+ errors?/im;function M(t){return Xt.test(t)&&!Ht.test(t)}l(M,"_t"),i(M,"codeFailed");const Qt=/No projects matched the filters|No (?:workspaces|packages?|projects?) (?:found|matched)|Unknown workspace|Couldn't find (?:a )?(?:workspace|package)|did not match any packages|package\(s\) .*not found|not found in (?:the )?workspace|matched no packages|no packages to test|cannot find package|file or directory not found|no tests ran|Cannot find (?:a )?project|Could not find project|No package found with name/i;function U(t){const e=[],n=new Set;for(let o=0;o<t.length;o++){const s=t[o];if(!(!s.isError||!s.intent||!s.command||n.has(s.id))&&!M(s.output))for(let r=o+1;r<t.length;r++){const a=t[r];if(a.intent!==s.intent||!a.command||a.isError||a.unverifiedPass)continue;const c=W(O(s),O(a));if(!c)break;if(!(c.retargeted&&!Qt.test(s.output))){n.add(s.id),e.push({intent:s.intent,failed:s,fixed:a,bad:c.bad,good:c.good,reason:N(s.output),proven:a.intent!=="install"});break}}}return e}l(U,"Nt"),i(U,"fixPairs");const Vt=/(?:^|[\s,.!?,。!?])(?:不对|不是这样|错了|搞错|弄错|别这样|不要这样|我说的是|我的意思是|应该是|你又|还是不行|还是错|并不是|别用|不要用|改用)|\b(?:that'?s (?:not|wrong)|not what I (?:asked|meant|said)|you (?:broke|missed|forgot)|wrong (?:file|approach|command)|I said|still (?:broken|failing|wrong)|don'?t use|use \S+ instead|try again)\b/iu;function q(t){return Vt.test(t)}l(q,"Ft"),i(q,"isCorrection");const Yt=/dal-guard|safety.?net|blocked by|was blocked|refused by|not allowed by|用户已拒绝|已拦截|拦截了|需要交互式审批|已被拦下|保护拒绝/i;function z(t){return t.isError&&Yt.test(t.output)}l(z,"Mt"),i(z,"isDenial");const te=new Set(["grep","find","ls","glob"]);function B(t){return te.has(t.name)?!0:!!t.command&&/^(?:rg|grep|ag|find|fd|ls|git\s+grep)\b/.test(t.command)}l(B,"Ut"),i(B,"isSearch");function Z(t){return`${t.name}:${JSON.stringify(t.args)}`}l(Z,"U"),i(Z,"callKey");function G(t){const e=new Map;for(const o of t)e.set(Z(o),(e.get(Z(o))??0)+1);if([...e.values()].some(o=>o>=3)||t.filter(o=>o.isError).length>=3)return!0;let n=0;for(const o of t)if(n=B(o)?n+1:0,n>=6)return!0;return!1}l(G,"Wt"),i(G,"isDetour");function xt(t,e){const n=t,o=E(n.find(a=>a?.role==="user")?.content),s=n.filter(a=>a?.role==="assistant").map(a=>E(a.content)).filter(Boolean).join(`
|
|
4
|
+
`),r=D(t);return{userPrompt:o,assistantText:s,steps:r,fixes:U(r),corrected:!!e?.trim()&&q(o),detour:G(r),denials:r.filter(z)}}l(xt,"Qt"),i(xt,"analyzeRun");function J(t){return t.corrected||t.detour||t.denials.length>0}l(J,"Gt"),i(J,"needsModel");const St=new Set(["test","build","lint","typecheck"]);function T(t){const e=t.findLast(n=>n.intent!==void 0&&St.has(n.intent));if(e)return e.isError?"failed":"passed"}l(T,"G"),i(T,"verifiedOutcome");function Et(t,e){return e.length>0&&T(t.steps)!==void 0}l(Et,"te"),i(Et,"needsReflection");const jt=25;function Ct(t){return t.steps.length>=jt&&T(t.steps)==="passed"&&!J(t)}l(Ct,"ee"),i(Ct,"longSuccess");const S={user:800,assistant:600,toolCall:300,toolOutput:400},K=12e3;function w(t,e){const n=t.replace(/\s+/g," ").trim();return n.length>e?`${n.slice(0,e)}\u2026`:n}l(w,"x"),i(w,"clip");const ee=/(?:^|\/)(?:package\.json|package-lock\.json|npm-shrinkwrap\.json|pnpm-lock\.yaml|yarn\.lock|bun\.lockb?|requirements[^/]*\.txt|pyproject\.toml|poetry\.lock|Pipfile(?:\.lock)?|Cargo\.(?:toml|lock)|go\.(?:mod|sum)|Gemfile(?:\.lock)?|composer\.(?:json|lock)|\.gitlab-ci\.yml|\.github\/workflows\/[^/]+)$/,se=/(?:^|[;&|]\s*)(?:npm\s+(?:i|install|add|uninstall|rm)\b(?=[^;&|]*\s[@a-z])|pnpm\s+(?:add|remove|i\s+\S|install\s+\S)|yarn\s+(?:add|remove)\b|bun\s+(?:add|remove)\b|pip3?\s+install\s+(?!-r\b|-e\b|\.)\S|poetry\s+add\b|cargo\s+add\b|go\s+get\b)/,ne=/(?:>>?|\btee\b|\bsed\s+-i\b|\bnpm\s+pkg\s+set\b)[^;&|]*(?:package\.json|package-lock\.json|pnpm-lock\.yaml|yarn\.lock|requirements[^/\s]*\.txt|pyproject\.toml|Cargo\.toml|go\.mod)/;function Rt(t){const e=new Set;for(const n of t){if(n.isError)continue;const o=H(n);o&&/^(?:edit|write|multiedit|apply_patch|str_replace)/i.test(n.name)&&ee.test(o.replace(/\\/g,"/"))&&e.add(o.split(/[\\/]/).at(-1));const s=n.command??(typeof n.args.command=="string"?n.args.command:"");if(!s)continue;se.test(s)&&e.add("dependencies");const r=ne.exec(s);r&&e.add(r[0].match(/[\w.-]+$/)?.[0]??"package.json")}return[...e]}l(Rt,"ne"),i(Rt,"protectedChanges");function H(t){const e=t.args.path??t.args.file_path??t.args.file;return typeof e=="string"?e:""}l(H,"K"),i(H,"pathArg");function Ot(t,e){const n=[];e&&n.push(`[previous answer] ${w(b(e),S.assistant)}`),n.push(`[user] ${w(b(t.userPrompt),S.user)}`);for(const s of t.steps){const r=s.command??JSON.stringify(s.args),a=_t(H(s))||(s.command?/\.env\b|auth\.json|id_rsa|\.pem\b/.test(s.command):!1);n.push(`[tool ${s.name}] ${w(b(r),S.toolCall)}`);const c=a?"(content of a sensitive file left out)":w(b(s.output),S.toolOutput);n.push(`[tool_output${s.isError?" \xB7 error":""}] ${c}`)}t.assistantText&&n.push(`[assistant] ${w(b(t.assistantText),S.assistant)}`);let o=n.join(`
|
|
5
|
+
`);for(;o.length>K&&n.length>3;)n.splice(e?2:1,1),o=n.join(`
|
|
6
|
+
`);return o.slice(0,K)}l(Ot,"se"),i(Ot,"buildExcerpt");export{jt as LONG_RUN_TOOL_CALLS,K as MAX_EXCERPT_CHARS,xt as analyzeRun,Y as bareCommand,Ot as buildExcerpt,C as checkCommand,M as codeFailed,L as commandIntent,N as failureReason,W as fixCommands,U as fixPairs,q as isCorrection,z as isDenial,G as isDetour,B as isSearch,rt as isUntellingReason,Ct as longSuccess,J as needsModel,Et as needsReflection,$t as passedLast,Rt as protectedChanges,P as reportsFailure,_ as reportsPass,x as runsChecks,yt as sameChecks,F as splitCommand,D as toolSteps,T as verifiedOutcome};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-lsp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
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.59",
|
|
25
|
+
"@dalcode/dal-dap": "1.0.59",
|
|
26
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
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.59",
|
|
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.59",
|
|
33
|
+
"@dalcode/dal-guard": "1.0.59",
|
|
34
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
35
|
+
"@dalcode/deepailab": "1.0.59",
|
|
36
|
+
"@earendil-works/pi-mcp": "1.0.59",
|
|
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.59",
|
|
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.59",
|
|
22
22
|
"docx": "9.7.1",
|
|
23
23
|
"echarts": "6.1.0",
|
|
24
24
|
"exceljs": "4.4.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-plugins",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
-
"@dalcode/dal-skills": "1.0.
|
|
25
|
-
"@dalcode/deepailab": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
24
|
+
"@dalcode/dal-skills": "1.0.59",
|
|
25
|
+
"@dalcode/deepailab": "1.0.59",
|
|
26
26
|
"typebox": "1.3.27"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-recall",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Search past sessions: a local full-text index of earlier conversations the model can query with session_search. Adapted from @henryqw/pi-session-recall 5.1.4 (MIT).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -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.59",
|
|
24
24
|
"typebox": "1.3.27"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-remote",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "`dal remote enable|disable|status|pair|logs`: installs the phone daemon (a pinned, integrity-checked npm package) and runs it as a systemd user service or a launchd agent, so the DAL Code phone app can reach this machine.",
|
|
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.59"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-review",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
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.59",
|
|
23
|
+
"@dalcode/dal-subagent": "1.0.59",
|
|
24
24
|
"typebox": "1.3.7"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-rewind",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
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.59"
|
|
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.59",
|
|
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-guard": "1.0.
|
|
33
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
34
|
-
"@dalcode/dal-tool-catalog": "1.0.
|
|
35
|
-
"@dalcode/deepailab": "1.0.
|
|
36
|
-
"@earendil-works/pi-tui": "1.0.
|
|
32
|
+
"@dalcode/dal-guard": "1.0.59",
|
|
33
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
34
|
+
"@dalcode/dal-tool-catalog": "1.0.59",
|
|
35
|
+
"@dalcode/deepailab": "1.0.59",
|
|
36
|
+
"@earendil-works/pi-tui": "1.0.59"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@earendil-works/pi-coding-agent": "^1.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-rtk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Uses rtk, when the user has installed it, to compress the output of shell commands the agent runs. Does nothing when rtk is not installed; never installs it.",
|
|
6
6
|
"type": "module",
|
|
@@ -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.59"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-skills",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
26
|
-
"@dalcode/deepailab": "1.0.
|
|
25
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
26
|
+
"@dalcode/deepailab": "1.0.59",
|
|
27
27
|
"typebox": "1.3.7"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-statusline",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "A scriptable status line under the footer: a template or a command of the user's choosing. Grown from the status-line and custom-footer extension examples.",
|
|
6
6
|
"type": "module",
|
|
@@ -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.59"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-structured",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "dal -p --output-schema: the final answer as JSON that matches a JSON Schema, with a non-zero exit when it does not. Grown from the structured-output extension example.",
|
|
6
6
|
"type": "module",
|
|
@@ -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.59",
|
|
22
22
|
"typebox": "1.3.27"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-subagent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
22
|
-
"@dalcode/dal-guard": "1.0.
|
|
23
|
-
"@earendil-works/pi-agent-core": "1.0.
|
|
24
|
-
"@earendil-works/pi-ai": "1.0.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
22
|
+
"@dalcode/dal-guard": "1.0.59",
|
|
23
|
+
"@earendil-works/pi-agent-core": "1.0.59",
|
|
24
|
+
"@earendil-works/pi-ai": "1.0.59",
|
|
25
25
|
"typebox": "1.3.7"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-sync",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Conversations, personal skills and personal lessons follow the signed-in DeepAILab account, so other computers pick them up (/sync).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dalcode/dal-learn": "1.0.
|
|
27
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
28
|
-
"@dalcode/deepailab": "1.0.
|
|
26
|
+
"@dalcode/dal-learn": "1.0.59",
|
|
27
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
28
|
+
"@dalcode/deepailab": "1.0.59"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-telemetry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
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-learn": "1.0.
|
|
29
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
30
|
-
"@dalcode/deepailab": "1.0.
|
|
28
|
+
"@dalcode/dal-learn": "1.0.59",
|
|
29
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
30
|
+
"@dalcode/deepailab": "1.0.59"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@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.59",
|
|
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.59",
|
|
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.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -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.59",
|
|
23
23
|
"typebox": "1.3.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-usage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "/usage: tokens and cost across all sessions, by day, model and project, with sub-agent spend counted once. Adapted from @tmustier/pi-usage-extension 0.9.5 (MIT).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -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.59"
|
|
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-web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
28
|
-
"@dalcode/deepailab": "1.0.
|
|
27
|
+
"@dalcode/dal-pi-kit": "1.0.59",
|
|
28
|
+
"@dalcode/deepailab": "1.0.59",
|
|
29
29
|
"typebox": "1.3.27",
|
|
30
30
|
"unpdf": "1.8.1"
|
|
31
31
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-workflow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
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.59",
|
|
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.59",
|
|
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.59",
|
|
24
|
+
"@earendil-works/pi-ai": "1.0.59"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earendil-works/pi-agent-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@earendil-works/pi-ai": "1.0.
|
|
21
|
-
"@earendil-works/pi-schema": "1.0.
|
|
20
|
+
"@earendil-works/pi-ai": "1.0.59",
|
|
21
|
+
"@earendil-works/pi-schema": "1.0.59"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"ai",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":6,"generatedAt":"2026-11-
|
|
1
|
+
{"schemaVersion":6,"generatedAt":"2026-11-26T08:23:16.233Z","structureHash":"9b5b2cd9e795fea3ef5ca44fce70c880597b97db1a44c61119355f5d9b0174c9","files":{"amazon-bedrock.json":"ed7c4e7a904f5ec4072ac7a8cf02657ea5d90d396e821de0068f40bc935fb8e1","ant-ling.json":"628feab3ef6c7d80ce96f75999804e1d9f05fec3851e5302e30fff3b69db90f6","anthropic.json":"ebd207ed51603e2060b870bef72c86e9de02d3a14f78bd9813f2de0db27dbdef","azure.json":"8ca9a9b722ad090e79471ddbb526db03d7e1e6f1149b18142b9426d66bdb80b9","baseten.json":"5ddfbb5410a65e27a73c3c3a2bdd0dded055a74df9684e4807148b1561f7257f","cerebras.json":"2eb969b2956844f9a641d3de52c19f1791293c58f607282fb3b0ebfe85ff66f8","cloudflare-ai-gateway.json":"d6cfa67eeba1999fcd11637afd5386753cee03deaa492ccd9643993a9cda180c","cloudflare-workers-ai.json":"5cda71019f5e082c18dcc515c8b1f3e17cb025b79dafb8ceced8bca815a9eb9b","deepseek.json":"10a296fb3e898f7715c80890c8af0af4f5fd58f22dbcd6612fdc5d762157ccdc","fireworks.json":"cd5478c4c72bf8deaf88610147a9c4abc2b1c1a4765ba4a4925bd1a4e9f37120","github-copilot.json":"89376f5100cae0563bd980564cbcca3f03fa38be7a62349caa5262c3d5f31adb","google-vertex.json":"3b444f3ddfa48dcea61e52a2c9da2bc57fcbdbbb4bb223b73aa5032bde035e6e","google.json":"7df2bed015e7f5d882ab06c3e685eab1b2a71fadefcf4a297706e1efbd52d6dc","groq.json":"087df37206e9eed8b10f1e558e4c496289bef60074b7e8afba4f20fb102b4ec2","huggingface.json":"9347a8febbdcc130654cfbea0789b836777bbe4e2cc083b67f6f9382c6c8eb6a","kimi-coding.json":"47ed9d0c7dc6913bd54210e267da6a4863affa6d19221f9f731c7c1e4a050521","meta.json":"6ccc391fc86586638b4a2f26420f0e4763fccce04d746665cbd55f477124bb3b","minimax-cn.json":"fa15d1f67a07046d38e191af9bd97ed922ba45a99a11af4ad281151cc6b762aa","minimax.json":"1e0459dda3858ea24151182106fc4179b95f43a0a8dffc1c3d2e7db4c2d9206e","mistral.json":"96d113cf64ed2597afb885f8c1b7bc5745dae00ccc36ddea362570775ea3ff4c","moonshotai-cn.json":"1a15468b1edf9205956e4c5ea41fc4cacc14eabf00523b9143e23a38264f57f7","moonshotai.json":"f31cdf2e6c81a403c4cb0e6b7e759ceff2820f966b08dbec80cfafa3f80dfc63","nvidia.json":"6174a8fdd6aeb0fafc76f18cfc0a93f5a764bc2e6522c72a0e4508b94c0ad45b","openai-codex.json":"dd30453068f310317abf35d9adc6d841339a1351f0c6925a6aff45d975e0257c","openai.json":"7077b7a213be23c828813af239639dc061d43ec799ae6eba7afb0dcdcf6c463e","opencode-go.json":"6b6916f4b48caf6638d363dc3bf0c344043207f5c7e98048068cf3ddc8a2c204","opencode.json":"8fbd7410dcb33732da9b00ab57d7f5111a29e706eaf78481b7fa5a90f804c685","openrouter.json":"33ecdda13f2692bb8b395c9a3d2e775ed7957d7556eda44916cacf5dcfbf2b31","qwen-token-plan-cn.json":"a9c0a839d449357f45abb1688b98f4702f2debe12fe7dc1ce499a074c7f5e1e6","qwen-token-plan-individual-cn.json":"fb74899c770572efbb27eb8d3398a07edaa4d62229655f9a0702ae01af22ac95","qwen-token-plan-individual.json":"f83c5ae4dce709924ad03a10c5f9c09a42b3670cb6ee2ed32590b9e0fcbaf8a9","qwen-token-plan.json":"e4263c1aed73a522c1e410f770ea742b3fa863776520755fcdf83c27f168e97b","radius.json":"8fd35fe53464ef8be1983289fa5d4842d4773e7fe9c861297f22ef3321c1a665","together.json":"c7fd97e9289b0db7fd29055e802dbf756d886070ee73f0aa049a5ab9fc5a8587","typesafe.json":"631b03f70597ad656e8f45a393ab46bd4137459b9b499708ac3d5d9d9decd3f2","vercel-ai-gateway.json":"9f782693c006792d689ebb441160a7e2e541cc22838183d82ed46de198e2ed29","xai.json":"db408985a02980ba9d30f359b4f394a7d088cc75e26bd4bef30aecb43077771b","xiaomi-token-plan-ams.json":"34fe47b0a79fec7843a01d542cb64b736e651a3e6691cc851183e5ce3eae0118","xiaomi-token-plan-cn.json":"e69f9704b450dbb34b6db61a7b224dab5e5a91a39af3e505ecca4db8bfdc04f0","xiaomi-token-plan-sgp.json":"fd28cc293208617127ff888873772b7b52160538caa07ca3af641f3208d3ad20","xiaomi.json":"65bc04b2ab6c9e97594de34bcea4ef7e45befd87901b4208d1ea4142b93f0561","zai-coding-cn.json":"0939140446e5063937ed60035162e4251d295cae00a376b5348d01562e77eb09","zai.json":"cc04efe5ca13e7f7945ce8243899c7be97d7ab184cf21192b365b28432eea19c"}}
|