import { type PluginKind, type Scope } from "./agents.js"; import { type RepoFiles } from "./repo.js"; export type StepStatus = "done" | "planned" | "failed"; export interface Step { label: string; status: StepStatus; path?: string; detail?: string; } export interface PluginResult { ok: boolean; /** The agent's CLI binary, when it is not on PATH and there was nothing to call. */ missing?: string; /** Set when the plugin is installed although a later step failed, so falling back to MCP would duplicate it. */ installed?: boolean; steps: Step[]; notes: string[]; } interface RunResult { ok: boolean; missing: boolean; output: string; } export type Runner = (bin: string, args: string[]) => Promise; export declare const runCommand: Runner; export interface PluginContext { scope: Scope; dryRun: boolean; run: Runner; /** Lazily downloads upstash/skills; only the Cursor installer needs the files. */ repo: () => Promise; } export declare function cursorPluginDir(): string; export declare function installPlugin(kind: PluginKind, ctx: PluginContext): Promise; /** * Best-effort check for a user-level Upstash plugin, to warn about a second MCP server. * Claude records installs in installed_plugins.json: https://code.claude.com/docs/en/plugins/loading#find-plugins-on-disk * Gemini loads extensions from ~/.gemini/extensions: https://geminicli.com/docs/extensions/reference/#extension-format */ export declare function isPluginInstalled(kind: PluginKind): Promise; export {}; //# sourceMappingURL=plugins.d.ts.map