Documentation
¶
Overview ¶
ABOUTME: session command group root — programmatic CLI ABOUTME: surface for the SessionService interface.
ABOUTME: `session export <id>` subcommand — streams the raw source ABOUTME: JSONL file for a locally-synced session. Local-only by ABOUTME: design; bypasses the SessionService layer.
ABOUTME: `session get <id>` subcommand — prints session detail ABOUTME: in human or JSON format.
ABOUTME: `session list` subcommand — lists sessions with the ABOUTME: full set of HTTP query-param equivalents as CLI flags.
ABOUTME: `session messages <id>` subcommand — prints a window of ABOUTME: messages in JSON or human format.
ABOUTME: `session sync` subcommand — triggers a one-off sync for ABOUTME: a single session, either by path or by id. Refuses ABOUTME: against read-only daemons (pg serve).
ABOUTME: `session tool-calls <id>` subcommand — flattens every ABOUTME: tool call in a session into a JSON list or tab-aligned ABOUTME: human table.
ABOUTME: `session watch <id>` subcommand — streams NDJSON events ABOUTME: describing session updates until the context is cancelled.
ABOUTME: `agentsview stats` top-level command — window-scoped ABOUTME: workspace analytics emitting the v1 SessionStats JSON schema.
ABOUTME: CLI subcommand that syncs session data into the database ABOUTME: without starting the HTTP server.
ABOUTME: terminal-output hardening for session CLI commands. ABOUTME: Strips C0/C1 control bytes before printing so session ABOUTME: text cannot spoof terminal state via escape sequences.
ABOUTME: CLI subcommand that returns token usage data for a ABOUTME: session, syncing on-demand if no server is running.
ABOUTME: detectTransport picks between the HTTP and direct-DB ABOUTME: SessionService backends based on whether a running ABOUTME: agentsview daemon is discoverable via its state file.
Source Files
¶
- cli.go
- health.go
- import.go
- legacy_flags.go
- main.go
- managed_caddy.go
- pg.go
- projects.go
- prune.go
- serve_runtime.go
- session.go
- session_export.go
- session_get.go
- session_list.go
- session_messages.go
- session_sync.go
- session_tool_calls.go
- session_watch.go
- stats.go
- sync.go
- terminal_sanitize.go
- token_use.go
- transport.go
- update.go
- usage.go