feat(storage): Blossom Phase 2 — BUD-12 delete/list primitives [LOCAL] (#30)

The management primitives, self-contained + unit-tested. Not yet wired into the
S3-shaped orphan-GC / delete-flow (that reconcile system assumes bucket/key
semantics — its own browser-tested increment, same pattern as the upload).

- Vendor entry: export createDeleteAuth (+ rebuilt bundle, still ~27KB).
- blossomService.deleteFile({ server, sha256, signer }) — BUD-12 DELETE /<sha256>
  with a signed kind-24242 delete auth (BUD-11).
- blossomService.listFiles({ server, pubkey, signer }) — BUD-12 GET /list/<pubkey>,
  optional list auth.

Tests: blossom-service 9/9 (added delete/list guards + happy paths). Lint + build
clean.

REMAINING Phase 2: wire deleteFile into video-delete cleanup (resolve
server+sha256 from the blossom storagePointer), orphan-GC parity, and the
kind-10063 discovery UI (import/publish server list — needs relay fetch/publish
plumbing).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.8 committed 2026-07-09 16:36:31 -04:00
1 parent c5e8c7f9f1
commit 5935702e75
4 files changed
+89 -1

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ export {
createUploadAuth,
createMirrorAuth,
createListAuth,
createDeleteAuth,
encodeAuthorizationHeader,
} from "blossom-client-sdk/auth";
export {