Commit Graph

9 Commits

Author SHA1 Message Date
87ff5f3108 Tick off Phase 4 ApiClient TODO 2026-05-11 01:02:13 -07:00
78fdabe54a Phase 3a green: implement auth.unwrapAuth
The implementation is exactly the decryption chain documented in the
test file: deriveKEK -> decryptBox(masterKey) -> decryptBox(secretKey)
-> decryptSealed(token) -> toBase64URL. Errors from the underlying
crypto primitives propagate; the only added validation is the up-front
check that the response actually contains both keyAttributes and
encryptedToken (caller bug if not).

Also re-exports the auth/unwrap and auth/types public surface from
src/index.ts.

All 38 tests pass; make check and make docker are green.
2026-05-11 00:59:43 -07:00
52c2fa844c Tick off Phase 2 crypto primitives TODO 2026-05-09 12:45:53 -07:00
0d504294b5 Pre-commit hook runs lint+fmt-check, not full check (TDD)
Tests are deliberately excluded from the pre-commit hook so that the
TDD red-phase commit (failing tests landing before implementation) can
land on a feature branch. CI still runs full make check via docker build
so a red branch cannot reach main.
2026-05-09 21:39:32 +02:00
3ccb00d6c8 Mandate TDD in README development workflow
All changes go on a feature branch; the first commit on the branch is the
failing test suite for the change; the branch can only merge to main when
make check is green. Tests are the canonical API documentation and must be
commented thoroughly so a reader can learn the library from them.
2026-05-09 21:37:33 +02:00
42cc1f4a77 Tick off Phase 1 scaffolding TODO items in README 2026-05-09 21:32:32 +02:00
ed8b3a8fff Reflow README to prettier 80-column prose wrap 2026-05-09 21:29:08 +02:00
64108536fb Expand README: desktop-client motivation and API reference
Reframes the project as the protocol foundation for a future Electron-based
Ente desktop client (the existing official clients are unsatisfactory).
Adds an API reference section with TypeScript declarations for every
exported name across crypto, auth, model, api, session, and Client modules.
Adds Phase 10 desktop-client TODO items so a future agent can pick up the
plan.
2026-05-09 21:25:05 +02:00
0006af4f70 Initial commit: README with project spec and implementation plan 2026-05-09 18:57:58 +02:00