@fuzdev/fuz_app 0.110.0 → 0.111.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 (83) hide show
  1. package/dist/actions/action_rpc.d.ts +2 -2
  2. package/dist/auth/CLAUDE.md +24 -5
  3. package/dist/auth/account_action_specs.d.ts +0 -2
  4. package/dist/auth/account_action_specs.d.ts.map +1 -1
  5. package/dist/auth/account_queries.d.ts +22 -0
  6. package/dist/auth/account_queries.d.ts.map +1 -1
  7. package/dist/auth/account_queries.js +49 -15
  8. package/dist/auth/account_schema.d.ts +7 -9
  9. package/dist/auth/account_schema.d.ts.map +1 -1
  10. package/dist/auth/account_schema.js +1 -2
  11. package/dist/auth/admin_action_specs.d.ts +0 -2
  12. package/dist/auth/admin_action_specs.d.ts.map +1 -1
  13. package/dist/auth/api_token_queries.d.ts +9 -4
  14. package/dist/auth/api_token_queries.d.ts.map +1 -1
  15. package/dist/auth/api_token_queries.js +29 -7
  16. package/dist/auth/app_settings_queries.d.ts +8 -0
  17. package/dist/auth/app_settings_queries.d.ts.map +1 -1
  18. package/dist/auth/app_settings_queries.js +14 -3
  19. package/dist/auth/audit_log_queries.d.ts +15 -3
  20. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  21. package/dist/auth/audit_log_queries.js +32 -7
  22. package/dist/auth/audit_log_schema.d.ts +0 -1
  23. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  24. package/dist/auth/auth_ddl.d.ts +6 -0
  25. package/dist/auth/auth_ddl.d.ts.map +1 -1
  26. package/dist/auth/auth_ddl.js +9 -0
  27. package/dist/auth/invite_queries.d.ts +10 -0
  28. package/dist/auth/invite_queries.d.ts.map +1 -1
  29. package/dist/auth/invite_queries.js +25 -6
  30. package/dist/auth/migrations.d.ts.map +1 -1
  31. package/dist/auth/migrations.js +10 -0
  32. package/dist/auth/role_grant_offer_ddl.d.ts +23 -2
  33. package/dist/auth/role_grant_offer_ddl.d.ts.map +1 -1
  34. package/dist/auth/role_grant_offer_ddl.js +43 -2
  35. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  36. package/dist/auth/role_grant_offer_queries.js +29 -48
  37. package/dist/auth/role_grant_queries.d.ts +18 -0
  38. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  39. package/dist/auth/role_grant_queries.js +43 -17
  40. package/dist/auth/session_queries.d.ts +12 -3
  41. package/dist/auth/session_queries.d.ts.map +1 -1
  42. package/dist/auth/session_queries.js +21 -6
  43. package/dist/db/CLAUDE.md +15 -0
  44. package/dist/db/cell_audit_queries.d.ts.map +1 -1
  45. package/dist/db/cell_audit_queries.js +3 -1
  46. package/dist/db/cell_field_queries.d.ts +11 -2
  47. package/dist/db/cell_field_queries.d.ts.map +1 -1
  48. package/dist/db/cell_field_queries.js +23 -7
  49. package/dist/db/cell_grant_queries.d.ts +9 -1
  50. package/dist/db/cell_grant_queries.d.ts.map +1 -1
  51. package/dist/db/cell_grant_queries.js +25 -9
  52. package/dist/db/cell_item_queries.d.ts +12 -1
  53. package/dist/db/cell_item_queries.d.ts.map +1 -1
  54. package/dist/db/cell_item_queries.js +25 -7
  55. package/dist/db/cell_queries.d.ts +29 -0
  56. package/dist/db/cell_queries.d.ts.map +1 -1
  57. package/dist/db/cell_queries.js +53 -20
  58. package/dist/db/fact_queries.d.ts +7 -0
  59. package/dist/db/fact_queries.d.ts.map +1 -1
  60. package/dist/db/fact_queries.js +19 -2
  61. package/dist/db/schema_ready.d.ts +6 -1
  62. package/dist/db/schema_ready.d.ts.map +1 -1
  63. package/dist/db/schema_ready.js +6 -2
  64. package/dist/db/sql_columns.d.ts +67 -0
  65. package/dist/db/sql_columns.d.ts.map +1 -0
  66. package/dist/db/sql_columns.js +77 -0
  67. package/dist/db/sql_identifier.d.ts +6 -5
  68. package/dist/db/sql_identifier.d.ts.map +1 -1
  69. package/dist/db/sql_identifier.js +6 -5
  70. package/dist/http/CLAUDE.md +1 -1
  71. package/dist/http/route_spec.d.ts +2 -2
  72. package/dist/server/app_server.d.ts.map +1 -1
  73. package/dist/server/app_server.js +1 -2
  74. package/dist/testing/CLAUDE.md +2 -1
  75. package/dist/testing/admin_integration.d.ts.map +1 -1
  76. package/dist/testing/admin_integration.js +47 -18
  77. package/dist/testing/cross_backend/expected_schema.json +1 -1
  78. package/dist/testing/db.d.ts +18 -0
  79. package/dist/testing/db.d.ts.map +1 -1
  80. package/dist/testing/db.js +24 -1
  81. package/dist/ui/AdminOverview.svelte +5 -10
  82. package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
  83. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"app_server.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/server/app_server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAG1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEN,KAAK,cAAc,EAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAKN,KAAK,WAAW,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAA4B,KAAK,kBA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OAAO,CAAC;IAEhC;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAExE,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,uCAAuC;AACvC,MAAM,WAAW,SAAS;IACzB,GAAG,EAAE,IAAI,CAAC;IACV,wEAAwE;IACxE,YAAY,EAAE,cAAc,CAAC;IAC7B,gBAAgB,EAAE,eAAe,CAAC;IAClC,oGAAoG;IACpG,iBAAiB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAClD;;;;OAIG;IACH,SAAS,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B;;;;;;;;;;;OAWG;IACH,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAClE,mEAAmE;IACnE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ;IAAE,SAAS,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,KAAG,WAO7E,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,qBAAqB,QAAc,CAAC;AAEjD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,SAAS,CAoYpF,CAAC"}
