dal-code 1.0.25 → 1.0.27

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.
Files changed (175) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/NOTICE +7 -0
  3. package/dal-docs/README.md +13 -0
  4. package/dal-docs/settings.md +18 -2
  5. package/dist/cli/args.d.ts +3 -0
  6. package/dist/cli/args.js +14 -14
  7. package/dist/core/agent-session-services.d.ts +2 -0
  8. package/dist/core/agent-session-services.js +1 -1
  9. package/dist/core/agent-session.d.ts +27 -1
  10. package/dist/core/agent-session.js +9 -8
  11. package/dist/core/background-processes.d.ts +73 -0
  12. package/dist/core/background-processes.js +7 -0
  13. package/dist/core/extensions/index.d.ts +1 -1
  14. package/dist/core/extensions/loader.js +1 -1
  15. package/dist/core/extensions/permission-surface.js +1 -1
  16. package/dist/core/extensions/runner.js +1 -1
  17. package/dist/core/extensions/types.d.ts +6 -0
  18. package/dist/core/host-capabilities.d.ts +50 -0
  19. package/dist/core/host-capabilities.js +2 -0
  20. package/dist/core/permissions/rules.d.ts +45 -0
  21. package/dist/core/permissions/rules.js +1 -0
  22. package/dist/core/permissions/shell-words.js +2 -0
  23. package/dist/core/permissions/tool-policy.d.ts +46 -0
  24. package/dist/core/permissions/tool-policy.js +1 -0
  25. package/dist/core/sandbox/availability.d.ts +14 -0
  26. package/dist/core/sandbox/availability.js +1 -0
  27. package/dist/core/sandbox/denial.d.ts +25 -0
  28. package/dist/core/sandbox/denial.js +3 -0
  29. package/dist/core/sandbox/index.d.ts +5 -0
  30. package/dist/core/sandbox/index.js +1 -0
  31. package/dist/core/sandbox/policy.d.ts +66 -0
  32. package/dist/core/sandbox/policy.js +1 -0
  33. package/dist/core/sandbox/runtime.d.ts +41 -0
  34. package/dist/core/sandbox/runtime.js +1 -0
  35. package/dist/core/sandbox/shell-sandbox.d.ts +125 -0
  36. package/dist/core/sandbox/shell-sandbox.js +5 -0
  37. package/dist/core/sandbox/windows.d.ts +122 -0
  38. package/dist/core/sandbox/windows.js +5 -0
  39. package/dist/core/sdk.d.ts +3 -0
  40. package/dist/core/sdk.js +1 -1
  41. package/dist/core/settings-manager.d.ts +20 -0
  42. package/dist/core/settings-manager.js +1 -1
  43. package/dist/core/tools/bash.d.ts +16 -1
  44. package/dist/core/tools/bash.js +16 -14
  45. package/dist/core/tools/find.js +11 -11
  46. package/dist/core/tools/grep.js +10 -10
  47. package/dist/core/tools/index.d.ts +1 -0
  48. package/dist/core/tools/index.js +1 -1
  49. package/dist/core/tools/ls.js +6 -6
  50. package/dist/core/tools/powershell.d.ts +1 -1
  51. package/dist/core/tools/powershell.js +2 -2
  52. package/dist/core/tools/process.d.ts +26 -0
  53. package/dist/core/tools/process.js +22 -0
  54. package/dist/core/tools/read.js +15 -15
  55. package/dist/dal/builtins.js +2 -2
  56. package/dist/dal/child-env.js +1 -1
  57. package/dist/dal/manifest.d.ts +32 -0
  58. package/dist/dal/manifest.js +1 -0
  59. package/dist/index.d.ts +8 -3
  60. package/dist/index.js +1 -1
  61. package/dist/main.js +4 -4
  62. package/dist/modes/index.d.ts +2 -2
  63. package/dist/modes/print-mode.js +6 -4
  64. package/dist/modes/rpc/environment-update.js +1 -0
  65. package/dist/modes/rpc/rpc-client.d.ts +38 -1
  66. package/dist/modes/rpc/rpc-client.js +4 -1
  67. package/dist/modes/rpc/rpc-mode.d.ts +1 -0
  68. package/dist/modes/rpc/rpc-mode.js +1 -1
  69. package/dist/modes/rpc/rpc-types.d.ts +95 -0
  70. package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
  71. package/dist/node_modules/@dalcode/dal-bridge/src/index.js +1 -1
  72. package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
  73. package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
  74. package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
  75. package/dist/node_modules/@dalcode/dal-interactive/LICENSE +21 -0
  76. package/dist/node_modules/@dalcode/dal-interactive/package.json +33 -0
  77. package/dist/node_modules/@dalcode/dal-interactive/src/handoff.js +28 -0
  78. package/dist/node_modules/@dalcode/dal-interactive/src/index.js +1 -0
  79. package/dist/node_modules/@dalcode/dal-interactive/src/interactive-shell.js +1 -0
  80. package/dist/node_modules/@dalcode/dal-interactive/src/questionnaire.js +3 -0
  81. package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
  82. package/dist/node_modules/@dalcode/dal-lsp/package.json +3 -3
  83. package/dist/node_modules/@dalcode/dal-mcp/package.json +5 -5
  84. package/dist/node_modules/@dalcode/dal-mcp/src/add-wizard.js +1 -1
  85. package/dist/node_modules/@dalcode/dal-mcp/src/config.d.ts +1 -1
  86. package/dist/node_modules/@dalcode/dal-mcp/src/config.js +1 -1
  87. package/dist/node_modules/@dalcode/dal-mcp/src/index.js +18 -18
  88. package/dist/node_modules/@dalcode/dal-mcp/src/proxy.js +6 -6
  89. package/dist/node_modules/@dalcode/dal-mcp/src/report.js +1 -1
  90. package/dist/node_modules/@dalcode/dal-mcp/src/types.d.ts +1 -1
  91. package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
  92. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +2 -2
  93. package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
  94. package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +2 -2
  95. package/dist/node_modules/@dalcode/dal-plugins/package.json +2 -2
  96. package/dist/node_modules/@dalcode/dal-review/LICENSE +21 -0
  97. package/dist/node_modules/@dalcode/dal-review/package.json +34 -0
  98. package/dist/node_modules/@dalcode/dal-review/src/args.d.ts +13 -0
  99. package/dist/node_modules/@dalcode/dal-review/src/args.js +1 -0
  100. package/dist/node_modules/@dalcode/dal-review/src/core.d.ts +6 -0
  101. package/dist/node_modules/@dalcode/dal-review/src/core.js +1 -0
  102. package/dist/node_modules/@dalcode/dal-review/src/findings.d.ts +23 -0
  103. package/dist/node_modules/@dalcode/dal-review/src/findings.js +4 -0
  104. package/dist/node_modules/@dalcode/dal-review/src/index.js +1 -0
  105. package/dist/node_modules/@dalcode/dal-review/src/prompt.d.ts +3 -0
  106. package/dist/node_modules/@dalcode/dal-review/src/prompt.js +29 -0
  107. package/dist/node_modules/@dalcode/dal-review/src/runner.d.ts +91 -0
  108. package/dist/node_modules/@dalcode/dal-review/src/runner.js +2 -0
  109. package/dist/node_modules/@dalcode/dal-review/src/targets.d.ts +33 -0
  110. package/dist/node_modules/@dalcode/dal-review/src/targets.js +17 -0
  111. package/dist/node_modules/@dalcode/dal-review/src/types.d.ts +94 -0
  112. package/dist/node_modules/@dalcode/dal-review/src/types.js +1 -0
  113. package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
  114. package/dist/node_modules/@dalcode/dal-router/package.json +4 -4
  115. package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
  116. package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
  117. package/dist/node_modules/@dalcode/dal-subagent/src/agents.js +2 -2
  118. package/dist/node_modules/@dalcode/dal-subagent/src/index.js +12 -12
  119. package/dist/node_modules/@dalcode/dal-subagent/src/process-runner.js +3 -3
  120. package/dist/node_modules/@dalcode/dal-telemetry/package.json +2 -2
  121. package/dist/node_modules/@dalcode/dal-terminal/LICENSE +21 -0
  122. package/dist/node_modules/@dalcode/dal-terminal/package.json +33 -0
  123. package/dist/node_modules/@dalcode/dal-terminal/src/contract.d.ts +60 -0
  124. package/dist/node_modules/@dalcode/dal-terminal/src/contract.js +7 -0
  125. package/dist/node_modules/@dalcode/dal-terminal/src/index.js +6 -0
  126. package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
  127. package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
  128. package/dist/node_modules/@dalcode/dal-web/src/config.js +2 -2
  129. package/dist/node_modules/@dalcode/dal-web/src/index.js +4 -4
  130. package/dist/node_modules/@dalcode/dal-web/src/search.js +4 -4
  131. package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
  132. package/dist/node_modules/@dalcode/dal-workflow/src/index.js +4 -4
  133. package/dist/node_modules/@dalcode/dal-workflow/src/plan-mode.js +13 -13
  134. package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
  135. package/dist/node_modules/@earendil-works/chord/package.json +1 -1
  136. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +4 -0
  137. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +1 -1
  138. package/dist/node_modules/@earendil-works/pi-agent-core/package.json +4 -4
  139. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  140. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  141. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  142. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  143. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  144. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  145. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  146. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  147. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
  148. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  149. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  150. package/dist/node_modules/@earendil-works/pi-ai/package.json +2 -2
  151. package/dist/node_modules/@earendil-works/pi-client/package.json +3 -3
  152. package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  153. package/dist/node_modules/@earendil-works/pi-protocol/package.json +2 -2
  154. package/dist/node_modules/@earendil-works/pi-server/package.json +5 -5
  155. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/package.json +3 -3
  156. package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  157. package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
  158. package/dist/sdk/index.d.ts +6 -2
  159. package/dist/sdk/index.js +1 -1
  160. package/dist/sdk/review.d.ts +1 -0
  161. package/dist/sdk/review.js +1 -0
  162. package/dist/sdk/subagents.d.ts +8 -0
  163. package/dist/sdk/subagents.js +1 -0
  164. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  165. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  166. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  167. package/examples/extensions/gondolin/package-lock.json +2 -2
  168. package/examples/extensions/gondolin/package.json +1 -1
  169. package/examples/extensions/sandbox/index.ts +6 -0
  170. package/examples/extensions/sandbox/package-lock.json +2 -2
  171. package/examples/extensions/sandbox/package.json +1 -1
  172. package/examples/extensions/with-deps/package-lock.json +2 -2
  173. package/examples/extensions/with-deps/package.json +1 -1
  174. package/npm-shrinkwrap.json +83 -5
  175. package/package.json +14 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-ai",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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.124.0",
