export interface CommandContext { cwd?: string; ui: { notify: (msg: string, level?: "info" | "warn" | "error") => void; }; isIdle?: () => boolean; } export interface CommandDefinition { description: string; handler: (args: string, ctx: CommandContext) => Promise; } export interface PiApi { registerCommand: (name: string, def: CommandDefinition) => void; sendUserMessage: (content: string, options?: { deliverAs?: "steer" | "followUp"; }) => void; } //# sourceMappingURL=types.d.ts.map