@anybuild-ai/ab 0.5.0 → 0.7.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +91 -8
  3. package/dist/api/entity-api.d.ts +2 -0
  4. package/dist/api/entity-api.d.ts.map +1 -1
  5. package/dist/api/entity-api.js +9 -0
  6. package/dist/api/entity-api.js.map +1 -1
  7. package/dist/commands/api-key.d.ts.map +1 -1
  8. package/dist/commands/api-key.js +332 -19
  9. package/dist/commands/api-key.js.map +1 -1
  10. package/dist/commands/clone.d.ts.map +1 -1
  11. package/dist/commands/clone.js +8 -2
  12. package/dist/commands/clone.js.map +1 -1
  13. package/dist/commands/create.d.ts +3 -0
  14. package/dist/commands/create.d.ts.map +1 -0
  15. package/dist/commands/create.js +118 -0
  16. package/dist/commands/create.js.map +1 -0
  17. package/dist/commands/index.d.ts.map +1 -1
  18. package/dist/commands/index.js +4 -0
  19. package/dist/commands/index.js.map +1 -1
  20. package/dist/commands/login.d.ts.map +1 -1
  21. package/dist/commands/login.js +18 -4
  22. package/dist/commands/login.js.map +1 -1
  23. package/dist/commands/status.js +1 -1
  24. package/dist/commands/status.js.map +1 -1
  25. package/dist/commands/user.d.ts +3 -0
  26. package/dist/commands/user.d.ts.map +1 -0
  27. package/dist/commands/user.js +254 -0
  28. package/dist/commands/user.js.map +1 -0
  29. package/dist/config/types.d.ts +2 -2
  30. package/dist/export/create-application-api.d.ts +13 -0
  31. package/dist/export/create-application-api.d.ts.map +1 -0
  32. package/dist/export/create-application-api.js +60 -0
  33. package/dist/export/create-application-api.js.map +1 -0
  34. package/dist/export/import-batch.d.ts.map +1 -1
  35. package/dist/export/import-batch.js +43 -25
  36. package/dist/export/import-batch.js.map +1 -1
  37. package/dist/export/schema-json.d.ts +4 -1
  38. package/dist/export/schema-json.d.ts.map +1 -1
  39. package/dist/export/schema-json.js +55 -1
  40. package/dist/export/schema-json.js.map +1 -1
  41. package/dist/export/status.js +2 -2
  42. package/dist/export/status.js.map +1 -1
  43. package/dist/export/working-dirs.d.ts +10 -1
  44. package/dist/export/working-dirs.d.ts.map +1 -1
  45. package/dist/export/working-dirs.js +37 -1
  46. package/dist/export/working-dirs.js.map +1 -1
  47. package/dist/export/working-tree-validation.js +1 -1
  48. package/dist/export/working-tree-validation.js.map +1 -1
  49. package/dist/identity/identity-api.d.ts +4 -0
  50. package/dist/identity/identity-api.d.ts.map +1 -0
  51. package/dist/identity/identity-api.js +52 -0
  52. package/dist/identity/identity-api.js.map +1 -0
  53. package/dist/router.d.ts.map +1 -1
  54. package/dist/router.js +4 -2
  55. package/dist/router.js.map +1 -1
  56. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ - Writable `be/scheduled_jobs/*.json` (cron jobs): create/update/delete on push. A job runs a PLV8 function or a Node module. Push takes the version live, which registers cron; delete unschedules it. `run_as` is the user the job runs as. Sent after function files in the same push.