56
56
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
57
- "@earendil-works/pi-telemetry": "^1.0.25",
57
+ "@earendil-works/pi-telemetry": "^1.0.27",
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.25",
3
+ "version": "1.0.27",
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.25",
44
- "@earendil-works/pi-protocol": "^1.0.25"
43
+ "@earendil-works/chord": "^1.0.27",
44
+ "@earendil-works/pi-protocol": "^1.0.27"
45
45
  }
46
46
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-coding-agent",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "private": true,
5
5
  "description": "Self-reference to the package's own dist/index.js for the bundled extensions.",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-protocol",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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.25",
36
+ "@earendil-works/chord": "^1.0.27",
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.25",
3
+ "version": "1.0.27",
4
4
  "description": "experimental server package for pi",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,9 +39,9 @@
39
39
  "node": ">=22.19.0"
40
40
  },
41
41
  "dependencies": {
42
- "@earendil-works/chord": "^1.0.25",
43
- "@earendil-works/pi-agent-core": "^1.0.25",
44
- "@earendil-works/pi-ai": "^1.0.25",
45
- "@earendil-works/pi-protocol": "^1.0.25"
42
+ "@earendil-works/chord": "^1.0.27",
43
+ "@earendil-works/pi-agent-core": "^1.0.27",
44
+ "@earendil-works/pi-ai": "^1.0.27",
45
+ "@earendil-works/pi-protocol": "^1.0.27"
46
46
  }
