dal-code 1.0.48 → 1.0.49
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 +6 -0
- 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-guard/src/workspace.js +2 -2
- package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-learn/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lsp/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-mcp/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-office/src/render/capture.js +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +2 -2
- 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/dist/agent-loop.js +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/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 +2 -2
- 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-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/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
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ DAL Code 的发布说明。这里只写用户看得见的变化。
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [1.0.49] - 2026-10-26
|
|
12
|
+
|
|
13
|
+
- 同一个项目里可以同时开几个对话一起干活:另一个对话也在这个项目里时,改文件不再先弹「工作区被占用」等你确认,只在要提交(git commit)时问你一次,提示里也不再出现进程号和时间戳。没有界面时(`dal -p`、子助手)照旧:改动照常执行,提交会被拒绝。
|
|
14
|
+
- 模型一次写的文件太长、被单次输出上限截断时,会改为分几次写完,不再重复同一个过长的写入。
|
|
15
|
+
- 生成页面预览图时不再弹出「找不到用于储存 Chrome 的钥匙串」:预览用的是不存任何密码的临时浏览器,不再去访问系统钥匙串。
|
|
16
|
+
|
|
11
17
|
## [1.0.48] - 2026-10-25
|
|
12
18
|
|
|
13
19
|
- 技能与经验同步可以在 DAL Code 的「设置 › 记忆」里开关,用 DAL Code 的登录同步,不需要另外在终端登录。终端里的 `/sync` 用法不变。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-advisor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
24
|
-
"@dalcode/dal-router": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
24
|
+
"@dalcode/dal-router": "1.0.49",
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.49"
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.49",
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
27
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
28
|
-
"@dalcode/deepailab": "1.0.
|
|
26
|
+
"@dalcode/dal-mcp": "1.0.49",
|
|
27
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
28
|
+
"@dalcode/deepailab": "1.0.49"
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
22
22
|
"minimatch": "10.2.6"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-dap",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
27
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
20
|
+
"@dalcode/deepailab": "1.0.49"
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
25
|
-
"@dalcode/dal-subagent": "1.0.
|
|
24
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
25
|
+
"@dalcode/dal-subagent": "1.0.49",
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.
|
|
25
|
-
"@dalcode/dal-bridge": "1.0.
|
|
26
|
-
"@dalcode/dal-halo": "1.0.
|
|
24
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
25
|
+
"@dalcode/dal-bridge": "1.0.49",
|
|
26
|
+
"@dalcode/dal-halo": "1.0.49"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),{note:`${
|
|
1
|
+
var w=Object.defineProperty;var i=(u,r)=>w(u,"name",{value:r,configurable:!0});var g=Object.defineProperty,l=i((u,r)=>g(u,"name",{value:r,configurable:!0}),"a");import{dirname as k}from"node:path";import{t as n}from"@dalcode/dal-pi-kit";import{claimWorkspace as v,releaseWorkspace as y,resolveToCwd as b,shellCommandDirectory as $}from"@earendil-works/pi-coding-agent";import{isGitCommit as I}from"./attribution.js";const N=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"]),W=new Set(["status","log","diff","show","branch","rev-parse","remote","blame","ls-files","describe","shortlog","reflog","fetch","grep","cat-file","ls-tree","rev-list","show-ref","for-each-ref","merge-base","name-rev","check-ignore","ls-remote","version"]);function h(u){return u.trim().split(/\s+/).filter(Boolean)}i(h,"N"),l(h,"words");function A(u){if(/(^|[^>&0-9])>{1,2}(?!\s*\/dev\/null)/.test(u))return!1;const r=h(u).filter(e=>!/^\w+=/.test(e)),t=r[0];if(!t)return!0;if(t==="git"){const e=r.slice(1).find((s,d,a)=>!s.startsWith("-")&&a[d-1]!=="-C");return e==="worktree"?r.includes("list"):e==="stash"?r.includes("list")||r.includes("show"):e==="config"?r.some(s=>s==="--get"||s==="--list"||s==="-l"):e!==void 0&&W.has(e)}return t==="sed"?!r.some(e=>e.startsWith("-i")):N.has(t)}i(A,"W"),l(A,"segmentReadsOnly");function f(u,r){if(u.toolName==="write"||u.toolName==="edit"){const e=u.input,s=e.path??e.file_path;return typeof s=="string"&&s?k(b(s,r)):void 0}if(u.toolName!=="bash"&&u.toolName!=="powershell")return;const t=u.input.command;if(!(typeof t!="string"||!t.trim())&&!t.split(/&&|\|\||[;|\n]/).every(A))return $(t,r)}i(f,"$"),l(f,"modifiedDirectory");function B(u){return n("\u53E6\u4E00\u4E2A\u5BF9\u8BDD\u4E5F\u5728 {worktree} \u91CC\u5DE5\u4F5C\u3002").replace("{worktree}",u)}i(B,"v"),l(B,"describeHolderForUser");function D(u,r){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}",r).replace("{pid}",String(u.pid)).replace("{host}",u.host).replace("{session}",u.sessionId.slice(0,8)).replace("{started}",u.startedAt)}i(D,"A"),l(D,"describeHolder");function C(){const u=new Set,r=new Set,t=new Set;return{async check(e,s,d,a){const m=f(e,s);if(!m)return;const o=v(m,d);if(!o)return;if(!o.heldBy){u.add(o.gitDir);return}if(r.has(o.gitDir))return;const p=o.worktree??o.gitDir,c=D(o.heldBy,p),F=e.input.command;if(!(typeof F=="string"&&I(F)))return t.has(o.gitDir)?void 0:(t.add(o.gitDir),a.hasUI||process.stderr.write(`dal: ${c}
|
|
2
|
+
`),{note:`${c}${n("\u8FD9\u6B21\u6539\u52A8\u5DF2\u6267\u884C\uFF1B\u63D0\u4EA4\u524D\u9700\u8981\u7528\u6237\u786E\u8BA4\u3002")}`});if(a.hasUI&&a.confirm){const E=`${B(p)}${n("\u73B0\u5728\u63D0\u4EA4\u4F1A\u628A\u5B83\u8FD8\u6CA1\u63D0\u4EA4\u7684\u6539\u52A8\u4E00\u8D77\u63D0\u4EA4\u8FDB\u53BB\u3002\u4ECD\u8981\u63D0\u4EA4\u5417\uFF1F")}`;if(await a.confirm(n("\u53E6\u4E00\u4E2A\u5BF9\u8BDD\u4E5F\u5728\u8FD9\u4E2A\u9879\u76EE\u91CC"),E,{source:"workspace",toolCallId:e.toolCallId,toolName:e.toolName,args:e.input,risk:{level:"medium",reason:c,ruleId:"workspace:occupied"},title:n("\u53E6\u4E00\u4E2A\u5BF9\u8BDD\u4E5F\u5728\u8FD9\u4E2A\u9879\u76EE\u91CC"),description:E,options:["allow_session","deny"]})){r.add(o.gitDir);return}return{block:!0,reason:`${c}${n("\u7528\u6237\u6CA1\u6709\u540C\u610F\u73B0\u5728\u63D0\u4EA4\u3002\u505C\u4E0B\u6765\u544A\u8BC9\u7528\u6237\u3002")}`}}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")}`}},releaseAll(){for(const e of u)y(e);u.clear()}}}i(C,"L"),l(C,"createWorkspaceGate");export{C as createWorkspaceGate,D 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.49",
|
|
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.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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.49",
|
|
21
|
+
"@dalcode/dal-bridge": "1.0.49"
|
|
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.
|
|
3
|
+
"version": "1.0.49",
|
|
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",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
30
|
+
"@dalcode/dal-pi-kit": "1.0.49"
|
|
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-lsp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
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.49",
|
|
25
|
+
"@dalcode/dal-dap": "1.0.49",
|
|
26
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
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.49",
|
|
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.49",
|
|
33
|
+
"@dalcode/dal-guard": "1.0.49",
|
|
34
|
+
"@dalcode/dal-pi-kit": "1.0.49",
|
|
35
|
+
"@dalcode/deepailab": "1.0.49",
|
|
36
|
+
"@earendil-works/pi-mcp": "1.0.49",
|
|
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.49",
|
|
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.49",
|
|
22
22
|
"docx": "9.7.1",
|
|
23
23
|
"echarts": "6.1.0",
|
|
24
24
|
"exceljs": "4.4.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var L=Object.defineProperty;var p=(e,t)=>L(e,"name",{value:t,configurable:!0});var q=Object.defineProperty,w=p((e,t)=>q(e,"name",{value:t,configurable:!0}),"m");import{spawn as H}from"node:child_process";import{existsSync as T,mkdtempSync as G,readdirSync as W,rmSync as j,writeFileSync as _}from"node:fs";import{homedir as N,platform as V,tmpdir as Y}from"node:os";import{dirname as z,join as d,sep as
|
|
1
|
+
var L=Object.defineProperty;var p=(e,t)=>L(e,"name",{value:t,configurable:!0});var q=Object.defineProperty,w=p((e,t)=>q(e,"name",{value:t,configurable:!0}),"m");import{spawn as H}from"node:child_process";import{existsSync as T,mkdtempSync as G,readdirSync as W,rmSync as j,writeFileSync as _}from"node:fs";import{homedir as N,platform as V,tmpdir as Y}from"node:os";import{dirname as z,join as d,sep as k}from"node:path";import{fileURLToPath as J,pathToFileURL as U}from"node:url";const X=2800,P={width:794,height:1123},K=["https://cdn.npmmirror.com/","https://registry.npmmirror.com/"];function I(){const e=N(),t=[];process.env.DAL_CHROME&&t.push(process.env.DAL_CHROME);const o=V();if(o==="darwin")t.push("/Applications/Google Chrome.app/Contents/MacOS/Google Chrome","/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge","/Applications/Chromium.app/Contents/MacOS/Chromium",d(e,"Applications/Google Chrome.app/Contents/MacOS/Google Chrome"));else if(o==="win32")for(const r of[process.env.PROGRAMFILES,process.env["PROGRAMFILES(X86)"],process.env.LOCALAPPDATA])r&&t.push(d(r,"Google/Chrome/Application/chrome.exe"),d(r,"Microsoft/Edge/Application/msedge.exe"));else for(const r of(process.env.PATH??"").split(":"))for(const a of["google-chrome","google-chrome-stable","chromium","chromium-browser","microsoft-edge"])t.push(d(r,a));const i=d(e,".agent-browser","browsers");if(T(i))for(const r of W(i).sort().reverse()){for(const a of["chrome-mac-arm64","chrome-mac-x64"])t.push(d(i,r,a,"Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing"));t.push(d(i,r,"chrome-linux64","chrome"),d(i,r,"chrome-win64","chrome.exe"))}return t}p(I,"J"),w(I,"chromeCandidates");function y(){return I().find(e=>e.length>0&&T(e))}p(y,"X"),w(y,"findChrome");class Q{static{p(this,"Y")}static{w(this,"PipeCdp")}nextId=1;pending=new Map;listeners=[];buffer="";child;constructor(t){this.child=t;const o=t.stdio[4];o.setEncoding("utf8"),o.on("data",i=>{this.buffer+=i;let r=this.buffer.indexOf("\0");for(;r>=0;){const a=this.buffer.slice(0,r);this.buffer=this.buffer.slice(r+1),r=this.buffer.indexOf("\0");let u;try{u=JSON.parse(a)}catch{continue}if(u.id!==void 0){const F=this.pending.get(u.id);this.pending.delete(u.id),u.error?F?.reject(new Error(u.error.message)):F?.resolve(u.result??{})}else for(const F of this.listeners)F(u)}})}send(t,o={},i){const r=this.nextId++;return this.child.stdio[3].write(`${JSON.stringify({id:r,method:t,params:o,...i?{sessionId:i}:{}})}\0`),new Promise((a,u)=>this.pending.set(r,{resolve:a,reject:u}))}on(t){this.listeners.push(t)}failAll(t){for(const o of this.pending.values())o.reject(t);this.pending.clear()}}function b(e,t,o){return new Promise((i,r)=>{const a=setTimeout(()=>r(new Error(`\u7B49\u5F85${o}\u8D85\u65F6\uFF08${Math.round(t/1e3)} \u79D2\uFF09`)),t);e.then(u=>{clearTimeout(a),i(u)},u=>{clearTimeout(a),r(u)})})}p(b,"E"),w(b,"withTimeout");const Z=`(async () => {
|
|
2
2
|
await document.fonts.ready;
|
|
3
3
|
if (window.DAL_READY && typeof window.DAL_READY.then === "function") await window.DAL_READY;
|
|
4
4
|
await new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(done)));
|
|
@@ -10,4 +10,4 @@ var L=Object.defineProperty;var p=(e,t)=>L(e,"name",{value:t,configurable:!0});v
|
|
|
10
10
|
return el.scrollHeight > el.clientHeight + slack || el.scrollWidth > el.clientWidth + slack;
|
|
11
11
|
})
|
|
12
12
|
.map((el) => (el.getAttribute("data-fit") || el.tagName.toLowerCase())) };
|
|
13
|
-
})()`;function
|
|
13
|
+
})()`;function x(e,t){if(/^(data|blob|about):/i.test(e)||K.some(o=>e.startsWith(o)))return!0;if(e.startsWith("file:")){let o;try{o=J(e)}catch{return!1}const i=t.endsWith(k)?t:`${t}${k}`;return o===t||o.startsWith(i)}return!1}p(x,"U"),w(x,"requestAllowed");async function $(e){const t=y();if(!t)throw new Error("\u6CA1\u6709\u627E\u5230 Chrome / Edge\uFF1A\u5BFC\u51FA\u56FE\u7247\u548C PDF \u9700\u8981\u672C\u673A\u88C5\u6709\u5176\u4E2D\u4E4B\u4E00\uFF08\u6216\u8BBE\u7F6E DAL_CHROME \u6307\u5411\u6D4F\u89C8\u5668\u7A0B\u5E8F\uFF09\u3002");const o=e.output.toLowerCase().endsWith(".pdf"),i=Math.round(e.width??1200),r=Math.round(e.height??800),a=e.scale??2,u=e.timeoutMs??3e4,F=e.fileRoot??z(e.input),S=G(d(Y(),"dal-capture-")),m=H(t,["--headless=new","--remote-debugging-pipe",`--user-data-dir=${S}`,"--no-first-run","--no-default-browser-check","--disable-extensions","--disable-sync","--disable-background-networking","--disable-component-update","--hide-scrollbars","--font-render-hinting=none","--use-mock-keychain","--password-store=basic","about:blank"],{stdio:["ignore","ignore","ignore","pipe","pipe"]}),A=new Q(m);m.on("exit",()=>A.failAll(new Error("\u6D4F\u89C8\u5668\u610F\u5916\u9000\u51FA"))),m.on("error",C=>A.failAll(C));const E=[],M=new Set;try{const{targetId:C}=await b(A.send("Target.createTarget",{url:"about:blank"}),15e3,"\u6D4F\u89C8\u5668\u542F\u52A8"),{sessionId:f}=await A.send("Target.attachToTarget",{targetId:C,flatten:!0}),s=w((n,c={})=>A.send(n,c,f),"send");let R=!1;A.on(n=>{if(n.sessionId!==f)return;const c=n.params??{};if(n.method==="Page.loadEventFired"&&(R=!0),n.method==="Fetch.requestPaused"){const l=c.request,g=c.requestId;x(l.url,F)?s("Fetch.continueRequest",{requestId:g}).catch(()=>{}):(M.add(l.url.length>120?`${l.url.slice(0,117)}...`:l.url),s("Fetch.failRequest",{requestId:g,errorReason:"BlockedByClient"}).catch(()=>{}))}if(n.method==="Runtime.exceptionThrown"){const l=c.exceptionDetails;E.push(`\u9875\u9762\u811A\u672C\u62A5\u9519\uFF1A${l.exception?.description??l.text??""}`)}if(n.method==="Runtime.consoleAPICalled"&&c.type==="error"){const l=c.args??[];E.push(`\u63A7\u5236\u53F0\u9519\u8BEF\uFF1A${l.map(g=>String(g.value??g.description??"")).join(" ")}`)}}),await s("Fetch.enable",{patterns:[{urlPattern:"*"}]}),await s("Page.enable"),await s("Runtime.enable"),await s("Emulation.setDeviceMetricsOverride",{width:i,height:r,deviceScaleFactor:a,mobile:!1}),await s("Emulation.setEmulatedMedia",{features:[{name:"prefers-color-scheme",value:e.dark?"dark":"light"}]}),await s("Page.navigate",{url:U(e.input).href}),await b(new Promise(n=>{const c=setInterval(()=>{R&&(clearInterval(c),n())},50)}),u,"\u9875\u9762\u52A0\u8F7D");const h=(await b(s("Runtime.evaluate",{expression:Z,awaitPromise:!0,returnByValue:!0}),u,"\u9875\u9762\u7ED8\u5236")).result?.value??{};(h.width??0)>(h.viewport??i)+1&&E.push(`\u9875\u9762\u6A2A\u5411\u6EA2\u51FA\uFF1A\u5185\u5BB9\u5BBD ${h.width}px\uFF0C\u753B\u5E03\u5BBD ${h.viewport}px`);const O=[];!e.full&&!o&&(h.height??0)>(h.viewportHeight??r)+1&&O.push(`\u53EA\u622A\u4E86\u753B\u5E03\u9AD8\u5EA6 ${h.viewportHeight}px\uFF08\u9875\u9762\u5171 ${h.height}px\uFF09\uFF1B\u8981\u6574\u9875\u957F\u56FE\u7528 full`);for(const n of h.overflow??[])E.push(`\u6587\u5B57\u653E\u4E0D\u4E0B\uFF1A${n}\uFF08\u7F29\u77ED\u6587\u6848\u6216\u8C03\u5C0F\u5B57\u53F7\uFF09`);let v,D;o?(v=(await s("Page.printToPDF",{printBackground:!0,preferCSSPageSize:!0})).data,D=Buffer.from(v,"base64").toString("latin1").match(/\/Type\s*\/Page[^s]/g)?.length??0):(e.full&&await s("Emulation.setDeviceMetricsOverride",{width:i,height:Math.max(r,h.height??0),deviceScaleFactor:a,mobile:!1}),v=(await s("Page.captureScreenshot",{format:"png",captureBeyondViewport:!!e.full})).data),_(e.output,Buffer.from(v,"base64"));let B;if(e.preview){const n=o?P.width:i;await s("Emulation.setDeviceMetricsOverride",{width:n,height:o?P.height:r,deviceScaleFactor:1,mobile:!1});const c=await s("Runtime.evaluate",{expression:"document.documentElement.scrollHeight",returnByValue:!0}),l=Number(c.result?.value??0),g=Math.min(X,o||e.full?Math.max(l,P.height):r);B=(await s("Page.captureScreenshot",{format:"png",captureBeyondViewport:!0,clip:{x:0,y:0,width:n,height:g,scale:1}})).data}for(const n of M)E.push(`\u5DF2\u62E6\u622A\u9875\u9762\u5916\u90E8\u8BF7\u6C42\uFF1A${n}\uFF08\u53EA\u5141\u8BB8\u9875\u9762\u6240\u5728\u6587\u4EF6\u5939\u3001\u5185\u8054\u6570\u636E\u548C npmmirror CDN\uFF09`);return{...D!==void 0?{pages:D}:{},problems:E,notes:O,...B?{preview:B}:{}}}finally{const C=new Promise(f=>{m.exitCode!==null||m.signalCode!==null?f():m.once("exit",()=>f())});m.kill(),await Promise.race([C,new Promise(f=>setTimeout(f,5e3))]),j(S,{recursive:!0,force:!0,maxRetries:5,retryDelay:200})}}p($,"oe"),w($,"capturePage");export{$ as capturePage,y as findChrome,x as requestAllowed};
|