@aexhq/tool-write 8.1.2 → 8.1.3

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/README.md CHANGED
@@ -2,16 +2,18 @@
2
2
 
3
3
  Write UTF-8 text to a file in the Environment workspace, creating parent directories.
4
4
 
5
- ```js
6
- import { environment } from "@aexhq/brain";
5
+ Requires Node.js 22 or newer, a writable working directory, and the [Brain client setup](https://aex.dev/brain/docs/quickstart).
6
+ Add this tool when creating the session:
7
+
8
+ ```ts
7
9
  import { write } from "@aexhq/tool-write";
8
10
 
9
- const workspace = environment({ url: () => process.env.ENVIRONMENT_URL })({ name: "workspace" });
10
- const tools = [write({ env: workspace })];
11
+ const tools = [write()];
11
12
  ```
12
13
 
13
- Requires a writable workspace. The chosen Environment prepares and executes the
14
- exact published package through its `./runtime` export. The Environment owns isolation and resource grants.
15
- Omit `env` to run in the registering Node application; pass `{ env: workspace }` for an isolated prepared Environment. The factory accepts no configuration options.
14
+ By default it runs in your Node application and resolves paths from that process's working
15
+ directory. Keep the application connected while the agent uses it. For an isolated Docker
16
+ workspace, follow the [local environment setup](../env-local/README.md) and pass
17
+ `{ env: workspace }`. The factory accepts no other configuration options.
16
18
 
17
19
  Run `npm test --workspace @aexhq/tool-write` from the repository root.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import { bindTool } from "@aexhq/brain";
2
- export const write = bindTool({"definition":{"name":"write","description":"Write UTF-8 text to a file in the Environment workspace, creating parent directories.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string","minLength":1},"content":{"type":"string"}},"required":["path","content"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string"},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["path","bytes"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-write","version":"8.1.2","entry":"./runtime","export":"write"}, { url: new URL("./packages/tool-write/src/index.js", import.meta.url), export: "write" });
2
+ export const write = bindTool({"definition":{"name":"write","description":"Write UTF-8 text to a file in the Environment workspace, creating parent directories.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string","minLength":1},"content":{"type":"string"}},"required":["path","content"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string"},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["path","bytes"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-write","version":"8.1.3","entry":"./runtime","export":"write"}, { url: new URL("./packages/tool-write/src/index.js", import.meta.url), export: "write" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/tool-write",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "description": "Write UTF-8 text to a file in the Environment workspace, creating parent directories.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://aex.dev",
@@ -39,7 +39,7 @@
39
39
  "prepack": "npm run build"
40
40
  },
41
41
  "dependencies": {
42
- "@aexhq/brain": "0.34.0",
42
+ "@aexhq/brain": "0.34.1",
43
43
  "zod": "4.4.3"
44
44
  },
45
45
  "devDependencies": {