feat: add text clipboard copy/read with mouse selection support

Add cross-platform text clipboard operations (macOS, Linux, Windows)
with OSC 52 support for SSH/tmux environments. Wire up onMouseUp and
Ctrl+Y in the TUI to copy selected text to the system clipboard via
OpenTUI's renderer selection API.
This commit is contained in:
2026-02-06 11:01:08 -05:00
parent 8adf48abd3
commit 101300b103
17 changed files with 983 additions and 87 deletions

View File

@@ -17,6 +17,7 @@ export type AppMode =
| "thinking"
| "tool_execution"
| "permission_prompt"
| "plan_approval"
| "command_menu"
| "model_select"
| "agent_select"
@@ -203,6 +204,24 @@ export interface PermissionResponse {
scope?: PermissionScope;
}
// ============================================================================
// Plan Approval Types
// ============================================================================
export interface PlanApprovalPrompt {
id: string;
planTitle: string;
planSummary: string;
planFilePath?: string;
resolve: (response: PlanApprovalPromptResponse) => void;
}
export interface PlanApprovalPromptResponse {
approved: boolean;
editMode: "auto_accept_clear" | "auto_accept" | "manual_approve" | "feedback";
feedback?: string;
}
// ============================================================================
// Learning Types
// ============================================================================