@astrale-domains/ai-gateway 0.2.6 → 0.3.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/CHANGELOG.md +18 -0
- package/dist/schema/index.d.ts +2 -2
- package/dist/schema/index.js +2 -2
- package/dist/schema/{catalog → modules/catalog/core}/claude-opus-5.js +1 -1
- package/dist/schema/{catalog → modules/catalog/core}/gemini-3-5-flash.js +1 -1
- package/dist/schema/{catalog → modules/catalog/core}/gpt-5-6-luna.js +1 -1
- package/dist/schema/{catalog → modules/catalog/core}/gpt-5-6-sol.js +1 -1
- package/dist/schema/{catalog → modules/catalog/core}/gpt-5-6-terra.js +1 -1
- package/dist/schema/{catalog → modules/catalog/core}/kimi-k2-7-code.js +1 -1
- package/dist/schema/modules/catalog/index.d.ts +6 -0
- package/dist/schema/modules/catalog/index.js +6 -0
- package/dist/schema/{model → modules/model/classes}/ai-model-class.d.ts +5 -5
- package/dist/schema/{model → modules/model/classes}/ai-model-class.js +9 -7
- package/dist/schema/{model → modules/model/functions}/invoke-ai-model-anthropic-format-method.js +1 -1
- package/dist/schema/{model → modules/model/functions}/invoke-ai-model-openai-format-method.js +1 -1
- package/dist/schema/{model → modules/model/functions}/invoke-ai-model-passthrough-method.js +1 -1
- package/dist/schema/{model → modules/model/functions}/invoke-ai-model-vercel-format-method.js +1 -1
- package/dist/schema/{model → modules/model/functions}/register-ai-model-method.js +1 -1
- package/dist/schema/modules/model/index.d.ts +3 -0
- package/dist/schema/modules/model/index.js +3 -0
- package/dist/schema/schema.d.ts +2 -2
- package/dist/schema/schema.js +2 -2
- package/package.json +7 -7
- package/dist/schema/catalog/index.d.ts +0 -6
- package/dist/schema/catalog/index.js +0 -6
- package/dist/schema/model/index.d.ts +0 -3
- package/dist/schema/model/index.js +0 -3
- /package/dist/schema/{catalog → modules/catalog/core}/claude-opus-5.d.ts +0 -0
- /package/dist/schema/{catalog → modules/catalog/core}/gemini-3-5-flash.d.ts +0 -0
- /package/dist/schema/{catalog → modules/catalog/core}/gpt-5-6-luna.d.ts +0 -0
- /package/dist/schema/{catalog → modules/catalog/core}/gpt-5-6-sol.d.ts +0 -0
- /package/dist/schema/{catalog → modules/catalog/core}/gpt-5-6-terra.d.ts +0 -0
- /package/dist/schema/{catalog → modules/catalog/core}/kimi-k2-7-code.d.ts +0 -0
- /package/dist/schema/{model → modules/model/types}/ai-model-input.d.ts +0 -0
- /package/dist/schema/{model → modules/model/types}/ai-model-input.js +0 -0
- /package/dist/schema/{model → modules/model/types}/ai-model-properties.d.ts +0 -0
- /package/dist/schema/{model → modules/model/types}/ai-model-properties.js +0 -0
- /package/dist/schema/{model → modules/model/types}/ai-model-request-body.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.1](https://github.com/astrale-os/domains/compare/ai-gateway-v0.3.0...ai-gateway-v0.3.1) (2026-09-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **schema:** declare required node class icons ([#160](https://github.com/astrale-os/domains/issues/160)) ([5424171](https://github.com/astrale-os/domains/commit/5424171a7a6131bb8cf4c983b1866fc6bbefb73e))
|
|
9
|
+
|
|
10
|
+
## [0.3.0](https://github.com/astrale-os/domains/compare/ai-gateway-v0.2.6...ai-gateway-v0.3.0) (2026-09-01)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* adopt unified Domain functions layer ([#144](https://github.com/astrale-os/domains/issues/144))
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* adopt unified Domain functions layer ([#144](https://github.com/astrale-os/domains/issues/144)) ([47879e1](https://github.com/astrale-os/domains/commit/47879e1401fc63dbe4dcfc2c6dcc23262b6baf7c))
|
|
20
|
+
|
|
3
21
|
## [0.2.6](https://github.com/astrale-os/domains/compare/ai-gateway-v0.2.5...ai-gateway-v0.2.6) (2026-08-30)
|
|
4
22
|
|
|
5
23
|
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { schema } from './schema.js';
|
|
2
2
|
export type { AIGatewayDomain, AIGatewaySchema } from './schema.js';
|
|
3
|
-
export { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './catalog/index.js';
|
|
4
|
-
export { AIModel } from './model/index.js';
|
|
3
|
+
export { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './modules/catalog/index.js';
|
|
4
|
+
export { AIModel } from './modules/model/index.js';
|
package/dist/schema/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { schema } from './schema.js';
|
|
2
|
-
export { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './catalog/index.js';
|
|
3
|
-
export { AIModel } from './model/index.js';
|
|
2
|
+
export { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './modules/catalog/index.js';
|
|
3
|
+
export { AIModel } from './modules/model/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { AIModel } from '
|
|
2
|
+
import { AIModel } from '../../model/index.js';
|
|
3
3
|
export const claudeOpus5 = core.node(AIModel, {
|
|
4
4
|
name: 'Claude Opus 5',
|
|
5
5
|
description: 'Claude Opus 5 hosted on Azure for advanced reasoning and agentic work.',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { AIModel } from '
|
|
2
|
+
import { AIModel } from '../../model/index.js';
|
|
3
3
|
export const gemini35Flash = core.node(AIModel, {
|
|
4
4
|
name: 'Gemini 3.5 Flash',
|
|
5
5
|
description: 'Google Gemini 3.5 Flash through Cloudflare AI Gateway.',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { AIModel } from '
|
|
2
|
+
import { AIModel } from '../../model/index.js';
|
|
3
3
|
export const gpt56Luna = core.node(AIModel, {
|
|
4
4
|
name: 'GPT-5.6 Luna',
|
|
5
5
|
description: 'Cost-efficient GPT-5.6 model for high-volume workloads, deployed on Azure.',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { AIModel } from '
|
|
2
|
+
import { AIModel } from '../../model/index.js';
|
|
3
3
|
export const gpt56Sol = core.node(AIModel, {
|
|
4
4
|
name: 'GPT-5.6 Sol',
|
|
5
5
|
description: 'Frontier GPT-5.6 model for complex professional work, deployed on Azure.',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { AIModel } from '
|
|
2
|
+
import { AIModel } from '../../model/index.js';
|
|
3
3
|
export const gpt56Terra = core.node(AIModel, {
|
|
4
4
|
name: 'GPT-5.6 Terra',
|
|
5
5
|
description: 'Balanced GPT-5.6 model for intelligence and cost, deployed on Azure.',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { AIModel } from '
|
|
2
|
+
import { AIModel } from '../../model/index.js';
|
|
3
3
|
export const kimiK27Code = core.node(AIModel, {
|
|
4
4
|
name: 'Kimi K2.7 Code',
|
|
5
5
|
description: 'Moonshot Kimi K2.7 Code on Cloudflare Workers AI.',
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { claudeOpus5 } from './core/claude-opus-5.js';
|
|
2
|
+
export { gemini35Flash } from './core/gemini-3-5-flash.js';
|
|
3
|
+
export { gpt56Luna } from './core/gpt-5-6-luna.js';
|
|
4
|
+
export { gpt56Sol } from './core/gpt-5-6-sol.js';
|
|
5
|
+
export { gpt56Terra } from './core/gpt-5-6-terra.js';
|
|
6
|
+
export { kimiK27Code } from './core/kimi-k2-7-code.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { claudeOpus5 } from './core/claude-opus-5.js';
|
|
2
|
+
export { gemini35Flash } from './core/gemini-3-5-flash.js';
|
|
3
|
+
export { gpt56Luna } from './core/gpt-5-6-luna.js';
|
|
4
|
+
export { gpt56Sol } from './core/gpt-5-6-sol.js';
|
|
5
|
+
export { gpt56Terra } from './core/gpt-5-6-terra.js';
|
|
6
|
+
export { kimiK27Code } from './core/kimi-k2-7-code.js';
|
|
@@ -192,6 +192,10 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
192
192
|
readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
|
|
193
193
|
});
|
|
194
194
|
readonly effectiveInstanceMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
195
|
+
body: string;
|
|
196
|
+
}, {
|
|
197
|
+
readonly mode: 'binary';
|
|
198
|
+
}, "authorized", false, "default">>, "invokeVercelFormat", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
195
199
|
path: string;
|
|
196
200
|
body: string;
|
|
197
201
|
headers?: Record<string, string> | undefined;
|
|
@@ -206,11 +210,7 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
206
210
|
body: string;
|
|
207
211
|
}, {
|
|
208
212
|
readonly mode: 'binary';
|
|
209
|
-
}, "authorized", false, "default">>, "invokeAnthropicFormat", "self"
|
|
210
|
-
body: string;
|
|
211
|
-
}, {
|
|
212
|
-
readonly mode: 'binary';
|
|
213
|
-
}, "authorized", false, "default">>, "invokeVercelFormat", "self">;
|
|
213
|
+
}, "authorized", false, "default">>, "invokeAnthropicFormat", "self">;
|
|
214
214
|
readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
215
215
|
name: string;
|
|
216
216
|
description?: string | undefined;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { K, nodeClass } from '@astrale-os/sdk/schema';
|
|
1
|
+
import { classIcon, K, nodeClass } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { BrainCircuit } from '@astrale-os/sdk/schema/icons';
|
|
2
3
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { invokeAIModelAnthropicFormatMethod } from '../functions/invoke-ai-model-anthropic-format-method.js';
|
|
5
|
+
import { invokeAIModelOpenAIFormatMethod } from '../functions/invoke-ai-model-openai-format-method.js';
|
|
6
|
+
import { invokeAIModelPassthroughMethod } from '../functions/invoke-ai-model-passthrough-method.js';
|
|
7
|
+
import { invokeAIModelVercelFormatMethod } from '../functions/invoke-ai-model-vercel-format-method.js';
|
|
8
|
+
import { registerAIModelMethod } from '../functions/register-ai-model-method.js';
|
|
9
|
+
import { aiModelCapabilities, aiModelModality, aiModelProvider, aiModelUpstreamFormat, } from '../types/ai-model-properties.js';
|
|
9
10
|
export const AIModel = nodeClass({
|
|
10
11
|
description: 'One permissioned upstream model exposed through Cloudflare AI Gateway.',
|
|
12
|
+
icon: classIcon.lucide(BrainCircuit),
|
|
11
13
|
extends: [K.classes.Named, K.classes.Descriptable, K.classes.Timestamped],
|
|
12
14
|
properties: {
|
|
13
15
|
modelId: z.string().min(1).max(512),
|
package/dist/schema/{model → modules/model/functions}/invoke-ai-model-anthropic-format-method.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { aiModelRequestBody } from '
|
|
3
|
+
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelAnthropicFormatMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
6
|
input: z.strictObject({ body: aiModelRequestBody }),
|
package/dist/schema/{model → modules/model/functions}/invoke-ai-model-openai-format-method.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { aiModelRequestBody } from '
|
|
3
|
+
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelOpenAIFormatMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
6
|
input: z.strictObject({ body: aiModelRequestBody }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { aiModelRequestBody } from '
|
|
3
|
+
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelPassthroughMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
6
|
input: z.strictObject({
|
package/dist/schema/{model → modules/model/functions}/invoke-ai-model-vercel-format-method.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { aiModelRequestBody } from '
|
|
3
|
+
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelVercelFormatMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
6
|
input: z.strictObject({ body: aiModelRequestBody }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { method } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { aiModelInput, aiModelOutput } from '
|
|
2
|
+
import { aiModelInput, aiModelOutput } from '../types/ai-model-input.js';
|
|
3
3
|
export const registerAIModelMethod = method({
|
|
4
4
|
auth: 'authorized',
|
|
5
5
|
static: true,
|
package/dist/schema/schema.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
202
202
|
body: string;
|
|
203
203
|
}, {
|
|
204
204
|
readonly mode: 'binary';
|
|
205
|
-
}, "authorized", false, "default">>, "
|
|
205
|
+
}, "authorized", false, "default">>, "invokeAnthropicFormat", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
206
206
|
path: string;
|
|
207
207
|
body: string;
|
|
208
208
|
headers?: Record<string, string> | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
217
217
|
body: string;
|
|
218
218
|
}, {
|
|
219
219
|
readonly mode: 'binary';
|
|
220
|
-
}, "authorized", false, "default">>, "
|
|
220
|
+
}, "authorized", false, "default">>, "invokeVercelFormat", "self">;
|
|
221
221
|
readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
222
222
|
name: string;
|
|
223
223
|
description?: string | undefined;
|
package/dist/schema/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KernelSchema, defineSchema, view } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './catalog/index.js';
|
|
3
|
-
import { AIModel } from './model/index.js';
|
|
2
|
+
import { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './modules/catalog/index.js';
|
|
3
|
+
import { AIModel } from './modules/model/index.js';
|
|
4
4
|
export const schema = defineSchema('ai-gateway.astrale.ai', {
|
|
5
5
|
dependencies: { kernel: KernelSchema },
|
|
6
6
|
classes: { AIModel },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/ai-gateway",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/astrale-os/domains.git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"registry": "https://registry.npmjs.org/"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@astrale-os/sdk": "0.5.0-beta.
|
|
31
|
+
"@astrale-os/sdk": "0.5.0-beta.106",
|
|
32
32
|
"zod": "4.4.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"@ai-sdk/azure": "^4.0.46",
|
|
37
37
|
"@ai-sdk/openai": "^4.0.45",
|
|
38
38
|
"@anthropic-ai/sdk": "0.120.0",
|
|
39
|
-
"@astrale-os/adapter-astrale": "0.5.0-beta.
|
|
40
|
-
"@astrale-os/adapter-cloudflare": "0.5.0-beta.
|
|
39
|
+
"@astrale-os/adapter-astrale": "0.5.0-beta.102",
|
|
40
|
+
"@astrale-os/adapter-cloudflare": "0.5.0-beta.109",
|
|
41
41
|
"@astrale-os/ox": ">=0.1.4 <1.0.0",
|
|
42
|
-
"@astrale-os/shell": "0.
|
|
43
|
-
"@astrale-os/shell-react": "0.
|
|
44
|
-
"@astrale-os/ui": "0.3.0-beta.
|
|
42
|
+
"@astrale-os/shell": "0.5.0-beta.13",
|
|
43
|
+
"@astrale-os/shell-react": "0.4.0-beta.13",
|
|
44
|
+
"@astrale-os/ui": "0.3.0-beta.25",
|
|
45
45
|
"@google/generative-ai": "0.24.1",
|
|
46
46
|
"@tailwindcss/vite": "^4.3.3",
|
|
47
47
|
"@tanstack/react-router": "1.170.18",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { claudeOpus5 } from './claude-opus-5.js';
|
|
2
|
-
export { gemini35Flash } from './gemini-3-5-flash.js';
|
|
3
|
-
export { gpt56Luna } from './gpt-5-6-luna.js';
|
|
4
|
-
export { gpt56Sol } from './gpt-5-6-sol.js';
|
|
5
|
-
export { gpt56Terra } from './gpt-5-6-terra.js';
|
|
6
|
-
export { kimiK27Code } from './kimi-k2-7-code.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { claudeOpus5 } from './claude-opus-5.js';
|
|
2
|
-
export { gemini35Flash } from './gemini-3-5-flash.js';
|
|
3
|
-
export { gpt56Luna } from './gpt-5-6-luna.js';
|
|
4
|
-
export { gpt56Sol } from './gpt-5-6-sol.js';
|
|
5
|
-
export { gpt56Terra } from './gpt-5-6-terra.js';
|
|
6
|
-
export { kimiK27Code } from './kimi-k2-7-code.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|