@aexhq/tool-edit 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
  Replace one exact occurrence of text in an Environment workspace file.
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 { edit } from "@aexhq/tool-edit";
8
10
 
9
- const workspace = environment({ url: () => process.env.ENVIRONMENT_URL })({ name: "workspace" });
10
- const tools = [edit({ env: workspace })];
11
+ const tools = [edit()];
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-edit` from the repository root.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import { bindTool } from "@aexhq/brain";
2
- export const edit = bindTool({"definition":{"name":"edit","description":"Replace one exact occurrence of text in an Environment workspace file.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string","minLength":1},"old_text":{"type":"string","minLength":1},"new_text":{"type":"string"}},"required":["path","old_text","new_text"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string"},"replacements":{"type":"number","const":1}},"required":["path","replacements"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-edit","version":"8.1.2","entry":"./runtime","export":"edit"}, { url: new URL("./packages/tool-edit/src/index.js", import.meta.url), export: "edit" });
2
+ export const edit = bindTool({"definition":{"name":"edit","description":"Replace one exact occurrence of text in an Environment workspace file.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string","minLength":1},"old_text":{"type":"string","minLength":1},"new_text":{"type":"string"}},"required":["path","old_text","new_text"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string"},"replacements":{"type":"number","const":1}},"required":["path","replacements"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-edit","version":"8.1.3","entry":"./runtime","export":"edit"}, { url: new URL("./packages/tool-edit/src/index.js", import.meta.url), export: "edit" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/tool-edit",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "description": "Replace one exact occurrence of text in an Environment workspace file.",
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": {