@fuzdev/fuz_app 0.185.0 → 0.187.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 (131) hide show
  1. package/dist/actions/CLAUDE.md +14 -2
  2. package/dist/actions/perform_action.d.ts.map +1 -1
  3. package/dist/actions/perform_action.js +36 -5
  4. package/dist/actions/ws_socket_session.d.ts.map +1 -1
  5. package/dist/actions/ws_socket_session.js +3 -1
  6. package/dist/auth/CLAUDE.md +17 -6
  7. package/dist/auth/account_queries.d.ts +60 -44
  8. package/dist/auth/account_queries.d.ts.map +1 -1
  9. package/dist/auth/account_queries.js +64 -54
  10. package/dist/auth/account_routes.d.ts.map +1 -1
  11. package/dist/auth/account_routes.js +59 -25
  12. package/dist/auth/admin_actions.d.ts.map +1 -1
  13. package/dist/auth/admin_actions.js +26 -9
  14. package/dist/auth/audit_emitter.js +2 -2
  15. package/dist/auth/audit_log_queries.d.ts +11 -3
  16. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  17. package/dist/auth/audit_log_queries.js +4 -4
  18. package/dist/auth/audit_log_schema.js +1 -1
  19. package/dist/auth/auth_ddl.d.ts.map +1 -1
  20. package/dist/auth/auth_ddl.js +4 -0
  21. package/dist/auth/cleanup.js +1 -1
  22. package/dist/auth/migrations.d.ts.map +1 -1
  23. package/dist/auth/migrations.js +35 -0
  24. package/dist/auth/role_grant_offer_action_specs.d.ts +1 -1
  25. package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
  26. package/dist/auth/role_grant_offer_action_specs.js +2 -1
  27. package/dist/auth/role_grant_offer_actions.d.ts +12 -0
  28. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  29. package/dist/auth/role_grant_offer_actions.js +48 -20
  30. package/dist/auth/role_grant_offer_queries.d.ts +28 -15
  31. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  32. package/dist/auth/role_grant_offer_queries.js +35 -16
  33. package/dist/auth/role_grant_queries.d.ts +118 -20
  34. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  35. package/dist/auth/role_grant_queries.js +145 -24
  36. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  37. package/dist/auth/self_service_role_actions.js +15 -0
  38. package/dist/auth/session_queries.d.ts +24 -0
  39. package/dist/auth/session_queries.d.ts.map +1 -1
  40. package/dist/auth/session_queries.js +28 -0
  41. package/dist/db/CLAUDE.md +3 -3
  42. package/dist/db/cell_ddl.d.ts +8 -3
  43. package/dist/db/cell_ddl.d.ts.map +1 -1
  44. package/dist/db/cell_ddl.js +10 -5
  45. package/dist/db/migrate.d.ts +46 -22
  46. package/dist/db/migrate.d.ts.map +1 -1
  47. package/dist/db/migrate.js +103 -85
  48. package/dist/http/body_limit.d.ts +4 -4
  49. package/dist/http/body_limit.js +4 -4
  50. package/dist/server/app_backend.d.ts.map +1 -1
  51. package/dist/server/app_backend.js +1 -4
  52. package/dist/testing/CLAUDE.md +161 -27
  53. package/dist/testing/app_server.d.ts +5 -7
  54. package/dist/testing/app_server.d.ts.map +1 -1
  55. package/dist/testing/app_server.js +5 -7
  56. package/dist/testing/auth_apps.d.ts +3 -1
  57. package/dist/testing/auth_apps.d.ts.map +1 -1
  58. package/dist/testing/auth_apps.js +22 -5
  59. package/dist/testing/cross_backend/backend_both_live.d.ts +47 -0
  60. package/dist/testing/cross_backend/backend_both_live.d.ts.map +1 -0
  61. package/dist/testing/cross_backend/backend_both_live.js +566 -0
  62. package/dist/testing/cross_backend/backend_config.d.ts +8 -0
  63. package/dist/testing/cross_backend/backend_config.d.ts.map +1 -1
  64. package/dist/testing/cross_backend/backend_log.d.ts +71 -0
  65. package/dist/testing/cross_backend/backend_log.d.ts.map +1 -0
  66. package/dist/testing/cross_backend/backend_log.js +134 -0
  67. package/dist/testing/cross_backend/backend_swap.d.ts +41 -0
  68. package/dist/testing/cross_backend/backend_swap.d.ts.map +1 -0
  69. package/dist/testing/cross_backend/backend_swap.js +267 -0
  70. package/dist/testing/cross_backend/body_size_smuggling.js +3 -3
  71. package/dist/testing/cross_backend/bootstrap_backend.js +4 -4
  72. package/dist/testing/cross_backend/conformance_case.d.ts +11 -6
  73. package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
  74. package/dist/testing/cross_backend/conformance_case.js +4 -0
  75. package/dist/testing/cross_backend/conformance_principal.d.ts +2 -2
  76. package/dist/testing/cross_backend/conformance_principal.d.ts.map +1 -1
  77. package/dist/testing/cross_backend/conformance_principal.js +27 -10
  78. package/dist/testing/cross_backend/default_backend_configs.d.ts +38 -5
  79. package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
  80. package/dist/testing/cross_backend/default_backend_configs.js +50 -15
  81. package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
  82. package/dist/testing/cross_backend/in_process_setup.js +52 -30
  83. package/dist/testing/cross_backend/revocation_drivers.d.ts +14 -2
  84. package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
  85. package/dist/testing/cross_backend/revocation_drivers.js +36 -8
  86. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts +7 -0
  87. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
  88. package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +4 -2
  89. package/dist/testing/cross_backend/setup.d.ts +44 -43
  90. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  91. package/dist/testing/cross_backend/setup.js +64 -62
  92. package/dist/testing/cross_backend/shared_database_backends.d.ts +175 -0
  93. package/dist/testing/cross_backend/shared_database_backends.d.ts.map +1 -0
  94. package/dist/testing/cross_backend/shared_database_backends.js +298 -0
  95. package/dist/testing/cross_backend/spawn_backend.d.ts +7 -3
  96. package/dist/testing/cross_backend/spawn_backend.d.ts.map +1 -1
  97. package/dist/testing/cross_backend/spawn_backend.js +86 -7
  98. package/dist/testing/cross_backend/spine_suites.d.ts +1 -1
  99. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  100. package/dist/testing/cross_backend/spine_suites.js +5 -2
  101. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  102. package/dist/testing/cross_backend/sse_round_trip.js +4 -2
  103. package/dist/testing/cross_backend/testing_reset_actions.d.ts +7 -6
  104. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  105. package/dist/testing/cross_backend/testing_reset_actions.js +10 -8
  106. package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
  107. package/dist/testing/cross_backend/testing_server_bun.js +7 -31
  108. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  109. package/dist/testing/cross_backend/ws_round_trip.js +4 -3
  110. package/dist/testing/data_exposure.d.ts +4 -1
  111. package/dist/testing/data_exposure.d.ts.map +1 -1
  112. package/dist/testing/data_exposure.js +93 -25
  113. package/dist/testing/db_invariants.d.ts +5 -5
  114. package/dist/testing/db_invariants.js +5 -5
  115. package/dist/testing/logged_errors.d.ts +61 -0
  116. package/dist/testing/logged_errors.d.ts.map +1 -0
  117. package/dist/testing/logged_errors.js +285 -0
  118. package/dist/testing/middleware_gate_probes.d.ts.map +1 -1
  119. package/dist/testing/middleware_gate_probes.js +15 -8
  120. package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
  121. package/dist/testing/rpc_attack_surface.js +41 -16
  122. package/dist/testing/stubs.d.ts +5 -1
  123. package/dist/testing/stubs.d.ts.map +1 -1
  124. package/dist/testing/stubs.js +6 -3
  125. package/dist/testing/test_app.d.ts +40 -11
  126. package/dist/testing/test_app.d.ts.map +1 -1
  127. package/dist/testing/test_app.js +66 -9
  128. package/dist/testing/transports/fetch_transport.d.ts +10 -0
  129. package/dist/testing/transports/fetch_transport.d.ts.map +1 -1
  130. package/dist/testing/transports/fetch_transport.js +13 -0
  131. package/package.json +5 -3
