29 lines
1.5 KiB
Markdown
29 lines
1.5 KiB
Markdown
# Tasks: enterprise-media
|
|
|
|
- [x] Read upstream package + enterprise audit.
|
|
- [x] Add `media` to `data` plugin in `scripts/folder-reorg/assignment.yml`.
|
|
- [x] Scaffold `packages/foundation/data/media/` with `package.json`,
|
|
`tsconfig.lib.json`, `vite.config.ts`, `vitest.config.ts`, README.
|
|
- [x] Author types module (`types/media.types.ts` + Zod schemas + `.md`).
|
|
- [x] Author errors module (`MEDIA_CODES`, `MEDIA_ERROR_METADATA`,
|
|
`MediaError`, `asMediaError` + tests + `.md`).
|
|
- [x] Author signatures module (`BUILTIN_SIGNATURES`,
|
|
`SignatureRegistry`, `defaultSignatureRegistry` + tests + `.md`).
|
|
- [x] Author observability module (`createMediaObservability` + tests +
|
|
`.md`).
|
|
- [x] Author detection module (`detectMediaType`, `detectSignature`,
|
|
`detectMediaTypeFromName`, `inferMimeFromSignature`,
|
|
`defaultMimeForType` + tests + `.md`).
|
|
- [x] Author metadata module (`getMetadata`, `getMetadataAsync` + tests
|
|
+ `.md`).
|
|
- [x] Author validation module (`validateMedia`, `validateMediaAsync`,
|
|
`assertValidMedia` + tests + `.md`).
|
|
- [x] Author root barrel + barrel test.
|
|
- [x] Run `bunx turbo lint typecheck test build --filter=@suaveplan/media`.
|
|
- [x] Run `bunx turbo test:coverage --filter=@suaveplan/media`.
|
|
- [x] Run `bun scripts/folder-reorg/generate-manifest.ts`.
|
|
- [x] Fold spec delta into `openspec/specs/media/spec.md`.
|
|
- [x] Archive change to `openspec/archive/2026-05-25-enterprise-media/`.
|
|
- [x] Flip `@suaveplan/media` row in `STATUS.md` to `✅`.
|
|
- [x] Commit on `feat/migrate-media` branch.
|