@@ -4,6 +4,27 @@ import { z } from "zod"
44 * ClineAsk
55 */
66
7+ /**
8+ * Array of possible ask types that the LLM can use to request user interaction or approval.
9+ * These represent different scenarios where the assistant needs user input to proceed.
10+ *
11+ * @constant
12+ * @readonly
13+ *
14+ * Ask type descriptions:
15+ * - `followup`: LLM asks a clarifying question to gather more information needed to complete the task
16+ * - `command`: Permission to execute a terminal/shell command
17+ * - `command_output`: Permission to read the output from a previously executed command
18+ * - `completion_result`: Task has been completed, awaiting user feedback or a new task
19+ * - `tool`: Permission to use a tool for file operations (read, write, search, etc.)
20+ * - `api_req_failed`: API request failed, asking user whether to retry
21+ * - `resume_task`: Confirmation needed to resume a previously paused task
22+ * - `resume_completed_task`: Confirmation needed to resume a task that was already marked as completed
23+ * - `mistake_limit_reached`: Too many errors encountered, needs user guidance on how to proceed
24+ * - `browser_action_launch`: Permission to open or interact with a browser
25+ * - `use_mcp_server`: Permission to use Model Context Protocol (MCP) server functionality
26+ * - `auto_approval_max_req_reached`: Auto-approval limit has been reached, manual approval required
27+ */
728export const clineAsks = [
829 "followup" ,
930 "command" ,
@@ -27,6 +48,39 @@ export type ClineAsk = z.infer<typeof clineAskSchema>
2748 * ClineSay
2849 */
2950
51+ /**
52+ * Array of possible say types that represent different kinds of messages the assistant can send.
53+ * These are used to categorize and handle various types of communication from the LLM to the user.
54+ *
55+ * @constant
56+ * @readonly
57+ *
58+ * Say type descriptions:
59+ * - `error`: General error message
60+ * - `api_req_started`: Indicates an API request has been initiated
61+ * - `api_req_finished`: Indicates an API request has completed successfully
62+ * - `api_req_retried`: Indicates an API request is being retried after a failure
63+ * - `api_req_retry_delayed`: Indicates an API request retry has been delayed
64+ * - `api_req_deleted`: Indicates an API request has been deleted/cancelled
65+ * - `text`: General text message or assistant response
66+ * - `reasoning`: Assistant's reasoning or thought process (often hidden from user)
67+ * - `completion_result`: Final result of task completion
68+ * - `user_feedback`: Message containing user feedback
69+ * - `user_feedback_diff`: Diff-formatted feedback from user showing requested changes
70+ * - `command_output`: Output from an executed command
71+ * - `shell_integration_warning`: Warning about shell integration issues or limitations
72+ * - `browser_action`: Action performed in the browser
73+ * - `browser_action_result`: Result of a browser action
74+ * - `mcp_server_request_started`: MCP server request has been initiated
75+ * - `mcp_server_response`: Response received from MCP server
76+ * - `subtask_result`: Result of a completed subtask
77+ * - `checkpoint_saved`: Indicates a checkpoint has been saved
78+ * - `rooignore_error`: Error related to .rooignore file processing
79+ * - `diff_error`: Error occurred while applying a diff/patch
80+ * - `condense_context`: Context condensation/summarization has started
81+ * - `condense_context_error`: Error occurred during context condensation
82+ * - `codebase_search_result`: Results from searching the codebase
83+ */
3084export const clineSays = [
3185 "error" ,
3286 "api_req_started" ,
0 commit comments