@maxceem/agw 0.5.0 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/agw.mjs +10 -7
  2. package/package.json +2 -2
package/dist/agw.mjs CHANGED
@@ -6,7 +6,7 @@ var __export = (target, all) => {
6
6
  };
7
7
 
8
8
  // <define:__AGW_MANIFEST__>
9
- var define_AGW_MANIFEST_default = { version: "0.5.0", wrangler: "4.96.0", upgradeFrom: ["0.5.0", "0.4.0"], release: { url: "https://github.com/maxceem/app-ai-gateway/releases/download/v0.5.0/gateway-0.5.0.tar.gz", sha256: "04aae870521afb7cf669fbd0c7692aae0d551d1b492b954b33618a0fc7bea931", manifest: "69ffad488e129f5487a24d48b0aaead9c4f247200b79336c88dc5e4c49c63b27" } };
9
+ var define_AGW_MANIFEST_default = { version: "0.5.2", wrangler: "4.96.0", upgradeFrom: ["0.5.2", "0.5.1", "0.5.0", "0.4.0"], release: { url: "https://github.com/maxceem/app-ai-gateway/releases/download/v0.5.2/gateway-0.5.2.tar.gz", sha256: "bfa0e0de085cb31231aa02894c91ea3030348f7a56f840aa74e995bd49998a37", manifest: "beaf2b6574232c1e13ad28cec9b070a3df9dbf8d0c5a6c955402f64829f9bae8" } };
10
10
 
11
11
  // src/main.ts
12
12
  import { Writable as Writable2 } from "node:stream";
@@ -14823,7 +14823,7 @@ var PROVIDER_DESCRIPTORS = {
14823
14823
  // reads the older field.
14824
14824
  chatCompletionsCapField: "max_completion_tokens",
14825
14825
  // The two types whose Responses and transcription request shapes the
14826
- // gateway composes itself for named endpoints.
14826
+ // gateway composes itself for custom endpoints.
14827
14827
  endpointPaths: { responses: "v1/responses", audio_transcription: "v1/audio/transcriptions" },
14828
14828
  modelAuthor: "OpenAI"
14829
14829
  },
@@ -17146,7 +17146,7 @@ ${snippet}`;
17146
17146
  if (flags.endpoint) {
17147
17147
  const endpoint = doc.config.endpoints[flags.endpoint];
17148
17148
  if (!endpoint)
17149
- fail("endpoint_not_found", "Choose an existing named endpoint.");
17149
+ fail("endpoint_not_found", "Choose an existing custom endpoint.");
17150
17150
  const responses = endpoint.api_style === "responses";
17151
17151
  example = {
17152
17152
  target: { endpoint: flags.endpoint },
@@ -17645,7 +17645,7 @@ var ProviderSummarySchema = external_exports.object({
17645
17645
  description: "The client APIs this instance can be called with on its route. A direct instance lists every style its provider type does not narrow; the provider itself answers for paths it lacks."
17646
17646
  }),
17647
17647
  endpointStyles: external_exports.array(external_exports.enum(ENDPOINT_API_STYLES)).meta({
17648
- description: "The named-endpoint styles this instance can back on its route."
17648
+ description: "The custom-endpoint styles this instance can back on its route."
17649
17649
  }),
17650
17650
  modelPrefix: external_exports.string().nullable().meta({
17651
17651
  description: "The namespace the route adds to model IDs on the way out. Clients always send the provider's own ID; null means the route sends it unchanged."
@@ -17941,7 +17941,10 @@ var ModelPriceSchema = external_exports.object({
17941
17941
  long_input: external_exports.number().optional(),
17942
17942
  long_output: external_exports.number().optional(),
17943
17943
  long_cached_input: external_exports.number().optional(),
17944
- long_cache_write: external_exports.number().optional()
17944
+ long_cache_write: external_exports.number().optional(),
17945
+ retirement_date: external_exports.string().optional().meta({
17946
+ description: "The day (YYYY-MM-DD) the provider stops, or stopped, serving this model. The model stays priced after it."
17947
+ })
17945
17948
  });
17946
17949
  var PricesResponseSchema = external_exports.object({
17947
17950
  prices: external_exports.record(external_exports.string(), external_exports.record(external_exports.string(), ModelPriceSchema))
@@ -18425,8 +18428,8 @@ var CATALOG = {
18425
18428
  callNamedEndpoint: {
18426
18429
  method: "POST",
18427
18430
  path: "/v1/apps/{app}/endpoints/{slug}",
18428
- tags: ["Named endpoints"],
18429
- summary: "Call a server-configured named endpoint",
18431
+ tags: ["Custom endpoints"],
18432
+ summary: "Call a server-configured custom endpoint",
18430
18433
  description: "The endpoint's provider, model, fixed parameters, output cap, and fallback chain come from the application configuration, so you can change models without shipping a client release. Responses-style endpoints accept an OpenAI Responses body; audio_transcription endpoints accept an OpenAI audio transcription multipart body and may omit the model field. The successful response keeps the serving provider's native format and streaming behaviour.",
18431
18434
  security: "gateway",
18432
18435
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxceem/agw",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "description": "Manage App AI Gateway from a terminal or coding agent: providers, iOS and server apps, usage, and self-hosted deployment on Cloudflare",
6
6
  "keywords": [
@@ -25,7 +25,7 @@
25
25
  "directory": "cli"
26
26
  },
27
27
  "bugs": "https://github.com/maxceem/app-ai-gateway/issues",
28
- "upgradeFrom": ["0.4.0"],
28
+ "upgradeFrom": ["0.5.1", "0.5.0", "0.4.0"],
29
29
  "license": "Apache-2.0",
30
30
  "bin": {
31
31
  "agw": "dist/agw.mjs"