1.1 KiB
1.1 KiB
Tasks — network-plugin-content-delivery-store
Blocked on:
network-plugin-content-delivery(core),@suaveplan/drive.
1. Implementation
- 1.1
src/store/chunk-store.ts—ChunkStoreover@suaveplan/drive(pluggableChunkStoreAdapter). - 1.2 LRU + TTL eviction with
maxBytesandmaxAgeMsbudgets. - 1.3 Bus events:
cd:chunk-stored,cd:chunk-evicted. - 1.4 Wire
ContentDeliveryPlugin.storegetter through the facade. - 1.5 Add
ChunkStoreConfigtoContentDeliveryPluginConfigas an optional field.
2. Tests
- 2.1
src/store/chunk-store.spec-conformance.test.ts— put/get, TTL, LRU. - 2.2
src/store/chunk-store.eviction.spec-conformance.test.ts— eviction order under mixed traffic.
3. Verify
- 3.1
bunx turbo lint typecheck test --filter=@suaveplan/network-plugin-content-deliverygreen. - 3.2
bunx turbo test:coverage --filter=@suaveplan/network-plugin-content-delivery100/100/100/100. - 3.3
bun scripts/openspec-conformance.ts @suaveplan/network-plugin-content-deliveryPASS (build green; CLAUDE-Rule-11 runner imports verified).