47
47
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-session-backend-sqlite-node",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Node sqlite session backend for @earendil-works/pi-agent-core sessions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "node": ">=22.19.0"
28
28
  },
29
29
  "dependencies": {
30
- "@earendil-works/pi-ai": "^1.0.25",
31
- "@earendil-works/pi-agent-core": "^1.0.25"
30
+ "@earendil-works/pi-ai": "^1.0.27",
31
+ "@earendil-works/pi-agent-core": "^1.0.27"
32
32
  }
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-telemetry",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Vendor-neutral telemetry contracts and typed schema utilities for pi",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-tui",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,5 +1,7 @@
1
+ export { TERMINAL_CAPABILITY, TERMINAL_CAPABILITY_VERSION, type TerminalInfo, type TerminalListResult, type TerminalReadParams, type TerminalReadResult, } from "@dalcode/dal-terminal/contract";
1
2
  export { CONFIG_DIR_NAME, getAgentDir, getExamplesPath, SHARED_SKILL_CONFIG_DIRS, VERSION } from "../config.ts";
2
3
  export type { AgentSessionEvent } from "../core/agent-session.ts";
4
+ export { HOST_CAPABILITIES_ENV, HOST_TOKEN_ENV, HOST_TOKEN_HEADER, HOST_URL_ENV, type HostCapability, } from "../core/host-capabilities.ts";
3
5
  export { ModelRuntime } from "../core/model-runtime.ts";
