@aexhq/sdk 0.64.1 → 0.65.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
@@ -6,24 +6,24 @@ URL and an Aex API key.
6
6
  ```ts
7
7
  import { Aex } from "@aexhq/sdk";
8
8
  import { awsMicroVm } from "@aexhq/env-aws-microvm";
9
- import { pi } from "@aexhq/loop-pi";
9
+ import { pi } from "@aexhq/brain-pi";
10
10
  import { bash, read } from "@aexhq/tools";
11
11
 
12
12
  const aex = new Aex({ apiKey: process.env.AEX_API_KEY! });
13
13
  const workspace = awsMicroVm({ region: "eu-west-2" });
14
- const session = await aex.createSession({
14
+ const session = await aex.sessions.create({
15
15
  model: {
16
16
  provider: "vercel-ai-gateway",
17
17
  name: "openai/gpt-5-mini",
18
18
  apiKey: process.env.VERCEL_AI_GATEWAY_API_KEY!,
19
19
  },
20
- agentLoop: pi(),
21
- tools: [read().runIn(workspace), bash().runIn(workspace)],
20
+ brain: pi(),
21
+ tools: [read().useIn(workspace), bash().useIn(workspace)],
22
22
  });
23
23
 
24
24
  await session.send("Inspect the workspace.");
25
25
  for await (const event of session.events()) console.log(event);
26
26
  ```
27
27
 
28
- Aex supplies hosted authentication and policy. Agentloop admission, Tool placement, Environment
29
- requirements, operation keys, and event cursors are handled by the shared Brain SDK.
28
+ Aex supplies hosted authentication and policy. Brain admission, Tool placement, Environment
29
+ attachments, operation keys, and event cursors are handled by the shared Brain SDK.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Brain, type BrainOptions } from "@aexhq/brain";
2
2
  export { BrainError as AexError } from "@aexhq/brain";
3
- export type { AgentLoop, BoundTool, CreateSessionOptions, Environment, EnvironmentLifecycle, OperationOptions, SessionEvent, SessionState, Tool, ToolBindingOptions, ToolDefinition, VercelAiGatewayModel, } from "@aexhq/brain";
3
+ export type { BrainExtension, BoundTool, CreateSessionOptions, Environment, OperationOptions, SessionEvent, SessionState, Tool, ToolDefinition, VercelAiGatewayModel, } from "@aexhq/brain";
4
4
  export interface AexOptions {
5
5
  apiKey: string;
6
6
  baseUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/sdk",
3
- "version": "0.64.1",
3
+ "version": "0.65.1",
4
4
  "description": "TypeScript SDK for Aex sessions",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://aex.dev",
@@ -34,7 +34,7 @@
34
34
  "test": "tsc -p tsconfig.json && node --test"
35
35
  },
36
36
  "dependencies": {
37
- "@aexhq/brain": "0.7.2"
37
+ "@aexhq/brain": "0.8.4"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "^5.9.2"