/** * CLI entry point: registers built-in commands and wires up Commander. * * Built-in commands are registered inline here (list, validate, explore, etc.). * Dynamic adapter commands are registered via commanderAdapter.ts. */ import { Command } from 'commander'; import { findPackageRoot } from './package-paths.js'; export declare function selectFreshByTimestamp(items: T[], lastSeenTs: number): { fresh: T[]; lastSeenTs: number; }; /** * Check whether the site-memory scaffolding exists under * ~/.opencli/sites//. Agents have a strong tendency to forget to write * endpoints.json / notes.md after a successful verify, which dooms the next * agent to redo recon from scratch. Surfacing the current state as part of * verify's final report converts that "silent skip" into a visible nudge; * `--strict-memory` escalates it to a failure so agents driving a hardened * workflow can't forget. */ export type SiteMemoryReport = { ok: boolean; siteDir: string; endpoints: { present: boolean; count: number; path: string; }; notes: { present: boolean; path: string; }; }; export declare function checkSiteMemory(site: string): SiteMemoryReport; export declare function printSiteMemoryReport(report: SiteMemoryReport, strict: boolean | undefined): void; /** Coerce adapter JSON output into a row array. Accepts `[{...}]`, single `{}`, or `{items:[...]}`-style envelopes. */ export declare function normalizeVerifyRows(data: unknown): Record[]; /** Render up to 10 rows as a compact padded table for eyeball inspection during verify. */ export declare function renderVerifyPreview(rows: Record[], opts?: { maxRows?: number; maxCols?: number; cellMax?: number; }): string; export declare function createProgram(BUILTIN_CLIS: string, USER_CLIS: string): Command; export declare function runCli(BUILTIN_CLIS: string, USER_CLIS: string): void; export interface BrowserVerifyInvocation { binary: string; args: string[]; cwd: string; shell?: boolean; } export { findPackageRoot }; export declare function resolveBrowserVerifyInvocation(opts?: { projectRoot?: string; platform?: NodeJS.Platform; fileExists?: (path: string) => boolean; readFile?: (path: string) => string; }): BrowserVerifyInvocation;