@fuzdev/fuz_app 0.93.0 → 0.95.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 (200) hide show
  1. package/README.md +2 -2
  2. package/dist/actions/action_codegen.d.ts +18 -18
  3. package/dist/actions/action_codegen.js +30 -30
  4. package/dist/actions/action_event.js +1 -1
  5. package/dist/actions/action_event_helpers.d.ts +1 -1
  6. package/dist/actions/action_event_types.d.ts +1 -1
  7. package/dist/actions/action_rpc.d.ts +2 -2
  8. package/dist/actions/broadcast_api.d.ts +1 -1
  9. package/dist/actions/broadcast_api.js +1 -1
  10. package/dist/actions/perform_action.d.ts +2 -2
  11. package/dist/actions/register_action_ws.d.ts +2 -2
  12. package/dist/actions/register_action_ws.js +2 -2
  13. package/dist/actions/register_ws_endpoint.js +1 -1
  14. package/dist/actions/request_tracker.svelte.d.ts +1 -1
  15. package/dist/actions/request_tracker.svelte.js +1 -1
  16. package/dist/actions/rpc_client.d.ts +1 -1
  17. package/dist/actions/socket.svelte.d.ts +2 -2
  18. package/dist/actions/transports_ws.js +1 -1
  19. package/dist/actions/transports_ws_auth_guard.d.ts +1 -1
  20. package/dist/actions/transports_ws_backend.d.ts +1 -1
  21. package/dist/actions/transports_ws_backend.js +2 -2
  22. package/dist/auth/account_action_specs.js +1 -1
  23. package/dist/auth/account_schema.d.ts +1 -1
  24. package/dist/auth/account_schema.js +1 -1
  25. package/dist/auth/actor_lookup_action_specs.js +1 -1
  26. package/dist/auth/actor_lookup_queries.d.ts +1 -1
  27. package/dist/auth/actor_search_action_specs.js +1 -1
  28. package/dist/auth/actor_search_queries.d.ts +1 -1
  29. package/dist/auth/admin_action_specs.js +1 -1
  30. package/dist/auth/api_token.js +1 -1
  31. package/dist/auth/api_token_queries.d.ts +1 -1
  32. package/dist/auth/app_settings_schema.d.ts +1 -1
  33. package/dist/auth/app_settings_schema.js +1 -1
  34. package/dist/auth/audit_emitter.d.ts +2 -2
  35. package/dist/auth/audit_log_routes.d.ts +1 -1
  36. package/dist/auth/audit_log_schema.d.ts +1 -1
  37. package/dist/auth/audit_log_schema.js +2 -2
  38. package/dist/auth/bearer_auth.d.ts +1 -1
  39. package/dist/auth/bootstrap_account.d.ts +1 -1
  40. package/dist/auth/bootstrap_route_schema.js +1 -1
  41. package/dist/auth/bootstrap_routes.d.ts +1 -1
  42. package/dist/auth/bootstrap_routes.js +1 -1
  43. package/dist/auth/cell_action_specs.js +2 -2
  44. package/dist/auth/cell_audit_action_specs.js +1 -1
  45. package/dist/auth/cell_audit_metadata.js +1 -1
  46. package/dist/auth/cell_field_action_specs.js +1 -1
  47. package/dist/auth/cell_field_audit_metadata.js +1 -1
  48. package/dist/auth/cell_grant_action_specs.js +1 -1
  49. package/dist/auth/cell_grant_audit_metadata.js +1 -1
  50. package/dist/auth/cell_item_action_specs.d.ts +1 -1
  51. package/dist/auth/cell_item_action_specs.js +3 -3
  52. package/dist/auth/cell_item_audit_metadata.js +1 -1
  53. package/dist/auth/cell_relation_visibility.d.ts +1 -1
  54. package/dist/auth/cleanup.d.ts +1 -1
  55. package/dist/auth/daemon_token_middleware.d.ts +1 -1
  56. package/dist/auth/deps.d.ts +2 -2
  57. package/dist/auth/invite_schema.d.ts +1 -1
  58. package/dist/auth/invite_schema.js +1 -1
  59. package/dist/auth/request_context.d.ts +1 -1
  60. package/dist/auth/role_grant_offer_action_specs.js +1 -1
  61. package/dist/auth/role_grant_offer_notifications.d.ts +1 -1
  62. package/dist/auth/role_grant_offer_notifications.js +1 -1
  63. package/dist/auth/role_grant_offer_queries.d.ts +1 -1
  64. package/dist/auth/role_grant_offer_schema.d.ts +1 -1
  65. package/dist/auth/role_grant_offer_schema.js +1 -1
  66. package/dist/auth/role_grant_queries.d.ts +1 -1
  67. package/dist/auth/session_queries.d.ts +1 -1
  68. package/dist/auth/session_queries.js +1 -1
  69. package/dist/auth/signup_route_schema.js +1 -1
  70. package/dist/cli/args.d.ts +1 -1
  71. package/dist/cli/args.js +2 -2
  72. package/dist/cli/help.d.ts +1 -1
  73. package/dist/cli/help.js +1 -1
  74. package/dist/cli/logger.d.ts +1 -1
  75. package/dist/cli/logger.js +1 -1
  76. package/dist/db/CLAUDE.md +1 -1
  77. package/dist/db/cell_audit_queries.d.ts +1 -1
  78. package/dist/db/cell_field_queries.d.ts +1 -1
  79. package/dist/db/cell_grant_queries.d.ts +1 -1
  80. package/dist/db/cell_item_queries.d.ts +1 -1
  81. package/dist/db/cell_queries.d.ts +3 -3
  82. package/dist/db/cell_queries.js +1 -1
  83. package/dist/db/fact_disk_storage.d.ts +2 -2
  84. package/dist/db/fact_disk_storage.js +4 -4
  85. package/dist/db/fact_queries.d.ts +1 -1
  86. package/dist/db/fact_store.d.ts +3 -3
  87. package/dist/db/fact_store.js +2 -2
  88. package/dist/db/file_fact_url.d.ts +1 -1
  89. package/dist/db/file_fact_url.js +1 -1
  90. package/dist/db/migrate.js +1 -1
  91. package/dist/db/status.js +1 -1
  92. package/dist/http/auth_shape.js +2 -2
  93. package/dist/http/common_routes.d.ts +1 -1
  94. package/dist/http/db_routes.d.ts +1 -1
  95. package/dist/http/origin.js +1 -1
  96. package/dist/http/pending_effects.d.ts +1 -1
  97. package/dist/http/proxy.d.ts +1 -1
  98. package/dist/http/route_spec.d.ts +1 -1
  99. package/dist/rate_limiter.js +1 -1
  100. package/dist/realtime/sse.d.ts +1 -1
  101. package/dist/realtime/sse_auth_guard.d.ts +1 -1
  102. package/dist/runtime/deno.js +1 -1
  103. package/dist/server/app_backend.d.ts +1 -1
  104. package/dist/server/app_backend.js +1 -1
  105. package/dist/server/env.js +1 -1
  106. package/dist/server/fact_write.d.ts +2 -2
  107. package/dist/server/fact_write.js +1 -1
  108. package/dist/server/serve_fact_route.d.ts +1 -1
  109. package/dist/server/serve_fact_route.js +2 -2
  110. package/dist/server/startup.d.ts +1 -1
  111. package/dist/testing/CLAUDE.md +61 -9
  112. package/dist/testing/adversarial_input.js +1 -1
  113. package/dist/testing/app_server.d.ts +1 -1
  114. package/dist/testing/app_server.js +1 -1
  115. package/dist/testing/auth_apps.js +1 -1
  116. package/dist/testing/cross_backend/bench/bench_report.d.ts +1 -1
  117. package/dist/testing/cross_backend/bench/bench_report.js +2 -2
  118. package/dist/testing/cross_backend/bench/run_cross_impl_bench.d.ts +1 -1
  119. package/dist/testing/cross_backend/bench/run_cross_impl_bench.js +1 -1
  120. package/dist/testing/cross_backend/bootstrap_backend.d.ts +1 -1
  121. package/dist/testing/cross_backend/capabilities.d.ts +25 -4
  122. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  123. package/dist/testing/cross_backend/capabilities.js +9 -4
  124. package/dist/testing/cross_backend/cell_relations.js +1 -1
  125. package/dist/testing/cross_backend/conformance_case.d.ts +4 -0
  126. package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
  127. package/dist/testing/cross_backend/conformance_case.js +26 -0
  128. package/dist/testing/cross_backend/conformance_table.d.ts +21 -0
  129. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  130. package/dist/testing/cross_backend/conformance_table.js +109 -7
  131. package/dist/testing/cross_backend/create_cross_backend_global_setup.d.ts +1 -1
  132. package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts +1 -1
  133. package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
  134. package/dist/testing/cross_backend/default_backend_configs.js +7 -0
  135. package/dist/testing/cross_backend/default_spine_surface.d.ts +1 -1
  136. package/dist/testing/cross_backend/fact_serving.js +1 -1
  137. package/dist/testing/cross_backend/peer_ping_ws.d.ts +23 -0
  138. package/dist/testing/cross_backend/peer_ping_ws.d.ts.map +1 -0
  139. package/dist/testing/cross_backend/peer_ping_ws.js +209 -0
  140. package/dist/testing/cross_backend/setup.d.ts +1 -1
  141. package/dist/testing/cross_backend/setup.js +1 -1
  142. package/dist/testing/cross_backend/testing_reset_actions.js +2 -2
  143. package/dist/testing/cross_backend/testing_server_core.d.ts +1 -1
  144. package/dist/testing/cross_backend/testing_server_core.js +1 -1
  145. package/dist/testing/cross_backend/ws_round_trip.js +1 -1
  146. package/dist/testing/db.js +4 -4
  147. package/dist/testing/middleware.js +1 -1
  148. package/dist/testing/role_grant_helpers.d.ts +1 -1
  149. package/dist/testing/rpc_helpers.d.ts +18 -1
  150. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  151. package/dist/testing/rpc_helpers.js +24 -2
  152. package/dist/testing/schema_generators.d.ts +1 -1
  153. package/dist/testing/schema_generators.js +1 -1
  154. package/dist/testing/stubs.js +1 -1
  155. package/dist/testing/testing_rate_limiter.d.ts +1 -1
  156. package/dist/testing/testing_rate_limiter.js +1 -1
  157. package/dist/testing/transports/bootstrap.d.ts +1 -1
  158. package/dist/testing/transports/bootstrap.js +1 -1
  159. package/dist/testing/transports/ws_client.d.ts +40 -1
  160. package/dist/testing/transports/ws_client.d.ts.map +1 -1
  161. package/dist/testing/transports/ws_client.js +46 -1
  162. package/dist/testing/transports/ws_transport.d.ts +10 -1
  163. package/dist/testing/transports/ws_transport.d.ts.map +1 -1
  164. package/dist/testing/transports/ws_transport.js +6 -10
  165. package/dist/testing/ws_round_trip.d.ts +13 -3
  166. package/dist/testing/ws_round_trip.d.ts.map +1 -1
  167. package/dist/testing/ws_round_trip.js +16 -12
  168. package/dist/ui/AdminSurface.svelte +1 -1
  169. package/dist/ui/AppShell.svelte +1 -1
  170. package/dist/ui/BootstrapForm.svelte +1 -1
  171. package/dist/ui/CLAUDE.md +1 -1
  172. package/dist/ui/ConfirmButton.svelte +2 -2
  173. package/dist/ui/ConfirmButton.svelte.d.ts +1 -1
  174. package/dist/ui/LoginForm.svelte +1 -1
  175. package/dist/ui/MenuLink.svelte +1 -1
  176. package/dist/ui/MenuLink.svelte.d.ts +1 -1
  177. package/dist/ui/PopoverButton.svelte +1 -1
  178. package/dist/ui/PopoverButton.svelte.d.ts +1 -1
  179. package/dist/ui/SignupForm.svelte +1 -1
  180. package/dist/ui/account_sessions_state.svelte.js +1 -1
  181. package/dist/ui/admin_accounts_state.svelte.d.ts +1 -1
  182. package/dist/ui/admin_accounts_state.svelte.js +1 -1
  183. package/dist/ui/admin_invites_state.svelte.d.ts +1 -1
  184. package/dist/ui/admin_invites_state.svelte.js +1 -1
  185. package/dist/ui/admin_sessions_state.svelte.d.ts +1 -1
  186. package/dist/ui/app_settings_state.svelte.js +1 -1
  187. package/dist/ui/async_slot.svelte.d.ts +2 -2
  188. package/dist/ui/async_slot.svelte.js +2 -2
  189. package/dist/ui/audit_log_state.svelte.js +1 -1
  190. package/dist/ui/auth_state.svelte.d.ts +1 -1
  191. package/dist/ui/auth_state.svelte.js +3 -3
  192. package/dist/ui/format_scope.js +1 -1
  193. package/dist/ui/popover.svelte.d.ts +1 -1
  194. package/dist/ui/popover.svelte.js +2 -2
  195. package/dist/ui/position_helpers.js +1 -1
  196. package/dist/ui/role_grant_offers_state.svelte.js +1 -1
  197. package/dist/ui/sidebar_state.svelte.js +1 -1
  198. package/dist/ui/table_state.svelte.d.ts +1 -1
  199. package/dist/ui/table_state.svelte.js +2 -2
  200. package/package.json +2 -2
