Tasks
Source:
.kiro/specs/track-command/tasks.md
Dependency-ordered implementation checklist from the Kiro design.
Table of Contents
- Tasks — Track command
- Phase 1 — Skeleton
- Phase 2 — Happy path
- Phase 3 — Failure paths
- Phase 4 — Docs
Tasks — Track command
Dependency-ordered implementation checklist from the Kiro design.
Phase 1 — Skeleton¶
-
- Add
src/carriers/types.tswithTrackingEventandCarrierAdapter
- Add
-
- Wire
src/cli.tsargument parsing fortrack --id
- Wire
-
- Add offline fixture
tests/fixtures/DEMO-1001.json
- Add offline fixture
Phase 2 — Happy path¶
-
- Implement mock carrier adapter that loads the fixture
-
- Implement
formatTimeline()with plain-language next actions
- Implement
-
- Unit test happy path (no network)
Phase 3 — Failure paths¶
-
- Unknown id → exit
1
- Unknown id → exit
-
- Adapter throw → exit
2
- Adapter throw → exit
-
- Unit test one failure path; confirm logs redact tokens/addresses
Phase 4 — Docs¶
-
- Document
track --idinREADME.md
- Document
-
- Run
npm testandnpm run typecheck
- Run