@beignet/cli 0.0.31 → 0.0.33
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/CHANGELOG.md +107 -0
- package/README.md +70 -17
- package/dist/check.d.ts +2 -0
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js +16 -0
- package/dist/check.js.map +1 -1
- package/dist/choices.d.ts +22 -2
- package/dist/choices.d.ts.map +1 -1
- package/dist/choices.js +62 -0
- package/dist/choices.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -0
- package/dist/config.js.map +1 -1
- package/dist/create-prompts.d.ts +6 -2
- package/dist/create-prompts.d.ts.map +1 -1
- package/dist/create-prompts.js +1 -1
- package/dist/create-prompts.js.map +1 -1
- package/dist/db.d.ts +5 -5
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +5 -5
- package/dist/db.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +386 -27
- package/dist/index.js.map +1 -1
- package/dist/inspect.d.ts +5 -0
- package/dist/inspect.d.ts.map +1 -1
- package/dist/inspect.js +805 -62
- package/dist/inspect.js.map +1 -1
- package/dist/make/inbox.d.ts.map +1 -1
- package/dist/make/inbox.js +5 -3
- package/dist/make/inbox.js.map +1 -1
- package/dist/make/payments.d.ts.map +1 -1
- package/dist/make/payments.js +58 -29
- package/dist/make/payments.js.map +1 -1
- package/dist/make/shared.d.ts +12 -3
- package/dist/make/shared.d.ts.map +1 -1
- package/dist/make/shared.js +52 -11
- package/dist/make/shared.js.map +1 -1
- package/dist/make/tenancy.d.ts.map +1 -1
- package/dist/make/tenancy.js +6 -4
- package/dist/make/tenancy.js.map +1 -1
- package/dist/make.d.ts.map +1 -1
- package/dist/make.js +136 -65
- package/dist/make.js.map +1 -1
- package/dist/outbox.d.ts +114 -1
- package/dist/outbox.d.ts.map +1 -1
- package/dist/outbox.js +190 -0
- package/dist/outbox.js.map +1 -1
- package/dist/preflight.d.ts +90 -0
- package/dist/preflight.d.ts.map +1 -0
- package/dist/preflight.js +423 -0
- package/dist/preflight.js.map +1 -0
- package/dist/provider-add.d.ts +10 -1
- package/dist/provider-add.d.ts.map +1 -1
- package/dist/provider-add.js +255 -16
- package/dist/provider-add.js.map +1 -1
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +2 -3
- package/dist/task.js.map +1 -1
- package/dist/templates/agents.d.ts.map +1 -1
- package/dist/templates/agents.js +6 -3
- package/dist/templates/agents.js.map +1 -1
- package/dist/templates/base.d.ts.map +1 -1
- package/dist/templates/base.js +5 -11
- package/dist/templates/base.js.map +1 -1
- package/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/index.js +2 -0
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/server.d.ts.map +1 -1
- package/dist/templates/server.js +10 -5
- package/dist/templates/server.js.map +1 -1
- package/dist/templates/shared.d.ts +5 -1
- package/dist/templates/shared.d.ts.map +1 -1
- package/dist/templates/shared.js +13 -1
- package/dist/templates/shared.js.map +1 -1
- package/dist/templates/testing.d.ts +5 -0
- package/dist/templates/testing.d.ts.map +1 -0
- package/dist/templates/testing.js +542 -0
- package/dist/templates/testing.js.map +1 -0
- package/dist/templates/todos.js +2 -2
- package/package.json +3 -2
- package/skills/app-structure/SKILL.md +12 -4
- package/src/check.ts +23 -0
- package/src/choices.ts +84 -0
- package/src/config.ts +4 -0
- package/src/create-prompts.ts +8 -2
- package/src/db.ts +12 -12
- package/src/index.ts +592 -37
- package/src/inspect.ts +1253 -156
- package/src/make/inbox.ts +5 -3
- package/src/make/payments.ts +58 -29
- package/src/make/shared.ts +87 -13
- package/src/make/tenancy.ts +6 -4
- package/src/make.ts +179 -65
- package/src/outbox.ts +363 -0
- package/src/preflight.ts +596 -0
- package/src/provider-add.ts +270 -16
- package/src/task.ts +2 -3
- package/src/templates/agents.ts +6 -3
- package/src/templates/base.ts +5 -13
- package/src/templates/index.ts +2 -0
- package/src/templates/server.ts +10 -5
- package/src/templates/shared.ts +15 -1
- package/src/templates/testing.ts +545 -0
- package/src/templates/todos.ts +2 -2
- package/src/test-helpers/generated-app.ts +10 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,112 @@
|
|
|
1
1
|
# @beignet/cli
|
|
2
2
|
|
|
3
|
+
## 0.0.33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 379a351: Add outbox admin ports and CLI tooling to inspect, requeue, purge, and prune durable outbox messages.
|
|
8
|
+
- d66a1a2: Fix generated app test runner path handling for explicit test directories and configured source-root apps.
|
|
9
|
+
- c514ffc: Document the Next.js cached request-context convention separately from React
|
|
10
|
+
Query prefetching, and update generated agent guidance to use
|
|
11
|
+
`lib/server-context.ts` for shared Server Component request state.
|
|
12
|
+
- ae6d7f9: Document the Next.js server prefetch convention and teach generated agent
|
|
13
|
+
guidance to preserve contract query keys while replacing server query
|
|
14
|
+
functions with direct use-case calls.
|
|
15
|
+
- efe16f4: Add active tracing spans and an OpenTelemetry provider with isolated,
|
|
16
|
+
low-cardinality duration, failure, and provider-operation metrics. Background
|
|
17
|
+
providers resolve lazy contexts inside real spans, and the task CLI now runs
|
|
18
|
+
through the traced task executor.
|
|
19
|
+
- 0c6c0ee: Make generated app test and database scripts package-manager neutral by using
|
|
20
|
+
`tsx`, and refresh package testing docs to avoid Bun-specific snippets.
|
|
21
|
+
- 92af951: Add a Redis Pub/Sub event bus provider and `event-bus-redis` provider preset for cross-process best-effort event delivery.
|
|
22
|
+
- 450ce71: Add opt-in runtime integrity checks for workflow registries, teach the CLI a central listener registry, and document serverless-safe boot checks.
|
|
23
|
+
- 2fe26a4: Add first-class security headers and CSRF server hooks, install the security
|
|
24
|
+
headers baseline in generated apps, and warn when production apps omit it.
|
|
25
|
+
- ab8b288: Refresh package-shipped skills with current tenancy and runtime-integrity conventions.
|
|
26
|
+
- de3e0d2: Tighten tenant-scope enforcement in doctor and generated billing code.
|
|
27
|
+
|
|
28
|
+
`beignet doctor --strict` now detects explicit raw `tenantId` repository
|
|
29
|
+
boundaries in hand-authored Drizzle ports and checks scoped tenant/workspace
|
|
30
|
+
predicates for `tenantScopeId(scope)` drift. The payments generator now uses
|
|
31
|
+
`TenantScope` for billing tenant lookups.
|
|
32
|
+
|
|
33
|
+
- a655eb0: Add a doctor warning for generated Drizzle repository adapters that target tenant-scoped schemas but no longer mention tenant scope.
|
|
34
|
+
- 08e2d3e: Add a branded tenant scope primitive and generate tenant-scoped repositories that accept `TenantScope` instead of raw tenant IDs.
|
|
35
|
+
- Updated dependencies [379a351]
|
|
36
|
+
- Updated dependencies [c909142]
|
|
37
|
+
- Updated dependencies [c514ffc]
|
|
38
|
+
- Updated dependencies [ae6d7f9]
|
|
39
|
+
- Updated dependencies [efe16f4]
|
|
40
|
+
- Updated dependencies [0c6c0ee]
|
|
41
|
+
- Updated dependencies [450ce71]
|
|
42
|
+
- Updated dependencies [2fe26a4]
|
|
43
|
+
- Updated dependencies [ab8b288]
|
|
44
|
+
- Updated dependencies [de3e0d2]
|
|
45
|
+
- Updated dependencies [08e2d3e]
|
|
46
|
+
- Updated dependencies [4341860]
|
|
47
|
+
- Updated dependencies [3b0f288]
|
|
48
|
+
- Updated dependencies [61d9053]
|
|
49
|
+
- Updated dependencies [f263650]
|
|
50
|
+
- @beignet/core@0.0.33
|
|
51
|
+
|
|
52
|
+
## 0.0.32
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- 671b986: `beignet make upload` (and `make feature --with uploads`) now treats uploads
|
|
57
|
+
as a capability builder like jobs, schedules, tasks, notifications, and
|
|
58
|
+
listeners: the generator creates `lib/uploads.ts` on demand with
|
|
59
|
+
`export const { defineUpload } = createUploads<AppContext>();` and generated
|
|
60
|
+
upload files import the app-bound `defineUpload` from it instead of spelling
|
|
61
|
+
out the four explicit type arguments. `beignet.config` gains a
|
|
62
|
+
`paths.uploadsBuilder` entry (default `lib/uploads.ts`).
|
|
63
|
+
- 671b986: Rename `beignet db schema generate` to `beignet db schema sync`. The command idempotently brings the app-owned Drizzle re-exports of Beignet provider tables (audit, idempotency, outbox) in sync with the installed providers, so `sync` describes what it does and removes the verb collision with `beignet db generate`, which is unchanged and still delegates to the app's Drizzle Kit migration script. There is no alias: `db schema generate` is now an unknown command.
|
|
64
|
+
- f759611: New `beignet preflight` command: a runtime production gate, distinct from the
|
|
65
|
+
static `doctor` checks. It reads the actual environment the process runs
|
|
66
|
+
with, verifies every env var installed provider manifests mark as required,
|
|
67
|
+
flags values still matching `.env.example` (or common placeholder patterns)
|
|
68
|
+
on secret-like keys, and validates the app env schema by importing
|
|
69
|
+
`lib/env.ts`. Run it in the deploy pipeline where production configuration is
|
|
70
|
+
present; it exits 1 on any error finding. `--env-file` merges a dotenv-style
|
|
71
|
+
file under the environment for local rehearsal, and `--env-module` overrides
|
|
72
|
+
the env module path. Doctor's production hardening diagnostics (devtools
|
|
73
|
+
exposure, cron auth, upload limits, CORS posture, auth secrets, billing
|
|
74
|
+
wiring) are folded into the gate with promoted severities: doctor warnings
|
|
75
|
+
fail preflight, hints become warnings. `--connect` boots the app server and
|
|
76
|
+
runs every port's `checkHealth()` with per-check timeouts so a bad credential
|
|
77
|
+
fails the deploy instead of the first request; the gate also warns when
|
|
78
|
+
logging or error reporting is absent or inert. `--json` emits a versioned
|
|
79
|
+
payload, and `beignet check --preflight` appends the gate to the validation
|
|
80
|
+
loop.
|
|
81
|
+
- eb680ef: Provider naming now follows one implementation-first order matching the
|
|
82
|
+
factories. `@beignet/provider-redis` is renamed `@beignet/provider-cache-redis`
|
|
83
|
+
(the package fills the cache port; the raw client stays as the
|
|
84
|
+
`ctx.ports.redis` escape hatch) with `redisCacheProvider`,
|
|
85
|
+
`createRedisCacheProvider`, and provider name `cache-redis` matching
|
|
86
|
+
`locks-redis`. Default consts flip to implementation-first:
|
|
87
|
+
`loggerPinoProvider` is now `pinoLoggerProvider`, `mailResendProvider` is now
|
|
88
|
+
`resendMailProvider`, and `mailSmtpProvider` is now `smtpMailProvider`.
|
|
89
|
+
CLI starter templates and the `redis-cache` provider preset wire the new
|
|
90
|
+
names. No aliases are kept.
|
|
91
|
+
- f759611: `beignet providers add` gains three presets: `payments-stripe` (wires
|
|
92
|
+
`stripePaymentsProvider`, Stripe env placeholders, and points at
|
|
93
|
+
`beignet make payments` for the full billing slice), `jobs-bullmq` (wires
|
|
94
|
+
`bullMQJobsProvider` with `BULLMQ_REDIS_URL` and worker-entrypoint next
|
|
95
|
+
steps), and `jobs-inngest` (matching the create-time `inngest` integration,
|
|
96
|
+
so the preset and integration stay interchangeable). Create output and the
|
|
97
|
+
CLI docs now point at the full preset catalog so post-create provider setup
|
|
98
|
+
is discoverable from the first run. The S3 storage preset now also writes
|
|
99
|
+
the optional `STORAGE_S3_MAX_ATTEMPTS` and `STORAGE_S3_RETRY_MODE` retry
|
|
100
|
+
configuration hints.
|
|
101
|
+
- Updated dependencies [671b986]
|
|
102
|
+
- Updated dependencies [f759611]
|
|
103
|
+
- Updated dependencies [f759611]
|
|
104
|
+
- Updated dependencies [eb680ef]
|
|
105
|
+
- Updated dependencies [671b986]
|
|
106
|
+
- Updated dependencies [671b986]
|
|
107
|
+
- Updated dependencies [671b986]
|
|
108
|
+
- @beignet/core@0.0.32
|
|
109
|
+
|
|
3
110
|
## 0.0.31
|
|
4
111
|
|
|
5
112
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -88,6 +88,17 @@ Available integrations:
|
|
|
88
88
|
- `upstash-rate-limit` - Upstash-backed rate limiting via
|
|
89
89
|
`@beignet/provider-rate-limit-upstash`
|
|
90
90
|
|
|
91
|
+
`--integrations` also accepts every `beignet providers add` preset
|
|
92
|
+
(`flags-openfeature`, `jobs-bullmq`, `jobs-inngest`, `mail-resend`,
|
|
93
|
+
`mail-smtp`, `payments-stripe`, `redis-cache`, `event-bus-redis`,
|
|
94
|
+
`redis-locks`, `s3-storage`, `search-meilisearch`, `sentry`, and
|
|
95
|
+
`vercel-blob-storage`). Presets are
|
|
96
|
+
applied to the fresh scaffold with the same machinery as
|
|
97
|
+
`beignet providers add`; preset names with a template equivalent
|
|
98
|
+
(`jobs-inngest`, `mail-resend`, `upstash-rate-limit`) normalize to it, and
|
|
99
|
+
selections that fill the same app port (for example `resend` plus
|
|
100
|
+
`mail-smtp`) fail before any files are written.
|
|
101
|
+
|
|
91
102
|
Each selected integration adds its provider package dependencies, wires the
|
|
92
103
|
provider in `server/providers.ts`, extends `.env.example`, and writes setup
|
|
93
104
|
notes to `docs/integrations.md`.
|
|
@@ -149,7 +160,7 @@ block, then load matching skills such as `@beignet/core#app-architecture`,
|
|
|
149
160
|
`@beignet/provider-auth-better-auth#auth-provider`,
|
|
150
161
|
`@beignet/react-query#client`, `@beignet/react-hook-form#forms`, and
|
|
151
162
|
`@beignet/cli#app-structure` before substantial Beignet changes. The CLI skill
|
|
152
|
-
covers generators, full-slice recipes, db schema
|
|
163
|
+
covers generators, full-slice recipes, db schema sync, lint, doctor, and
|
|
153
164
|
MCP tooling.
|
|
154
165
|
|
|
155
166
|
Inspect the app, then generate the next feature:
|
|
@@ -202,6 +213,7 @@ beignet db generate [--dry-run] [--json]
|
|
|
202
213
|
beignet db migrate [--dry-run] [--json]
|
|
203
214
|
beignet db seed [--dry-run] [--json]
|
|
204
215
|
beignet db reset [--dry-run] [--json]
|
|
216
|
+
beignet db schema sync [--dialect sqlite|postgres|mysql] [--tables audit,idempotency,outbox] [--output <path>] [--dry-run] [--json]
|
|
205
217
|
beignet routes [--json] [--cwd <dir>]
|
|
206
218
|
beignet check [--json] [--fix] [--cwd <dir>]
|
|
207
219
|
beignet lint [--json] [--cwd <dir>] [--format human|json|github]
|
|
@@ -218,7 +230,7 @@ Options:
|
|
|
218
230
|
--api Scaffold an API-only app without the UI shell.
|
|
219
231
|
--db postgres Database backend: sqlite (default), postgres, or mysql.
|
|
220
232
|
--package-manager bun Package manager shown in next steps.
|
|
221
|
-
--integrations inngest,resend Add integrations
|
|
233
|
+
--integrations inngest,resend Add integrations (inngest, resend, upstash-rate-limit) or any providers add preset. Accepts one value or a comma-separated list.
|
|
222
234
|
--yes Skip interactive create prompts and use the defaults.
|
|
223
235
|
--force Write into a non-empty directory.
|
|
224
236
|
--dry-run Preview create/make writes without changing files.
|
|
@@ -241,7 +253,7 @@ Options:
|
|
|
241
253
|
make payments Add `features/billing` with free/pro plans, a `createPaymentWebhookRoute(...)` route, billing persistence, entitlement gating, a demo seed, and a plan settings UI on shell apps.
|
|
242
254
|
make inbox Add `features/inbox` with a per-user notification inbox, an in-app notification channel, cursor-paginated routes, and an inbox page on shell apps.
|
|
243
255
|
--auth Add authorization metadata, policy wiring, policy tests, and use-case gate checks to `make resource`.
|
|
244
|
-
--tenant Add tenant-scoped schemas, repository
|
|
256
|
+
--tenant Add tenant-scoped schemas, `TenantScope` repository boundaries, and use-case tenant checks to `make resource`.
|
|
245
257
|
--events Add created, updated, and deleted domain events to `make resource`.
|
|
246
258
|
--soft-delete Archive resource rows with deletedAt instead of hard-deleting them.
|
|
247
259
|
--event posts/published Event for `make listener`.
|
|
@@ -364,6 +376,7 @@ export default defineConfig({
|
|
|
364
376
|
features: "src/features",
|
|
365
377
|
routes: "src/app/api",
|
|
366
378
|
server: "src/core/server/index.ts",
|
|
379
|
+
listeners: "src/core/server/listeners.ts",
|
|
367
380
|
tasks: "src/core/server/tasks.ts",
|
|
368
381
|
outbox: "src/core/server/outbox.ts",
|
|
369
382
|
schedules: "src/core/server/schedules.ts",
|
|
@@ -488,7 +501,7 @@ events, listeners, jobs, notifications, schedules, UI client helpers,
|
|
|
488
501
|
components, uploads, outbox wiring, and `outbox_messages` Drizzle schema. The
|
|
489
502
|
generated create use case publishes the generated created event so the event
|
|
490
503
|
artifact is connected, and the listener registry is registered in
|
|
491
|
-
`server/providers.ts`. Replace the starter names, listener/job bodies,
|
|
504
|
+
`server/listeners.ts` and wired from `server/providers.ts`. Replace the starter names, listener/job bodies,
|
|
492
505
|
notification payloads, and task behavior with the app's real workflow. For
|
|
493
506
|
workflows that require durable audit records, record through the app audit port
|
|
494
507
|
inside the same Unit of Work transaction as the write.
|
|
@@ -605,10 +618,14 @@ increment it on success. Stale updates become the generated
|
|
|
605
618
|
|
|
606
619
|
Use `--auth` to generate authorization metadata, policy wiring, and use-case
|
|
607
620
|
`ctx.gate.authorize(...)` calls. Use `--tenant` to scope repository reads and
|
|
608
|
-
writes
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
621
|
+
writes with a branded `TenantScope`; generated use cases call
|
|
622
|
+
`requireTenantScope(ctx)`, repository ports require `scope: TenantScope`, and
|
|
623
|
+
adapters unwrap the storage key with `tenantScopeId(scope)`. `doctor --strict`
|
|
624
|
+
also warns when tenant-scoped generated repositories lose that boundary, when
|
|
625
|
+
hand-authored Drizzle ports expose raw `tenantId` app-facing methods, or when
|
|
626
|
+
scoped adapters stop using `tenantScopeId(scope)` predicates. Use `--events` to
|
|
627
|
+
generate created, updated, and deleted domain events and publish them through
|
|
628
|
+
`ctx.ports.eventBus`. The
|
|
612
629
|
starter ships no event bus, so `--events` also wires one: it adds
|
|
613
630
|
`eventBus: EventBusPort` to `AppPorts`, defers the key in
|
|
614
631
|
`infra/app-ports.ts`, registers `createInMemoryEventBusProvider()` in
|
|
@@ -764,6 +781,13 @@ run Drizzle Kit and the generated `server/seed.ts` / `infra/db/reset.ts`
|
|
|
764
781
|
entrypoints. This keeps schema generation and migration behavior Drizzle-native
|
|
765
782
|
while making the lifecycle discoverable through Beignet.
|
|
766
783
|
|
|
784
|
+
When an app adopts Beignet's Drizzle-backed operational ports for audit,
|
|
785
|
+
idempotency, or outbox, run `beignet db schema sync` first. It idempotently
|
|
786
|
+
brings the app-owned schema file that re-exports Beignet provider tables
|
|
787
|
+
(`infra/db/schema/beignet.ts` by default) in sync with the installed providers
|
|
788
|
+
and updates the schema index. Run `beignet db generate` afterward so the app's
|
|
789
|
+
Drizzle Kit script creates the matching migration.
|
|
790
|
+
|
|
767
791
|
`beignet db` checks standard prerequisites before running those scripts. If the
|
|
768
792
|
script is missing, Drizzle Kit has no `drizzle.config.*`, or the standard
|
|
769
793
|
seed/reset entrypoint was removed, the error points to the exact file or
|
|
@@ -842,6 +866,29 @@ before checking, and `beignet check --json` for a versioned payload
|
|
|
842
866
|
and applied fixes. The individual commands below still work when you need one
|
|
843
867
|
check alone or its `--format github` output.
|
|
844
868
|
|
|
869
|
+
## Gate the deploy environment
|
|
870
|
+
|
|
871
|
+
```bash
|
|
872
|
+
beignet preflight
|
|
873
|
+
beignet preflight --connect
|
|
874
|
+
beignet check --preflight
|
|
875
|
+
```
|
|
876
|
+
|
|
877
|
+
`preflight` is the runtime production gate, distinct from the static `doctor`
|
|
878
|
+
checks: it reads the environment the process actually runs with. It verifies
|
|
879
|
+
every env var installed provider manifests mark as required, flags values
|
|
880
|
+
still matching `.env.example` (or common placeholder patterns) on secret-like
|
|
881
|
+
keys, validates the app env schema by importing `lib/env.ts`, folds in
|
|
882
|
+
`doctor`'s production hardening diagnostics with promoted severities, and
|
|
883
|
+
warns when logging or error reporting is absent or inert. `--connect` boots
|
|
884
|
+
the app server and runs every port's `checkHealth()` — opt-in because it
|
|
885
|
+
needs network access and real credentials. `--env-file` merges a dotenv-style
|
|
886
|
+
file under the environment for local rehearsal, `--env-module` and
|
|
887
|
+
`--server-module` override the default `lib/env.ts` and `server/index.ts`
|
|
888
|
+
paths, and `--json` emits machine-readable output with `schemaVersion: 1`.
|
|
889
|
+
Run it in the deploy pipeline where production configuration is present; it
|
|
890
|
+
exits `1` on any error finding.
|
|
891
|
+
|
|
845
892
|
## Lint app architecture
|
|
846
893
|
|
|
847
894
|
Run `lint` when you want the CLI to enforce Beignet dependency direction:
|
|
@@ -887,7 +934,9 @@ Today it detects:
|
|
|
887
934
|
or `server/tasks.ts`
|
|
888
935
|
- Feature events with listeners, and feature jobs, that are missing from
|
|
889
936
|
`defineOutboxRegistry({...})` when the app uses outbox delivery
|
|
890
|
-
- Feature listeners
|
|
937
|
+
- Feature listeners missing from `server/listeners.ts` or otherwise not
|
|
938
|
+
referenced by `registerListeners(...)`
|
|
939
|
+
- Opted-in runtime manifests that omit generated workflow registries
|
|
891
940
|
- Next.js route handlers that do not map to known contracts
|
|
892
941
|
- OpenAPI drift in direct arrays, exported contract lists, and
|
|
893
942
|
`contractsFromRoutes(routes)` route registries
|
|
@@ -945,6 +994,7 @@ Today it detects:
|
|
|
945
994
|
- Cron routes that do not use `CRON_SECRET`
|
|
946
995
|
- Installed provider packages without expected environment configuration
|
|
947
996
|
- Better Auth providers without an auth route or trusted-origin configuration
|
|
997
|
+
- Central servers that omit `createSecurityHeadersHooks(...)`
|
|
948
998
|
- Credentialed wildcard CORS configuration
|
|
949
999
|
- Notification dispatchers that bypass `ctx.ports.notifications`
|
|
950
1000
|
- Feature artifacts in non-canonical folders
|
|
@@ -952,8 +1002,9 @@ Today it detects:
|
|
|
952
1002
|
When production-readiness diagnostics are present, human `doctor` output also
|
|
953
1003
|
prints a production hardening checklist covering secrets and provider
|
|
954
1004
|
credentials, verified auth and tenant authority, exposed operational routes,
|
|
955
|
-
CORS and proxy trust, upload and storage limits, readiness
|
|
956
|
-
shutdown, webhook secrets, and least-privilege provider
|
|
1005
|
+
security headers, CORS and proxy trust, upload and storage limits, readiness
|
|
1006
|
+
checks, worker shutdown, webhook secrets, and least-privilege provider
|
|
1007
|
+
credentials.
|
|
957
1008
|
|
|
958
1009
|
Provider package diagnostics come from package-owned `beignet.provider`
|
|
959
1010
|
metadata in installed package manifests. The CLI does not import provider
|
|
@@ -963,10 +1014,12 @@ metadata before using provider-derived doctor rules.
|
|
|
963
1014
|
Use `beignet providers add <preset>` to wire a stable provider recipe after
|
|
964
1015
|
app creation. It updates `package.json`, `server/providers.ts`, app port
|
|
965
1016
|
types, deferred port wiring, `.env.example`, and `docs/integrations.md`.
|
|
966
|
-
Supported presets are `flags-openfeature`, `
|
|
967
|
-
`
|
|
968
|
-
`
|
|
969
|
-
|
|
1017
|
+
Supported presets are `flags-openfeature`, `jobs-bullmq`, `jobs-inngest`,
|
|
1018
|
+
`mail-resend`, `mail-smtp`, `payments-stripe`, `search-meilisearch`, `sentry`,
|
|
1019
|
+
`upstash-rate-limit`, `redis-cache`, `event-bus-redis`, `redis-locks`,
|
|
1020
|
+
`s3-storage`, and `vercel-blob-storage`; pass `--dry-run --json` to preview
|
|
1021
|
+
the exact file changes. The same presets can be selected at create time with
|
|
1022
|
+
`--integrations`.
|
|
970
1023
|
|
|
971
1024
|
Use `beignet providers audit` when you want a report-only inventory of the
|
|
972
1025
|
provider packages installed in an app. The human audit prints provider
|
|
@@ -990,8 +1043,8 @@ Use `beignet doctor --fix` for low-risk maintenance fixes. Today it can add
|
|
|
990
1043
|
a missing `test` script, register existing feature route groups in the central
|
|
991
1044
|
route list, register unregistered feature schedule, task, and outbox
|
|
992
1045
|
event/job registries in their existing central registry files, wire fully
|
|
993
|
-
unregistered feature listener registries into
|
|
994
|
-
|
|
1046
|
+
unregistered feature listener registries into `server/listeners.ts` and the
|
|
1047
|
+
central listeners provider, and repair
|
|
995
1048
|
direct `createOpenAPIHandler([...])` arrays when the missing contracts are
|
|
996
1049
|
already imported in the OpenAPI route. Registry fixes are append-only: when a
|
|
997
1050
|
central file is missing, an anchor is customized beyond recognition, or some
|
package/dist/check.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export type CheckAppOptions = {
|
|
|
25
25
|
cwd?: string;
|
|
26
26
|
fix?: boolean;
|
|
27
27
|
color?: boolean;
|
|
28
|
+
/** Append a `beignet preflight` step after the doctor step. */
|
|
29
|
+
preflight?: boolean;
|
|
28
30
|
/** Called after each step completes, for incremental progress output. */
|
|
29
31
|
onStep?: (step: CheckStep) => void;
|
|
30
32
|
};
|
package/dist/check.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../src/check.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,UAAU,EAEhB,MAAM,cAAc,CA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AAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,CAAC,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACpC,CAAC;AAIF;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAC5B,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,cAAc,CAAC,CA8BzB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,EACf,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAChC,MAAM,CAkBR;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAChC,MAAM,CAWR;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAChC,MAAM,CAGR"}
|
package/dist/check.js
CHANGED
|
@@ -26,6 +26,9 @@ export async function checkApp(options = {}) {
|
|
|
26
26
|
record(await lintStep(targetDir, options));
|
|
27
27
|
const { step: doctorStep, fixes } = await runDoctorStep(targetDir, options);
|
|
28
28
|
record(doctorStep);
|
|
29
|
+
if (options.preflight) {
|
|
30
|
+
record(await preflightStep(targetDir));
|
|
31
|
+
}
|
|
29
32
|
const scripts = await readPackageScripts(targetDir);
|
|
30
33
|
for (const script of scriptStepNames) {
|
|
31
34
|
record(await scriptStep(targetDir, runner, script, scripts));
|
|
@@ -161,4 +164,17 @@ async function readPackageScripts(targetDir) {
|
|
|
161
164
|
const parsed = JSON.parse(source);
|
|
162
165
|
return parsed.scripts ?? {};
|
|
163
166
|
}
|
|
167
|
+
async function preflightStep(targetDir) {
|
|
168
|
+
const startedAt = Date.now();
|
|
169
|
+
const { formatPreflight, runPreflight } = await import("./preflight.js");
|
|
170
|
+
const result = await runPreflight({ cwd: targetDir });
|
|
171
|
+
const failed = result.findings.some((finding) => finding.severity === "error");
|
|
172
|
+
return {
|
|
173
|
+
name: "beignet preflight",
|
|
174
|
+
command: "beignet preflight",
|
|
175
|
+
status: failed ? "failed" : "passed",
|
|
176
|
+
...(failed ? { output: formatPreflight(result, targetDir) } : {}),
|
|
177
|
+
durationMs: Date.now() - startedAt,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
164
180
|
//# sourceMappingURL=check.js.map
|
package/dist/check.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../src/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EACL,gBAAgB,EAChB,YAAY,EAEZ,UAAU,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../src/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IACtD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CACjC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAC1C,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,mBAAmB;QAC5B,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QACpC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjE,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;KACnC,CAAC;AACJ,CAAC"}
|
package/dist/choices.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type DatabaseName = "sqlite" | "postgres" | "mysql";
|
|
|
26
26
|
/**
|
|
27
27
|
* Provider setup presets supported by `beignet providers add`.
|
|
28
28
|
*/
|
|
29
|
-
export type ProviderPresetName = "flags-openfeature" | "mail-resend" | "mail-smtp" | "search-meilisearch" | "sentry" | "upstash-rate-limit" | "redis-cache" | "redis-locks" | "s3-storage" | "vercel-blob-storage";
|
|
29
|
+
export type ProviderPresetName = "flags-openfeature" | "jobs-bullmq" | "jobs-inngest" | "mail-resend" | "mail-smtp" | "payments-stripe" | "search-meilisearch" | "sentry" | "upstash-rate-limit" | "redis-cache" | "event-bus-redis" | "redis-locks" | "s3-storage" | "vercel-blob-storage";
|
|
30
30
|
/**
|
|
31
31
|
* Supported scaffold template choices.
|
|
32
32
|
*/
|
|
@@ -46,7 +46,27 @@ export declare const databaseChoices: readonly ["sqlite", "postgres", "mysql"];
|
|
|
46
46
|
/**
|
|
47
47
|
* Supported provider setup preset choices.
|
|
48
48
|
*/
|
|
49
|
-
export declare const providerPresetChoices: readonly ["flags-openfeature", "mail-resend", "mail-smtp", "search-meilisearch", "sentry", "upstash-rate-limit", "redis-cache", "redis-locks", "s3-storage", "vercel-blob-storage"];
|
|
49
|
+
export declare const providerPresetChoices: readonly ["flags-openfeature", "jobs-bullmq", "jobs-inngest", "mail-resend", "mail-smtp", "payments-stripe", "search-meilisearch", "sentry", "upstash-rate-limit", "redis-cache", "event-bus-redis", "redis-locks", "s3-storage", "vercel-blob-storage"];
|
|
50
|
+
/**
|
|
51
|
+
* Values accepted by `beignet create --integrations`: the starter template
|
|
52
|
+
* integrations plus the full `beignet providers add` preset catalog.
|
|
53
|
+
*/
|
|
54
|
+
export type CreateIntegrationName = IntegrationName | ProviderPresetName;
|
|
55
|
+
/**
|
|
56
|
+
* Supported `beignet create --integrations` choices. Template integrations
|
|
57
|
+
* come first; the rest of the provider preset catalog follows.
|
|
58
|
+
*/
|
|
59
|
+
export declare const createIntegrationChoices: readonly ["inngest", "resend", "upstash-rate-limit", "flags-openfeature", "jobs-bullmq", "jobs-inngest", "mail-resend", "mail-smtp", "payments-stripe", "redis-cache", "event-bus-redis", "redis-locks", "s3-storage", "search-meilisearch", "sentry", "vercel-blob-storage"];
|
|
60
|
+
/**
|
|
61
|
+
* Split `--integrations` selections into starter template integrations and
|
|
62
|
+
* provider presets applied with the `beignet providers add` machinery after
|
|
63
|
+
* the scaffold is written. Preset names with a template equivalent are
|
|
64
|
+
* normalized to the template integration; duplicates collapse.
|
|
65
|
+
*/
|
|
66
|
+
export declare function splitCreateIntegrations(values: readonly CreateIntegrationName[]): {
|
|
67
|
+
integrations: IntegrationName[];
|
|
68
|
+
presets: ProviderPresetName[];
|
|
69
|
+
};
|
|
50
70
|
/**
|
|
51
71
|
* Local database name derived from the app name.
|
|
52
72
|
*
|
package/dist/choices.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choices.d.ts","sourceRoot":"","sources":["../src/choices.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAC7D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,oBAAoB,CAAC;AAC1E;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAC3D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,mBAAmB,GACnB,aAAa,GACb,WAAW,GACX,oBAAoB,GACpB,QAAQ,GACR,oBAAoB,GACpB,aAAa,GACb,aAAa,GACb,YAAY,GACZ,qBAAqB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,eAAe,mBAEgB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qBAAqB,yCAKY,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,kBAAkB,sDAIgB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,eAAe,0CAIgB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"choices.d.ts","sourceRoot":"","sources":["../src/choices.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAC7D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,oBAAoB,CAAC;AAC1E;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAC3D;;GAEG;AACH,MAAM,MAAM,k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AEX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,wBAAwB,yBAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/choices.js
CHANGED
|
@@ -40,16 +40,78 @@ export const databaseChoices = [
|
|
|
40
40
|
*/
|
|
41
41
|
export const providerPresetChoices = [
|
|
42
42
|
"flags-openfeature",
|
|
43
|
+
"jobs-bullmq",
|
|
44
|
+
"jobs-inngest",
|
|
43
45
|
"mail-resend",
|
|
44
46
|
"mail-smtp",
|
|
47
|
+
"payments-stripe",
|
|
45
48
|
"search-meilisearch",
|
|
46
49
|
"sentry",
|
|
47
50
|
"upstash-rate-limit",
|
|
48
51
|
"redis-cache",
|
|
52
|
+
"event-bus-redis",
|
|
49
53
|
"redis-locks",
|
|
50
54
|
"s3-storage",
|
|
51
55
|
"vercel-blob-storage",
|
|
52
56
|
];
|
|
57
|
+
/**
|
|
58
|
+
* Supported `beignet create --integrations` choices. Template integrations
|
|
59
|
+
* come first; the rest of the provider preset catalog follows.
|
|
60
|
+
*/
|
|
61
|
+
export const createIntegrationChoices = [
|
|
62
|
+
"inngest",
|
|
63
|
+
"resend",
|
|
64
|
+
"upstash-rate-limit",
|
|
65
|
+
"flags-openfeature",
|
|
66
|
+
"jobs-bullmq",
|
|
67
|
+
"jobs-inngest",
|
|
68
|
+
"mail-resend",
|
|
69
|
+
"mail-smtp",
|
|
70
|
+
"payments-stripe",
|
|
71
|
+
"redis-cache",
|
|
72
|
+
"event-bus-redis",
|
|
73
|
+
"redis-locks",
|
|
74
|
+
"s3-storage",
|
|
75
|
+
"search-meilisearch",
|
|
76
|
+
"sentry",
|
|
77
|
+
"vercel-blob-storage",
|
|
78
|
+
];
|
|
79
|
+
/**
|
|
80
|
+
* Provider presets whose create-time wiring already ships as a starter
|
|
81
|
+
* template integration. Selecting the preset name at create time scaffolds
|
|
82
|
+
* the equivalent template integration, so preset and integration stay
|
|
83
|
+
* consistent and `beignet providers add` remains a no-op afterwards.
|
|
84
|
+
*/
|
|
85
|
+
const presetTemplateIntegrationAliases = {
|
|
86
|
+
"jobs-inngest": "inngest",
|
|
87
|
+
"mail-resend": "resend",
|
|
88
|
+
"upstash-rate-limit": "upstash-rate-limit",
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Split `--integrations` selections into starter template integrations and
|
|
92
|
+
* provider presets applied with the `beignet providers add` machinery after
|
|
93
|
+
* the scaffold is written. Preset names with a template equivalent are
|
|
94
|
+
* normalized to the template integration; duplicates collapse.
|
|
95
|
+
*/
|
|
96
|
+
export function splitCreateIntegrations(values) {
|
|
97
|
+
const integrations = new Set();
|
|
98
|
+
const presets = new Set();
|
|
99
|
+
for (const value of values) {
|
|
100
|
+
if (integrationChoices.includes(value)) {
|
|
101
|
+
integrations.add(value);
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const preset = value;
|
|
105
|
+
const alias = presetTemplateIntegrationAliases[preset];
|
|
106
|
+
if (alias) {
|
|
107
|
+
integrations.add(alias);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
presets.add(preset);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return { integrations: [...integrations], presets: [...presets] };
|
|
114
|
+
}
|
|
53
115
|
/**
|
|
54
116
|
* Local database name derived from the app name.
|
|
55
117
|
*
|
package/dist/choices.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../src/choices.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"choices.js","sourceRoot":"","sources":["../src/choices.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwCH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAA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CAAC;AACH,CAAC;AAOD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM;IACN,KAAK;CACwC,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ;IACR,SAAS;IACT,WAAW;IACX,OAAO;IACP,QAAQ;IACR,KAAK;IACL,MAAM;IACN,UAAU;IACV,WAAW;IACX,cAAc;IACd,eAAe;IACf,UAAU;IACV,WAAW;IACX,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,IAAI;IACJ,QAAQ;IACR,SAAS;CACD,CAAC;AAOX;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,YAAY,CAAU,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type BeignetPaths = {
|
|
|
10
10
|
contracts: string;
|
|
11
11
|
routes: string;
|
|
12
12
|
server: string;
|
|
13
|
+
listeners: string;
|
|
13
14
|
openapiRoute: string;
|
|
14
15
|
tasks: string;
|
|
15
16
|
outbox: string;
|
|
@@ -26,6 +27,7 @@ export type BeignetPaths = {
|
|
|
26
27
|
schedulesBuilder: string;
|
|
27
28
|
notificationsBuilder: string;
|
|
28
29
|
tasksBuilder: string;
|
|
30
|
+
uploadsBuilder: string;
|
|
29
31
|
tests: string;
|
|
30
32
|
};
|
|
31
33
|
/**
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;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GED
|
@@ -11,6 +11,7 @@ export const defaultBeignetConfig = {
|
|
|
11
11
|
contracts: "features",
|
|
12
12
|
routes: "app/api",
|
|
13
13
|
server: "server/index.ts",
|
|
14
|
+
listeners: "server/listeners.ts",
|
|
14
15
|
openapiRoute: "app/api/openapi/route.ts",
|
|
15
16
|
tasks: "server/tasks.ts",
|
|
16
17
|
outbox: "server/outbox.ts",
|
|
@@ -27,6 +28,7 @@ export const defaultBeignetConfig = {
|
|
|
27
28
|
schedulesBuilder: "lib/schedules.ts",
|
|
28
29
|
notificationsBuilder: "lib/notifications.ts",
|
|
29
30
|
tasksBuilder: "lib/tasks.ts",
|
|
31
|
+
uploadsBuilder: "lib/uploads.ts",
|
|
30
32
|
tests: "tests",
|
|
31
33
|
},
|
|
32
34
|
database: {
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AA4ElC;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA0B;IACzD,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE;QACL,SAAS,EAAE,UAAU;QACrB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,iBAAi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CAAC;AACJ,CAAC;AAED,SAAS,0BAA0B,CAAC,GAAW,EAAE,KAAa;IAC5D,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CAAC,kCAAkC,GAAG,qBAAqB,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC;AAED,SAAS,6BAA6B,CAAC,KAAa,EAAE,KAAa;IACjE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CACb,yCAAyC,KAAK,qBAAqB,CACpE,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
package/dist/create-prompts.d.ts
CHANGED
|
@@ -5,15 +5,19 @@
|
|
|
5
5
|
* `@clack/prompts` is loaded lazily inside the prompt flow so non-interactive
|
|
6
6
|
* runs and CLI startup never pay for it.
|
|
7
7
|
*/
|
|
8
|
-
import { type
|
|
8
|
+
import { type CreateIntegrationName, type DatabaseName, type PackageManager } from "./choices.js";
|
|
9
9
|
/**
|
|
10
10
|
* Selections shared by create flags and interactive prompt answers.
|
|
11
|
+
*
|
|
12
|
+
* `integrations` accepts the starter template integrations plus the full
|
|
13
|
+
* `beignet providers add` preset catalog; the interactive prompt shows the
|
|
14
|
+
* curated template list and points at the wider catalog.
|
|
11
15
|
*/
|
|
12
16
|
export type CreateSelections = {
|
|
13
17
|
directory?: string;
|
|
14
18
|
api?: boolean;
|
|
15
19
|
db?: DatabaseName;
|
|
16
|
-
integrations?: readonly
|
|
20
|
+
integrations?: readonly CreateIntegrationName[];
|
|
17
21
|
packageManager?: PackageManager;
|
|
18
22
|
};
|
|
19
23
|
type CreatePromptFlags = CreateSelections & {
|