cursedbelt-server 4.48.0 → 4.48.1

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 (175) hide show
  1. package/dist/server/activity/store.d.ts +1 -1
  2. package/dist/server/analytics/injectedScripts.d.ts +1 -1
  3. package/dist/server/analytics/injectedScripts.js +1 -1
  4. package/dist/server/analytics/webAnalytics.d.ts +1 -1
  5. package/dist/server/analytics/webAnalytics.js +1 -1
  6. package/dist/server/auth/loginThrottleDurable.d.ts +3 -3
  7. package/dist/server/auth/loginThrottleDurable.js +3 -3
  8. package/dist/server/auth/passwordCost.js +1 -1
  9. package/dist/server/ctgrChunkDurable.d.ts +1 -1
  10. package/dist/server/ctgrChunkDurable.js +1 -1
  11. package/dist/server/d1/backup.d.ts +1 -1
  12. package/dist/server/d1/backup.js +1 -1
  13. package/dist/server/d1/http.d.ts +2 -2
  14. package/dist/server/d1/http.js +2 -2
  15. package/dist/server/d1/invocation.js +1 -1
  16. package/dist/server/d1/limits.d.ts +1 -1
  17. package/dist/server/d1/limits.js +1 -1
  18. package/dist/server/d1/scheduling.d.ts +1 -1
  19. package/dist/server/d1/scheduling.js +1 -1
  20. package/dist/server/d1/types.d.ts +1 -1
  21. package/dist/server/d1/types.js +1 -1
  22. package/dist/server/d1/values.d.ts +1 -1
  23. package/dist/server/d1/values.js +1 -1
  24. package/dist/server/dropzone/scan.d.ts +1 -1
  25. package/dist/server/engagement/index.d.ts +1 -1
  26. package/dist/server/engagement/index.js +1 -1
  27. package/dist/server/guard/argon2Binding.js +1 -1
  28. package/dist/server/guard/kdfWorkerEntry.js +2 -2
  29. package/dist/server/incidents/index.d.ts +1 -1
  30. package/dist/server/incidents/index.js +1 -1
  31. package/dist/server/incidents/store.d.ts +1 -1
  32. package/dist/server/incidents/store.js +1 -1
  33. package/dist/server/jobs/timeout.d.ts +1 -1
  34. package/dist/server/jobs/timeout.js +1 -1
  35. package/dist/server/master-lock/accountsPage.d.ts +1 -1
  36. package/dist/server/master-lock/accountsPage.js +2 -2
  37. package/dist/server/master-lock/guard.js +1 -1
  38. package/dist/server/master-lock/lockPage.d.ts +1 -1
  39. package/dist/server/master-lock/lockPage.js +2 -2
  40. package/dist/server/master-lock/masterLock.d.ts +2 -2
  41. package/dist/server/master-lock/masterLock.js +2 -2
  42. package/dist/server/metrics/normalizeRoute.js +1 -1
  43. package/dist/server/metrics/telemetrySink.d.ts +2 -2
  44. package/dist/server/metrics/telemetrySink.js +1 -1
  45. package/dist/server/middleware/zValidator.js +2 -2
  46. package/dist/server/notifications/hub.js +1 -1
  47. package/dist/server/requestLog/requestMetrics.d.ts +2 -2
  48. package/dist/server/requestLog/requestMetrics.js +2 -2
  49. package/dist/server/retention/archive.d.ts +1 -1
  50. package/dist/server/retention/archive.js +2 -2
  51. package/dist/server/satellite/config.js +2 -2
  52. package/dist/server/satellite/door.d.ts +1 -1
  53. package/dist/server/sharing/contract.d.ts +1 -1
  54. package/dist/server/storage/binaryStore.d.ts +1 -1
  55. package/dist/server/storage/binaryStore.js +3 -3
  56. package/dist/server/storage/derivatives.d.ts +2 -2
  57. package/dist/server/storage/derivatives.js +2 -2
  58. package/dist/server/storage/files/adapter.d.ts +2 -2
  59. package/dist/server/storage/files/adapter.js +10 -10
  60. package/dist/server/storage/files/catalogue.d.ts +1 -1
  61. package/dist/server/storage/files/catalogue.js +4 -4
  62. package/dist/server/storage/files/chunkedUpload.d.ts +2 -2
  63. package/dist/server/storage/files/chunkedUpload.js +1 -1
  64. package/dist/server/storage/files/fileRoutes.d.ts +1 -1
  65. package/dist/server/storage/files/fileRoutes.js +4 -4
  66. package/dist/server/storage/files/mimeByExt.js +1 -1
  67. package/dist/server/storage/files/stack.d.ts +2 -2
  68. package/dist/server/storage/files/types.d.ts +4 -4
  69. package/dist/server/storage/files/types.js +1 -1
  70. package/dist/server/storage/index.js +1 -1
  71. package/dist/server/storage/objectStoreMediaStore.js +1 -1
  72. package/dist/server/storage/transcodeJobs.js +5 -5
  73. package/dist/server/storage/types.d.ts +1 -1
  74. package/dist/server/storage/types.js +1 -1
  75. package/dist/server/storage/videoDerivativeKeys.d.ts +1 -1
  76. package/dist/server/storage/videoDerivativeKeys.js +1 -1
  77. package/dist/server/storage/videoProcessor.js +1 -1
  78. package/dist/server/sync/status.d.ts +1 -1
  79. package/dist/server/zipStream.d.ts +1 -1
  80. package/dist/server/zipStream.js +1 -1
  81. package/docs/activity.md +2 -2
  82. package/docs/retention.md +2 -2
  83. package/package.json +1 -1
  84. package/src/leafSubpathsImportNothing.spec.ts +1 -1
  85. package/src/namedSubpathsResolve.spec.ts +1 -1
  86. package/src/noTimerDialsAPeer.spec.ts +1 -1
  87. package/src/nodeBuiltinsAreProbedByCalling.spec.ts +1 -1
  88. package/src/publishShape.spec.ts +1 -1
  89. package/src/server/activity/store.ts +1 -1
  90. package/src/server/analytics/injectedScripts.spec.ts +1 -1
  91. package/src/server/analytics/injectedScripts.ts +1 -1
  92. package/src/server/analytics/webAnalytics.ts +1 -1
  93. package/src/server/auth/loginThrottleDurable.ts +3 -3
  94. package/src/server/auth/passwordCost.ts +1 -1
  95. package/src/server/bench/cpuBudget.spec.ts +1 -1
  96. package/src/server/bench/tail.spec.ts +1 -1
  97. package/src/server/ctgrChunkDurable.ts +1 -1
  98. package/src/server/d1/backup.spec.ts +1 -1
  99. package/src/server/d1/backup.ts +1 -1
  100. package/src/server/d1/http.ts +2 -2
  101. package/src/server/d1/invocation.spec.ts +1 -1
  102. package/src/server/d1/invocation.ts +1 -1
  103. package/src/server/d1/limits.ts +1 -1
  104. package/src/server/d1/pullD1.spec.ts +1 -1
  105. package/src/server/d1/scheduling.ts +1 -1
  106. package/src/server/d1/types.ts +1 -1
  107. package/src/server/d1/values.ts +1 -1
  108. package/src/server/dropzone/scan.spec.ts +2 -2
  109. package/src/server/dropzone/scan.ts +1 -1
  110. package/src/server/engagement/engagement.spec.ts +1 -1
  111. package/src/server/engagement/index.ts +1 -1
  112. package/src/server/google-oauth/googleOAuth.spec.ts +1 -1
  113. package/src/server/guard/argon2Binding.ts +1 -1
  114. package/src/server/guard/kdfWorkerEntry.ts +2 -2
  115. package/src/server/incidents/index.ts +1 -1
  116. package/src/server/incidents/store.ts +1 -1
  117. package/src/server/jobs/timeout.ts +1 -1
  118. package/src/server/master-lock/accountsPage.spec.ts +2 -2
  119. package/src/server/master-lock/accountsPage.ts +2 -2
  120. package/src/server/master-lock/beaconNeverReachesTheWall.spec.ts +2 -2
  121. package/src/server/master-lock/guard.spec.ts +2 -2
  122. package/src/server/master-lock/guard.ts +1 -1
  123. package/src/server/master-lock/lockPage.spec.ts +1 -1
  124. package/src/server/master-lock/lockPage.ts +2 -2
  125. package/src/server/master-lock/masterLock.spec.ts +1 -1
  126. package/src/server/master-lock/masterLock.ts +2 -2
  127. package/src/server/master-lock/sessions.spec.ts +1 -1
  128. package/src/server/metrics/normalizeRoute.ts +1 -1
  129. package/src/server/metrics/telemetrySink.ts +3 -3
  130. package/src/server/middleware/bodyLimit.spec.ts +1 -1
  131. package/src/server/middleware/zValidator.spec.ts +3 -3
  132. package/src/server/middleware/zValidator.ts +3 -3
  133. package/src/server/notifications/hub.ts +1 -1
  134. package/src/server/requestLog/requestMetrics.spec.ts +2 -2
  135. package/src/server/requestLog/requestMetrics.ts +3 -3
  136. package/src/server/retention/archive.spec.ts +2 -2
  137. package/src/server/retention/archive.ts +2 -2
  138. package/src/server/satellite/config.ts +2 -2
  139. package/src/server/satellite/door.ts +1 -1
  140. package/src/server/satellite/satellite.spec.ts +1 -1
  141. package/src/server/sharing/contract.ts +1 -1
  142. package/src/server/storage/binaryServerProcessing.spec.ts +1 -1
  143. package/src/server/storage/binaryServerProcessing.ts +4 -4
  144. package/src/server/storage/binaryStore.spec.ts +6 -6
  145. package/src/server/storage/binaryStore.ts +4 -4
  146. package/src/server/storage/chunked.integration.spec.ts +2 -2
  147. package/src/server/storage/derivatives.ts +2 -2
  148. package/src/server/storage/fileUploadClient.integration.spec.ts +1 -1
  149. package/src/server/storage/files/adapter.photo.spec.ts +2 -2
  150. package/src/server/storage/files/adapter.spec.ts +3 -3
  151. package/src/server/storage/files/adapter.ts +10 -10
  152. package/src/server/storage/files/catalogue.spec.ts +1 -1
  153. package/src/server/storage/files/catalogue.ts +4 -4
  154. package/src/server/storage/files/chunkedUpload.spec.ts +5 -5
  155. package/src/server/storage/files/chunkedUpload.ts +3 -3
  156. package/src/server/storage/files/fileRoutes.spec.ts +3 -3
  157. package/src/server/storage/files/fileRoutes.ts +5 -5
  158. package/src/server/storage/files/mimeByExt.ts +1 -1
  159. package/src/server/storage/files/stack.ts +3 -3
  160. package/src/server/storage/files/types.ts +6 -6
  161. package/src/server/storage/index.ts +1 -1
  162. package/src/server/storage/objectStoreMediaStore.ts +1 -1
  163. package/src/server/storage/sources.ts +1 -1
  164. package/src/server/storage/transcodeJobs.ts +5 -5
  165. package/src/server/storage/types.ts +2 -2
  166. package/src/server/storage/uploadSession.spec.ts +1 -1
  167. package/src/server/storage/videoDerivativeKeys.spec.ts +3 -3
  168. package/src/server/storage/videoDerivativeKeys.ts +1 -1
  169. package/src/server/storage/videoProcessor.ts +1 -1
  170. package/src/server/sync/status.ts +1 -1
  171. package/src/server/sync/timer.spec.ts +1 -1
  172. package/src/server/worker-argon2/index.spec.ts +1 -1
  173. package/src/server/zipStream.spec.ts +2 -2
  174. package/src/server/zipStream.ts +1 -1
  175. package/src/shippedFilesAreTracked.spec.ts +2 -2