6
+ - `anybuild user roles | list | show | create | activate | deactivate | role` maintains users with the login session. The server rejects the call unless that user is a security administrator. `create --kind person` reads the password from a hidden prompt and fails without a terminal. `create --kind service` has no password.
7
+ - `anybuild api-key create --name <name> [--user <user_id>] [--expires <iso>] [--unscoped] [--scope <METHOD> <path> …] [--use] [--allow-writes | --read-only]` creates a key. Omitted `--user` is `ai_agent`. The secret is printed once. `--use` stores it for `anybuild api` with no prompt; writes stay off unless `--allow-writes`.
8
+ - `anybuild api-key list [--user <user_id>]` and `anybuild api-key revoke <api_key_id>` list and revoke keys. They never print a secret.
9
+ - `anybuild api-key scope list | add | remove` changes route scopes. The target is the stored key unless `--id <api_key_id>` is set. `add` and `remove` take one or more `METHOD path` pairs (same path form as `anybuild api`, including a template such as `my_app/invoice(*)`). An unscoped key already reaches every route, so these commands report that and do not change it.
10
+ - Host routes, secured and token-only (not API-key auth): `POST /api/cli/v1/identity/user`, `POST /api/cli/v1/identity/key`, `POST /api/cli/v1/identity/scope`.
11
+
12
+ ## 0.6.0
13
+
14
+ - `anybuild create <url>/<application_id> [--name <display name>] [--debug] [directory]` creates a blank application on the host (same URL shape as clone) and clones it locally. `--name` is optional and defaults to the application_id. Rejects if that id already exists (clone it instead). No `--force`.
15
+ - After `anybuild login`, print next steps for cloning an existing app vs creating a new blank one.
16
+ - Writable `be/field_types/*.json` (current-application field types, storage and lookups): create/update/delete on push; save and build in one step. Storage types apply before entities; lookups apply after. Platform primitives stay in `meta/`. Catalog `meta/be/catalog/field_types.json` still indexes them.
17
+ - Writable `be/auto_increments/*.json` (auto-increment sequences): create/update/delete on push; save and build in one step. Entity `default_value` copies the sequence file’s `id`. Sequences apply before entities in the same push.
18
+ - Entity and view push save+build is one unit: a failed build does not leave a saved row or a checksum.
19
+
3
20
  ## 0.5.0
4
21
 
5
22
  - `anybuild push -m` / `--message` records an optional message on the server push-history run. Each HTTP import batch includes a `push` envelope (`id`, `sequence`, `total`, `complete`) so one command is one history row. Older CLIs omit the envelope; the server then applies files without writing history.
package/README.md CHANGED
@@ -30,6 +30,8 @@ anybuild --version
30
30
 
31
31
  ```bash
32
32
  anybuild login https://your-host.example.com
33
+ anybuild create https://your-host.example.com/my-app --name "My App"
34
+ # or clone an app that already exists:
33
35
  anybuild clone https://your-host.example.com/my-app
34
36
  cd my-app
35
37
 
@@ -47,7 +49,7 @@ anybuild logout https://your-host.example.com
47
49
  ## Workflow
48
50
 
49
51
  1. **Login** to your Anybuild host (stores a session for that host).
50
- 2. **Clone** an application — creates a `./my-app/` folder by default (git-like). Pass `.` to use the current directory.
52
+ 2. **Create** a blank application (`anybuild create https://host/my-app [--name "My App"]`) or **clone** one that already exists — both use the same URL and write `./my-app/` by default (git-like). Pass `.` to use the current directory. Create rejects if that application id already exists; clone it instead. The host must expose `POST /api/cli/v1/create/application` (token auth) to `cli_integration`.
51
53
  3. **Pull** to download the latest remote changes.
52
54
  4. Edit tracked project files locally.
53
55
  5. **Status** to see what changed.
@@ -78,24 +80,27 @@ Pass `-m` / `--message` to record an optional note on the server **Push History*
78
80
  | `be/node/` | Node modules (`.js`) |
79
81
  | `be/entities/` | Entity authoring JSON |
80
82
  | `be/views/` | Custom view authoring JSON |
83
+ | `be/auto_increments/` | Auto-increment sequence JSON |
84
+ | `be/field_types/` | Current-application field type JSON (storage and lookups) |
85
+ | `be/scheduled_jobs/` | Scheduled job (cron) JSON. Runs a PLV8 function or a Node module |
81
86
  | `be/scenarios/` | AnyInput scenarios (readable JSON) |
82
87
  | `be/capability_profiles/` | AnyInput capability profiles (`<type>.<name>.json`) |