@@ -9,8 +9,8 @@
9
9
  * @module
10
10
  */
11
11
  import { z } from 'zod';
12
- import { Uuid } from '@fuzdev/fuz_util/id.js';
13
- import { Blake3Hash } from '@fuzdev/fuz_util/hash_blake3.js';
12
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
13
+ import { Blake3Hash } from '@fuzdev/fuz_util/hash_blake3.ts';
14
14
  import { AuthSessionJson } from './account_schema.js';
15
15
  import { Email } from '../primitive_schemas.js';
16
16
  import { ApiTokenId } from './api_token.js';
@@ -15,7 +15,7 @@
15
15
  * @module
16
16
  */
17
17
  import type { MiddlewareHandler } from 'hono';
18
- import type { Logger } from '@fuzdev/fuz_util/log.js';
18
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
19
19
  import type { QueryDeps } from '../db/query_deps.js';
20
20
  import { type RateLimiter } from '../rate_limiter.js';
21
21
  /**
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import type { Logger } from '@fuzdev/fuz_util/log.js';
9
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
10
10
  import type { PasswordHashDeps } from './password.js';
11
11
  import { ERROR_INVALID_TOKEN, ERROR_ALREADY_BOOTSTRAPPED, ERROR_TOKEN_FILE_MISSING } from '../http/error_schemas.js';
12
12
  import type { Account, Actor, RoleGrant } from './account_schema.js';
@@ -14,7 +14,7 @@
14
14
  * @module
15
15
  */
16
16
  import { z } from 'zod';
17
- import { Uuid } from '@fuzdev/fuz_util/id.js';
17
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
18
18
  import { Username } from '../primitive_schemas.js';
19
19
  import { Password } from './password.js';
20
20
  import { ERROR_INVALID_TOKEN, ERROR_ALREADY_BOOTSTRAPPED, ERROR_TOKEN_FILE_MISSING, ERROR_INVALID_JSON_BODY, ERROR_INVALID_REQUEST_BODY, } from '../http/error_schemas.js';
@@ -7,7 +7,7 @@
7
7
  * @module
8
8
  */
9
9
  import type { Context } from 'hono';
10
- import type { Logger } from '@fuzdev/fuz_util/log.js';
10
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
11
11
  import type { SessionOptions } from './session_cookie.js';
12
12
  import { type BootstrapAccountSuccess } from './bootstrap_account.js';
13
13
  import type { Db } from '../db/db.js';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import { to_error_message } from '@fuzdev/fuz_util/error.js';
9
+ import { to_error_message } from '@fuzdev/fuz_util/error.ts';
10
10
  import { create_session_and_set_cookie } from './session_middleware.js';
11
11
  import { bootstrap_account } from './bootstrap_account.js';
12
12
  import { bootstrap_route_shape } from './bootstrap_route_schema.js';
