@maxceem/agw 0.6.1 → 0.6.4
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 +11 -7
- package/dist/agw.mjs +2 -2
- package/package.json +2 -2
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 **
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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`.
|
|
140
|
-
|
|
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.
|
|
9
|
+
var define_AGW_MANIFEST_default = { version: "0.6.4", wrangler: "4.96.0", upgradeFrom: ["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.6.4/gateway-0.6.4.tar.gz", sha256: "cd40eaa3809e18174d57091191363f14cf5ca5c00850e826ccb0d5710f7ce80c", manifest: "bdb9f85fc16464e81f03c0f14d3127b804e06ad97f4d31f0d50f8d205d1d1e7c" } };
|
|
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:
|
|
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.
|
|
3
|
+
"version": "0.6.4",
|
|
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.3", "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"
|