83
88
  | `be/scenario_tests/` | AnyInput scenario test suites (`<suite_id>.json`), run with `anybuild test scenarios` |
84
89
 
85
90
  `meta/` is **read-only** (catalogs, generated schema dumps, default entity widgets, AI rule files). Do not put source entity/view JSON there.
86
91
 
87
- **Entities, views, navigation, and portals**
92
+ **Entities, views, auto-increments, field types, scheduled jobs, navigation, and portals**
88
93
 
89
- - Files are simple JSON (`id` = thing UUID; `entity_id` / `view_id` / `navigation_id` / `application_id` stay inside the file as labels). View **sources** use target `id` (thing UUID), not `entity_id` / `view_id`, so they can point at objects in other applications. Format: `AGENTS.md` plus `meta/be/entities/RULES.md`, `meta/be/views/RULES.md`, `meta/ui/navigation/RULES.md`, and `meta/ui/portals/RULES.md` after clone/pull.
94
+ - Files are simple JSON (`id` = thing UUID; `entity_id` / `view_id` / `auto_increment_id` / `field_id` / `job_id` / `navigation_id` / `application_id` stay inside the file as labels). View **sources** use target `id` (thing UUID), not `entity_id` / `view_id`, so they can point at objects in other applications. Format: `AGENTS.md` plus `meta/be/entities/RULES.md`, `meta/be/views/RULES.md`, `meta/be/auto_increments/RULES.md`, `meta/be/field_types/RULES.md`, `meta/be/scheduled_jobs/RULES.md`, `meta/ui/navigation/RULES.md`, and `meta/ui/portals/RULES.md` after clone/pull.
90
95
  - New views are always **code mode** (SQL + named sources).
91
96
  - Custom **designer** views export as the same JSON. Editing one and pushing **converts it to code** on the server. Untouched designer views stay designer.
92
97
  - Default entity/component views are **not** under `be/views/` (they stay in `meta/`).
93
98
  - Default entity widgets (autogenerated list/create/edit) are **not** under `ui/lit/components/` (they stay in `meta/ui/lit/components/`). After pull, delete leftover copies from `ui/lit/components/` if they still appear as Added.
94
- - If two records share the same `entity_id` / `view_id` / `navigation_id` / `application_id`, files are `slug.json` and `slug.<thing_id>.json`. Push does **not** rename the live id from the filename.
95
- - Schema apply is one POST: save, then build in dependency order (entities before views, source views before dependents). In a mixed push the order is widgets, then navigation, then portals, then schema.
99
+ - If two records share the same `entity_id` / `view_id` / `auto_increment_id` / `field_id` / `job_id` / `navigation_id` / `application_id`, files are `slug.json` and `slug.<thing_id>.json`. Push does **not** rename the live id from the filename.
100
+ - Schema apply is one POST: auto-increments, then storage field types, then entities, then lookup field types, then views (source views before dependents). Each file saves and builds together. In a mixed push the order is widgets and functions, then navigation, then portals, then auto-increments, then field types / schema, then scenarios. Scheduled jobs are a later POST, after those function files, so a PLV8 or Node module in the same push already exists.
96
101
  - After a schema, navigation, or portal push, run **`anybuild pull`**. Catalogs under `meta/be/catalog/` refresh only on pull.
97
102
 
98
- Checksums: `.json` under `ui/lit`, `ui/navigation`, `ui/portals`, `be/entities`, and `be/views` uses canonical JSON; other files use raw UTF-8.
103
+ Checksums: `.json` under `ui/lit`, `ui/navigation`, `ui/portals`, `be/entities`, `be/views`, `be/auto_increments`, `be/field_types`, and `be/scheduled_jobs` uses canonical JSON; other files use raw UTF-8.
99
104
 
100
105
  ## Commands
101
106
 
@@ -103,6 +108,7 @@ Checksums: `.json` under `ui/lit`, `ui/navigation`, `ui/portals`, `be/entities`,
103
108
  | --- | --- |
