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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earendil-works/pi-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@anthropic-ai/sdk": "0.129.0",
|
|
56
56
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
57
|
-
"@earendil-works/pi-telemetry": "^1.0.
|
|
57
|
+
"@earendil-works/pi-telemetry": "^1.0.39",
|
|
58
58
|
"@google/genai": "2.21.0",
|
|
59
59
|
"@opentelemetry/api": "1.9.0",
|
|
60
60
|
"@smithy/node-http-handler": "4.12.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earendil-works/pi-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "Transport-neutral client for remote pi sessions over framed CBOR bytes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"node": ">=22.19.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@earendil-works/chord": "^1.0.
|
|
44
|
-
"@earendil-works/pi-protocol": "^1.0.
|
|
43
|
+
"@earendil-works/chord": "^1.0.39",
|
|
44
|
+
"@earendil-works/pi-protocol": "^1.0.39"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earendil-works/pi-protocol",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "Transport-neutral CBOR protocol for remote pi sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"node": ">=22.19.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@earendil-works/chord": "^1.0.
|
|
36
|
+
"@earendil-works/chord": "^1.0.39",
|
|
37
37
|
"typebox": "1.3.27"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earendil-works/pi-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "experimental server package for pi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"node": ">=22.19.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@earendil-works/chord": "^1.0.
|
|
43
|
-
"@earendil-works/pi-protocol": "^1.0.
|
|
42
|
+
"@earendil-works/chord": "^1.0.39",
|
|
43
|
+
"@earendil-works/pi-protocol": "^1.0.39"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -17,4 +17,5 @@ export declare function getLatestPiVersion(currentVersion: string, options?: {
|
|
|
17
17
|
timeoutMs?: number;
|
|
18
18
|
retry?: boolean;
|
|
19
19
|
}): Promise<string | undefined>;
|
|
20
|
+
export declare function versionCheckDisabled(env?: NodeJS.ProcessEnv): boolean;
|
|
20
21
|
export declare function checkForNewPiVersion(currentVersion: string): Promise<LatestPiRelease | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var A=Object.defineProperty;var
|
|
2
|
-
`)){const s=n.trim();if(!s.startsWith(`//${r}/`))continue;const
|
|
1
|
+
var A=Object.defineProperty;var i=(t,e)=>A(t,"name",{value:e,configurable:!0});import{readFileSync as y}from"node:fs";import{homedir as P}from"node:os";import{join as S}from"node:path";import{compare as k,valid as u}from"semver";import{APP_NAME as l,DAL_RELEASE_REPO as E,DAL_UPDATE_PACKAGE as f,DAL_UPDATE_REGISTRY as _}from"../config.js";import{fetchWithRetry as d}from"./management-http.js";import{getPiUserAgent as m}from"./pi-user-agent.js";const N="https://pi.dev/api/latest-version",p=1e4,v=`https://api.github.com/repos/${E}/releases/latest`,I=`https://github.com/${E}/releases/latest`;function w(){const t=process.env.DAL_UPDATE_TOKEN;if(t)return`token ${t}`;try{const e=y(S(P(),".npmrc"),"utf8"),r=new URL(_).host;for(const n of e.split(`
|
|
2
|
+
`)){const s=n.trim();if(!s.startsWith(`//${r}/`))continue;const o=s.match(/:_auth\s*=\s*(\S+)/)?.[1];if(o)return`Basic ${o}`;const a=s.match(/:_authToken\s*=\s*(\S+)/)?.[1];if(a)return`Bearer ${a}`}}catch{}}i(w,"getDalRegistryAuthHeader");async function D(t,e={}){const r=await d(v,{headers:{"User-Agent":m(t),accept:"application/vnd.github+json"}},{maxRetries:e.retry?2:0,timeoutMs:e.timeoutMs??p});if(!r.ok)return;const n=await r.json(),s=typeof n.tag_name=="string"?n.tag_name.trim().replace(/^v/,""):"";if(!s)return;const o=n.assets?.filter(c=>typeof c.name=="string"&&c.name.endsWith(".tgz"))??[],g=(o.find(c=>String(c.name).includes(s))??o[0])?.browser_download_url;if(!(typeof g!="string"||!g))return{version:s,packageName:f,installSpec:g}}i(D,"getLatestDalGithubRelease");async function T(t,e={}){const r=w(),n=await d(`${_}/${encodeURIComponent(f)}`,{headers:{"User-Agent":m(t),accept:"application/json",...r?{authorization:r}:{}}},{maxRetries:e.retry?2:0,timeoutMs:e.timeoutMs??p});if(!n.ok)return;const o=(await n.json())["dist-tags"]?.latest;if(!(typeof o!="string"||!o.trim()))return{version:o.trim(),packageName:f}}i(T,"getLatestDalRegistryRelease");async function U(t,e={}){const r=await d(I,{headers:{"User-Agent":m(t)},redirect:"manual"},{maxRetries:e.retry?2:0,timeoutMs:e.timeoutMs??p});if(r.status<300||r.status>=400)return;const n=/\/releases\/tag\/v?([^/?#]+)$/.exec(r.headers.get("location")??"")?.[1],s=n?u(decodeURIComponent(n)):null;if(s)return{version:s,packageName:f,installSpec:`https://github.com/${E}/releases/download/v${s}/deepailab-dal-${s}.tgz`}}i(U,"getLatestDalGithubReleaseFromPage");async function $(t,e={}){for(const r of[D,U])try{const n=await r(t,e);if(n)return n}catch{}return T(t,e)}i($,"getLatestDalRelease");function W(t){const e=t instanceof Error&&t.message?t.message:String(t),r=t instanceof Error?t.cause:void 0,n=r instanceof AggregateError?r.errors:r===void 0?[]:[r],s=n.map(a=>typeof a=="object"&&a!==null&&"code"in a&&typeof a.code=="string"?a.code:void 0).filter(a=>a!==void 0);if(s.length>0)return`${e} (${[...new Set(s)].join(", ")})`;const o=n.find(a=>a instanceof Error&&!!a.message)?.message;return o?`${e} (cause: ${o})`:e}i(W,"formatVersionCheckError");function M(t,e){const r=u(t.trim()),n=u(e.trim());if(!(!r||!n))return k(r,n)}i(M,"comparePackageVersions");function h(t,e){const r=M(t,e);return r!==void 0?r>0:t.trim()!==e.trim()}i(h,"isNewerPackageVersion");const x=80;function b(t){const e=u(t.trim());if(!e)return;const[r,n]=e.split(".").map(Number);return{major:r,minor:n}}i(b,"parseVersionParts");function R(t){const e=b(t);return e!==void 0&&e.major===0&&e.minor>=x}i(R,"isLeftoverPiLineage");function j(t,e){if(l!=="dal")return h(t,e);const r=R(t),n=R(e);return r&&!n?!1:!r&&n?!0:h(t,e)}i(j,"isProductUpdateVersion");async function L(t,e={}){if(process.env.PI_OFFLINE)return;if(l!=="pi")return l==="dal"?$(t,e):void 0;const r=await d(N,{headers:{"User-Agent":m(t),accept:"application/json"}},{maxRetries:e.retry?2:0,timeoutMs:e.timeoutMs??p});if(!r.ok)return;const n=await r.json();if(typeof n.version!="string"||!n.version.trim())return;const s=typeof n.packageName=="string"&&n.packageName.trim()?n.packageName.trim():void 0,o=typeof n.note=="string"&&n.note.trim()?n.note.trim():void 0;return{version:n.version.trim(),packageName:s,...o?{note:o}:{}}}i(L,"getLatestPiRelease");async function Y(t,e={}){return(await L(t,e))?.version}i(Y,"getLatestPiVersion");function C(t=process.env){return!!(t.DAL_SKIP_VERSION_CHECK||t.PI_SKIP_VERSION_CHECK)}i(C,"versionCheckDisabled");async function q(t){if(!C())try{const e=await L(t);return e&&j(e.version,t)?e:void 0}catch{return}}i(q,"checkForNewPiVersion");export{q as checkForNewPiVersion,M as comparePackageVersions,W as formatVersionCheckError,L as getLatestPiRelease,Y as getLatestPiVersion,R as isLeftoverPiLineage,h as isNewerPackageVersion,j as isProductUpdateVersion,C as versionCheckDisabled};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-gondolin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-gondolin",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.37",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@earendil-works/gondolin": "0.12.0"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-sandbox",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.37",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-sandbox",
|
|
9
|
-
"version": "1.15.
|
|
9
|
+
"version": "1.15.37",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sandbox-runtime": "^0.0.26"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-with-deps",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-with-deps",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.37",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dal-code",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "dal-code",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.39",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@agentclientprotocol/sdk": "1.3.0",
|