doctor

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package doctor runs deterministic health checks over a memcode project — the built-in answer to "is the runtime actually doing what we think?". It exists because this is the question that kept recurring while building: the .memcode self-ignore silently not firing, the key not resolving, the index not built. /doctor (TUI) and `memcode doctor` (CLI) both render these.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(rs []Result) string

Render formats results as a checklist with a one-line summary.

Types

type Result

type Result struct {
	Name   string
	Status Status
	Detail string
}

Result is one check's outcome with an actionable detail.

func Check

func Check(ctx context.Context, st store.Store, root string, prov provider.ModelProvider) []Result

Check runs the health checks. st may be nil (not initialized); prov may be nil (web check skipped). root is the resolved project root.

type Status

type Status int

Status is a check outcome. Warn = works but worth knowing; Fail = broken + actionable.

const (
	OK Status = iota
	Warn
	Fail
)

Jump to

Keyboard shortcuts

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