104
109
  | `anybuild login <host-url>` | Sign in (prompts for username and password) |
105
110
  | `anybuild logout <host-url>` | Sign out and remove the local session for that host |
111
+ | `anybuild create <host-url>/<app> [directory]` | Create a blank application on the host and clone it into `./<app>/` (or `[directory]`; use `.` for cwd). Options: `--name <display name>` (defaults to the application id), `--debug`. Fails if that id already exists — use clone. No `--force`. Host route: `POST /api/cli/v1/create/application` (token auth). |
106
112
  | `anybuild clone <host-url>/<app> [directory]` | Download an application into `./<app>/` (or `[directory]`; use `.` for cwd). Options: `--force`, `--debug` |
107
113
  | `anybuild pull [paths…]` | Download latest changes. Options: `--force` (overwrite local files even when the last snapshot already matches the server; with no paths this re-downloads everything), `--debug` |
108
114
  | `anybuild status` | List local added / modified / deleted files |
@@ -112,6 +118,10 @@ Checksums: `.json` under `ui/lit`, `ui/navigation`, `ui/portals`, `be/entities`,
112
118
  | `anybuild api <GET\|POST\|PATCH\|DELETE> <path> [--data <json> \| --data-file <file>]` | Call an entity endpoint (OData) of the project's host with the stored API key. `<path>` is relative to `/api/`. Body to stdout, status line to stderr, exit code 1 on HTTP errors |
113
119
  | `anybuild api-key set [--allow-writes \| --read-only]` | Store an API key for the project's host (hidden prompt, terminal only). Checks the key first; asks whether writes are allowed (default no) |
114
120
  | `anybuild api-key show` / `remove` | Show which key is stored (never the secret) / forget it |
121
+ | `anybuild api-key create --name <name> [--user <user_id>] [--scope <METHOD> <path> …] [--use]` | Create a key with the login session (security administrator). Omitted `--user` is `ai_agent`. Prints the secret once. `--use` stores it; writes stay off unless `--allow-writes`. Also `--expires`, `--unscoped` |
122
+ | `anybuild api-key list [--user <user_id>]` / `revoke <api_key_id>` | List a user's keys (default `ai_agent`) / revoke one. Never prints a secret |
123
+ | `anybuild api-key scope list \| add \| remove` | List or change what the stored key may call (`--id <api_key_id>` picks another). An unscoped key may already call everything |
124
+ | `anybuild user roles \| list \| show \| create \| activate \| deactivate \| role` | Maintain users with the login session. The server rejects the call unless that user is a security administrator |
115
125
 
116
126
  Also: `anybuild help`, `anybuild -v` / `--version`.
117
127
 
@@ -150,7 +160,80 @@ Good to know:
150
160
 
151
161
  - The key belongs to the host, not to one project: every project on that host on this machine uses it.
152
162
  - To replace the key or change the write setting, run `anybuild api-key set` again.
