@anybuild-ai/ab 0.7.0 → 0.8.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 (113) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +102 -3
  3. package/dist/cli.js +0 -0
  4. package/dist/commands/api-key.d.ts.map +1 -1
  5. package/dist/commands/api-key.js +166 -1
  6. package/dist/commands/api-key.js.map +1 -1
  7. package/dist/commands/index.d.ts.map +1 -1
  8. package/dist/commands/index.js +2 -0
  9. package/dist/commands/index.js.map +1 -1
  10. package/dist/commands/mail.d.ts +3 -0
  11. package/dist/commands/mail.d.ts.map +1 -0
  12. package/dist/commands/mail.js +99 -0
  13. package/dist/commands/mail.js.map +1 -0
  14. package/dist/commands/status.d.ts.map +1 -1
  15. package/dist/commands/status.js +9 -1
  16. package/dist/commands/status.js.map +1 -1
  17. package/dist/export/import-batch.d.ts +17 -1
  18. package/dist/export/import-batch.d.ts.map +1 -1
  19. package/dist/export/import-batch.js +162 -17
  20. package/dist/export/import-batch.js.map +1 -1
  21. package/dist/export/not-exported.d.ts +23 -0
  22. package/dist/export/not-exported.d.ts.map +1 -0
  23. package/dist/export/not-exported.js +49 -0
  24. package/dist/export/not-exported.js.map +1 -0
  25. package/dist/export/path-based-status.d.ts +3 -2
  26. package/dist/export/path-based-status.d.ts.map +1 -1
  27. package/dist/export/path-based-status.js +4 -3
  28. package/dist/export/path-based-status.js.map +1 -1
  29. package/dist/export/resource-files.d.ts +21 -0
  30. package/dist/export/resource-files.d.ts.map +1 -0
  31. package/dist/export/resource-files.js +62 -0
  32. package/dist/export/resource-files.js.map +1 -0
  33. package/dist/export/schema-json.d.ts +7 -1
  34. package/dist/export/schema-json.d.ts.map +1 -1
  35. package/dist/export/schema-json.js +105 -1
  36. package/dist/export/schema-json.js.map +1 -1
  37. package/dist/export/status.d.ts +2 -0
  38. package/dist/export/status.d.ts.map +1 -1
  39. package/dist/export/status.js +58 -15
  40. package/dist/export/status.js.map +1 -1
  41. package/dist/export/sync.d.ts.map +1 -1
  42. package/dist/export/sync.js +39 -0
  43. package/dist/export/sync.js.map +1 -1
  44. package/dist/export/types.d.ts +26 -0
  45. package/dist/export/types.d.ts.map +1 -1
  46. package/dist/export/working-dirs.d.ts +38 -0
  47. package/dist/export/working-dirs.d.ts.map +1 -1
  48. package/dist/export/working-dirs.js +128 -2
  49. package/dist/export/working-dirs.js.map +1 -1
  50. package/dist/export/working-tree-validation.d.ts +1 -1
  51. package/dist/export/working-tree-validation.d.ts.map +1 -1
  52. package/dist/export/working-tree-validation.js +25 -4
  53. package/dist/export/working-tree-validation.js.map +1 -1
  54. package/dist/identity/identity-api.d.ts +2 -0
  55. package/dist/identity/identity-api.d.ts.map +1 -1
  56. package/dist/identity/identity-api.js +9 -4
  57. package/dist/identity/identity-api.js.map +1 -1
  58. package/dist/router.d.ts.map +1 -1
  59. package/dist/router.js +2 -1
  60. package/dist/router.js.map +1 -1
  61. package/package.json +1 -1
  62. package/dist/api/factory.d.ts +0 -8
  63. package/dist/api/factory.d.ts.map +0 -1
  64. package/dist/api/factory.js +0 -9
  65. package/dist/api/factory.js.map +0 -1
  66. package/dist/api/index.d.ts +0 -4
  67. package/dist/api/index.d.ts.map +0 -1
  68. package/dist/api/index.js +0 -3
  69. package/dist/api/index.js.map +0 -1
  70. package/dist/api/stub.d.ts +0 -7
  71. package/dist/api/stub.d.ts.map +0 -1
  72. package/dist/api/stub.js +0 -30
  73. package/dist/api/stub.js.map +0 -1
  74. package/dist/api/types.d.ts +0 -16
  75. package/dist/api/types.d.ts.map +0 -1
  76. package/dist/api/types.js +0 -2
  77. package/dist/api/types.js.map +0 -1
  78. package/dist/artifacts/baseline-types.d.ts +0 -10
  79. package/dist/artifacts/baseline-types.d.ts.map +0 -1
  80. package/dist/artifacts/baseline-types.js +0 -2
  81. package/dist/artifacts/baseline-types.js.map +0 -1
  82. package/dist/artifacts/baseline.d.ts +0 -4
  83. package/dist/artifacts/baseline.d.ts.map +0 -1
  84. package/dist/artifacts/baseline.js +0 -55
  85. package/dist/artifacts/baseline.js.map +0 -1
  86. package/dist/artifacts/canonical-json.d.ts +0 -3
  87. package/dist/artifacts/canonical-json.d.ts.map +0 -1
  88. package/dist/artifacts/canonical-json.js +0 -13
  89. package/dist/artifacts/canonical-json.js.map +0 -1
  90. package/dist/artifacts/disk.d.ts +0 -6
  91. package/dist/artifacts/disk.d.ts.map +0 -1
  92. package/dist/artifacts/disk.js +0 -45
  93. package/dist/artifacts/disk.js.map +0 -1
  94. package/dist/artifacts/hash-content.d.ts +0 -4
  95. package/dist/artifacts/hash-content.d.ts.map +0 -1
  96. package/dist/artifacts/hash-content.js +0 -14
  97. package/dist/artifacts/hash-content.js.map +0 -1
  98. package/dist/artifacts/locations.d.ts +0 -3
  99. package/dist/artifacts/locations.d.ts.map +0 -1
  100. package/dist/artifacts/locations.js +0 -9
  101. package/dist/artifacts/locations.js.map +0 -1
  102. package/dist/artifacts/pull.d.ts +0 -4
  103. package/dist/artifacts/pull.d.ts.map +0 -1
  104. package/dist/artifacts/pull.js +0 -36
  105. package/dist/artifacts/pull.js.map +0 -1
  106. package/dist/artifacts/status.d.ts +0 -7
  107. package/dist/artifacts/status.d.ts.map +0 -1
  108. package/dist/artifacts/status.js +0 -47
  109. package/dist/artifacts/status.js.map +0 -1
  110. package/dist/export/checksum-diagnostics.d.ts +0 -7
  111. package/dist/export/checksum-diagnostics.d.ts.map +0 -1
  112. package/dist/export/checksum-diagnostics.js +0 -43
  113. package/dist/export/checksum-diagnostics.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ - Writable `be/identity/providers/<provider_id>.json` (sign-in providers: `kind` `google`, `microsoft` or `oidc`, `client_id`, `issuer`, `tenant`, `scopes`, `trust_email`, `label`). Create/update/delete on push; a file never holds the client secret; delete is refused while a portal still offers the provider. Portals and Liquid sites turn providers on with `ui_application_settings.sign_in.providers`; the portal push prints the redirect URIs to register.
