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.
Files changed (111) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/bundle/chunks/{anthropic-messages-Y6ZFHUZY.js → anthropic-messages-UHE6F2IE.js} +1 -1
  3. package/dist/bundle/chunks/{azure-openai-responses-M6NPMDKK.js → azure-openai-responses-EK4W2MKL.js} +1 -1
  4. package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
  5. package/dist/bundle/chunks/{chunk-6VVU2U7I.js → chunk-2C7JTP5O.js} +1 -1
  6. package/dist/bundle/chunks/{chunk-BY4XL3JS.js → chunk-33MCYYJ3.js} +1 -1
  7. package/dist/bundle/chunks/{chunk-GHZXS4EI.js → chunk-356BFRU3.js} +1 -1
  8. package/dist/bundle/chunks/{chunk-3KP6IUMV.js → chunk-3ZHZINH3.js} +2 -2
  9. package/dist/bundle/chunks/{chunk-2IIG5FH4.js → chunk-4DMD6C65.js} +1 -1
  10. package/dist/bundle/chunks/{chunk-6GCEEEP2.js → chunk-B5GJW7C2.js} +1 -1
  11. package/dist/bundle/chunks/{chunk-EHKSTDLR.js → chunk-CSZTBJOE.js} +1 -1
  12. package/dist/bundle/chunks/{chunk-XQY5ZHQA.js → chunk-FE533CCR.js} +1 -1
  13. package/dist/bundle/chunks/{chunk-22WV5HKU.js → chunk-IDZ3QKHZ.js} +1 -1
  14. package/dist/bundle/chunks/{chunk-FBHNYUW7.js → chunk-K4B5ABCQ.js} +1 -1
  15. package/dist/bundle/chunks/{chunk-N2RRGQFI.js → chunk-L3RBW36Y.js} +1 -1
  16. package/dist/bundle/chunks/{chunk-HBTEG3CS.js → chunk-O7G23ELK.js} +1 -1
  17. package/dist/bundle/chunks/{chunk-YIBYUMGO.js → chunk-R7FBN5UP.js} +2 -2
  18. package/dist/bundle/chunks/{chunk-YALY2HLR.js → chunk-RKLUP6JT.js} +10 -12
  19. package/dist/bundle/chunks/{chunk-EGEFD4CT.js → chunk-SCYK4XNE.js} +1 -1
  20. package/dist/bundle/chunks/{chunk-QYQJQJ5B.js → chunk-VIS5PYQO.js} +1 -1
  21. package/dist/bundle/chunks/{chunk-YZQKKXBH.js → chunk-XRF4A4KI.js} +1 -1
  22. package/dist/bundle/chunks/{cli-UYQ4R2DI.js → cli-XOLEGZVC.js} +1 -1
  23. package/dist/bundle/chunks/{cli-DZWQCYIH.js → cli-YJV3WN2N.js} +1 -1
  24. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-HI7IU5IW.js → cloudflare-workers-ai-system-one-KNGB64NR.js} +1 -1
  25. package/dist/bundle/chunks/{execute-B5PKAASV.js → execute-6PNQ63VS.js} +1 -1
  26. package/dist/bundle/chunks/{google-generative-ai-DA5V3QPV.js → google-generative-ai-YJN7TGWU.js} +1 -1
  27. package/dist/bundle/chunks/{google-vertex-BT23CSDX.js → google-vertex-3BVJFMMZ.js} +1 -1
  28. package/dist/bundle/chunks/{llama-cpp-classify-T62K6I4H.js → llama-cpp-classify-JVUWNG3E.js} +1 -1
  29. package/dist/bundle/chunks/{mcp-KRPDZMNU.js → mcp-PC3Y3FBI.js} +1 -1
  30. package/dist/bundle/chunks/{mistral-conversations-NAYQLEXL.js → mistral-conversations-O6YIQAS5.js} +1 -1
  31. package/dist/bundle/chunks/{office-UYJNMMJ5.js → office-AXLGVCMO.js} +1 -1
  32. package/dist/bundle/chunks/{openai-codex-responses-NN7VPVPU.js → openai-codex-responses-YQ5NNPTG.js} +1 -1
  33. package/dist/bundle/chunks/{openai-completions-OWUZLSV4.js → openai-completions-R4I3PKBD.js} +1 -1
  34. package/dist/bundle/chunks/{openai-decisions-RU4UQIAZ.js → openai-decisions-IUHMKKHZ.js} +1 -1
  35. package/dist/bundle/chunks/{openai-responses-NPZBVAJQ.js → openai-responses-E2PHOQF4.js} +1 -1
  36. package/dist/bundle/chunks/{openrouter-images-YX7ATNAW.js → openrouter-images-NCMLTKZW.js} +1 -1
  37. package/dist/bundle/chunks/{pi-messages-IDL3P2ML.js → pi-messages-GLTSGLSO.js} +1 -1
  38. package/dist/bundle/chunks/{review-34VIXKJ7.js → review-KXWT7T3V.js} +1 -1
  39. package/dist/bundle/chunks/{router-WVWEQNZR.js → router-26PXJ7YH.js} +1 -1
  40. package/dist/bundle/chunks/{runtime-WJYFTWKS.js → runtime-LJBCO7CX.js} +1 -1
  41. package/dist/bundle/chunks/{sdk-BGOXS6X2.js → sdk-6GP346VB.js} +1 -1
  42. package/dist/bundle/chunks/{sync-D7K3QQKF.js → sync-ONQZCAYG.js} +1 -1
  43. package/dist/bundle/chunks/{typesafe-system-one-64X2E56P.js → typesafe-system-one-GQFHU7SQ.js} +1 -1
  44. package/dist/bundle/chunks/{usage-VBIOUGRZ.js → usage-MY7HTXQB.js} +1 -1
  45. package/dist/bundle/chunks/{virtual-modules-JXLCYYRR.js → virtual-modules-BEBLHRXC.js} +1 -1
  46. package/dist/bundle/cli-runtime.js +1 -1
  47. package/dist/bundle/index.js +1 -1
  48. package/dist/bundle/rpc-entry.js +1 -1
  49. package/dist/core/settings-manager.d.ts +1 -1
  50. package/dist/core/settings-manager.js +1 -1
  51. package/dist/core/tools/bash.js +14 -14
  52. package/dist/core/tools/renderers/bash.js +8 -8
  53. package/dist/modes/interactive/components/compaction-summary-message.js +1 -3
  54. package/dist/node_modules/@dalcode/dal-advisor/package.json +3 -3
  55. package/dist/node_modules/@dalcode/dal-awake/package.json +2 -2
  56. package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
  57. package/dist/node_modules/@dalcode/dal-capabilities/package.json +4 -4
  58. package/dist/node_modules/@dalcode/dal-codeindex/package.json +2 -2
  59. package/dist/node_modules/@dalcode/dal-compat/package.json +2 -2
  60. package/dist/node_modules/@dalcode/dal-dap/package.json +2 -2
  61. package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
  62. package/dist/node_modules/@dalcode/dal-goal/package.json +3 -3
  63. package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
  64. package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
  65. package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
  66. package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
  67. package/dist/node_modules/@dalcode/dal-learn/package.json +2 -2
  68. package/dist/node_modules/@dalcode/dal-lsp/package.json +4 -4
  69. package/dist/node_modules/@dalcode/dal-mcp/package.json +6 -6
  70. package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
  71. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +1 -1
  72. package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
  73. package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +1 -1
  74. package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
  75. package/dist/node_modules/@dalcode/dal-recall/package.json +2 -2
  76. package/dist/node_modules/@dalcode/dal-remote/package.json +2 -2
  77. package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
  78. package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
  79. package/dist/node_modules/@dalcode/dal-router/package.json +6 -6
  80. package/dist/node_modules/@dalcode/dal-rtk/package.json +2 -2
  81. package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
  82. package/dist/node_modules/@dalcode/dal-statusline/package.json +2 -2
  83. package/dist/node_modules/@dalcode/dal-structured/package.json +2 -2
  84. package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
  85. package/dist/node_modules/@dalcode/dal-sync/package.json +4 -4
  86. package/dist/node_modules/@dalcode/dal-telemetry/package.json +4 -4
  87. package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
  88. package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
  89. package/dist/node_modules/@dalcode/dal-usage/package.json +2 -2
  90. package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
  91. package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
  92. package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
  93. package/dist/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
  94. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  95. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  96. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.d.ts +1 -1
  97. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.js +1 -1
  98. package/dist/node_modules/@earendil-works/pi-ai/package.json +3 -3
  99. package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
  100. package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  101. package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
  102. package/dist/node_modules/@earendil-works/pi-schema/package.json +1 -1
  103. package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  104. package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
  105. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  106. package/examples/extensions/gondolin/package-lock.json +2 -2
  107. package/examples/extensions/gondolin/package.json +1 -1
  108. package/examples/extensions/with-deps/package-lock.json +2 -2
  109. package/examples/extensions/with-deps/package.json +1 -1
  110. package/npm-shrinkwrap.json +2 -2
  111. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- var Le=Object.defineProperty;var s=(t,e)=>Le(t,"name",{value:e,configurable:!0});import{constants as Te}from"node:fs";import{access as Ce}from"node:fs/promises";import{constants as Pe}from"node:os";import{ToolExecutionError as ue}from"@earendil-works/pi-agent-core";import{Container as De,Text as Y,truncateToWidth as ve}from"@earendil-works/pi-tui";import{spawn as Ie}from"child_process";import{Type as u}from"typebox";import{fill as W,t as v}from"../../dal/i18n.js";import{keyHint as Ae}from"../../modes/interactive/components/keybinding-hints.js";import{truncateToVisualLines as ke}from"../../modes/interactive/components/visual-truncate.js";import{theme as E}from"../../modes/interactive/theme/theme.js";import{waitForChildProcess as Me}from"../../utils/child-process.js";import{writeOutputFile as Fe}from"../../utils/output-files.js";import{getShellConfig as ce,getShellEnv as me,killProcessTree as pe,trackDetachedChildPid as Ne,untrackDetachedChildPid as Be}from"../../utils/shell.js";import{missingManagedToolHint as Re}from"../../utils/tools-manager.js";import{describeDenialForModel as Ue}from"../sandbox/denial.js";import{getProcessShellSandbox as Ge}from"../sandbox/shell-sandbox.js";import{toolDenial as He,withToolDenial as je}from"../tool-denial.js";import{isReadOnlyBashCommand as We}from"./bash-read-only.js";import{OutputAccumulator as Ve}from"./output-accumulator.js";import{condenseShellOutput as Ye,outputCondenseDisabled as Xe}from"./output-condense.js";import{countOutputLines as Ke,formatCollapsedSummary as qe,getTextOutput as fe,invalidArgText as ze,str as he,truncateDisplay as Je}from"./render-utils.js";import{wrapToolDefinition as Qe}from"./tool-definition-wrapper.js";import{DEFAULT_MAX_BYTES as Ze,formatSize as et,SHELL_OUTPUT_MAX_CHARS as ee,truncateHeadTail as tt}from"./truncate.js";const we=2147483647,Se=1024*1024,nt=8*1024*1024,ot=we/1e3,te=12e4,ne=30;function it(t){if(t===void 0)return te;if(!Number.isFinite(t)||t<=0)throw new Error("Invalid timeout: must be a finite number of seconds");const e=t*1e3;if(e>we)throw new Error(`Invalid timeout: maximum is ${ot} seconds`);return e}s(it,"resolveTimeoutMs");const xe=u.Object({command:u.String({description:"Shell command to execute"}),description:u.String({description:`What it does and why, 3-10 words in the user's language, shown instead of the command: "Find hardcoded key names", not "run grep"`}),timeout:u.Optional(u.Number({description:"Seconds to wait for the command (default in the tool description). Raise it for long builds."}))}),st=u.Optional(u.Object({mode:u.Union([u.Literal("allow"),u.Literal("unsandboxed")],{description:'"allow": stay sandboxed with the domains/paths below; "unsandboxed": run outside the sandbox'}),justification:u.String({description:"Why, in one sentence for the user, who must approve it"}),allow_domains:u.Optional(u.Array(u.String(),{description:"e.g. registry.npmjs.org"})),allow_write:u.Optional(u.Array(u.String(),{description:"Paths to make writable"}))},{description:"Only after the sandbox blocked this command: the access it needs. Never pre-emptively."})),rt=u.Object({...xe.properties,sandbox_escalation:st}),be={snippet:"Execute bash commands (ls, grep, find, etc.)",guidelines:["You can inspect DAL_* environment variables for current model and session details."]},at=u.Object({output:u.String({description:"Combined stdout and stderr, possibly truncated"}),truncated:u.Boolean(),full_output_path:u.Optional(u.String({description:"Full output, when truncated"})),exit_code:u.Number({description:"-1 while the command runs in the background"}),background_id:u.Optional(u.String({description:"Background process id, when it is still running"})),wall_time_seconds:u.Number()});class Ee extends Error{static{s(this,"ShellTimeoutError")}shellExit;constructor(e,n){super(`timeout:${e}`),this.shellExit=n}}function dt(t,e){return{exec:s(async(n,o,{onData:c,signal:i,timeout:$,env:w,yieldTo:r})=>{const L=it($);if(i?.aborted)throw new Error("aborted");const S=e();try{await Ce(o,Te.F_OK)}catch{throw new Error(`Working directory does not exist: ${o}
2
- Cannot execute ${t} commands.`)}const x=S.commandTransport==="stdin",a=Ie(S.shell,x?S.args:[...S.args,n],{cwd:o,detached:process.platform!=="win32",env:w??me(),stdio:[x?"pipe":"ignore","pipe","pipe"],windowsHide:!0});x&&(a.stdin?.on("error",()=>{}),a.stdin?.end(n)),a.pid&&Ne(a.pid);const d=performance.now();let p;a.once("exit",()=>{p=performance.now()-d});let h=!1,m=!1,f;const T=new Promise(U=>{f=s(()=>U("yielded"),"onYielded")});let R,D;const k=s(()=>{a.pid&&pe(a.pid)},"onAbort");try{L!==void 0&&(D=setTimeout(()=>{if(r&&a.exitCode===null&&a.signalCode===null&&r(a)){m=!0,f?.();return}h=!0,R=p,a.pid&&pe(a.pid)},L)),a.stdout?.on("data",c),a.stderr?.on("data",c),i&&(i.aborted?k():i.addEventListener("abort",k,{once:!0}));const U=Me(a),C=await Promise.race([U,T]);if(C==="yielded")return U.catch(()=>{}),{exitCode:null,yielded:!0};const O=C;if(i?.aborted)throw new Error("aborted");const g=a.signalCode,M=O??(g?128+(Pe.signals[g]??0):1);if(h)throw new Ee((L??te)/1e3,R!==void 0?{exitCode:M,afterSeconds:Math.round(R/100)/10}:void 0);return{exitCode:M}}finally{a.pid&&!m&&Be(a.pid),D&&clearTimeout(D),i&&i.removeEventListener("abort",k)}},"exec")}}s(dt,"createLocalShellOperations");function lt(t){return dt("bash",()=>ce(t?.shellPath))}s(lt,"createLocalBashOperations");const oe=Symbol.for("dal.shell.executionGuards"),ie=globalThis;ie[oe]instanceof Set||(ie[oe]=new Set);const se=ie[oe];function Kt(t){return se.add(t),()=>{se.delete(t)}}s(Kt,"registerShellExecutionGuard");async function ut(t){for(const e of se){let n;try{n=await e(t)}catch(o){return`Command refused: the safety check could not run (${o instanceof Error?o.message:String(o)}).`}if(n!==void 0)return n}}s(ut,"shellExecutionRefusal");const ct=["SESSION_ID","SESSION_FILE","PROVIDER","MODEL","REASONING_LEVEL"];function mt(t,e,n,o,c){const i={...me()};if(delete i.PI_SESSION_ID,delete i.PI_SESSION_FILE,delete i.PI_PROVIDER,delete i.PI_MODEL,delete i.PI_REASONING_LEVEL,o&&c){const w=c.model;i.PI_SESSION_ID=c.sessionManager.getSessionId();const r=c.sessionManager.getSessionFile();r&&(i.PI_SESSION_FILE=r),w&&(i.PI_PROVIDER=w.provider,i.PI_MODEL=w.id),c.thinkingLevel&&(i.PI_REASONING_LEVEL=c.thinkingLevel)}for(const w of ct){delete i[`DAL_${w}`];const r=i[`PI_${w}`];r!==void 0&&(i[`DAL_${w}`]=r)}const $={command:t,cwd:e,env:i};return n?n($):$}s(mt,"resolveSpawnContext");const pt=5,ft=100;class ht extends De{static{s(this,"BashResultRenderComponent")}state={cachedWidth:void 0,cachedLines:void 0,cachedSkipped:void 0}}function wt(t){const e=t/1e3;if(e<60)return`${e.toFixed(1)}s`;const n=Math.floor(e),o=Math.floor(n/60),c=n%60;return o<60?`${o}m ${c}s`:`${Math.floor(o/60)}h ${o%60}m ${c}s`}s(wt,"formatDuration");function St(t,e,n=!1){const o=he(t?.command),c=he(t?.description)?.trim(),i=t?.timeout,$=i?E.fg("muted",W(v(" (\u8D85\u65F6 {seconds} \u79D2)"),{seconds:i})):"";if(c){const r=E.fg("toolTitle",E.bold(c))+$;return!n||!o?r:`${r}
3
- ${E.fg("muted",` \u23BF ${e} ${o.trim()}`)}`}const w=o===null?ze(E):o?E.fg("dim",Je(o.replace(/\s+/g," ").trim(),42)):E.fg("dim","\u2026");return`${E.fg("toolTitle",E.bold(e))} ${w}${$}`}s(St,"formatShellCall");function xt(t,e,n,o,c,i,$,w){const r=t.state;t.clear();const L=bt(n,c,i,w);if(!n.expanded&&!$){const d=fe(e,o),p=Ke(d),h=[];p>0&&h.push(W(v("{count} \u884C"),{count:p})),L&&h.push(L);const m=qe(E,h);m&&t.addChild(new Y(m,0,0));return}let S=fe(e,o).trim();const x=e.details?.truncation,a=e.details?.fullOutputPath;if(!n.isPartial&&x?.truncated&&a&&S.endsWith("]")){const d=S.lastIndexOf(`
1
+ var Le=Object.defineProperty;var s=(t,e)=>Le(t,"name",{value:e,configurable:!0});import{constants as Te}from"node:fs";import{access as Ce}from"node:fs/promises";import{constants as Pe}from"node:os";import{ToolExecutionError as ue}from"@earendil-works/pi-agent-core";import{Container as De,Text as V,truncateToWidth as ve}from"@earendil-works/pi-tui";import{spawn as Ie}from"child_process";import{Type as l}from"typebox";import{fill as Y,t as A}from"../../dal/i18n.js";import{keyHint as Ae}from"../../modes/interactive/components/keybinding-hints.js";import{truncateToVisualLines as ke}from"../../modes/interactive/components/visual-truncate.js";import{theme as E}from"../../modes/interactive/theme/theme.js";import{waitForChildProcess as Me}from"../../utils/child-process.js";import{writeOutputFile as Fe}from"../../utils/output-files.js";import{getShellConfig as ce,getShellEnv as me,killProcessTree as pe,trackDetachedChildPid as Ne,untrackDetachedChildPid as Be}from"../../utils/shell.js";import{missingManagedToolHint as Re}from"../../utils/tools-manager.js";import{describeDenialForModel as Ue}from"../sandbox/denial.js";import{getProcessShellSandbox as Ge}from"../sandbox/shell-sandbox.js";import{toolDenial as He,withToolDenial as je}from"../tool-denial.js";import{isReadOnlyBashCommand as We}from"./bash-read-only.js";import{OutputAccumulator as Ve}from"./output-accumulator.js";import{condenseShellOutput as Ye,outputCondenseDisabled as Xe}from"./output-condense.js";import{countOutputLines as Ke,formatCollapsedSummary as qe,getTextOutput as fe,invalidArgText as ze,str as he,truncateDisplay as Je}from"./render-utils.js";import{wrapToolDefinition as Qe}from"./tool-definition-wrapper.js";import{DEFAULT_MAX_BYTES as Ze,formatSize as et,SHELL_OUTPUT_MAX_CHARS as ee,truncateHeadTail as tt}from"./truncate.js";const we=2147483647,Se=1024*1024,nt=8*1024*1024,ot=we/1e3,te=12e4,ne=30;function it(t){if(t===void 0)return te;if(!Number.isFinite(t)||t<=0)throw new Error("Invalid timeout: must be a finite number of seconds");const e=t*1e3;if(e>we)throw new Error(`Invalid timeout: maximum is ${ot} seconds`);return e}s(it,"resolveTimeoutMs");const xe=l.Object({command:l.String({description:"Shell command to execute"}),description:l.String({description:`What it does and why, 3-10 words in the user's language, shown instead of the command: "Find hardcoded key names", not "run grep"`}),timeout:l.Optional(l.Number({description:"Seconds to wait for the command (default in the tool description). Raise it for long builds."}))}),st=l.Optional(l.Object({mode:l.Union([l.Literal("allow"),l.Literal("unsandboxed")],{description:'"allow": stay sandboxed with the domains/paths below; "unsandboxed": run outside the sandbox'}),justification:l.String({description:"Why, in one sentence for the user, who must approve it"}),allow_domains:l.Optional(l.Array(l.String(),{description:"e.g. registry.npmjs.org"})),allow_write:l.Optional(l.Array(l.String(),{description:"Paths to make writable"}))},{description:"Only after the sandbox blocked this command: the access it needs. Never pre-emptively."})),rt=l.Object({...xe.properties,sandbox_escalation:st}),be={snippet:"Execute bash commands (ls, grep, find, etc.)",guidelines:["You can inspect DAL_* environment variables for current model and session details."]},at=l.Object({output:l.String({description:"Combined stdout and stderr, possibly truncated"}),truncated:l.Boolean(),full_output_path:l.Optional(l.String({description:"Full output, when truncated"})),exit_code:l.Number({description:"-1 while the command runs in the background"}),background_id:l.Optional(l.String({description:"Background process id, when it is still running"})),wall_time_seconds:l.Number()});class Ee extends Error{static{s(this,"ShellTimeoutError")}shellExit;constructor(e,n){super(`timeout:${e}`),this.shellExit=n}}function dt(t,e){return{exec:s(async(n,o,{onData:u,signal:i,timeout:L,env:w,yieldTo:c})=>{const $=it(L);if(i?.aborted)throw new Error("aborted");const S=e();try{await Ce(o,Te.F_OK)}catch{throw new Error(`Working directory does not exist: ${o}
2
+ Cannot execute ${t} commands.`)}const x=S.commandTransport==="stdin",r=Ie(S.shell,x?S.args:[...S.args,n],{cwd:o,detached:process.platform!=="win32",env:w??me(),stdio:[x?"pipe":"ignore","pipe","pipe"],windowsHide:!0});x&&(r.stdin?.on("error",()=>{}),r.stdin?.end(n)),r.pid&&Ne(r.pid);const a=performance.now();let p;r.once("exit",()=>{p=performance.now()-a});let h=!1,m=!1,f;const T=new Promise(U=>{f=s(()=>U("yielded"),"onYielded")});let R,D;const k=s(()=>{r.pid&&pe(r.pid)},"onAbort");try{$!==void 0&&(D=setTimeout(()=>{if(c&&r.exitCode===null&&r.signalCode===null&&c(r)){m=!0,f?.();return}h=!0,R=p,r.pid&&pe(r.pid)},$)),r.stdout?.on("data",u),r.stderr?.on("data",u),i&&(i.aborted?k():i.addEventListener("abort",k,{once:!0}));const U=Me(r),C=await Promise.race([U,T]);if(C==="yielded")return U.catch(()=>{}),{exitCode:null,yielded:!0};const O=C;if(i?.aborted)throw new Error("aborted");const g=r.signalCode,M=O??(g?128+(Pe.signals[g]??0):1);if(h)throw new Ee(($??te)/1e3,R!==void 0?{exitCode:M,afterSeconds:Math.round(R/100)/10}:void 0);return{exitCode:M}}finally{r.pid&&!m&&Be(r.pid),D&&clearTimeout(D),i&&i.removeEventListener("abort",k)}},"exec")}}s(dt,"createLocalShellOperations");function lt(t){return dt("bash",()=>ce(t?.shellPath))}s(lt,"createLocalBashOperations");const oe=Symbol.for("dal.shell.executionGuards"),ie=globalThis;ie[oe]instanceof Set||(ie[oe]=new Set);const se=ie[oe];function Kt(t){return se.add(t),()=>{se.delete(t)}}s(Kt,"registerShellExecutionGuard");async function ut(t){for(const e of se){let n;try{n=await e(t)}catch(o){return`Command refused: the safety check could not run (${o instanceof Error?o.message:String(o)}).`}if(n!==void 0)return n}}s(ut,"shellExecutionRefusal");const ct=["SESSION_ID","SESSION_FILE","PROVIDER","MODEL","REASONING_LEVEL"];function mt(t,e,n,o,u){const i={...me()};if(delete i.PI_SESSION_ID,delete i.PI_SESSION_FILE,delete i.PI_PROVIDER,delete i.PI_MODEL,delete i.PI_REASONING_LEVEL,o&&u){const w=u.model;i.PI_SESSION_ID=u.sessionManager.getSessionId();const c=u.sessionManager.getSessionFile();c&&(i.PI_SESSION_FILE=c),w&&(i.PI_PROVIDER=w.provider,i.PI_MODEL=w.id),u.thinkingLevel&&(i.PI_REASONING_LEVEL=u.thinkingLevel)}for(const w of ct){delete i[`DAL_${w}`];const c=i[`PI_${w}`];c!==void 0&&(i[`DAL_${w}`]=c)}const L={command:t,cwd:e,env:i};return n?n(L):L}s(mt,"resolveSpawnContext");const pt=5,ft=100;class ht extends De{static{s(this,"BashResultRenderComponent")}state={cachedWidth:void 0,cachedLines:void 0,cachedSkipped:void 0}}function wt(t){const e=t/1e3;if(e<60)return`${e.toFixed(1)}s`;const n=Math.floor(e),o=Math.floor(n/60),u=n%60;return o<60?`${o}m ${u}s`:`${Math.floor(o/60)}h ${o%60}m ${u}s`}s(wt,"formatDuration");function St(t,e,n=!1){const o=he(t?.command),u=he(t?.description)?.trim(),i="";if(u){const w=E.fg("toolTitle",E.bold(u))+i;return!n||!o?w:`${w}
3
+ ${E.fg("muted",` \u23BF ${e} ${o.trim()}`)}`}const L=o===null?ze(E):o?E.fg("dim",Je(o.replace(/\s+/g," ").trim(),42)):E.fg("dim","\u2026");return`${E.fg("toolTitle",E.bold(e))} ${L}${i}`}s(St,"formatShellCall");function xt(t,e,n,o,u,i,L,w){const c=t.state;t.clear();const $=bt(n,u,i,w);if(!n.expanded&&!L){const a=fe(e,o),p=Ke(a),h=[];p>0&&h.push(Y(A("{count} \u884C"),{count:p})),$&&h.push($);const m=qe(E,h);m&&t.addChild(new V(m,0,0));return}let S=fe(e,o).trim();const x=e.details?.truncation,r=e.details?.fullOutputPath;if(!n.isPartial&&x?.truncated&&r&&S.endsWith("]")){const a=S.lastIndexOf(`
4
4
 
5
- [`);d!==-1&&S.slice(d).includes(a)&&(S=S.slice(0,d).trimEnd())}if(S){const d=S.split(`
5
+ [`);a!==-1&&S.slice(a).includes(r)&&(S=S.slice(0,a).trimEnd())}if(S){const a=S.split(`
6
6
  `).map(p=>E.fg("toolOutput",p)).join(`
7
- `);n.expanded?t.addChild(new Y(`
8
- ${d}`,0,0)):t.addChild({render:s(p=>{if(r.cachedLines===void 0||r.cachedWidth!==p){const h=ke(d,pt,p);r.cachedLines=h.visualLines,r.cachedSkipped=h.skippedCount,r.cachedWidth=p}if(r.cachedSkipped&&r.cachedSkipped>0){const h=E.fg("muted",W(v("... (\u524D\u9762\u8FD8\u6709 {count} \u884C\uFF0C"),{count:r.cachedSkipped}))+` ${Ae("app.tools.expand",v("\u5373\u53EF\u5C55\u5F00"))}${E.fg("muted",")")}`;return["",ve(h,p,"..."),...r.cachedLines??[]]}return["",...r.cachedLines??[]]},"render"),invalidate:s(()=>{r.cachedWidth=void 0,r.cachedLines=void 0,r.cachedSkipped=void 0},"invalidate")})}if(x?.truncated||a){const d=[];a&&d.push(W(v("\u5B8C\u6574\u8F93\u51FA\uFF1A{path}"),{path:a})),x?.truncated&&(x.truncatedBy==="lines"?d.push(W(v("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A {shown}/{total} \u884C"),{shown:x.outputLines,total:x.totalLines})):d.push(W(v("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A\u4E86 {shown} \u884C\uFF08\u4E0A\u9650 {limit}\uFF09"),{shown:x.outputLines,limit:et(x.maxBytes??Ze)}))),t.addChild(new Y(`
9
- ${E.fg("warning",`[${d.join(". ")}]`)}`,0,0))}L&&t.addChild(new Y(`
10
- ${E.fg("muted",L)}`,0,0))}s(xt,"rebuildBashResultRenderComponent");function bt(t,e,n,o){let c;if(!t.isPartial&&o!==void 0)c=o;else if(e!==void 0)c=(n??Date.now())-e;else return;if(!(!t.isPartial&&c<100))return`${t.isPartial?v("\u5DF2\u8FD0\u884C"):v("\u8017\u65F6")} ${wt(c)}`}s(bt,"bashTimingLabel");function Et(t,e,n){const o=n?.operations??e.defaultOperations?.()??lt({shellPath:n?.shellPath}),c=n?.commandPrefix,i=n?.exposeSessionEnvironment??!0,$=n?.spawnHook,w=n?.sandbox,r=n?.operations===void 0,L=w?.describeForModel(),S=n?.background;let x=!1;const a=s(d=>`Execute a ${e.shellName} command in the current working directory; returns stdout and stderr. Long output is cut to its start and end (error lines kept) and the full output saved to a file named in the result. ${d?`A command still running after \`timeout\` seconds (default ${ne}) keeps running in the background: you get its id and the output so far, then use the process tool to poll or kill it.`:`A command still running after \`timeout\` seconds (default ${te/1e3}) is killed.`}${L?` ${L}`:""}`,"describe");return{name:e.name,label:e.label,description:a(!1),prepareLoadout:S&&r?d=>(x=d.declared.some(p=>p.name==="process"),x?{descriptions:{[e.name]:a(!0)}}:void 0):void 0,promptSnippet:e.promptSnippet,promptGuidelines:i&&e.promptGuidelines?[...e.promptGuidelines]:void 0,executionMode:"sequential",executionModeFor:e.readOnlyCommand&&!c?d=>e.readOnlyCommand?.(d?.command)?"parallel":void 0:void 0,parameters:w?.active?rt:xe,outputSchema:at,constrainedSampling:{type:"json_schema",strict:"prefer"},async execute(d,p,h,m,f){const{command:T,timeout:R}=p;m&&m({content:[],details:void 0});const D=w??(r?Ge():void 0),k=await ut({toolName:e.name,command:T,cwd:f?.cwd||t,sessionFile:f?.sessionManager?.getSessionFile(),...D?.active?{tempDir:D.scratchDir()}:{}});if(k!==void 0)throw new ue(k,je(void 0,He("dangerous-command",k)));const U=c?`${c}
11
- ${T}`:T,C=mt(U,f?.cwd||t,$,i,f);let O;if(D?.active){if(!e.sandboxShell)throw new Error(`Command refused: ${e.shellName} commands cannot run inside the OS sandbox yet, and the sandbox level is "${D.level}". Use the bash tool, or the user can opt out with \`dal --sandbox off\`.`);O=await D.prepare({command:C.command,cwd:C.cwd,shell:e.sandboxShell(n?.shellPath),shellKind:e.sandboxShellKind??"bash",env:C.env,toolCallId:d,toolName:e.name,escalation:p.sandbox_escalation,ctx:f,signal:h})}const g=new Ve({tempFilePrefix:e.tempFilePrefix,maxBytes:ee});let M=!0,V,K=!1,re=0;const q=s(()=>{if(!m||!K)return;K=!1,re=Date.now();const l=g.snapshot({persistIfTruncated:!0});m({content:[{type:"text",text:l.content||""}],details:{truncation:l.truncation.truncated?l.truncation:void 0,fullOutputPath:l.fullOutputPath}})},"emitOutputUpdate"),z=s(()=>{V&&(clearTimeout(V),V=void 0)},"clearUpdateTimer"),_e=s(()=>{if(!m)return;K=!0;const l=ft-(Date.now()-re);if(l<=0){z(),q();return}V??=setTimeout(()=>{V=void 0,q()},l)},"scheduleOutputUpdate"),Oe=s(l=>{M&&(g.append(l),_e())},"handleData"),ge=s(async()=>{M=!1,g.finish(),z(),q();const l=g.snapshot({persistIfTruncated:!0});return await g.closeTempFile(),l},"finishOutput"),J=s(async(l="(no output)")=>{const y=await ge(),F=await g.readFullOutput(nt),P=Xe()?void 0:Ye(F.content),_=tt(P?.text??F.content,ee);let A=y.fullOutputPath;(_.truncated||P)&&!A&&(A=await Fe(e.tempFilePrefix,".log",F.content));let N=_.content||l,H;const j=y.truncation.totalLines;return _.truncated?(H={truncation:{content:_.content,truncated:!0,truncatedBy:"bytes",totalLines:j,totalBytes:y.truncation.totalBytes,outputLines:_.headLines+_.tailLines,outputBytes:Buffer.byteLength(_.content,"utf-8"),lastLinePartial:!1,firstLineExceedsLimit:!1,maxLines:j,maxBytes:ee},fullOutputPath:A},N+=`
7
+ `);n.expanded?t.addChild(new V(`
8
+ ${a}`,0,0)):t.addChild({render:s(p=>{if(c.cachedLines===void 0||c.cachedWidth!==p){const h=ke(a,pt,p);c.cachedLines=h.visualLines,c.cachedSkipped=h.skippedCount,c.cachedWidth=p}if(c.cachedSkipped&&c.cachedSkipped>0){const h=E.fg("muted",Y(A("... (\u524D\u9762\u8FD8\u6709 {count} \u884C\uFF0C"),{count:c.cachedSkipped}))+` ${Ae("app.tools.expand",A("\u5373\u53EF\u5C55\u5F00"))}${E.fg("muted",")")}`;return["",ve(h,p,"..."),...c.cachedLines??[]]}return["",...c.cachedLines??[]]},"render"),invalidate:s(()=>{c.cachedWidth=void 0,c.cachedLines=void 0,c.cachedSkipped=void 0},"invalidate")})}if(x?.truncated||r){const a=[];r&&a.push(Y(A("\u5B8C\u6574\u8F93\u51FA\uFF1A{path}"),{path:r})),x?.truncated&&(x.truncatedBy==="lines"?a.push(Y(A("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A {shown}/{total} \u884C"),{shown:x.outputLines,total:x.totalLines})):a.push(Y(A("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A\u4E86 {shown} \u884C\uFF08\u4E0A\u9650 {limit}\uFF09"),{shown:x.outputLines,limit:et(x.maxBytes??Ze)}))),t.addChild(new V(`
9
+ ${E.fg("warning",`[${a.join(". ")}]`)}`,0,0))}$&&t.addChild(new V(`
10
+ ${E.fg("muted",$)}`,0,0))}s(xt,"rebuildBashResultRenderComponent");function bt(t,e,n,o){let u;if(!t.isPartial&&o!==void 0)u=o;else if(e!==void 0)u=(n??Date.now())-e;else return;if(!(!t.isPartial&&u<100))return`${t.isPartial?A("\u5DF2\u8FD0\u884C"):A("\u8017\u65F6")} ${wt(u)}`}s(bt,"bashTimingLabel");function Et(t,e,n){const o=n?.operations??e.defaultOperations?.()??lt({shellPath:n?.shellPath}),u=n?.commandPrefix,i=n?.exposeSessionEnvironment??!0,L=n?.spawnHook,w=n?.sandbox,c=n?.operations===void 0,$=w?.describeForModel(),S=n?.background;let x=!1;const r=s(a=>`Execute a ${e.shellName} command in the current working directory; returns stdout and stderr. Long output is cut to its start and end (error lines kept) and the full output saved to a file named in the result. ${a?`A command still running after \`timeout\` seconds (default ${ne}) keeps running in the background: you get its id and the output so far, then use the process tool to poll or kill it.`:`A command still running after \`timeout\` seconds (default ${te/1e3}) is killed.`}${$?` ${$}`:""}`,"describe");return{name:e.name,label:e.label,description:r(!1),prepareLoadout:S&&c?a=>(x=a.declared.some(p=>p.name==="process"),x?{descriptions:{[e.name]:r(!0)}}:void 0):void 0,promptSnippet:e.promptSnippet,promptGuidelines:i&&e.promptGuidelines?[...e.promptGuidelines]:void 0,executionMode:"sequential",executionModeFor:e.readOnlyCommand&&!u?a=>e.readOnlyCommand?.(a?.command)?"parallel":void 0:void 0,parameters:w?.active?rt:xe,outputSchema:at,constrainedSampling:{type:"json_schema",strict:"prefer"},async execute(a,p,h,m,f){const{command:T,timeout:R}=p;m&&m({content:[],details:void 0});const D=w??(c?Ge():void 0),k=await ut({toolName:e.name,command:T,cwd:f?.cwd||t,sessionFile:f?.sessionManager?.getSessionFile(),...D?.active?{tempDir:D.scratchDir()}:{}});if(k!==void 0)throw new ue(k,je(void 0,He("dangerous-command",k)));const U=u?`${u}
11
+ ${T}`:T,C=mt(U,f?.cwd||t,L,i,f);let O;if(D?.active){if(!e.sandboxShell)throw new Error(`Command refused: ${e.shellName} commands cannot run inside the OS sandbox yet, and the sandbox level is "${D.level}". Use the bash tool, or the user can opt out with \`dal --sandbox off\`.`);O=await D.prepare({command:C.command,cwd:C.cwd,shell:e.sandboxShell(n?.shellPath),shellKind:e.sandboxShellKind??"bash",env:C.env,toolCallId:a,toolName:e.name,escalation:p.sandbox_escalation,ctx:f,signal:h})}const g=new Ve({tempFilePrefix:e.tempFilePrefix,maxBytes:ee});let M=!0,W,K=!1,re=0;const q=s(()=>{if(!m||!K)return;K=!1,re=Date.now();const d=g.snapshot({persistIfTruncated:!0});m({content:[{type:"text",text:d.content||""}],details:{truncation:d.truncation.truncated?d.truncation:void 0,fullOutputPath:d.fullOutputPath}})},"emitOutputUpdate"),z=s(()=>{W&&(clearTimeout(W),W=void 0)},"clearUpdateTimer"),_e=s(()=>{if(!m)return;K=!0;const d=ft-(Date.now()-re);if(d<=0){z(),q();return}W??=setTimeout(()=>{W=void 0,q()},d)},"scheduleOutputUpdate"),Oe=s(d=>{M&&(g.append(d),_e())},"handleData"),ge=s(async()=>{M=!1,g.finish(),z(),q();const d=g.snapshot({persistIfTruncated:!0});return await g.closeTempFile(),d},"finishOutput"),J=s(async(d="(no output)")=>{const y=await ge(),F=await g.readFullOutput(nt),P=Xe()?void 0:Ye(F.content),_=tt(P?.text??F.content,ee);let I=y.fullOutputPath;(_.truncated||P)&&!I&&(I=await Fe(e.tempFilePrefix,".log",F.content));let N=_.content||d,H;const j=y.truncation.totalLines;return _.truncated?(H={truncation:{content:_.content,truncated:!0,truncatedBy:"bytes",totalLines:j,totalBytes:y.truncation.totalBytes,outputLines:_.headLines+_.tailLines,outputBytes:Buffer.byteLength(_.content,"utf-8"),lastLinePartial:!1,firstLineExceedsLimit:!1,maxLines:j,maxBytes:ee},fullOutputPath:I},N+=`
12
12
 
13
- [Truncated: first ${_.headLines} and last ${_.tailLines} of ${_.totalLines} lines shown${P?`, after condensing ${j} lines (${P.summary})`:""}; read more with read (offset/limit) or grep. Full output: ${A}]`):P&&(H={fullOutputPath:A},N+=`
13
+ [Truncated: first ${_.headLines} and last ${_.tailLines} of ${_.totalLines} lines shown${P?`, after condensing ${j} lines (${P.summary})`:""}; read more with read (offset/limit) or grep. Full output: ${I}]`):P&&(H={fullOutputPath:I},N+=`
14
14
 
15
- [Condensed: ${P.summary}. Full output: ${A}]`),{text:N,details:H,snapshot:y}},"modelOutput"),G=s((l,y)=>`${l?`${l}
15
+ [Condensed: ${P.summary}. Full output: ${I}]`),{text:N,details:H,snapshot:y}},"modelOutput"),G=s((d,y)=>`${d?`${d}
16
16
 
17
- `:""}${y}`,"appendStatus"),ae=performance.now();let I;const Q=S&&r&&x?l=>{M=!1;try{return I=S.adopt({child:l,command:T,cwd:C.cwd,...O?{prepared:O}:{},...g.handOff()}),!0}catch{return M=!0,!1}}:void 0;try{let l;try{const b=await o.exec(O?.command??C.command,C.cwd,{onData:Oe,signal:h,timeout:R??(Q?ne:void 0),env:C.env,...Q?{yieldTo:Q}:{}});if(b.yielded&&I){const{text:B,details:de}=await J(""),X=R??ne,ye=I.urls.length>0?` It printed ${I.urls.join(" ")}.`:"",$e=`[Still running after ${X}s, now in the background as ${I.id}.${ye} For new output and the exit code call process with action "poll" and id "${I.id}"; "kill" stops it.]`,le=await g.readFullOutput(Se);return{content:[{type:"text",text:G(B,$e)}],details:{...de,background:I},structuredContent:{output:le.content,truncated:le.truncated,exit_code:-1,background_id:I.id,wall_time_seconds:Math.round((performance.now()-ae)/100)/10}}}l=b.exitCode}catch(b){const{text:B}=await J("");if(await O?.finish(null,""),b instanceof Error&&b.message==="aborted")throw new Error(G(B,"Command aborted"));if(b instanceof Error&&b.message.startsWith("timeout:")){let X=`Command timed out after ${b.message.split(":")[1]} seconds`;throw b instanceof Ee&&b.shellExit&&(X+=`. The shell exited with code ${b.shellExit.exitCode} after ${b.shellExit.afterSeconds} seconds, but background processes it started kept writing output until the timeout.`),new Error(G(B,X))}throw b}const{text:y,details:F,snapshot:P}=await J(),_=await O?.finish(l,P.content||"");if(_&&O)throw new ue(`${G(y,`Command exited with code ${l??"(none)"}`)}
17
+ `:""}${y}`,"appendStatus"),ae=performance.now();let v;const Q=S&&c&&x?d=>{M=!1;try{return v=S.adopt({child:d,command:T,cwd:C.cwd,...O?{prepared:O}:{},...g.handOff()}),!0}catch{return M=!0,!1}}:void 0;try{let d;try{const b=await o.exec(O?.command??C.command,C.cwd,{onData:Oe,signal:h,timeout:R??(Q?ne:void 0),env:C.env,...Q?{yieldTo:Q}:{}});if(b.yielded&&v){const{text:B,details:de}=await J(""),X=R??ne,ye=v.urls.length>0?` It printed ${v.urls.join(" ")}.`:"",$e=`[Still running after ${X}s, now in the background as ${v.id}.${ye} For new output and the exit code call process with action "poll" and id "${v.id}"; "kill" stops it.]`,le=await g.readFullOutput(Se);return{content:[{type:"text",text:G(B,$e)}],details:{...de,background:v},structuredContent:{output:le.content,truncated:le.truncated,exit_code:-1,background_id:v.id,wall_time_seconds:Math.round((performance.now()-ae)/100)/10}}}d=b.exitCode}catch(b){const{text:B}=await J("");if(await O?.finish(null,""),b instanceof Error&&b.message==="aborted")throw new Error(G(B,"Command aborted"));if(b instanceof Error&&b.message.startsWith("timeout:")){let X=`Command timed out after ${b.message.split(":")[1]} seconds`;throw b instanceof Ee&&b.shellExit&&(X+=`. The shell exited with code ${b.shellExit.exitCode} after ${b.shellExit.afterSeconds} seconds, but background processes it started kept writing output until the timeout.`),new Error(G(B,X))}throw b}const{text:y,details:F,snapshot:P}=await J(),_=await O?.finish(d,P.content||"");if(_&&O)throw new ue(`${G(y,`Command exited with code ${d??"(none)"}`)}
18
18
 
19
- ${Ue(_)}`,{...F,sandbox:O.details});if(l===null)throw new Error(G(y,"Command terminated without an exit code"));const A=Math.round((performance.now()-ae)/100)/10,N=await g.readFullOutput(Se),H={output:N.content,truncated:N.truncated,...N.truncated&&P.fullOutputPath?{full_output_path:P.fullOutputPath}:{},exit_code:l,wall_time_seconds:A},j=O?.details.escalation?O.details:void 0,Z=j?{...F,sandbox:j}:F;if(l!==0){const b=l===127?await Re(y):void 0,B=G(y,`Command exited with code ${l}`);return{content:[{type:"text",text:b?`${B}
20
- ${b}`:B}],details:Z,structuredContent:H,isError:!0}}return{content:[{type:"text",text:y}],details:Z,structuredContent:H}}finally{z()}},renderCall(d,p,h){const m=h.state;h.executionStarted&&m.startedAt===void 0&&(m.startedAt=Date.now(),m.endedAt=void 0);const f=h.lastComponent??new Y("",0,0);return f.setText(St(d,e.prompt,h.expanded===!0)),f},renderResult(d,p,h,m){const f=m.state;f.startedAt!==void 0&&p.isPartial&&!f.interval&&(f.interval=setInterval(()=>m.invalidate(),1e3)),(!p.isPartial||m.isError)&&(f.endedAt??=Date.now(),f.interval&&(clearInterval(f.interval),f.interval=void 0));const T=m.lastComponent??new ht;return xt(T,d,p,m.showImages,f.startedAt,f.endedAt,m.isError,m.durationMs),T.invalidate(),T}}}s(Et,"createShellToolDefinition");const _t={name:"bash",label:"bash",shellName:"bash",prompt:"$",promptSnippet:be.snippet,promptGuidelines:be.guidelines,tempFilePrefix:"dal-bash",readOnlyCommand:We,sandboxShell:s(t=>ce(t).shell,"sandboxShell")};function Ot(t,e){return Et(t,_t,e)}s(Ot,"createBashToolDefinition");function qt(t,e){const n=Ot(t,e),o=Qe(n);return Object.assign(o,{promptSnippet:n.promptSnippet,promptGuidelines:n.promptGuidelines}),o}s(qt,"createBashTool");export{be as bashToolSystemPromptContribution,qt as createBashTool,Ot as createBashToolDefinition,lt as createLocalBashOperations,dt as createLocalShellOperations,Et as createShellToolDefinition,Kt as registerShellExecutionGuard,st as sandboxEscalationSchema,ut as shellExecutionRefusal};
19
+ ${Ue(_)}`,{...F,sandbox:O.details});if(d===null)throw new Error(G(y,"Command terminated without an exit code"));const I=Math.round((performance.now()-ae)/100)/10,N=await g.readFullOutput(Se),H={output:N.content,truncated:N.truncated,...N.truncated&&P.fullOutputPath?{full_output_path:P.fullOutputPath}:{},exit_code:d,wall_time_seconds:I},j=O?.details.escalation?O.details:void 0,Z=j?{...F,sandbox:j}:F;if(d!==0){const b=d===127?await Re(y):void 0,B=G(y,`Command exited with code ${d}`);return{content:[{type:"text",text:b?`${B}
20
+ ${b}`:B}],details:Z,structuredContent:H,isError:!0}}return{content:[{type:"text",text:y}],details:Z,structuredContent:H}}finally{z()}},renderCall(a,p,h){const m=h.state;h.executionStarted&&m.startedAt===void 0&&(m.startedAt=Date.now(),m.endedAt=void 0);const f=h.lastComponent??new V("",0,0);return f.setText(St(a,e.prompt,h.expanded===!0)),f},renderResult(a,p,h,m){const f=m.state;f.startedAt!==void 0&&p.isPartial&&!f.interval&&(f.interval=setInterval(()=>m.invalidate(),1e3)),(!p.isPartial||m.isError)&&(f.endedAt??=Date.now(),f.interval&&(clearInterval(f.interval),f.interval=void 0));const T=m.lastComponent??new ht;return xt(T,a,p,m.showImages,f.startedAt,f.endedAt,m.isError,m.durationMs),T.invalidate(),T}}}s(Et,"createShellToolDefinition");const _t={name:"bash",label:"bash",shellName:"bash",prompt:"$",promptSnippet:be.snippet,promptGuidelines:be.guidelines,tempFilePrefix:"dal-bash",readOnlyCommand:We,sandboxShell:s(t=>ce(t).shell,"sandboxShell")};function Ot(t,e){return Et(t,_t,e)}s(Ot,"createBashToolDefinition");function qt(t,e){const n=Ot(t,e),o=Qe(n);return Object.assign(o,{promptSnippet:n.promptSnippet,promptGuidelines:n.promptGuidelines}),o}s(qt,"createBashTool");export{be as bashToolSystemPromptContribution,qt as createBashTool,Ot as createBashToolDefinition,lt as createLocalBashOperations,dt as createLocalShellOperations,Et as createShellToolDefinition,Kt as registerShellExecutionGuard,st as sandboxEscalationSchema,ut as shellExecutionRefusal};
@@ -1,10 +1,10 @@
1
- var S=Object.defineProperty;var c=(e,i)=>S(e,"name",{value:i,configurable:!0});import{Container as A,Spacer as C,Text as p}from"@earendil-works/pi-tui";import{fill as $,t as f}from"../../../dal/i18n.js";import{keyHint as v}from"../../../modes/interactive/components/keybinding-hints.js";import{VisualLinePreview as P}from"../../../modes/interactive/components/visual-truncate.js";import{theme as d}from"../../../modes/interactive/theme/theme.js";import{getTextOutput as E,invalidArgText as x,str as w}from"../render-utils.js";import{DEFAULT_MAX_BYTES as _,formatSize as L}from"../truncate.js";const O=5,k=100;function g(e){const i=e/1e3;if(i<60)return`${i.toFixed(1)}s`;const r=Math.floor(i),n=Math.floor(r/60),t=r%60;return n<60?`${n}m ${t}s`:`${Math.floor(n/60)}h ${n%60}m ${t}s`}c(g,"formatDuration");function D(e,i,r){const n=w(e?.command),t=w(e?.description)?.trim(),a=e?.timeout,l=a?d.fg("muted",$(f(" (\u8D85\u65F6 {seconds} \u79D2)"),{seconds:a})):"",u=n===null?x(d):n||d.fg("toolOutput","...");if(!t)return d.fg("toolTitle",d.bold(`${i} ${u}`))+l;const o=d.fg("toolTitle",d.bold(t))+l;return r?`${o}
2
- ${d.fg("muted",` \u23BF ${i} ${n??""}`.trimEnd())}`:o}c(D,"formatShellCall");function B(e,i,r,n,t,a,l){e.clear();let u=E(i,n).trim();const o=i.details?.truncation,h=i.details?.fullOutputPath;if(!r.isPartial&&o?.truncated&&h&&u.endsWith("]")){const s=u.lastIndexOf(`
1
+ var S=Object.defineProperty;var c=(n,i)=>S(n,"name",{value:i,configurable:!0});import{Container as A,Spacer as C,Text as p}from"@earendil-works/pi-tui";import{fill as $,t as f}from"../../../dal/i18n.js";import{keyHint as v}from"../../../modes/interactive/components/keybinding-hints.js";import{VisualLinePreview as P}from"../../../modes/interactive/components/visual-truncate.js";import{theme as d}from"../../../modes/interactive/theme/theme.js";import{getTextOutput as E,invalidArgText as x,str as w}from"../render-utils.js";import{DEFAULT_MAX_BYTES as _,formatSize as L}from"../truncate.js";const O=5,k=100;function g(n){const i=n/1e3;if(i<60)return`${i.toFixed(1)}s`;const r=Math.floor(i),e=Math.floor(r/60),t=r%60;return e<60?`${e}m ${t}s`:`${Math.floor(e/60)}h ${e%60}m ${t}s`}c(g,"formatDuration");function D(n,i,r){const e=w(n?.command),t=w(n?.description)?.trim(),a="",l=e===null?x(d):e||d.fg("toolOutput","...");if(!t)return d.fg("toolTitle",d.bold(`${i} ${l}`))+a;const o=d.fg("toolTitle",d.bold(t))+a;return r?`${o}
2
+ ${d.fg("muted",` \u23BF ${i} ${e??""}`.trimEnd())}`:o}c(D,"formatShellCall");function B(n,i,r,e,t,a,l){n.clear();let o=E(i,e).trim();const u=i.details?.truncation,h=i.details?.fullOutputPath;if(!r.isPartial&&u?.truncated&&h&&o.endsWith("]")){const s=o.lastIndexOf(`
3
3
 
4
- [`);s!==-1&&u.slice(s).includes(h)&&(u=u.slice(0,s).trimEnd())}if(u){const s=u.split(`
4
+ [`);s!==-1&&o.slice(s).includes(h)&&(o=o.slice(0,s).trimEnd())}if(o){const s=o.split(`
5
5
  `).map(m=>d.fg("toolOutput",m)).join(`
6
- `);r.expanded?e.addChild(new p(`
7
- ${s}`,0,0)):(e.addChild(new C(1)),e.addChild(new P({text:s,maxVisualLines:O,keep:"end",formatHint:c(m=>d.fg("muted",$(f("... (\u524D\u9762\u8FD8\u6709 {count} \u884C\uFF0C"),{count:m}))+` ${v("app.tools.expand",f("\u5373\u53EF\u5C55\u5F00"))}${d.fg("muted",")")}`,"formatHint")})))}if(o?.truncated||h){const s=[];h&&s.push($(f("\u5B8C\u6574\u8F93\u51FA\uFF1A{path}"),{path:h})),o?.truncated&&(o.truncatedBy==="lines"?s.push($(f("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A {shown}/{total} \u884C"),{shown:o.outputLines,total:o.totalLines})):s.push($(f("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A\u4E86 {shown} \u884C\uFF08\u4E0A\u9650 {limit}\uFF09"),{shown:o.outputLines,limit:L(o.maxBytes??_)}))),e.addChild(new p(`
8
- ${d.fg("warning",`[${s.join(". ")}]`)}`,0,0))}if(!r.isPartial&&l!==void 0)l>=100&&e.addChild(new p(`
9
- ${d.fg("muted",`${f("\u8017\u65F6")} ${g(l)}`)}`,0,0));else if(t!==void 0){const m=(a??Date.now())-t;if(r.isPartial||m>=100){const T=r.isPartial?f("\u5DF2\u8FD0\u884C"):f("\u8017\u65F6");e.addChild(new p(`
10
- ${d.fg("muted",`${T} ${g(m)}`)}`,0,0))}}}c(B,"rebuildBashResultRenderComponent");function F(e){return{renderCall(i,r,n){const t=n.state;n.executionStarted&&t.startedAt===void 0&&(t.startedAt=Date.now(),t.endedAt=void 0);const a=i,l=n.lastComponent??new p("",0,0);return l.setText(D(a,e,n.expanded===!0)),l},renderResult(i,r,n,t){const a=t.state;a.startedAt!==void 0&&r.isPartial&&!a.interval&&(a.interval=setInterval(()=>t.invalidate(),1e3)),(!r.isPartial||t.isError)&&(a.endedAt??=Date.now(),a.interval&&(clearInterval(a.interval),a.interval=void 0));const l=t.lastComponent??new A;return B(l,i,r,t.showImages,a.startedAt,a.endedAt,t.durationMs),l.invalidate(),l}}}c(F,"createShellRenderers");export{k as BASH_UPDATE_THROTTLE_MS,F as createShellRenderers};
6
+ `);r.expanded?n.addChild(new p(`
7
+ ${s}`,0,0)):(n.addChild(new C(1)),n.addChild(new P({text:s,maxVisualLines:O,keep:"end",formatHint:c(m=>d.fg("muted",$(f("... (\u524D\u9762\u8FD8\u6709 {count} \u884C\uFF0C"),{count:m}))+` ${v("app.tools.expand",f("\u5373\u53EF\u5C55\u5F00"))}${d.fg("muted",")")}`,"formatHint")})))}if(u?.truncated||h){const s=[];h&&s.push($(f("\u5B8C\u6574\u8F93\u51FA\uFF1A{path}"),{path:h})),u?.truncated&&(u.truncatedBy==="lines"?s.push($(f("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A {shown}/{total} \u884C"),{shown:u.outputLines,total:u.totalLines})):s.push($(f("\u5DF2\u622A\u65AD\uFF1A\u663E\u793A\u4E86 {shown} \u884C\uFF08\u4E0A\u9650 {limit}\uFF09"),{shown:u.outputLines,limit:L(u.maxBytes??_)}))),n.addChild(new p(`
8
+ ${d.fg("warning",`[${s.join(". ")}]`)}`,0,0))}if(!r.isPartial&&l!==void 0)l>=100&&n.addChild(new p(`
9
+ ${d.fg("muted",`${f("\u8017\u65F6")} ${g(l)}`)}`,0,0));else if(t!==void 0){const m=(a??Date.now())-t;if(r.isPartial||m>=100){const T=r.isPartial?f("\u5DF2\u8FD0\u884C"):f("\u8017\u65F6");n.addChild(new p(`
10
+ ${d.fg("muted",`${T} ${g(m)}`)}`,0,0))}}}c(B,"rebuildBashResultRenderComponent");function F(n){return{renderCall(i,r,e){const t=e.state;e.executionStarted&&t.startedAt===void 0&&(t.startedAt=Date.now(),t.endedAt=void 0);const a=i,l=e.lastComponent??new p("",0,0);return l.setText(D(a,n,e.expanded===!0)),l},renderResult(i,r,e,t){const a=t.state;a.startedAt!==void 0&&r.isPartial&&!a.interval&&(a.interval=setInterval(()=>t.invalidate(),1e3)),(!r.isPartial||t.isError)&&(a.endedAt??=Date.now(),a.interval&&(clearInterval(a.interval),a.interval=void 0));const l=t.lastComponent??new A;return B(l,i,r,t.showImages,a.startedAt,a.endedAt,t.durationMs),l.invalidate(),l}}}c(F,"createShellRenderers");export{k as BASH_UPDATE_THROTTLE_MS,F as createShellRenderers};
@@ -1,3 +1 @@
1
- var u=Object.defineProperty;var o=(i,e)=>u(i,"name",{value:e,configurable:!0});import{Box as c,Container as f,Markdown as g,MouseRegion as k,Text as h}from"@earendil-works/pi-tui";import{fill as p,t as d}from"../../../dal/i18n.js";import{getMarkdownTheme as w,theme as m}from"../theme/theme.js";import{createMarkdownTransform as x}from"./markdown-transform.js";class D extends c{static{o(this,"CompactionSummaryMessageComponent")}markdownTransformers=[];messageId;timestamp;expanded=!1;message;markdownTheme;constructor(e,a=w(),n=0,t=[],r,s){super(n,0),this.markdownTransformers=t,this.messageId=r,this.timestamp=s,this.message=e,this.markdownTheme=a,this.updateDisplay()}setExpanded(e){this.expanded=e,this.updateDisplay()}setOutputPad(e){this.setPaddingX(e)}invalidate(){super.invalidate(),this.updateDisplay()}updateDisplay(){this.clear();const e=new f,a=this.message.tokensBefore.toLocaleString(),n=m.fg("customMessageLabel",`\x1B[1m${d("[\u538B\u7F29]")}\x1B[22m`);if(this.expanded){e.addChild(new h(n,0,0));const t=`**${p(d("\u538B\u7F29\u524D\u5171 {count} \u4E2A token"),{count:a})}**
2
-
3
- `,r=x("summary",()=>!1,this.markdownTransformers,this.messageId,this.timestamp);e.addChild(new g(this.message.summary,0,0,this.markdownTheme,{color:o(s=>m.fg("customMessageText",s),"color")},{transform:o((s,l)=>t+r(s,l),"transform")}))}else e.addChild(new h(`${n} ${m.fg("customMessageText",p(d("\u5DF2\u538B\u7F29 {count} \u4E2A token"),{count:a}))}`,0,0));this.addChild(new k(e,t=>{if(!(t.type!=="click"||t.button!=="left"))return this.setExpanded(!this.expanded),{handled:!0}}))}}export{D as CompactionSummaryMessageComponent};
1
+ var h=Object.defineProperty;var d=(i,e)=>h(i,"name",{value:e,configurable:!0});import{Box as p,Container as l,Markdown as u,MouseRegion as f,Text as m}from"@earendil-works/pi-tui";import{t as c}from"../../../dal/i18n.js";import{getMarkdownTheme as w,theme as o}from"../theme/theme.js";import{createMarkdownTransform as g}from"./markdown-transform.js";class M extends p{static{d(this,"CompactionSummaryMessageComponent")}markdownTransformers=[];messageId;timestamp;expanded=!1;message;markdownTheme;constructor(e,a=w(),s=0,r=[],t,n){super(s,0),this.markdownTransformers=r,this.messageId=t,this.timestamp=n,this.message=e,this.markdownTheme=a,this.updateDisplay()}setExpanded(e){this.expanded=e,this.updateDisplay()}setOutputPad(e){this.setPaddingX(e)}invalidate(){super.invalidate(),this.updateDisplay()}updateDisplay(){this.clear();const e=new l,a=o.fg("muted",c("\u8F83\u65E9\u7684\u5BF9\u8BDD\u5DF2\u6574\u7406\u4E3A\u6458\u8981"));if(this.expanded){e.addChild(new m(a,0,0));const s="",r=g("summary",()=>!1,this.markdownTransformers,this.messageId,this.timestamp);e.addChild(new u(this.message.summary,0,0,this.markdownTheme,{color:d(t=>o.fg("customMessageText",t),"color")},{transform:d((t,n)=>s+r(t,n),"transform")}))}else e.addChild(new m(a,0,0));this.addChild(new f(e,s=>{if(!(s.type!=="click"||s.button!=="left"))return this.setExpanded(!this.expanded),{handled:!0}}))}}export{M as CompactionSummaryMessageComponent};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-advisor",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "advisor: the model asks another strong model to review its current plan and point out risks. Adapted from @juicesharp/rpiv-advisor 2.13.8 (MIT).",
6
6
  "license": "MIT",
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@dalcode/dal-pi-kit": "1.0.53",
24
- "@dalcode/dal-router": "1.0.53",
23
+ "@dalcode/dal-pi-kit": "1.0.54",
24
+ "@dalcode/dal-router": "1.0.54",
25
25
  "typebox": "1.3.27"
26
26
  },
27
27
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-awake",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Keeps the computer from going to sleep while a long agent run is in progress, and lets it sleep again when the run ends. Adapted from @narumitw/pi-caffeinate (MIT).",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.53"
21
+ "@dalcode/dal-pi-kit": "1.0.54"
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-bridge",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
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.53",
21
+ "@dalcode/dal-pi-kit": "1.0.54",
22
22
  "typebox": "1.3.7"
23
23
  },
24
24
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-capabilities",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Capability center for DAL: switches on the reviewed MCP connectors, skills and engine packages a task needs (installed automatically from the signed DAL market), with /capabilities to list, disable and enable them.",
6
6
  "license": "MIT",
@@ -23,9 +23,9 @@
23
23
  ]
24
24
  },
25
25
  "dependencies": {
26
- "@dalcode/dal-mcp": "1.0.53",
27
- "@dalcode/dal-pi-kit": "1.0.53",
28
- "@dalcode/deepailab": "1.0.53"
26
+ "@dalcode/dal-mcp": "1.0.54",
27
+ "@dalcode/dal-pi-kit": "1.0.54",
28
+ "@dalcode/deepailab": "1.0.54"
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-codeindex",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Code index: a persistent local symbol and reference index (tree-sitter WebAssembly grammars) the model queries to find definitions, callers, file outlines and related files without repeated grep.",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.53",
21
+ "@dalcode/dal-pi-kit": "1.0.54",
22
22
  "@vscode/tree-sitter-wasm": "0.3.1",
23
23
  "ignore": "7.0.8",
24
24
  "typebox": "1.3.27"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-compat",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Claude Code compatibility: the user's and project's .claude/rules/ and .claude/CLAUDE.md apply in DAL. Grown from the claude-rules extension example.",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.53",
21
+ "@dalcode/dal-pi-kit": "1.0.54",
22
22
  "minimatch": "11.0.3"
23
23
  },
24
24
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-dap",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Debugger for DAL: breakpoints, stepping, call stacks and variables in Node.js and Python programs over the Debug Adapter Protocol, installing the adapter on first use. The DAP client is adapted from oh-my-pi's src/dap (MIT).",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  ]
25
25
  },
26
26
  "dependencies": {
27
- "@dalcode/dal-pi-kit": "1.0.53",
27
+ "@dalcode/dal-pi-kit": "1.0.54",
28
28
  "typebox": "1.3.27"
29
29
  },
30
30
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-gateway",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
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/deepailab": "1.0.53"
20
+ "@dalcode/deepailab": "1.0.54"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-goal",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Goal mode for DAL: /goal keeps the agent working on one objective until it is verified complete, with token and continuation limits. Adapted from @narumitw/pi-goal 0.54.11 (MIT, narumiruna); the independent completion check adapts pi-goal-x 0.32.3 (MIT, Lucas).",
6
6
  "license": "MIT",
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@dalcode/dal-pi-kit": "1.0.53",
25
- "@dalcode/dal-subagent": "1.0.53",
24
+ "@dalcode/dal-pi-kit": "1.0.54",
25
+ "@dalcode/dal-subagent": "1.0.54",
26
26
  "typebox": "1.3.27"
27
27
  },
28
28
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-guard",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
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-pi-kit": "1.0.53",
25
- "@dalcode/dal-bridge": "1.0.53",
26
- "@dalcode/dal-halo": "1.0.53"
24
+ "@dalcode/dal-pi-kit": "1.0.54",
25
+ "@dalcode/dal-bridge": "1.0.54",
26
+ "@dalcode/dal-halo": "1.0.54"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-halo",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-interactive",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Terminal-UI conveniences adopted from pi's example extensions: the questionnaire tool (the model asks you questions), /handoff (carry context into a new session) and interactive ! commands (vim, git rebase -i, htop). Active only in the TUI; stands down under DAL Code.",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@dalcode/dal-pi-kit": "1.0.53",
23
+ "@dalcode/dal-pi-kit": "1.0.54",
24
24
  "typebox": "1.3.7"
25
25
  },
26
26
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-lang",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -17,8 +17,8 @@
17
17
  ]
18
18
  },
19
19
  "dependencies": {
20
- "@dalcode/dal-pi-kit": "1.0.53",
21
- "@dalcode/dal-bridge": "1.0.53"
20
+ "@dalcode/dal-pi-kit": "1.0.54",
21
+ "@dalcode/dal-bridge": "1.0.54"
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-learn",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "private": true,
5
5
  "description": "Self-evolution for DAL: lessons learned from earlier sessions (project and personal), a project map of verified commands and locations, effect tracking, and skill proposals for recurring procedures (/lessons).",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  ]
31
31
  },
32
32
  "dependencies": {
33
- "@dalcode/dal-pi-kit": "1.0.53"
33
+ "@dalcode/dal-pi-kit": "1.0.54"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-lsp",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
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.53",
25
- "@dalcode/dal-dap": "1.0.53",
26
- "@dalcode/dal-pi-kit": "1.0.53",
24
+ "@dalcode/dal-bridge": "1.0.54",
25
+ "@dalcode/dal-dap": "1.0.54",
26
+ "@dalcode/dal-pi-kit": "1.0.54",
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.53",
3
+ "version": "1.0.54",
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.53",
33
- "@dalcode/dal-guard": "1.0.53",
34
- "@dalcode/dal-pi-kit": "1.0.53",
35
- "@dalcode/deepailab": "1.0.53",
36
- "@earendil-works/pi-mcp": "1.0.53",
32
+ "@dalcode/dal-bridge": "1.0.54",
33
+ "@dalcode/dal-guard": "1.0.54",
34
+ "@dalcode/dal-pi-kit": "1.0.54",
35
+ "@dalcode/deepailab": "1.0.54",
36
+ "@earendil-works/pi-mcp": "1.0.54",
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.53",
3
+ "version": "1.0.54",
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.53",
21
+ "@dalcode/dal-pi-kit": "1.0.54",
22
22
  "docx": "9.7.1",
23
23
  "echarts": "6.1.0",
24
24
  "exceljs": "4.4.0",