@alienplatform/ai-gateway 3.3.11 → 3.3.13
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.d.ts.map +1 -1
- package/dist/gateway.js +2 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/native.d.ts +3 -3
- package/dist/native.d.ts.map +1 -1
- package/package.json +14 -14
package/dist/gateway.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../src/gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,
|
|
1
|
+
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../src/gateway.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAOrE,MAAM,WAAW,OAAO;IACtB,cAAc,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAA;CAC9C;AAED,wBAAgB,aAAa,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAqB3E"}
|
package/dist/gateway.js
CHANGED
|
@@ -541,7 +541,8 @@ async function extractEmbedded(virtualPath) {
|
|
|
541
541
|
}));
|
|
542
542
|
try {
|
|
543
543
|
const bytes = await bun.file(virtualPath).arrayBuffer();
|
|
544
|
-
const
|
|
544
|
+
const dir = mkdtempSync(join(tmpdir(), "alien-ai-gateway-"));
|
|
545
|
+
const exe = join(dir, BINARY_NAME);
|
|
545
546
|
writeFileSync(exe, Buffer.from(bytes));
|
|
546
547
|
chmodSync(exe, 493);
|
|
547
548
|
return exe;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export declare const startAiGateway: () => Promise<import("./loader.js").RawAiGa
|
|
|
22
22
|
export declare const ai: (name: string) => import("./client.js").Ai;
|
|
23
23
|
/** Resolve an AI binding to `{ baseURL, apiKey? }`, starting the gateway for ambient bindings. */
|
|
24
24
|
export declare const getAiConnection: (name: string) => Promise<import("./client.js").AiConnection>;
|
|
25
|
-
export { Ai } from "./client.js";
|
|
26
|
-
export type { AiConnection, AiModel, ChatCompletionCreateParams, ResponseCreateParams, } from "./client.js";
|
|
27
|
-
export { aiBindingEnvVarName, isExternalAiBinding, parseAiBinding } from "./binding.js";
|
|
28
25
|
export type { AiBinding, AmbientAiBinding, ExternalAiBinding } from "./binding.js";
|
|
26
|
+
export { aiBindingEnvVarName, isExternalAiBinding, parseAiBinding } from "./binding.js";
|
|
27
|
+
export type { AiConnection, AiModel, ChatCompletionCreateParams, ResponseCreateParams, } from "./client.js";
|
|
28
|
+
export { Ai } from "./client.js";
|
|
29
29
|
export { AiTransportError, AiUpstreamError, BindingNotFoundError, InvalidBindingConfigError, } from "./errors.js";
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AASH,kFAAkF;AAClF,eAAO,MAAM,cAAc,yDAAyB,CAAA;AACpD,0FAA0F;AAC1F,eAAO,MAAM,EAAE,4CAAY,CAAA;AAC3B,kGAAkG;AAClG,eAAO,MAAM,eAAe,+DAAyB,CAAA;AAErD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AASH,kFAAkF;AAClF,eAAO,MAAM,cAAc,yDAAyB,CAAA;AACpD,0FAA0F;AAC1F,eAAO,MAAM,EAAE,4CAAY,CAAA;AAC3B,kGAAkG;AAClG,eAAO,MAAM,eAAe,+DAAyB,CAAA;AAErD,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAClF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACvF,YAAY,EACV,YAAY,EACZ,OAAO,EACP,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,aAAa,CAAA"}
|
package/dist/native.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export declare function installEmbeddedGateway(): void;
|
|
|
22
22
|
export declare const startAiGateway: () => Promise<import("./loader.js").RawAiGatewayHandle>;
|
|
23
23
|
export declare const ai: (name: string) => import("./client.js").Ai;
|
|
24
24
|
export declare const getAiConnection: (name: string) => Promise<import("./client.js").AiConnection>;
|
|
25
|
-
export { Ai } from "./client.js";
|
|
26
|
-
export type { AiConnection, AiModel, ChatCompletionCreateParams, ResponseCreateParams, } from "./client.js";
|
|
27
|
-
export { aiBindingEnvVarName, isExternalAiBinding, parseAiBinding } from "./binding.js";
|
|
28
25
|
export type { AiBinding, AmbientAiBinding, ExternalAiBinding } from "./binding.js";
|
|
26
|
+
export { aiBindingEnvVarName, isExternalAiBinding, parseAiBinding } from "./binding.js";
|
|
27
|
+
export type { AiConnection, AiModel, ChatCompletionCreateParams, ResponseCreateParams, } from "./client.js";
|
|
28
|
+
export { Ai } from "./client.js";
|
|
29
29
|
export { AiTransportError, AiUpstreamError, BindingNotFoundError, InvalidBindingConfigError, } from "./errors.js";
|
|
30
30
|
//# sourceMappingURL=native.d.ts.map
|
package/dist/native.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C;AAKD,eAAO,MAAM,cAAc,yDAAyB,CAAA;AACpD,eAAO,MAAM,EAAE,4CAAY,CAAA;AAC3B,eAAO,MAAM,eAAe,+DAAyB,CAAA;AAErD,
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C;AAKD,eAAO,MAAM,cAAc,yDAAyB,CAAA;AACpD,eAAO,MAAM,EAAE,4CAAY,CAAA;AAC3B,eAAO,MAAM,eAAe,+DAAyB,CAAA;AAErD,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAClF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACvF,YAAY,EACV,YAAY,EACZ,OAAO,EACP,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/ai-gateway",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@biomejs/biome": "^
|
|
42
|
+
"@biomejs/biome": "^2.0.0",
|
|
43
43
|
"@types/node": "^24.0.15",
|
|
44
|
-
"openai": "^
|
|
44
|
+
"openai": "^7.0.0",
|
|
45
45
|
"tsdown": "^0.13.0",
|
|
46
|
-
"typescript": "
|
|
47
|
-
"vitest": "^
|
|
46
|
+
"typescript": "~5.9.0",
|
|
47
|
+
"vitest": "^4.0.0",
|
|
48
48
|
"@alienplatform/typescript-config": "^1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"zod": "4.3
|
|
52
|
-
"@alienplatform/core": "^3.3.
|
|
51
|
+
"zod": "4.4.3",
|
|
52
|
+
"@alienplatform/core": "^3.3.13"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"openai": "^4"
|
|
55
|
+
"openai": "^4 || ^7.0.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"openai": {
|
|
@@ -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.13",
|
|
64
|
+
"@alienplatform/ai-gateway-darwin-x64": "3.3.13",
|
|
65
|
+
"@alienplatform/ai-gateway-linux-x64-gnu": "3.3.13",
|
|
66
|
+
"@alienplatform/ai-gateway-linux-x64-musl": "3.3.13",
|
|
67
|
+
"@alienplatform/ai-gateway-linux-arm64-gnu": "3.3.13",
|
|
68
|
+
"@alienplatform/ai-gateway-linux-arm64-musl": "3.3.13"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown && tsc -p tsconfig.build.json --emitDeclarationOnly",
|