@aexhq/tool-bash 8.1.2 → 8.1.4

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
  Run a Bash command in the session Environment workspace.
4
4
 
5
- ```js
6
- import { environment } from "@aexhq/brain";
5
+ Requires Node.js 22 or newer, Bash and 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 { bash } from "@aexhq/tool-bash";
8
10
 
9
- const workspace = environment({ url: () => process.env.ENVIRONMENT_URL })({ name: "workspace" });
10
- const tools = [bash({ env: workspace })];
11
+ const tools = [bash()];
11
12
  ```
12
13
 
13
- Requires bash and 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-bash` from the repository root.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import { bindTool } from "@aexhq/brain";
2
- export const bash = bindTool({"definition":{"name":"bash","description":"Run a Bash command in the session Environment workspace.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"command":{"type":"string","minLength":1}},"required":["command"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exit_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stdout":{"type":"string"},"stderr":{"type":"string"}},"required":["exit_code","stdout","stderr"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-bash","version":"8.1.2","entry":"./runtime","export":"bash"}, { url: new URL("./packages/tool-bash/src/index.js", import.meta.url), export: "bash" });
2
+ export const bash = bindTool({"definition":{"name":"bash","description":"Run a Bash command in the session Environment workspace.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"command":{"type":"string","minLength":1}},"required":["command"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exit_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stdout":{"type":"string"},"stderr":{"type":"string"}},"required":["exit_code","stdout","stderr"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-bash","version":"8.1.4","entry":"./runtime","export":"bash"}, { url: new URL("./packages/tool-bash/src/index.js", import.meta.url), export: "bash" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/tool-bash",
3
- "version": "8.1.2",
3
+ "version": "8.1.4",
4
4
  "description": "Run a Bash command in the session Environment workspace.",
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.35.1",
43
43
  "zod": "4.4.3"
44
44
  },
45
45
  "devDependencies": {