@@ -6,8 +6,8 @@
6
6
  * @module
7
7
  */
8
8
  import { z } from 'zod';
9
- import { Uuid } from '@fuzdev/fuz_util/id.js';
10
- import { FactHashSchema } from '@fuzdev/fuz_util/fact_hash.js';
9
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
10
+ import { FactHashSchema } from '@fuzdev/fuz_util/fact_hash.ts';
11
11
  import { ActingActor } from '../http/auth_shape.js';
12
12
  import { all_cell_grant_action_specs, cell_grant_create_action_spec, cell_grant_revoke_action_spec, cell_grant_list_action_spec, GrantJson, } from './cell_grant_action_specs.js';
13
13
  import { all_cell_field_action_specs, cell_field_set_action_spec, cell_field_delete_action_spec, cell_field_list_action_spec, FieldJson, } from './cell_field_action_specs.js';
@@ -17,7 +17,7 @@
17
17
  * @module
18
18
  */
19
19
  import { z } from 'zod';
20
- import { Uuid } from '@fuzdev/fuz_util/id.js';
20
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
21
21
  import { ActingActor } from '../http/auth_shape.js';
22
22
  /**
23
23
  * Wire shape for a single cell-audit row. Narrower than
@@ -7,7 +7,7 @@
7
7
  * @module
8
8
  */
9
9
  import { z } from 'zod';
10
- import { Uuid } from '@fuzdev/fuz_util/id.js';
10
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
11
11
  /**
12
12
  * Shared metadata envelope for cell mutations. `kind` and `path` are
13
13
  * captured at emit-time so the audit-log viewer can show useful context
@@ -11,7 +11,7 @@
11
11
  * @module
12
12
  */
13
13
  import { z } from 'zod';
14
- import { Uuid } from '@fuzdev/fuz_util/id.js';
14
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
15
15
  import { ActingActor } from '../http/auth_shape.js';
16
16
  // -- Error reasons ----------------------------------------------------------
17
17
  /** Error reason — `cell_field_list` got neither `source_id` nor `target_id`. */
@@ -8,7 +8,7 @@
8
8
  * @module
9
9
  */
10
10
  import { z } from 'zod';
11
- import { Uuid } from '@fuzdev/fuz_util/id.js';
11
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
12
12
  /**
13
13
  * Metadata envelope for `cell_field_set`. Emitted on every successful
14
14
  * create OR update path (UPSERT on `(source_id, name)`); the audit
@@ -14,7 +14,7 @@
14
14
  * @module
15
15
  */
16
16
  import { z } from 'zod';
17
- import { Uuid } from '@fuzdev/fuz_util/id.js';
17
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
18
18
  import { ActingActor } from '../http/auth_shape.js';
19
19
  // -- Error reasons ----------------------------------------------------------
20
20
  /** Error reason — grant id did not resolve, or caller may not see it. */
@@ -11,7 +11,7 @@
11
11
  * @module
12
12
  */
13
13
  import { z } from 'zod';
14
- import { Uuid } from '@fuzdev/fuz_util/id.js';
14
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
15
15
  /**
16
16
  * Principal columns as stored on `cell_grant`. Discriminated by which
17
17
  * keys are present: `{actor_id}` for an actor-shaped grant,
@@ -48,7 +48,7 @@ export declare const ItemJson: z.ZodObject<{
48
48
  export type ItemJson = z.infer<typeof ItemJson>;
49
49
  /**
50
50
  * Input for `cell_item_insert`. Caller computes `position` via
51
- * `fractional_index_between(prev, next)` (`@fuzdev/fuz_util/fractional_index.js`)
51
+ * `fractional_index_between(prev, next)` (`@fuzdev/fuz_util/fractional_index.ts`)
52
52
  * client-side. Returns `cell_item_position_taken` on `(parent_id,
53
53
  * position)` unique violation; client refreshes bracket and retries.
54
54
  */
@@ -10,8 +10,8 @@
10
10
  * @module
11
11
  */
12
12
  import { z } from 'zod';
13
- import { Uuid } from '@fuzdev/fuz_util/id.js';
14
- import { FRACTIONAL_INDEX_LENGTH_MAX, FRACTIONAL_INDEX_REGEX, } from '@fuzdev/fuz_util/fractional_index.js';
13
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
14
+ import { FRACTIONAL_INDEX_LENGTH_MAX, FRACTIONAL_INDEX_REGEX, } from '@fuzdev/fuz_util/fractional_index.ts';
15
15
  import { ActingActor } from '../http/auth_shape.js';
16
16
  // -- Error reasons ----------------------------------------------------------
17
17
  /** Error reason — `cell_item_list` got neither `parent_id` nor `child_id`. */
