@maxceem/agw 0.6.1 → 0.6.3

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 CHANGED
@@ -18,15 +18,16 @@ agw account login
18
18
 
19
19
  The CLI prints a pairing code and opens the console. Check that the page shows
20
20
  the same code, then approve. The CLI receives a management key of its own,
21
- listed on the console's **Management keys** page with a **CLI** tag and this
21
+ listed on the console's **Access** page with a **CLI** tag and this
22
22
  machine's name. Over SSH, on a machine without a display, or with `--no-open`,
23
23
  the CLI opens nothing: open the printed URL on any device and approve there. For your own deployment, run
24
24
  `agw deployment connect --url https://ai.example.com` instead. `agw account
25
25
  logout` revokes the key and removes it from this machine.
26
26
 
27
- No account yet? Skip login. A free anonymous account is created for you
27
+ No account yet? Skip login. An unclaimed hosted account is created for you
28
28
  automatically as soon as you add your first provider or app below. You can
29
- claim it later with `agw account claim`.
29
+ claim it with `agw account claim`. Check `agw account status` for its expiry;
30
+ claim it before that deadline to keep it.
30
31
 
31
32
  Add a provider. Paste its API key into the hidden prompt.
32
33
 
@@ -79,7 +80,7 @@ elsewhere and pass `--release-archive <path>`.
79
80
  | Group | What it manages |
80
81
  | --- | --- |
81
82
  | `provider` | Provider credentials: `add`, `list`, `show`, `update`, `rotate-key`, `remove` |
82
- | `provider-gateway` | Cloudflare AI Gateway in front of a provider |
83
+ | `provider-gateway` | Connections to Cloudflare AI Gateway or Vercel AI Gateway |
83
84
  | `app` | Apps and their config: `add`, `list`, `show`, `update`, `validate`, `check`, `snippet`, `remove`, `key` |
84
85
  | `usage` | Spend and requests: `show`, `breakdown` |
85
86
  | `account` | `status`, `claim`, `login`, `logout` |
@@ -91,7 +92,7 @@ elsewhere and pass `--release-archive <path>`.
91
92
  ## Using `agw` from an agent
92
93
 
93
94
  Full guide: [docs.appaigateway.com/automation/cli](https://docs.appaigateway.com/automation/cli).
94
- The whole documentation is also published as
95
+ The agent manual is also published as
95
96
  [agents.md](https://docs.appaigateway.com/agents.md).
96
97
 
97
98
  **Output.** Add `--json` for exactly one JSON document on stdout; progress goes
@@ -136,8 +137,11 @@ page reaches the CLI or its output.
136
137
 
137
138
  **Editing apps.** Read before you write. `app show --json` returns the full
138
139
  config; save `{name, config, status}` from `result.app`, edit it, and pass it
139
- back with `app update <id> --file`. A concurrent change is rejected rather than
140
- overwritten. `app validate --file` checks a file without touching the account.
140
+ back with `app update <id> --file`. The command reads a revision when it
141
+ starts and rejects competing writes during that command; refresh and merge
142
+ an older export first. `app validate --file` checks a new app document;
143
+ `app update <id> --file app.json --dry-run` validates an existing app's update.
144
+ Finish with `app check <id>` and `app snippet <id>`, which send no inference.
141
145
 
142
146
  **State.** Connection, credentials and pending operations live in
143
147
  `~/.local/state/agw` (`$XDG_STATE_HOME/agw`, or `%LOCALAPPDATA%/agw` on
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.6.1", wrangler: "4.96.0", upgradeFrom: ["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.6.1/gateway-0.6.1.tar.gz", sha256: "07cf864824adefe1548376a3482ca3792a94eda6b644f0c86d795ced6b938346", manifest: "e5d8490a7f6667b7aadbfe1342f01cabbcb3ba82581b58a7e7bdc1dd529cafbc" } };
9
+ var define_AGW_MANIFEST_default = { version: "0.6.3", wrangler: "4.96.0", upgradeFrom: ["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.6.3/gateway-0.6.3.tar.gz", sha256: "a46d55db226d1439c914ee822f5ef96313b3f00011a0ae0ea0f3f500c9410081", manifest: "462189c02f6a1e1eba05f1b11e5f52966ac79827a242236eda4073fed318cd5e" } };
10
10
 
11
11
  // src/main.ts
12
12
  import { Writable as Writable2 } from "node:stream";
@@ -16748,7 +16748,7 @@ function unlimitedScope() {
16748
16748
  }
16749
16749
  function mobileDefaultLimits() {
16750
16750
  return {
16751
- per_user: { requests: { per_minute: 10, per_day: 300 }, spending: { monthly_usd: null } },
16751
+ per_user: { requests: { per_minute: 100, per_day: 1e4 }, spending: { monthly_usd: null } },
16752
16752
  per_app: unlimitedScope()
16753
16753
  };
16754
16754
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxceem/agw",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
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.6.0", "0.5.2", "0.5.1", "0.5.0", "0.4.0"],
28
+ "upgradeFrom": ["0.6.2", "0.6.1", "0.6.0", "0.5.2", "0.5.1", "0.5.0", "0.4.0"],
29
29
  "license": "Apache-2.0",
30
30
  "bin": {
31
31
  "agw": "dist/agw.mjs"