@every-app/sdk 0.3.0-rc.3 → 0.3.0-rc.5
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/README.md +1 -1
- package/dist/cloudflare/catalogSettings.generated.d.ts +95 -0
- package/dist/cloudflare/catalogSettings.generated.d.ts.map +1 -0
- package/dist/cloudflare/catalogSettings.generated.js +221 -0
- package/dist/cloudflare/index.d.ts +2 -1
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/index.js +3 -0
- package/dist/cloudflare/sentinel.d.ts +21 -4
- package/dist/cloudflare/sentinel.d.ts.map +1 -1
- package/dist/cloudflare/sentinel.js +8 -4
- package/dist/cloudflare/worker.d.ts +195 -103
- package/dist/cloudflare/worker.d.ts.map +1 -1
- package/dist/cloudflare/worker.js +220 -137
- package/dist/dev/index.d.ts +1 -1
- package/dist/dev/index.d.ts.map +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/dev/keypair.d.ts +2 -0
- package/dist/dev/keypair.d.ts.map +1 -1
- package/dist/dev/keypair.js +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/internal/capabilities.d.ts +1 -1
- package/dist/internal/catalog/index.d.ts +1 -1
- package/dist/internal/catalog/inference.d.ts +1 -1
- package/dist/internal/catalog/inference.js +3 -3
- package/dist/internal/events.d.ts +1 -1
- package/dist/internal/events.d.ts.map +1 -1
- package/dist/internal/events.js +23 -1
- package/dist/internal/gatewaySettings.d.ts +7 -1
- package/dist/internal/gatewaySettings.d.ts.map +1 -1
- package/dist/internal/gatewaySettings.js +12 -1
- package/dist/internal/identity.d.ts +29 -3
- package/dist/internal/identity.d.ts.map +1 -1
- package/dist/internal/identity.js +37 -9
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/members.d.ts +3 -2
- package/dist/internal/members.d.ts.map +1 -1
- package/dist/internal/protocol.d.ts +25 -1
- package/dist/internal/protocol.d.ts.map +1 -1
- package/dist/internal/protocol.js +21 -1
- package/dist/manifest.d.ts +205 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +30 -0
- package/dist/server/ai.d.ts +21 -0
- package/dist/server/ai.d.ts.map +1 -1
- package/dist/server/ai.js +37 -8
- package/dist/server/aiBinding.d.ts +68 -0
- package/dist/server/aiBinding.d.ts.map +1 -0
- package/dist/server/aiBinding.js +294 -0
- package/dist/server/attribution.d.ts +9 -5
- package/dist/server/attribution.d.ts.map +1 -1
- package/dist/server/attribution.js +12 -4
- package/dist/server/context.d.ts +68 -0
- package/dist/server/context.d.ts.map +1 -0
- package/dist/server/context.js +117 -0
- package/dist/server/emailBinding.d.ts +72 -0
- package/dist/server/emailBinding.d.ts.map +1 -0
- package/dist/server/emailBinding.js +124 -0
- package/dist/server/emit.d.ts +1 -1
- package/dist/server/emit.d.ts.map +1 -1
- package/dist/server/emit.js +4 -4
- package/dist/server/env.d.ts +41 -0
- package/dist/server/env.d.ts.map +1 -0
- package/dist/server/env.js +1 -0
- package/dist/server/everyApp.d.ts +27 -7
- package/dist/server/everyApp.d.ts.map +1 -1
- package/dist/server/everyApp.js +106 -5
- package/dist/server/fromMcpTools.d.ts +89 -0
- package/dist/server/fromMcpTools.d.ts.map +1 -0
- package/dist/server/fromMcpTools.js +192 -0
- package/dist/server/gatewayFetch.d.ts +24 -18
- package/dist/server/gatewayFetch.d.ts.map +1 -1
- package/dist/server/gatewayFetch.js +9 -9
- package/dist/server/gatewayUrl.d.ts +13 -0
- package/dist/server/gatewayUrl.d.ts.map +1 -0
- package/dist/server/gatewayUrl.js +34 -0
- package/dist/server/index.d.ts +11 -3
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +9 -2
- package/dist/server/integrationFetch.d.ts +28 -7
- package/dist/server/integrationFetch.d.ts.map +1 -1
- package/dist/server/integrationFetch.js +24 -28
- package/dist/server/listMembers.d.ts +1 -1
- package/dist/server/listMembers.d.ts.map +1 -1
- package/dist/server/listMembers.js +5 -8
- package/dist/server/sendEmail.d.ts +1 -1
- package/dist/server/sendEmail.d.ts.map +1 -1
- package/dist/server/sendEmail.js +4 -4
- package/dist/server/toolsEndpoint.d.ts.map +1 -1
- package/dist/server/toolsEndpoint.js +11 -5
- package/dist/tanstack-start/index.d.ts +9 -0
- package/dist/tanstack-start/index.d.ts.map +1 -0
- package/dist/tanstack-start/index.js +29 -0
- package/dist/testing/index.d.ts +93 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +156 -0
- package/package.json +25 -4
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The manifest an app author writes as `everyapp.config.ts`, typed:
|
|
3
|
+
*
|
|
4
|
+
* import { defineEveryApp } from "@every-app/sdk";
|
|
5
|
+
*
|
|
6
|
+
* export default defineEveryApp({
|
|
7
|
+
* id: "notes",
|
|
8
|
+
* name: "Notes",
|
|
9
|
+
* resources: { d1: ["DB"] },
|
|
10
|
+
* });
|
|
11
|
+
*
|
|
12
|
+
* Types only, and a leaf module: `cloudflare.config.ts` imports the manifest,
|
|
13
|
+
* and the Cloudflare Vite plugin hides from the Worker every file the config
|
|
14
|
+
* imports. The rules beyond the shape (which ids exist, which names are
|
|
15
|
+
* reserved, which scope sets a provider has) are the CLI's: `everyapp deploy`
|
|
16
|
+
* and `everyapp dev` validate the manifest and say what is wrong. The
|
|
17
|
+
* perimeter's schema (`@every-app/perimeter/manifest`) is held to this type
|
|
18
|
+
* by a test there.
|
|
19
|
+
*
|
|
20
|
+
* The Worker reads the manifest back as `env.EVERYAPP_MANIFEST`, which
|
|
21
|
+
* `everyAppWorker()` sets and `cf workers types` types from the file.
|
|
22
|
+
*/
|
|
23
|
+
/** Why a setting is needed and whether the app opens without it (the settings model). */
|
|
24
|
+
export interface EveryAppSettingNeed {
|
|
25
|
+
/** Why the app needs it, for whoever sets it. At most 200 characters. */
|
|
26
|
+
readonly why?: string;
|
|
27
|
+
/** An https page that says where the key or client comes from. */
|
|
28
|
+
readonly docs?: string;
|
|
29
|
+
/** The app opens without it; the feature using it says what is missing. */
|
|
30
|
+
readonly optional?: boolean;
|
|
31
|
+
/** The group of which one member is enough ("AI model"). */
|
|
32
|
+
readonly anyOf?: string;
|
|
33
|
+
}
|
|
34
|
+
/** A route reachable without a signed-in member. */
|
|
35
|
+
export interface EveryAppPublicRoute {
|
|
36
|
+
/** Absolute glob: `*` matches one segment, `**` one or more. */
|
|
37
|
+
readonly path: string;
|
|
38
|
+
/** The methods it answers; `["GET"]` when left out. */
|
|
39
|
+
readonly methods?: readonly string[];
|
|
40
|
+
}
|
|
41
|
+
/** A Durable Object or Workflow class: its binding, the class, and the helper Worker that defines it. */
|
|
42
|
+
export interface EveryAppClassResource {
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly className: string;
|
|
45
|
+
readonly worker?: string;
|
|
46
|
+
}
|
|
47
|
+
/** A Cloudflare Queue's consumer settings. */
|
|
48
|
+
export interface EveryAppQueueConsumer {
|
|
49
|
+
readonly worker?: string;
|
|
50
|
+
readonly maxBatchSize?: number;
|
|
51
|
+
readonly maxBatchTimeout?: number;
|
|
52
|
+
readonly maxRetries?: number;
|
|
53
|
+
readonly maxConcurrency?: number | null;
|
|
54
|
+
readonly retryDelay?: number;
|
|
55
|
+
readonly visibilityTimeoutMs?: number;
|
|
56
|
+
readonly deadLetterQueue?: string;
|
|
57
|
+
}
|
|
58
|
+
/** Cloudflare's limits for one of the app's Workers. */
|
|
59
|
+
export interface EveryAppWorkerLimits {
|
|
60
|
+
/** CPU milliseconds an invocation may use, up to 300000. */
|
|
61
|
+
readonly cpuMs?: number;
|
|
62
|
+
}
|
|
63
|
+
/** The Cloudflare resources the app's Workers bind; the deploy creates them. */
|
|
64
|
+
export interface EveryAppResources {
|
|
65
|
+
readonly d1?: readonly string[];
|
|
66
|
+
readonly kv?: readonly string[];
|
|
67
|
+
readonly r2?: readonly string[];
|
|
68
|
+
readonly durableObjects?: readonly EveryAppClassResource[];
|
|
69
|
+
readonly workflows?: readonly EveryAppClassResource[];
|
|
70
|
+
readonly hyperdrive?: readonly {
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly worker?: string;
|
|
73
|
+
readonly caching?: "off" | "default";
|
|
74
|
+
}[];
|
|
75
|
+
readonly queues?: readonly {
|
|
76
|
+
readonly name: string;
|
|
77
|
+
readonly consumer?: true | EveryAppQueueConsumer;
|
|
78
|
+
}[];
|
|
79
|
+
readonly ai?: readonly string[];
|
|
80
|
+
readonly browser?: readonly string[];
|
|
81
|
+
readonly images?: readonly string[];
|
|
82
|
+
readonly vectorize?: readonly {
|
|
83
|
+
readonly name: string;
|
|
84
|
+
readonly dimensions?: number;
|
|
85
|
+
readonly metric?: "cosine" | "euclidean" | "dot-product";
|
|
86
|
+
/** A Workers AI embedding model's shape, instead of `dimensions` and `metric`. */
|
|
87
|
+
readonly preset?: "@cf/baai/bge-small-en-v1.5" | "@cf/baai/bge-base-en-v1.5" | "@cf/baai/bge-large-en-v1.5" | "openai/text-embedding-ada-002" | "cohere/embed-multilingual-v2.0";
|
|
88
|
+
}[];
|
|
89
|
+
readonly aiGateway?: readonly {
|
|
90
|
+
readonly name: string;
|
|
91
|
+
readonly collectLogs?: boolean;
|
|
92
|
+
readonly cacheTtl?: number;
|
|
93
|
+
}[];
|
|
94
|
+
readonly sendEmail?: readonly {
|
|
95
|
+
readonly name: string;
|
|
96
|
+
readonly allowedSenderAddresses: readonly string[];
|
|
97
|
+
readonly destinationAddress?: string;
|
|
98
|
+
readonly allowedDestinationAddresses?: readonly string[];
|
|
99
|
+
}[];
|
|
100
|
+
readonly secretsStore?: readonly {
|
|
101
|
+
readonly name: string;
|
|
102
|
+
}[];
|
|
103
|
+
readonly analyticsEngine?: readonly {
|
|
104
|
+
readonly name: string;
|
|
105
|
+
readonly dataset?: string;
|
|
106
|
+
}[];
|
|
107
|
+
}
|
|
108
|
+
/** One capability the Gateway serves the app with keys it holds. */
|
|
109
|
+
export interface EveryAppCapabilityEntry extends EveryAppSettingNeed {
|
|
110
|
+
readonly access: "read" | "write";
|
|
111
|
+
/** An OAuth client's scope sets, by name (`["gmail.read"]`). */
|
|
112
|
+
readonly scopes?: readonly string[];
|
|
113
|
+
}
|
|
114
|
+
/** One of the app's own secrets, with its need. */
|
|
115
|
+
export interface EveryAppSecretEntry extends EveryAppSettingNeed {
|
|
116
|
+
readonly name: string;
|
|
117
|
+
/** Its guide in the everyapp skill (`"setup/main-secret.md"`). */
|
|
118
|
+
readonly setup?: string;
|
|
119
|
+
}
|
|
120
|
+
/** `everyapp.config.ts`. */
|
|
121
|
+
export interface EveryAppManifest {
|
|
122
|
+
/** Stable id, kebab-case: the app's hostname and Worker. */
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly name?: string;
|
|
125
|
+
/** The one line the Gateway's app library shows under the name. */
|
|
126
|
+
readonly description?: string;
|
|
127
|
+
/** The path of an SVG the app serves (`"/everyapp-icon.svg"`). */
|
|
128
|
+
readonly icon?: string;
|
|
129
|
+
/** Legacy: the entry comes from `cloudflare.config.ts`. */
|
|
130
|
+
readonly main?: string;
|
|
131
|
+
/** YYYY-MM-DD. */
|
|
132
|
+
readonly compatibilityDate?: string;
|
|
133
|
+
readonly resources?: EveryAppResources;
|
|
134
|
+
/** Helper Workers deployed beside the app's as `<app worker>--<name>`. */
|
|
135
|
+
readonly workers?: readonly {
|
|
136
|
+
readonly name: string;
|
|
137
|
+
readonly binding?: string;
|
|
138
|
+
readonly limits?: EveryAppWorkerLimits;
|
|
139
|
+
}[];
|
|
140
|
+
readonly database?: {
|
|
141
|
+
readonly provider: "d1" | "postgres";
|
|
142
|
+
/** A cloud region such as `"aws:us-east-1"`. */
|
|
143
|
+
readonly region?: string;
|
|
144
|
+
};
|
|
145
|
+
readonly limits?: EveryAppWorkerLimits;
|
|
146
|
+
/** Routes open without a signed-in member. Default: none. */
|
|
147
|
+
readonly public?: readonly EveryAppPublicRoute[];
|
|
148
|
+
/** AI providers the Gateway calls for the app, by id or with their need. */
|
|
149
|
+
readonly providers?: readonly (string | (EveryAppSettingNeed & {
|
|
150
|
+
readonly id: string;
|
|
151
|
+
}))[];
|
|
152
|
+
/** Capabilities by id (`members`, `email`, `dataforseo`, …). */
|
|
153
|
+
readonly capabilities?: {
|
|
154
|
+
readonly [id: string]: EveryAppCapabilityEntry;
|
|
155
|
+
};
|
|
156
|
+
/** The app's own secrets, by name or with their need. */
|
|
157
|
+
readonly secrets?: readonly (string | EveryAppSecretEntry)[];
|
|
158
|
+
/** App-domain scopes personal access tokens may request, with descriptions. */
|
|
159
|
+
readonly scopes?: {
|
|
160
|
+
readonly [scope: string]: string;
|
|
161
|
+
};
|
|
162
|
+
readonly ai?: {
|
|
163
|
+
/** Model ids the app may request; any other is `model_not_allowed`. */
|
|
164
|
+
readonly models?: readonly string[];
|
|
165
|
+
/** OpenAI API paths beyond inference (`"/v1/files"`). */
|
|
166
|
+
readonly routes?: readonly string[];
|
|
167
|
+
/** The app takes the Gateway's default chat model (`ai()`). */
|
|
168
|
+
readonly chat?: boolean | EveryAppSettingNeed;
|
|
169
|
+
};
|
|
170
|
+
/** `inbound: true`: the Worker exports an `email()` handler. */
|
|
171
|
+
readonly email?: {
|
|
172
|
+
readonly inbound?: boolean;
|
|
173
|
+
};
|
|
174
|
+
/** Who can open the app once registered; `"admins"` by default. */
|
|
175
|
+
readonly access?: "everyone" | "admins";
|
|
176
|
+
readonly serverFnGuard?: boolean;
|
|
177
|
+
readonly serverFnBase?: string;
|
|
178
|
+
/** Shell command that builds the app; `cf build` by default. */
|
|
179
|
+
readonly build?: string;
|
|
180
|
+
/** Shell command `everyapp dev` starts; it must listen on PORT. */
|
|
181
|
+
readonly dev?: string;
|
|
182
|
+
/** Legacy: the port comes from PORT. */
|
|
183
|
+
readonly devPort?: number;
|
|
184
|
+
/** Dependency install command; false skips it. */
|
|
185
|
+
readonly install?: false | string;
|
|
186
|
+
readonly migrations?: {
|
|
187
|
+
readonly engine: "drizzle" | "d1-sql" | "prisma";
|
|
188
|
+
readonly dialect?: "sqlite" | "postgresql";
|
|
189
|
+
readonly dir?: string;
|
|
190
|
+
readonly config?: string;
|
|
191
|
+
readonly binding?: string;
|
|
192
|
+
};
|
|
193
|
+
/** Who answers `/mcp` on the app's own host, and why it needs to. */
|
|
194
|
+
readonly mcp?: {
|
|
195
|
+
readonly by: "gateway" | "app";
|
|
196
|
+
readonly why: string;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Type `everyapp.config.ts` without widening it: the literal binding names
|
|
201
|
+
* stay, so `everyAppWorker()` types `env.DB` and `env.EVERYAPP_MANIFEST`
|
|
202
|
+
* from them. Returns the manifest as given.
|
|
203
|
+
*/
|
|
204
|
+
export declare function defineEveryApp<const M extends EveryAppManifest>(manifest: M): M;
|
|
205
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,yFAAyF;AACzF,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,oDAAoD;AACpD,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,yGAAyG;AACzG,MA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
|
+
* The manifest an app author writes as `everyapp.config.ts`, typed:
|
|
3
|
+
*
|
|
4
|
+
* import { defineEveryApp } from "@every-app/sdk";
|
|
5
|
+
*
|
|
6
|
+
* export default defineEveryApp({
|
|
7
|
+
* id: "notes",
|
|
8
|
+
* name: "Notes",
|
|
9
|
+
* resources: { d1: ["DB"] },
|
|
10
|
+
* });
|
|
11
|
+
*
|
|
12
|
+
* Types only, and a leaf module: `cloudflare.config.ts` imports the manifest,
|
|
13
|
+
* and the Cloudflare Vite plugin hides from the Worker every file the config
|
|
14
|
+
* imports. The rules beyond the shape (which ids exist, which names are
|
|
15
|
+
* reserved, which scope sets a provider has) are the CLI's: `everyapp deploy`
|
|
16
|
+
* and `everyapp dev` validate the manifest and say what is wrong. The
|
|
17
|
+
* perimeter's schema (`@every-app/perimeter/manifest`) is held to this type
|
|
18
|
+
* by a test there.
|
|
19
|
+
*
|
|
20
|
+
* The Worker reads the manifest back as `env.EVERYAPP_MANIFEST`, which
|
|
21
|
+
* `everyAppWorker()` sets and `cf workers types` types from the file.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Type `everyapp.config.ts` without widening it: the literal binding names
|
|
25
|
+
* stay, so `everyAppWorker()` types `env.DB` and `env.EVERYAPP_MANIFEST`
|
|
26
|
+
* from them. Returns the manifest as given.
|
|
27
|
+
*/
|
|
28
|
+
export function defineEveryApp(manifest) {
|
|
29
|
+
return manifest;
|
|
30
|
+
}
|
package/dist/server/ai.d.ts
CHANGED
|
@@ -41,5 +41,26 @@ export declare const AI_DEFAULT_BASE_URL = "http://every-app-gateway.internal/ap
|
|
|
41
41
|
* `createGatewayFetch` does (no binding and no dev key) and
|
|
42
42
|
* `AttributionError` where a shared app's call says nobody's.
|
|
43
43
|
*/
|
|
44
|
+
export declare function ai(options: CreateGatewayFetchOptions & {
|
|
45
|
+
optional: true;
|
|
46
|
+
}): AiClient | null;
|
|
44
47
|
export declare function ai(options: CreateGatewayFetchOptions): AiClient;
|
|
48
|
+
/**
|
|
49
|
+
* A provider's root behind the Gateway, `http://every-app-gateway.internal/api/ai/<provider>`:
|
|
50
|
+
* join the provider's own paths onto it (`/api/v1/chat/completions` for
|
|
51
|
+
* OpenRouter) and send them with `createGatewayFetch()`. For an OpenAI
|
|
52
|
+
* client's `baseURL`, use {@link aiBaseUrl}.
|
|
53
|
+
*/
|
|
54
|
+
export declare function providerBaseUrl(provider: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* The OpenAI-compatible base URL of `provider` behind the Gateway, for an
|
|
57
|
+
* OpenAI client's `baseURL` (with `fetch: createGatewayFetch(...)`):
|
|
58
|
+
* `default` (the default) is {@link AI_DEFAULT_BASE_URL},
|
|
59
|
+
* `…/api/ai/default/v1`; a catalog provider's is its root and the prefix
|
|
60
|
+
* of its chat route (`…/api/ai/openrouter/api/v1`, `…/api/ai/workers-ai/v1`,
|
|
61
|
+
* `…/api/ai/openai/v1`). Throws `ConfigurationError` for a provider with
|
|
62
|
+
* no OpenAI-compatible chat route (Cohere): call {@link providerBaseUrl}
|
|
63
|
+
* with its own paths instead.
|
|
64
|
+
*/
|
|
65
|
+
export declare function aiBaseUrl(provider?: string): string;
|
|
45
66
|
//# sourceMappingURL=ai.d.ts.map
|
package/dist/server/ai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/server/ai.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/server/ai.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,gBAAgB,EAIjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,QAAQ;IACvB,0FAA0F;IAC1F,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,gFAAgF;IAChF,KAAK,EAAE,OAAO,gBAAgB,CAAC;IAC/B,qEAAqE;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,+DAA+D;IAC/D,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,wDAAuD,CAAC;AAExF;;;;;GAKG;AACH,wBAAgB,EAAE,CAChB,OAAO,EAAE,yBAAyB,GAAG;IAAE,QAAQ,EAAE,IAAI,CAAA;CAAE,GACtD,QAAQ,GAAG,IAAI,CAAC;AACnB,wBAAgB,EAAE,CAAC,OAAO,EAAE,yBAAyB,GAAG,QAAQ,CAAC;AAejE;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,QAAQ,GAAE,MAA4B,GAAG,MAAM,CAaxE"}
|
package/dist/server/ai.js
CHANGED
|
@@ -19,22 +19,51 @@
|
|
|
19
19
|
* fallback). An app that needs one provider in particular keeps listing it
|
|
20
20
|
* under `providers` and calling `/api/ai/<provider>/…`.
|
|
21
21
|
*/
|
|
22
|
-
import { AI_DEFAULT_MODEL, AI_DEFAULT_PROVIDER } from "../internal/index.js";
|
|
22
|
+
import { AI_DEFAULT_MODEL, AI_DEFAULT_PROVIDER, CATALOG, ConfigurationError, } from "../internal/index.js";
|
|
23
23
|
import { BINDING_ORIGIN, createGatewayFetch, } from "./gatewayFetch.js";
|
|
24
24
|
/** The base URL of the default route, as the SDK and the docs name it. */
|
|
25
25
|
export const AI_DEFAULT_BASE_URL = `${BINDING_ORIGIN}/api/ai/${AI_DEFAULT_PROVIDER}/v1`;
|
|
26
|
-
/**
|
|
27
|
-
* The Gateway's default chat model as a client: a base URL, a fetch and
|
|
28
|
-
* the model name to send. Throws `ConfigurationError` where
|
|
29
|
-
* `createGatewayFetch` does (no binding and no dev key) and
|
|
30
|
-
* `AttributionError` where a shared app's call says nobody's.
|
|
31
|
-
*/
|
|
32
26
|
export function ai(options) {
|
|
27
|
+
const fetch = createGatewayFetch(options);
|
|
28
|
+
if (!fetch)
|
|
29
|
+
return null;
|
|
33
30
|
return {
|
|
34
31
|
baseURL: AI_DEFAULT_BASE_URL,
|
|
35
|
-
fetch
|
|
32
|
+
fetch,
|
|
36
33
|
model: AI_DEFAULT_MODEL,
|
|
37
34
|
chatCompletionsUrl: `${AI_DEFAULT_BASE_URL}/chat/completions`,
|
|
38
35
|
embeddingsUrl: `${AI_DEFAULT_BASE_URL}/embeddings`,
|
|
39
36
|
};
|
|
40
37
|
}
|
|
38
|
+
const CHAT_COMPLETIONS = "/chat/completions";
|
|
39
|
+
/**
|
|
40
|
+
* A provider's root behind the Gateway, `http://every-app-gateway.internal/api/ai/<provider>`:
|
|
41
|
+
* join the provider's own paths onto it (`/api/v1/chat/completions` for
|
|
42
|
+
* OpenRouter) and send them with `createGatewayFetch()`. For an OpenAI
|
|
43
|
+
* client's `baseURL`, use {@link aiBaseUrl}.
|
|
44
|
+
*/
|
|
45
|
+
export function providerBaseUrl(provider) {
|
|
46
|
+
return `${BINDING_ORIGIN}/api/ai/${encodeURIComponent(provider)}`;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The OpenAI-compatible base URL of `provider` behind the Gateway, for an
|
|
50
|
+
* OpenAI client's `baseURL` (with `fetch: createGatewayFetch(...)`):
|
|
51
|
+
* `default` (the default) is {@link AI_DEFAULT_BASE_URL},
|
|
52
|
+
* `…/api/ai/default/v1`; a catalog provider's is its root and the prefix
|
|
53
|
+
* of its chat route (`…/api/ai/openrouter/api/v1`, `…/api/ai/workers-ai/v1`,
|
|
54
|
+
* `…/api/ai/openai/v1`). Throws `ConfigurationError` for a provider with
|
|
55
|
+
* no OpenAI-compatible chat route (Cohere): call {@link providerBaseUrl}
|
|
56
|
+
* with its own paths instead.
|
|
57
|
+
*/
|
|
58
|
+
export function aiBaseUrl(provider = AI_DEFAULT_PROVIDER) {
|
|
59
|
+
if (provider === AI_DEFAULT_PROVIDER)
|
|
60
|
+
return AI_DEFAULT_BASE_URL;
|
|
61
|
+
const capability = CATALOG.get(provider);
|
|
62
|
+
const chat = capability?.mode === "ai" && "chat" in capability
|
|
63
|
+
? capability.chat
|
|
64
|
+
: undefined;
|
|
65
|
+
if (!chat?.path.endsWith(CHAT_COMPLETIONS)) {
|
|
66
|
+
throw new ConfigurationError(`${provider} has no OpenAI-compatible chat route in the catalog: join its own paths onto providerBaseUrl("${provider}") instead.`);
|
|
67
|
+
}
|
|
68
|
+
return `${providerBaseUrl(provider)}${chat.path.slice(0, -CHAT_COMPLETIONS.length)}`;
|
|
69
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `gatewayAiBinding(env)`: the Gateway's AI providers as a Workers AI
|
|
3
|
+
* binding, for code written against `env.AI.run(model, inputs, options)`.
|
|
4
|
+
*
|
|
5
|
+
* An app on Every App needs no `ai` binding of its own to call models: the
|
|
6
|
+
* Gateway holds the keys, counts the calls and keeps the app to `ai.models`.
|
|
7
|
+
* Code that already calls `env.AI.run()` (upstream code a port keeps, the
|
|
8
|
+
* Agents SDK, `workers-ai-provider`) gets this object in its place:
|
|
9
|
+
*
|
|
10
|
+
* const AI = gatewayAiBinding(env, { for: request });
|
|
11
|
+
* await AI.run("@cf/meta/llama-3.1-8b-instruct-fast", { messages });
|
|
12
|
+
*
|
|
13
|
+
* Each `run()` becomes an OpenAI-compatible call on the provider's route
|
|
14
|
+
* through the Gateway (`createGatewayFetch`): text generation (`messages`
|
|
15
|
+
* or `prompt`) on its chat completions route, text embeddings (`text`) on
|
|
16
|
+
* its embeddings route, answered in Workers AI's shapes (`{ response,
|
|
17
|
+
* tool_calls, usage }`, `{ shape, data }`, or a stream of `data:
|
|
18
|
+
* {"response": …}` events with `stream: true`). In local development
|
|
19
|
+
* without a Gateway, the developer's own key in `.dev.vars` is used, as
|
|
20
|
+
* `createGatewayFetch` does (WORKERS_AI_API_TOKEN and CLOUDFLARE_ACCOUNT_ID
|
|
21
|
+
* for Workers AI).
|
|
22
|
+
*/
|
|
23
|
+
import { AI_DEFAULT_PROVIDER, type AiProviderId } from "../internal/index.js";
|
|
24
|
+
import type { GatewayCallFor } from "./attribution.js";
|
|
25
|
+
export interface GatewayAiBindingOptions {
|
|
26
|
+
/**
|
|
27
|
+
* Whom the calls are for: the inbound request, or `{ background: true,
|
|
28
|
+
* organizationId }` (createGatewayFetch's `for`).
|
|
29
|
+
*/
|
|
30
|
+
for?: GatewayCallFor;
|
|
31
|
+
/**
|
|
32
|
+
* The Gateway provider the calls go to: an `ai` entry of the catalog
|
|
33
|
+
* with OpenAI-compatible routes (`workers-ai`, `openrouter`, `openai`,
|
|
34
|
+
* …), or `default`, the operator's model (`ai: { chat: true }`).
|
|
35
|
+
* Default: `workers-ai`, the provider `env.AI` reaches, so `@cf/…` model
|
|
36
|
+
* ids work as they are. The manifest lists the provider under
|
|
37
|
+
* `providers` (or says `ai.chat` for `default`).
|
|
38
|
+
*/
|
|
39
|
+
provider?: AiProviderId | typeof AI_DEFAULT_PROVIDER;
|
|
40
|
+
/**
|
|
41
|
+
* The model id to send for a model the code names, e.g.
|
|
42
|
+
* `{ "@cf/meta/llama-3.1-8b-instruct-fast": "meta-llama/llama-3.1-8b-instruct" }`
|
|
43
|
+
* with `provider: "openrouter"`. A model not listed is sent as it is,
|
|
44
|
+
* except that on `default` an `@cf/…` id becomes `default` (the
|
|
45
|
+
* operator's model).
|
|
46
|
+
*/
|
|
47
|
+
models?: Readonly<Record<string, string>>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A Workers AI binding (`Ai`) over the Gateway: pass it where code takes
|
|
51
|
+
* `env.AI`. `run()` covers text generation (messages or prompt; tools;
|
|
52
|
+
* `stream: true`; `returnRawResponse`, which returns the provider's
|
|
53
|
+
* OpenAI-shaped `Response`) and text embeddings; the binding's other
|
|
54
|
+
* methods (`gateway()`, `autorag()`, `models()`, `toMarkdown()`, …) and
|
|
55
|
+
* other tasks (images, audio, batches, websockets) throw
|
|
56
|
+
* `ConfigurationError`. `options.gateway` is ignored: the Gateway's
|
|
57
|
+
* operator decides whether calls go through Cloudflare AI Gateway
|
|
58
|
+
* (`everyapp ai gateway on`).
|
|
59
|
+
*
|
|
60
|
+
* Errors are thrown as a binding throws them: `GatewayRefusalError` when
|
|
61
|
+
* the Gateway refused (`ai_provider_not_configured`, `model_not_allowed`,
|
|
62
|
+
* …), `ConfigurationError` where createGatewayFetch throws one (no binding
|
|
63
|
+
* and no dev key), and an `Error` naming the status when the provider
|
|
64
|
+
* answered with an error. Nothing is checked when the binding is made, so
|
|
65
|
+
* making one per request costs nothing.
|
|
66
|
+
*/
|
|
67
|
+
export declare function gatewayAiBinding(env: object, options?: GatewayAiBindingOptions): Ai;
|
|
68
|
+
//# sourceMappingURL=aiBinding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiBinding.d.ts","sourceRoot":"","sources":["../../src/server/aiBinding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAEL,mBAAmB,EAInB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,OAAO,mBAAmB,CAAC;IACrD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC3C;AAUD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,uBAA4B,GACpC,EAAE,CAoEJ"}
|