@@ -0,0 +1,298 @@
1
+ import '../assert_dev_env.js';
2
+ /**
3
+ * Helpers for suites that run several spines over one Postgres database —
4
+ * the backend swap (`backend_swap.ts`, one backend at a time) and both spines
5
+ * live (`backend_both_live.ts`, at once). They share what a credential and a
6
+ * write need to carry from one spine to the other: the config checks, a
7
+ * snapshot of every table's content, the drain and invariant backdoors, and
8
+ * who a credential authenticates as on a given backend.
9
+ *
10
+ * @module
11
+ */
12
+ import { assert } from 'vitest';
13
+ import { parse } from '@fuzdev/fuz_schema/schema.ts';
14
+ import { SessionAccountJson } from '../../auth/account_schema.js';
15
+ import { InviteListOutput } from '../../auth/admin_action_specs.js';
16
+ import { DAEMON_TOKEN_HEADER } from '../../auth/daemon_token.js';
17
+ import { EnvStringbool } from '../../env/env_schemas.js';
18
+ import { ERROR_AUTHENTICATION_REQUIRED, ERROR_INSUFFICIENT_PERMISSIONS } from '../../http/error_schemas.js';
19
+ import { DbInvariantRows } from '../db_invariant_queries.js';
20
+ import { assert_db_invariant_rows } from '../db_invariants.js';
21
+ import { create_fetch_transport } from '../transports/fetch_transport.js';
22
+ import { cross_rpc_call, error_reason, expect_output } from './cross_rpc.js';
23
+ import { spawn_backend } from './spawn_backend.js';
24
+ /** The env var a backend's database URL rides in on both spine families. */
25
+ const DATABASE_URL_ENV = 'DATABASE_URL';
26
+ /** The cookie-signing keys env var both spine families read. */
27
+ const COOKIE_KEYS_ENV = 'SECRET_FUZ_COOKIE_KEYS';
28
+ /** The Rust family's startup-reset gate (`make_default_rust_backend_config`). */
29
+ const RESET_DB_ON_STARTUP_ENV = 'FUZ_TESTING_RESET_DB_ON_STARTUP';
30
+ /** The backdoors every shared-database suite drives: the drain and the invariants. */
31
+ export const SHARED_DATABASE_BACKDOORS = [
32
+ '_testing_drain_effects',
33
+ '_testing_db_invariants'
34
+ ];
35
+ /**
36
+ * Read the migrations and every table's content over `db`. Read it after the
37
+ * backends' drains (`drain_backend_effects`), or a detached write may land
38
+ * after it.
39
+ *
40
+ * @param db - a direct connection to the shared database
41
+ * @returns the snapshot
42
+ */
43
+ export const read_shared_database_snapshot = async (db) => {
44
+ const schema_version = await db.query('SELECT namespace, name, sequence, applied_at::text AS applied_at FROM schema_version ' +
45
+ 'ORDER BY namespace, sequence');
46
+ const tables = await db.query('SELECT schemaname, tablename FROM pg_tables ' +
47
+ "WHERE schemaname NOT IN ('pg_catalog', 'information_schema') ORDER BY schemaname, tablename");
48
+ const content = {};
49
+ for (const { schemaname, tablename } of tables) {
50
+ const [row] = await db.query('SELECT count(*)::int AS rows, ' +
51
+ "md5(coalesce(string_agg(t::text, E'\\n' ORDER BY t::text), '')) AS digest " +
52
+ `FROM "${schemaname}"."${tablename}" t`);
53
+ content[`${schemaname}.${tablename}`] = row;
54
+ }
55
+ return { schema_version, tables: content };
56
+ };
57
+ /**
58
+ * The tables whose content differs between two snapshots, sorted — a table
59
+ * present in only one counts as changed.
60
+ *
61
+ * @param before - the earlier snapshot
62
+ * @param after - the later snapshot
63
+ * @returns the changed tables' `schema.table` keys
64
+ */
65
+ export const to_changed_tables = (before, after) => {
66
+ const names = new Set([...Object.keys(before.tables), ...Object.keys(after.tables)]);
67
+ return [...names]
68
+ .filter((name) => before.tables[name]?.digest !== after.tables[name]?.digest)
69
+ .sort();
70
+ };
71
+ /**
72
+ * Why a config's startup-reset env doesn't leave the reset off, or `null` when
73
+ * it does — read as the Rust spine reads it: unset or a false stringbool is
74
+ * off, a true one resets, and any other value fails its boot. A config that
75
+ * leaves it out reads the harness process's own, which `spawn_backend` passes
76
+ * to the child.
77
+ */
78
+ const to_reset_problem = (config) => {
79
+ const value = config.env[RESET_DB_ON_STARTUP_ENV] ?? process.env[RESET_DB_ON_STARTUP_ENV];
80
+ if (value === undefined)
81
+ return null;
82
+ const parsed = parse(EnvStringbool, value);
83
+ if (!parsed.ok) {
84
+ return `${config.name}'s ${RESET_DB_ON_STARTUP_ENV} is no stringbool (${JSON.stringify(value)})`;
85
+ }
86
+ return parsed.value
87
+ ? `${config.name} resets its database at startup (${RESET_DB_ON_STARTUP_ENV})`
88
+ : null;
89
+ };
90
+ /**
91
+ * Each way `configs` can't share `database_url`: they must name it in
92
+ * `DATABASE_URL` (compared as exact strings, so two spellings of one database
93
+ * are refused), share the session cookie name and a set
94
+ * `SECRET_FUZ_COOKIE_KEYS` (a cookie one spine signs, another must verify),
95
+ * keep a startup reset off (`FUZ_TESTING_RESET_DB_ON_STARTUP` unset or a false
96
+ * stringbool, as the Rust spine parses it), and declare the
97
+ * `SHARED_DATABASE_BACKDOORS`.
98
+ *
99
+ * @param configs - the backends that run over the database
100
+ * @param database_url - the `postgres://` database they share
101
+ * @returns the problems, empty when they can share it
102
+ */
103
+ export const to_shared_database_problems = (configs, database_url) => {
104
+ const problems = [];
105
+ const cookie_names = new Set(configs.map((config) => config.cookie_name));
106
+ if (cookie_names.size > 1) {
107
+ problems.push(`cookie names differ (${[...cookie_names].join(', ')})`);
108
+ }
109
+ const cookie_keys = configs.map((config) => config.env[COOKIE_KEYS_ENV]);
110
+ if (cookie_keys.every((keys) => keys === undefined)) {
111
+ problems.push(`no config sets ${COOKIE_KEYS_ENV}`);
112
+ }
113
+ else if (new Set(cookie_keys).size > 1) {
114
+ problems.push(`${COOKIE_KEYS_ENV} differs`);
115
+ }
116
+ for (const config of configs) {
117
+ const url = config.env[DATABASE_URL_ENV];
118
+ if (url === undefined) {
119
+ problems.push(`${config.name} sets no ${DATABASE_URL_ENV}`);
120
+ }
121
+ else if (url !== database_url) {
122
+ problems.push(`${config.name}'s ${DATABASE_URL_ENV} is not the shared database`);
123
+ }
124
+ const reset_problem = to_reset_problem(config);
125
+ if (reset_problem !== null)
126
+ problems.push(reset_problem);
127
+ for (const method of SHARED_DATABASE_BACKDOORS) {
128
+ if (!config.capabilities.testing_backdoors.includes(method)) {
129
+ problems.push(`${config.name} doesn't declare ${method}`);
130
+ }
131
+ }
132
+ }
133
+ return problems;
134
+ };
135
+ /**
136
+ * Spawn `config`, run `body`, then tear down — a teardown failure (an exit
137
+ * other than `0`, an unexpected error in the log) fails the caller. A failed
138
+ * body's teardown is logged beside the body's error rather than replacing it.
139
+ * The handle sits in `live` while the backend runs.
140
+ *
141
+ * @param config - the backend to spawn
142
+ * @param live - where the running handle is held
143
+ * @param body - what to run against it
144
+ * @returns what `body` returned
145
+ */
146
+ export const with_live_backend = async (config, live, body) => {
147
+ const handle = await spawn_backend(config);
148
+ live.handle = handle;
149
+ let result;
150
+ try {
151
+ result = await body(handle);
152
+ }
153
+ catch (err) {
154
+ live.handle = null;
155
+ await handle.teardown().catch((teardown_error) => console.error(teardown_error));
156
+ throw err;
157
+ }
158
+ live.handle = null;
159
+ await handle.teardown();
160
+ return result;
161
+ };
162
+ /**
163
+ * Tear down a backend left running — one whose test timed out — logging a
164
+ * failed teardown rather than throwing.
165
+ *
166
+ * @param live - the holder, cleared
167
+ */
168
+ export const teardown_live_backend = async (live) => {
169
+ const { handle } = live;
170
+ if (!handle)
171
+ return;
172
+ live.handle = null;
173
+ await handle.teardown().catch((err) => console.error(err));
174
+ };
175
+ /**
176
+ * A transport on `config`'s backend, holding `cookies` when given. `origin:
177
+ * null` sends no `Origin`, as a bearer or daemon token requires.
178
+ *
179
+ * @param config - the backend
180
+ * @param cookies - `Set-Cookie` lines to start the jar with
181
+ * @param origin - `null` for an Origin-free transport
182
+ * @returns the transport
183
+ */
184
+ export const backend_transport = (config, cookies, origin) => create_fetch_transport({
185
+ base_url: config.base_url,
186
+ ...(cookies && { initial_cookies: cookies }),
187
+ ...(origin === null && { origin: null })
188
+ });
189
+ /**
190
+ * `method` on `config`'s RPC endpoint over `transport`.
191
+ *
192
+ * @param config - the backend
193
+ * @param transport - the transport carrying the credential
194
+ * @param method - the RPC method
195
+ * @param params - its params
196
+ * @param headers - extra request headers
197
+ * @returns the answer
198
+ */
199
+ export const backend_rpc = (config, transport, method, params, headers = {}) => cross_rpc_call(transport, config.rpc_path, method, params, headers);
200
+ /**
201
+ * `method` on a fresh transport holding `cookies`, its output parsed.
202
+ *
203
+ * @param config - the backend
204
+ * @param cookies - the session's `Set-Cookie` lines
205
+ * @param method - the RPC method
206
+ * @param params - its params
207
+ * @param output - the output schema it must answer
208
+ * @returns the parsed output
209
+ */
210
+ export const backend_rpc_as = async (config, cookies, method, params, output) => expect_output(await backend_rpc(config, backend_transport(config, cookies), method, params), output);
211
+ /**
212
+ * A daemon-token backdoor call: Origin-free and cookie-free, as the daemon
213
+ * token requires.
214
+ *
215
+ * @param handle - the backend, whose daemon token authenticates
216
+ * @param method - the backdoor method
217
+ * @returns the answer
218
+ */
219
+ export const backend_daemon_rpc = (handle, method) => backend_rpc(handle.config, backend_transport(handle.config, undefined, null), method, undefined, {
220
+ [DAEMON_TOKEN_HEADER]: handle.daemon_token
221
+ });
222
+ /**
223
+ * Await the backend's detached writes (`_testing_drain_effects`), so what it
224
+ * did is all on disk before a snapshot or teardown.
225
+ *
226
+ * @param handle - the backend
227
+ */
228
+ export const drain_backend_effects = async (handle) => {
229
+ const drained = await backend_daemon_rpc(handle, '_testing_drain_effects');
230
+ assert.deepStrictEqual(drained.result, { ok: true }, `${handle.config.name}: the drain answers`);
231
+ };
232
+ /**
233
+ * Assert no database invariant is broken, as `handle`'s backend reads them
234
+ * (`_testing_db_invariants`).
235
+ *
236
+ * @param handle - the backend
237
+ */
238
+ export const assert_backend_invariants = async (handle) => {
239
+ const answer = expect_output(await backend_daemon_rpc(handle, '_testing_db_invariants'), DbInvariantRows);
240
+ assert_db_invariant_rows(answer.rows, handle.config.name);
241
+ };
242
+ /**
243
+ * A JSON `POST` to a REST route.
244
+ *
245
+ * @param transport - the transport carrying the credential
246
+ * @param path - the route path
247
+ * @param body - the JSON body
248
+ * @returns the answer
249
+ */
250
+ export const backend_post_json = async (transport, path, body) => {
251
+ const res = await transport(path, {
252
+ method: 'POST',
253
+ headers: { 'content-type': 'application/json' },
254
+ body: JSON.stringify(body)
255
+ });
256
+ const text = await res.text();
257
+ return {
258
+ status: res.status,
259
+ body: text ? JSON.parse(text) : null,
260
+ set_cookies: res.headers.getSetCookie()
261
+ };
262
+ };
263
+ /**
264
+ * Who a credential authenticates as on `config`'s backend (`account_verify`):
265
+ * an account id, or `null` on a 401 `authentication_required`.
266
+ *
267
+ * @param config - the backend
268
+ * @param credential - a session's `Set-Cookie` lines or a bearer token
269
+ * @returns the account id, or `null` when refused
270
+ */
271
+ export const verified_account_id = async (config, credential) => {
272
+ const res = 'cookies' in credential
273
+ ? await backend_rpc(config, backend_transport(config, credential.cookies), 'account_verify', undefined)
274
+ : // Origin-free: a bearer beside an `Origin` is discarded as browser context
275
+ await backend_rpc(config, backend_transport(config, undefined, null), 'account_verify', undefined, { authorization: `Bearer ${credential.bearer}` });
276
+ if (res.status === 401) {
277
+ assert.strictEqual(error_reason(res), ERROR_AUTHENTICATION_REQUIRED);
278
+ return null;
279
+ }
280
+ return expect_output(res, SessionAccountJson).id;
281
+ };
282
+ /**
283
+ * Whether a session passes the admin gate: `invite_list` answered (`true`) or
284
+ * refused 403 `insufficient_permissions` (`false`).
285
+ *
286
+ * @param config - the backend
287
+ * @param cookies - the session's `Set-Cookie` lines
288
+ * @returns whether the gate passes
289
+ */
290
+ export const passes_admin_gate = async (config, cookies) => {
291
+ const res = await backend_rpc(config, backend_transport(config, cookies), 'invite_list', undefined);
292
+ if (res.status === 403) {
293
+ assert.strictEqual(error_reason(res), ERROR_INSUFFICIENT_PERMISSIONS);
294
+ return false;
295
+ }
296
+ expect_output(res, InviteListOutput);
297
+ return true;
298
+ };
@@ -28,7 +28,10 @@ import '../assert_dev_env.js';
28
28
  *
