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:
@@ -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
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user