cursedbelt-server 4.48.0 โ 4.49.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.
- package/dist/server/activity/store.d.ts +1 -1
- package/dist/server/analytics/injectedScripts.d.ts +1 -1
- package/dist/server/analytics/injectedScripts.js +1 -1
- package/dist/server/analytics/webAnalytics.d.ts +1 -1
- package/dist/server/analytics/webAnalytics.js +1 -1
- package/dist/server/auth/loginThrottleDurable.d.ts +3 -3
- package/dist/server/auth/loginThrottleDurable.js +3 -3
- package/dist/server/auth/passwordCost.js +1 -1
- package/dist/server/ctgrChunkDurable.d.ts +1 -1
- package/dist/server/ctgrChunkDurable.js +1 -1
- package/dist/server/d1/backup.d.ts +1 -1
- package/dist/server/d1/backup.js +1 -1
- package/dist/server/d1/http.d.ts +2 -2
- package/dist/server/d1/http.js +2 -2
- package/dist/server/d1/invocation.js +1 -1
- package/dist/server/d1/limits.d.ts +1 -1
- package/dist/server/d1/limits.js +1 -1
- package/dist/server/d1/pullD1.d.ts +4 -1
- package/dist/server/d1/pullD1.js +5 -2
- package/dist/server/d1/scheduling.d.ts +1 -1
- package/dist/server/d1/scheduling.js +1 -1
- package/dist/server/d1/types.d.ts +1 -1
- package/dist/server/d1/types.js +1 -1
- package/dist/server/d1/values.d.ts +1 -1
- package/dist/server/d1/values.js +1 -1
- package/dist/server/dropzone/index.d.ts +1 -0
- package/dist/server/dropzone/index.js +1 -0
- package/dist/server/dropzone/report.d.ts +188 -0
- package/dist/server/dropzone/report.js +430 -0
- package/dist/server/dropzone/scan.d.ts +22 -3
- package/dist/server/dropzone/scan.js +46 -1
- package/dist/server/engagement/index.d.ts +1 -1
- package/dist/server/engagement/index.js +1 -1
- package/dist/server/guard/argon2Binding.js +1 -1
- package/dist/server/guard/kdfWorkerEntry.js +2 -2
- package/dist/server/incidents/index.d.ts +1 -1
- package/dist/server/incidents/index.js +1 -1
- package/dist/server/incidents/store.d.ts +1 -1
- package/dist/server/incidents/store.js +1 -1
- package/dist/server/jobs/timeout.d.ts +1 -1
- package/dist/server/jobs/timeout.js +1 -1
- package/dist/server/master-lock/accountsPage.d.ts +1 -1
- package/dist/server/master-lock/accountsPage.js +2 -2
- package/dist/server/master-lock/guard.js +1 -1
- package/dist/server/master-lock/lockPage.d.ts +1 -1
- package/dist/server/master-lock/lockPage.js +2 -2
- package/dist/server/master-lock/masterLock.d.ts +2 -2
- package/dist/server/master-lock/masterLock.js +2 -2
- package/dist/server/metrics/normalizeRoute.js +1 -1
- package/dist/server/metrics/telemetrySink.d.ts +2 -2
- package/dist/server/metrics/telemetrySink.js +1 -1
- package/dist/server/middleware/zValidator.js +2 -2
- package/dist/server/notifications/hub.js +1 -1
- package/dist/server/requestLog/requestMetrics.d.ts +2 -2
- package/dist/server/requestLog/requestMetrics.js +2 -2
- package/dist/server/retention/archive.d.ts +1 -1
- package/dist/server/retention/archive.js +2 -2
- package/dist/server/satellite/config.js +2 -2
- package/dist/server/satellite/door.d.ts +1 -1
- package/dist/server/sharing/contract.d.ts +1 -1
- package/dist/server/storage/binaryStore.d.ts +1 -1
- package/dist/server/storage/binaryStore.js +3 -3
- package/dist/server/storage/derivatives.d.ts +2 -2
- package/dist/server/storage/derivatives.js +2 -2
- package/dist/server/storage/files/adapter.d.ts +2 -2
- package/dist/server/storage/files/adapter.js +10 -10
- package/dist/server/storage/files/catalogue.d.ts +1 -1
- package/dist/server/storage/files/catalogue.js +4 -4
- package/dist/server/storage/files/chunkedUpload.d.ts +2 -2
- package/dist/server/storage/files/chunkedUpload.js +1 -1
- package/dist/server/storage/files/fileRoutes.d.ts +1 -1
- package/dist/server/storage/files/fileRoutes.js +4 -4
- package/dist/server/storage/files/mimeByExt.js +1 -1
- package/dist/server/storage/files/stack.d.ts +2 -2
- package/dist/server/storage/files/types.d.ts +4 -4
- package/dist/server/storage/files/types.js +1 -1
- package/dist/server/storage/index.js +1 -1
- package/dist/server/storage/objectStoreMediaStore.js +1 -1
- package/dist/server/storage/transcodeJobs.js +5 -5
- package/dist/server/storage/types.d.ts +1 -1
- package/dist/server/storage/types.js +1 -1
- package/dist/server/storage/videoDerivativeKeys.d.ts +1 -1
- package/dist/server/storage/videoDerivativeKeys.js +1 -1
- package/dist/server/storage/videoProcessor.js +1 -1
- package/dist/server/sync/status.d.ts +1 -1
- package/dist/server/zipStream.d.ts +1 -1
- package/dist/server/zipStream.js +1 -1
- package/docs/activity.md +2 -2
- package/docs/retention.md +2 -2
- package/package.json +1 -1
- package/src/leafSubpathsImportNothing.spec.ts +1 -1
- package/src/namedSubpathsResolve.spec.ts +1 -1
- package/src/noTimerDialsAPeer.spec.ts +1 -1
- package/src/nodeBuiltinsAreProbedByCalling.spec.ts +1 -1
- package/src/publishShape.spec.ts +1 -1
- package/src/server/activity/store.ts +1 -1
- package/src/server/analytics/injectedScripts.spec.ts +1 -1
- package/src/server/analytics/injectedScripts.ts +1 -1
- package/src/server/analytics/webAnalytics.ts +1 -1
- package/src/server/auth/loginThrottleDurable.ts +3 -3
- package/src/server/auth/passwordCost.ts +1 -1
- package/src/server/bench/cpuBudget.spec.ts +1 -1
- package/src/server/bench/tail.spec.ts +1 -1
- package/src/server/ctgrChunkDurable.ts +1 -1
- package/src/server/d1/backup.spec.ts +1 -1
- package/src/server/d1/backup.ts +1 -1
- package/src/server/d1/http.ts +2 -2
- package/src/server/d1/invocation.spec.ts +1 -1
- package/src/server/d1/invocation.ts +1 -1
- package/src/server/d1/limits.ts +1 -1
- package/src/server/d1/pullD1.spec.ts +9 -1
- package/src/server/d1/pullD1.ts +5 -2
- package/src/server/d1/scheduling.ts +1 -1
- package/src/server/d1/types.ts +1 -1
- package/src/server/d1/values.ts +1 -1
- package/src/server/dropzone/index.ts +8 -0
- package/src/server/dropzone/report.spec.ts +275 -0
- package/src/server/dropzone/report.ts +568 -0
- package/src/server/dropzone/scan.spec.ts +2 -2
- package/src/server/dropzone/scan.ts +68 -5
- package/src/server/engagement/engagement.spec.ts +1 -1
- package/src/server/engagement/index.ts +1 -1
- package/src/server/google-oauth/googleOAuth.spec.ts +1 -1
- package/src/server/guard/argon2Binding.ts +1 -1
- package/src/server/guard/kdfWorkerEntry.ts +2 -2
- package/src/server/incidents/index.ts +1 -1
- package/src/server/incidents/store.ts +1 -1
- package/src/server/jobs/timeout.ts +1 -1
- package/src/server/master-lock/accountsPage.spec.ts +2 -2
- package/src/server/master-lock/accountsPage.ts +2 -2
- package/src/server/master-lock/beaconNeverReachesTheWall.spec.ts +2 -2
- package/src/server/master-lock/guard.spec.ts +2 -2
- package/src/server/master-lock/guard.ts +1 -1
- package/src/server/master-lock/lockPage.spec.ts +1 -1
- package/src/server/master-lock/lockPage.ts +2 -2
- package/src/server/master-lock/masterLock.spec.ts +1 -1
- package/src/server/master-lock/masterLock.ts +2 -2
- package/src/server/master-lock/sessions.spec.ts +1 -1
- package/src/server/metrics/normalizeRoute.ts +1 -1
- package/src/server/metrics/telemetrySink.ts +3 -3
- package/src/server/middleware/bodyLimit.spec.ts +1 -1
- package/src/server/middleware/zValidator.spec.ts +3 -3
- package/src/server/middleware/zValidator.ts +3 -3
- package/src/server/notifications/hub.ts +1 -1
- package/src/server/requestLog/requestMetrics.spec.ts +2 -2
- package/src/server/requestLog/requestMetrics.ts +3 -3
- package/src/server/retention/archive.spec.ts +2 -2
- package/src/server/retention/archive.ts +2 -2
- package/src/server/satellite/config.ts +2 -2
- package/src/server/satellite/door.ts +1 -1
- package/src/server/satellite/satellite.spec.ts +1 -1
- package/src/server/sharing/contract.ts +1 -1
- package/src/server/storage/binaryServerProcessing.spec.ts +1 -1
- package/src/server/storage/binaryServerProcessing.ts +4 -4
- package/src/server/storage/binaryStore.spec.ts +6 -6
- package/src/server/storage/binaryStore.ts +4 -4
- package/src/server/storage/chunked.integration.spec.ts +2 -2
- package/src/server/storage/derivatives.ts +2 -2
- package/src/server/storage/fileUploadClient.integration.spec.ts +1 -1
- package/src/server/storage/files/adapter.photo.spec.ts +2 -2
- package/src/server/storage/files/adapter.spec.ts +3 -3
- package/src/server/storage/files/adapter.ts +10 -10
- package/src/server/storage/files/catalogue.spec.ts +1 -1
- package/src/server/storage/files/catalogue.ts +4 -4
- package/src/server/storage/files/chunkedUpload.spec.ts +5 -5
- package/src/server/storage/files/chunkedUpload.ts +3 -3
- package/src/server/storage/files/fileRoutes.spec.ts +3 -3
- package/src/server/storage/files/fileRoutes.ts +5 -5
- package/src/server/storage/files/mimeByExt.ts +1 -1
- package/src/server/storage/files/stack.ts +3 -3
- package/src/server/storage/files/types.ts +6 -6
- package/src/server/storage/index.ts +1 -1
- package/src/server/storage/objectStoreMediaStore.ts +1 -1
- package/src/server/storage/sources.ts +1 -1
- package/src/server/storage/transcodeJobs.ts +5 -5
- package/src/server/storage/types.ts +2 -2
- package/src/server/storage/uploadSession.spec.ts +1 -1
- package/src/server/storage/videoDerivativeKeys.spec.ts +3 -3
- package/src/server/storage/videoDerivativeKeys.ts +1 -1
- package/src/server/storage/videoProcessor.ts +1 -1
- package/src/server/sync/status.ts +1 -1
- package/src/server/sync/timer.spec.ts +1 -1
- package/src/server/worker-argon2/index.spec.ts +1 -1
- package/src/server/zipStream.spec.ts +2 -2
- package/src/server/zipStream.ts +1 -1
- package/src/shippedFilesAreTracked.spec.ts +2 -2
|
@@ -46,12 +46,12 @@ describe('video derivative keys', () => {
|
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
describe('isDerivativeKey', () => {
|
|
49
|
-
it('
|
|
49
|
+
it('recognizes every suffix it publishes', () => {
|
|
50
50
|
for (const suffix of DERIVATIVE_SUFFIXES)
|
|
51
51
|
expect(isDerivativeKey(`${key}${suffix}`)).toBe(true);
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
it('๐ด
|
|
54
|
+
it('๐ด recognizes objects INSIDE an HLS tree, which carry no derivative suffix', () => {
|
|
55
55
|
// Miss these and the sweep treats a segment as a video needing a remux, then derives
|
|
56
56
|
// from that, forever. None of them ends in a name from DERIVATIVE_SUFFIXES.
|
|
57
57
|
expect(isDerivativeKey(`${key}.hls/master.m3u8`)).toBe(true);
|
|
@@ -102,7 +102,7 @@ describe("the encoder generation in a video derivative's name", () => {
|
|
|
102
102
|
expect(hlsMasterKeyFor("v/clip.mov", 2)).toBe("v/clip.mov.g2.hls/master.m3u8");
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
it("๐ด a tagged derivative is still
|
|
105
|
+
it("๐ด a tagged derivative is still recognized as a derivative", () => {
|
|
106
106
|
// Miss this and a sweep treats clip.g2.web.mp4 as a source and derives from it for ever.
|
|
107
107
|
expect(isDerivativeKey("v/clip.mov.g2.web.mp4")).toBe(true);
|
|
108
108
|
expect(isDerivativeKey("v/clip.mov.g2.hls/720/000.ts")).toBe(true);
|
|
@@ -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
|
|
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.
|
|
@@ -133,7 +133,7 @@ export async function processVideo(opts: ProcessOptions): Promise<ProcessResult>
|
|
|
133
133
|
try {
|
|
134
134
|
report('processing', 1);
|
|
135
135
|
|
|
136
|
-
// 1.
|
|
136
|
+
// 1. Materialize the source locally for ffmpeg (use the backend's own path if local).
|
|
137
137
|
let srcPath = (await store.localPath?.(sourceKey)) ?? null;
|
|
138
138
|
if (!srcPath) {
|
|
139
139
|
const bytes = await store.get(sourceKey);
|
|
@@ -59,7 +59,7 @@ export interface SyncStatusReporter {
|
|
|
59
59
|
* a claim about failures that did not happen. But "a peer authenticated here" is
|
|
60
60
|
* something that happened to the database, and forgetting it produced the owner's
|
|
61
61
|
* 2026-08-16 report โ prod saying *"Awaiting first sync"* over a vault he had used
|
|
62
|
-
* for weeks. The badge's own words are "your Mac has not
|
|
62
|
+
* for weeks. The badge's own words are "your Mac has not dialed since this server
|
|
63
63
|
* last restarted", which is true and which nobody reads as anything but "this has
|
|
64
64
|
* never synced". A receiver restarts on every deploy, and the dialer runs every 5
|
|
65
65
|
* minutes only while the Mac is awake โ so the window in which a perfectly converged
|
|
@@ -91,7 +91,7 @@ describe("sync timer", () => {
|
|
|
91
91
|
});
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* ๐ด The check this whole change exists for, measured as
|
|
94
|
+
* ๐ด The check this whole change exists for, measured as BEHAVIOR rather than
|
|
95
95
|
* shape. Whatever mechanism a future edit reaches for โ a `setInterval`, a
|
|
96
96
|
* re-added `intervalMs`, an injected `checkRequest` dep, a recursive `schedule`
|
|
97
97
|
* โ it has to book a callback through `setTimer` to fire, and this asserts that
|
|
@@ -113,7 +113,7 @@ describe("the Bun.password shim", () => {
|
|
|
113
113
|
expect(await Bun.password.verify(PASSWORD, hash)).toBe(true);
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
it("
|
|
116
|
+
it("honors the STORED cost parameters, not its own defaults", async () => {
|
|
117
117
|
const cheap = await Bun.password.hash(PASSWORD, { algorithm: "argon2id", memoryCost: 4096, timeCost: 1 });
|
|
118
118
|
expect(parsePhc(cheap)?.m).toBe(4096);
|
|
119
119
|
expect(await workerPassword.verify(PASSWORD, cheap)).toBe(true);
|
|
@@ -13,7 +13,7 @@ import { Crc32, dosDateTime, safeEntryName, type ZipEntry, zipStream } from './z
|
|
|
13
13
|
|
|
14
14
|
const bytesOf = (text: string): Uint8Array => new TextEncoder().encode(text);
|
|
15
15
|
|
|
16
|
-
/** The report entry a skipped member lands in โ
|
|
16
|
+
/** The report entry a skipped member lands in โ spelled out, since a person reads it by this name. */
|
|
17
17
|
const MISSING_FILES_NAME = "MISSING FILES.txt";
|
|
18
18
|
|
|
19
19
|
const entryFrom = (name: string, body: string): ZipEntry => ({
|
|
@@ -160,7 +160,7 @@ describe("zipStream", () => {
|
|
|
160
160
|
expect(await unzipRead(archive, "f/todo (2).md")).toBe("lower");
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
test("๐ด one name
|
|
163
|
+
test("๐ด one name spelled with a composed and a decomposed accent is ONE name to APFS โ numbered too", async () => {
|
|
164
164
|
const composed = "Caf\u00e9.txt";
|
|
165
165
|
const decomposed = "Cafe\u0301.txt";
|
|
166
166
|
expect(composed).not.toBe(decomposed);
|
package/src/server/zipStream.ts
CHANGED
|
@@ -227,7 +227,7 @@ function asStream(body: ReadableStream<Uint8Array> | Uint8Array): ReadableStream
|
|
|
227
227
|
* want `Notes/Summary.md` produce `Summary.md` and `Summary (2).md`, because a zip with two
|
|
228
228
|
* identical names extracts as one file, silently losing the other. A duplicate FOLDER is written
|
|
229
229
|
* once: its files already land in it. Names are compared the way the person's disk will compare
|
|
230
|
-
* them โ case-folded and Unicode-
|
|
230
|
+
* them โ case-folded and Unicode-normalized, since macOS and Windows both treat `Todo.md` and
|
|
231
231
|
* `todo.md` as ONE file โ so the later one is numbered rather than overwriting the first on unzip.
|
|
232
232
|
*
|
|
233
233
|
* A member that cannot be read (its `open()` returns `null` or throws, or the caller yielded it
|
|
@@ -53,8 +53,8 @@ describe('every file inside the published surface is tracked', () => {
|
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
test('no untracked file sits inside a directory `files` ships', async () => {
|
|
56
|
-
// --others = untracked; --exclude-standard
|
|
57
|
-
// ignored paths (.agent.noindex, node_modules) are not
|
|
56
|
+
// --others = untracked; --exclude-standard honors .gitignore, so deliberately
|
|
57
|
+
// ignored paths (.agent.noindex, node_modules) are not offenses.
|
|
58
58
|
const { ok, out } = await git('ls-files', '--others', '--exclude-standard', '--', ...shippedDirs());
|
|
59
59
|
expect(ok, 'git ls-files failed').toBe(true);
|
|
60
60
|
const untracked = out === '' ? [] : out.split('\n');
|