dal-code 1.0.38 → 1.0.39
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 +9 -0
- package/dal-docs/settings.md +1 -1
- package/dist/core/agent-session.js +4 -4
- package/dist/core/compaction/compaction.js +31 -13
- package/dist/core/permissions/tool-policy.js +1 -1
- package/dist/core/project-facts.d.ts +16 -0
- package/dist/core/project-facts.js +2 -0
- package/dist/core/sandbox/policy.js +1 -1
- package/dist/core/sandbox/windows.js +1 -1
- package/dist/core/system-prompt.d.ts +1 -0
- package/dist/core/system-prompt.js +12 -12
- package/dist/core/workspace-lock.d.ts +29 -0
- package/dist/core/workspace-lock.js +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/main.js +3 -3
- package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-goal/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-guard/src/attribution.js +1 -0
- package/dist/node_modules/@dalcode/dal-guard/src/credentials.js +1 -1
- package/dist/node_modules/@dalcode/dal-guard/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-guard/src/package-manager.js +1 -0
- package/dist/node_modules/@dalcode/dal-guard/src/workspace.js +2 -0
- package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-lsp/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-mcp/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +4 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +4 -2
- package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
- 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 +5 -4
- package/dist/node_modules/@dalcode/dal-router/src/commands.js +7 -7
- package/dist/node_modules/@dalcode/dal-router/src/config.d.ts +2 -0
- package/dist/node_modules/@dalcode/dal-router/src/config.js +2 -2
- package/dist/node_modules/@dalcode/dal-router/src/index.js +4 -4
- package/dist/node_modules/@dalcode/dal-router/src/subagent.js +1 -1
- package/dist/node_modules/@dalcode/dal-router/src/suggest.js +2 -0
- package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-subagent/src/index.js +12 -12
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-workflow/src/completion-check.js +4 -0
- package/dist/node_modules/@dalcode/dal-workflow/src/index.js +4 -4
- package/dist/node_modules/@dalcode/dal-workflow/src/ledger.js +3 -0
- package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
- package/dist/node_modules/@earendil-works/chord/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.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/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-client/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-protocol/package.json +2 -2
- package/dist/node_modules/@earendil-works/pi-server/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/dist/utils/version-check.d.ts +1 -0
- package/dist/utils/version-check.js +2 -2
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var B=Object.defineProperty;var o=(u,e)=>B(u,"name",{value:e,configurable:!0});var w=Object.defineProperty,l=o((u,e)=>w(u,"name",{value:e,configurable:!0}),"o");import{dirname as g,resolve as E}from"node:path";import{t as n}from"@dalcode/dal-pi-kit";import{claimWorkspace as y,releaseWorkspace as k,shellCommandDirectory as b}from"@earendil-works/pi-coding-agent";import{isGitCommit as $}from"./attribution.js";const v=new Set(["ls","cat","head","tail","wc","grep","rg","find","echo","pwd","stat","file","which","du","df","sort","uniq","jq","tree","less","diff","true","date","cd"]),S=new Set(["status","log","diff","show","branch","rev-parse","remote","blame","ls-files","describe","shortlog","reflog","fetch"]);function D(u){return u.trim().split(/\s+/).filter(Boolean)}o(D,"$"),l(D,"words");function h(u){if(/(^|[^>&0-9])>{1,2}(?!\s*\/dev\/null)/.test(u))return!1;const e=D(u).filter(t=>!/^\w+=/.test(t)),r=e[0];if(!r)return!0;if(r==="git"){const t=e.slice(1).find((s,d,a)=>!s.startsWith("-")&&a[d-1]!=="-C");return t==="worktree"?e.includes("list"):t==="stash"?e.includes("list")||e.includes("show"):t!==void 0&&S.has(t)}return r==="sed"?!e.some(t=>t.startsWith("-i")):v.has(r)}o(h,"C"),l(h,"segmentReadsOnly");function f(u,e){if(u.toolName==="write"||u.toolName==="edit"){const t=u.input,s=t.path??t.file_path;return typeof s=="string"&&s?g(E(e,s)):void 0}if(u.toolName!=="bash"&&u.toolName!=="powershell")return;const r=u.input.command;if(!(typeof r!="string"||!r.trim())&&!r.split(/&&|\|\||[;|\n]/).every(h))return b(r,e)}o(f,"N"),l(f,"modifiedDirectory");function F(u,e){return n("\u5DE5\u4F5C\u533A {worktree} \u6B63\u88AB\u53E6\u4E00\u4E2A dal \u4F1A\u8BDD\u4F7F\u7528\uFF08\u8FDB\u7A0B {pid}@{host}\uFF0C\u4F1A\u8BDD {session}\uFF0C{started} \u5F00\u59CB\uFF09\u3002").replace("{worktree}",e).replace("{pid}",String(u.pid)).replace("{host}",u.host).replace("{session}",u.sessionId.slice(0,8)).replace("{started}",u.startedAt)}o(F,"S"),l(F,"describeHolder");function C(){const u=new Set,e=new Set,r=new Set;return{async check(t,s,d,a){const m=f(t,s);if(!m)return;const i=y(m,d);if(!i)return;if(!i.heldBy){u.add(i.gitDir);return}if(e.has(i.gitDir))return;const c=F(i.heldBy,i.worktree??i.gitDir),p=t.input.command,A=typeof p=="string"&&$(p);if(a.hasUI&&a.confirm){if(await a.confirm(n("\u5DE5\u4F5C\u533A\u88AB\u5360\u7528"),`${c}${n("\u4E24\u4E2A\u4F1A\u8BDD\u540C\u65F6\u6539\u52A8\u4F1A\u4E92\u76F8\u8986\u76D6\u3002\u4ECD\u8981\u5728\u8FD9\u91CC\u6539\u52A8\u5E76\u63D0\u4EA4\u5417\uFF1F")}`)){e.add(i.gitDir);return}return{block:!0,reason:`${c}${n("\u7528\u6237\u6CA1\u6709\u540C\u610F\u5728\u8FD9\u91CC\u6539\u52A8\u3002\u505C\u4E0B\u6765\u544A\u8BC9\u7528\u6237\u3002")}`}}if(A)return{block:!0,reason:`${c}${n("\u6CA1\u6709\u7528\u6237\u786E\u8BA4\uFF0C\u62D2\u7EDD\u5728\u8FD9\u91CC\u63D0\u4EA4\u3002\u505C\u4E0B\u6765\u544A\u8BC9\u7528\u6237\uFF0C\u7531\u7528\u6237\u51B3\u5B9A\u3002")}`};if(!r.has(i.gitDir))return r.add(i.gitDir),process.stderr.write(`dal: ${c}
|
|
2
|
+
`),{note:`${c}${n("\u8FD9\u6B21\u6539\u52A8\u5DF2\u6267\u884C\uFF1B\u544A\u8BC9\u7528\u6237\uFF0C\u63D0\u4EA4\u524D\u9700\u8981\u7528\u6237\u786E\u8BA4\u3002")}`}},releaseAll(){for(const t of u)k(t);u.clear()}}}o(C,"x"),l(C,"createWorkspaceGate");export{C as createWorkspaceGate,F as describeHolder,f as modifiedDirectory};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-interactive",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
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",
|
|
@@ -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.39",
|
|
23
23
|
"typebox": "1.3.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-lang",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
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.
|
|
21
|
-
"@dalcode/dal-bridge": "1.0.
|
|
20
|
+
"@dalcode/dal-pi-kit": "1.0.39",
|
|
21
|
+
"@dalcode/dal-bridge": "1.0.39"
|
|
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-lsp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
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-bridge": "1.0.
|
|
24
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
23
|
+
"@dalcode/dal-bridge": "1.0.39",
|
|
24
|
+
"@dalcode/dal-pi-kit": "1.0.39",
|
|
25
25
|
"cross-spawn": "7.0.6",
|
|
26
26
|
"typebox": "1.3.7"
|
|
27
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dalcode/dal-bridge": "1.0.
|
|
30
|
-
"@dalcode/dal-guard": "1.0.
|
|
31
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
32
|
-
"@dalcode/deepailab": "1.0.
|
|
29
|
+
"@dalcode/dal-bridge": "1.0.39",
|
|
30
|
+
"@dalcode/dal-guard": "1.0.39",
|
|
31
|
+
"@dalcode/dal-pi-kit": "1.0.39",
|
|
32
|
+
"@dalcode/deepailab": "1.0.39",
|
|
33
33
|
"cross-spawn": "7.0.6"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-office",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
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.39",
|
|
21
21
|
"docx": "9.7.1",
|
|
22
22
|
"echarts": "6.1.0",
|
|
23
23
|
"exceljs": "4.4.0",
|