4
6
  export { DefaultPackageManager, type PackageManager, type ResolvedResource } from "../core/package-manager.ts";
5
7
  export { buildProjectMap, formatProjectMapPrompt, type ProjectMap, type ProjectMapOptions, } from "../core/project-map.ts";
@@ -8,7 +10,9 @@ export { type FileEntry, parseSessionEntries, type SessionEntry, SessionManager
8
10
  export { SettingsManager } from "../core/settings-manager.ts";
9
11
  export { type LoadSkillsOptions, type LoadSkillsResult, loadSkills, type Skill } from "../core/skills.ts";
10
12
  export { DAL_HOOK_ENTRY_TYPE, type DalHookActivity, type DalHookCallContext, type DalHookDecision, type DalHookReporter, type DalHooksConfig, dalHookActivity, isDalHookActivity, type LoadDalHooksOptions, loadDalHooks, runDalHookEvent, runNotificationHooks, runUserPromptSubmitHooks, type UserPromptSubmitOutcome, } from "../dal/hooks/index.ts";
13
+ export { BUNDLED_EXTENSION_PACKAGES, type BundledExtensionActivation, type BundledExtensionInfo, DAL_TOOL_NAMES, listBundledExtensions, listToolCatalog, type ManifestLanguage, type ToolAvailability, type ToolCatalogEntry, toolDisplayLabel, } from "../dal/manifest.ts";
11
14
  export type { JsonAgentSessionEvent } from "../modes/json-event.ts";
12
- export { RpcClient, type RpcClientOptions, type RpcEventListener } from "../modes/rpc/rpc-client.ts";
13
- export type { RpcExtensionUIRequest, RpcExtensionUIResponse } from "../modes/rpc/rpc-types.ts";
15
+ export { RpcClient, type RpcClientOptions, type RpcEventListener, type RpcExitListener, type RpcHostRequestHandler, type RpcProcessExit, } from "../modes/rpc/rpc-client.ts";
16
+ export type { RpcExtensionUIRequest, RpcExtensionUIResponse, RpcHostRequest, RpcHostResponse, } from "../modes/rpc/rpc-types.ts";
14
17
  export { parseFrontmatter } from "../utils/frontmatter.ts";
18
+ export { type BuiltinSubagentInfo, listBuiltinSubagents } from "./subagents.ts";
package/dist/sdk/index.js CHANGED
@@ -1 +1 @@
1
- import{CONFIG_DIR_NAME as t,getAgentDir as e,getExamplesPath as a,SHARED_SKILL_CONFIG_DIRS as i,VERSION as p}from"../config.js";import{ModelRuntime as n}from"../core/model-runtime.js";import{DefaultPackageManager as l}from"../core/package-manager.js";import{buildProjectMap as x,formatProjectMapPrompt as D}from"../core/project-map.js";import{loadProjectContextFiles as c}from"../core/resource-loader.js";import{parseSessionEntries as k,SessionManager as E}from"../core/session-manager.js";import{SettingsManager as P}from"../core/settings-manager.js";import{loadSkills as u}from"../core/skills.js";import{DAL_HOOK_ENTRY_TYPE as R,dalHookActivity as d,isDalHookActivity as A,loadDalHooks as I,runDalHookEvent as N,runNotificationHooks as O,runUserPromptSubmitHooks as C}from"../dal/hooks/index.js";import{RpcClient as j}from"../modes/rpc/rpc-client.js";import{parseFrontmatter as L}from"../utils/frontmatter.js";export{t as CONFIG_DIR_NAME,R as DAL_HOOK_ENTRY_TYPE,l as DefaultPackageManager,n as ModelRuntime,j as RpcClient,i as SHARED_SKILL_CONFIG_DIRS,E as SessionManager,P as SettingsManager,p as VERSION,x as buildProjectMap,d as dalHookActivity,D as formatProjectMapPrompt,e as getAgentDir,a as getExamplesPath,A as isDalHookActivity,I as loadDalHooks,c as loadProjectContextFiles,u as loadSkills,L as parseFrontmatter,k as parseSessionEntries,N as runDalHookEvent,O as runNotificationHooks,C as runUserPromptSubmitHooks};
1
+ import{TERMINAL_CAPABILITY as r,TERMINAL_CAPABILITY_VERSION as e}from"@dalcode/dal-terminal/contract";import{CONFIG_DIR_NAME as i,getAgentDir as l,getExamplesPath as E,SHARED_SKILL_CONFIG_DIRS as p,VERSION as s}from"../config.js";import{HOST_CAPABILITIES_ENV as m,HOST_TOKEN_ENV as n,HOST_TOKEN_HEADER as A,HOST_URL_ENV as S}from"../core/host-capabilities.js";import{ModelRuntime as x}from"../core/model-runtime.js";import{DefaultPackageManager as I}from"../core/package-manager.js";import{buildProjectMap as O,formatProjectMapPrompt as D}from"../core/project-map.js";import{loadProjectContextFiles as L}from"../core/resource-loader.js";import{parseSessionEntries as R,SessionManager as g}from"../core/session-manager.js";import{SettingsManager as M}from"../core/settings-manager.js";import{loadSkills as c}from"../core/skills.js";import{DAL_HOOK_ENTRY_TYPE as k,dalHookActivity as B,isDalHookActivity as K,loadDalHooks as V,runDalHookEvent as b,runNotificationHooks as F,runUserPromptSubmitHooks as Y}from"../dal/hooks/index.js";import{BUNDLED_EXTENSION_PACKAGES as v,DAL_TOOL_NAMES as y,listBundledExtensions as G,listToolCatalog as U,toolDisplayLabel as h}from"../dal/manifest.js";import{RpcClient as q}from"../modes/rpc/rpc-client.js";import{parseFrontmatter as z}from"../utils/frontmatter.js";import{listBuiltinSubagents as Q}from"./subagents.js";export{v as BUNDLED_EXTENSION_PACKAGES,i as CONFIG_DIR_NAME,k as DAL_HOOK_ENTRY_TYPE,y as DAL_TOOL_NAMES,I as DefaultPackageManager,m as HOST_CAPABILITIES_ENV,n as HOST_TOKEN_ENV,A as HOST_TOKEN_HEADER,S as HOST_URL_ENV,x as ModelRuntime,q as RpcClient,p as SHARED_SKILL_CONFIG_DIRS,g as SessionManager,M as SettingsManager,r as TERMINAL_CAPABILITY,e as TERMINAL_CAPABILITY_VERSION,s as VERSION,O as buildProjectMap,B as dalHookActivity,D as formatProjectMapPrompt,l as getAgentDir,E as getExamplesPath,K as isDalHookActivity,Q as listBuiltinSubagents,G as listBundledExtensions,U as listToolCatalog,V as loadDalHooks,L as loadProjectContextFiles,c as loadSkills,z as parseFrontmatter,R as parseSessionEntries,b as runDalHookEvent,F as runNotificationHooks,Y as runUserPromptSubmitHooks,h as toolDisplayLabel};
@@ -0,0 +1 @@
1
+ export { dedupeFindings, formatLocation, type ParsedReviewArgs, parseReviewArgs, REVIEW_MESSAGE_TYPE, REVIEW_RESULT_VERSION, ReviewArgsError, ReviewError, type ReviewFinding, type ReviewPriority, type ReviewProgress, type ReviewResult, type ReviewSeverity, type ReviewTarget, ReviewTargetError, type ReviewTargetSummary, type ReviewUsage, type ReviewVerdict, type RunReviewOptions, renderReviewMarkdown, runReview, SEVERITY_BY_PRIORITY, } from "@dalcode/dal-review/core";
@@ -0,0 +1 @@
1
+ import{dedupeFindings as E,formatLocation as R,parseReviewArgs as i,REVIEW_MESSAGE_TYPE as o,REVIEW_RESULT_VERSION as w,ReviewArgsError as n,ReviewError as v,ReviewTargetError as I,renderReviewMarkdown as _,runReview as a,SEVERITY_BY_PRIORITY as d}from"@dalcode/dal-review/core";export{o as REVIEW_MESSAGE_TYPE,w as REVIEW_RESULT_VERSION,n as ReviewArgsError,v as ReviewError,I as ReviewTargetError,d as SEVERITY_BY_PRIORITY,E as dedupeFindings,R as formatLocation,i as parseReviewArgs,_ as renderReviewMarkdown,a as runReview};
@@ -0,0 +1,8 @@
1
+ import type { ManifestLanguage } from "../dal/manifest.ts";
2
+ export interface BuiltinSubagentInfo {
3
+ name: string;
4
+ description: string;
5
+ tools?: string[];
6
+ readOnly: boolean;
7
+ }
8
+ export declare function listBuiltinSubagents(language?: ManifestLanguage): BuiltinSubagentInfo[];
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var n=(e,r)=>i(e,"name",{value:r,configurable:!0});import{getLanguage as s,translate as t}from"@dalcode/dal-pi-kit";import{BUILTIN_AGENT_DESCRIPTIONS as o,READ_ONLY_TOOL_NAMES as a}from"@dalcode/dal-subagent";function d(e=s()){const r=[...a];return[{name:"scout",description:t(o.scout,e),tools:r,readOnly:!0},{name:"worker",description:t(o.worker,e),readOnly:!1},{name:"reviewer",description:t(o.reviewer,e),tools:r,readOnly:!0}]}n(d,"listBuiltinSubagents");export{d as listBuiltinSubagents};
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider",
9
- "version": "0.1.23",
9
+ "version": "0.1.25",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.52.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "0.1.23",
4
+ "version": "0.1.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "0.1.23",
4
+ "version": "0.1.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-gondolin",
9
- "version": "0.1.23",
9
+ "version": "0.1.25",
10
10
  "dependencies": {
11
11
  "@earendil-works/gondolin": "0.12.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
3
  "private": true,
4
- "version": "0.1.23",
4
+ "version": "0.1.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * Sandbox Extension - OS-level sandboxing for bash commands
3
3
  *
4
+ * dal now sandboxes the agent's shell commands itself (docs/sandbox.md:
5
+ * `--sandbox`, the `sandbox` setting, escalation approvals). This example is
6
+ * kept as a demonstration of replacing a built-in tool with custom
7
+ * BashOperations; a tool with custom operations is not wrapped again by the
8
+ * built-in sandbox.
9
+ *
4
10
  * Uses @anthropic-ai/sandbox-runtime to enforce filesystem and network
5
11
  * restrictions on bash commands at the OS level (sandbox-exec on macOS,
6
12
  * bubblewrap on Linux).
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
- "version": "1.15.23",
3
+ "version": "1.15.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-sandbox",
9
- "version": "1.15.23",
9
+ "version": "1.15.25",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sandbox-runtime": "^0.0.26"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
3
  "private": true,
4
- "version": "1.15.23",
4
+ "version": "1.15.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-with-deps",
9
- "version": "0.1.23",
9
+ "version": "0.1.25",
10
10
  "dependencies": {
11
11
  "ms": "^2.1.3"
12
12
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
3
  "private": true,
4
- "version": "0.1.23",
4
+ "version": "0.1.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "dal-code",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "dal-code",
9
- "version": "1.0.25",
9
+ "version": "1.0.27",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "1.3.0",
13
+ "@anthropic-ai/sandbox-runtime": "0.0.26",
13
14
  "@silvia-odwyer/photon-node": "0.3.4",
14
15
  "cc-safety-net": "1.0.6",
15
16
  "chalk": "6.0.0",
@@ -45,6 +46,14 @@
45
46
  "pdfjs-dist": "6.3.289",
46
47
  "pptxgenjs": "4.0.1"
47
48
  },
49
+ "peerDependencies": {
50
+ "@microsoft/mxc-sdk": "0.6.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "@microsoft/mxc-sdk": {
54
+ "optional": true
55
+ }
56
+ },
48
57
  "bin": {
49
58
  "dal": "dist/cli.js"
50
59
  },
