@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.
Files changed (3) hide show
  1. package/README.md +21 -19
  2. package/dist/agw.mjs +5 -2
  3. 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://github.com/maxceem/app-ai-gateway)
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
- # 2. Add a provider. Paste the API key into the hidden prompt.
18
- agw provider add --type openai
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
- # 3. Add an app. It uses every provider you have added.
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
- # 4. Print the Swift code that calls the gateway from that app.
24
- agw app snippet <app-id> --provider openai
26
+ ```sh
27
+ agw provider add --type openai
25
28
  ```
26
29
 
27
- Self-hosted? Replace step 1 with a connect to your gateway. It asks for the
28
- same kind of key:
30
+ Add an app. It uses every provider you have added.
29
31
 
30
32
  ```sh
31
- agw deployment connect --url https://ai.example.com
33
+ agw app add --type ios --team-id ABCDE12345 --bundle-id com.example.app
32
34
  ```
33
35
 
34
- > **No account yet?** Skip step 1. The first `add` creates a free account on
35
- > the hosted gateway for you. Attach a sign-in to it later with
36
- > `agw account claim`. Help, status, lists, validation and dry runs never
37
- > create an account.
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
- Both are part of `pnpm run verify`. Releasing is two steps in order:
129
- `pnpm run cli:release:github` builds the gateway archive and uploads it to the
130
- GitHub release, then `npm publish` from `cli/` ships the executable that
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.6", wrangler: "4.96.0", upgradeFrom: ["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.6/gateway-0.1.6.tar.gz", sha256: "991b01cceb651259fdd340c6010bd254f1f2c4d0363d6c20028dda40c03d01d9", manifest: "cd0e66ec52965108fddc50ee3e36e5fb39f5a2e868061d333279c3fdb609e57d" } };
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
- message: external_exports.string()
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.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
- "description": "App AI Gateway CLI",
6
- "upgradeFrom": ["0.1.5", "0.1.4", "0.1.3", "0.1.2", "0.1.1", "0.1.0"],
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"