6
+ - `anybuild api-key identity-provider <be/identity/providers/file.json>` stores a pushed provider's client secret in this environment (hidden prompt, or one line on stdin). Security administrators only. Never shown again, never in files.
7
+ - Push prints the server's `info` lines, for example `Rebuilt site(s): …` and `Translations published; rebuilt: …`.
8
+ - Translation files also list the platform texts the application uses (`"platform": true`); a value replaces the platform's translation for this application only.
9
+ - Writable `be/mail/templates/<template_id>.json` (mail templates: `subject`, `html`, optional `text`, `variables` with sample values; Liquid — plain `{{ placeholder }}` HTML is enough) and `be/mail/providers/<provider_id>.json` (mail providers: `kind` `smtp`, `settings` `{ host, port, secure, account }`, `from_address`, `from_name`, `reply_to`, `is_default`). The file name is the key. Create/update/delete on push, sent after web routes; push renders each template with its sample values and refuses one that does not render; a provider file never holds a password (refused). Templates override the built-in account mails (`account.login_code`, `account.recover_password`, `account.verify`, …) or are the application's own (`order.confirmed`), sent with `api.mail.send({ template: '<template id>', to, data })` from PLV8 or Node (by the template's own application's default provider unless `provider: '<provider id>'`; templates and providers are global — any application may use another's).
10
+ - `anybuild api-key mail-provider <be/mail/providers/file.json>` stores a pushed provider's password / API key in this environment (hidden prompt, or one line on stdin). Security administrators only (`identity/key`). Never shown again, never in files.
11
+ - `anybuild mail templates` lists the templates the application can use and where each comes from (application, environment, built-in); `anybuild mail send-test [<template_id>] --to <address> [--provider <id>] [--locale <tag>]` sends one with its sample values. Host routes `POST /api/cli/v1/mail/test` and `POST /api/cli/v1/mail/templates` (one `web_routes` record `POST /api/cli/v1/mail/*` → cli_integration, secured like `import/files`).
12
+ - Portal files (LitElement and Liquid) carry an optional top-level `session` block: `ttl_seconds`, `sliding`, `lockout` (`attempts`, `window_minutes`, `lock_minutes`) and `remember_me_ttl` — the portal's session and login policy, set on push (a block that leaves a value out resets it; no block keeps what is stored) and pulled only when it differs from the defaults (12 h, sliding, no lockout, no remember me). Liquid sites: `ui_application_settings.site.members` turns on member login (built-in `member_login` / `member_logout` forms, `"session": "member"` actions, `GET /_site/me`); see `meta/ui/liquid/RULES.md` (Members). Server-side; no CLI change.
13
+ - Writable `be/web_routes/*.json`: the application's own HTTP routes (webhooks, feeds, custom APIs under `/api/`), named `<method>_<path slug>.json` (`*` method → `any_`, a final `*` in the path → `_all`). `access` is `public`, `api` (API key and/or token) or `webhook` (`run_as` service account, `allowed_ips`, token/HMAC headers, `"hmac": true|false`). Create/update/delete on push, sent last so the functions they run are applied first; validate runs the server checks. Routes generated from entity `endpoints` and other applications' routes are never pulled or changed. Catalog `meta/be/catalog/web_routes.json`, rules `meta/be/web_routes/RULES.md`.
14
+ - `anybuild api-key webhook <be/web_routes/file.json> --token | --hmac` sets a new webhook token (only its hash is stored) or HMAC secret for a pushed route and prints it once. Security administrators only (same `identity/key` host route). Secrets never appear in files, pull or status; push and validate warn while one is missing.
15
+ - Writable `resources/images/<name>.json` and `resources/files/<name>.json`: files shipped with the application (a logo, a price list). Each is a JSON file (`id`, `is_public`, images also `variations`) with its binary next to it under the same name (`logo.json` + `logo.png`); the name is the file name. Push uploads the binary with the JSON, pull writes both, and status uses one checksum over the JSON and the binary. A binary without its JSON, or two binaries with the same name, is refused.
16
+ - Site actions (`ui/actions/`) and every `ui/content/<kind>/` folder (for example `groups`, the member groups) are tracked and pushed with the site content.
17
+ - Pull no longer stops when the server cannot export a file: it skips the file, prints a warning and records it in `.ab/not-exported.json`. `status` lists such files under "Not exported by the server" instead of Deleted, and push does not delete them on the server. A file leaves the list as soon as a later pull exports it.
18
+ - Push order puts every backend change before the UI: backend code (in chunks), schema (auto-increments, field types, entities, views), UI code and templates (in chunks), navigation, portals, site content, translations, AnyInput profiles, scenarios, scenario tests, scheduled jobs, web routes, then mail templates, mail providers and sign-in providers. Resources go with the UI files. Site content (`ui/page_types`, `ui/content/*`, `ui/actions`) goes in one request after portals: the content publish gate checks it against the site's live settings, so a portal change in the same push (for example new locales) is live first, and a menu and the page it links are checked together.
19
+ - Translations are an application artefact: `ui/translations/<iso>.json` (one per language the application's portals use) lists every text of the application's widgets, navigation and site content with its translation (`value: ""` = not translated yet), pulled and pushed like any file. A push replaces that language's translations with the file, after site content, then publishes the catalogs once for the application. A push that adds or retires texts writes the updated translation files back (where unchanged locally). The push conflict check covers translations only (`translation_checksum` in the manifest, sent as `base_translation_checksum`), so new untranslated texts never conflict. Recorded in Push History and packaged (`import_translations`, then a catalog publish).
20
+ - `ui/liquid/{layouts,pages,blocks,snippets}/*.liquid` (Liquid site templates) are tracked like backend files: by path, with identity from the same `const __meta = { thing_id: … }` block (inside a `{% comment %}`). `status` checks only the file type and `__meta`; `validate` and `push` have the server check syntax, references and kinds. Files the server stores in canonical form are written back after push.
21
+
3
22
  ## 0.7.0
4
23
 
5
24
  - 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.
package/README.md CHANGED
@@ -63,8 +63,12 @@ A normal **pull** only downloads files whose last snapshot (`.ab/file-state.json
63
63
  anybuild pull --force be/views/transport_events.json
64
64
  ```
65
65
 
66
+ If the server cannot export a file, pull skips it with a warning instead of stopping. `status` lists it under **Not exported by the server** (not as Deleted), and push leaves it alone on the server. The server log has the reason; once it is fixed there, the next pull downloads the file.
67
+
66
68
  If a push includes **deletions**, the CLI lists them and asks for confirmation. Pass `--yes` (or `-y`) to skip the prompt (required in non-interactive / CI use).
67
69
 
70
+ A push goes in this order, so what a file depends on is live before it: backend code (in chunks), schema (auto-increments, field types, entities, views), UI code, templates and resources (in chunks), navigation, portals, site content (`ui/page_types`, `ui/content/*`, `ui/actions`, in one request), translations (`ui/translations`, in one request), AnyInput profiles, scenarios, scenario tests, scheduled jobs, web routes, then mail templates, mail providers and sign-in providers. Site content goes after portals because the publish gate checks it against the site's live settings: a portal change in the same push (new locales, say) is live first, and a menu and the page it links are checked together.
71
+
68
72
  Pass `-m` / `--message` to record an optional note on the server **Push History** for that command (one history row even when the upload is split into several HTTP batches). `validate` does not write history. Older CLI versions omit the note and still apply files.
69
73
 
70
74
  ## Working trees
@@ -76,6 +80,11 @@ Pass `-m` / `--message` to record an optional note on the server **Push History*
76
80
  | `ui/lit/components/` | Custom Lit widgets (`.js`) and theme JSON |
77
81
  | `ui/navigation/` | Navigation instance JSON |
78
82
  | `ui/portals/` | Portal (`ui_application`) JSON |
83
+ | `ui/liquid/{layouts,pages,blocks,snippets}/` | Liquid site templates (`.liquid`, with a `__meta` block). Format: `meta/ui/liquid/RULES.md` |
84
+ | `ui/page_types/` | Page types of a Liquid site (layout and regions) |
85
+ | `ui/content/{pages,menus,globals,groups}/` | Site content: composed pages, menus, globals, member groups. Published through the site's publish gate |
86
+ | `ui/actions/` | Site actions (forms and buttons that run a command). Format: `meta/ui/liquid/RULES.md` |
87
+ | `ui/translations/` | The application's translations, one file per language (`<iso>.json`). See [Translations](#translations) |
79
88
  | `be/plv8/` | PLV8 functions (`.js`) |
80
89
  | `be/node/` | Node modules (`.js`) |
81
90
  | `be/entities/` | Entity authoring JSON |
@@ -83,24 +92,48 @@ Pass `-m` / `--message` to record an optional note on the server **Push History*
83
92
  | `be/auto_increments/` | Auto-increment sequence JSON |
84
93
  | `be/field_types/` | Current-application field type JSON (storage and lookups) |
85
94
  | `be/scheduled_jobs/` | Scheduled job (cron) JSON. Runs a PLV8 function or a Node module |
95
+ | `be/web_routes/` | The application's own HTTP routes (webhooks, feeds, custom APIs under `/api/`), named `<method>_<path>.json`. Routes generated from entity `endpoints` are not here |
86
96
  | `be/scenarios/` | AnyInput scenarios (readable JSON) |
87
97
  | `be/capability_profiles/` | AnyInput capability profiles (`<type>.<name>.json`) |
88
98
  | `be/scenario_tests/` | AnyInput scenario test suites (`<suite_id>.json`), run with `anybuild test scenarios` |
99
+ | `be/mail/templates/` | Mail templates (`<template_id>.json`: `subject`, `html`, optional `text`, `variables` with sample values). Override the built-in account mails or are the application's own. See [Mail](#mail) |
100
+ | `be/mail/providers/` | Mail providers (`<provider_id>.json`, SMTP). Never hold a password. See [Mail](#mail) |
101
+ | `be/identity/providers/` | Sign-in providers (`<provider_id>.json`: Google, Microsoft or another OpenID Connect provider). Never hold the client secret. See [Sign-in providers](#sign-in-providers) |
102
+ | `resources/images/`, `resources/files/` | Files shipped with the application (a logo, a price list): `<name>.json` with the binary next to it under the same name (`logo.json` + `logo.png`). See [Resources](#resources) |
89
103
 
90
104
  `meta/` is **read-only** (catalogs, generated schema dumps, default entity widgets, AI rule files). Do not put source entity/view JSON there.
91
105
 
92
106
  **Entities, views, auto-increments, field types, scheduled jobs, navigation, and portals**
93
107
 
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.
108
+ - 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/be/web_routes/RULES.md`, `meta/ui/navigation/RULES.md`, and `meta/ui/portals/RULES.md` after clone/pull.
95
109
  - New views are always **code mode** (SQL + named sources).
96
110
  - Custom **designer** views export as the same JSON. Editing one and pushing **converts it to code** on the server. Untouched designer views stay designer.
97
111
  - Default entity/component views are **not** under `be/views/` (they stay in `meta/`).
98
112
  - 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.
99
113
  - 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.
114
+ - 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 the one in [Workflow](#workflow): backend code, then schema, then UI, navigation, portals and site content, then AnyInput; scheduled jobs are the last POST, so a PLV8 or Node module in the same push already exists.
101
115
  - After a schema, navigation, or portal push, run **`anybuild pull`**. Catalogs under `meta/be/catalog/` refresh only on pull.
102
116
 
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.
117
+ Checksums: `.json` under `ui/lit`, `ui/navigation`, `ui/portals`, `ui/page_types`, `ui/content`, `ui/actions`, `ui/translations`, `be/entities`, `be/views`, `be/auto_increments`, `be/field_types`, `be/scheduled_jobs`, `be/web_routes`, `be/mail`, `be/identity/providers`, `be/scenarios`, `be/capability_profiles`, and `be/scenario_tests` uses canonical JSON; a resource's checksum covers its JSON and its binary; other files use raw UTF-8.
118
+
119
+ ### Resources
120
+
121
+ Images and files that belong to the application (a logo, a price list, a hero picture) live under `resources/images/` and `resources/files/`, so they travel with the application to every environment.
122
+
123
+ ```
124
+ resources/images/logo.json resources/images/logo.png
125
+ resources/files/price-list.json resources/files/price-list.pdf
126
+ ```
127
+
128
+ ```json
129
+ { "id": "<new uuid>", "is_public": true }
130
+ ```
131
+
132
+ - `id` is the record's thing id on every environment; pages, blocks and code refer to the resource by it. The name is the file name.
133
+ - Images may set `variations` (the sizes made on upload); leaving it out gives the platform's default sizes, `[]` gives none.
134
+ - Push uploads the binary with the JSON; pull writes both. Changing either one shows the resource as Modified.
135
+ - Keep exactly one binary next to each JSON file. A binary without its JSON is refused.
136
+ - Delete both files and push to delete the resource (push asks for confirmation, as for other deletions).
104
137
 
105
138
  ## Commands
106
139
 
@@ -121,6 +154,11 @@ Checksums: `.json` under `ui/lit`, `ui/navigation`, `ui/portals`, `be/entities`,
121
154
  | `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
155
  | `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
156
  | `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 |
157
+ | `anybuild api-key webhook <be/web_routes/file.json> --token \| --hmac` | Set a new token or HMAC secret for a pushed webhook route (security administrator). Prints it once |
158
+ | `anybuild api-key mail-provider <be/mail/providers/file.json>` | Store the password or API key of a pushed mail provider in this environment (security administrator). Hidden prompt or one line on stdin; never shown again |
159
+ | `anybuild api-key identity-provider <be/identity/providers/file.json>` | Store the client secret of a pushed sign-in provider in this environment (security administrator). Hidden prompt or one line on stdin; never shown again |
160
+ | `anybuild mail templates` | List the mail templates the application can use and where each comes from (application, environment, built-in) |
161
+ | `anybuild mail send-test [<template_id>] --to <address> [--provider <id>] [--locale <tag>]` | Send one template (default `mail.test`) with its sample values. Push the template or provider first |
124
162
  | `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 |
125
163
 
126
164
  Also: `anybuild help`, `anybuild -v` / `--version`.
@@ -134,6 +172,56 @@ A suite (`be/scenario_tests/<suite_id>.json`) lists requests (one message or a s
134
172
  - Suites are pushed and pulled like scenarios (push checks scenario and slot names, outcomes, and that no test message copies a scenario example).
135
173
  - Allowed for users whose role is a system designer, while the application is in development mode in that environment.
136
174
 
175
+ ### Translations
176
+
177
+ The application's translations are files like any other: `ui/translations/<iso>.json`, one per language that a portal of the application uses (its `i18n.locales` in `ui/portals/<id>.json`, English excepted: English is the source). A file lists **every** text of the application's own widgets, navigation and site content: `this.localize()` texts in Lit widgets, Liquid `{{ 'Text' | t }}` strings, block texts, page titles and descriptions, menu labels and globals. It also lists the platform texts the application uses (see below). Entity data (multilanguage fields) is translated separately, through the platform's data translation.
178
+
179
+ ```json
180
+ {
181
+ "id": "<file id, from pull>",
182
+ "language": "pt",
183
+ "items": [
184
+ { "source": "All rights reserved", "used_in": "Site Layout", "value": "Todos os direitos reservados" },
185
+ { "source": "Checkout", "scenario": "cart", "used_in": "Cart widget", "value": "" },
186
+ { "source": "Welcome", "unique": true, "reference_id": "<widget thing_id>", "used_in": "Home page", "value": "Bem-vindo" }
187
+ ]
188
+ }
189
+ ```
190
+
191
+ - `value: ""` means not translated yet: fill it in and push. `used_in` (where the text is used) is information only; push ignores it.
192
+ - Keep `source`, `scenario`, `unique` and `reference_id` as pulled; the English text is the key.
193
+ - The file is the **whole set** for that language: emptying a value (or removing the entry) removes that translation.
194
+ - New texts appear in the file when they are pushed (a widget, template or content push): the push writes the updated translation files back, unless you have edited your copy since the last pull (then pull after pushing your edits). Texts no longer used drop out.
195
+ - **Push** imports the files after site content, then publishes the catalogs once for the application (Lit portals and Liquid sites pick the translations up; sites are rebuilt). With `--debug`, push prints the written / removed / unchanged counts and the files it refreshed. An entry whose text the application does not use is skipped with a warning.
196
+ - **Conflicts** are about translations only: a push is rejected when a translation changed on the server since your last pull (on the platform's translation page, or another push). New or removed untranslated texts never cause a conflict. On a conflict, pull, redo your changes and push.
197
+ - A file cannot be deleted by push; a language's file appears when a portal adds the language to `i18n.locales` (push the portal, then pull) and disappears when no portal uses it.
198
+ - There is no separate rebuild or publish command: push prints what it applied, for example `Rebuilt site(s): …` or `Translations published; rebuilt: …`.
199
+ - Pushes of translation files are recorded in Push History and packaged like other files (package step: the platform `import_translations` action with the file, then one catalog publish per push).
200
+ - The file also lists the **platform texts** the application uses (buttons, account forms, error messages), marked `"platform": true`. Leave them empty to keep the platform's translation; fill one in to replace it for this application only. Unique platform texts cannot be changed.
201
+ - Push and build output of a Liquid site say per locale how many texts are not translated yet (`Translations (pt): …`) and which pages and routes have no path in a locale (`Not in pt: …`).
202
+
203
+ ### Mail
204
+
205
+ - `be/mail/templates/<template_id>.json` holds `subject`, `html`, optional `text` (Liquid; plain `{{ placeholder }}` HTML is enough) and `variables` with sample values. Push renders each template with its samples and refuses one that does not render.
206
+ - A template with a built-in id (`account.login_code`, `account.recover_password`, `account.verify`, `account.sign_in_connect`, …) replaces that account mail; any other id is the application's own, sent with `api.mail.send({ template: '<template_id>', to, data })` from PLV8 or Node.
207
+ - `be/mail/providers/<provider_id>.json` describes an SMTP provider (`kind`, `settings` `{ host, port, secure, account }`, `from_address`, `from_name`, `reply_to`, `is_default`). The file never holds the password: after the push a security administrator runs `anybuild api-key mail-provider be/mail/providers/<file>.json`.
208
+ - `anybuild mail templates` shows which templates the application can use; `anybuild mail send-test` sends one to check it.
209
+ - Secrets are not copied when the application is packaged to another environment: set them there too.
210
+
211
+ ### Sign-in providers
212
+
213
+ Portals (LitElement) and Liquid sites can offer sign-in with Google, Microsoft or another OpenID Connect provider.
214
+
215
+ 1. Describe the provider in `be/identity/providers/<provider_id>.json` (`kind` `google`, `microsoft` or `oidc`, `client_id`, and for the others `issuer` / `tenant`, `scopes`, `label`). The file never holds the client secret. Format: `AGENTS.md` ("Sign-in providers") after clone/pull.
216
+ 2. Push it, then a security administrator stores the secret:
217
+ ```bash
218
+ anybuild api-key identity-provider be/identity/providers/google.json
219
+ ```
220
+ 3. Turn it on per portal or site: `"ui_application_settings": { "sign_in": { "providers": ["google"] } }` in the portal file. A Liquid site sets its own options under `members.sign_in` (see `meta/ui/liquid/RULES.md`).
221
+ 4. Pushing the portal prints the redirect URIs to register with the provider.
222
+
223
+ A provider cannot be deleted while a portal still offers it. Secrets are not copied when the application is packaged to another environment: run step 2 there too.
224
+
137
225
  ### Calling entity endpoints
138
226
 
139
227
  Entities with endpoints are served as an OData API under `/api/<path>`. `anybuild api` calls them for testing and seeding, for you or for an AI agent working in the project.
@@ -235,6 +323,17 @@ anybuild api-key scope remove --id <api_key_id> DELETE 'my_app/invoice(*)'
235
323
 
236
324
  An unscoped key may already call every open endpoint. `scope list` says so, and `scope add` / `scope remove` leave the key unchanged.
237
325
 
326
+ #### Webhook secrets
327
+
328
+ A route in `be/web_routes/` with `"access": "webhook"` refuses every call until it has a token (and, with `"hmac": true`, an HMAC secret). Secrets are never in files. After the route is pushed, a security administrator runs, inside the project:
329
+
330
+ ```bash
331
+ anybuild api-key webhook be/web_routes/post_webhooks_store_hours.json --token
332
+ anybuild api-key webhook be/web_routes/post_webhooks_store_hours.json --hmac
333
+ ```
334
+
335
+ Each prints the new secret once, to give to the calling system; the previous one stops working. Only the token's hash is stored. `--hmac` needs `"hmac": true` pushed first; `"hmac": false` and a push removes the HMAC secret. Secrets are not copied when the application is packaged to another environment: run the commands there too. Callers send the token in `X-Webhook-Token` (or the route's `token_header`) and sign with `X-Webhook-Timestamp: <unix seconds>` and `X-Webhook-Signature: v1=<hex HMAC-SHA256(secret, "<timestamp>.<raw body>")>`. Push and validate warn while a secret is missing. See `meta/be/web_routes/RULES.md`.
336
+
238
337
  #### Calling
239
338
 
240
339
  ```bash
package/dist/cli.js CHANGED
File without changes
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../src/commands/api-key.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAukBjD,eAAO,MAAM,MAAM,EAAE,cAkDpB,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { apiKeyId, callEntityApi, errorMessage, isValidApiKey, maskApiKey, parseApiMethod, } from "../api/entity-api.js";
2
2
  import { getApiKeyFromGlobal, removeApiKeyFromGlobal, upsertApiKeyInGlobal, } from "../config/global-config.js";
3
- import { loadProjectConfigFromCwd } from "../config/project-config.js";
3
+ import { findProjectRoot, loadProjectConfigFromCwd } from "../config/project-config.js";
4
+ import { existsSync, readFileSync } from "node:fs";
5
+ import { relative, resolve, sep } from "node:path";
4
6
  import { sessionKey } from "../config/session-key.js";
5
7
  import { AbCliError, CLI_PROGRAM } from "../errors.js";
6
8
  import { createClientForCwd } from "../http/client.js";
@@ -18,12 +20,20 @@ const USAGE = `Usage:
18
20
  ${CLI_PROGRAM} api-key scope list [--id <api_key_id>]
19
21
  ${CLI_PROGRAM} api-key scope add [--id <api_key_id>] <METHOD> <path> [<METHOD> <path> ...]
20
22
  ${CLI_PROGRAM} api-key scope remove [--id <api_key_id>] <METHOD> <path> [<METHOD> <path> ...]
23
+ ${CLI_PROGRAM} api-key webhook <be/web_routes/file.json> --token | --hmac
24
+ ${CLI_PROGRAM} api-key mail-provider <be/mail/providers/file.json>
25
+ ${CLI_PROGRAM} api-key identity-provider <be/identity/providers/file.json>
21
26
 
22
27
  "set", "show", and "remove" only change the key stored for "${CLI_PROGRAM} api" on this host.
23
28
  "create", "list", "revoke", and "scope" use the login session. The server rejects them unless that user is a security administrator.
24
29
  Omitted --user is ai_agent. "scope" changes the stored key unless --id is set.
25
30
  "create" prints the secret once. --use stores it for "${CLI_PROGRAM} api" with no prompt; writes stay off unless --allow-writes.
26
31
  An unscoped key already reaches every route, so "scope" does not change it.
32
+ "webhook" sets a new secret for a pushed webhook route (access "webhook"): --token a new token (only its hash is stored),
33
+ --hmac a new HMAC secret (the route needs "hmac": true). It prints the secret once; the old one stops working. Security administrators only.
34
+ "mail-provider" asks for the password / API key of a pushed mail provider (hidden input, or one line on stdin) and stores it
35
+ with the platform's secrets in this environment; it is never shown again. Security administrators only.
36
+ "identity-provider" does the same for the client secret of a pushed sign-in provider (Google, Microsoft, OpenID Connect).
27
37
  Run this inside a project directory.`;
28
38
  function usage() {
29
39
  console.error(USAGE);
@@ -376,6 +386,152 @@ async function scopeCommand(args) {
376
386
  }
377
387
  printScopeLines(result);
378
388
  }
389
+ function readWebRouteFile(fileArg) {
390
+ const root = findProjectRoot();
391
+ if (root === null) {
392
+ throw new AbCliError("CONFIG", `No .ab/config.json found. Run this inside a project.\n${USAGE}`);
393
+ }
394
+ const abs = resolve(fileArg);
395
+ const rel = relative(root, abs).split(sep).join("/");
396
+ if (rel.startsWith("..") || !rel.startsWith("be/web_routes/") || !rel.toLowerCase().endsWith(".json")) {
397
+ throw new AbCliError("CONFIG", `${fileArg} is not a file under be/web_routes/.`);
398
+ }
399
+ if (!existsSync(abs)) {
400
+ throw new AbCliError("CONFIG", `${rel} does not exist.`);
401
+ }
402
+ let body;
403
+ try {
404
+ body = JSON.parse(readFileSync(abs, "utf8"));
405
+ }
406
+ catch (e) {
407
+ throw new AbCliError("VALIDATION", `${rel}: invalid JSON (${e instanceof Error ? e.message : String(e)})`);
408
+ }
409
+ const record = asObject(body, rel);
410
+ const id = typeof record.id === "string" ? record.id.trim() : "";
411
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(id)) {
412
+ throw new AbCliError("VALIDATION", `${rel}: top-level id must be a UUID.`);
413
+ }
414
+ if (record.access !== "webhook") {
415
+ throw new AbCliError("VALIDATION", `${rel}: access is not "webhook".`);
416
+ }
417
+ return {
418
+ id,
419
+ method: typeof record.method === "string" ? record.method.toUpperCase() : "",
420
+ path: typeof record.path === "string" ? record.path : "",
421
+ rel,
422
+ };
423
+ }
424
+ async function webhookCommand(args) {
425
+ const token = args.includes("--token");
426
+ const hmac = args.includes("--hmac");
427
+ const rest = args.filter((arg) => arg !== "--token" && arg !== "--hmac");
428
+ rejectUnknown(rest);
429
+ if (rest.length !== 1 || token === hmac) {
430
+ throw new AbCliError("CONFIG", `Give one route file and exactly one of --token or --hmac.\n${USAGE}`);
431
+ }
432
+ const route = readWebRouteFile(rest[0] ?? "");
433
+ const project = loadProjectConfigFromCwd();
434
+ const client = await createClientForCwd();
435
+ const result = asObject(await postIdentity(client, "key", {
436
+ command: "webhook",
437
+ web_route_id: route.id,
438
+ kind: token ? "token" : "hmac",
439
+ application_id: project.application_id,
440
+ }), "Webhook secret");
441
+ const secret = requireString(result, "secret", "Webhook secret");
442
+ const method = typeof result.method === "string" ? result.method : route.method;
443
+ const path = typeof result.path === "string" ? result.path : route.path;
444
+ console.log(`${token ? "Webhook token" : "HMAC secret"} for ${method} ${path} (${route.rel}):`);
445
+ console.log(secret);
446
+ console.log(token
447
+ ? "Shown once. The caller sends it in the X-Webhook-Token header (or the route's token_header). The previous token no longer works."
448
+ : "Shown once. The caller signs each request with it (X-Webhook-Timestamp and v1=<HMAC-SHA256 of \"<timestamp>.<raw body>\">). The previous secret no longer works.");
449
+ }
450
+ function readMailProviderFile(fileArg, folder = "be/mail/providers/") {
451
+ const root = findProjectRoot();
452
+ if (root === null) {
453
+ throw new AbCliError("CONFIG", `No .ab/config.json found. Run this inside a project.\n${USAGE}`);
454
+ }
455
+ const abs = resolve(fileArg);
456
+ const rel = relative(root, abs).split(sep).join("/");
457
+ if (rel.startsWith("..") || !rel.startsWith(folder) || !rel.toLowerCase().endsWith(".json")) {
458
+ throw new AbCliError("CONFIG", `${fileArg} is not a file under ${folder}.`);
459
+ }
460
+ if (!existsSync(abs)) {
461
+ throw new AbCliError("CONFIG", `${rel} does not exist.`);
462
+ }
463
+ let body;
464
+ try {
465
+ body = JSON.parse(readFileSync(abs, "utf8"));
466
+ }
467
+ catch (e) {
468
+ throw new AbCliError("VALIDATION", `${rel}: invalid JSON (${e instanceof Error ? e.message : String(e)})`);
469
+ }
470
+ const record = asObject(body, rel);
471
+ const id = typeof record.id === "string" ? record.id.trim() : "";
472
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(id)) {
473
+ throw new AbCliError("VALIDATION", `${rel}: top-level id must be a UUID.`);
474
+ }
475
+ return { id, providerId: typeof record.provider_id === "string" ? record.provider_id : "", rel };
476
+ }
477
+ async function readStdinLine() {
478
+ const chunks = [];
479
+ for await (const chunk of process.stdin) {
480
+ chunks.push(typeof chunk === "string" ? Buffer.from(chunk) : chunk);
481
+ }
482
+ return Buffer.concat(chunks).toString("utf8").replace(/\r?\n$/, "");
483
+ }
484
+ async function mailProviderCommand(args) {
485
+ rejectUnknown(args);
486
+ if (args.length !== 1) {
487
+ throw new AbCliError("CONFIG", `Give one provider file.\n${USAGE}`);
488
+ }
489
+ const provider = readMailProviderFile(args[0] ?? "");
490
+ const secret = process.stdin.isTTY
491
+ ? await readSecretHidden(`Password / API key for mail provider ${provider.providerId || provider.rel}: `)
492
+ : await readStdinLine();
493
+ if (!secret) {
494
+ throw new AbCliError("CONFIG", "No secret given. Nothing was stored.");
495
+ }
496
+ const project = loadProjectConfigFromCwd();
497
+ const client = await createClientForCwd();
498
+ const result = asObject(await postIdentity(client, "key", {
499
+ command: "mail_provider",
500
+ provider_thing_id: provider.id,
501
+ secret,
502
+ application_id: project.application_id,
503
+ }), "Mail provider secret");
504
+ if (result.secret_set !== true) {
505
+ throw new AbCliError("HTTP", "The server did not confirm that the secret was stored.");
506
+ }
507
+ console.log(`Secret stored for mail provider ${typeof result.provider_id === "string" ? result.provider_id : provider.providerId} in this environment.`);
508
+ }
509
+ // I7f: the client secret of an identity provider (be/identity/providers), typed by a security administrator
510
+ async function identityProviderCommand(args) {
511
+ rejectUnknown(args);
512
+ if (args.length !== 1) {
513
+ throw new AbCliError("CONFIG", `Give one provider file.\n${USAGE}`);
514
+ }
515
+ const provider = readMailProviderFile(args[0] ?? "", "be/identity/providers/");
516
+ const secret = process.stdin.isTTY
517
+ ? await readSecretHidden(`Client secret for identity provider ${provider.providerId || provider.rel}: `)
518
+ : await readStdinLine();
519
+ if (!secret) {
520
+ throw new AbCliError("CONFIG", "No secret given. Nothing was stored.");
521
+ }
522
+ const project = loadProjectConfigFromCwd();
523
+ const client = await createClientForCwd();
524
+ const result = asObject(await postIdentity(client, "key", {
525
+ command: "identity_provider",
526
+ provider_thing_id: provider.id,
527
+ secret,
528
+ application_id: project.application_id,
529
+ }), "Identity provider secret");
530
+ if (result.secret_set !== true) {
531
+ throw new AbCliError("HTTP", "The server did not confirm that the secret was stored.");
532
+ }
533
+ console.log(`Client secret stored for identity provider ${typeof result.provider_id === "string" ? result.provider_id : provider.providerId} in this environment.`);
534
+ }
379
535
  export const apiKey = async (args) => {
380
536
  const [sub, ...flags] = args;
381
537
  if (sub === "--help" || sub === "-h" || sub === undefined) {
@@ -409,6 +565,15 @@ export const apiKey = async (args) => {
409
565
  else if (sub === "scope") {
410
566
  await scopeCommand(flags);
411
567
  }
568
+ else if (sub === "webhook") {
569
+ await webhookCommand(flags);
570
+ }
571
+ else if (sub === "identity-provider") {
572
+ await identityProviderCommand(flags);
573
+ }
574
+ else if (sub === "mail-provider") {
575
+ await mailProviderCommand(flags);
576
+ }
412
577
  else {
413
578
  usage();
414
579
  process.exitCode = 1;
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../src/commands/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,aAAa,EACb,UAAU,EACV,cAAc,GAEf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,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AAC;QAC5B,CAAC;aACI,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,cAAc,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;aACI,IAAI,GAAG,KAAK,mBAAmB,EAAE,CAAC;YACrC,MAAM,uBAAuB,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;aACI,IAAI,GAAG,KAAK,eAAe,EAAE,CAAC;YACjC,MAAM,mBAAmB,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC;aACI,CAAC;YACJ,KAAK,EAAE,CAAC;YACR,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,GAAG,WAAW,aAAa,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACvF,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAanD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAcnD,CAAC"}
@@ -4,6 +4,7 @@ import { clone } from "./clone.js";
4
4
  import { create } from "./create.js";
5
5
  import { login } from "./login.js";
6
6
  import { logout } from "./logout.js";
7
+ import { mail } from "./mail.js";
7
8
  import { pull } from "./pull.js";
8
9
  import { push } from "./push.js";
9
10
  import { status } from "./status.js";
@@ -22,6 +23,7 @@ export const commands = {
22
23
  test,
23
24
  api,
24
25
  "api-key": apiKey,
26
+ mail,
25
27
  user,
26
28
  };
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKzC,MAAM,CAAC,MAAM,QAAQ,GAAmC;IACtD,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,IAAI;IACJ,MAAM;IACN,IAAI;IACJ,QAAQ;IACR,IAAI;IACJ,GAAG;IACH,SAAS,EAAE,MAAM;IACjB,IAAI;CACL,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKzC,MAAM,CAAC,MAAM,QAAQ,GAAmC;IACtD,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,IAAI;IACJ,MAAM;IACN,IAAI;IACJ,QAAQ;IACR,IAAI;IACJ,GAAG;IACH,SAAS,EAAE,MAAM;IACjB,IAAI;IACJ,IAAI;CACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { CommandHandler } from "./types.js";
2
+ export declare const mail: CommandHandler;
3
+ //# sourceMappingURL=mail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../src/commands/mail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA8EjD,eAAO,MAAM,IAAI,EAAE,cAqBlB,CAAC"}