@aexhq/tool-glob 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
  List Environment workspace paths matching a glob pattern.
4
4
 
5
- ```js
6
- import { environment } from "@aexhq/brain";
5
+ Requires Node.js 22 or newer, a readable 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 { glob } from "@aexhq/tool-glob";
8
10
 
9
- const workspace = environment({ url: () => process.env.ENVIRONMENT_URL })({ name: "workspace" });
10
- const tools = [glob({ env: workspace })];
11
+ const tools = [glob()];
11
12
  ```
12
13
 
13
- Requires a readable 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-glob` from the repository root.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import { bindTool } from "@aexhq/brain";
2
- export const glob = bindTool({"definition":{"name":"glob","description":"List Environment workspace paths matching a glob pattern.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pattern":{"type":"string","minLength":1},"limit":{"default":1000,"type":"integer","exclusiveMinimum":0,"maximum":10000}},"required":["pattern"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"type":"array","items":{"type":"string"}},"truncated":{"type":"boolean"}},"required":["paths","truncated"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-glob","version":"8.1.2","entry":"./runtime","export":"glob"}, { url: new URL("./packages/tool-glob/src/index.js", import.meta.url), export: "glob" });
2
+ export const glob = bindTool({"definition":{"name":"glob","description":"List Environment workspace paths matching a glob pattern.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pattern":{"type":"string","minLength":1},"limit":{"default":1000,"type":"integer","exclusiveMinimum":0,"maximum":10000}},"required":["pattern"]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paths":{"type":"array","items":{"type":"string"}},"truncated":{"type":"boolean"}},"required":["paths","truncated"],"additionalProperties":false}}}, {"type":"node_package","package":"@aexhq/tool-glob","version":"8.1.4","entry":"./runtime","export":"glob"}, { url: new URL("./packages/tool-glob/src/index.js", import.meta.url), export: "glob" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/tool-glob",
3
- "version": "8.1.2",
3
+ "version": "8.1.4",
4
4
  "description": "List Environment workspace paths matching a glob pattern.",
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": {