@maxceem/agw 0.1.6 → 0.1.8
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 +21 -19
- package/dist/agw.mjs +5 -2
- package/package.json +25 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# App AI Gateway CLI
|
|
2
2
|
|
|
3
|
-
`agw` sets up and manages [App AI Gateway](https://
|
|
3
|
+
`agw` sets up and manages [App AI Gateway](https://appaigateway.com/)
|
|
4
4
|
from a terminal or a coding agent: providers, apps, usage, and your own
|
|
5
5
|
deployment. Requires Node.js 22.19+.
|
|
6
6
|
|
|
@@ -10,31 +10,34 @@ npm install -g @maxceem/agw
|
|
|
10
10
|
|
|
11
11
|
## Quick start
|
|
12
12
|
|
|
13
|
+
Sign in with a management key. Create one in the console at
|
|
14
|
+
[appaigateway.com](https://appaigateway.com/): user menu, then **Management keys**.
|
|
15
|
+
|
|
13
16
|
```sh
|
|
14
|
-
# 1. Sign in. Create a management key in the console: user menu -> Management keys.
|
|
15
17
|
agw account login
|
|
18
|
+
```
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
No account yet? Skip login. A free anonymous account is created for you
|
|
21
|
+
automatically as soon as you add your first provider or app below. You can
|
|
22
|
+
claim it later with `agw account claim`.
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
agw app add --type ios --team-id ABCDE12345 --bundle-id com.example.app
|
|
24
|
+
Add a provider. Paste its API key into the hidden prompt.
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
agw
|
|
26
|
+
```sh
|
|
27
|
+
agw provider add --type openai
|
|
25
28
|
```
|
|
26
29
|
|
|
27
|
-
|
|
28
|
-
same kind of key:
|
|
30
|
+
Add an app. It uses every provider you have added.
|
|
29
31
|
|
|
30
32
|
```sh
|
|
31
|
-
agw
|
|
33
|
+
agw app add --type ios --team-id ABCDE12345 --bundle-id com.example.app
|
|
32
34
|
```
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
>
|
|
36
|
+
Print the Swift code that calls the gateway from that app.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
agw app snippet <app-id> --provider openai
|
|
40
|
+
```
|
|
38
41
|
|
|
39
42
|
## Self-host on Cloudflare
|
|
40
43
|
|
|
@@ -125,7 +128,6 @@ pnpm run cli:check # type-check and bundle
|
|
|
125
128
|
pnpm run cli:test # run the CLI tests
|
|
126
129
|
```
|
|
127
130
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
demands that exact archive. Licensed under Apache-2.0.
|
|
131
|
+
## License
|
|
132
|
+
|
|
133
|
+
This project is licensed under the [Apache License 2.0](LICENSE).
|
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.1.
|
|
9
|
+
var define_AGW_MANIFEST_default = { version: "0.1.8", wrangler: "4.96.0", upgradeFrom: ["0.1.8", "0.1.7", "0.1.6", "0.1.5", "0.1.4", "0.1.3", "0.1.2", "0.1.1", "0.1.0"], release: { url: "https://github.com/maxceem/app-ai-gateway/releases/download/v0.1.8/gateway-0.1.8.tar.gz", sha256: "a4123a9186809038e7613f80d299637075eee47016b7aa309fd82f3a6a978ee9", manifest: "f6b6451ba84b7409c5f1e239e57319aa2e92bb54739bb07f27171d652c68b326" } };
|
|
10
10
|
|
|
11
11
|
// src/main.ts
|
|
12
12
|
import { Writable } from "node:stream";
|
|
@@ -15553,9 +15553,12 @@ var CliBrowserDetailsResponseSchema = external_exports.object({
|
|
|
15553
15553
|
googleEnabled: external_exports.boolean(),
|
|
15554
15554
|
expiresAt: external_exports.string()
|
|
15555
15555
|
});
|
|
15556
|
+
var CliHandoffContinuationSchema = external_exports.enum(["cli", "console"]);
|
|
15556
15557
|
var CliBrowserSubmitResponseSchema = external_exports.object({
|
|
15557
15558
|
state: external_exports.literal("completed"),
|
|
15558
|
-
|
|
15559
|
+
/** The whole of what the page says once it is approved. */
|
|
15560
|
+
message: external_exports.string(),
|
|
15561
|
+
continueTo: CliHandoffContinuationSchema
|
|
15559
15562
|
});
|
|
15560
15563
|
var CliBrowserRegisterResponseSchema = external_exports.object({
|
|
15561
15564
|
token: external_exports.string().nullable().optional(),
|
package/package.json
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxceem/agw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "App AI Gateway
|
|
6
|
-
"
|
|
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
|
+
"keywords": [
|
|
7
|
+
"ai-gateway",
|
|
8
|
+
"llm-gateway",
|
|
9
|
+
"ai-proxy",
|
|
10
|
+
"llm-proxy",
|
|
11
|
+
"openai",
|
|
12
|
+
"anthropic",
|
|
13
|
+
"gemini",
|
|
14
|
+
"ios",
|
|
15
|
+
"swift",
|
|
16
|
+
"app-attest",
|
|
17
|
+
"cloudflare-workers",
|
|
18
|
+
"self-hosted",
|
|
19
|
+
"cli"
|
|
20
|
+
],
|
|
21
|
+
"homepage": "https://appaigateway.com/",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/maxceem/app-ai-gateway.git",
|
|
25
|
+
"directory": "cli"
|
|
26
|
+
},
|
|
27
|
+
"bugs": "https://github.com/maxceem/app-ai-gateway/issues",
|
|
28
|
+
"upgradeFrom": ["0.1.7", "0.1.6", "0.1.5", "0.1.4", "0.1.3", "0.1.2", "0.1.1", "0.1.0"],
|
|
7
29
|
"license": "Apache-2.0",
|
|
8
30
|
"bin": {
|
|
9
31
|
"agw": "dist/agw.mjs"
|