#!/usr/bin/env node /** * `token-optimizer learn` -- what did past sessions in this project keep failing at? * * Every local coding agent already keeps a transcript of what it tried. The failures * in those transcripts are the cheapest training data there is about a project: a * command that does not exist here, a path nobody has, a tool that keeps being * handed a directory. Each one costs a call and an apology every time it recurs, and * writing the answer into the instructions file the agent reads first costs nothing. * * NOTHING HERE TOUCHES THE NETWORK, and nothing is written without --write. The * transcripts hold the user's own source, so the pass reads them locally, reports * paths with the home directory reduced to `~`, and by default only prints. */ import { AnalysisResult } from './models.js'; import { AgentPlugin } from './plugin.js'; interface Options { readonly agent: string | null; readonly projectPath: string; readonly since: Date | null; readonly maxSessions: number | null; readonly write: boolean; readonly listProjects: boolean; readonly json: boolean; readonly help: boolean; } export declare function parseArguments(argv: readonly string[]): Options; /** The plugins to run: the one named, or every one with data on this machine. */ export declare function selectPlugins(agent: string | null): Promise; export interface RunOutcome { readonly lines: readonly string[]; readonly results: readonly AnalysisResult[]; readonly exitCode: number; } export declare function run(argv: readonly string[], env?: NodeJS.ProcessEnv): Promise; export {}; //# sourceMappingURL=cli.d.ts.map