@maxceem/agw 0.16.1 → 0.17.0
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/agw.mjs +19 -2
- package/package.json +2 -1
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.
|
|
9
|
+
var define_AGW_MANIFEST_default = { version: "0.17.0", wrangler: "4.96.0", upgradeFrom: ["0.17.0", "0.16.1", "0.16.0", "0.15.1", "0.15.0", "0.14.0", "0.13.1", "0.13.0", "0.12.1", "0.12.0", "0.11.2", "0.11.1", "0.11.0", "0.10.11", "0.10.10", "0.10.9", "0.10.8", "0.10.7", "0.10.6", "0.10.5", "0.10.4", "0.10.3", "0.10.2", "0.10.1", "0.10.0", "0.9.3", "0.9.2", "0.9.1", "0.9.0", "0.8.3", "0.8.2", "0.8.1", "0.8.0", "0.7.2", "0.7.1", "0.7.0", "0.6.4", "0.6.3", "0.6.2", "0.6.1", "0.6.0", "0.5.2", "0.5.1", "0.5.0", "0.4.0"], release: { url: "https://github.com/maxceem/app-ai-gateway/releases/download/v0.17.0/gateway-0.17.0.tar.gz", sha256: "84e5511aaabf90427b9e4e2a309cc36ac961087b4d89ed65347d40b71a51bdf1", manifest: "d6fa837bfc25195dd6c7600ba6af9b52302cb95010359cb2ce20fc3ff1fee1f3" } };
|
|
10
10
|
|
|
11
11
|
// src/main.ts
|
|
12
12
|
import { Writable as Writable2 } from "node:stream";
|
|
@@ -23771,6 +23771,16 @@ var ModelPriceSchema = external_exports.object({
|
|
|
23771
23771
|
long_context_threshold: external_exports.number().optional(),
|
|
23772
23772
|
retirement_date: external_exports.string().optional().meta({
|
|
23773
23773
|
description: "The day (YYYY-MM-DD) the provider stops, or stopped, serving this model. The model stays priced after it."
|
|
23774
|
+
}),
|
|
23775
|
+
price_changes: external_exports.array(external_exports.object({
|
|
23776
|
+
from: external_exports.string().meta({ description: "The day (YYYY-MM-DD) the change takes effect, from 00:00 UTC." }),
|
|
23777
|
+
...CATALOG_TOKEN_RATES,
|
|
23778
|
+
per_minute: external_exports.number().optional(),
|
|
23779
|
+
per_hour: external_exports.number().optional(),
|
|
23780
|
+
per_image: external_exports.number().optional(),
|
|
23781
|
+
long_context_threshold: external_exports.number().optional()
|
|
23782
|
+
})).optional().meta({
|
|
23783
|
+
description: "Price changes the provider has announced, earliest first. Each gives only the rates that change on its day; the others keep their value. The model's own rates are the ones billed today."
|
|
23774
23784
|
})
|
|
23775
23785
|
});
|
|
23776
23786
|
var PricesResponseSchema = external_exports.object({
|
|
@@ -24049,6 +24059,12 @@ var CliUsageResponseSchema = external_exports.object({
|
|
|
24049
24059
|
var CliCapabilitiesResponseSchema = external_exports.object({
|
|
24050
24060
|
protocolVersion: external_exports.literal(1),
|
|
24051
24061
|
serverVersion: external_exports.string(),
|
|
24062
|
+
/**
|
|
24063
|
+
* The model price list this deployment bills with: the commit that last
|
|
24064
|
+
* changed it and that commit's day. Null when its build did not record one;
|
|
24065
|
+
* absent on older deployments.
|
|
24066
|
+
*/
|
|
24067
|
+
prices: external_exports.object({ revision: external_exports.string(), updated: external_exports.string().nullable() }).nullable().optional(),
|
|
24052
24068
|
deployment: CliDeploymentSchema,
|
|
24053
24069
|
consoleOrigin: external_exports.url(),
|
|
24054
24070
|
providers: external_exports.array(
|
|
@@ -25025,7 +25041,7 @@ var CATALOG = {
|
|
|
25025
25041
|
summary: "List known model prices",
|
|
25026
25042
|
security: "management",
|
|
25027
25043
|
response: PricesResponseSchema,
|
|
25028
|
-
responseDescription: "The
|
|
25044
|
+
responseDescription: "The model price list this deployment enforces."
|
|
25029
25045
|
},
|
|
25030
25046
|
getOperation: {
|
|
25031
25047
|
method: "GET",
|
|
@@ -27563,6 +27579,7 @@ function status(command, result, context, style2) {
|
|
|
27563
27579
|
["Connected", yesNo(result.connected)],
|
|
27564
27580
|
["Authenticated", yesNo(result.authenticated)],
|
|
27565
27581
|
["Version", result.serverVersion],
|
|
27582
|
+
["Prices", result.prices ? `${result.prices.revision} (${result.prices.updated ?? "date unknown"})` : void 0],
|
|
27566
27583
|
["Deployment", result.deployment.mode === "cloud" ? "cloud" : "self-hosted"],
|
|
27567
27584
|
["Console", result.consoleOrigin],
|
|
27568
27585
|
["Provider types", result.providers.length],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxceem/agw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
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": [
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"bugs": "https://github.com/maxceem/app-ai-gateway/issues",
|
|
28
28
|
"upgradeFrom": [
|
|
29
|
+
"0.16.1",
|
|
29
30
|
"0.16.0",
|
|
30
31
|
"0.15.1",
|
|
31
32
|
"0.15.0",
|