@alienplatform/ai-gateway 3.3.64 → 3.3.66
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/dist/gateway.js +4 -4
- package/package.json +8 -8
package/dist/gateway.js
CHANGED
|
@@ -36,13 +36,13 @@ async function parseAiBinding(name) {
|
|
|
36
36
|
try {
|
|
37
37
|
parsed = JSON.parse(raw);
|
|
38
38
|
} catch (cause) {
|
|
39
|
-
throw (await AlienError.from(cause)).withContext(InvalidBindingConfigError.create({ message: `AI binding '${name}' is not valid JSON` }));
|
|
39
|
+
throw (await AlienError.from(cause)).withContext(InvalidBindingConfigError$1.create({ message: `AI binding '${name}' is not valid JSON` }));
|
|
40
40
|
}
|
|
41
41
|
const service = parsed !== null && typeof parsed === "object" ? parsed.service : void 0;
|
|
42
|
-
if (typeof service !== "string") throw new AlienError(InvalidBindingConfigError.create({ message: `AI binding '${name}' has no 'service' tag` }));
|
|
42
|
+
if (typeof service !== "string") throw new AlienError(InvalidBindingConfigError$1.create({ message: `AI binding '${name}' has no 'service' tag` }));
|
|
43
43
|
if (service !== "external-ai") return parsed;
|
|
44
44
|
const result = externalAiBindingSchema.safeParse(parsed);
|
|
45
|
-
if (!result.success) throw (await AlienError.from(result.error)).withContext(InvalidBindingConfigError.create({ message: `AI binding '${name}' has an unexpected shape` }));
|
|
45
|
+
if (!result.success) throw (await AlienError.from(result.error)).withContext(InvalidBindingConfigError$1.create({ message: `AI binding '${name}' has an unexpected shape` }));
|
|
46
46
|
return result.data;
|
|
47
47
|
}
|
|
48
48
|
// src/errors.ts
|
|
@@ -741,4 +741,4 @@ function keepChildAlive(child, onGatewayLost) {
|
|
|
741
741
|
unrefStream(child.stderr);
|
|
742
742
|
child.unref();
|
|
743
743
|
}
|
|
744
|
-
export { createAiClient as a, BindingNotFoundError as c, isExternalAiBinding as d, parseAiBinding as f, Ai as i, InvalidBindingConfigError
|
|
744
|
+
export { createAiClient as a, BindingNotFoundError as c, isExternalAiBinding as d, parseAiBinding as f, Ai as i, InvalidBindingConfigError as l, registerEmbeddedBinary as n, AiTransportError as o, resolveGatewayBinary as r, AiUpstreamError as s, createGateway as t, aiBindingEnvVarName as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/ai-gateway",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"zod": "^4.5.2",
|
|
52
|
-
"@alienplatform/core": "^3.3.
|
|
52
|
+
"@alienplatform/core": "^3.3.66"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"openai": "^4 || ^7.0.0"
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"optionalDependencies": {
|
|
63
|
-
"@alienplatform/ai-gateway-darwin-arm64": "3.3.
|
|
64
|
-
"@alienplatform/ai-gateway-darwin-x64": "3.3.
|
|
65
|
-
"@alienplatform/ai-gateway-linux-x64-gnu": "3.3.
|
|
66
|
-
"@alienplatform/ai-gateway-linux-x64-musl": "3.3.
|
|
67
|
-
"@alienplatform/ai-gateway-linux-arm64-gnu": "3.3.
|
|
68
|
-
"@alienplatform/ai-gateway-linux-arm64-musl": "3.3.
|
|
63
|
+
"@alienplatform/ai-gateway-darwin-arm64": "3.3.66",
|
|
64
|
+
"@alienplatform/ai-gateway-darwin-x64": "3.3.66",
|
|
65
|
+
"@alienplatform/ai-gateway-linux-x64-gnu": "3.3.66",
|
|
66
|
+
"@alienplatform/ai-gateway-linux-x64-musl": "3.3.66",
|
|
67
|
+
"@alienplatform/ai-gateway-linux-arm64-gnu": "3.3.66",
|
|
68
|
+
"@alienplatform/ai-gateway-linux-arm64-musl": "3.3.66"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown && tsc -p tsconfig.build.json --emitDeclarationOnly",
|