Public declaration syntax from harness-sdk/src/keymap/action.rs Original source SHA-256: 087b17d592dca3a6bad9ce549f0d033cf396ee408fb457690277f753e9eadd4a Function bodies and constant values are omitted. This is not the complete implementation. Source line 14 #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] pub enum Action { // ── Composer ── /// Submit the current input. Submit, /// Cancel the current operation (clears input, dismisses overlay, /// stops a streaming response, etc. — the handler decides). Cancel, /// Insert a literal newline in the composer. InsertNewline, // ── App lifecycle ── /// Quit the application. Quit, /// Clear the chat / activity log. ClearHistory, /// Clear the terminal scrollback. ClearTerminal, // ── Layout ── /// Toggle the sidebar between expanded and collapsed. ToggleSidebar, /// Switch between Chat and Autonomy modes. ToggleMode, /// Stop the active autonomy session. StopAutonomy, // ── Overlays ── /// Open the slash-command palette. OpenPalette, /// Open the transcript / pager overlay. OpenTranscript, /// Open the resume picker. OpenResumePicker, /// Open the user's `$EDITOR` for the current draft. OpenExternalEditor, // ── Scrolling ── /// Scroll one page up. ScrollPageUp, /// Scroll one page down. ScrollPageDown, /// Scroll one half-page up. ScrollHalfPageUp, /// Scroll one half-page down. ScrollHalfPageDown, /// Jump to the top of the chat / pager. ScrollHome, /// Jump to the bottom of the chat / pager. ScrollEnd, // ── Approvals ── /// Approve the current pending request once. ApproveOnce, /// Approve the current pending request and persist the suggested /// glob pattern. ApproveAlways, /// Deny the current pending request. Deny, } Source line 79 #[must_use] pub fn key(self) -> &'static str;