29
29
  * The child's stderr is kept as a bounded tail (`STDERR_TAIL_MAX_BYTES`):
30
30
  * a startup failure reports it with the exit code or signal, and an exit
31
- * after startup that teardown didn't cause is logged with it.
31
+ * after startup that teardown didn't cause is logged with it. With
32
+ * `config.log`, its stdout and stderr are also teed into `config.log.path`,
33
+ * and teardown fails on each error-level line there that no
34
+ * `config.log.allow_errors` entry matches (`backend_log.ts`).
32
35
  *
33
36
  * Teardown holds the backend to a clean exit: a spine whose graceful
34
37
  * shutdown gave up on work still running, or threw, exits `1` (the TS core's
@@ -71,8 +74,9 @@ export interface BackendHandle {
71
74
  * than `0` (a shutdown that gave up or failed), an exit by signal (the
72
75
  * SIGKILL escalation among them), an exit before teardown (already
73
76
  * logged when it happened), or a group still running when teardown gave
74
- * up. The error names the backend and the exit, with the stderr tail. The
75
- * group is torn down either way.
77
+ * up. The error names the backend and the exit, with the stderr tail. With
78
+ * `config.log`, it also rejects on the error lines of the log no allowance
79
+ * names, listing them. The group is torn down either way.
76
80
  */
77
81
  readonly teardown: () => Promise<void>;
78
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"spawn_backend.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spawn_backend.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAK9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC7B,yFAAyF;IACzF,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAgBD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,QAAY,CAAC;AAmE/C;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,OAAO,CAAC,OAAO,CAenE,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,qFAAqF;IACrF,QAAQ,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC;CAC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A8FF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAU,QAAQ,aAAa,KAAG,OAAO,CAAC,aAAa,CAqThF,CAAC"}
@@ -28,7 +28,10 @@ import '../assert_dev_env.js';
28
28
  *
29
29
  * The child's stderr is kept as a bounded tail (`STDERR_TAIL_MAX_BYTES`):
30
30
  * a startup failure reports it with the exit code or signal, and an exit
31
- * after startup that teardown didn't cause is logged with it.
31
+ * after startup that teardown didn't cause is logged with it. With
32
+ * `config.log`, its stdout and stderr are also teed into `config.log.path`,
33
+ * and teardown fails on each error-level line there that no
34
+ * `config.log.allow_errors` entry matches (`backend_log.ts`).
32
35
  *
33
36
  * Teardown holds the backend to a clean exit: a spine whose graceful
34
37
  * shutdown gave up on work still running, or threw, exits `1` (the TS core's
@@ -46,9 +49,11 @@ import '../assert_dev_env.js';
46
49
  * @module
47
50
  */
48
51
  import { spawn } from 'node:child_process';
52
+ import { createWriteStream } from 'node:fs';
49
53
  import { readFile, writeFile, mkdir, rm } from 'node:fs/promises';
50
54
  import { connect } from 'node:net';
51
55
  import { dirname } from 'node:path';
56
+ import { create_log_line_splitter, find_unexpected_backend_errors, format_unexpected_backend_errors } from './backend_log.js';
52
57
  /** Number of ms between health-probe attempts. Tuned to be cheap on busy CI runners. */
53
58
  const HEALTH_PROBE_INTERVAL_MS = 100;
54
59
  /**
@@ -74,6 +79,8 @@ export const STDERR_TAIL_MAX_BYTES = 16 * 1024;
74
79
  * the await below can't strand the whole run forever.
75
80
  */
76
81
  const TEARDOWN_SIGKILL_GRACE_MS = 3_000;
82
+ /** How long teardown waits for the child's stdio to end before reading its log (ms). */
83
+ const LOG_DRAIN_WAIT_MS = 1_000;
77
84
  /** How often teardown checks whether the process group has exited (ms). */
78
85
  const TEARDOWN_POLL_INTERVAL_MS = 20;
79
86
  /**
@@ -268,6 +275,50 @@ export const spawn_backend = async (config) => {
268
275
  // a token a previous run left would read as this binary's
269
276
  await rm(config.bootstrap.daemon_token_path, { force: true });
270
277
  install_process_handlers();
278
+ // the log file, rewritten per spawn, opened before the child so no output is missed
279
+ let log_stream = null;
280
+ let log_write_error = null;
281
+ if (config.log) {
282
+ await mkdir(dirname(config.log.path), { recursive: true });
283
+ log_stream = createWriteStream(config.log.path, { flags: 'w' });
284
+ // a failed open or write (a full disk) fails teardown, never the process
285
+ log_stream.on('error', (error) => {
286
+ log_write_error ??= error;
287
+ });
288
+ }
289
+ // whole lines only, per stream (`create_log_line_splitter`)
290
+ const log_line_writer = () => {
291
+ const splitter = create_log_line_splitter();
292
+ return {
293
+ write: (chunk) => {
294
+ if (!log_stream || log_stream.writableEnded || log_write_error)
295
+ return;
296
+ const lines = splitter.push(chunk);
297
+ if (lines !== '')
298
+ log_stream.write(lines);
299
+ },
300
+ flush: () => {
301
+ const rest = splitter.end();
302
+ if (log_stream && !log_stream.writableEnded && !log_write_error && rest !== '') {
303
+ log_stream.write(rest);
304
+ }
305
+ }
306
+ };
307
+ };
308
+ const stdout_log = log_line_writer();
309
+ const stderr_log = log_line_writer();
310
+ let log_stream_closing = null;
311
+ const log_stream_closed = () => (log_stream_closing ??= new Promise((resolve) => {
312
+ if (!log_stream || log_stream.closed || log_stream.destroyed) {
313
+ resolve();
314
+ return;
315
+ }
316
+ stdout_log.flush();
317
+ stderr_log.flush();
318
+ // `'close'` follows a failed stream too, which never calls back `end`'s callback
319
+ log_stream.once('close', () => resolve());
320
+ log_stream.end();
321
+ }));
271
322
  const [command, ...args] = config.start_command;
272
323
  const spawned_at = performance.now();
273
324
  const child = spawn(command, args, {
@@ -279,8 +330,12 @@ export const spawn_backend = async (config) => {
279
330
  });
280
331
  // Keep a bounded stderr tail so a crash surfaces with context.
281
332
  const stderr_tail = create_output_tail(STDERR_TAIL_MAX_BYTES);
333
+ // `'close'` follows the exit once the child's stdio has ended, so its last
334
+ // output is in the log file before teardown reads it
335
+ const child_closed = new Promise((resolve) => child.once('close', () => resolve()));
282
336
  child.stderr?.on('data', (chunk) => {
283
337
  stderr_tail.push(chunk);
338
+ stderr_log.write(chunk);
284
339
  });
285
340
  const format_stderr_tail = () => {
286
341
  const text = stderr_tail.text();
@@ -300,8 +355,10 @@ export const spawn_backend = async (config) => {
300
355
  // long-lived binary — so it hides in short/isolated runs. We discard
301
356
  // rather than buffer (unlike stderr): stdout carries high-volume
302
357
  // operational logging whose unbounded retention would leak across a
303
- // long suite.
304
- child.stdout?.on('data', () => { });
358
+ // long suite. The log file, when configured, is on disk, not in memory.
359
+ child.stdout?.on('data', (chunk) => {
360
+ stdout_log.write(chunk);
361
+ });
305
362
  // how the child ended: an exit, or a spawn that never produced a process
306
363
  // (a command that doesn't exist emits `'error'` and never `'exit'`)
307
364
  let exit_info = null;
@@ -417,11 +474,32 @@ export const spawn_backend = async (config) => {
417
474
  return `exited (${exit}) at teardown, not code=0 — a shutdown that gave up on work still running or failed`;
418
475
  };
419
476
  let teardown_done = null;
420
- const teardown = () => (teardown_done ??= stop().then((wait) => {
421
- const unclean = describe_unclean_exit(wait);
422
- if (unclean !== null) {
423
- throw new Error(`spawn_backend(${config.name}): ${unclean}${format_stderr_tail()}`);
477
+ /** The log's error lines no allowance names, as a failure message, or `null`. */
478
+ const check_log = async () => {
479
+ if (!config.log)
480
+ return null;
481
+ // bounded: a descendant that left the group can hold the pipe open
482
+ await Promise.race([child_closed, sleep(LOG_DRAIN_WAIT_MS)]);
483
+ await log_stream_closed();
484
+ if (log_write_error) {
485
+ return `spawn_backend(${config.name}): its log ${config.log.path} failed to write: ${log_write_error.message}`;
424
486
  }
487
+ const unexpected = find_unexpected_backend_errors(await readFile(config.log.path, 'utf-8'), config.log.allow_errors);
488
+ return unexpected.length === 0
489
+ ? null
490
+ : format_unexpected_backend_errors(config.name, config.log.path, unexpected);
491
+ };
492
+ const teardown = () => (teardown_done ??= stop().then(async (wait) => {
493
+ const unclean = describe_unclean_exit(wait);
494
+ const log_problem = await check_log();
495
+ const problems = [
496
+ ...(unclean === null
497
+ ? []
498
+ : [`spawn_backend(${config.name}): ${unclean}${format_stderr_tail()}`]),
499
+ ...(log_problem === null ? [] : [log_problem])
500
+ ];
501
+ if (problems.length > 0)
502
+ throw new Error(problems.join('\n\n'));
425
503
  }));
426
504
  // Wait for the child and every process left in its group to exit, so callers
427
505
  // can be sure the port is free. A backend that ignores SIGTERM — or whose
@@ -459,6 +537,7 @@ export const spawn_backend = async (config) => {
459
537
  catch (err) {
460
538
  // the startup failure is the report, whatever the exit
461
539
  await stop();
540
+ await log_stream_closed();
462
541
  throw new Error(`spawn_backend(${config.name}) failed: ${err.message}${format_stderr_tail()}`);
463
542
  }
464
543
  };
@@ -63,7 +63,7 @@ export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup",
63
63
  /** A shipped single-backend cross suite, named by its module. */
64
64
  export type SuiteName = (typeof SUITE_NAMES)[number];
65
65
  /** A shipped suite module `describe_spine_cross_suites` leaves out. */
66
- export type StandaloneSuiteName = 'conformance_table' | 'differential' | 'login_security' | 'standard_bundle' | 'ws_action_rate_limit';
66
+ export type StandaloneSuiteName = 'backend_both_live' | 'backend_swap' | 'conformance_table' | 'differential' | 'login_security' | 'standard_bundle' | 'ws_action_rate_limit';
67
67
  /**
68
68
  * The shipped suite modules `describe_spine_cross_suites` leaves out, each with
69
69
  * why. Their entry points stay as they are; a consumer calls them beside the
@@ -1 +1 @@
1
- {"version":3,"file":"spine_suites.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_suites.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwG9B,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAmC,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAEN,KAAK,gCAAgC,EACrC,MAAM,wBAAwB,CAAC;AACh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AAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACrB;AAiCD;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,GACvC,eAAe,mBAAmB,EAClC,WAAW,WAAW,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,KACpD,IAgBF,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,8BAA8B,GAC1C,eAAe,mBAAmB,EAClC,QAAQ,aAAa,CAAC,cAAc,CAAC,KACnC,IAiCF,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,SAAS,KAAK,SAAS,CAAC;CAChE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,GACjC,QAAQ,sCAAsC,EAC9C,SAAS,uBAAuB,EAChC,cAAc,sBAAsB,KAClC,IAqEF,CAAC;AAmBF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,GACvC,QAAQ,sCAAsC,EAC9C,SAAS,uBAAuB,KAC9B,IAEF,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B,gDAAgD,CAAC"}
@@ -79,8 +79,9 @@ import '../assert_dev_env.js';
79
79
  * **Not in the one call** (`STANDALONE_CROSS_SUITES`, with the reasons): the
80
80
  * suites that need two handles (the differential), a backend spawned with live
81
81
  * limiters (`login_security`, `ws_action_rate_limit` — the standard suites would
82
- * exhaust them), and the conformance runner, which runs the consumer's own
83
- * cases. Each keeps its own entry point.
82
+ * exhaust them), the backend swap, which spawns and stops its own backends, and
83
+ * the conformance runner, which runs the consumer's own cases. Each keeps its
84
+ * own entry point.
84
85
  *
85
86
  * Suites are registered without a wrapping `describe`, so their test names are
86
87
  * the same as when each is called on its own — and an `exclude_cases` path is
@@ -219,6 +220,8 @@ export const STANDALONE_CROSS_SUITES = {
219
220
  login_security: 'needs a backend spawned with the login limiters enabled, which the standard suites would exhaust',
220
221
  ws_action_rate_limit: 'needs a backend spawned with the action limiters enabled, which the standard suites would exhaust',
221
222
  conformance_table: "a runner over the consumer's own cases, not a suite",
223
+ backend_both_live: 'spawns two backends of its own over one database and runs them at once, rather than running against one',
224
+ backend_swap: 'spawns and stops two backends of its own, one at a time over one database, rather than running against one',
222
225
  standard_bundle: 'runs `standard_auth` and `standard` in one call, which the registry runs as two suites'
223
226
  };
224
227
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sse_round_trip.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/sse_round_trip.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAgH9B,OAAO,EAAE,KAAK,mBAAmB,EAAW,MAAM,mBAAmB,CAAC;AAItE,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,YAAY,CAAC;AAYzD,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IAC1C;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,+GAA+G;IAC/G,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,wFAA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OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAwID;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IAudtF,CAAC"}
@@ -47,7 +47,8 @@ import '../assert_dev_env.js';
47
47
  * 7. **close on the shared revocations** (gated on `rpc_path`; purge also
48
48
  * on `capabilities.account_lifecycle`) — `admin_token_revoke_all`,
49
49
  * `POST /password`, and `account_purge` of a second admin each close its
50
- * stream, and its `POST /logout` closes the stream of the session it ends
50
+ * stream, and its `POST /logout` and `account_session_revoke` of its own
51
+ * session each close the stream of the session they end
51
52
  * while a second session's stream stays open and still receives a
52
53
  * broadcast — the rows `create_account_revocations` shares with the WS
53
54
  * suite.
@@ -424,7 +425,8 @@ export const describe_cross_process_sse_tests = (options) => {
424
425
  });
425
426
  // The revocations of `revocation_drivers.ts`, shared with the WS suite,
426
427
  // each close the target admin's stream on the session they were sent on.
427
- // A session-scoped one (logout) leaves a second session's stream open and
428
+ // A session-scoped one (logout, a revoke of the current session) leaves a
429
+ // second session's stream open and
428
430
  // receiving, so a backend closing the whole account on it fails. Without
429
431
  // `rpc_path` the rows still register, as skipped cases, and never run —
430
432
  // so the empty path is never sent.
@@ -164,10 +164,10 @@ export declare const testing_drain_effects_action_spec: {
164
164
  * auth resolution therefore passes the
165
165
  * cookie-payload gate (`parse_session_from_cookies`) and is refused by the authoritative
166
166
  * DB-row gate (`query_session_get_valid` — `WHERE expires_at > NOW()`) —
167
- * the gate the in-process payload-expiry tests never reach and the one that
168
- * structurally needs a server-side mint (the cross-process driver has no
169
- * keyring / DB access). The `expired_session` conformance principal drives
170
- * this.
167
+ * the gate the in-process payload-expiry tests never reach. It forges a dead
168
+ * session no wire path leaves (the database-invariant twin check's session on
169
+ * a deleted account); a session that lived and then expired is the
170
+ * `expired_session` principal's, over `_testing_shorten_credential_expiry`.
171
171
  *
172
172
  * `auth` gates on the daemon-token credential, matching `_testing_reset` —
173
173
  * effectively keeper-only. Like its siblings the action is internally
@@ -612,8 +612,9 @@ export declare const testing_shorten_credential_expiry_action_spec: {
612
612
  * and `api_token` row of the account gets `LEAST(expires_at, NOW() + seconds)`,
613
613
  * so nothing moves later and an eternal token gains an expiry.
614
614
  *
615
- * Shared by the action and the in-process fixture's `mint_expired_token`, so
616
- * both fixtures expire a token with one statement. Unbounded here; the
615
+ * Shared by the action and the in-process fixture's `mint_expired_token` and
616
+ * `mint_expired_session`, so both fixtures expire a credential with one
617
+ * statement. Unbounded here; the
617
618
  * action's input holds `seconds` to its range.
618
619
  *
619
620
  * @param db - the database, a request transaction or the pool
@@ -1 +1 @@
1
- {"version":3,"file":"testing_reset_actions.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/testing_reset_actions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqF9B,OAAO,EAcN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AA0BzC;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,iFACqC,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;QAiBpC;;;;;;;;WAQG;;;;;;;;;;;;;;;QAMH,4EAA4E;;;;;;;;;;;;;;;;;CAMhC,CAAC;AAE/C;;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;;;;;;;;;GAiBG;AACH,eAAO,MAAM,qCAAqC,GACjD,SAAS,aAAa,CAAC,SAAS,CAAC,EACjC,UAAS,aAAa,CAAC,SAAS,CAAM,KACpC,SASF,CAAC;AAEF,4CAA4C;AAC5C,MAAM,WAAW,2BAA2B;IAC3C;;;;;;OAMG;IACH,QAAQ,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IAC9C;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACxD;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,GAClC,MAAM,OAAO,EACb,SAAS,2BAA2B,KAClC,KAAK,CAAC,SAAS,CAwJjB,CAAC"}
1
+ {"version":3,"file":"testing_reset_actions.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/testing_reset_actions.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAsF9B,OAAO,EAcN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE3E,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AA0BzC;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,iFACqC,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,yBAAyB;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