/** * `openlore statusline` — a compact, color-coded index status for Claude Code's * custom status line. The command consumes Claude's session JSON from stdin and * reports the OpenLore project that contains its project or current directory, falling back * to the process cwd for manual use. */ import { Command } from 'commander'; import { openloreProjectRoot } from '../../utils/project-root.js'; import { type IndexStatus } from './status.js'; type StatusColor = 'green' | 'yellow' | 'red'; export declare function statusLabel(status: IndexStatus, unreviewed?: number): { color: StatusColor; text: string; }; export { openloreProjectRoot }; /** * The directory whose index to report, from Claude Code's status-line JSON. Candidates, in * order: the project directory (where the session started, the root the hooks and MCP server * use), the current directory, then `cwd`. The first one inside an OpenLore project resolves to * that project's root. A session resumed from one started elsewhere (for example in `/`) keeps * that stale project directory, so it must not hide the project the session now works in. When * no candidate is inside a project, the first candidate is reported as it is ("no index"). */ export declare function workingDirectoryFromInput(input: string, fallback: string): string; /** Render one status line. Never throws: a status-line command must fail soft. */ export declare function renderStatusLine(input: string, fallbackCwd: string): Promise; export declare const statuslineCommand: Command; //# sourceMappingURL=statusline.d.ts.map