dal-code 1.0.34 → 1.0.36

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 (91) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/core/agent-session.d.ts +2 -0
  3. package/dist/core/agent-session.js +7 -7
  4. package/dist/core/background-processes.d.ts +14 -1
  5. package/dist/core/background-processes.js +7 -6
  6. package/dist/core/git-state.js +1 -0
  7. package/dist/core/messages.d.ts +7 -0
  8. package/dist/core/messages.js +7 -5
  9. package/dist/core/model-config.d.ts +30 -0
  10. package/dist/core/model-config.js +2 -2
  11. package/dist/core/provider-attribution.js +1 -1
  12. package/dist/core/sandbox/denial.d.ts +1 -0
  13. package/dist/core/sandbox/denial.js +4 -3
  14. package/dist/core/sandbox/shell-sandbox.js +5 -5
  15. package/dist/core/system-prompt.d.ts +1 -0
  16. package/dist/core/system-prompt.js +14 -14
  17. package/dist/core/tools/bash.d.ts +7 -0
  18. package/dist/core/tools/bash.js +14 -20
  19. package/dist/core/tools/output-accumulator.js +3 -3
  20. package/dist/core/tools/output-condense.js +1 -1
  21. package/dist/core/tools/process.d.ts +3 -4
  22. package/dist/core/tools/process.js +15 -15
  23. package/dist/core/tools/truncate.d.ts +12 -0
  24. package/dist/core/tools/truncate.js +12 -5
  25. package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
  26. package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
  27. package/dist/node_modules/@dalcode/dal-gateway/src/index.js +1 -1
  28. package/dist/node_modules/@dalcode/dal-goal/package.json +2 -2
  29. package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
  30. package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
  31. package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
  32. package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
  33. package/dist/node_modules/@dalcode/dal-lsp/package.json +3 -3
  34. package/dist/node_modules/@dalcode/dal-mcp/package.json +5 -5
  35. package/dist/node_modules/@dalcode/dal-mcp/src/index.js +18 -18
  36. package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
  37. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +2 -2
  38. package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
  39. package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +2 -2
  40. package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
  41. package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
  42. package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
  43. package/dist/node_modules/@dalcode/dal-router/package.json +4 -4
  44. package/dist/node_modules/@dalcode/dal-router/src/index.js +4 -4
  45. package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
  46. package/dist/node_modules/@dalcode/dal-skills/src/catalog.js +2 -2
  47. package/dist/node_modules/@dalcode/dal-skills/src/index.js +10 -10
  48. package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
  49. package/dist/node_modules/@dalcode/dal-subagent/src/index.js +14 -16
  50. package/dist/node_modules/@dalcode/dal-telemetry/package.json +2 -2
  51. package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
  52. package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
  53. package/dist/node_modules/@dalcode/dal-tool-catalog/src/groups.js +1 -1
  54. package/dist/node_modules/@dalcode/dal-tool-catalog/src/index.js +4 -5
  55. package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
  56. package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
  57. package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
  58. package/dist/node_modules/@dalcode/deepailab/src/index.js +3 -3
  59. package/dist/node_modules/@dalcode/deepailab/src/model-defaults.js +1 -1
  60. package/dist/node_modules/@earendil-works/chord/package.json +1 -1
  61. package/dist/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  62. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +2 -1
  63. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  64. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  65. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  66. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  67. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  68. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  69. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  70. package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +1 -0
  71. package/dist/node_modules/@earendil-works/pi-ai/package.json +2 -2
  72. package/dist/node_modules/@earendil-works/pi-client/package.json +3 -3
  73. package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
  74. package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  75. package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
  76. package/dist/node_modules/@earendil-works/pi-protocol/package.json +2 -2
  77. package/dist/node_modules/@earendil-works/pi-server/package.json +3 -3
  78. package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  79. package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
  80. package/dist/utils/output-files.js +1 -1
  81. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  82. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  83. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  84. package/examples/extensions/gondolin/package-lock.json +2 -2
  85. package/examples/extensions/gondolin/package.json +1 -1
  86. package/examples/extensions/sandbox/package-lock.json +2 -2
  87. package/examples/extensions/sandbox/package.json +1 -1
  88. package/examples/extensions/with-deps/package-lock.json +2 -2
  89. package/examples/extensions/with-deps/package.json +1 -1
  90. package/npm-shrinkwrap.json +2 -2
  91. package/package.json +1 -1
