@aexhq/tool-bash 0.0.0 → 6.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 +18 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/runtime/bash.mjs +14552 -0
- package/dist/runtime/registry.json +51 -0
- package/dist/schema.d.ts +9 -0
- package/dist/schema.js +3 -0
- package/package.json +37 -11
- package/index.js +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @aexhq/tool-bash
|
|
2
|
+
|
|
3
|
+
Run a Bash command in the session Environment workspace.
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import { environment } from "@aexhq/brain";
|
|
7
|
+
import { bash } from "@aexhq/tool-bash";
|
|
8
|
+
|
|
9
|
+
const workspace = environment({ url: () => process.env.ENVIRONMENT_URL })({ name: "workspace" });
|
|
10
|
+
const tools = [bash({ env: workspace })];
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requires bash and a writable workspace. The chosen Environment prepares and executes the
|
|
14
|
+
packaged Node 22 runtime in `dist/runtime/bash.mjs`; `dist/runtime/registry.json`
|
|
15
|
+
contains its manifest and contract digest. The Environment owns isolation and resource grants.
|
|
16
|
+
The factory requires an explicit `env` and accepts no other options.
|
|
17
|
+
|
|
18
|
+
Run `npm test --workspace @aexhq/tool-bash` from the repository root.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { tool } from "@aexhq/brain";
|
|
2
|
+
import { inputSchema, outputSchema } from "./schema.js";
|
|
3
|
+
export const bash = tool({
|
|
4
|
+
name: "bash",
|
|
5
|
+
description: "Run a Bash command in the session Environment workspace.",
|
|
6
|
+
input: inputSchema,
|
|
7
|
+
output: outputSchema,
|
|
8
|
+
implementation: Object.freeze({ type: "aex_official_tool", version: 1, name: "bash" }),
|
|
9
|
+
});
|