@@ -61,6 +70,26 @@
61
70
  "zod": "^3.25.0 || ^4.0.0"
62
71
  }
63
72
  },
73
+ "node_modules/@anthropic-ai/sandbox-runtime": {
74
+ "version": "0.0.26",
75
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/sandbox-runtime/-/sandbox-runtime-0.0.26.tgz",
76
+ "integrity": "sha512-DYV5LSsVMnzq0lbfaYMSpxZPUMAx4+hy343dRss+pVCLIfF62qOhxpYfZ5TmOk1GTDQm5f9wPprMNSStmnsV4w==",
77
+ "license": "Apache-2.0",
78
+ "dependencies": {
79
+ "@pondwader/socks5-server": "^1.0.10",
80
+ "@types/lodash-es": "^4.17.12",
81
+ "commander": "^12.1.0",
82
+ "lodash-es": "^4.17.21",
83
+ "shell-quote": "^1.8.3",
84
+ "zod": "^3.24.1"
85
+ },
86
+ "bin": {
87
+ "srt": "dist/cli.js"
88
+ },
89
+ "engines": {
90
+ "node": ">=18.0.0"
91
+ }
92
+ },
64
93
  "node_modules/@babel/runtime": {
65
94
  "version": "7.29.2",
66
95
  "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",
@@ -786,6 +815,12 @@
786
815
  "node": ">=8.0.0"
787
816
  }
