dal-code 1.0.34 → 1.0.35

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 (84) 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 +5 -5
  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/model-config.d.ts +30 -0
  8. package/dist/core/model-config.js +2 -2
  9. package/dist/core/sandbox/denial.d.ts +1 -0
  10. package/dist/core/sandbox/denial.js +4 -3
  11. package/dist/core/sandbox/shell-sandbox.js +5 -5
  12. package/dist/core/system-prompt.d.ts +1 -0
  13. package/dist/core/system-prompt.js +12 -12
  14. package/dist/core/tools/bash.d.ts +7 -0
  15. package/dist/core/tools/bash.js +14 -20
  16. package/dist/core/tools/output-accumulator.js +3 -3
  17. package/dist/core/tools/output-condense.js +1 -1
  18. package/dist/core/tools/process.d.ts +3 -4
  19. package/dist/core/tools/process.js +15 -15
  20. package/dist/core/tools/truncate.d.ts +12 -0
  21. package/dist/core/tools/truncate.js +12 -5
  22. package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
  23. package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
  24. package/dist/node_modules/@dalcode/dal-gateway/src/index.js +1 -1
  25. package/dist/node_modules/@dalcode/dal-goal/package.json +2 -2
  26. package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
  27. package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
  28. package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
  29. package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
  30. package/dist/node_modules/@dalcode/dal-lsp/package.json +3 -3
  31. package/dist/node_modules/@dalcode/dal-mcp/package.json +5 -5
  32. package/dist/node_modules/@dalcode/dal-mcp/src/index.js +18 -18
  33. package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
  34. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +2 -2
  35. package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
  36. package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +2 -2
  37. package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
  38. package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
  39. package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
  40. package/dist/node_modules/@dalcode/dal-router/package.json +4 -4
  41. package/dist/node_modules/@dalcode/dal-router/src/index.js +4 -4
  42. package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
  43. package/dist/node_modules/@dalcode/dal-skills/src/catalog.js +2 -2
  44. package/dist/node_modules/@dalcode/dal-skills/src/index.js +10 -10
  45. package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
  46. package/dist/node_modules/@dalcode/dal-subagent/src/index.js +14 -16
  47. package/dist/node_modules/@dalcode/dal-telemetry/package.json +2 -2
  48. package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
  49. package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
  50. package/dist/node_modules/@dalcode/dal-tool-catalog/src/groups.js +1 -1
  51. package/dist/node_modules/@dalcode/dal-tool-catalog/src/index.js +4 -5
  52. package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
  53. package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
  54. package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
  55. package/dist/node_modules/@dalcode/deepailab/src/index.js +3 -3
  56. package/dist/node_modules/@dalcode/deepailab/src/model-defaults.js +1 -1
  57. package/dist/node_modules/@earendil-works/chord/package.json +1 -1
  58. package/dist/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
  59. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +2 -1
  60. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  61. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  62. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  63. package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +1 -0
  64. package/dist/node_modules/@earendil-works/pi-ai/package.json +2 -2
  65. package/dist/node_modules/@earendil-works/pi-client/package.json +3 -3
  66. package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
  67. package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  68. package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
  69. package/dist/node_modules/@earendil-works/pi-protocol/package.json +2 -2
  70. package/dist/node_modules/@earendil-works/pi-server/package.json +3 -3
  71. package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  72. package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
  73. package/dist/utils/output-files.js +1 -1
  74. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  75. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  76. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  77. package/examples/extensions/gondolin/package-lock.json +2 -2
  78. package/examples/extensions/gondolin/package.json +1 -1
  79. package/examples/extensions/sandbox/package-lock.json +2 -2
  80. package/examples/extensions/sandbox/package.json +1 -1
  81. package/examples/extensions/with-deps/package-lock.json +2 -2
  82. package/examples/extensions/with-deps/package.json +1 -1
  83. package/npm-shrinkwrap.json +2 -2
  84. 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.35",
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.35",
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.35",
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.35",
44
+ "@earendil-works/pi-protocol": "^1.0.35"
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.35",
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.35",
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.35",
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.35",
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.35",
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.35",
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.35",
43
+ "@earendil-works/pi-protocol": "^1.0.35"
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.35",
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.35",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.33",
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.35",
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.35",
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.35",
4
4
  "description": "DAL Code terminal",
5
5
  "type": "module",
6
6
  "piConfig": {