Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# OpenSpec Change: network-plugin-content-delivery-packer
- **Change ID**: network-plugin-content-delivery-packer
- **Package**: `@suaveplan/network-plugin-content-delivery` (extension)
- **Status**: PROPOSED
- **Type**: extension
- **Date**: 2026-05-05
## Why
The core `network-plugin-content-delivery` change shipped `ChunkManifest` as a wire-stable type but did not include the `PackerIntegration` subsystem that produces / consumes it. That work was deferred per the parent proposal's `## Deferred to follow-up changes` block because it requires direct coupling to `@suaveplan/packer` (chunk packing pipeline) and adds `cd:manifest` broadcast semantics on the bus.
This change adds `PackerIntegration` to the existing package without breaking the core surface.
## What changes
- **ADDED**: `PackerIntegration` class — consumes `@suaveplan/packer` output, builds a `ChunkManifest`, and broadcasts `cd:manifest` on the bus.
- **ADDED**: `cd:manifest` event topic (payload: `ChunkManifest`).
- **ADDED**: `ContentDeliveryPlugin.packer` getter wires the new subsystem onto the plugin facade.
## Verification approach
- `src/packer/packer-integration.spec-conformance.test.ts` — pins manifest construction from a packer output, bus broadcast, hash-algorithm propagation.
## Migration impact
None — additive only.

View File

@@ -0,0 +1,20 @@
# Tasks — network-plugin-content-delivery-packer
> Blocked on: `network-plugin-content-delivery` (core), `@suaveplan/packer`.
## 1. Implementation
- [x] 1.1 `src/packer/packer-integration.ts` — `PackerIntegration`.
- [x] 1.2 Consume `@suaveplan/packer` output → `ChunkManifest`.
- [x] 1.3 Broadcast `cd:manifest` on the bus.
- [x] 1.4 Wire `ContentDeliveryPlugin.packer` getter.
## 2. Tests
- [x] 2.1 `src/packer/packer-integration.spec-conformance.test.ts` — manifest, bus broadcast, hash propagation.
## 3. Verify
- [x] 3.1 `bunx turbo lint typecheck test --filter=@suaveplan/network-plugin-content-delivery` green.
- [x] 3.2 `bunx turbo test:coverage --filter=@suaveplan/network-plugin-content-delivery` 100/100/100/100.
- [x] 3.3 `bun scripts/openspec-conformance.ts @suaveplan/network-plugin-content-delivery` PASS (build green; CLAUDE-Rule-11 runner imports verified).