788
817
  },
818
+ "node_modules/@pondwader/socks5-server": {
819
+ "version": "1.0.10",
820
+ "resolved": "https://registry.npmjs.org/@pondwader/socks5-server/-/socks5-server-1.0.10.tgz",
821
+ "integrity": "sha512-bQY06wzzR8D2+vVCUoBsr5QS2U6UgPUQRmErNwtsuI6vLcyRKkafjkr3KxbtGFf9aBBIV2mcvlsKD1UYaIV+sg==",
822
+ "license": "MIT"
823
+ },
789
824
  "node_modules/@protobufjs/aspromise": {
790
825
  "version": "1.1.2",
791
826
  "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
@@ -855,6 +890,21 @@
855
890
  "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==",
856
891
  "license": "MIT"
857
892
  },
893
+ "node_modules/@types/lodash": {
894
+ "version": "4.17.24",
895
+ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz",
896
+ "integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==",
897
+ "license": "MIT"
898
+ },
899
+ "node_modules/@types/lodash-es": {
900
+ "version": "4.17.12",
901
+ "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz",
902
+ "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==",
903
+ "license": "MIT",
904
+ "dependencies": {
905
+ "@types/lodash": "*"
906
+ }
907
+ },
858
908
  "node_modules/@types/node": {
859
909
  "version": "22.19.19",
860
910
  "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.19.tgz",
@@ -1190,6 +1240,15 @@
1190
1240
  "url": "https://github.com/chalk/chalk?sponsor=1"
1191
1241
  }
1192
1242
  },
1243
+ "node_modules/commander": {
1244
+ "version": "12.1.0",
1245
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
1246
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
1247
+ "license": "MIT",
1248
+ "engines": {
1249
+ "node": ">=18"
1250
+ }
1251
+ },
1193
1252
  "node_modules/compress-commons": {
1194
1253
  "version": "4.1.2",
1195
1254
  "resolved": "https://registry.npmmirror.com/compress-commons/-/compress-commons-4.1.2.tgz",
@@ -1947,6 +2006,12 @@
1947
2006
  "integrity": "sha512-3mk/Zag0+IJxeDrxSgaDPy4zZ3w05PRZeJNnlWhzFz5OkX49J4krc+A8X2d2M69vGMBEX0uyl8M+W+8gH+kBqQ==",
1948
2007
  "license": "ISC"
1949
2008
  },
2009
+ "node_modules/lodash-es": {
2010
+ "version": "4.18.1",
2011
+ "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz",
2012
+ "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==",
2013
+ "license": "MIT"
2014
+ },
1950
2015
  "node_modules/lodash.defaults": {
1951
2016
  "version": "4.2.0",
1952
2017
  "resolved": "https://registry.npmmirror.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
@@ -2288,9 +2353,9 @@
2288
2353
  }
2289
2354
  },
