ReviewOS

also looking at this

pantry-pm/pantry

fix: hydrate durable registry snapshots before serving writes

#244
Merged chris wants to merge codex/wildloop-registry-rollout into main
11 files +202 -35
packages/registry/src/object-package-storage.test.tsmodified+2-1
Changes to packages/registry/src/object-package-storage.test.ts
@@ -1,3 +1,4 @@
1import { S3RequestError } from './storage/aws-client'
12import { describe, expect, test } from 'bun:test'
23import { ObjectPhpStorage } from './php'
34import { ObjectZigStorage } from './zig'
@@ -14,7 +15,7 @@ class MockS3 {
1415 async getObjectBuffer(bucket: string, key: string): Promise<Buffer> {
1516 const v = this.store.get(`${bucket}/${key}`)
1617 if (!v)
17 throw new Error('404 Not Found')
18 throw new S3RequestError('GET', 404, 'NoSuchKey')
1819 return v
1920 }
2021