dal-code 1.0.37 → 1.0.38
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 +5 -0
- package/dist/core/agent-session.js +1 -1
- package/dist/core/auth-storage.js +1 -1
- package/dist/core/package-manager.d.ts +4 -0
- package/dist/core/package-manager.js +2 -2
- package/dist/core/session-manager.d.ts +3 -0
- package/dist/core/session-manager.js +12 -12
- package/dist/core/settings-diagnostics.js +1 -1
- package/dist/core/settings-manager.d.ts +3 -0
- package/dist/core/settings-manager.js +1 -1
- package/dist/core/shared-data.js +1 -0
- package/dist/core/system-prompt.js +10 -10
- package/dist/core/trust-manager.js +2 -2
- package/dist/dal/reviewed/endorsed-cli.js +1 -0
- package/dist/dal/reviewed/endorsed-plan.js +1 -0
- package/dist/dal/reviewed/endorsed.js +1 -0
- package/dist/dal/reviewed/version.js +1 -0
- package/dist/extensions/mcp/config.js +2 -2
- package/dist/modes/print-mode.js +5 -5
- 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/mode.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-lsp/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-mcp/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-mcp/src/config-edit.js +2 -2
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/shared-data.js +1 -0
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/shared-data.js +1 -0
- package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-plugins/src/state.js +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 +4 -4
- package/dist/node_modules/@dalcode/dal-router/src/config.d.ts +1 -1
- package/dist/node_modules/@dalcode/dal-router/src/config.js +2 -2
- package/dist/node_modules/@dalcode/dal-router/src/runtime.js +1 -1
- 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-telemetry/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-telemetry/src/config.js +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/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/opencode-go.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +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/package-manager-cli.js +72 -72
- 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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var g=Object.defineProperty;var
|
|
2
|
-
`)
|
|
1
|
+
var g=Object.defineProperty;var e=(r,o)=>g(r,"name",{value:o,configurable:!0});var p=Object.defineProperty,a=e((r,o)=>p(r,"name",{value:o,configurable:!0}),"o");import{existsSync as m,readFileSync as w}from"node:fs";import{join as G}from"node:path";import{declaredDataFormat as A,reportNewerDataFormat as D,withFileLockSync as M,writeFileAtomicSync as h}from"@dalcode/dal-pi-kit";const s="DAL_GUARD_MODE";function d(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}e(d,"a"),a(d,"isRecord");function i(r){try{const o=JSON.parse(w(r,"utf8"));return d(o)?o:void 0}catch{return}}e(i,"i"),a(i,"readJson");function u(r){return G(r,"settings.json")}e(u,"u"),a(u,"userSettingsPath");function c(r){const o=i(u(r))?.guard,t=d(o)?o.mode:void 0;return t==="yolo"||t==="default"?t:void 0}e(c,"s"),a(c,"savedGuardMode");function l(r,o,t=process.env){return o||t[s]==="yolo"?"yolo":c(r)??"default"}e(l,"S"),a(l,"startupGuardMode");function f(r,o){const t=u(r);M(t,()=>{if(m(t)&&i(t)===void 0)throw new Error(`${t} is not valid JSON; not overwriting it`);const n=i(t)??{};if(A(n)>1)throw D(t),new Error(`${t} was written by a newer DAL; not overwriting it`);n.guard={...d(n.guard)?n.guard:{},mode:o},h(t,`${JSON.stringify(n,null,2)}
|
|
2
|
+
`)})}e(f,"h"),a(f,"saveGuardMode");function v(r,o=process.env){r==="yolo"?o[s]="yolo":delete o[s]}e(v,"x"),a(v,"exportGuardMode");function y(r){const o=r.env??process.env;return r.mode!=="tui"||!r.hasUI||r.flag||r.underDalCode||o[s]||o.DAL_SUBAGENT_DEPTH||!r.languageChosen?!1:c(r.agentDir)===void 0}e(y,"A"),a(y,"shouldAskGuardMode");export{s as GUARD_MODE_ENV,v as exportGuardMode,f as saveGuardMode,c as savedGuardMode,y as shouldAskGuardMode,l as startupGuardMode,u as userSettingsPath};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-interactive",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
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.38",
|
|
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.38",
|
|
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.38",
|
|
21
|
+
"@dalcode/dal-bridge": "1.0.38"
|
|
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.38",
|
|
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.38",
|
|
24
|
+
"@dalcode/dal-pi-kit": "1.0.38",
|
|
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.38",
|
|
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.38",
|
|
30
|
+
"@dalcode/dal-guard": "1.0.38",
|
|
31
|
+
"@dalcode/dal-pi-kit": "1.0.38",
|
|
32
|
+
"@dalcode/deepailab": "1.0.38",
|
|
33
33
|
"cross-spawn": "7.0.6"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
1
|
+
var g=Object.defineProperty;var i=(e,r)=>g(e,"name",{value:r,configurable:!0});var w=Object.defineProperty,c=i((e,r)=>w(e,"name",{value:r,configurable:!0}),"s");import{existsSync as S,readFileSync as A}from"node:fs";import{join as D}from"node:path";import{t as s,withFileLockSync as v,writeFileAtomicSync as B}from"@dalcode/dal-pi-kit";import{CONFIG_DIR_NAME as M,getAgentDir as x}from"@earendil-works/pi-coding-agent";function p(e,r){return e==="user"?D(x(),"mcp.json"):D(r,M,"mcp.json")}i(p,"m"),c(p,"mcpConfigPath");function E(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(E,"u"),c(E,"isStringKeyedRecord");function l(e){return e.charCodeAt(0)===65279?e.slice(1):e}i(l,"x"),c(l,"stripBom");function m(e){if(!S(e))return{file:{},existed:!1};let r;try{r=JSON.parse(l(A(e,"utf8")))}catch(n){const u=n instanceof Error?n.message:String(n);throw new Error(`${e}: ${s("JSON \u89E3\u6790\u5931\u8D25\uFF0C\u62D2\u7EDD\u4FEE\u6539\u4EE5\u907F\u514D\u8986\u76D6\u73B0\u6709\u914D\u7F6E\u3002")}${u}`)}if(!E(r))throw new Error(`${e}: ${s("\u9876\u5C42\u4E0D\u662F JSON \u5BF9\u8C61\uFF0C\u62D2\u7EDD\u4FEE\u6539\u3002")}`);return{file:r,existed:!0}}i(m,"S"),c(m,"readConfigFile");function d(e,r){B(e,`${JSON.stringify(r,null,2)}
|
|
2
|
+
`)}i(d,"a"),c(d,"writeConfigFile");function h(e,r,n,u){const t=p(e,r);return v(t,()=>{const{file:o,existed:f}=m(t);o.mcpServers===void 0&&(o.mcpServers={});const a=o.mcpServers;if(!E(a))throw new Error(`${t}: ${s('"mcpServers" \u4E0D\u662F\u5BF9\u8C61\uFF0C\u62D2\u7EDD\u4FEE\u6539\u3002')}`);if(n in a)throw new Error(`${s("\u8BE5\u540D\u79F0\u5DF2\u5B58\u5728\u4E8E ")}${t}${s("\uFF1A")}${n}${s("\u3002\u5148 /mcp remove\uFF0C\u6216\u76F4\u63A5\u7F16\u8F91\u8BE5\u6587\u4EF6\u3002")}`);return a[n]=u,d(t,o),{path:t,created:!f}})}i(h,"j"),c(h,"addMcpServerEntry");function y(e,r,n){const u=p(e,r);return v(u,()=>{const{file:t}=m(u);t.mcpServers===void 0&&(t.mcpServers={});const o=t.mcpServers;if(!E(o))throw new Error(`${u}: ${s('"mcpServers" \u4E0D\u662F\u5BF9\u8C61\uFF0C\u62D2\u7EDD\u4FEE\u6539\u3002')}`);const f=[],a=[];for(const{name:F,config:$}of n){if(F in o){a.push(F);continue}o[F]=$,f.push(F)}return f.length>0&&d(u,t),{path:u,added:f,existing:a}})}i(y,"O"),c(y,"addMcpServerEntries");function C(e,r,n){const u=p(e,r);return v(u,()=>{if(!S(u))return{path:u,removed:!1};const{file:t}=m(u),o=t.mcpServers;return!E(o)||!(n in o)?{path:u,removed:!1}:(delete o[n],d(u,t),{path:u,removed:!0})})}i(C,"b"),c(C,"removeMcpServerEntry");export{y as addMcpServerEntries,h as addMcpServerEntry,p as mcpConfigPath,C as removeMcpServerEntry};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-office",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
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.38",
|
|
21
21
|
"docx": "9.7.1",
|
|
22
22
|
"echarts": "6.1.0",
|
|
23
23
|
"exceljs": "4.4.0",
|