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,29 @@
# Tasks: drive-transport-https-port
> Blocked on: `drive-mesh-port`.
## 1. Scaffold
- [ ] 1.1 `packages/drive/drive-transport-https/` with `package.json` (`@suaveplan/drive-transport-https@0.0.0`), `tsconfig.json`, `vitest.config.ts`, `README.md`.
- [ ] 1.2 Workspace deps: `@suaveplan/drive-mesh` (interface), `@suaveplan/error`, `@suaveplan/types`, `@suaveplan/retry`, `@opentelemetry/api`, `zod`.
## 2. Transport impl
- [ ] 2.1 `src/transport.ts` — `httpsTransport(options)` factory, `requestChunk` returns `AsyncIterable<Uint8Array>` from the fetch response body.
- [ ] 2.2 `src/range.ts` — Range header construction for partial chunk reads.
- [ ] 2.3 `src/auth.ts` — Bearer token injection.
- [ ] 2.4 `src/errors.ts` — HTTP-status → `MeshError` code mapping.
## 3. Spec
- [ ] 3.1 `openspec/specs/drive-transport-https/spec.md` — `TRANSPORT-HTTPS-01` … `-04` with `**Verified by:**` lines.
## 4. Conformance tests
- [ ] 4.1 `src/transport.spec-conformance.test.ts` — chunk fetch round-trip with injected fetch, Range request, error mapping, manifest fetch (`TRANSPORT-HTTPS-01` … `-04`).
## 5. Verify
- [ ] 5.1 `bunx turbo lint typecheck test --filter=@suaveplan/drive-transport-https` green.
- [ ] 5.2 `bunx turbo test:coverage --filter=@suaveplan/drive-transport-https` 100/100/100/100.
- [ ] 5.3 `bun scripts/openspec-conformance.ts @suaveplan/drive-transport-https` PASS.