doctor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package doctor performs read-only health checks on the local Codex setup so users can confirm cct can see their sessions before exporting or importing. It never writes anything and never touches Codex's SQLite state DB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Status  Status
	Message string
}

Check is a single diagnostic line.

type Report

type Report struct {
	Home   codexhome.Home
	Checks []Check
}

Report is the full set of diagnostics.

func Run

func Run(home codexhome.Home) Report

Run gathers diagnostics for the given Codex home. It always returns a Report; problems are represented as warning checks rather than errors.

func RunClaude added in v0.3.0

func RunClaude(home claudehome.Home) Report

RunClaude gathers diagnostics for a Claude Code home. It mirrors Run but for the ~/.claude/projects transcript store. The returned Report reuses the shared shape (its Home.Root/SessionsDir carry the Claude root and projects dir) so the same renderers apply. It never writes anything and never touches the cloud, the account, or ~/.claude.json.

type Status

type Status int

Status is the result level of a single check.

const (
	StatusOK Status = iota
	StatusWarn
	StatusInfo
)

Jump to

Keyboard shortcuts

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