@@ -57,7 +57,7 @@ export const ItemJson = z.strictObject({
57
57
  // -- cell_item_insert -------------------------------------------------------
58
58
  /**
59
59
  * Input for `cell_item_insert`. Caller computes `position` via
60
- * `fractional_index_between(prev, next)` (`@fuzdev/fuz_util/fractional_index.js`)
60
+ * `fractional_index_between(prev, next)` (`@fuzdev/fuz_util/fractional_index.ts`)
61
61
  * client-side. Returns `cell_item_position_taken` on `(parent_id,
62
62
  * position)` unique violation; client refreshes bracket and retries.
63
63
  */
@@ -7,7 +7,7 @@
7
7
  * @module
8
8
  */
9
9
  import { z } from 'zod';
10
- import { Uuid } from '@fuzdev/fuz_util/id.js';
10
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
11
11
  /** Metadata envelope for `cell_item_insert`. */
12
12
  export const CellItemInsertAuditMetadata = z.looseObject({
13
13
  parent_id: Uuid,
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * @module
14
14
  */
15
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
15
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
16
16
  import type { QueryDeps } from '../db/query_deps.js';
17
17
  import type { RequestContext } from './request_context.js';
18
18
  /**
@@ -18,7 +18,7 @@
18
18
  *
19
19
  * @module
20
20
  */
21
- import type { Logger } from '@fuzdev/fuz_util/log.js';
21
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
22
22
  import type { QueryDeps } from '../db/query_deps.js';
23
23
  import type { AuditEmitter } from './audit_emitter.js';
24
24
  /** Dependencies for the cleanup helpers. */
@@ -10,7 +10,7 @@
10
10
  * @module
11
11
  */
12
12
  import type { MiddlewareHandler } from 'hono';
13
- import type { Logger } from '@fuzdev/fuz_util/log.js';
13
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
14
14
  import { type FsWriteDeps, type FsRemoveDeps, type EnvDeps } from '../runtime/deps.js';
15
15
  import type { QueryDeps } from '../db/query_deps.js';
16
16
  import { type DaemonTokenState } from './daemon_token.js';
@@ -7,8 +7,8 @@
7
7
  *
8
8
  * @module
9
9
  */
10
- import type { Logger } from '@fuzdev/fuz_util/log.js';
11
- import type { FactStore } from '@fuzdev/fuz_util/fact_store.js';
10
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
11
+ import type { FactStore } from '@fuzdev/fuz_util/fact_store.ts';
12
12
  import type { Keyring } from './keyring.js';
13
13
  import type { PasswordHashDeps } from './password.js';
14
14
  import type { Db } from '../db/db.js';
@@ -7,7 +7,7 @@
7
7
  * @module
8
8
  */
9
9
  import { z } from 'zod';
10
- import { Uuid } from '@fuzdev/fuz_util/id.js';
10
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
11
11
  import { Username, Email } from '../primitive_schemas.js';
12
12
  /** Invite row from the database. */
13
13
  export interface Invite {
@@ -7,7 +7,7 @@
7
7
  * @module
8
8
  */
9
9
  import { z } from 'zod';
10
- import { Uuid } from '@fuzdev/fuz_util/id.js';
10
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
11
11
  import { Username, Email } from '../primitive_schemas.js';
12
12
  /** Zod schema for client-safe invite data. */
13
13
  export const InviteJson = z.strictObject({
@@ -35,7 +35,7 @@
35
35
  * @module
36
36
  */
37
37
  import type { Context, MiddlewareHandler } from 'hono';
38
- import type { Logger } from '@fuzdev/fuz_util/log.js';
38
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
39
39
  import { type Account, type Actor, type RoleGrant } from './account_schema.js';
40
40
  import type { QueryDeps } from '../db/query_deps.js';
41
41
  import type { RouteSpec } from '../http/route_spec.js';
@@ -19,7 +19,7 @@
19
19
  * @module
20
20
  */
21
21
  import { z } from 'zod';
22
- import { Uuid } from '@fuzdev/fuz_util/id.js';
22
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
23
23
  import { ERROR_ROLE_GRANT_NOT_FOUND, ERROR_ROLE_NOT_WEB_GRANTABLE } from '../http/error_schemas.js';
24
24
  import { RoleName } from './role_schema.js';
25
25
  import { ROLE_GRANT_OFFER_MESSAGE_LENGTH_MAX, RoleGrantOfferJson, } from './role_grant_offer_schema.js';
@@ -30,7 +30,7 @@
30
30
  * @module
31
31
  */
32
32
  import { z } from 'zod';
33
- import { type Uuid } from '@fuzdev/fuz_util/id.js';
33
+ import { type Uuid } from '@fuzdev/fuz_util/id.ts';
34
34
  import type { EventSpec } from '../realtime/sse.js';
35
35
  import type { JsonrpcNotification } from '../http/jsonrpc.js';
36
36
  /**
@@ -30,7 +30,7 @@
30
30
  * @module
31
31
  */
32
32
  import { z } from 'zod';
33
- import { Uuid as UuidSchema } from '@fuzdev/fuz_util/id.js';
33
+ import { Uuid as UuidSchema } from '@fuzdev/fuz_util/id.ts';
34
34
  import { create_action_event_spec } from '../actions/action_bridge.js';
35
35
  import { create_jsonrpc_notification } from '../http/jsonrpc_helpers.js';
36
36
  import { RoleName } from './role_schema.js';
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module
13
13
  */
14
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
14
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
15
15
  import type { QueryDeps } from '../db/query_deps.js';
16
16
  import type { RoleGrant } from './account_schema.js';
17
17
  import type { CreateRoleGrantOfferInput, RoleGrantOffer, SupersededOffer } from './role_grant_offer_schema.js';
@@ -12,7 +12,7 @@
12
12
  * @module
13
13
  */
14
14
  import { z } from 'zod';
15
- import { Uuid } from '@fuzdev/fuz_util/id.js';
15
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
16
16
  /** Maximum length of the optional message attached to an offer. */
17
17
  export declare const ROLE_GRANT_OFFER_MESSAGE_LENGTH_MAX = 500;
18
18
  /** Default TTL for a newly created offer — 30 days. Matches GitHub org-invite expiry. */
@@ -12,7 +12,7 @@
12
12
  * @module
13
13
  */
14
14
  import { z } from 'zod';
15
- import { Uuid } from '@fuzdev/fuz_util/id.js';
15
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
16
16
  import { RoleName } from './role_schema.js';
17
17
  /** Maximum length of the optional message attached to an offer. */
18
18
  export const ROLE_GRANT_OFFER_MESSAGE_LENGTH_MAX = 500;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
9
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
10
10
  import type { QueryDeps } from '../db/query_deps.js';
11
11
  import type { RoleGrant, CreateRoleGrantInput } from './account_schema.js';
12
12
  import type { SupersededOffer } from './role_grant_offer_schema.js';
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import type { Logger } from '@fuzdev/fuz_util/log.js';
9
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
10
10
  import type { QueryDeps } from '../db/query_deps.js';
11
11
  import type { AuthSession } from './account_schema.js';
12
12
  /** Session lifetime in milliseconds (30 days). */
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import { hash_blake3 } from '@fuzdev/fuz_util/hash_blake3.js';
9
+ import { hash_blake3 } from '@fuzdev/fuz_util/hash_blake3.ts';
10
10
  import { generate_random_base64url } from '../crypto.js';
11
11
  /** Session lifetime in milliseconds (30 days). */
12
12
  export const AUTH_SESSION_LIFETIME_MS = 30 * 24 * 60 * 60 * 1000;
@@ -12,7 +12,7 @@
12
12
  * @module
13
13
  */
14
14
  import { z } from 'zod';
15
- import { Uuid } from '@fuzdev/fuz_util/id.js';
15
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
16
16
  import { Username, Email } from '../primitive_schemas.js';
17
17
  import { Password } from './password.js';
18
18
  import { ERROR_NO_MATCHING_INVITE, ERROR_SIGNUP_CONFLICT, ERROR_INVALID_JSON_BODY, ERROR_INVALID_REQUEST_BODY, } from '../http/error_schemas.js';
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @module
9
9
  */
10
- import { type ParsedArgs } from '@fuzdev/fuz_util/args.js';
10
+ import { type ParsedArgs } from '@fuzdev/fuz_util/args.ts';
11
11
  import { z } from 'zod';
12
12
  /**
13
13
  * Discriminated union result for CLI argument parsing.
package/dist/cli/args.js CHANGED
@@ -7,9 +7,9 @@
7
7
  *
8
8
  * @module
9
9
  */
10
- import { args_parse } from '@fuzdev/fuz_util/args.js';
10
+ import { args_parse } from '@fuzdev/fuz_util/args.ts';
11
11
  import { z } from 'zod';
12
- import { zod_to_schema_properties, zod_to_schema_names_with_aliases } from '@fuzdev/fuz_util/zod.js';
12
+ import { zod_to_schema_properties, zod_to_schema_names_with_aliases } from '@fuzdev/fuz_util/zod.ts';
13
13
  /**
14
14
  * Parse command-specific args against a Zod schema.
15
15
  *
@@ -8,7 +8,7 @@
8
8
  * @module
9
9
  */
10
10
  import type { z } from 'zod';
11
- import { type ZodSchemaProperty } from '@fuzdev/fuz_util/zod.js';
11
+ import { type ZodSchemaProperty } from '@fuzdev/fuz_util/zod.ts';
12
12
  /**
13
13
  * Command metadata for help generation.
14
14
  */
package/dist/cli/help.js CHANGED
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @module
9
9
  */
10
- import { zod_to_schema_properties, zod_format_value, } from '@fuzdev/fuz_util/zod.js';
10
+ import { zod_to_schema_properties, zod_format_value, } from '@fuzdev/fuz_util/zod.ts';
11
11
  import { colors } from './util.js';
12
12
  /**
13
13
  * Get maximum length from array.
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module
13
13
  */
14
- import { Logger } from '@fuzdev/fuz_util/log.js';
14
+ import { Logger } from '@fuzdev/fuz_util/log.ts';
15
15
  export interface CliLogger {
16
16
  /** Logs an error via Logger (gets Logger's error prefix). */
17
17
  error: (...args: Array<unknown>) => void;
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module
13
13
  */
14
- import { Logger } from '@fuzdev/fuz_util/log.js';
14
+ import { Logger } from '@fuzdev/fuz_util/log.ts';
15
15
  /**
16
16
  * Creates a CLI logger wrapping a Logger with semantic output methods.
17
17
  *
package/dist/db/CLAUDE.md CHANGED
@@ -98,7 +98,7 @@ DO NOTHING`), `_put_fact_refs`, `_get_fact` / `_get_fact_meta` / `_has_fact`
98
98
  external unlink), and the cell-coupled orphan queries `query_orphan_facts_list`
99
99
  / `_select_for_delete` (a fact is orphan when no active `cell.refs` names it).
100
100
  - **`fact_store.ts`** — `PgFactStore implements FactStore` (the interface lives
101
- in `@fuzdev/fuz_util/fact_store.js`): size-routed writes (embedded ≤
101
+ in `@fuzdev/fuz_util/fact_store.ts`): size-routed writes (embedded ≤
102
102
  `embedded_threshold` / disk CAS above it / `put_ref` for an externally-managed
103
103
  URL), JSON ref auto-extract, idempotent put, verify-on-read for external
104
104
  content via an injected `FactExternalFetcher`. With `disk_root` + `fs` (the
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import type { QueryDeps } from './query_deps.js';
14
14
  import type { AuditLogEvent } from '../auth/audit_log_schema.js';
15
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
15
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
16
16
  export interface CellAuditListOptions {
17
17
  limit: number;
18
18
  /** Cursor — return rows with `seq < before`. */
@@ -17,7 +17,7 @@
17
17
  * @module
18
18
  */
19
19
  import type { QueryDeps } from './query_deps.js';
20
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
20
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
21
21
  /** Row shape returned by `cell_field` SELECTs. */
22
22
  export interface CellFieldRow {
23
23
  source_id: Uuid;
@@ -22,7 +22,7 @@
22
22
  * @module
23
23
  */
24
24
  import type { QueryDeps } from './query_deps.js';
25
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
25
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
26
26
  import type { CellGrantLevel } from '../auth/cell_grant_action_specs.js';
27
27
  /** Row shape returned by `cell_grant` SELECTs. */
28
28
  export interface CellGrantRow {
@@ -20,7 +20,7 @@
20
20
  * @module
21
21
  */
22
22
  import type { QueryDeps } from './query_deps.js';
23
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
23
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
24
24
  /** Row shape returned by `cell_item` SELECTs. */
25
25
  export interface CellItemRow {
26
26
  parent_id: Uuid;
@@ -21,9 +21,9 @@
21
21
  * @module
22
22
  */
23
23
  import type { QueryDeps } from './query_deps.js';
24
- import type { Json } from '@fuzdev/fuz_util/json.js';
25
- import type { Uuid } from '@fuzdev/fuz_util/id.js';
26
- import { type FactHash } from '@fuzdev/fuz_util/fact_hash.js';
24
+ import type { Json } from '@fuzdev/fuz_util/json.ts';
25
+ import type { Uuid } from '@fuzdev/fuz_util/id.ts';
26
+ import { type FactHash } from '@fuzdev/fuz_util/fact_hash.ts';
27
27
  import type { CellData } from '../auth/cell_data_schema.js';
28
28
  import type { CellVisibility } from '../auth/cell_action_specs.js';
29
29
  /**
@@ -20,7 +20,7 @@
20
20
  *
21
21
  * @module
22
22
  */
23
- import { fact_hash_extract_refs } from '@fuzdev/fuz_util/fact_hash.js';
23
+ import { fact_hash_extract_refs } from '@fuzdev/fuz_util/fact_hash.ts';
24
24
  import { assert_row } from './assert_row.js';
25
25
  /**
26
26
  * SQL fragment for the `grant_count` projection — correlated subquery
@@ -27,8 +27,8 @@
27
27
  *
28
28
  * @module
29
29
  */
30
- import { type FactHash } from '@fuzdev/fuz_util/fact_hash.js';
31
- import type { Logger } from '@fuzdev/fuz_util/log.js';
30
+ import { type FactHash } from '@fuzdev/fuz_util/fact_hash.ts';
31
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
32
32
  import type { FsReadDeps, FsWriteDeps, FsStreamDeps, FsRemoveDeps } from '../runtime/deps.js';
33
33
  import { type FileFactUrl } from './file_fact_url.js';
34
34
  import type { FactExternalFetcher } from './fact_store.js';
@@ -30,10 +30,10 @@
30
30
  import { createHash } from 'node:crypto';
31
31
  import { join } from 'node:path';
32
32
  import { Blake3Hasher } from '@fuzdev/blake3_wasm';
33
- import { to_error_message } from '@fuzdev/fuz_util/error.js';
34
- import { blake3_ready } from '@fuzdev/fuz_util/hash_blake3.js';
35
- import { to_hex } from '@fuzdev/fuz_util/hex.js';
36
- import { FACT_HASH_PREFIX } from '@fuzdev/fuz_util/fact_hash.js';
33
+ import { to_error_message } from '@fuzdev/fuz_util/error.ts';
34
+ import { blake3_ready } from '@fuzdev/fuz_util/hash_blake3.ts';
35
+ import { to_hex } from '@fuzdev/fuz_util/hex.ts';
36
+ import { FACT_HASH_PREFIX } from '@fuzdev/fuz_util/fact_hash.ts';
37
37
  import { generate_random_base64url } from '../crypto.js';
38
38
  import { fact_disk_path, mint_file_fact_url, parse_file_fact_url, } from './file_fact_url.js';
39
39
  import { is_enospc_error, PayloadTooLargeError, StorageFullError } from './fact_store_errors.js';
@@ -12,7 +12,7 @@
12
12
  * @module
13
13
  */
14
14
  import type { QueryDeps } from './query_deps.js';
15
- import type { FactHash } from '@fuzdev/fuz_util/fact_hash.js';
15
+ import type { FactHash } from '@fuzdev/fuz_util/fact_hash.ts';
16
16
  /** Row shape for `SELECT … FROM fact`. */
17
17
  export interface FactRow {
18
18
  hash: FactHash;
@@ -27,9 +27,9 @@
27
27
  * @module
28
28
  */
29
29
  import type { QueryDeps } from './query_deps.js';
30
- import type { Logger } from '@fuzdev/fuz_util/log.js';
31
- import { type FactHash } from '@fuzdev/fuz_util/fact_hash.js';
32
- import type { FactMeta, FactPutOptions, FactStore, PutStreamOutcome } from '@fuzdev/fuz_util/fact_store.js';
30
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
31
+ import { type FactHash } from '@fuzdev/fuz_util/fact_hash.ts';
32
+ import type { FactMeta, FactPutOptions, FactStore, PutStreamOutcome } from '@fuzdev/fuz_util/fact_store.ts';
33
33
  import { type FactDiskStorageDeps } from './fact_disk_storage.js';
34
34
  /** Default embedded-vs-referenced cutoff (1 MiB). */
35
35
  export declare const FACT_EMBEDDED_THRESHOLD_DEFAULT: number;
@@ -26,8 +26,8 @@
26
26
  *
27
27
  * @module
28
28
  */
29
- import { to_error_message } from '@fuzdev/fuz_util/error.js';
30
- import { fact_hash_bytes, fact_hash_stream, fact_hash_verify, fact_hash_extract_refs, } from '@fuzdev/fuz_util/fact_hash.js';
29
+ import { to_error_message } from '@fuzdev/fuz_util/error.ts';
30
+ import { fact_hash_bytes, fact_hash_stream, fact_hash_verify, fact_hash_extract_refs, } from '@fuzdev/fuz_util/fact_hash.ts';
31
31
  import { query_delete_fact, query_get_fact, query_get_fact_meta, query_get_fact_refs, query_has_fact, query_put_fact, query_put_fact_refs, } from './fact_queries.js';
32
32
  import { create_disk_fact_fetcher, stream_fact_to_disk, write_fact_bytes_to_disk, } from './fact_disk_storage.js';
33
33
  /** Default embedded-vs-referenced cutoff (1 MiB). */
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * @module
24
24
  */
25
- import { type FactHash } from '@fuzdev/fuz_util/fact_hash.js';
25
+ import { type FactHash } from '@fuzdev/fuz_util/fact_hash.ts';
26
26
  import { z } from 'zod';
27
27
  /** Anchored, capture-group form: `^file:(<shard>)/(<rest>)$`. */
28
28
  export declare const FILE_FACT_URL_PATTERN: RegExp;
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * @module
24
24
  */
25
- import { FACT_HASH_PREFIX } from '@fuzdev/fuz_util/fact_hash.js';
25
+ import { FACT_HASH_PREFIX } from '@fuzdev/fuz_util/fact_hash.ts';
26
26
  import { z } from 'zod';
27
27
  /** Anchored, capture-group form: `^file:(<shard>)/(<rest>)$`. */
28
28
  export const FILE_FACT_URL_PATTERN = /^file:([0-9a-f]{2})\/([0-9a-f]{62})$/;
@@ -43,7 +43,7 @@
43
43
  *
44
44
  * @module
45
45
  */
46
- import { to_error_message } from '@fuzdev/fuz_util/error.js';
46
+ import { to_error_message } from '@fuzdev/fuz_util/error.ts';
47
47
  /**
48
48
  * Tagged error thrown by `run_migrations` and `baseline`.
49
49
  *
package/dist/db/status.js CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import { to_error_message } from '@fuzdev/fuz_util/error.js';
9
+ import { to_error_message } from '@fuzdev/fuz_util/error.ts';
10
10
  const has_table_column = async (db, table_name, column_name) => {
11
11
  const row = await db.query_one(`SELECT EXISTS (
12
12
  SELECT 1 FROM information_schema.columns
@@ -30,8 +30,8 @@
30
30
  * @module
31
31
  */
32
32
  import { z } from 'zod';
33
- import { Uuid } from '@fuzdev/fuz_util/id.js';
34
- import { zod_unwrap_to_object } from '@fuzdev/fuz_util/zod.js';
33
+ import { Uuid } from '@fuzdev/fuz_util/id.ts';
34
+ import { zod_unwrap_to_object } from '@fuzdev/fuz_util/zod.ts';
35
35
  /**
36
36
  * `acting` field shared by every input that needs the caller's acting actor.
37
37
  * Declaring `acting: ActingActor` on a route or action input signals to the
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import type { Logger } from '@fuzdev/fuz_util/log.js';
9
+ import type { Logger } from '@fuzdev/fuz_util/log.ts';
10
10
  import type { RouteSpec } from './route_spec.js';
11
11
  import type { AppSurface } from './surface.js';
12
12
  import { type ExpectedSchema } from '../db/schema_ready.js';