@aexhq/sdk 0.37.4 → 0.38.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/docs/testing.md CHANGED
@@ -31,5 +31,5 @@ that artifact. CI or release validation can pin an explicit artifact with
31
31
  exactly one of `AEX_USER_TEST_TARBALL` or `AEX_USER_TEST_VERSION`.
32
32
 
33
33
  Live user tests run against a hosted aex API and fail loudly when required env
34
- is missing: `AEX_API_URL`, `AEX_API_TOKEN`, `ANTHROPIC_API_KEY`, and
34
+ is missing: `AEX_API_URL`, `AEX_API_KEY`, `ANTHROPIC_API_KEY`, and
35
35
  `DEEPSEEK_API_KEY`.
@@ -18,7 +18,7 @@ per-noun "does the frame depict X?" verdict.
18
18
  ```ts
19
19
  import { Aex, Models, Secret, Tools } from "@aexhq/sdk";
20
20
 
21
- const aex = new Aex({ apiToken: process.env.AEX_API_TOKEN! });
21
+ const aex = new Aex({ apiKey: process.env.AEX_API_KEY! });
22
22
 
23
23
  const result = await aex.run({
24
24
  model: Models.CLAUDE_HAIKU_4_5,
package/docs/webhooks.md CHANGED
@@ -17,7 +17,7 @@ pass a callback URL with the submission, and the platform delivers exactly one
17
17
  ```ts
18
18
  import { Aex, Models } from "@aexhq/sdk";
19
19
 
20
- const aex = new Aex(process.env.AEX_API_TOKEN!);
20
+ const aex = new Aex(process.env.AEX_API_KEY!);
21
21
 
22
22
  const session = await aex.openSession({
23
23
  model: Models.CLAUDE_HAIKU_4_5,
@@ -28,7 +28,7 @@ const session = await aex.openSession({
28
28
 
29
29
  ```bash
30
30
  aex run \
31
- --api-token "$AEX_API_TOKEN" \
31
+ --api-key "$AEX_API_KEY" \
32
32
  --anthropic-api-key "$ANTHROPIC_API_KEY" \
33
33
  --model claude-haiku-4-5 \
34
34
  --prompt "Write the report." \
@@ -80,7 +80,7 @@ The signing key is a per-workspace secret. Reveal it (it is created on first
80
80
  use) with either surface:
81
81
 
82
82
  ```bash
83
- aex webhooks secret --api-token "$AEX_API_TOKEN" # prints whsec_...
83
+ aex webhooks secret --api-key "$AEX_API_KEY" # prints whsec_...
84
84
  ```
85
85
 
86
86
  ```ts
@@ -120,7 +120,7 @@ await session.webhooks().redeliver(deliveries[0]!.id);
120
120
  ```
121
121
 
122
122
  ```bash
123
- aex deliveries <session-id> --api-token "$AEX_API_TOKEN"
123
+ aex deliveries <session-id> --api-key "$AEX_API_KEY"
124
124
  ```
125
125
 
126
126
  Redelivery re-sends the frozen payload with the **same** `webhook-id`, so a
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Run from the repository root after building the workspace package:
8
8
  *
9
- * AEX_API_TOKEN=... DEEPSEEK_API_KEY=... bun packages/sdk/examples/feature-tour.ts
9
+ * AEX_API_KEY=... DEEPSEEK_API_KEY=... bun packages/sdk/examples/feature-tour.ts
10
10
  *
11
11
  * Optional:
12
12
  *
@@ -34,7 +34,7 @@ import {
34
34
  process.on("uncaughtException", handleFatal);
35
35
  process.on("unhandledRejection", handleFatal);
36
36
 
37
- const apiToken = required("AEX_API_TOKEN");
37
+ const apiKey = required("AEX_API_KEY");
38
38
  const deepseekKey = required("DEEPSEEK_API_KEY");
39
39
  const apiUrl = process.env.AEX_API_URL;
40
40
  const demoMcpUrl = process.env.AEX_DEMO_MCP_URL;
@@ -44,7 +44,7 @@ const downloadPath = process.env.AEX_FEATURE_TOUR_DOWNLOAD;
44
44
  const textEncoder = new TextEncoder();
45
45
 
46
46
  const aex = new Aex({
47
- apiToken,
47
+ apiKey,
48
48
  ...(apiUrl ? { baseUrl: apiUrl } : {}),
49
49
  retry: {
50
50
  maxAttempts: 4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexhq/sdk",
3
- "version": "0.37.4",
3
+ "version": "0.38.1",
4
4
  "description": "TypeScript SDK for running autonomous agent sessions across providers (Anthropic, OpenAI, DeepSeek, Gemini, Mistral) behind one interface.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "test:unit:unlocked": "vitest run test/unit",
36
36
  "test:security": "bun ../../scripts/with-generated-dist-lock.mjs bun run test:security:unlocked",
37
37
  "test:security:unlocked": "vitest run test/security",
38
- "test:property": "vitest run --passWithNoTests property",
38
+ "test:property": "vitest run property",
39
39
  "test:coverage": "vitest run --coverage test/unit",
40
40
  "prepack": "bun run build",
41
41
  "pack:dry-run": "bun ../../scripts/with-generated-dist-lock.mjs bun pm pack --dry-run --ignore-scripts"