internal/

directory
v0.1.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: MIT

Directories

Path Synopsis
Package doctor implements the diagnostic check runner shared by the `ctm doctor` CLI and the `GET /api/doctor` HTTP endpoint.
Package doctor implements the diagnostic check runner shared by the `ctm doctor` CLI and the `GET /api/doctor` HTTP endpoint.
Package fsutil holds tiny, dependency-free filesystem helpers shared across the codebase.
Package fsutil holds tiny, dependency-free filesystem helpers shared across the codebase.
Package hooks dispatches user-configured shell commands on ctm lifecycle events (attach, new, yolo, safe, kill).
Package hooks dispatches user-configured shell commands on ctm lifecycle events (attach, new, yolo, safe, kill).
Package jsonstrict decodes JSON files into typed structs with DisallowUnknownFields, with a one-time recovery path that strips unknown keys into a sibling backup on first encounter.
Package jsonstrict decodes JSON files into typed structs with DisallowUnknownFields, with a one-time recovery path that strips unknown keys into a sibling backup on first encounter.
Package logging configures ctm's structured diagnostic logger.
Package logging configures ctm's structured diagnostic logger.
Package logrotate implements size- and age-bounded rotation for the append-only JSONL logs ctm writes under ~/.config/ctm/logs/.
Package logrotate implements size- and age-bounded rotation for the append-only JSONL logs ctm writes under ~/.config/ctm/logs/.
Package migrate applies versioned upgrades to ctm's JSON state files.
Package migrate applies versioned upgrades to ctm's JSON state files.
Package serve runs the ctm web UI HTTP daemon (`ctm serve`).
Package serve runs the ctm web UI HTTP daemon (`ctm serve`).
api
Package api implements the JSON HTTP handlers mounted under /api by internal/serve.Server.
Package api implements the JSON HTTP handlers mounted under /api by internal/serve.Server.
attention
Package attention implements the v0.1 attention engine: the seven locked triggers (A–G) from docs/superpowers/specs/2026-04-20-ctm-serve- ui-v0.1-design.md §4 "Attention engine".
Package attention implements the v0.1 attention engine: the seven locked triggers (A–G) from docs/superpowers/specs/2026-04-20-ctm-serve- ui-v0.1-design.md §4 "Attention engine".
auth
Package auth owns the ctm serve password hashing, user credentials file, and in-memory session store (V27 single-user auth).
Package auth owns the ctm serve password hashing, user credentials file, and in-memory session store (V27 single-user auth).
events
Package events implements the in-memory pub/sub hub and SSE handler that fan tool-call, quota, and lifecycle events out to the UI.
Package events implements the in-memory pub/sub hub and SSE handler that fan tool-call, quota, and lifecycle events out to the UI.
git
Package git provides git-backed primitives for ctm serve: listing the YOLO checkpoint commits in a session's workdir and reverting to one of them.
Package git provides git-backed primitives for ctm serve: listing the YOLO checkpoint commits in a session's workdir and reverting to one of them.
ingest
Package ingest builds the in-memory projections that the serve API reads from.
Package ingest builds the in-memory projections that the serve API reads from.
proc
Package proc provides the CLI-side glue between session-creating commands (`ctm attach`, `ctm new`, `ctm yolo`, etc.) and the local `ctm serve` daemon: a fire-and-forget spawner that ensures serve is up, and a tiny HTTP client that POSTs lifecycle events to its /api/hooks/:event endpoint.
Package proc provides the CLI-side glue between session-creating commands (`ctm attach`, `ctm new`, `ctm yolo`, etc.) and the local `ctm serve` daemon: a fire-and-forget spawner that ensures serve is up, and a tiny HTTP client that POSTs lifecycle events to its /api/hooks/:event endpoint.
store
Package store persists per-session token/cost history so the dashboard can render a cumulative-cost chart (V13) that survives daemon restarts.
Package store persists per-session token/cost history so the dashboard can render a cumulative-cost chart (V13) that survives daemon restarts.
webhook
Package webhook dispatches attention_raised events to a user-configured HTTP endpoint.
Package webhook dispatches attention_raised events to a user-configured HTTP endpoint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL