You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(content-store): rename storage with filesystem and Azure layers #75
packages/storage is the platform's object store for a patch's bytes. "Storage" is reserved for the later per-patch file primitive, so the package is renamed content-store and its two drivers become Effect layers chosen by wiring, not by an operator's env var.
Do
packages/content-store: a ContentStore service (put, get, delete by key, streaming or bytes as today's consumer needs) with two layers — filesystem (dev/tests) and Azure blob — each with its own Config slice (Redacted credentials). PATCHY_STORAGE_DRIVER is deleted: apps/server provides the Azure layer when its config is present, the filesystem layer otherwise.
Failures as Schema.TaggedError (ObjectNotFound, StoreUnavailable…) with the driver error as cause.
Interim: packages/db's upload contract keeps calling the store through a thin runPromise seam until the patches ticket.
Tests ported to @effect/vitest; the filesystem layer tested against a Scoped temp dir; the Azure layer's error mapping tested by an alternate failing layer.
Delete packages/storage; packages/content-store/CONTEXT.md (content store, object key); promote the language-service warnings to error.
Done when
@patchy/storage no longer exists; the server runs on the filesystem layer under pnpm dev; driver selection is wiring in apps/server/src/start.ts.
Activity
feat(content-store): rename storage with filesystem and Azure layers
feat(content-store): rename storage with filesystem and Azure layers (#…