@@ -60,7 +60,7 @@ export interface JsonlArchiveOptions {
60
60
  * The index is what makes the archive answerable without reading gigabytes —
61
61
  * "what is in here, how many rows, and does it still hash the same" — and it is
62
62
  * appended rather than rewritten so a crash mid-write can cost at most the last
63
- * line, never the catalogue.
63
+ * line, never the catalog.
64
64
  */
65
65
  export declare function createJsonlArchive(options: JsonlArchiveOptions): ArchiveSink;
66
66
  /**
@@ -125,7 +125,7 @@ export function resolveArchiveHome(app, env = process.env) {
125
125
  * The index is what makes the archive answerable without reading gigabytes —
126
126
  * "what is in here, how many rows, and does it still hash the same" — and it is
127
127
  * appended rather than rewritten so a crash mid-write can cost at most the last
128
- * line, never the catalogue.
128
+ * line, never the catalog.
129
129
  */
130
130
  export function createJsonlArchive(options) {
131
131
  const { app, resource } = options;
@@ -224,7 +224,7 @@ export function createJsonlArchive(options) {
224
224
  appendFileSync(indexPath, `${JSON.stringify({ app, resource, ...segment, path: undefined, file })}\n`);
225
225
  }
226
226
  catch {
227
- // The catalogue is a convenience; the segment is the archive. A failed
227
+ // The catalog is a convenience; the segment is the archive. A failed
228
228
  // index append must never make a sealed segment look unsealed and send
229
229
  // the same rows through again.
230
230
  }
@@ -7,7 +7,7 @@
7
7
  * ## Why, since 4.19.0 (task 281)
8
8
  *
9
9
  * Measured 2026-09-23: nine `appConfig.ts` copies in five versions, plus `appData.ts`,
10
- * `stageIdentity.ts` and `runtimeMode.ts` travelling with them. The file's whole job is
10
+ * `stageIdentity.ts` and `runtimeMode.ts` traveling with them. The file's whole job is
11
11
  * `productionBlockers` + `assertUsable`, and the versions differed in exactly that job:
12
12
  *
13
13
  * · lineage B (`flix`, `station`, `patterns`) threw a plain `Error` — a misconfigured boot
@@ -23,7 +23,7 @@
23
23
  * The union of the protections is what is here. What an app still owns is its identity: its own
24
24
  * fields, its `stakes` sentence, and its own blockers, passed as `extra` — never a fork of this.
25
25
  *
26
- * ## The one behaviour that is STRICTER than every copy
26
+ * ## The one behavior that is STRICTER than every copy
27
27
  *
28
28
  * The refusal fires when the instance is `live` — a release OR a production build — where lineage
29
29
  * A asked only "is this a production build". Every `scripts/service.ts` sets
@@ -88,7 +88,7 @@ export declare function parseEmailList(raw: string | undefined): string[];
88
88
  export interface DoorConfig {
89
89
  /** A release — {@link isRelease}. */
90
90
  deployed: boolean;
91
- /** This instance's own origin, when known. A stage is recognised by it. */
91
+ /** This instance's own origin, when known. A stage is recognized by it. */
92
92
  publicUrl?: string;
93
93
  }
94
94
  /**
@@ -87,7 +87,7 @@ export type Awaitable<T> = T | Promise<T>;
87
87
  /**
88
88
  * Either store, as a consumer that works over both sees it: every method's result is
89
89
  * {@link Awaitable}. `mountShareRoutes` takes this, and awaits every call — awaiting a
90
- * synchronous value is a no-op, so the sync store's behaviour through it is unchanged.
90
+ * synchronous value is a no-op, so the sync store's behavior through it is unchanged.
91
91
  */
92
92
  export type AwaitableShareStore = {
93
93
  readonly [K in keyof AsyncShareStore]: AsyncShareStore[K] extends (...args: infer A) => Promise<infer R> ? (...args: A) => Awaitable<R> : AsyncShareStore[K];
@@ -162,7 +162,7 @@ export interface ReadOptions {
162
162
  * 🔴 Wait out binary-server's read ceiling instead of throwing it (task 2505).
163
163
  *
164
164
  * The store allows a tenant a burst of reads, then a steady rate, and answers 429 with the
165
- * `retry-after` it wants honoured (`apps/binary-server/src/rateLimit.ts`). A batch read —
165
+ * `retry-after` it wants honored (`apps/binary-server/src/rateLimit.ts`). A batch read —
166
166
  * roms filing a disc's 256 parts, a hash backfill, an import — met it at read ~204 and threw
167
167
  * the whole pass away. `paced` makes `get`/`meta`/`stat` sleep the named `retry-after` and ask
168
168
  * again, for at most {@link BINARY_PACED_MAX_WAIT_MS} in total (or `{ maxWaitMs }`).
@@ -28,7 +28,7 @@
28
28
  * binary-server.
29
29
  *
30
30
  * 🔴 It is published as the LEAF subpath `cursedbelt-server/binary-store`, never through
31
- * the `./storage` barrel — that barrel drags the file-catalogue and transcode graph, and
31
+ * the `./storage` barrel — that barrel drags the file-catalog and transcode graph, and
32
32
  * this module's whole promise is that an app pays nothing but `node:crypto` for it.
33
33
  * `src/leafSubpathsImportNothing.spec.ts` is what holds that promise.
34
34
  *
@@ -38,7 +38,7 @@
38
38
  * three forks of the fleet's binary-storage client looked like from the outside. The
39
39
  * divergence was measured before the move and was entirely in prose and in one stale
40
40
  * import specifier (`cursedbelt/server/storage`, the pre-split package name) — no
41
- * behavioural difference in any of the three, so nothing was dropped to land the union.
41
+ * behavioral difference in any of the three, so nothing was dropped to land the union.
42
42
  */
43
43
  import { createHash, createPrivateKey, createPublicKey, sign as cryptoSign } from 'node:crypto';
44
44
  /** The batched `/internal/ops/meta` client — its own module so the store's graph stays the store's. */
@@ -577,7 +577,7 @@ export function createBinaryStore(cfg) {
577
577
  known(key) {
578
578
  // Order matters: a lapsed absence is DROPPED by `knownAbsent`, so asking it
579
579
  // first keeps this accessor from reporting an expiry the next real read would
580
- // not honour. A positive memo has no expiry, so it needs no such care.
580
+ // not honor. A positive memo has no expiry, so it needs no such care.
581
581
  if (knownAbsent(key))
582
582
  return 'absent';
583
583
  return present.has(key) ? 'present' : 'unknown';
@@ -5,7 +5,7 @@
5
5
  * owner's 2026-08-14 ruling — *"Make it in cb because many apps may move to cloudflare and share
6
6
  * the logic"*); what was still copied into `collections` and `family` as `src/kit/imageDerivatives.ts`
7
7
  * and `src/kit/videoDerivatives.ts` was the READING strategy built on them — the part with the
8
- * judgement in it. The video copy had already forked (three import lines and a doc comment, benign
8
+ * judgment in it. The video copy had already forked (three import lines and a doc comment, benign
9
9
  * by accident), and the HEIC rule below decides whether a photograph appears AT ALL, which may not
10
10
  * exist in two places.
11
11
  *
@@ -147,7 +147,7 @@ export declare const isUnviewableStill: (mime: string | null | undefined, fileNa
147
147
  * ── 🔴 Why this is here, from the owner's report (2026-08-14) ────────────────────────
148
148
  * *"videos are not showing with thumbnails in the family app keepsakes"*, with a screenshot
149
149
  * of one album: eleven photographs with tiles and three videos — 129, 282 and 633 MB — drawn
150
- * as a grey play triangle.
150
+ * as a gray play triangle.
151
151
  *
152
152
  * Nothing was broken. binary-server's `runPoster` had always existed and was reachable only
153
153
  * from its `library` strategy, while `family` and `collections` both submit `faststart`,
@@ -5,7 +5,7 @@
5
5
  * owner's 2026-08-14 ruling — *"Make it in cb because many apps may move to cloudflare and share
6
6
  * the logic"*); what was still copied into `collections` and `family` as `src/kit/imageDerivatives.ts`
7
7
  * and `src/kit/videoDerivatives.ts` was the READING strategy built on them — the part with the
8
- * judgement in it. The video copy had already forked (three import lines and a doc comment, benign
8
+ * judgment in it. The video copy had already forked (three import lines and a doc comment, benign
9
9
  * by accident), and the HEIC rule below decides whether a photograph appears AT ALL, which may not
10
10
  * exist in two places.
11
11
  *
@@ -156,7 +156,7 @@ export const isUnviewableStill = (mime, fileName) => {
156
156
  * ── 🔴 Why this is here, from the owner's report (2026-08-14) ────────────────────────
157
157
  * *"videos are not showing with thumbnails in the family app keepsakes"*, with a screenshot
158
158
  * of one album: eleven photographs with tiles and three videos — 129, 282 and 633 MB — drawn
159
- * as a grey play triangle.
159
+ * as a gray play triangle.
160
160
  *
161
161
  * Nothing was broken. binary-server's `runPoster` had always existed and was reachable only
162
162
  * from its `library` strategy, while `family` and `collections` both submit `faststart`,
@@ -2,7 +2,7 @@ import type { MediaUrls } from '../sources.js';
2
2
  import type { MediaGallerySource, MediaSource, PhotoSource } from '../types.js';
3
3
  import type { FileUrls } from './fileRoutes.js';
4
4
  import type { FileCatalogue, FileToPlayable } from './types.js';
5
- /** Resolve a video FileRecord to a PlayableVideo with tokenised URLs. Non-video ⇒ null. */
5
+ /** Resolve a video FileRecord to a PlayableVideo with tokenized URLs. Non-video ⇒ null. */
6
6
  export declare function createFileToPlayable(urls: MediaUrls, sourceId: string): FileToPlayable;
7
7
  /** Expose a FileCatalogue as a video-only `MediaSource` — the gallery is a view, not a store. */
8
8
  export declare function createCatalogueVideoSource(cfg: {
@@ -20,7 +20,7 @@ export declare function createCataloguePhotoSource(cfg: {
20
20
  mediaUrls: MediaUrls;
21
21
  }): PhotoSource;
22
22
  /** Expose a FileCatalogue as a `MediaGallerySource` — photos + videos in one feed.
23
- * Videos are tokenised under `videoSourceId` (must match the registered video source so
23
+ * Videos are tokenized under `videoSourceId` (must match the registered video source so
24
24
  * `mountMediaRoutes` serves their streams); photo posters/thumbnails under this source's `id`. */
25
25
  export declare function createCatalogueMediaSource(cfg: {
26
26
  id: string;
@@ -26,14 +26,14 @@ function createFileToPhoto(cfg) {
26
26
  };
27
27
  }
28
28
  // ── FileCatalogue → media seam ────────────────────────────────────────────────────
29
- // The catalogue is the ONE source of truth for a user's binaries. The video gallery is not a
30
- // separate store — it is a video-filtered VIEW over the catalogue. These two adapters are the
29
+ // The catalog is the ONE source of truth for a user's binaries. The video gallery is not a
30
+ // separate store — it is a video-filtered VIEW over the catalog. These two adapters are the
31
31
  // seam: `createFileToPlayable` turns a video FileRecord into the player's PlayableVideo (URLs
32
32
  // baked server-side via the shared token/serve infra), and `createCatalogueVideoSource` exposes
33
- // the catalogue as a `MediaSource` so the existing `mountMediaRoutes` + gallery serve it
33
+ // the catalog as a `MediaSource` so the existing `mountMediaRoutes` + gallery serve it
34
34
  // unchanged. Because the serve routes address bytes by (owner, videoId) through the shared
35
- // keyspace, a catalogue video is served by the same routes regardless of `sourceId`.
36
- /** Resolve a video FileRecord to a PlayableVideo with tokenised URLs. Non-video ⇒ null. */
35
+ // keyspace, a catalog video is served by the same routes regardless of `sourceId`.
36
+ /** Resolve a video FileRecord to a PlayableVideo with tokenized URLs. Non-video ⇒ null. */
37
37
  export function createFileToPlayable(urls, sourceId) {
38
38
  return async (ctx, file) => {
39
39
  if (file.fileType !== 'video')
@@ -95,7 +95,7 @@ export function createCatalogueVideoSource(cfg) {
95
95
  };
96
96
  }
97
97
  // ── Photo view ────────────────────────────────────────────────────────────────────
98
- // The photo gallery is the image-filtered sibling of the video view: same catalogue, same
98
+ // The photo gallery is the image-filtered sibling of the video view: same catalog, same
99
99
  // token/serve infra. The primary image is served by the file byte route (fileUrls) and the grid
100
100
  // thumbnail by the type-agnostic poster route (mediaUrls) when the ingest thumbnailer produced
101
101
  // one — so a PhotoSource needs BOTH URL builders.
@@ -143,14 +143,14 @@ export function createCataloguePhotoSource(cfg) {
143
143
  };
144
144
  }
145
145
  // ── Mixed media view ───────────────────────────────────────────────────────────────
146
- // A combined gallery lists BOTH photos and videos from the one catalogue. This adapter
146
+ // A combined gallery lists BOTH photos and videos from the one catalog. This adapter
147
147
  // reuses the same two mappers (`createFileToPlayable`, `createFileToPhoto`) so a mixed
148
148
  // item renders identically to its single-type sibling — it just tags each with
149
149
  // `mediaKind` for the UI to pick a tile/stage. It needs BOTH URL builders (video streams
150
- // + image bytes/poster). A `kind` filter maps to the catalogue's `type`; `all` lists
150
+ // + image bytes/poster). A `kind` filter maps to the catalog's `type`; `all` lists
151
151
  // untyped and keeps only image|video (dropping docs/audio the mixed gallery can't show).
152
152
  /** Expose a FileCatalogue as a `MediaGallerySource` — photos + videos in one feed.
153
- * Videos are tokenised under `videoSourceId` (must match the registered video source so
153
+ * Videos are tokenized under `videoSourceId` (must match the registered video source so
154
154
  * `mountMediaRoutes` serves their streams); photo posters/thumbnails under this source's `id`. */
155
155
  export function createCatalogueMediaSource(cfg) {
156
156
  const toPlayable = createFileToPlayable(cfg.urls, cfg.videoSourceId ?? cfg.id);
@@ -170,7 +170,7 @@ export function createCatalogueMediaSource(cfg) {
170
170
  id: cfg.id,
171
171
  title: cfg.title,
172
172
  async list(ctx, opts) {
173
- // `all` ⇒ no catalogue type filter, then drop non-image/video below.
173
+ // `all` ⇒ no catalog type filter, then drop non-image/video below.
174
174
  const type = opts.kind === 'image' ? 'image' : opts.kind === 'video' ? 'video' : undefined;
175
175
  const page = await cfg.catalogue.list(ctx, {
176
176
  type,
@@ -32,7 +32,7 @@ export type ImageDerivatives = (opts: ImageDerivativesOptions) => Promise<{
32
32
  export declare const fileBinaryKey: (owner: string, id: string) => string;
33
33
  /** Where a file's uploaded bytes must land for `registerUploaded` to find them: a video's raw
34
34
  * source (fed to the transcode), else the primary binary. The chunked-upload path targets this key
35
- * so an out-of-band upload lands exactly where the catalogue + serve routes expect it. */
35
+ * so an out-of-band upload lands exactly where the catalog + serve routes expect it. */
36
36
  export declare const catalogueUploadKey: (owner: string, id: string, mime: string) => string;
37
37
  export type SqliteFileCatalogueOptions = {
38
38
  db: Database;
@@ -11,7 +11,7 @@ import { classifyFileType, } from './types.js';
11
11
  export const fileBinaryKey = (owner, id) => `fs/${owner}/${id}`;
12
12
  /** Where a file's uploaded bytes must land for `registerUploaded` to find them: a video's raw
13
13
  * source (fed to the transcode), else the primary binary. The chunked-upload path targets this key
14
- * so an out-of-band upload lands exactly where the catalogue + serve routes expect it. */
14
+ * so an out-of-band upload lands exactly where the catalog + serve routes expect it. */
15
15
  export const catalogueUploadKey = (owner, id, mime) => mime.startsWith('video/') ? fsSourceKey(owner, id) : fileBinaryKey(owner, id);
16
16
  const b64 = (s) => Buffer.from(s).toString('base64url');
17
17
  const unb64 = (s) => Buffer.from(s, 'base64url').toString();
@@ -210,7 +210,7 @@ export function createSqliteFileCatalogue(opts) {
210
210
  createdAt: row.created_at,
211
211
  updatedAt: row.updated_at,
212
212
  });
213
- // A background job can outlive this catalogue's Database — a host shutting down mid-transcode,
213
+ // A background job can outlive this catalog's Database — a host shutting down mid-transcode,
214
214
  // or a test teardown that closed the db after its settle timeout. The job's late progress/result
215
215
  // writes must not crash the process (the rows they'd update are gone with the closed db, and
216
216
  // recoverProcessing re-kicks anything left 'processing' on the next boot) — drop exactly the
@@ -512,7 +512,7 @@ export function createSqliteFileCatalogue(opts) {
512
512
  },
513
513
  async registerUploaded(ctx, upload) {
514
514
  // Bytes were uploaded out-of-band (a chunked upload direct to binary-server) and already sit
515
- // at the catalogue's key (fsSourceKey for video, fileBinaryKey otherwise). Just create the
515
+ // at the catalog's key (fsSourceKey for video, fileBinaryKey otherwise). Just create the
516
516
  // row + kick processing — no re-store. The caller owns having placed the bytes correctly.
517
517
  return finalizePublicRow(ownerOf(ctx), upload.id, upload, upload.size, now());
518
518
  },
@@ -648,7 +648,7 @@ export function createSqliteFileCatalogue(opts) {
648
648
  return { imported, skipped };
649
649
  }
650
650
  // Directory: recurse, tagging each file with its immediate containing folder name so the
651
- // origin structure survives as a (flat) tag facet rather than a tree the catalogue doesn't
651
+ // origin structure survives as a (flat) tag facet rather than a tree the catalog doesn't
652
652
  // model. The top-level directory itself is NOT used as a tag (it's just the import root).
653
653
  const walk = async (dir, isRoot) => {
654
654
  let entries;
@@ -22,12 +22,12 @@ export interface ChunkedUploadService {
22
22
  size: number;
23
23
  tags?: string[];
24
24
  }): Promise<ChunkedInit>;
25
- /** Finish it: mark the op done and register the catalogue row over the assembled bytes. Returns
25
+ /** Finish it: mark the op done and register the catalog row over the assembled bytes. Returns
26
26
  * the new record, or null if the session is unknown (already completed / server restarted). */
27
27
  complete(sid: string, confirmed?: {
28
28
  size?: number;
29
29
  }): Promise<FileRecord | null>;
30
- /** Give up on a session (client cancelled / a chunk failed) — mark the ledger op failed. */
30
+ /** Give up on a session (client canceled / a chunk failed) — mark the ledger op failed. */
31
31
  abort(sid: string): void;
32
32
  /** Open session count (observability / tests). */
33
33
  pending(): number;
@@ -6,7 +6,7 @@ import { catalogueUploadKey } from './catalogue.js';
6
6
  // backend (binary-server), records a durable `upload` ledger op, and hands the URLs back. The
7
7
  // client PUTs each chunk to the backend, which assembles them at the target key once the last
8
8
  // arrives. Then the client (or a backend webhook) calls COMPLETE, and the app registers the
9
- // catalogue row over the already-stored bytes (no re-upload) + kicks processing.
9
+ // catalog row over the already-stored bytes (no re-upload) + kicks processing.
10
10
  //
11
11
  // This module is backend-AGNOSTIC: the app injects `mintChunkUpload` (the binary-server chunk URL
12
12
  // + signed sid/ci/tc token). On disk-only deploys, an app simply doesn't wire chunked uploads and
@@ -24,7 +24,7 @@ export type MountFileRoutesOptions = {
24
24
  basePath?: string;
25
25
  /** Session auth for the upload PUTs (a fetch CAN send the Bearer). Return a ctx or null. */
26
26
  authorizeUpload?: (c: Context) => Promise<MediaCtx | null> | MediaCtx | null;
27
- /** The catalogue uploads land in. Required for the upload routes to be mounted. */
27
+ /** The catalog uploads land in. Required for the upload routes to be mounted. */
28
28
  catalogue?: FileCatalogue;
29
29
  /** Wire large-file chunked uploads (direct-to-backend). Omit ⇒ init/complete routes are absent
30
30
  * and clients use the streamed `PUT /upload`. Uses the same `authorizeUpload` guard. */
@@ -9,7 +9,7 @@ import { FILE_SORTS } from './types.js';
9
9
  // can't send a Bearer). Uploads DO carry the app Bearer, so the PUT routes are session-guarded.
10
10
  //
11
11
  // `sourceId` for a file token is the constant 'files'. The served Content-Type is carried as a
12
- // signed-URL query (`?ct=`) — the catalogue knows each file's mime when it builds the URL, so the
12
+ // signed-URL query (`?ct=`) — the catalog knows each file's mime when it builds the URL, so the
13
13
  // route needn't re-derive it. It only ever serves the token owner's own bytes.
14
14
  const FILE_SOURCE_ID = 'files';
15
15
  // Guard the echoed Content-Type: a plain type/subtype, no header injection.
@@ -31,7 +31,7 @@ const isUploadTooLarge = (e) => e instanceof UploadTooLargeError || (e instanceo
31
31
  * Content-Length header (browsers set it for a File/Blob body), and — for length-less chunked
32
32
  * transfer — wraps the stream to abort once the accumulated bytes pass the cap (the wrapping error
33
33
  * surfaces from `catalogue.ingest`, which the handlers turn into a 413). Returns either the body to
34
- * hand to the catalogue, or a 413 Response to return immediately.
34
+ * hand to the catalog, or a 413 Response to return immediately.
35
35
  */
36
36
  function guardSingleUpload(c, body) {
37
37
  const declared = Number(c.req.header('content-length'));
@@ -187,12 +187,12 @@ export function mountFileRoutes(app, opts) {
187
187
  });
188
188
  }
189
189
  // ── Listing + collection routes ───────────────────────────────────────────────
190
- // All require authorizeUpload (session auth) and a catalogue. They follow the same
190
+ // All require authorizeUpload (session auth) and a catalog. They follow the same
191
191
  // auth/ctx/envelope pattern as the upload routes above. The `includeUnlockable` gate is the
192
192
  // caller's responsibility — the route passes the query param through, and it's the app's session
193
193
  // middleware that decides whether the caller has unlocked.
194
194
  if (opts.authorizeUpload && catalogue) {
195
- // GET /_files/list → cursor-paginated catalogue listing. Query params mirror
195
+ // GET /_files/list → cursor-paginated catalog listing. Query params mirror
196
196
  // ListFilesOptions: type, tag, query (q), collectionId, favorite, includeUnlockable,
197
197
  // sort (recent|oldest|name|size|random|lastViewed), cursor, limit.
198
198
  app.get(`${base}/list`, async (c) => {
@@ -1,5 +1,5 @@
1
1
  import { mimeForFilename } from 'cwip/string';
2
- // Ext → mime for local-disk import (catalogue.importFromPath) — the catalogue needs SOME mime
2
+ // Ext → mime for local-disk import (catalogue.importFromPath) — the catalog needs SOME mime
3
3
  // to classify + serve a file that never passed through a browser's upload Content-Type.
4
4
  //
5
5
  // The table itself moved DOWN to `cwip/string`'s `fileKind` (2026-07-31): the viewer UI and the
@@ -8,7 +8,7 @@ import { type ChunkedUploadService, type MintChunkUpload } from './chunkedUpload
8
8
  import { type FileUrls } from './fileRoutes.js';
9
9
  import type { FileCatalogue } from './types.js';
10
10
  export interface FilesStackOptions {
11
- /** The catalogue database. The stack runs FILE_CATALOGUE_MIGRATIONS on it itself. */
11
+ /** The catalog database. The stack runs FILE_CATALOGUE_MIGRATIONS on it itself. */
12
12
  db: Database;
13
13
  /** Byte backend (disk / binary-server / s3) — the swappable piece. */
14
14
  store: MediaStore;
@@ -62,7 +62,7 @@ export interface FilesStackOptions {
62
62
  backfillPosters?: boolean;
63
63
  /** Wire LARGE-file chunked uploads (direct-to-backend). Give the backend-specific per-chunk URL
64
64
  * minter (for binary-server: a signed `${base}/upload-chunk/${app}/${key}?token=`) and the stack
65
- * builds the ChunkedUploadService over its own catalogue + a storage-ops ledger on `db`, then
65
+ * builds the ChunkedUploadService over its own catalog + a storage-ops ledger on `db`, then
66
66
  * mount() auto-wires the /upload-init, /upload-complete, /upload-abort routes. Omit ⇒ chunked is
67
67
  * off and clients fall back to the streamed single PUT (disk-only deploys). */
68
68
  chunkedUpload?: {
@@ -51,7 +51,7 @@ export type FilePage = {
51
51
  items: FileRecord[];
52
52
  nextCursor?: string;
53
53
  };
54
- /** Every listing order the catalogue understands — the single source of truth the route layer
54
+ /** Every listing order the catalog understands — the single source of truth the route layer
55
55
  * validates against and the `FileSort` union derives from. `recent` = newest first (default);
56
56
  * `oldest` = oldest first; `name` = A→Z; `size` = largest first; `random` = a seeded shuffle
57
57
  * (the seed is minted per session and folded into the cursor, so a visit reshuffles but its own
@@ -85,7 +85,7 @@ export type ListFilesOptions = {
85
85
  /** Server-authoritative smart-view classification, computed ONCE at write time and stored.
86
86
  * `isText` (a non-binary inline file) ⇒ code; else by mime. */
87
87
  export declare function classifyFileType(mime: string, isText?: boolean): FileType;
88
- /** The catalogue contract. A SQLite implementation is the production default; the interface lets
88
+ /** The catalog contract. A SQLite implementation is the production default; the interface lets
89
89
  * an app swap it. All calls are owner-scoped via {@link MediaCtx} (one tenant never sees another). */
90
90
  /** Cheap owner-scoped aggregates (COUNT/SUM over the files table) — the admin
91
91
  * surface's "site stats" source. */
@@ -111,7 +111,7 @@ export interface FileCatalogue {
111
111
  tags?: string[];
112
112
  }): Promise<FileRecord>;
113
113
  /** Register bytes uploaded OUT OF BAND (a chunked upload sent direct to the backend) — insert the
114
- * row + kick processing WITHOUT re-storing bytes (they already sit at the catalogue's key for this
114
+ * row + kick processing WITHOUT re-storing bytes (they already sit at the catalog's key for this
115
115
  * id: fsSourceKey for video, fileBinaryKey otherwise). */
116
116
  registerUploaded(ctx: MediaCtx, upload: {
117
117
  id: string;
@@ -148,7 +148,7 @@ export interface FileCatalogue {
148
148
  restore(ctx: MediaCtx, id: string): Promise<void>;
149
149
  /** Ingest file(s) from a LOCAL path already on this host's disk (a directory imports every
150
150
  * regular file inside it, recursively; a file imports just itself). Each imported file is
151
- * tagged with its immediate containing folder name (the catalogue is flat — folder structure
151
+ * tagged with its immediate containing folder name (the catalog is flat — folder structure
152
152
  * survives as a tag, not a tree) plus any `tags` passed. Unreadable/unsupported entries are
153
153
  * skipped, not thrown — the return value reports both. */
154
154
  importFromPath(ctx: MediaCtx, absPath: string, opts?: {
@@ -1,4 +1,4 @@
1
- /** Every listing order the catalogue understands — the single source of truth the route layer
1
+ /** Every listing order the catalog understands — the single source of truth the route layer
2
2
  * validates against and the `FileSort` union derives from. `recent` = newest first (default);
3
3
  * `oldest` = oldest first; `name` = A→Z; `size` = largest first; `random` = a seeded shuffle
4
4
  * (the seed is minted per session and folded into the cursor, so a visit reshuffles but its own
@@ -9,7 +9,7 @@ export { DERIVATIVE_SUFFIXES, hlsMasterKeyFor, hlsPrefixFor, isDerivativeKey, po
9
9
  export { createBinaryServerStore } from './binaryServerStore.js';
10
10
  export { createBinaryServerProcessing, } from './binaryServerProcessing.js';
11
11
  // The transcode API as a plain job client, for apps whose binaries do NOT live in the file
12
- // catalogue (apps/notes keys attachments by sha256). One derivative pipeline, two doors.
12
+ // catalog (apps/notes keys attachments by sha256). One derivative pipeline, two doors.
13
13
  export { createTranscodeJobClient, } from './transcodeJobs.js';
14
14
  export { createDiskStore } from './diskStore.js';
15
15
  // The FileCatalogue: a SQLite-backed tagged flat file system over this storage layer — one
@@ -7,7 +7,7 @@
7
7
  // fork the whole transcode orchestrator onto a second store type, the asset
8
8
  // `transcode` handler wraps its `ObjectStore` in this adapter and reuses the
9
9
  // pipeline unchanged. There is deliberately NO `localPath`, so `processVideo`
10
- // materialises the source by download — correct for a stream store where the
10
+ // materializes the source by download — correct for a stream store where the
11
11
  // bytes may live off-box (S3/R2).
12
12
  const streamToBytes = async (stream) => new Uint8Array(await new Response(stream).arrayBuffer());
13
13
  const bytesToStream = (bytes) => new ReadableStream({
@@ -3,12 +3,12 @@
3
3
  //
4
4
  // It was already here, inlined inside `createBinaryServerProcessing`, but only reachable
5
5
  // through that module's two seams (`VideoProcessor` / `ImageDerivatives`), which are shaped
6
- // for the cursedbelt file CATALOGUE: they take a `MediaStore`, a `workDir`, an owner and a
7
- // catalogue id. An app that stores binaries some other way — apps/notes keys attachments by
8
- // sha256 through satellite-kit's binary-store and has no catalogue at all — could not reach
9
- // the pipeline without either adopting the catalogue or writing a second HTTP client.
6
+ // for the cursedbelt file CATALOG: they take a `MediaStore`, a `workDir`, an owner and a
7
+ // catalog id. An app that stores binaries some other way — apps/notes keys attachments by
8
+ // sha256 through satellite-kit's binary-store and has no catalog at all — could not reach
9
+ // the pipeline without either adopting the catalog or writing a second HTTP client.
10
10
  //
11
- // So the transport lives here and the catalogue seams are built on top of it. There is ONE
11
+ // So the transport lives here and the catalog seams are built on top of it. There is ONE
12
12
  // derivative pipeline in the fleet, and this is its entry point.
13
13
  //
14
14
  // ── Why binary-server rather than deriving locally ──────────────────────────────────────
@@ -173,7 +173,7 @@ export interface PhotoSource {
173
173
  recordView?(ctx: MediaCtx, photoId: string): Promise<void>;
174
174
  }
175
175
  /** A source of MIXED media (photos + videos) for a combined gallery — the union of
176
- * {@link MediaSource} and {@link PhotoSource} over ONE catalogue. `list`/`resolve`
176
+ * {@link MediaSource} and {@link PhotoSource} over ONE catalog. `list`/`resolve`
177
177
  * yield `GalleryMedia` (a `mediaKind`-tagged photo|video), and a `kind` filter narrows
178
178
  * to just photos or just videos. Same cursor/tag/sort listing contract as its siblings. */
179
179
  export interface MediaGallerySource {
@@ -11,7 +11,7 @@
11
11
  // no packages resolvable at all and fails if it throws, so an `import` here that survives
12
12
  // transpilation (anything that is not `import type`) turns that spec red rather than turning
13
13
  // up in a consumer's install. The subpath exists because `./server/storage`'s own index is a
14
- // barrel: it reaches `streamToken` → `auth/jwt` → jose, the whole SQLite file catalogue under
14
+ // barrel: it reaches `streamToken` → `auth/jwt` → jose, the whole SQLite file catalog under
15
15
  // `files/`, and a lazily-imported `sharp` — while an app that wants only the SHAPE of a file
16
16
  // token (apps/collections wanted exactly `FileTokenClaims`, a type TypeScript erases) was made
17
17
  // to install a one-time-password library to get it. Add types here freely; add a value import
@@ -26,7 +26,7 @@
26
26
  * FileCatalogue: a caller that holds an owner and an item id, whose derivatives live in their
27
27
  * own top-level namespaces. This module addresses a caller that holds a binary-server KEY and
28
28
  * derives sibling names from it, which is what makes "ask /meta for a name you computed" work
29
- * with no catalogue at all.
29
+ * with no catalog at all.
30
30
  *
31
31
  * Two consumers, two shapes, both correct:
32
32
  * · `fs*` — cursedbelt's own FileCatalogue / the `library` transcode strategy.
@@ -26,7 +26,7 @@
26
26
  * FileCatalogue: a caller that holds an owner and an item id, whose derivatives live in their
27
27
  * own top-level namespaces. This module addresses a caller that holds a binary-server KEY and
28
28
  * derives sibling names from it, which is what makes "ask /meta for a name you computed" work
29
- * with no catalogue at all.
29
+ * with no catalog at all.
30
30
  *
31
31
  * Two consumers, two shapes, both correct:
32
32
  * · `fs*` — cursedbelt's own FileCatalogue / the `library` transcode strategy.
@@ -64,7 +64,7 @@ export async function processVideo(opts) {
64
64
  await mkdir(jobDir, { recursive: true });
65
65
  try {
66
66
  report('processing', 1);
67
- // 1. Materialise the source locally for ffmpeg (use the backend's own path if local).
67
+ // 1. Materialize the source locally for ffmpeg (use the backend's own path if local).
68
68
  let srcPath = (await store.localPath?.(sourceKey)) ?? null;
69
69
  if (!srcPath) {
70
70
  const bytes = await store.get(sourceKey);
@@ -43,7 +43,7 @@ export interface SyncStatusReporter {
43
43
  * a claim about failures that did not happen. But "a peer authenticated here" is
44
44
  * something that happened to the database, and forgetting it produced the owner's
45
45
  * 2026-08-16 report — prod saying *"Awaiting first sync"* over a vault he had used
46
- * for weeks. The badge's own words are "your Mac has not dialled since this server
46
+ * for weeks. The badge's own words are "your Mac has not dialed since this server
47
47
  * last restarted", which is true and which nobody reads as anything but "this has
48
48
  * never synced". A receiver restarts on every deploy, and the dialer runs every 5
49
49
  * minutes only while the Mac is awake — so the window in which a perfectly converged
@@ -87,7 +87,7 @@ export declare function dosDateTime(when: Date | string | null | undefined): {
87
87
  * want `Notes/Summary.md` produce `Summary.md` and `Summary (2).md`, because a zip with two
88
88
  * identical names extracts as one file, silently losing the other. A duplicate FOLDER is written
89
89
  * once: its files already land in it. Names are compared the way the person's disk will compare
90
- * them — case-folded and Unicode-normalised, since macOS and Windows both treat `Todo.md` and
90
+ * them — case-folded and Unicode-normalized, since macOS and Windows both treat `Todo.md` and
91
91
  * `todo.md` as ONE file — so the later one is numbered rather than overwriting the first on unzip.
92
92
  *
93
93
  * A member that cannot be read (its `open()` returns `null` or throws, or the caller yielded it
@@ -181,7 +181,7 @@ function asStream(body) {
181
181
  * want `Notes/Summary.md` produce `Summary.md` and `Summary (2).md`, because a zip with two
182
182
  * identical names extracts as one file, silently losing the other. A duplicate FOLDER is written
183
183
  * once: its files already land in it. Names are compared the way the person's disk will compare
184
- * them — case-folded and Unicode-normalised, since macOS and Windows both treat `Todo.md` and
184
+ * them — case-folded and Unicode-normalized, since macOS and Windows both treat `Todo.md` and
185
185
  * `todo.md` as ONE file — so the later one is numbered rather than overwriting the first on unzip.
186
186
  *
187
187
  * A member that cannot be read (its `open()` returns `null` or throws, or the caller yielded it
package/docs/activity.md CHANGED
@@ -24,7 +24,7 @@ value of the column:
24
24
  | `error` | the app **failed** to do what it meant to do | whoever maintains the app |
25
25
 
26
26
  A refusal recorded as `error` makes the app look broken exactly when it worked, and buries its
27
- real failures under correct behaviour; a failure recorded as `denied` hides a bug as a policy.
27
+ real failures under correct behavior; a failure recorded as `denied` hides a bug as a policy.
28
28
  `roms` records BOTH halves of an upload for this reason: an accepted one puts a file on the
29
29
  owner's storage under his name, and a refused one — `denied` — is the row that answers "I tried
30
30
  to add that game weeks ago".
@@ -33,7 +33,7 @@ to add that game weeks ago".
33
33
 
34
34
  Identical to `cursedbelt-core/sharing`'s `ShareResource`, so a resource passes from one
35
35
  primitive to the other with no translation (`activityFromShareEvent`). `app` is on every row so
36
- a merge across apps stays labelled.
36
+ a merge across apps stays labeled.
37
37
 
38
38
  ## 4. Describing an event is the library's job
39
39
 
package/docs/retention.md CHANGED
@@ -17,7 +17,7 @@ Why by category rather than by table:
17
17
 
18
18
  - **Long-term data is protected by ABSENCE.** There is no category that can describe a note, a
19
19
  setting, a password, a save state, a playlist or a vault entry. "Should this table have a
20
- policy?" is answered by whether an honest category exists, not by somebody's judgement on
20
+ policy?" is answered by whether an honest category exists, not by somebody's judgment on
21
21
  the day — and a new table is safe by default, because it is not swept until it is declared.
22
22
  - **The number is the category's, not the app's.** Every deleting category defaults to the
23
23
  owner's two-week standard or shorter. A deleting category that wanted a longer default would
@@ -53,7 +53,7 @@ it is that the thing should not be accumulating.
53
53
 
54
54
  ## 6. A threshold is tuned against the CORPUS, never against the story
55
55
 
56
- `apps/music/scripts/backup.ts:172-190` records the failure: a refusal keyed on "a catalogue
56
+ `apps/music/scripts/backup.ts:172-190` records the failure: a refusal keyed on "a catalog
57
57
  with tracks and no organizing work must be a stage database" was written from the story, and
58
58
  the live corpus at cutover (5,391 tracks, 0 playlists, 0 tags) would have tripped it nightly on
59
59
  a healthy library. Before a retention or refusal number ships, measure it against what the app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursedbelt-server",
3
- "version": "4.48.0",
3
+ "version": "4.48.1",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "description": "The app-facing Bun/Hono server tier of the cursedbelt split — storage, sharing, activity, guard, sync. React-free; cursedbelt-core below it.",
@@ -141,7 +141,7 @@ const LEAVES = [
141
141
  * in 4.1.0 from five app-side copies, and it is the module that decides whether a ROM
142
142
  * byte, a photograph, a song and a scanned document are readable — so every app takes
143
143
  * it, and none of them may pay `sharp`/`otplib`/`kysely` for the privilege. It sits
144
- * in `src/server/storage/` beside the file-catalogue and transcode graph, which is
144
+ * in `src/server/storage/` beside the file-catalog and transcode graph, which is
145
145
  * exactly the barrel this must never be reached through: `./storage`'s index is heavy
146
146
  * and this module's whole point is that it costs `node:crypto` and nothing else.
147
147
  * Its batched `/internal/ops/meta` client (4.47.0) is a sibling that imports nothing.
@@ -103,7 +103,7 @@ describe('subpaths named in this repo resolve', () => {
103
103
  });
104
104
 
105
105
  it('knows what the manifest exports', () => {
106
- // If `exports` is ever read wrong, every offence below silently becomes one.
106
+ // If `exports` is ever read wrong, every offense below silently becomes one.
107
107
  expect(exported.has('')).toBe(true); // the "." root entry
108
108
  expect(exported.has('/master-lock')).toBe(true);
109
109
  expect(exported.has('/react')).toBe(false); // the react tier stayed in `cursedbelt` at the 2026-09-15 split