2290
2355
  "node_modules/protobufjs": {
2291
- "version": "7.6.5",
2292
- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.5.tgz",
2293
- "integrity": "sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==",
2356
+ "version": "7.6.6",
2357
+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz",
2358
+ "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==",
2294
2359
  "license": "BSD-3-Clause",
2295
2360
  "dependencies": {
2296
2361
  "@protobufjs/aspromise": "^1.1.2",
@@ -2626,6 +2691,19 @@
2626
2691
  "integrity": "sha512-zu+jc1pcy4UiNThxikUr36f0Rybk9PEeCg/NE6adeWr/SKsdNO4EzZHYRDlv2YCVAfj3Odq3dESSo/jNyoBXzA==",
2627
2692
  "license": "MIT"
2628
2693
  },
2694
+ "node_modules/typescript": {
2695
+ "version": "5.9.3",
2696
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
2697
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
2698
+ "license": "Apache-2.0",
2699
+ "bin": {
2700
+ "tsc": "bin/tsc",
2701
+ "tsserver": "bin/tsserver"
2702
+ },
2703
+ "engines": {
2704
+ "node": ">=14.17"
2705
+ }
2706
+ },
2629
2707
  "node_modules/undici": {
2630
2708
  "version": "8.10.2",
2631
2709
  "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.2.tgz",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dal-code",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "DAL Code terminal",
5
5
  "type": "module",
6
6
  "piConfig": {
@@ -42,6 +42,10 @@
42
42
  "types": "./dist/sdk/rewind.d.ts",
43
43
  "import": "./dist/sdk/rewind.js"
44
44
  },
45
+ "./review": {
46
+ "types": "./dist/sdk/review.d.ts",
47
+ "import": "./dist/sdk/review.js"
48
+ },
45
49
  "./client": {
46
50
  "source": "./src/client/index.ts"
47
51
  },
@@ -66,6 +70,7 @@
66
70
  ],
67
71
  "dependencies": {
68
72
  "@agentclientprotocol/sdk": "1.3.0",
73
+ "@anthropic-ai/sandbox-runtime": "0.0.26",
69
74
  "@silvia-odwyer/photon-node": "0.3.4",
70
75
  "cc-safety-net": "1.0.6",
71
76
  "chalk": "6.0.0",
@@ -118,6 +123,14 @@
118
123
  "type": "git",
119
124
  "url": "git+https://github.com/DeepAILab-Team/dal-dist.git"
120
125
  },
126
+ "peerDependencies": {
127
+ "@microsoft/mxc-sdk": "0.6.0"
128
+ },
129
+ "peerDependenciesMeta": {
130
+ "@microsoft/mxc-sdk": {
131
+ "optional": true
132
+ }
133
+ },
121
134
  "engines": {
122
135
  "node": ">=22.19.0"
123
136
  },