AKC Viewer¶
AKC includes a local-first, read-only viewer exposed through akc view.
Current subcommands:
tuiwebexport
What the viewer reads¶
The viewer assembles a snapshot from local scoped data only.
Primary sources:
- plan state under
.akc/plan/... - scoped SQLite-backed plan state and memory where available
<outputs_root>/<tenant>/<repo>/manifest.json- manifest-referenced evidence files
- optional knowledge and operator-summary artifacts already present on disk
Relevant code:
src/akc/cli/view.pysrc/akc/viewer/snapshot.pysrc/akc/viewer/tui.pysrc/akc/viewer/web.pysrc/akc/viewer/export.pysrc/akc/viewer/control_panels.py
Trust boundary¶
The viewer does not execute compile, runtime, or tool actions.
It is a read-only inspection surface:
- no patch apply
- no command execution
- no secret access on behalf of artifacts
- no dynamic module loading from artifact content
See viewer-trust-boundary.md for the full boundary statement.
CLI usage¶
All modes require:
--tenant-id--repo-id--outputs-root
Optional shared flag:
--plan-base-dir
Base command shape:
akc view --tenant-id TENANT --repo-id REPO --outputs-root /path/to/out <subcommand>
TUI¶
Interactive terminal UI:
akc view --tenant-id TENANT --repo-id REPO --outputs-root /path/to/out tui
Behavior notes:
- uses curses
- falls back to plain-text summary when the terminal cannot support the TUI
Static web bundle¶
Generate a local static bundle:
akc view --tenant-id TENANT --repo-id REPO --outputs-root /path/to/out web --out-dir ./viewer
Optional local-only serving:
akc view --tenant-id TENANT --repo-id REPO --outputs-root /path/to/out web --out-dir ./viewer --serve
--serve binds to 127.0.0.1 only and is a developer convenience for browsing the generated bundle.
Export bundle¶
Export a portable evidence bundle:
akc view --tenant-id TENANT --repo-id REPO --outputs-root /path/to/out export --out-dir ./evidence
Notes:
--include-all-evidenceis on by default- a
.zipis created by default - use
--no-zipto skip zip creation
Output layout¶
The generated web and export bundles include snapshot data plus copied evidence files under the bundle root.
Typical outputs include:
data/plan.jsondata/manifest.jsonwhen present- copied evidence files under
files/
The exact contents depend on what exists under the scoped outputs tree.
When to use each mode¶
tuifor quick local inspection in a terminalwebfor richer local browsing and sharing a generated bundle directoryexportfor preserving a portable evidence package