dal-code 1.0.31 → 1.0.33
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 +14 -0
- package/dal-docs/settings.md +11 -0
- package/dist/core/sandbox/index.d.ts +2 -1
- package/dist/core/sandbox/index.js +1 -1
- package/dist/core/sandbox/package-managers.d.ts +19 -0
- package/dist/core/sandbox/package-managers.js +1 -0
- package/dist/core/sandbox/policy.d.ts +1 -0
- package/dist/core/sandbox/policy.js +1 -1
- package/dist/core/sandbox/shell-sandbox.d.ts +14 -0
- package/dist/core/sandbox/shell-sandbox.js +5 -5
- package/dist/core/sdk.js +1 -1
- package/dist/core/system-prompt.d.ts +3 -0
- package/dist/core/system-prompt.js +19 -13
- package/dist/core/tools/bash.d.ts +1 -1
- package/dist/core/tools/bash.js +15 -15
- package/dist/core/tools/powershell.d.ts +1 -1
- package/dist/core/tools/powershell.js +1 -1
- package/dist/dal/host-extensions.d.ts +2 -0
- package/dist/dal/host-extensions.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/main.js +4 -4
- package/dist/modes/interactive/interactive-mode.js +13 -13
- package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-bridge/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
- 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.d.ts +2 -0
- package/dist/node_modules/@dalcode/dal-mcp/src/config.js +1 -1
- package/dist/node_modules/@dalcode/dal-mcp/src/index.js +17 -17
- 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/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +1 -1
- package/dist/node_modules/@dalcode/dal-plugins/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-rewind/src/commands.js +2 -2
- package/dist/node_modules/@dalcode/dal-rewind/src/core.d.ts +20 -2
- package/dist/node_modules/@dalcode/dal-rewind/src/core.js +3 -4
- package/dist/node_modules/@dalcode/dal-rewind/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-router/package.json +4 -4
- 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 +14 -13
- package/dist/node_modules/@dalcode/dal-subagent/src/process-runner.js +3 -3
- 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/deepailab/package.json +3 -3
- package/dist/node_modules/@dalcode/deepailab/src/index.js +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/nvidia.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/radius.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/retry.d.ts +1 -0
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.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/sdk/rewind.d.ts +1 -1
- package/dist/sdk/rewind.js +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/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
|
@@ -14,3 +14,4 @@ export interface RetryCallbacks {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function retryAssistantCall(produce: () => Promise<AssistantMessage>, policy: RetryPolicy | undefined, signal: AbortSignal | undefined, callbacks?: RetryCallbacks): Promise<AssistantMessage>;
|
|
16
16
|
export declare function isRetryableAssistantError(message: AssistantMessage): boolean;
|
|
17
|
+
export declare function isAccountLimitAssistantError(message: Pick<AssistantMessage, "stopReason" | "errorMessage">): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var R=Object.defineProperty;var n=(e,r)=>R(e,"name",{value:r,configurable:!0});function f(e){return new RegExp(e.join("|"),"i")}n(f,"buildProviderErrorPattern");const
|
|
1
|
+
var R=Object.defineProperty;var n=(e,r)=>R(e,"name",{value:r,configurable:!0});function f(e){return new RegExp(e.join("|"),"i")}n(f,"buildProviderErrorPattern");const p=f(["GoUsageLimitError","FreeUsageLimitError","Monthly usage limit reached","available balance","insufficient_quota","out of budget","quota exceeded","billing","^\\s*(?:error:?\\s*)?402\\b","\\b(?:status|http|code)\\W{0,3}402\\b","payment.?required","insufficient.?(?:balance|credits?|funds)","credit balance is too low","exceeded your current quota","quota.?exhausted","\u4F59\u989D\u4E0D\u8DB3","subscription_sharing_usage_limit_exceeded"]),m=f(["overloaded","server_busy","servers are currently busy","currently experiencing high demand","model is at capacity","rate.?limit","too many requests","\\b(?:429|500|502|503|504|520|524)\\b","service.?unavailable","server.?error","internal.?error","empty response","provider.?returned.?error","exceeded request buffer limit while retrying upstream","network.?error","connection.?error","connection.?refused","connection.?lost","other side closed","fetch failed","getaddrinfo","ENOTFOUND","EAI_AGAIN","upstream.?connect","reset before headers","socket hang up","socket connection was closed","timed? out","timeout","terminated","websocket.?closed","websocket.?error","ended without","stream ended before message_stop","stream ended before a terminal response event","http2 request did not get a response","pending stream has been canceled","retry delay","you can retry your request","try your request again","please retry your request","ResourceExhausted","subscription_sharing_usage_unavailable","subscription_sharing_user_unavailable"]),b=6e4;function _(e,r){const a=e.baseDelayMs*2**Math.max(0,r-1),t=Number.isSafeInteger(a)?a:Number.MAX_SAFE_INTEGER;return Math.min(t,e.maxAgentDelayMs??b)}n(_,"retryDelayMs");class d extends Error{static{n(this,"RetrySleepAbortError")}constructor(){super("Aborted")}}function g(e,r){return new Promise((a,t)=>{if(r?.aborted){t(new d);return}const u=setTimeout(a,e);r?.addEventListener("abort",()=>{clearTimeout(u),t(new d)},{once:!0})})}n(g,"sleep");async function A(e,r,a,t){const u=r?.enabled?r.maxRetries:0;let i=0,s;for(;;){const o=await e();if(o.stopReason==="aborted")return s&&await t?.onRetryFinished?.(!1,s.attempt),o;if(o.stopReason!=="error")return s&&await t?.onRetryFinished?.(!0,s.attempt),o;if(i>=u||!E(o))return s&&await t?.onRetryFinished?.(!1,s.attempt,o.errorMessage),o;i++,s={attempt:i,errorMessage:o.errorMessage||"Unknown error"};const c=_(r,i);await t?.onRetryScheduled?.(i,u,c,s.errorMessage);try{await g(c,a)}catch(l){if(await t?.onRetryFinished?.(!1,i,s.errorMessage),l instanceof d){const{errorMessage:h,...y}=o;return{...y,stopReason:"aborted"}}throw l}await t?.onRetryAttemptStart?.()}}n(A,"retryAssistantCall");function E(e){if(e.stopReason!=="error"||!e.errorMessage)return!1;const r=e.errorMessage;return p.test(r)?!1:m.test(r)}n(E,"isRetryableAssistantError");function w(e){return e.stopReason!=="error"||!e.errorMessage?!1:p.test(e.errorMessage)}n(w,"isAccountLimitAssistantError");export{b as DEFAULT_MAX_AGENT_RETRY_DELAY_MS,w as isAccountLimitAssistantError,E as isRetryableAssistantError,A as retryAssistantCall,_ as retryDelayMs};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earendil-works/pi-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@anthropic-ai/sdk": "0.129.0",
|
|
60
60
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
61
|
-
"@earendil-works/pi-telemetry": "^1.0.
|
|
61
|
+
"@earendil-works/pi-telemetry": "^1.0.33",
|
|
62
62
|
"@google/genai": "2.21.0",
|
|
63
63
|
"@opentelemetry/api": "1.9.0",
|
|
64
64
|
"@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.33",
|
|
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.33",
|
|
44
|
+
"@earendil-works/pi-protocol": "^1.0.33"
|
|
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.33",
|
|
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.33",
|
|
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.33",
|
|
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.33",
|
|
43
|
+
"@earendil-works/pi-protocol": "^1.0.33"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/dist/sdk/rewind.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BranchMismatchError, type CheckpointData, type CreateCheckpointOpts, checkpointIdFromRef, createCheckpoint, IGNORED_DIR_NAMES, LEGACY_REF_BASE, listCheckpointRefs, loadAllCheckpoints, loadCheckpointFromRef, MAX_UNTRACKED_DIR_FILES, MAX_UNTRACKED_FILE_SIZE, REF_BASE, restoreCheckpoint, } from "@dalcode/dal-rewind/core";
|
|
1
|
+
export { BranchMismatchError, type CheckpointData, type CreateCheckpointOpts, checkpointId, checkpointIdFromRef, createCheckpoint, deleteSessionCheckpoints, IGNORED_DIR_NAMES, isSecretPath, LEGACY_REF_BASE, listCheckpointRefs, loadAllCheckpoints, loadCheckpointFromRef, MAX_BEFORE_RESTORE_CHECKPOINTS, MAX_UNTRACKED_DIR_FILES, MAX_UNTRACKED_FILE_SIZE, MAX_UNTRACKED_TOTAL_SIZE, REF_BASE, restoreCheckpoint, sessionIdFromCheckpointId, } from "@dalcode/dal-rewind/core";
|
package/dist/sdk/rewind.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BranchMismatchError as E,checkpointIdFromRef as
|
|
1
|
+
import{BranchMismatchError as E,checkpointId as t,checkpointIdFromRef as _,createCheckpoint as c,deleteSessionCheckpoints as i,IGNORED_DIR_NAMES as R,isSecretPath as r,LEGACY_REF_BASE as A,listCheckpointRefs as C,loadAllCheckpoints as h,loadCheckpointFromRef as n,MAX_BEFORE_RESTORE_CHECKPOINTS as s,MAX_UNTRACKED_DIR_FILES as I,MAX_UNTRACKED_FILE_SIZE as p,MAX_UNTRACKED_TOTAL_SIZE as S,REF_BASE as k,restoreCheckpoint as F,sessionIdFromCheckpointId as d}from"@dalcode/dal-rewind/core";export{E as BranchMismatchError,R as IGNORED_DIR_NAMES,A as LEGACY_REF_BASE,s as MAX_BEFORE_RESTORE_CHECKPOINTS,I as MAX_UNTRACKED_DIR_FILES,p as MAX_UNTRACKED_FILE_SIZE,S as MAX_UNTRACKED_TOTAL_SIZE,k as REF_BASE,t as checkpointId,_ as checkpointIdFromRef,c as createCheckpoint,i as deleteSessionCheckpoints,r as isSecretPath,C as listCheckpointRefs,h as loadAllCheckpoints,n as loadCheckpointFromRef,F as restoreCheckpoint,d as sessionIdFromCheckpointId};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-custom-provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-custom-provider",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.31",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.52.0"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-gondolin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
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.31",
|
|
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.31",
|
|
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.31",
|
|
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.31",
|
|
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.31",
|
|
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.33",
|
|
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.33",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@agentclientprotocol/sdk": "1.3.0",
|