@aexhq/env 0.1.0 → 0.1.1

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
@@ -9,7 +9,7 @@ import { env } from "@aexhq/env";
9
9
  const debug = env({
10
10
  environments: [{ environment: "workspace", permissions: ["read", "call"], methods: ["inspect"] }],
11
11
  });
12
- // Include debug in your session's tools, separately from environmentLifecycle.
12
+ // Include debug in your session's tools; lifecycle defaults to automatic.
13
13
  ```
14
14
 
15
15
  It defaults to your application's host. Place it in a prepared Node Environment to run it
@@ -20,6 +20,6 @@ Use the current `{ name, sequence }` reference returned by `list` or `get`. `get
20
20
  recorded state; `call` invokes a method declared by the Env. There is no universal inspect
21
21
  or restart method. Resources such as tabs and jobs use the Env's own methods and schemas.
22
22
 
23
- Creation requires an application-authorized template and a `create` grant. Setup policy is
24
- explicit session configuration; adding this Tool never changes it. See Brain's
23
+ Creation requires an application-authorized template and a `create` grant. Setup defaults to
24
+ automatic; override it with `environment.lifecycle`. Adding this Tool never changes it. See Brain's
25
25
  [environment control guide](https://aex.dev/brain/docs/guides/environment-control).
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import { bindTool } from "@aexhq/brain";
2
- export const env = bindTool({"definition":{"name":"env","description":"Read or manage authorized Environments. List first for current references, recorded state and supported methods. Get reads cached state; call invokes an Environment-defined method such as inspect or restart. Never assume an uncertain operation did not run.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"type":"string","enum":["list","get","create","update","setup","delete","call"]},"environment":{"type":"object","properties":{"name":{"type":"string","minLength":1},"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","sequence"],"additionalProperties":false},"template":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"configuration":{"$ref":"#/$defs/__schema0"},"method":{"type":"string","minLength":1},"input":{"$ref":"#/$defs/__schema1"}},"required":["operation"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}}}}, {"type":"node_package","package":"@aexhq/env","version":"0.1.0","entry":"./runtime","export":"env"}, { url: new URL("./packages/env/src/index.js", import.meta.url), export: "env" });
2
+ export const env = bindTool({"definition":{"name":"env","description":"Read or manage authorized Environments. List first for current references, recorded state and supported methods. Get reads cached state; call invokes an Environment-defined method such as inspect or restart. Never assume an uncertain operation did not run.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"operation":{"type":"string","enum":["list","get","create","update","setup","delete","call"]},"environment":{"type":"object","properties":{"name":{"type":"string","minLength":1},"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name","sequence"],"additionalProperties":false},"template":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"configuration":{"$ref":"#/$defs/__schema0"},"method":{"type":"string","minLength":1},"input":{"$ref":"#/$defs/__schema1"}},"required":["operation"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}}}}, {"type":"node_package","package":"@aexhq/env","version":"0.1.1","entry":"./runtime","export":"env"}, { url: new URL("./packages/env/src/index.js", import.meta.url), export: "env" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/env",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "An ordinary Brain Tool for scoped Environment control.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "prepack": "npm run build"
40
40
  },
41
41
  "dependencies": {
42
- "@aexhq/brain": "0.32.1",
42
+ "@aexhq/brain": "0.33.0",
43
43
  "zod": "4.4.3"
44
44
  },
45
45
  "brain": {