@alexkroman1/aai 1.4.0 → 1.4.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @alexkroman1/aai@1.4.0 build /home/runner/work/agent/agent/packages/aai
2
+ > @alexkroman1/aai@1.4.1 build /home/runner/work/agent/agent/packages/aai
3
3
  > tsdown && tsc -p tsconfig.build.json
4
4
 
5
5
  ℹ tsdown v0.21.7 powered by rolldown v1.0.0-rc.12
@@ -8,7 +8,7 @@
8
8
  ℹ target: node22
9
9
  ℹ tsconfig: tsconfig.json
10
10
  ℹ Build start
11
- ℹ dist/host/runtime-barrel.js 74.18 kB │ gzip: 22.09 kB
11
+ ℹ dist/host/runtime-barrel.js 74.24 kB │ gzip: 22.11 kB
12
12
  ℹ dist/sdk/protocol.js  4.75 kB │ gzip: 1.76 kB
13
13
  ℹ dist/index.js  2.88 kB │ gzip: 1.24 kB
14
14
  ℹ dist/sdk/manifest-barrel.js  0.36 kB │ gzip: 0.20 kB
@@ -22,5 +22,5 @@
22
22
  ℹ dist/assemblyai-Cxg9eobY.js  0.53 kB │ gzip: 0.35 kB
23
23
  ℹ dist/anthropic-BrUCPKUc.js  0.23 kB │ gzip: 0.18 kB
24
24
  ℹ dist/cartesia-DwDk2tEu.js  0.22 kB │ gzip: 0.17 kB
25
- ℹ 14 files, total: 99.00 kB
26
- ✔ Build complete in 39ms
25
+ ℹ 14 files, total: 99.06 kB
26
+ ✔ Build complete in 45ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @alexkroman1/aai
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 63de397: Pass explicit baseURL to createAnthropic so the SDK's loadOptionalSetting returns before reading process.env['ANTHROPIC_BASE_URL']. The Deno platform server runs without --allow-env, and the missing baseURL caused pipeline-mode sessions to crash on first use.
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  ## 1.3.2
@@ -1216,7 +1216,10 @@ function resolveLlm(descriptor, env) {
1216
1216
  const options = descriptor.options;
1217
1217
  const apiKey = resolveApiKey("ANTHROPIC_API_KEY", env);
1218
1218
  if (!apiKey) throw new Error("Anthropic LLM: missing API key. Set ANTHROPIC_API_KEY in the agent env.");
1219
- return createAnthropic({ apiKey })(options.model);
1219
+ return createAnthropic({
1220
+ apiKey,
1221
+ baseURL: "https://api.anthropic.com/v1"
1222
+ })(options.model);
1220
1223
  }
1221
1224
  default: throw new Error(`Unknown LLM provider kind: "${descriptor.kind}". Supported: ${ANTHROPIC_KIND}.`);
1222
1225
  }
@@ -77,7 +77,10 @@ export function resolveLlm(descriptor: LlmProvider, env: Record<string, string>)
77
77
  if (!apiKey) {
78
78
  throw new Error("Anthropic LLM: missing API key. Set ANTHROPIC_API_KEY in the agent env.");
79
79
  }
80
- return createAnthropic({ apiKey })(options.model);
80
+ // Pass baseURL explicitly so the SDK's loadOptionalSetting returns
81
+ // before reading process.env["ANTHROPIC_BASE_URL"]. Without this,
82
+ // the Deno platform server needs --allow-env to start a session.
83
+ return createAnthropic({ apiKey, baseURL: "https://api.anthropic.com/v1" })(options.model);
81
84
  }
82
85
  default:
83
86
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexkroman1/aai",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {