@aexhq/sdk 0.65.1 → 0.66.0
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 +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ The hosted Aex client uses the neutral Brain composition API with the `https://a
|
|
|
4
4
|
URL and an Aex API key.
|
|
5
5
|
|
|
6
6
|
```ts
|
|
7
|
-
import { Aex } from "@aexhq/sdk";
|
|
7
|
+
import { Aex, brainWasm } from "@aexhq/sdk";
|
|
8
8
|
import { awsMicroVm } from "@aexhq/env-aws-microvm";
|
|
9
|
-
import { pi } from "@aexhq/
|
|
9
|
+
import { pi } from "@aexhq/agentloop-pi";
|
|
10
10
|
import { bash, read } from "@aexhq/tools";
|
|
11
11
|
|
|
12
12
|
const aex = new Aex({ apiKey: process.env.AEX_API_KEY! });
|
|
@@ -17,8 +17,8 @@ const session = await aex.sessions.create({
|
|
|
17
17
|
name: "openai/gpt-5-mini",
|
|
18
18
|
apiKey: process.env.VERCEL_AI_GATEWAY_API_KEY!,
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
tools: [read(
|
|
20
|
+
agentloop: pi({ env: brainWasm() }),
|
|
21
|
+
tools: [read({ env: workspace }), bash({ env: workspace })],
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
await session.send("Inspect the workspace.");
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Brain, type BrainOptions } from "@aexhq/brain";
|
|
2
2
|
export { BrainError as AexError } from "@aexhq/brain";
|
|
3
|
-
export
|
|
3
|
+
export { agentloop, brainWasm, component, environment, tool } from "@aexhq/brain";
|
|
4
|
+
export type { AgentloopBinding, BrainWasmOptions, Component, CreateSessionOptions, CustomProviderModel, Environment, KnownProviderId, KnownProviderModel, ModelContentBlock, ModelMessage, ModelResponse, ModelSelection, ModelStopReason, ModelUsage, OperationOptions, Outcome, ResourceName, Resources, Schema, SchemaInput, SchemaOutput, SessionEvent, SessionState, SessionStreamEvent, SessionTool, ToolBinding, ToolDefinition, VercelAiGatewayModel, } from "@aexhq/brain";
|
|
4
5
|
export interface AexOptions {
|
|
5
6
|
apiKey: string;
|
|
6
7
|
baseUrl?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Brain } from "@aexhq/brain";
|
|
2
2
|
export { BrainError as AexError } from "@aexhq/brain";
|
|
3
|
+
export { agentloop, brainWasm, component, environment, tool } from "@aexhq/brain";
|
|
3
4
|
const DEFAULT_API_URL = "https://api.aex.dev";
|
|
4
5
|
export class Aex extends Brain {
|
|
5
6
|
constructor(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aexhq/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"description": "TypeScript SDK for Aex sessions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://aex.dev",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public",
|
|
18
|
-
"provenance":
|
|
18
|
+
"provenance": false,
|
|
19
19
|
"tag": "next"
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test": "tsc -p tsconfig.json && node --test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aexhq/brain": "0.
|
|
37
|
+
"@aexhq/brain": "0.16.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "^5.9.2"
|