@beignet/cli 0.0.7 → 0.0.9
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 +21 -0
- package/README.md +90 -68
- package/dist/create.js +1 -1
- package/dist/create.js.map +1 -1
- package/dist/inspect.d.ts.map +1 -1
- package/dist/inspect.js +482 -56
- package/dist/inspect.js.map +1 -1
- package/dist/make.d.ts.map +1 -1
- package/dist/make.js +269 -98
- package/dist/make.js.map +1 -1
- package/dist/registry-edits.d.ts +77 -0
- package/dist/registry-edits.d.ts.map +1 -0
- package/dist/registry-edits.js +255 -0
- package/dist/registry-edits.js.map +1 -0
- package/dist/templates/base.js +4 -4
- package/dist/templates/base.js.map +1 -1
- package/dist/templates/db.js +16 -16
- package/dist/templates/server.js +10 -10
- package/dist/templates/server.js.map +1 -1
- package/package.json +2 -2
- package/src/create.ts +1 -1
- package/src/inspect.ts +785 -77
- package/src/make.ts +435 -123
- package/src/registry-edits.ts +352 -0
- package/src/templates/base.ts +4 -4
- package/src/templates/db.ts +16 -16
- package/src/templates/server.ts +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @beignet/cli
|
|
2
2
|
|
|
3
|
+
## 0.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6ebec8c: Provider packages can now declare `variants` in their `beignet.provider` manifest — one entry per selectable backend with its own env requirements and registration tokens. `beignet doctor` checks required env vars only for the variants an app actually registers, and reports a single registration hint listing all variants when none is wired. The Drizzle database provider uses this to describe its sqlite, postgres, and mysql backends.
|
|
8
|
+
- 1bb42a3: Rename `@beignet/provider-drizzle-turso` to `@beignet/provider-db-drizzle`, with databases as subpath exports. Import from `@beignet/provider-db-drizzle/sqlite`; `DrizzleTurso*` symbols are now `DrizzleSqlite*`, the provider registers as `drizzle-sqlite`, and the connection env vars are `SQLITE_DB_URL` and `SQLITE_DB_AUTH_TOKEN` (the auth token applies to hosted libSQL such as Turso). Provider packages now follow `provider-<capability>-<implementation>` naming, and multi-backend implementations add backends as subpaths — `/postgres` and `/mysql` are planned next.
|
|
9
|
+
- Updated dependencies [6ebec8c]
|
|
10
|
+
- Updated dependencies [6ebec8c]
|
|
11
|
+
- Updated dependencies [1bb42a3]
|
|
12
|
+
- @beignet/core@0.0.9
|
|
13
|
+
|
|
14
|
+
## 0.0.8
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 74a6859: Catch feature workflow artifacts that exist on disk but were never registered centrally. `beignet doctor` now reports unregistered feature schedules and tasks as errors, unregistered outbox events/jobs as warnings when the app has an outbox module, and feature listeners that no `registerListeners(...)` call references. `beignet doctor --fix` appends missing schedule, task, and outbox registries to their existing central files and bails out when the file is missing or customized. `beignet make event` and `beignet make job` now register new feature registries in an existing `server/outbox.ts` automatically.
|
|
19
|
+
- 74a6859: Generators now wire the provider-backed ports their output depends on. `beignet make event` and `beignet make resource --events` add `eventBus: EventBusPort` to `AppPorts`, defer the key in `infra/app-ports.ts`, register `createInMemoryEventBusProvider()` in `server/providers.ts`, and add the `@beignet/provider-event-bus-memory` dependency. `beignet make notification` wires `mailer: MailerPort` with `createMemoryMailerProvider()` and `notifications: NotificationPort` with `createInlineNotificationsProvider()` from `@beignet/core`. Each port is wired independently and skipped when the ports file already has the key, so integration-provided and app-owned wiring is left untouched, and an anchor miss aborts the generator with a manual instruction before any file is written.
|
|
20
|
+
- Updated dependencies [74a6859]
|
|
21
|
+
- Updated dependencies [74a6859]
|
|
22
|
+
- @beignet/core@0.0.8
|
|
23
|
+
|
|
3
24
|
## 0.0.7
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -39,18 +39,18 @@ Both delegate to `beignet create`, so `bunx @beignet/cli create my-app` is
|
|
|
39
39
|
equivalent.
|
|
40
40
|
|
|
41
41
|
Running create in an interactive terminal without selection flags opens a
|
|
42
|
-
prompt-based setup that asks for the project directory,
|
|
43
|
-
|
|
44
|
-
(`--
|
|
45
|
-
prompts, and `--yes` forces the non-interactive defaults (the
|
|
46
|
-
|
|
47
|
-
behave exactly as before.
|
|
42
|
+
prompt-based setup that asks for the project directory, whether to scaffold
|
|
43
|
+
an API-only app, and which provider integrations to add. Passing any
|
|
44
|
+
selection flag (`--api`, `--integrations`, or `--package-manager`) skips the
|
|
45
|
+
prompts, and `--yes` forces the non-interactive defaults (the full-stack
|
|
46
|
+
starter with `bun`) even on a terminal. Non-interactive runs in scripts and
|
|
47
|
+
CI behave exactly as before.
|
|
48
48
|
|
|
49
49
|
By default the CLI creates a Next.js app with:
|
|
50
50
|
|
|
51
51
|
- Contract-first todos API routes
|
|
52
52
|
- Better Auth routes and Beignet auth provider wiring
|
|
53
|
-
- Drizzle
|
|
53
|
+
- Drizzle SQLite (libSQL) persistence with a local SQLite default and support for hosted libSQL (Turso)
|
|
54
54
|
- UOW, audit logging, durable idempotency, and a durable outbox drain route
|
|
55
55
|
- Jobs, events, listeners, schedules, mail-backed notifications, and uploads
|
|
56
56
|
- App-owned ports with provider-backed infra adapters
|
|
@@ -62,6 +62,45 @@ By default the CLI creates a Next.js app with:
|
|
|
62
62
|
- React Hook Form
|
|
63
63
|
- OpenAPI output
|
|
64
64
|
|
|
65
|
+
Pass `--api` to scaffold an API-only app. It keeps the same contracts, auth,
|
|
66
|
+
persistence, and devtools, and swaps the UI shell for a minimal API landing
|
|
67
|
+
page and a reduced typed client.
|
|
68
|
+
|
|
69
|
+
The starter ships local production-shaped defaults: Better Auth, Drizzle
|
|
70
|
+
SQLite (libSQL) persistence, pino logging, UOW, durable idempotency, a
|
|
71
|
+
durable outbox, audit logging, and devtools. Add external service
|
|
72
|
+
integrations only when you want those providers:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
bunx @beignet/cli create my-app --integrations inngest,resend
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Available integrations:
|
|
79
|
+
|
|
80
|
+
- `inngest` - Inngest-backed background jobs via `@beignet/provider-inngest`
|
|
81
|
+
- `resend` - Resend-backed mail via `@beignet/provider-mail-resend`
|
|
82
|
+
- `upstash-rate-limit` - Upstash-backed rate limiting via
|
|
83
|
+
`@beignet/provider-rate-limit-upstash`
|
|
84
|
+
|
|
85
|
+
Each selected integration adds its provider package dependencies, wires the
|
|
86
|
+
provider in `server/providers.ts`, extends `.env.example`, and writes setup
|
|
87
|
+
notes to `docs/integrations.md`.
|
|
88
|
+
|
|
89
|
+
Drizzle SQLite (libSQL) ships in every starter. The scaffold includes
|
|
90
|
+
`infra/db/schema/`, `infra/db/repositories.ts`, `infra/db/test-database.ts`,
|
|
91
|
+
SQL-backed idempotency and outbox tables, a Drizzle todo repository adapter,
|
|
92
|
+
`drizzle.config.ts`, checked-in starter migrations, database scripts, and
|
|
93
|
+
`SQLITE_*` env examples, so the generated todo resource uses durable
|
|
94
|
+
persistence instead of an in-memory repository. Later `make feature` or
|
|
95
|
+
`make resource` calls in that app generate both a Drizzle table/repository
|
|
96
|
+
and an in-memory test fake.
|
|
97
|
+
|
|
98
|
+
Better Auth also ships in every starter. The scaffold adds the Better Auth
|
|
99
|
+
Next.js route, Beignet auth provider wiring, typed `UNAUTHORIZED` and
|
|
100
|
+
`FORBIDDEN` errors, a request-bound authorization gate, and
|
|
101
|
+
`requireUser(ctx)`. Use hooks for HTTP boundary authentication and use cases
|
|
102
|
+
or policies for business authorization.
|
|
103
|
+
|
|
65
104
|
Preview the planned files without writing anything:
|
|
66
105
|
|
|
67
106
|
```bash
|
|
@@ -75,7 +114,6 @@ The CLI writes files only. After creation:
|
|
|
75
114
|
cd my-app
|
|
76
115
|
bun install
|
|
77
116
|
cp .env.example .env.local
|
|
78
|
-
bun beignet db generate
|
|
79
117
|
bun beignet db migrate
|
|
80
118
|
bun run dev
|
|
81
119
|
```
|
|
@@ -116,6 +154,7 @@ beignet make job <feature>/<name> [options]
|
|
|
116
154
|
beignet make notification <feature>/<name> [options]
|
|
117
155
|
beignet make listener <feature>/<name> --event <feature>/<event> [options]
|
|
118
156
|
beignet make schedule <feature>/<name> [options]
|
|
157
|
+
beignet make upload <feature>/<name> [options]
|
|
119
158
|
beignet make port <name> [options]
|
|
120
159
|
beignet make policy <name> [options]
|
|
121
160
|
beignet make adapter <name> [options]
|
|
@@ -136,10 +175,9 @@ beignet --version
|
|
|
136
175
|
|
|
137
176
|
Options:
|
|
138
177
|
--template next Template to use. Currently only `next`.
|
|
139
|
-
--
|
|
178
|
+
--api Scaffold an API-only app without the UI shell.
|
|
140
179
|
--package-manager bun Package manager shown in next steps.
|
|
141
|
-
--
|
|
142
|
-
--integrations inngest,pino Add integrations. Accepts one value or a comma-separated list.
|
|
180
|
+
--integrations inngest,resend Add integrations: inngest, resend, upstash-rate-limit. Accepts one value or a comma-separated list.
|
|
143
181
|
--yes Skip interactive create prompts and use the defaults.
|
|
144
182
|
--force Write into a non-empty directory.
|
|
145
183
|
--dry-run Preview create/make writes without changing files.
|
|
@@ -220,7 +258,7 @@ shell or source the rc file to activate completions. Zsh completions require
|
|
|
220
258
|
`compinit` to be loaded, which most zsh setups already do.
|
|
221
259
|
|
|
222
260
|
Completions cover commands, subcommands, flags, and enum flag values such as
|
|
223
|
-
`--
|
|
261
|
+
`--template` and `--integrations`. The shell scripts call the
|
|
224
262
|
`beignet completion propose` helper, which prints one proposal per line for a
|
|
225
263
|
partial command line; it exists for the shell integration and is safe to
|
|
226
264
|
ignore otherwise. Completions complete whatever `beignet` resolves to on your
|
|
@@ -468,7 +506,13 @@ increment it on success. Stale updates become the generated
|
|
|
468
506
|
Use `--auth` to generate authorization metadata, policy wiring, and use-case
|
|
469
507
|
`ctx.gate.authorize(...)` calls. Use `--tenant` to scope repository reads and
|
|
470
508
|
writes by `ctx.tenant`. Use `--events` to generate created, updated, and
|
|
471
|
-
deleted domain events and publish them through `ctx.ports.eventBus`.
|
|
509
|
+
deleted domain events and publish them through `ctx.ports.eventBus`. The
|
|
510
|
+
starter ships no event bus, so `--events` also wires one: it adds
|
|
511
|
+
`eventBus: EventBusPort` to `AppPorts`, defers the key in
|
|
512
|
+
`infra/app-ports.ts`, registers `createInMemoryEventBusProvider()` in
|
|
513
|
+
`server/providers.ts`, and adds the `@beignet/provider-event-bus-memory`
|
|
514
|
+
dependency. The wiring is skipped when the ports file already mentions
|
|
515
|
+
`eventBus`, so apps that wired their own bus are left untouched. Use
|
|
472
516
|
`--soft-delete` when delete routes should archive rows with `deletedAt` while
|
|
473
517
|
list, get, and update operations continue to read only active records.
|
|
474
518
|
|
|
@@ -510,6 +554,26 @@ New task registries include `createTaskContext(...)` and
|
|
|
510
554
|
`stopTaskContext(...)` placeholders so provider startup and teardown stay
|
|
511
555
|
out of task definitions.
|
|
512
556
|
|
|
557
|
+
`make event` and `make job` also register the feature's `postEvents` and
|
|
558
|
+
`postJobs` registries in `defineOutboxRegistry({...})` when the app already
|
|
559
|
+
has a `server/outbox.ts` (or `paths.outbox`) module. The outbox registry is
|
|
560
|
+
opt-in, so the generators never create that file; `beignet doctor` reports
|
|
561
|
+
events and jobs the registry cannot deliver.
|
|
562
|
+
|
|
563
|
+
Generators wire the provider-backed ports their output depends on. `make
|
|
564
|
+
event` (and `make resource --events`) wires `eventBus: EventBusPort` with
|
|
565
|
+
`createInMemoryEventBusProvider()` from
|
|
566
|
+
`@beignet/provider-event-bus-memory`, including the package dependency.
|
|
567
|
+
`make notification` wires `mailer: MailerPort` with
|
|
568
|
+
`createMemoryMailerProvider()` and `notifications: NotificationPort` with
|
|
569
|
+
`createInlineNotificationsProvider()`, both dev-default providers from
|
|
570
|
+
`@beignet/core`. Each port is wired independently — added to `AppPorts`,
|
|
571
|
+
deferred in `infra/app-ports.ts`, and registered in `server/providers.ts` —
|
|
572
|
+
and skipped when the ports file already has the key, so integrations such as
|
|
573
|
+
resend (which contributes `mailer`) and app-owned adapters are left
|
|
574
|
+
untouched. Swap the dev-default provider for a production adapter without
|
|
575
|
+
rerunning the generator; the port stays the same.
|
|
576
|
+
|
|
513
577
|
Task, job, listener, schedule, and notification generators define artifacts
|
|
514
578
|
through app-owned context-bound builders in `lib/`. Each generator creates the
|
|
515
579
|
builder file when it is missing:
|
|
@@ -690,6 +754,11 @@ Today it detects:
|
|
|
690
754
|
|
|
691
755
|
- Contracts without a matching Next.js route handler
|
|
692
756
|
- Feature route groups that are not registered in the central route list
|
|
757
|
+
- Feature schedules and tasks that are not registered in `server/schedules.ts`
|
|
758
|
+
or `server/tasks.ts`
|
|
759
|
+
- Feature events with listeners, and feature jobs, that are missing from
|
|
760
|
+
`defineOutboxRegistry({...})` when the app has a `server/outbox.ts` module
|
|
761
|
+
- Feature listeners that no `registerListeners(...)` call ever references
|
|
693
762
|
- Next.js route handlers that do not map to known contracts
|
|
694
763
|
- OpenAPI drift in direct arrays, exported contract lists, and
|
|
695
764
|
`contractsFromRoutes(routes)` route registries
|
|
@@ -755,61 +824,14 @@ passes `doctor --strict`. Use
|
|
|
755
824
|
|
|
756
825
|
Use `beignet doctor --fix` for low-risk maintenance fixes. Today it can add
|
|
757
826
|
a missing `test` script, register existing feature route groups in the central
|
|
758
|
-
route list,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
The standard preset includes the local production-shaped defaults: Better Auth,
|
|
767
|
-
Drizzle/libSQL, Pino logging, local storage, devtools, UOW, durable idempotency, outbox, audit
|
|
768
|
-
logging, and feature-owned background workflow examples. Add external service
|
|
769
|
-
integrations only when you want those providers:
|
|
770
|
-
|
|
771
|
-
```bash
|
|
772
|
-
bun create beignet my-app --preset standard --integrations drizzle-turso,inngest,resend
|
|
773
|
-
```
|
|
774
|
-
|
|
775
|
-
Available features:
|
|
776
|
-
|
|
777
|
-
- `client`
|
|
778
|
-
- `react-query`
|
|
779
|
-
- `forms`
|
|
780
|
-
- `openapi`
|
|
781
|
-
|
|
782
|
-
Available integrations:
|
|
783
|
-
|
|
784
|
-
- `better-auth`
|
|
785
|
-
- `drizzle-turso`
|
|
786
|
-
- `inngest`
|
|
787
|
-
- `pino`
|
|
788
|
-
- `resend`
|
|
789
|
-
- `upstash-rate-limit`
|
|
790
|
-
|
|
791
|
-
With `--preset standard`, Drizzle/libSQL is included by default. The starter scaffolds `infra/db/schema/`, `infra/db/repositories.ts`, `infra/db/test-database.ts`, SQL-backed idempotency and outbox tables, a Drizzle todo repository adapter, `drizzle.config.ts`, database scripts, and `TURSO_*` env examples so the generated todo resource uses durable persistence instead of the in-memory repository. Later `make feature` or `make resource` calls in that app generate both a Drizzle table/repository and an in-memory test fake.
|
|
792
|
-
|
|
793
|
-
With `--preset minimal --integrations drizzle-turso`, the starter keeps the
|
|
794
|
-
small app shape and scaffolds the smallest durable wiring: `drizzle.config.ts`,
|
|
795
|
-
a todos-only schema in `infra/db/schema/`, a Drizzle todo repository in
|
|
796
|
-
`infra/todos/`, and an app-owned database provider in `infra/db/provider.ts`
|
|
797
|
-
that contributes the deferred `todos` port and creates and seeds the starter
|
|
798
|
-
table at startup. The generated `db:generate` and `db:migrate` scripts work
|
|
799
|
-
with `beignet db ...`; the `db:seed` and `db:reset` scripts are
|
|
800
|
-
standard-preset-only because their entrypoints are not scaffolded.
|
|
801
|
-
|
|
802
|
-
With `--preset standard`, Better Auth is included by default. The starter adds
|
|
803
|
-
the Better Auth Next.js route, Beignet auth provider wiring, typed
|
|
804
|
-
`UNAUTHORIZED` and `FORBIDDEN` errors, a request-bound authorization gate, and
|
|
805
|
-
`requireUser(ctx)`. Use hooks for HTTP boundary authentication and use cases or
|
|
806
|
-
policies for business authorization.
|
|
807
|
-
|
|
808
|
-
With `--preset minimal --integrations better-auth`, the starter wires an
|
|
809
|
-
app-owned `lib/better-auth.ts` backed by Better Auth's in-memory adapter, the
|
|
810
|
-
`app/api/auth/[...all]` route, `createAuthBetterAuthProvider(...)` behind a
|
|
811
|
-
deferred `auth` port, and an `auth` session on the request context. Users and
|
|
812
|
-
sessions reset on restart; switch to a database adapter before production.
|
|
827
|
+
route list, register unregistered feature schedule, task, and outbox
|
|
828
|
+
event/job registries in their existing central registry files, and repair
|
|
829
|
+
direct `createOpenAPIHandler([...])` arrays when the missing contracts are
|
|
830
|
+
already imported in the OpenAPI route. Registry fixes are append-only: when a
|
|
831
|
+
central file is missing, an anchor is customized beyond recognition, or some
|
|
832
|
+
artifacts are already registered individually, the fix bails out and the
|
|
833
|
+
diagnostic stays. Listener registration is report-only because apps own their
|
|
834
|
+
event-bus wiring.
|
|
813
835
|
|
|
814
836
|
## License
|
|
815
837
|
|
package/dist/create.js
CHANGED
|
@@ -46,7 +46,7 @@ export async function createProject(options) {
|
|
|
46
46
|
* Providers that ship in every starter. They used to be `--integrations`
|
|
47
47
|
* choices, so passing them gets a pointed error instead of a generic one.
|
|
48
48
|
*/
|
|
49
|
-
const baseProviderNames = new Set(["better-auth", "drizzle-
|
|
49
|
+
const baseProviderNames = new Set(["better-auth", "drizzle-sqlite", "pino"]);
|
|
50
50
|
function resolveIntegrations(explicitIntegrations) {
|
|
51
51
|
for (const integration of explicitIntegrations) {
|
|
52
52
|
if (baseProviderNames.has(integration)) {
|
package/dist/create.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEhB,kBAAkB,GAGnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAgC7C;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAAsB;IAEtB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IACzC,MAAM,IAAI,GAAG,oBAAoB,CAAC,OAAO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|
|
|
1
|
-
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../src/inspect.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,aAAa,EAIlB,KAAK,qBAAqB,EAE3B,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../src/inspect.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,aAAa,EAIlB,KAAK,qBAAqB,EAE3B,MAAM,aAAa,CAAC;AAkBrB,KAAK,iBAAiB,GAAG;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,UAAU,GACX,KAAK,GACL,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,wBAAwB,EAAE,CAAC;CAC3C,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,aAAa,EAAE,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