@aexhq/tool-glob 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 ADDED
@@ -0,0 +1,18 @@
1
+ # @aexhq/tool-glob
2
+
3
+ List Environment workspace paths matching a glob pattern.
4
+
5
+ ```js
6
+ import { environment } from "@aexhq/brain";
7
+ import { glob } from "@aexhq/tool-glob";
8
+
9
+ const workspace = environment({ url: () => process.env.ENVIRONMENT_URL })({ name: "workspace" });
10
+ const tools = [glob({ env: workspace })];
11
+ ```
12
+
13
+ Requires a readable workspace. The chosen Environment prepares and executes the
14
+ packaged Node 22 runtime in `dist/runtime/glob.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-glob` from the repository root.
@@ -0,0 +1,9 @@
1
+ export declare const glob: (placement: {
2
+ readonly env: import("@aexhq/brain").Environment;
3
+ } & Record<never, never>) => import("@aexhq/brain").PlacedTool<{
4
+ pattern: string;
5
+ limit?: number | undefined;
6
+ }, {
7
+ paths: string[];
8
+ truncated: boolean;
9
+ }>;
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 glob = tool({
4
+ name: "glob",
5
+ description: "List Environment workspace paths matching a glob pattern.",
6
+ input: inputSchema,
7
+ output: outputSchema,
8
+ implementation: Object.freeze({ type: "aex_official_tool", version: 1, name: "glob" }),
9
+ });