Summary
When logged in to the noxaudit platform, the CLI automatically reports audit results. The local workflow is unchanged — reports still write to local files. The platform is an additional destination.
Implementation
- After
run_audit completes, POST to POST /api/audits if logged in
- Local queue for offline resilience:
~/.noxaudit/pending-sync.jsonl
noxaudit sync command to manually flush queued results
Offline-first behavior
- If the platform API is unreachable, the CLI works normally
- Results queue locally in
~/.noxaudit/pending-sync.jsonl
- Next successful
noxaudit run (or explicit noxaudit sync) flushes the queue
Work
Depends on
Does NOT depend on
- atriumn/noxaudit-platform#24 (Stripe billing) — reporting works regardless of payment status
Note: This issue was split from the original #126. Authentication (login/logout/whoami/credential management) is now handled separately in #146 for better separation of concerns.
Summary
When logged in to the noxaudit platform, the CLI automatically reports audit results. The local workflow is unchanged — reports still write to local files. The platform is an additional destination.
Implementation
run_auditcompletes, POST toPOST /api/auditsif logged in~/.noxaudit/pending-sync.jsonlnoxaudit synccommand to manually flush queued resultsOffline-first behavior
~/.noxaudit/pending-sync.jsonlnoxaudit run(or explicitnoxaudit sync) flushes the queueWork
run_auditcompletes, POST to platform API if logged innoxaudit synccommand to manually flush queued resultsDepends on
Does NOT depend on
Note: This issue was split from the original #126. Authentication (login/logout/whoami/credential management) is now handled separately in #146 for better separation of concerns.