153
- - When you are done: `anybuild api-key remove`, then revoke the key on the Identities page.
163
+ - When you are done: `anybuild api-key remove`, then `anybuild api-key revoke <api_key_id>` (or revoke it on the Identities page).
164
+
165
+ #### Users, keys, and scopes
166
+
167
+ These commands use the login of a security administrator. Run them inside a project directory (the folder that contains `.ab/`). Anyone else is rejected.
168
+
169
+ Two different logins are involved:
170
+
171
+ - The **signed-in user** is the administrator. That login creates users, creates and revokes keys, and changes what a key is allowed to call.
172
+ - The **stored API key** is what `anybuild api` sends. `api-key scope` changes that key unless you pass `--id <api_key_id>`. The key itself does not have to belong to an administrator.
173
+
174
+ ##### Users
175
+
176
+ ```bash
177
+ anybuild user roles
178
+ anybuild user list
179
+ anybuild user show someone@example.com
180
+ anybuild user create --id someone@example.com --role "Regular User" --kind person
181
+ anybuild user create --id billing-bot --role "Regular User" --kind service
182
+ anybuild user role someone@example.com "Security Administrator"
183
+ anybuild user deactivate someone@example.com
184
+ anybuild user activate someone@example.com
185
+ ```
186
+
187
+ - `user roles` prints `role_id`, `role_name`, and whether the role is a security administrator or a system designer. The first column is the role id you pass to `create` and `role`. Quote it when it contains a space (`"Security Administrator"`).
188
+ - `user list` and `user show` print `user_id`, kind (`person` or `service`), role name, and whether the user is active.
189
+ - A **person** needs an email as `--id`. The password is typed at a hidden `Password:` prompt. There is no password flag, and the command fails when stdin is not a terminal. `--first` and `--last` are optional.
190
+ - A **service** account takes `--id` and `--role` only. It has no password. `--first` and `--last` are rejected.
191
+ - `user role` replaces the user's single role. `activate` and `deactivate` change whether the account can be used.
192
+
193
+ ##### API keys
194
+
195
+ `api-key create` and `api-key list` use the predefined user `ai_agent` when `--user` is omitted. If that user is missing or inactive, the command fails. Do not create `ai_agent` from the CLI. `--user <user_id>` selects someone else.
196
+
197
+ ```bash
198
+ anybuild api-key create --name agent --user someone@example.com \
199
+ --scope GET 'my_app/invoice' --scope GET 'my_app/invoice(*)'
200
+ anybuild api-key list --user someone@example.com
201
+ anybuild api-key revoke <api_key_id>
202
+ ```
203
+
204
+ - `create` prints the secret once, on stdout (`odk_<api_key_id>_<secret>`). It is not shown again. Progress stays on stderr.
205
+ - `--use` stores that secret for `anybuild api` with no prompt. Writes stay off unless `--allow-writes`. `--read-only` is the explicit alternative and applies only together with `--use`. Allowing save, submit, or delete on the key is not enough for `anybuild api` to send those calls: the stored key must also have writes turned on. `anybuild api-key set --allow-writes` does that, and asks for the secret again.
206
+ - `--expires <iso>` sets an expiry. `--unscoped` lets the key call every open endpoint, and cannot be combined with `--scope`.
207
+ - `list` prints `api_key_id`, name, whether the key is unscoped, and expiry. It never prints a secret. `revoke` takes that `api_key_id`, not the secret. Revoking does not forget a key already stored on this machine; `anybuild api-key remove` does that.
208
+
209
+ ##### What a key is allowed to call
210
+
211
+ A key is allowed to call specific actions on an entity: read, save, submit, and delete. Each action is named with the same method and path you would pass to `anybuild api`. The path is `<app>/<entity>`. Quote a path that contains `(*)`.
212
+
213
+ `(*)` means one existing record. Without it, the path means the list of records. Submit is the same path with `/submit` added.
214
+
215
+ | You want the key to | Pass these |
216
+ | --- | --- |
217
+ | Read the list and one record | `GET my_app/invoice` and `GET 'my_app/invoice(*)'` |
218
+ | Save a new record and change one | `POST my_app/invoice` and `PATCH 'my_app/invoice(*)'` |
219
+ | Submit the list and one record | `POST my_app/invoice/submit` and `POST 'my_app/invoice(*)/submit'` |
220
+ | Delete one record | `DELETE 'my_app/invoice(*)'` |
221
+
222
+ The entity must already be open for that action. If it is not, the command fails and names the missing call.
223
+
224
+ `scope list`, `scope add`, and `scope remove` change the stored key. `--id <api_key_id>` picks another key, using the id from `api-key list` (not the secret). `add` and `remove` take one or more method-and-path pairs. `remove` fails if the key was not allowed to make that call. The command then prints what the key is allowed to call.
225
+
226
+ ```bash
227
+ anybuild api-key scope list
228
+ anybuild api-key scope add \
229
+ GET my_app/invoice GET 'my_app/invoice(*)' \
230
+ POST my_app/invoice PATCH 'my_app/invoice(*)' \
231
+ POST my_app/invoice/submit POST 'my_app/invoice(*)/submit' \
232
+ DELETE 'my_app/invoice(*)'
233
+ anybuild api-key scope remove --id <api_key_id> DELETE 'my_app/invoice(*)'
234
+ ```
235
+
236
+ An unscoped key may already call every open endpoint. `scope list` says so, and `scope add` / `scope remove` leave the key unchanged.
154
237
 