@@ -436,6 +436,7 @@ export interface OpenAICompletionsCompat {
436
436
  supportsLongCacheRetention?: boolean;
437
437
  dsmlToolCallsInContent?: boolean;
438
438
  vllmPriority?: number;
439
+ responseModelCosts?: Record<string, ModelCost>;
439
440
  }
440
441
  export interface OpenAIResponsesCompat {
441
442
  supportsDeveloperRole?: boolean;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-ai",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
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.34",
61
+ "@earendil-works/pi-telemetry": "^1.0.36",
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.34",
3
+ "version": "1.0.36",
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.34",
44
- "@earendil-works/pi-protocol": "^1.0.34"
43
+ "@earendil-works/chord": "^1.0.36",
44
+ "@earendil-works/pi-protocol": "^1.0.36"
45
45
  }
46
46
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-codemode",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "Sandboxed JavaScript execution where the only capability is calling injected tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-coding-agent",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
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-mcp",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "Standalone Model Context Protocol client for pi and other applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-protocol",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
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.34",
36
+ "@earendil-works/chord": "^1.0.36",
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.34",
3
+ "version": "1.0.36",
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.34",
43
- "@earendil-works/pi-protocol": "^1.0.34"
42
+ "@earendil-works/chord": "^1.0.36",
43
+ "@earendil-works/pi-protocol": "^1.0.36"
44
44
  }
45
45
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-telemetry",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
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.34",
3
+ "version": "1.0.36",
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 +1 @@
1
- var a=Object.defineProperty;var o=(t,r)=>a(t,"name",{value:r,configurable:!0});import{randomBytes as p}from"node:crypto";import{createWriteStream as u}from"node:fs";import{writeFile as c}from"node:fs/promises";import{tmpdir as f}from"node:os";import{join as s}from"node:path";const m=384;function n(t,r){return s(f(),`${t}-${p(8).toString("hex")}${r}`)}o(n,"createOutputFilePath");async function h(t,r,e){const i=n(t,r);return await c(i,e,{mode:m,flag:"wx"}),i}o(h,"writeOutputFile");function g(t,r){const e=n(t,r);return{path:e,stream:u(e,{mode:m,flags:"wx"})}}o(g,"createOutputFileStream");export{g as createOutputFileStream,h as writeOutputFile};
1
+ var p=Object.defineProperty;var e=(t,r)=>p(t,"name",{value:r,configurable:!0});import{randomBytes as a}from"node:crypto";import{createWriteStream as c}from"node:fs";import{writeFile as f}from"node:fs/promises";import{tmpdir as l}from"node:os";import{join as s}from"node:path";const u=384;let i;function y(t){return i=t,()=>{i===t&&(i=void 0)}}e(y,"setOutputFileDirectory");function m(t,r){return s(i?.()??l(),`${t}-${a(8).toString("hex")}${r}`)}e(m,"createOutputFilePath");async function g(t,r,o){const n=m(t,r);return await f(n,o,{mode:u,flag:"wx"}),n}e(g,"writeOutputFile");function D(t,r){const o=m(t,r);return{path:o,stream:c(o,{mode:u,flags:"wx"})}}e(D,"createOutputFileStream");export{D as createOutputFileStream,y as setOutputFileDirectory,g as writeOutputFile};
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider",
9
- "version": "0.1.32",
9
+ "version": "0.1.34",
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.32",
4
+ "version": "0.1.34",
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.32",
4
+ "version": "0.1.34",
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.32",
3
+ "version": "0.1.34",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-gondolin",
9
- "version": "0.1.32",
9
+ "version": "0.1.34",
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.32",
4
+ "version": "0.1.34",
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-sandbox",
3
- "version": "1.15.32",
3
+ "version": "1.15.34",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-sandbox",
9
- "version": "1.15.32",
9
+ "version": "1.15.34",
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.32",
4
+ "version": "1.15.34",
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.32",
3
+ "version": "0.1.34",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-with-deps",
9
- "version": "0.1.32",
9
+ "version": "0.1.34",
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.32",
4
+ "version": "0.1.34",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "dal-code",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "dal-code",
9
- "version": "1.0.34",
9
+ "version": "1.0.36",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "1.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dal-code",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "DAL Code terminal",
5
5
  "type": "module",
6
6
  "piConfig": {