Documentation
¶
Overview ¶
Package generate hosts the go:generate directives for the cli module. Run `go generate ./...` from the cli/ root to regenerate derived code.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
a-novel
command
Command a-novel is the A-Novel storyverse build tool: a single, branded CLI for local development.
|
Command a-novel is the A-Novel storyverse build tool: a single, branded CLI for local development. |
|
internal
|
|
|
build
Package build executes a detected target as a subprocess and reports a structured pass/fail Result with captured output — the raw material the UI turns into a build report.
|
Package build executes a detected target as a subprocess and reports a structured pass/fail Result with captured output — the raw material the UI turns into a build report. |
|
cli
Package cli wires every subcommand the a-novel binary exposes.
|
Package cli wires every subcommand the a-novel binary exposes. |
|
client/rpc
Package rpc wraps the generated connect-rpc client with the daemon's unix-socket transport.
|
Package rpc wraps the generated connect-rpc client with the daemon's unix-socket transport. |
|
daemon
Package daemon owns the daemon's process lifecycle: socket listener, graceful shutdown, signal handling, and (later) recovery of orphan containers.
|
Package daemon owns the daemon's process lifecycle: socket listener, graceful shutdown, signal handling, and (later) recovery of orphan containers. |
|
daemon/discovery
Package discovery parses each stack's per-service podman-compose.yaml files and exposes the result as a structured model (services, targets, infra, volumes, networks, dependency graph).
|
Package discovery parses each stack's per-service podman-compose.yaml files and exposes the result as a structured model (services, targets, infra, volumes, networks, dependency graph). |
|
daemon/env
Package env owns the daemon's environment-variable handling: port allocation (with refcounting), value synthesis (HOST / URL for allocated ports), cross-service propagation, and operator un-prefix —.
|
Package env owns the daemon's environment-variable handling: port allocation (with refcounting), value synthesis (HOST / URL for allocated ports), cross-service propagation, and operator un-prefix —. |
|
daemon/logs
Package logs owns the daemon-side log storage and streaming hub.
|
Package logs owns the daemon-side log storage and streaming hub. |
|
daemon/reinstall
Package reinstall implements the daemon's reinstall-handoff checkpoint.
|
Package reinstall implements the daemon's reinstall-handoff checkpoint. |
|
daemon/runner
Package runner owns the daemon-side process supervision: spawning targets in either go-exec or container mode, tracking each instance's lifecycle (phase / exit-reason / health), and enforcing the lifecycle invariants (mutual exclusion, dependency-walk gating, idempotency).
|
Package runner owns the daemon-side process supervision: spawning targets in either go-exec or container mode, tracking each instance's lifecycle (phase / exit-reason / health), and enforcing the lifecycle invariants (mutual exclusion, dependency-walk gating, idempotency). |
|
daemon/server
Package server implements anovel.v1.CoreService.
|
Package server implements anovel.v1.CoreService. |
|
daemon/volumes
Package volumes owns the daemon-side volume operations: list, backup, restore, clear — all service-scoped.
|
Package volumes owns the daemon-side volume operations: list, backup, restore, clear — all service-scoped. |
|
detect
Package detect discovers buildable targets under a directory tree.
|
Package detect discovers buildable targets under a directory tree. |
|
setup
Package setup implements `a-novel core setup` — the interactive first-time bootstrap.
|
Package setup implements `a-novel core setup` — the interactive first-time bootstrap. |
|
shared/paths
Package paths centralizes filesystem locations the daemon and clients agree on.
|
Package paths centralizes filesystem locations the daemon and clients agree on. |
|
shared/stacks
Package stacks parses and validates the A_NOVEL_STACKS environment variable, the daemon's single source of truth for which checkouts to manage.
|
Package stacks parses and validates the A_NOVEL_STACKS environment variable, the daemon's single source of truth for which checkouts to manage. |
|
tui
Package tui implements `a-novel run ui` — the daemon-backed terminal UI.
|
Package tui implements `a-novel run ui` — the daemon-backed terminal UI. |
|
ui
Package ui is the Bubble Tea front-end for `a-novel build`: a branded, keyboard-driven flow of three phases — select targets, run them, read the report.
|
Package ui is the Bubble Tea front-end for `a-novel build`: a branded, keyboard-driven flow of three phases — select targets, run them, read the report. |
|
update
Package update implements a best-effort "a newer version is available" notice for the a-novel CLI.
|
Package update implements a best-effort "a newer version is available" notice for the a-novel CLI. |
|
version
Package version resolves the build version shown in the CLI banner and by `a-novel version`.
|
Package version resolves the build version shown in the CLI banner and by `a-novel version`. |
|
proto
|
|
Click to show internal directories.
Click to hide internal directories.