@@ -276,8 +276,7 @@ export const create_app_server = async (options) => {
276
276
  // Hono app assembly
277
277
  const app = new Hono();
278
278
  // Two-queue side-effect flush. `pending_effects` collects eager
279
- // fire-and-forget promises (audit emits, session touch, api-token
280
- // usage). `post_commit_effects` collects deferred thunks pushed via
279
+ // fire-and-forget promises (audit emits, api-token usage). `post_commit_effects` collects deferred thunks pushed via
281
280
  // `emit_after_commit` (WS notifications, anything that must observe a
282
281
  // committed transaction). Both queues drain here, after the handler
283
282
  // (and any wrapping `db.transaction`) returns. In test mode both are
@@ -128,6 +128,7 @@ factories accept any migration namespace set.
128
128
  - `drop_auth_schema(db)` — `DROP SCHEMA public CASCADE; CREATE SCHEMA public`; call at the top of `init_schema` on persistent pg databases that may hold stale DDL from previous fuz_app versions. Drift-proof full-schema reset (despite the name, not auth-scoped) — same mechanism as `reset_pglite`.
129
129
  - `create_describe_db(factories, truncate_tables)` — returns `describe_db(name, fn)` running `fn(get_db)` once per factory inside a `describe` with shared `beforeAll(create)` + `beforeEach(TRUNCATE)` + `afterAll(close)`. Skipped factories use `describe.skip`.
130
130
  - `log_db_factory_status(factories)` — console summary of enabled / skipped factories.
131
+ - `assert_columns_match_live(db, table, columns)` — the named-projection drift guard: asserts a `*_COLUMNS` const (`ACCOUNT_COLUMNS`, `CELL_COLUMNS`, a consumer's own) names exactly the live `public`-schema columns of `table`, via `query_public_columns(db, {table})`. Per module, or iterated from a table → const registry (fuz_app's own: `src/test/db/column_projections.db.test.ts`).
131
132
 
132
133
  **PGlite WASM caching.** `create_pglite_factory` shares a single PGlite
133
134
  instance in a module-level ref (`module_db`) across all factories in the
@@ -827,7 +828,7 @@ Shared conventions (`.db.test.ts` suffix, `isolate: false` semantics,
827
828
  `isolate: false`) live in Skill(fuz-stack) testing-patterns. fuz_app-specific
828
829
  points:
829
830
 
830
- - **`await_pending_effects: true`** is set by `create_test_app`. Fire-and-forget effects (audit logs, session touches, WS fan-out via `emit_after_commit`) resolve before the response returns, so tests can assert on side effects inline without manual flushing.
831
+ - **`await_pending_effects: true`** is set by `create_test_app`. Fire-and-forget effects (audit logs, api-token usage tracking, WS fan-out via `emit_after_commit`) resolve before the response returns, so tests can assert on side effects inline without manual flushing.
831
832
  - **Deep-path imports only.** Import from the canonical module (`testing/db.js`, `testing/rpc_helpers.js`, etc.); fuz_app's `dist/` ships no barrel.
832
833
  - **DI via small `*Deps` interfaces.** Stub factories accept the same narrow `*Deps` contracts production code uses — never `Pick<GodType, ...>`. New helpers needing env/fs/logger take `EnvDeps` / `FsReadDeps` / `Logger` from `runtime/deps.ts` or `@fuzdev/fuz_util/log.ts`.
833
834
  - **Keep the shared echo routes in sync with public surface.** When middleware or public API gains a new context variable, header, or field, update the echo in `middleware.ts` (`create_bearer_auth_test_app`, `create_test_middleware_stack_app`) alongside the assertions in `src/test/auth/*.test.ts`. Drift surfaces as a missed assertion, not a test failure.
@@ -1 +1 @@
1
- {"version":3,"file":"admin_integration.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/admin_integration.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAgC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAW3E,OAAO,EAKN,KAAK,uBAAuB,EAC5B,MAAM,kBAAkB,CAAC;AAkB1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,0BAA0B,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,mCAAmC;IACnD;;;;OAIG;IACH,UAAU,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B,uCAAuC;IACvC,YAAY,EAAE,mBAAmB,CAAC;IAClC,uFAAuF;IACvF,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACxC,4GAA4G;IAC5G,KAAK,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,aAAa,EAAE,uBAAuB,CAAC;IACvC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAiBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yCAAyC,GACrD,SAAS,mCAAmC,KAC1C,IA23BF,CAAC"}
1
+ {"version":3,"file":"admin_integration.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/admin_integration.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAgC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAW3E,OAAO,EAKN,KAAK,uBAAuB,EAC5B,MAAM,kBAAkB,CAAC;AAmB1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,0BAA0B,CAAC;AAYvE;;GAEG;AACH,MAAM,WAAW,mCAAmC;IACnD;;;;OAIG;IACH,UAAU,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B,uCAAuC;IACvC,YAAY,EAAE,mBAAmB,CAAC;IAClC,uFAAuF;IACvF,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACxC,4GAA4G;IAC5G,KAAK,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,aAAa,EAAE,uBAAuB,CAAC;IACvC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAiBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yCAAyC,GACrD,SAAS,mCAAmC,KAC1C,IAm5BF,CAAC"}
@@ -36,6 +36,14 @@ import { rpc_call_for_spec, require_rpc_endpoint_path, resolve_rpc_endpoints_for
36
36
  import { role_grant_offer_create_action_spec, role_grant_revoke_action_spec } from '../auth/role_grant_offer_action_specs.js';
37
37
  import { admin_account_list_action_spec, ADMIN_ACCOUNT_LIST_LIMIT_MAX, admin_session_list_action_spec, admin_session_revoke_all_action_spec, admin_token_revoke_all_action_spec, audit_log_list_action_spec, audit_log_role_grant_history_action_spec } from '../auth/admin_action_specs.js';
38
38
  import { account_token_create_action_spec, account_verify_action_spec } from '../auth/account_action_specs.js';
39
+ /**
40
+ * How long a failure-audit read waits for the pool-routed row to land.
41
+ */
42
+ const AUDIT_FAILURE_ROW_TIMEOUT = 2000;
43
+ /**
44
+ * Gap between failure-audit read attempts.
45
+ */
46
+ const AUDIT_FAILURE_ROW_POLL_INTERVAL = 20;
39
47
  /**
40
48
  * Pick a role for admin-grant testing, preferring a non-admin app-defined
41
49
  * role whose `RoleSpec.grant_paths` includes `'admin'` (the
@@ -112,6 +120,43 @@ export const describe_standard_admin_integration_tests = (options) => {
112
120
  * the cross-suite contract.
113
121
  */
114
122
  const offer_and_accept = (args) => role_grant_offer_and_accept({ ...args, rpc_path });
123
+ /**
124
+ * Read `audit_log_list` for `event_type` until a failure-outcome row
125
+ * appears, or the deadline passes.
126
+ *
127
+ * Failure audits are **pool-routed** on both spines — the write is
128
+ * deliberately detached from the request transaction so the forensic row
129
+ * survives the rollback that discards the attempted mutation. A single
130
+ * read taken straight after the refusal therefore races that write. The
131
+ * TS spine wins the race by construction (`create_test_app` sets
132
+ * `await_pending_effects: true`, so the emit is awaited before the
133
+ * response returns) and the first attempt succeeds; the Rust spine emits
134
+ * from a detached task, so under load the row can land after the read —
135
+ * observed as a load-dependent drop of the revoke-all failure-audit
136
+ * cases in a busy cross-process run.
137
+ *
138
+ * The cross-backend conformance suites reach for the deterministic
139
+ * `_testing_drain_effects` barrier instead. That action is test-binary
140
+ * only, and this suite also runs against consumers' production RPC
141
+ * surfaces where it isn't mounted — hence a bounded poll.
142
+ */
143
+ const read_failure_audit_event = async (fixture, event_type) => {
144
+ const deadline = Date.now() + AUDIT_FAILURE_ROW_TIMEOUT;
145
+ for (;;) {
146
+ const audit_res = await rpc_call_for_spec({
147
+ app: { request: fixture.transport },
148
+ path: rpc_path,
149
+ spec: audit_log_list_action_spec,
150
+ params: { event_type },
151
+ headers: fixture.create_session_headers()
152
+ });
153
+ assert.ok(audit_res.ok, 'audit_log_list should succeed');
154
+ const failure = audit_res.result.events.find((e) => e.outcome === 'failure');
155
+ if (failure || Date.now() >= deadline)
156
+ return failure;
157
+ await new Promise((resolve) => setTimeout(resolve, AUDIT_FAILURE_ROW_POLL_INTERVAL));
158
+ }
159
+ };
115
160
  // --- 1. Admin account listing (RPC) ---
116
161
  describe('admin account listing', () => {
117
162
  test('admin can list all accounts', async () => {
@@ -476,15 +521,7 @@ export const describe_standard_admin_integration_tests = (options) => {
476
521
  // Failure audit row should be visible on the audit-log feed.
477
522
  // `target_account_id` is null (FK prevents referencing a missing id)
478
523
  // — the probed id is preserved under `metadata.attempted_account_id`.
479
- const audit_res = await rpc_call_for_spec({
480
- app: { request: fixture.transport },
481
- path: rpc_path,
482
- spec: audit_log_list_action_spec,
483
- params: { event_type: 'session_revoke_all' },
484
- headers: fixture.create_session_headers()
485
- });
486
- assert.ok(audit_res.ok, 'audit_log_list should succeed');
487
- const failure = audit_res.result.events.find((e) => e.outcome === 'failure');
524
+ const failure = await read_failure_audit_event(fixture, 'session_revoke_all');
488
525
  assert.ok(failure, 'Expected a failure-outcome session_revoke_all audit event');
489
526
  assert.strictEqual(failure.target_account_id, null);
490
527
  const failure_meta = failure.metadata;
@@ -504,15 +541,7 @@ export const describe_standard_admin_integration_tests = (options) => {
504
541
  assert.ok(!res.ok, 'Expected 404 for missing account');
505
542
  assert.strictEqual(res.status, 404);
506
543
  assert.strictEqual(res.error.data.reason, 'account_not_found');
507
- const audit_res = await rpc_call_for_spec({
508
- app: { request: fixture.transport },
509
- path: rpc_path,
510
- spec: audit_log_list_action_spec,
511
- params: { event_type: 'token_revoke_all' },
512
- headers: fixture.create_session_headers()
513
- });
514
- assert.ok(audit_res.ok, 'audit_log_list should succeed');
515
- const failure = audit_res.result.events.find((e) => e.outcome === 'failure');
544
+ const failure = await read_failure_audit_event(fixture, 'token_revoke_all');
516
545
  assert.ok(failure, 'Expected a failure-outcome token_revoke_all audit event');
517
546
  assert.strictEqual(failure.target_account_id, null);
518
547
  const failure_meta = failure.metadata;
@@ -47,7 +47,7 @@
47
47
  "target_account_id",
48
48
  "target_actor_id"
49
49
  ],
50
- "auth_session": ["account_id", "created_at", "expires_at", "id", "last_seen_at"],
50
+ "auth_session": ["account_id", "created_at", "expires_at", "id"],
51
51
  "bootstrap_lock": ["bootstrapped", "id"],
52
52
  "cell": [
53
53
  "created_at",
@@ -103,4 +103,22 @@ export declare const create_describe_db: (factories: DbFactory | Array<DbFactory
103
103
  * Log factory status to console.
104
104
  */
105
105
  export declare const log_db_factory_status: (factories: Array<DbFactory>) => void;
106
+ /**
107
+ * Assert a `*_COLUMNS` projection const names exactly the live columns of
108
+ * `table` — the drift guard for an exported const (`ACCOUNT_COLUMNS`,
109
+ * `CELL_COLUMNS`, a consumer's own).
110
+ *
111
+ * This is the reverse of the fail-loud read: a named projection makes a
112
+ * *dropped* column fail loud at query time, but a column *added* to the table
113
+ * and not to the projection would silently vanish from every row read. Both
114
+ * directions are covered by the equality here. It guards one const; it can't
115
+ * see a table that has *no* const — for that, keep a table → const registry
116
+ * and assert its key set against `query_public_columns` (fuz_app's own is
117
+ * `src/test/db/column_projections.db.test.ts`).
118
+ *
119
+ * @param db - a bootstrapped test database
120
+ * @param table - the `public`-schema table the const projects
121
+ * @param columns - the projection const's column names
122
+ */
123
+ export declare const assert_columns_match_live: (db: Db, table: string, columns: ReadonlyArray<string>) => Promise<void>;
106
124
  //# sourceMappingURL=db.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"db.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/db.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AA8B7B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAKtC;;GAEG;AACH,eAAO,MAAM,KAAK,SAA4B,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MA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C,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,KAAK,IAAI,CAwBzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,WAAW,KAAK,CAAC,SAAS,CAAC,KAAG,IAQnE,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB,GACrC,IAAI,EAAE,EACN,OAAO,MAAM,EACb,SAAS,aAAa,CAAC,MAAM,CAAC,KAC5B,OAAO,CAAC,IAAI,CAId,CAAC"}
@@ -22,11 +22,12 @@ import './assert_dev_env.js';
22
22
  *
23
23
  * @module
24
24
  */
25
- import { describe, beforeAll, beforeEach, afterAll } from 'vitest';
25
+ import { describe, beforeAll, beforeEach, afterAll, assert } from 'vitest';
26
26
  import { to_error_message } from '@fuzdev/fuz_util/error.ts';
27
27
  import { create_pglite_db } from '../db/db_pglite.js';
28
28
  import { assert_valid_sql_identifier } from '../db/sql_identifier.js';
29
29
  import { create_pg_db, register_pg_type_parsers } from '../db/db_pg.js';
30
+ import { query_public_columns } from '../db/schema_ready.js';
30
31
  /**
31
32
  * CI detection — `CI=true` is set automatically by GitHub Actions, GitLab CI, etc.
32
33
  */
@@ -246,3 +247,25 @@ export const log_db_factory_status = (factories) => {
246
247
  const skipped = factories.filter((f) => f.skip).map((f) => `${f.name} (${f.skip_reason})`);
247
248
  console.log(`[db tests] drivers: ${enabled.join(', ')}${skipped.length ? ` | skipped: ${skipped.join(', ')}` : ''}`);
248
249
  };
250
+ /**
251
+ * Assert a `*_COLUMNS` projection const names exactly the live columns of
252
+ * `table` — the drift guard for an exported const (`ACCOUNT_COLUMNS`,
253
+ * `CELL_COLUMNS`, a consumer's own).
254
+ *
255
+ * This is the reverse of the fail-loud read: a named projection makes a
256
+ * *dropped* column fail loud at query time, but a column *added* to the table
257
+ * and not to the projection would silently vanish from every row read. Both
258
+ * directions are covered by the equality here. It guards one const; it can't
259
+ * see a table that has *no* const — for that, keep a table → const registry
260
+ * and assert its key set against `query_public_columns` (fuz_app's own is
261
+ * `src/test/db/column_projections.db.test.ts`).
262
+ *
263
+ * @param db - a bootstrapped test database
264
+ * @param table - the `public`-schema table the const projects
265
+ * @param columns - the projection const's column names
266
+ */
267
+ export const assert_columns_match_live = async (db, table, columns) => {
268
+ const live = await query_public_columns(db, { table });
269
+ assert.ok(live[table], `table "${table}" is not in the live public schema`);
270
+ assert.deepEqual([...columns].sort(), live[table]);
271
+ };
@@ -52,16 +52,11 @@
52
52
 
53
53
  // sessions
54
54
  const unique_users = $derived(new Set(sessions.sessions.map((s) => s.username)).size);
55
- // newest session by mint time — sessions carry no activity signal
56
- // (`last_seen_at` is decorative post-hard-cap; see `docs/security.md`
57
- // §Session Security)
58
- const most_recent = $derived(
59
- sessions.sessions.length > 0
60
- ? sessions.sessions.reduce((a, b) =>
61
- new Date(a.created_at) > new Date(b.created_at) ? a : b
62
- )
63
- : null
64
- );
55
+ // newest session by mint time — the listing is server-ordered
56
+ // `created_at DESC` on both spines (a documented query contract, no
57
+ // client re-sort), and sessions carry no activity signal (the lifetime is
58
+ // a hard cap set at mint; see `docs/security.md` §Session Security)
59
+ const most_recent = $derived(sessions.sessions[0] ?? null);
65
60
 
66
61
  // audit log
67
62
  const recent_events = $derived(audit_log.events.slice(0, 8));
@@ -1 +1 @@
1
- {"version":3,"file":"AdminOverview.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/AdminOverview.svelte"],"names":[],"mappings":"AA8UA,QAAA,MAAM,aAAa,2DAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AdminOverview.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/AdminOverview.svelte"],"names":[],"mappings":"AAyUA,QAAA,MAAM,aAAa,2DAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_app",
3
- "version": "0.110.0",
3
+ "version": "0.111.0",
4
4
  "description": "fullstack app library",
5
5
  "glyph": "🗝",
6
6
  "logo": "logo.svg",