155
238
  #### Calling
156
239
 
@@ -188,7 +271,7 @@ Run project commands (`pull`, `push`, `status`, `validate`) from inside a cloned
188
271
  ## Security
189
272
 
190
273
  - Sessions and API keys live in `~/.ab/` with restrictive file permissions on Unix. Do not share or commit that folder.
191
- - `anybuild api-key set` only runs in a terminal (hidden input), so a key is always stored by a person. The CLI never prints a stored key.
274
+ - `anybuild api-key set` only runs in a terminal (hidden input). `api-key create` prints a new secret once; `show` never prints a stored key. `create --use` stores that key without a prompt, with writes off unless `--allow-writes`.
192
275
  - On shared machines, run `anybuild logout <host-url>` when done.
193
276
  - Avoid `--debug` in shared or CI logs.
194
277
 
@@ -6,6 +6,8 @@ export declare function isWriteMethod(method: ApiMethod): boolean;
6
6
  export declare function isValidApiKey(value: string): boolean;
7
7
  /** odk_<key id>_… — the key id is not secret, the rest is never shown. */
8
8
  export declare function maskApiKey(value: string): string;
9
+ /** The public id between `odk_` and the secret. It is not a secret. */
10
+ export declare function apiKeyId(value: string): string;
9
11
  /**
10
12
  * The URL is always `<api_url>/api/<path>` of the project, so a stored key is only ever sent to that host.
11
13
  * `path` may be given with or without the leading `/api/`; it may carry a query string.
@@ -1 +1 @@
1
- {"version":3,"file":"entity-api.d.ts","sourceRoot":"","sources":["../../src/api/entity-api.ts"],"names":[],"mappings":"AAGA,8GAA8G;AAC9G,eAAO,MAAM,WAAW,6CAA8C,CAAC;AACvE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAMrD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CASnE;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAExD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MA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
24
24
  return match ? `${match[1]}_…` : "odk_…";
25
25
  }
26
+ /** The public id between `odk_` and the secret. It is not a secret. */
27
+ export function apiKeyId(value) {
28
+ const match = /^odk_([A-Za-z0-9-]+)_[A-Za-z0-9_-]+$/.exec(value);
29
+ const id = match?.[1];
30
+ if (!id) {
31
+ throw new AbCliError("CONFIG", "That is not an Anybuild API key (expected odk_<id>_<secret>).");
32
+ }
33
+ return id;
34
+ }
26
35
  /**
27
36
  * The URL is always `<api_url>/api/<path>` of the project, so a stored key is only ever sent to that host.
28
37
  * `path` may be given with or without the leading `/api/`; it may carry a query string.
@@ -1 +1 @@
1
- {"version":3,"file":"entity-api.js","sourceRoot":"","sources":["../../src/api/entity-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEvD,8GAA8G;AAC9G,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAGvE,MAAM,UAAU,GAAG,OAAO,CAAC;AAC3B,MAAM,eAAe,GAAG,oCAAoC,CAAC;AAC7D,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAEnC,MAAM,UAAU,cAAc,CAAC,KAAyB;IACtD,MAAM,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAClD,IAAI,CAAE,WAAiC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,UAAU,CAClB,QAAQ,EACR,yBAAyB,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CACvF,CAAC;IACJ,CAAC;IACD,OAAO,MAAmB,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,aAA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K,IAAI,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YAC9D,OAAO,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ;gBAC1C,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE;gBACjD,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;QAC3B,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,WAAW;IACb,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/commands/api-key.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA0GjD,eAAO,MAAM,MAAM,EAAE,cAoBpB,CAAC"}
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/commands/api-key.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAuajD,eAAO,MAAM,MAAM,EAAE,cAyCpB,CAAC"}