Tasks

Source: .kiro/specs/track-command/tasks.md

Dependency-ordered implementation checklist from the Kiro design.

Table of Contents


Tasks — Track command

Dependency-ordered implementation checklist from the Kiro design.

Phase 1 — Skeleton

    1. Add src/carriers/types.ts with TrackingEvent and CarrierAdapter
    1. Wire src/cli.ts argument parsing for track --id
    1. Add offline fixture tests/fixtures/DEMO-1001.json

Phase 2 — Happy path

    1. Implement mock carrier adapter that loads the fixture
    1. Implement formatTimeline() with plain-language next actions
    1. Unit test happy path (no network)

Phase 3 — Failure paths

    1. Unknown id → exit 1
    1. Adapter throw → exit 2
    1. Unit test one failure path; confirm logs redact tokens/addresses

Phase 4 — Docs

    1. Document track --id in README.md
    1. Run npm test and npm run typecheck