@tangle-network/agent-profile-materialize 0.10.1 → 0.10.2

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 (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1861,12 +1861,16 @@ function materializeExecutionControls(h, tools, permissions, modes, plan, add, u
1861
1861
  }
1862
1862
  function piExecutionControlExtensionSource(enabledTools, excludedTools) {
1863
1863
  return [
1864
+ 'import { writeSync } from "node:fs";',
1864
1865
  `const enabledTools = Object.freeze(${JSON.stringify(enabledTools)});`,
1865
1866
  `const excludedTools = Object.freeze(${JSON.stringify(excludedTools)});`,
1866
1867
  "",
1867
1868
  "function failProfile(message) {",
1868
- ' process.stderr.write("Pi profile execution controls failed: " + message + "\\n");',
1869
- " process.exit(78);",
1869
+ " try {",
1870
+ ' writeSync(2, "Pi profile execution controls failed: " + message + "\\n");',
1871
+ " } finally {",
1872
+ " process.exit(78);",
1873
+ " }",
1870
1874
  "}",
1871
1875
  "",
1872
1876
  "function resolveTool(reference, available, required) {",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-profile-materialize",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Materialize an AgentProfile into the native per-harness workspace files (the one shared materializer for cli-bridge, agent-dev-container, and VB).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,13 +20,13 @@
20
20
  "dist"
21
21
  ],
22
22
  "devDependencies": {
23
- "@tangle-network/agent-interface": "0.38.0",
23
+ "@tangle-network/agent-interface": "0.43.0",
24
24
  "@types/node": "25.6.0",
25
25
  "typescript": "^6.0.3",
26
26
  "vitest": "^4.1.10"
27
27
  },
28
28
  "peerDependencies": {
29
- "@tangle-network/agent-interface": ">=0.38.0 <0.43.0"
29
+ "@tangle-network/agent-interface": ">=0.38.0 <0.44.0"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsc -p tsconfig.json",