@cometix/claude-code 0.0.1-alpha.0 → 2.1.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sdk-tools.d.ts ADDED
@@ -0,0 +1,2740 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ /**
9
+ * JSON Schema definitions for Claude CLI tool inputs
10
+ */
11
+ export type ToolInputSchemas =
12
+ | AgentInput
13
+ | BashInput
14
+ | TaskOutputInput
15
+ | ExitPlanModeInput
16
+ | FileEditInput
17
+ | FileReadInput
18
+ | FileWriteInput
19
+ | GlobInput
20
+ | GrepInput
21
+ | TaskStopInput
22
+ | ListMcpResourcesInput
23
+ | McpInput
24
+ | NotebookEditInput
25
+ | ReadMcpResourceInput
26
+ | TodoWriteInput
27
+ | WebFetchInput
28
+ | WebSearchInput
29
+ | AskUserQuestionInput
30
+ | ConfigInput
31
+ | EnterWorktreeInput
32
+ | ExitWorktreeInput
33
+ | ToolOutputSchemas;
34
+ export type ToolOutputSchemas =
35
+ | AgentOutput
36
+ | BashOutput
37
+ | ExitPlanModeOutput
38
+ | FileEditOutput
39
+ | FileReadOutput
40
+ | FileWriteOutput
41
+ | GlobOutput
42
+ | GrepOutput
43
+ | TaskStopOutput
44
+ | ListMcpResourcesOutput
45
+ | McpOutput
46
+ | NotebookEditOutput
47
+ | ReadMcpResourceOutput
48
+ | TodoWriteOutput
49
+ | WebFetchOutput
50
+ | WebSearchOutput
51
+ | AskUserQuestionOutput
52
+ | ConfigOutput
53
+ | EnterWorktreeOutput
54
+ | ExitWorktreeOutput;
55
+ export type AgentOutput =
56
+ | {
57
+ agentId: string;
58
+ agentType?: string;
59
+ content: {
60
+ type: "text";
61
+ text: string;
62
+ }[];
63
+ totalToolUseCount: number;
64
+ totalDurationMs: number;
65
+ totalTokens: number;
66
+ usage: {
67
+ input_tokens: number;
68
+ output_tokens: number;
69
+ cache_creation_input_tokens: number | null;
70
+ cache_read_input_tokens: number | null;
71
+ server_tool_use: {
72
+ web_search_requests: number;
73
+ web_fetch_requests: number;
74
+ } | null;
75
+ service_tier: ("standard" | "priority" | "batch") | null;
76
+ cache_creation: {
77
+ ephemeral_1h_input_tokens: number;
78
+ ephemeral_5m_input_tokens: number;
79
+ } | null;
80
+ };
81
+ toolStats?: {
82
+ readCount: number;
83
+ searchCount: number;
84
+ bashCount: number;
85
+ editFileCount: number;
86
+ linesAdded: number;
87
+ linesRemoved: number;
88
+ otherToolCount: number;
89
+ };
90
+ status: "completed";
91
+ prompt: string;
92
+ }
93
+ | {
94
+ status: "async_launched";
95
+ /**
96
+ * The ID of the async agent
97
+ */
98
+ agentId: string;
99
+ /**
100
+ * The description of the task
101
+ */
102
+ description: string;
103
+ /**
104
+ * The prompt for the agent
105
+ */
106
+ prompt: string;
107
+ /**
108
+ * Path to the output file for checking agent progress
109
+ */
110
+ outputFile: string;
111
+ /**
112
+ * Whether the calling agent has Read/Bash tools to check progress
113
+ */
114
+ canReadOutputFile?: boolean;
115
+ };
116
+ export type FileReadOutput =
117
+ | {
118
+ type: "text";
119
+ file: {
120
+ /**
121
+ * The path to the file that was read
122
+ */
123
+ filePath: string;
124
+ /**
125
+ * The content of the file
126
+ */
127
+ content: string;
128
+ /**
129
+ * Number of lines in the returned content
130
+ */
131
+ numLines: number;
132
+ /**
133
+ * The starting line number
134
+ */
135
+ startLine: number;
136
+ /**
137
+ * Total number of lines in the file
138
+ */
139
+ totalLines: number;
140
+ };
141
+ }
142
+ | {
143
+ type: "image";
144
+ file: {
145
+ /**
146
+ * Base64-encoded image data
147
+ */
148
+ base64: string;
149
+ /**
150
+ * The MIME type of the image
151
+ */
152
+ type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
153
+ /**
154
+ * Original file size in bytes
155
+ */
156
+ originalSize: number;
157
+ /**
158
+ * Image dimension info for coordinate mapping
159
+ */
160
+ dimensions?: {
161
+ /**
162
+ * Original image width in pixels
163
+ */
164
+ originalWidth?: number;
165
+ /**
166
+ * Original image height in pixels
167
+ */
168
+ originalHeight?: number;
169
+ /**
170
+ * Displayed image width in pixels (after resizing)
171
+ */
172
+ displayWidth?: number;
173
+ /**
174
+ * Displayed image height in pixels (after resizing)
175
+ */
176
+ displayHeight?: number;
177
+ };
178
+ };
179
+ }
180
+ | {
181
+ type: "notebook";
182
+ file: {
183
+ /**
184
+ * The path to the notebook file
185
+ */
186
+ filePath: string;
187
+ /**
188
+ * Array of notebook cells
189
+ */
190
+ cells: unknown[];
191
+ };
192
+ }
193
+ | {
194
+ type: "pdf";
195
+ file: {
196
+ /**
197
+ * The path to the PDF file
198
+ */
199
+ filePath: string;
200
+ /**
201
+ * Base64-encoded PDF data
202
+ */
203
+ base64: string;
204
+ /**
205
+ * Original file size in bytes
206
+ */
207
+ originalSize: number;
208
+ };
209
+ }
210
+ | {
211
+ type: "parts";
212
+ file: {
213
+ /**
214
+ * The path to the PDF file
215
+ */
216
+ filePath: string;
217
+ /**
218
+ * Original file size in bytes
219
+ */
220
+ originalSize: number;
221
+ /**
222
+ * Number of pages extracted
223
+ */
224
+ count: number;
225
+ /**
226
+ * Directory containing extracted page images
227
+ */
228
+ outputDir: string;
229
+ };
230
+ }
231
+ | {
232
+ type: "file_unchanged";
233
+ file: {
234
+ /**
235
+ * The path to the file
236
+ */
237
+ filePath: string;
238
+ };
239
+ };
240
+ export type ListMcpResourcesOutput = {
241
+ /**
242
+ * Resource URI
243
+ */
244
+ uri: string;
245
+ /**
246
+ * Resource name
247
+ */
248
+ name: string;
249
+ /**
250
+ * MIME type of the resource
251
+ */
252
+ mimeType?: string;
253
+ /**
254
+ * Resource description
255
+ */
256
+ description?: string;
257
+ /**
258
+ * Server that provides this resource
259
+ */
260
+ server: string;
261
+ }[];
262
+ /**
263
+ * MCP tool execution result
264
+ */
265
+ export type McpOutput = string;
266
+
267
+ export interface AgentInput {
268
+ /**
269
+ * A short (3-5 word) description of the task
270
+ */
271
+ description: string;
272
+ /**
273
+ * The task for the agent to perform
274
+ */
275
+ prompt: string;
276
+ /**
277
+ * The type of specialized agent to use for this task
278
+ */
279
+ subagent_type?: string;
280
+ /**
281
+ * Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent.
282
+ */
283
+ model?: "sonnet" | "opus" | "haiku";
284
+ /**
285
+ * Set to true to run this agent in the background. You will be notified when it completes.
286
+ */
287
+ run_in_background?: boolean;
288
+ /**
289
+ * Name for the spawned agent. Makes it addressable via SendMessage({to: name}) while running.
290
+ */
291
+ name?: string;
292
+ /**
293
+ * Team name for spawning. Uses current team context if omitted.
294
+ */
295
+ team_name?: string;
296
+ /**
297
+ * Permission mode for spawned teammate (e.g., "plan" to require plan approval).
298
+ */
299
+ mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
300
+ /**
301
+ * Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo.
302
+ */
303
+ isolation?: "worktree";
304
+ }
305
+ export interface BashInput {
306
+ /**
307
+ * The command to execute
308
+ */
309
+ command: string;
310
+ /**
311
+ * Optional timeout in milliseconds (max 600000)
312
+ */
313
+ timeout?: number;
314
+ /**
315
+ * Clear, concise description of what this command does in active voice. Never use words like "complex" or "risk" in the description - just describe what it does.
316
+ *
317
+ * For simple commands (git, npm, standard CLI tools), keep it brief (5-10 words):
318
+ * - ls → "List files in current directory"
319
+ * - git status → "Show working tree status"
320
+ * - npm install → "Install package dependencies"
321
+ *
322
+ * For commands that are harder to parse at a glance (piped commands, obscure flags, etc.), add enough context to clarify what it does:
323
+ * - find . -name "*.tmp" -exec rm {} \; → "Find and delete all .tmp files recursively"
324
+ * - git reset --hard origin/main → "Discard all local changes and match remote main"
325
+ * - curl -s url | jq '.data[]' → "Fetch JSON from URL and extract data array elements"
326
+ */
327
+ description?: string;
328
+ /**
329
+ * Set to true to run this command in the background. Use Read to read the output later.
330
+ */
331
+ run_in_background?: boolean;
332
+ /**
333
+ * Set this to true to dangerously override sandbox mode and run commands without sandboxing.
334
+ */
335
+ dangerouslyDisableSandbox?: boolean;
336
+ }
337
+ export interface TaskOutputInput {
338
+ /**
339
+ * The task ID to get output from
340
+ */
341
+ task_id: string;
342
+ /**
343
+ * Whether to wait for completion
344
+ */
345
+ block: boolean;
346
+ /**
347
+ * Max wait time in ms
348
+ */
349
+ timeout: number;
350
+ }
351
+ export interface ExitPlanModeInput {
352
+ /**
353
+ * Prompt-based permissions needed to implement the plan. These describe categories of actions rather than specific commands.
354
+ */
355
+ allowedPrompts?: {
356
+ /**
357
+ * The tool this prompt applies to
358
+ */
359
+ tool: "Bash";
360
+ /**
361
+ * Semantic description of the action, e.g. "run tests", "install dependencies"
362
+ */
363
+ prompt: string;
364
+ }[];
365
+ [k: string]: unknown;
366
+ }
367
+ export interface FileEditInput {
368
+ /**
369
+ * The absolute path to the file to modify
370
+ */
371
+ file_path: string;
372
+ /**
373
+ * The text to replace
374
+ */
375
+ old_string: string;
376
+ /**
377
+ * The text to replace it with (must be different from old_string)
378
+ */
379
+ new_string: string;
380
+ /**
381
+ * Replace all occurrences of old_string (default false)
382
+ */
383
+ replace_all?: boolean;
384
+ }
385
+ export interface FileReadInput {
386
+ /**
387
+ * The absolute path to the file to read
388
+ */
389
+ file_path: string;
390
+ /**
391
+ * The line number to start reading from. Only provide if the file is too large to read at once
392
+ */
393
+ offset?: number;
394
+ /**
395
+ * The number of lines to read. Only provide if the file is too large to read at once.
396
+ */
397
+ limit?: number;
398
+ /**
399
+ * Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files. Maximum 20 pages per request.
400
+ */
401
+ pages?: string;
402
+ }
403
+ export interface FileWriteInput {
404
+ /**
405
+ * The absolute path to the file to write (must be absolute, not relative)
406
+ */
407
+ file_path: string;
408
+ /**
409
+ * The content to write to the file
410
+ */
411
+ content: string;
412
+ }
413
+ export interface GlobInput {
414
+ /**
415
+ * The glob pattern to match files against
416
+ */
417
+ pattern: string;
418
+ /**
419
+ * The directory to search in. If not specified, the current working directory will be used. IMPORTANT: Omit this field to use the default directory. DO NOT enter "undefined" or "null" - simply omit it for the default behavior. Must be a valid directory path if provided.
420
+ */
421
+ path?: string;
422
+ }
423
+ export interface GrepInput {
424
+ /**
425
+ * The regular expression pattern to search for in file contents
426
+ */
427
+ pattern: string;
428
+ /**
429
+ * File or directory to search in (rg PATH). Defaults to current working directory.
430
+ */
431
+ path?: string;
432
+ /**
433
+ * Glob pattern to filter files (e.g. "*.js", "*.{ts,tsx}") - maps to rg --glob
434
+ */
435
+ glob?: string;
436
+ /**
437
+ * Output mode: "content" shows matching lines (supports -A/-B/-C context, -n line numbers, head_limit), "files_with_matches" shows file paths (supports head_limit), "count" shows match counts (supports head_limit). Defaults to "files_with_matches".
438
+ */
439
+ output_mode?: "content" | "files_with_matches" | "count";
440
+ /**
441
+ * Number of lines to show before each match (rg -B). Requires output_mode: "content", ignored otherwise.
442
+ */
443
+ "-B"?: number;
444
+ /**
445
+ * Number of lines to show after each match (rg -A). Requires output_mode: "content", ignored otherwise.
446
+ */
447
+ "-A"?: number;
448
+ /**
449
+ * Alias for context.
450
+ */
451
+ "-C"?: number;
452
+ /**
453
+ * Number of lines to show before and after each match (rg -C). Requires output_mode: "content", ignored otherwise.
454
+ */
455
+ context?: number;
456
+ /**
457
+ * Show line numbers in output (rg -n). Requires output_mode: "content", ignored otherwise. Defaults to true.
458
+ */
459
+ "-n"?: boolean;
460
+ /**
461
+ * Case insensitive search (rg -i)
462
+ */
463
+ "-i"?: boolean;
464
+ /**
465
+ * File type to search (rg --type). Common types: js, py, rust, go, java, etc. More efficient than include for standard file types.
466
+ */
467
+ type?: string;
468
+ /**
469
+ * Limit output to first N lines/entries, equivalent to "| head -N". Works across all output modes: content (limits output lines), files_with_matches (limits file paths), count (limits count entries). Defaults to 250 when unspecified. Pass 0 for unlimited (use sparingly — large result sets waste context).
470
+ */
471
+ head_limit?: number;
472
+ /**
473
+ * Skip first N lines/entries before applying head_limit, equivalent to "| tail -n +N | head -N". Works across all output modes. Defaults to 0.
474
+ */
475
+ offset?: number;
476
+ /**
477
+ * Enable multiline mode where . matches newlines and patterns can span lines (rg -U --multiline-dotall). Default: false.
478
+ */
479
+ multiline?: boolean;
480
+ }
481
+ export interface TaskStopInput {
482
+ /**
483
+ * The ID of the background task to stop
484
+ */
485
+ task_id?: string;
486
+ /**
487
+ * Deprecated: use task_id instead
488
+ */
489
+ shell_id?: string;
490
+ }
491
+ export interface ListMcpResourcesInput {
492
+ /**
493
+ * Optional server name to filter resources by
494
+ */
495
+ server?: string;
496
+ }
497
+ export interface McpInput {
498
+ [k: string]: unknown;
499
+ }
500
+ export interface NotebookEditInput {
501
+ /**
502
+ * The absolute path to the Jupyter notebook file to edit (must be absolute, not relative)
503
+ */
504
+ notebook_path: string;
505
+ /**
506
+ * The ID of the cell to edit. When inserting a new cell, the new cell will be inserted after the cell with this ID, or at the beginning if not specified.
507
+ */
508
+ cell_id?: string;
509
+ /**
510
+ * The new source for the cell
511
+ */
512
+ new_source: string;
513
+ /**
514
+ * The type of the cell (code or markdown). If not specified, it defaults to the current cell type. If using edit_mode=insert, this is required.
515
+ */
516
+ cell_type?: "code" | "markdown";
517
+ /**
518
+ * The type of edit to make (replace, insert, delete). Defaults to replace.
519
+ */
520
+ edit_mode?: "replace" | "insert" | "delete";
521
+ }
522
+ export interface ReadMcpResourceInput {
523
+ /**
524
+ * The MCP server name
525
+ */
526
+ server: string;
527
+ /**
528
+ * The resource URI to read
529
+ */
530
+ uri: string;
531
+ }
532
+ export interface TodoWriteInput {
533
+ /**
534
+ * The updated todo list
535
+ */
536
+ todos: {
537
+ content: string;
538
+ status: "pending" | "in_progress" | "completed";
539
+ activeForm: string;
540
+ }[];
541
+ }
542
+ export interface WebFetchInput {
543
+ /**
544
+ * The URL to fetch content from
545
+ */
546
+ url: string;
547
+ /**
548
+ * The prompt to run on the fetched content
549
+ */
550
+ prompt: string;
551
+ }
552
+ export interface WebSearchInput {
553
+ /**
554
+ * The search query to use
555
+ */
556
+ query: string;
557
+ /**
558
+ * Only include search results from these domains
559
+ */
560
+ allowed_domains?: string[];
561
+ /**
562
+ * Never include search results from these domains
563
+ */
564
+ blocked_domains?: string[];
565
+ }
566
+ export interface AskUserQuestionInput {
567
+ /**
568
+ * Questions to ask the user (1-4 questions)
569
+ *
570
+ * @minItems 1
571
+ * @maxItems 4
572
+ */
573
+ questions:
574
+ | [
575
+ {
576
+ /**
577
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
578
+ */
579
+ question: string;
580
+ /**
581
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
582
+ */
583
+ header: string;
584
+ /**
585
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
586
+ *
587
+ * @minItems 2
588
+ * @maxItems 4
589
+ */
590
+ options:
591
+ | [
592
+ {
593
+ /**
594
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
595
+ */
596
+ label: string;
597
+ /**
598
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
599
+ */
600
+ description: string;
601
+ /**
602
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
603
+ */
604
+ preview?: string;
605
+ },
606
+ {
607
+ /**
608
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
609
+ */
610
+ label: string;
611
+ /**
612
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
613
+ */
614
+ description: string;
615
+ /**
616
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
617
+ */
618
+ preview?: string;
619
+ }
620
+ ]
621
+ | [
622
+ {
623
+ /**
624
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
625
+ */
626
+ label: string;
627
+ /**
628
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
629
+ */
630
+ description: string;
631
+ /**
632
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
633
+ */
634
+ preview?: string;
635
+ },
636
+ {
637
+ /**
638
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
639
+ */
640
+ label: string;
641
+ /**
642
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
643
+ */
644
+ description: string;
645
+ /**
646
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
647
+ */
648
+ preview?: string;
649
+ },
650
+ {
651
+ /**
652
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
653
+ */
654
+ label: string;
655
+ /**
656
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
657
+ */
658
+ description: string;
659
+ /**
660
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
661
+ */
662
+ preview?: string;
663
+ }
664
+ ]
665
+ | [
666
+ {
667
+ /**
668
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
669
+ */
670
+ label: string;
671
+ /**
672
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
673
+ */
674
+ description: string;
675
+ /**
676
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
677
+ */
678
+ preview?: string;
679
+ },
680
+ {
681
+ /**
682
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
683
+ */
684
+ label: string;
685
+ /**
686
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
687
+ */
688
+ description: string;
689
+ /**
690
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
691
+ */
692
+ preview?: string;
693
+ },
694
+ {
695
+ /**
696
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
697
+ */
698
+ label: string;
699
+ /**
700
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
701
+ */
702
+ description: string;
703
+ /**
704
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
705
+ */
706
+ preview?: string;
707
+ },
708
+ {
709
+ /**
710
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
711
+ */
712
+ label: string;
713
+ /**
714
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
715
+ */
716
+ description: string;
717
+ /**
718
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
719
+ */
720
+ preview?: string;
721
+ }
722
+ ];
723
+ /**
724
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
725
+ */
726
+ multiSelect: boolean;
727
+ }
728
+ ]
729
+ | [
730
+ {
731
+ /**
732
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
733
+ */
734
+ question: string;
735
+ /**
736
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
737
+ */
738
+ header: string;
739
+ /**
740
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
741
+ *
742
+ * @minItems 2
743
+ * @maxItems 4
744
+ */
745
+ options:
746
+ | [
747
+ {
748
+ /**
749
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
750
+ */
751
+ label: string;
752
+ /**
753
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
754
+ */
755
+ description: string;
756
+ /**
757
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
758
+ */
759
+ preview?: string;
760
+ },
761
+ {
762
+ /**
763
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
764
+ */
765
+ label: string;
766
+ /**
767
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
768
+ */
769
+ description: string;
770
+ /**
771
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
772
+ */
773
+ preview?: string;
774
+ }
775
+ ]
776
+ | [
777
+ {
778
+ /**
779
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
780
+ */
781
+ label: string;
782
+ /**
783
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
784
+ */
785
+ description: string;
786
+ /**
787
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
788
+ */
789
+ preview?: string;
790
+ },
791
+ {
792
+ /**
793
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
794
+ */
795
+ label: string;
796
+ /**
797
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
798
+ */
799
+ description: string;
800
+ /**
801
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
802
+ */
803
+ preview?: string;
804
+ },
805
+ {
806
+ /**
807
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
808
+ */
809
+ label: string;
810
+ /**
811
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
812
+ */
813
+ description: string;
814
+ /**
815
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
816
+ */
817
+ preview?: string;
818
+ }
819
+ ]
820
+ | [
821
+ {
822
+ /**
823
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
824
+ */
825
+ label: string;
826
+ /**
827
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
828
+ */
829
+ description: string;
830
+ /**
831
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
832
+ */
833
+ preview?: string;
834
+ },
835
+ {
836
+ /**
837
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
838
+ */
839
+ label: string;
840
+ /**
841
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
842
+ */
843
+ description: string;
844
+ /**
845
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
846
+ */
847
+ preview?: string;
848
+ },
849
+ {
850
+ /**
851
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
852
+ */
853
+ label: string;
854
+ /**
855
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
856
+ */
857
+ description: string;
858
+ /**
859
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
860
+ */
861
+ preview?: string;
862
+ },
863
+ {
864
+ /**
865
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
866
+ */
867
+ label: string;
868
+ /**
869
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
870
+ */
871
+ description: string;
872
+ /**
873
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
874
+ */
875
+ preview?: string;
876
+ }
877
+ ];
878
+ /**
879
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
880
+ */
881
+ multiSelect: boolean;
882
+ },
883
+ {
884
+ /**
885
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
886
+ */
887
+ question: string;
888
+ /**
889
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
890
+ */
891
+ header: string;
892
+ /**
893
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
894
+ *
895
+ * @minItems 2
896
+ * @maxItems 4
897
+ */
898
+ options:
899
+ | [
900
+ {
901
+ /**
902
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
903
+ */
904
+ label: string;
905
+ /**
906
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
907
+ */
908
+ description: string;
909
+ /**
910
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
911
+ */
912
+ preview?: string;
913
+ },
914
+ {
915
+ /**
916
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
917
+ */
918
+ label: string;
919
+ /**
920
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
921
+ */
922
+ description: string;
923
+ /**
924
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
925
+ */
926
+ preview?: string;
927
+ }
928
+ ]
929
+ | [
930
+ {
931
+ /**
932
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
933
+ */
934
+ label: string;
935
+ /**
936
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
937
+ */
938
+ description: string;
939
+ /**
940
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
941
+ */
942
+ preview?: string;
943
+ },
944
+ {
945
+ /**
946
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
947
+ */
948
+ label: string;
949
+ /**
950
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
951
+ */
952
+ description: string;
953
+ /**
954
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
955
+ */
956
+ preview?: string;
957
+ },
958
+ {
959
+ /**
960
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
961
+ */
962
+ label: string;
963
+ /**
964
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
965
+ */
966
+ description: string;
967
+ /**
968
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
969
+ */
970
+ preview?: string;
971
+ }
972
+ ]
973
+ | [
974
+ {
975
+ /**
976
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
977
+ */
978
+ label: string;
979
+ /**
980
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
981
+ */
982
+ description: string;
983
+ /**
984
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
985
+ */
986
+ preview?: string;
987
+ },
988
+ {
989
+ /**
990
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
991
+ */
992
+ label: string;
993
+ /**
994
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
995
+ */
996
+ description: string;
997
+ /**
998
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
999
+ */
1000
+ preview?: string;
1001
+ },
1002
+ {
1003
+ /**
1004
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1005
+ */
1006
+ label: string;
1007
+ /**
1008
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1009
+ */
1010
+ description: string;
1011
+ /**
1012
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1013
+ */
1014
+ preview?: string;
1015
+ },
1016
+ {
1017
+ /**
1018
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1019
+ */
1020
+ label: string;
1021
+ /**
1022
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1023
+ */
1024
+ description: string;
1025
+ /**
1026
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1027
+ */
1028
+ preview?: string;
1029
+ }
1030
+ ];
1031
+ /**
1032
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1033
+ */
1034
+ multiSelect: boolean;
1035
+ }
1036
+ ]
1037
+ | [
1038
+ {
1039
+ /**
1040
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1041
+ */
1042
+ question: string;
1043
+ /**
1044
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1045
+ */
1046
+ header: string;
1047
+ /**
1048
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1049
+ *
1050
+ * @minItems 2
1051
+ * @maxItems 4
1052
+ */
1053
+ options:
1054
+ | [
1055
+ {
1056
+ /**
1057
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1058
+ */
1059
+ label: string;
1060
+ /**
1061
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1062
+ */
1063
+ description: string;
1064
+ /**
1065
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1066
+ */
1067
+ preview?: string;
1068
+ },
1069
+ {
1070
+ /**
1071
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1072
+ */
1073
+ label: string;
1074
+ /**
1075
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1076
+ */
1077
+ description: string;
1078
+ /**
1079
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1080
+ */
1081
+ preview?: string;
1082
+ }
1083
+ ]
1084
+ | [
1085
+ {
1086
+ /**
1087
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1088
+ */
1089
+ label: string;
1090
+ /**
1091
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1092
+ */
1093
+ description: string;
1094
+ /**
1095
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1096
+ */
1097
+ preview?: string;
1098
+ },
1099
+ {
1100
+ /**
1101
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1102
+ */
1103
+ label: string;
1104
+ /**
1105
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1106
+ */
1107
+ description: string;
1108
+ /**
1109
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1110
+ */
1111
+ preview?: string;
1112
+ },
1113
+ {
1114
+ /**
1115
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1116
+ */
1117
+ label: string;
1118
+ /**
1119
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1120
+ */
1121
+ description: string;
1122
+ /**
1123
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1124
+ */
1125
+ preview?: string;
1126
+ }
1127
+ ]
1128
+ | [
1129
+ {
1130
+ /**
1131
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1132
+ */
1133
+ label: string;
1134
+ /**
1135
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1136
+ */
1137
+ description: string;
1138
+ /**
1139
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1140
+ */
1141
+ preview?: string;
1142
+ },
1143
+ {
1144
+ /**
1145
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1146
+ */
1147
+ label: string;
1148
+ /**
1149
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1150
+ */
1151
+ description: string;
1152
+ /**
1153
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1154
+ */
1155
+ preview?: string;
1156
+ },
1157
+ {
1158
+ /**
1159
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1160
+ */
1161
+ label: string;
1162
+ /**
1163
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1164
+ */
1165
+ description: string;
1166
+ /**
1167
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1168
+ */
1169
+ preview?: string;
1170
+ },
1171
+ {
1172
+ /**
1173
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1174
+ */
1175
+ label: string;
1176
+ /**
1177
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1178
+ */
1179
+ description: string;
1180
+ /**
1181
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1182
+ */
1183
+ preview?: string;
1184
+ }
1185
+ ];
1186
+ /**
1187
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1188
+ */
1189
+ multiSelect: boolean;
1190
+ },
1191
+ {
1192
+ /**
1193
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1194
+ */
1195
+ question: string;
1196
+ /**
1197
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1198
+ */
1199
+ header: string;
1200
+ /**
1201
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1202
+ *
1203
+ * @minItems 2
1204
+ * @maxItems 4
1205
+ */
1206
+ options:
1207
+ | [
1208
+ {
1209
+ /**
1210
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1211
+ */
1212
+ label: string;
1213
+ /**
1214
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1215
+ */
1216
+ description: string;
1217
+ /**
1218
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1219
+ */
1220
+ preview?: string;
1221
+ },
1222
+ {
1223
+ /**
1224
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1225
+ */
1226
+ label: string;
1227
+ /**
1228
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1229
+ */
1230
+ description: string;
1231
+ /**
1232
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1233
+ */
1234
+ preview?: string;
1235
+ }
1236
+ ]
1237
+ | [
1238
+ {
1239
+ /**
1240
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1241
+ */
1242
+ label: string;
1243
+ /**
1244
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1245
+ */
1246
+ description: string;
1247
+ /**
1248
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1249
+ */
1250
+ preview?: string;
1251
+ },
1252
+ {
1253
+ /**
1254
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1255
+ */
1256
+ label: string;
1257
+ /**
1258
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1259
+ */
1260
+ description: string;
1261
+ /**
1262
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1263
+ */
1264
+ preview?: string;
1265
+ },
1266
+ {
1267
+ /**
1268
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1269
+ */
1270
+ label: string;
1271
+ /**
1272
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1273
+ */
1274
+ description: string;
1275
+ /**
1276
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1277
+ */
1278
+ preview?: string;
1279
+ }
1280
+ ]
1281
+ | [
1282
+ {
1283
+ /**
1284
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1285
+ */
1286
+ label: string;
1287
+ /**
1288
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1289
+ */
1290
+ description: string;
1291
+ /**
1292
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1293
+ */
1294
+ preview?: string;
1295
+ },
1296
+ {
1297
+ /**
1298
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1299
+ */
1300
+ label: string;
1301
+ /**
1302
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1303
+ */
1304
+ description: string;
1305
+ /**
1306
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1307
+ */
1308
+ preview?: string;
1309
+ },
1310
+ {
1311
+ /**
1312
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1313
+ */
1314
+ label: string;
1315
+ /**
1316
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1317
+ */
1318
+ description: string;
1319
+ /**
1320
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1321
+ */
1322
+ preview?: string;
1323
+ },
1324
+ {
1325
+ /**
1326
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1327
+ */
1328
+ label: string;
1329
+ /**
1330
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1331
+ */
1332
+ description: string;
1333
+ /**
1334
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1335
+ */
1336
+ preview?: string;
1337
+ }
1338
+ ];
1339
+ /**
1340
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1341
+ */
1342
+ multiSelect: boolean;
1343
+ },
1344
+ {
1345
+ /**
1346
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1347
+ */
1348
+ question: string;
1349
+ /**
1350
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1351
+ */
1352
+ header: string;
1353
+ /**
1354
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1355
+ *
1356
+ * @minItems 2
1357
+ * @maxItems 4
1358
+ */
1359
+ options:
1360
+ | [
1361
+ {
1362
+ /**
1363
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1364
+ */
1365
+ label: string;
1366
+ /**
1367
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1368
+ */
1369
+ description: string;
1370
+ /**
1371
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1372
+ */
1373
+ preview?: string;
1374
+ },
1375
+ {
1376
+ /**
1377
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1378
+ */
1379
+ label: string;
1380
+ /**
1381
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1382
+ */
1383
+ description: string;
1384
+ /**
1385
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1386
+ */
1387
+ preview?: string;
1388
+ }
1389
+ ]
1390
+ | [
1391
+ {
1392
+ /**
1393
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1394
+ */
1395
+ label: string;
1396
+ /**
1397
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1398
+ */
1399
+ description: string;
1400
+ /**
1401
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1402
+ */
1403
+ preview?: string;
1404
+ },
1405
+ {
1406
+ /**
1407
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1408
+ */
1409
+ label: string;
1410
+ /**
1411
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1412
+ */
1413
+ description: string;
1414
+ /**
1415
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1416
+ */
1417
+ preview?: string;
1418
+ },
1419
+ {
1420
+ /**
1421
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1422
+ */
1423
+ label: string;
1424
+ /**
1425
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1426
+ */
1427
+ description: string;
1428
+ /**
1429
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1430
+ */
1431
+ preview?: string;
1432
+ }
1433
+ ]
1434
+ | [
1435
+ {
1436
+ /**
1437
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1438
+ */
1439
+ label: string;
1440
+ /**
1441
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1442
+ */
1443
+ description: string;
1444
+ /**
1445
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1446
+ */
1447
+ preview?: string;
1448
+ },
1449
+ {
1450
+ /**
1451
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1452
+ */
1453
+ label: string;
1454
+ /**
1455
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1456
+ */
1457
+ description: string;
1458
+ /**
1459
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1460
+ */
1461
+ preview?: string;
1462
+ },
1463
+ {
1464
+ /**
1465
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1466
+ */
1467
+ label: string;
1468
+ /**
1469
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1470
+ */
1471
+ description: string;
1472
+ /**
1473
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1474
+ */
1475
+ preview?: string;
1476
+ },
1477
+ {
1478
+ /**
1479
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1480
+ */
1481
+ label: string;
1482
+ /**
1483
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1484
+ */
1485
+ description: string;
1486
+ /**
1487
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1488
+ */
1489
+ preview?: string;
1490
+ }
1491
+ ];
1492
+ /**
1493
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1494
+ */
1495
+ multiSelect: boolean;
1496
+ }
1497
+ ]
1498
+ | [
1499
+ {
1500
+ /**
1501
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1502
+ */
1503
+ question: string;
1504
+ /**
1505
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1506
+ */
1507
+ header: string;
1508
+ /**
1509
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1510
+ *
1511
+ * @minItems 2
1512
+ * @maxItems 4
1513
+ */
1514
+ options:
1515
+ | [
1516
+ {
1517
+ /**
1518
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1519
+ */
1520
+ label: string;
1521
+ /**
1522
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1523
+ */
1524
+ description: string;
1525
+ /**
1526
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1527
+ */
1528
+ preview?: string;
1529
+ },
1530
+ {
1531
+ /**
1532
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1533
+ */
1534
+ label: string;
1535
+ /**
1536
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1537
+ */
1538
+ description: string;
1539
+ /**
1540
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1541
+ */
1542
+ preview?: string;
1543
+ }
1544
+ ]
1545
+ | [
1546
+ {
1547
+ /**
1548
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1549
+ */
1550
+ label: string;
1551
+ /**
1552
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1553
+ */
1554
+ description: string;
1555
+ /**
1556
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1557
+ */
1558
+ preview?: string;
1559
+ },
1560
+ {
1561
+ /**
1562
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1563
+ */
1564
+ label: string;
1565
+ /**
1566
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1567
+ */
1568
+ description: string;
1569
+ /**
1570
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1571
+ */
1572
+ preview?: string;
1573
+ },
1574
+ {
1575
+ /**
1576
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1577
+ */
1578
+ label: string;
1579
+ /**
1580
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1581
+ */
1582
+ description: string;
1583
+ /**
1584
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1585
+ */
1586
+ preview?: string;
1587
+ }
1588
+ ]
1589
+ | [
1590
+ {
1591
+ /**
1592
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1593
+ */
1594
+ label: string;
1595
+ /**
1596
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1597
+ */
1598
+ description: string;
1599
+ /**
1600
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1601
+ */
1602
+ preview?: string;
1603
+ },
1604
+ {
1605
+ /**
1606
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1607
+ */
1608
+ label: string;
1609
+ /**
1610
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1611
+ */
1612
+ description: string;
1613
+ /**
1614
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1615
+ */
1616
+ preview?: string;
1617
+ },
1618
+ {
1619
+ /**
1620
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1621
+ */
1622
+ label: string;
1623
+ /**
1624
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1625
+ */
1626
+ description: string;
1627
+ /**
1628
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1629
+ */
1630
+ preview?: string;
1631
+ },
1632
+ {
1633
+ /**
1634
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1635
+ */
1636
+ label: string;
1637
+ /**
1638
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1639
+ */
1640
+ description: string;
1641
+ /**
1642
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1643
+ */
1644
+ preview?: string;
1645
+ }
1646
+ ];
1647
+ /**
1648
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1649
+ */
1650
+ multiSelect: boolean;
1651
+ },
1652
+ {
1653
+ /**
1654
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1655
+ */
1656
+ question: string;
1657
+ /**
1658
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1659
+ */
1660
+ header: string;
1661
+ /**
1662
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1663
+ *
1664
+ * @minItems 2
1665
+ * @maxItems 4
1666
+ */
1667
+ options:
1668
+ | [
1669
+ {
1670
+ /**
1671
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1672
+ */
1673
+ label: string;
1674
+ /**
1675
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1676
+ */
1677
+ description: string;
1678
+ /**
1679
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1680
+ */
1681
+ preview?: string;
1682
+ },
1683
+ {
1684
+ /**
1685
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1686
+ */
1687
+ label: string;
1688
+ /**
1689
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1690
+ */
1691
+ description: string;
1692
+ /**
1693
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1694
+ */
1695
+ preview?: string;
1696
+ }
1697
+ ]
1698
+ | [
1699
+ {
1700
+ /**
1701
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1702
+ */
1703
+ label: string;
1704
+ /**
1705
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1706
+ */
1707
+ description: string;
1708
+ /**
1709
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1710
+ */
1711
+ preview?: string;
1712
+ },
1713
+ {
1714
+ /**
1715
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1716
+ */
1717
+ label: string;
1718
+ /**
1719
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1720
+ */
1721
+ description: string;
1722
+ /**
1723
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1724
+ */
1725
+ preview?: string;
1726
+ },
1727
+ {
1728
+ /**
1729
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1730
+ */
1731
+ label: string;
1732
+ /**
1733
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1734
+ */
1735
+ description: string;
1736
+ /**
1737
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1738
+ */
1739
+ preview?: string;
1740
+ }
1741
+ ]
1742
+ | [
1743
+ {
1744
+ /**
1745
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1746
+ */
1747
+ label: string;
1748
+ /**
1749
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1750
+ */
1751
+ description: string;
1752
+ /**
1753
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1754
+ */
1755
+ preview?: string;
1756
+ },
1757
+ {
1758
+ /**
1759
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1760
+ */
1761
+ label: string;
1762
+ /**
1763
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1764
+ */
1765
+ description: string;
1766
+ /**
1767
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1768
+ */
1769
+ preview?: string;
1770
+ },
1771
+ {
1772
+ /**
1773
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1774
+ */
1775
+ label: string;
1776
+ /**
1777
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1778
+ */
1779
+ description: string;
1780
+ /**
1781
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1782
+ */
1783
+ preview?: string;
1784
+ },
1785
+ {
1786
+ /**
1787
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1788
+ */
1789
+ label: string;
1790
+ /**
1791
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1792
+ */
1793
+ description: string;
1794
+ /**
1795
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1796
+ */
1797
+ preview?: string;
1798
+ }
1799
+ ];
1800
+ /**
1801
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1802
+ */
1803
+ multiSelect: boolean;
1804
+ },
1805
+ {
1806
+ /**
1807
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1808
+ */
1809
+ question: string;
1810
+ /**
1811
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1812
+ */
1813
+ header: string;
1814
+ /**
1815
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1816
+ *
1817
+ * @minItems 2
1818
+ * @maxItems 4
1819
+ */
1820
+ options:
1821
+ | [
1822
+ {
1823
+ /**
1824
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1825
+ */
1826
+ label: string;
1827
+ /**
1828
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1829
+ */
1830
+ description: string;
1831
+ /**
1832
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1833
+ */
1834
+ preview?: string;
1835
+ },
1836
+ {
1837
+ /**
1838
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1839
+ */
1840
+ label: string;
1841
+ /**
1842
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1843
+ */
1844
+ description: string;
1845
+ /**
1846
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1847
+ */
1848
+ preview?: string;
1849
+ }
1850
+ ]
1851
+ | [
1852
+ {
1853
+ /**
1854
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1855
+ */
1856
+ label: string;
1857
+ /**
1858
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1859
+ */
1860
+ description: string;
1861
+ /**
1862
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1863
+ */
1864
+ preview?: string;
1865
+ },
1866
+ {
1867
+ /**
1868
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1869
+ */
1870
+ label: string;
1871
+ /**
1872
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1873
+ */
1874
+ description: string;
1875
+ /**
1876
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1877
+ */
1878
+ preview?: string;
1879
+ },
1880
+ {
1881
+ /**
1882
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1883
+ */
1884
+ label: string;
1885
+ /**
1886
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1887
+ */
1888
+ description: string;
1889
+ /**
1890
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1891
+ */
1892
+ preview?: string;
1893
+ }
1894
+ ]
1895
+ | [
1896
+ {
1897
+ /**
1898
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1899
+ */
1900
+ label: string;
1901
+ /**
1902
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1903
+ */
1904
+ description: string;
1905
+ /**
1906
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1907
+ */
1908
+ preview?: string;
1909
+ },
1910
+ {
1911
+ /**
1912
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1913
+ */
1914
+ label: string;
1915
+ /**
1916
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1917
+ */
1918
+ description: string;
1919
+ /**
1920
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1921
+ */
1922
+ preview?: string;
1923
+ },
1924
+ {
1925
+ /**
1926
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1927
+ */
1928
+ label: string;
1929
+ /**
1930
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1931
+ */
1932
+ description: string;
1933
+ /**
1934
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1935
+ */
1936
+ preview?: string;
1937
+ },
1938
+ {
1939
+ /**
1940
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1941
+ */
1942
+ label: string;
1943
+ /**
1944
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1945
+ */
1946
+ description: string;
1947
+ /**
1948
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1949
+ */
1950
+ preview?: string;
1951
+ }
1952
+ ];
1953
+ /**
1954
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1955
+ */
1956
+ multiSelect: boolean;
1957
+ },
1958
+ {
1959
+ /**
1960
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1961
+ */
1962
+ question: string;
1963
+ /**
1964
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1965
+ */
1966
+ header: string;
1967
+ /**
1968
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1969
+ *
1970
+ * @minItems 2
1971
+ * @maxItems 4
1972
+ */
1973
+ options:
1974
+ | [
1975
+ {
1976
+ /**
1977
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1978
+ */
1979
+ label: string;
1980
+ /**
1981
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1982
+ */
1983
+ description: string;
1984
+ /**
1985
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1986
+ */
1987
+ preview?: string;
1988
+ },
1989
+ {
1990
+ /**
1991
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1992
+ */
1993
+ label: string;
1994
+ /**
1995
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1996
+ */
1997
+ description: string;
1998
+ /**
1999
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2000
+ */
2001
+ preview?: string;
2002
+ }
2003
+ ]
2004
+ | [
2005
+ {
2006
+ /**
2007
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2008
+ */
2009
+ label: string;
2010
+ /**
2011
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2012
+ */
2013
+ description: string;
2014
+ /**
2015
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2016
+ */
2017
+ preview?: string;
2018
+ },
2019
+ {
2020
+ /**
2021
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2022
+ */
2023
+ label: string;
2024
+ /**
2025
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2026
+ */
2027
+ description: string;
2028
+ /**
2029
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2030
+ */
2031
+ preview?: string;
2032
+ },
2033
+ {
2034
+ /**
2035
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2036
+ */
2037
+ label: string;
2038
+ /**
2039
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2040
+ */
2041
+ description: string;
2042
+ /**
2043
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2044
+ */
2045
+ preview?: string;
2046
+ }
2047
+ ]
2048
+ | [
2049
+ {
2050
+ /**
2051
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2052
+ */
2053
+ label: string;
2054
+ /**
2055
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2056
+ */
2057
+ description: string;
2058
+ /**
2059
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2060
+ */
2061
+ preview?: string;
2062
+ },
2063
+ {
2064
+ /**
2065
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2066
+ */
2067
+ label: string;
2068
+ /**
2069
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2070
+ */
2071
+ description: string;
2072
+ /**
2073
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2074
+ */
2075
+ preview?: string;
2076
+ },
2077
+ {
2078
+ /**
2079
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2080
+ */
2081
+ label: string;
2082
+ /**
2083
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2084
+ */
2085
+ description: string;
2086
+ /**
2087
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2088
+ */
2089
+ preview?: string;
2090
+ },
2091
+ {
2092
+ /**
2093
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2094
+ */
2095
+ label: string;
2096
+ /**
2097
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2098
+ */
2099
+ description: string;
2100
+ /**
2101
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2102
+ */
2103
+ preview?: string;
2104
+ }
2105
+ ];
2106
+ /**
2107
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
2108
+ */
2109
+ multiSelect: boolean;
2110
+ }
2111
+ ];
2112
+ /**
2113
+ * User answers collected by the permission component
2114
+ */
2115
+ answers?: {
2116
+ [k: string]: string;
2117
+ };
2118
+ /**
2119
+ * Optional per-question annotations from the user (e.g., notes on preview selections). Keyed by question text.
2120
+ */
2121
+ annotations?: {
2122
+ [k: string]: {
2123
+ /**
2124
+ * The preview content of the selected option, if the question used previews.
2125
+ */
2126
+ preview?: string;
2127
+ /**
2128
+ * Free-text notes the user added to their selection.
2129
+ */
2130
+ notes?: string;
2131
+ };
2132
+ };
2133
+ /**
2134
+ * Optional metadata for tracking and analytics purposes. Not displayed to user.
2135
+ */
2136
+ metadata?: {
2137
+ /**
2138
+ * Optional identifier for the source of this question (e.g., "remember" for /remember command). Used for analytics tracking.
2139
+ */
2140
+ source?: string;
2141
+ };
2142
+ }
2143
+ export interface ConfigInput {
2144
+ /**
2145
+ * The setting key (e.g., "theme", "model", "permissions.defaultMode")
2146
+ */
2147
+ setting: string;
2148
+ /**
2149
+ * The new value. Omit to get current value.
2150
+ */
2151
+ value?: string | boolean | number;
2152
+ }
2153
+ export interface EnterWorktreeInput {
2154
+ /**
2155
+ * Optional name for a new worktree. Each "/"-separated segment may contain only letters, digits, dots, underscores, and dashes; max 64 chars total. A random name is generated if not provided. Mutually exclusive with `path`.
2156
+ */
2157
+ name?: string;
2158
+ /**
2159
+ * Path to an existing worktree of the current repository to switch into instead of creating a new one. Must appear in `git worktree list` for the current repo. Mutually exclusive with `name`.
2160
+ */
2161
+ path?: string;
2162
+ }
2163
+ export interface ExitWorktreeInput {
2164
+ /**
2165
+ * "keep" leaves the worktree and branch on disk; "remove" deletes both.
2166
+ */
2167
+ action: "keep" | "remove";
2168
+ /**
2169
+ * Required true when action is "remove" and the worktree has uncommitted files or unmerged commits. The tool will refuse and list them otherwise.
2170
+ */
2171
+ discard_changes?: boolean;
2172
+ }
2173
+ export interface BashOutput {
2174
+ /**
2175
+ * The standard output of the command
2176
+ */
2177
+ stdout: string;
2178
+ /**
2179
+ * The standard error output of the command
2180
+ */
2181
+ stderr: string;
2182
+ /**
2183
+ * Path to raw output file for large MCP tool outputs
2184
+ */
2185
+ rawOutputPath?: string;
2186
+ /**
2187
+ * Whether the command was interrupted
2188
+ */
2189
+ interrupted: boolean;
2190
+ /**
2191
+ * Flag to indicate if stdout contains image data
2192
+ */
2193
+ isImage?: boolean;
2194
+ /**
2195
+ * ID of the background task if command is running in background
2196
+ */
2197
+ backgroundTaskId?: string;
2198
+ /**
2199
+ * True if the user manually backgrounded the command with Ctrl+B
2200
+ */
2201
+ backgroundedByUser?: boolean;
2202
+ /**
2203
+ * True if assistant-mode auto-backgrounded a long-running blocking command
2204
+ */
2205
+ assistantAutoBackgrounded?: boolean;
2206
+ /**
2207
+ * Flag to indicate if sandbox mode was overridden
2208
+ */
2209
+ dangerouslyDisableSandbox?: boolean;
2210
+ /**
2211
+ * Semantic interpretation for non-error exit codes with special meaning
2212
+ */
2213
+ returnCodeInterpretation?: string;
2214
+ /**
2215
+ * Whether the command is expected to produce no output on success
2216
+ */
2217
+ noOutputExpected?: boolean;
2218
+ /**
2219
+ * Structured content blocks
2220
+ */
2221
+ structuredContent?: unknown[];
2222
+ /**
2223
+ * Path to the persisted full output in tool-results dir (set when output is too large for inline)
2224
+ */
2225
+ persistedOutputPath?: string;
2226
+ /**
2227
+ * Total size of the output in bytes (set when output is too large for inline)
2228
+ */
2229
+ persistedOutputSize?: number;
2230
+ /**
2231
+ * Model-facing note listing readFileState entries whose mtime bumped during this command (set when WRITE_COMMAND_MARKERS matches)
2232
+ */
2233
+ staleReadFileStateHint?: string;
2234
+ }
2235
+ export interface ExitPlanModeOutput {
2236
+ /**
2237
+ * The plan that was presented to the user
2238
+ */
2239
+ plan: string | null;
2240
+ isAgent: boolean;
2241
+ /**
2242
+ * The file path where the plan was saved
2243
+ */
2244
+ filePath?: string;
2245
+ /**
2246
+ * Whether the Agent tool is available in the current context
2247
+ */
2248
+ hasTaskTool?: boolean;
2249
+ /**
2250
+ * True when the user edited the plan (CCR web UI or Ctrl+G); determines whether the plan is echoed back in tool_result
2251
+ */
2252
+ planWasEdited?: boolean;
2253
+ /**
2254
+ * When true, the teammate has sent a plan approval request to the team leader
2255
+ */
2256
+ awaitingLeaderApproval?: boolean;
2257
+ /**
2258
+ * Unique identifier for the plan approval request
2259
+ */
2260
+ requestId?: string;
2261
+ }
2262
+ export interface FileEditOutput {
2263
+ /**
2264
+ * The file path that was edited
2265
+ */
2266
+ filePath: string;
2267
+ /**
2268
+ * The original string that was replaced
2269
+ */
2270
+ oldString: string;
2271
+ /**
2272
+ * The new string that replaced it
2273
+ */
2274
+ newString: string;
2275
+ /**
2276
+ * The original file contents before editing
2277
+ */
2278
+ originalFile: string | null;
2279
+ /**
2280
+ * Diff patch showing the changes
2281
+ */
2282
+ structuredPatch: {
2283
+ oldStart: number;
2284
+ oldLines: number;
2285
+ newStart: number;
2286
+ newLines: number;
2287
+ lines: string[];
2288
+ }[];
2289
+ /**
2290
+ * Whether the user modified the proposed changes
2291
+ */
2292
+ userModified: boolean;
2293
+ /**
2294
+ * Whether all occurrences were replaced
2295
+ */
2296
+ replaceAll: boolean;
2297
+ gitDiff?: {
2298
+ filename: string;
2299
+ status: "modified" | "added";
2300
+ additions: number;
2301
+ deletions: number;
2302
+ changes: number;
2303
+ patch: string;
2304
+ /**
2305
+ * GitHub owner/repo when available
2306
+ */
2307
+ repository?: string | null;
2308
+ };
2309
+ }
2310
+ export interface FileWriteOutput {
2311
+ /**
2312
+ * Whether a new file was created or an existing file was updated
2313
+ */
2314
+ type: "create" | "update";
2315
+ /**
2316
+ * The path to the file that was written
2317
+ */
2318
+ filePath: string;
2319
+ /**
2320
+ * The content that was written to the file
2321
+ */
2322
+ content: string;
2323
+ /**
2324
+ * Diff patch showing the changes
2325
+ */
2326
+ structuredPatch: {
2327
+ oldStart: number;
2328
+ oldLines: number;
2329
+ newStart: number;
2330
+ newLines: number;
2331
+ lines: string[];
2332
+ }[];
2333
+ /**
2334
+ * The original file content before the write (null for new files)
2335
+ */
2336
+ originalFile: string | null;
2337
+ gitDiff?: {
2338
+ filename: string;
2339
+ status: "modified" | "added";
2340
+ additions: number;
2341
+ deletions: number;
2342
+ changes: number;
2343
+ patch: string;
2344
+ /**
2345
+ * GitHub owner/repo when available
2346
+ */
2347
+ repository?: string | null;
2348
+ };
2349
+ /**
2350
+ * True when the user edited the proposed content in the permission dialog before accepting
2351
+ */
2352
+ userModified?: boolean;
2353
+ }
2354
+ export interface GlobOutput {
2355
+ /**
2356
+ * Time taken to execute the search in milliseconds
2357
+ */
2358
+ durationMs: number;
2359
+ /**
2360
+ * Total number of files found
2361
+ */
2362
+ numFiles: number;
2363
+ /**
2364
+ * Array of file paths that match the pattern
2365
+ */
2366
+ filenames: string[];
2367
+ /**
2368
+ * Whether results were truncated (limited to 100 files)
2369
+ */
2370
+ truncated: boolean;
2371
+ }
2372
+ export interface GrepOutput {
2373
+ mode?: "content" | "files_with_matches" | "count";
2374
+ numFiles: number;
2375
+ filenames: string[];
2376
+ content?: string;
2377
+ numLines?: number;
2378
+ numMatches?: number;
2379
+ appliedLimit?: number;
2380
+ appliedOffset?: number;
2381
+ }
2382
+ export interface TaskStopOutput {
2383
+ /**
2384
+ * Status message about the operation
2385
+ */
2386
+ message: string;
2387
+ /**
2388
+ * The ID of the task that was stopped
2389
+ */
2390
+ task_id: string;
2391
+ /**
2392
+ * The type of the task that was stopped
2393
+ */
2394
+ task_type: string;
2395
+ /**
2396
+ * The command or description of the stopped task
2397
+ */
2398
+ command?: string;
2399
+ }
2400
+ export interface NotebookEditOutput {
2401
+ /**
2402
+ * The new source code that was written to the cell
2403
+ */
2404
+ new_source: string;
2405
+ /**
2406
+ * The ID of the cell that was edited
2407
+ */
2408
+ cell_id?: string;
2409
+ /**
2410
+ * The type of the cell
2411
+ */
2412
+ cell_type: "code" | "markdown";
2413
+ /**
2414
+ * The programming language of the notebook
2415
+ */
2416
+ language: string;
2417
+ /**
2418
+ * The edit mode that was used
2419
+ */
2420
+ edit_mode: string;
2421
+ /**
2422
+ * Error message if the operation failed
2423
+ */
2424
+ error?: string;
2425
+ /**
2426
+ * The path to the notebook file
2427
+ */
2428
+ notebook_path: string;
2429
+ /**
2430
+ * The original notebook content before modification
2431
+ */
2432
+ original_file: string;
2433
+ /**
2434
+ * The updated notebook content after modification
2435
+ */
2436
+ updated_file: string;
2437
+ }
2438
+ export interface ReadMcpResourceOutput {
2439
+ contents: {
2440
+ /**
2441
+ * Resource URI
2442
+ */
2443
+ uri: string;
2444
+ /**
2445
+ * MIME type of the content
2446
+ */
2447
+ mimeType?: string;
2448
+ /**
2449
+ * Text content of the resource
2450
+ */
2451
+ text?: string;
2452
+ /**
2453
+ * Path where binary blob content was saved
2454
+ */
2455
+ blobSavedTo?: string;
2456
+ }[];
2457
+ }
2458
+ export interface TodoWriteOutput {
2459
+ /**
2460
+ * The todo list before the update
2461
+ */
2462
+ oldTodos: {
2463
+ content: string;
2464
+ status: "pending" | "in_progress" | "completed";
2465
+ activeForm: string;
2466
+ }[];
2467
+ /**
2468
+ * The todo list after the update
2469
+ */
2470
+ newTodos: {
2471
+ content: string;
2472
+ status: "pending" | "in_progress" | "completed";
2473
+ activeForm: string;
2474
+ }[];
2475
+ verificationNudgeNeeded?: boolean;
2476
+ }
2477
+ export interface WebFetchOutput {
2478
+ /**
2479
+ * Size of the fetched content in bytes
2480
+ */
2481
+ bytes: number;
2482
+ /**
2483
+ * HTTP response code
2484
+ */
2485
+ code: number;
2486
+ /**
2487
+ * HTTP response code text
2488
+ */
2489
+ codeText: string;
2490
+ /**
2491
+ * Processed result from applying the prompt to the content
2492
+ */
2493
+ result: string;
2494
+ /**
2495
+ * Time taken to fetch and process the content
2496
+ */
2497
+ durationMs: number;
2498
+ /**
2499
+ * The URL that was fetched
2500
+ */
2501
+ url: string;
2502
+ }
2503
+ export interface WebSearchOutput {
2504
+ /**
2505
+ * The search query that was executed
2506
+ */
2507
+ query: string;
2508
+ /**
2509
+ * Search results and/or text commentary from the model
2510
+ */
2511
+ results: (
2512
+ | {
2513
+ /**
2514
+ * ID of the tool use
2515
+ */
2516
+ tool_use_id: string;
2517
+ /**
2518
+ * Array of search hits
2519
+ */
2520
+ content: {
2521
+ /**
2522
+ * The title of the search result
2523
+ */
2524
+ title: string;
2525
+ /**
2526
+ * The URL of the search result
2527
+ */
2528
+ url: string;
2529
+ }[];
2530
+ }
2531
+ | string
2532
+ )[];
2533
+ /**
2534
+ * Time taken to complete the search operation
2535
+ */
2536
+ durationSeconds: number;
2537
+ }
2538
+ export interface AskUserQuestionOutput {
2539
+ /**
2540
+ * The questions that were asked
2541
+ */
2542
+ questions: {
2543
+ /**
2544
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
2545
+ */
2546
+ question: string;
2547
+ /**
2548
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
2549
+ */
2550
+ header: string;
2551
+ /**
2552
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
2553
+ *
2554
+ * @minItems 2
2555
+ * @maxItems 4
2556
+ */
2557
+ options:
2558
+ | [
2559
+ {
2560
+ /**
2561
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2562
+ */
2563
+ label: string;
2564
+ /**
2565
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2566
+ */
2567
+ description: string;
2568
+ /**
2569
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2570
+ */
2571
+ preview?: string;
2572
+ },
2573
+ {
2574
+ /**
2575
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2576
+ */
2577
+ label: string;
2578
+ /**
2579
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2580
+ */
2581
+ description: string;
2582
+ /**
2583
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2584
+ */
2585
+ preview?: string;
2586
+ }
2587
+ ]
2588
+ | [
2589
+ {
2590
+ /**
2591
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2592
+ */
2593
+ label: string;
2594
+ /**
2595
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2596
+ */
2597
+ description: string;
2598
+ /**
2599
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2600
+ */
2601
+ preview?: string;
2602
+ },
2603
+ {
2604
+ /**
2605
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2606
+ */
2607
+ label: string;
2608
+ /**
2609
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2610
+ */
2611
+ description: string;
2612
+ /**
2613
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2614
+ */
2615
+ preview?: string;
2616
+ },
2617
+ {
2618
+ /**
2619
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2620
+ */
2621
+ label: string;
2622
+ /**
2623
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2624
+ */
2625
+ description: string;
2626
+ /**
2627
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2628
+ */
2629
+ preview?: string;
2630
+ }
2631
+ ]
2632
+ | [
2633
+ {
2634
+ /**
2635
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2636
+ */
2637
+ label: string;
2638
+ /**
2639
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2640
+ */
2641
+ description: string;
2642
+ /**
2643
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2644
+ */
2645
+ preview?: string;
2646
+ },
2647
+ {
2648
+ /**
2649
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2650
+ */
2651
+ label: string;
2652
+ /**
2653
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2654
+ */
2655
+ description: string;
2656
+ /**
2657
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2658
+ */
2659
+ preview?: string;
2660
+ },
2661
+ {
2662
+ /**
2663
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2664
+ */
2665
+ label: string;
2666
+ /**
2667
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2668
+ */
2669
+ description: string;
2670
+ /**
2671
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2672
+ */
2673
+ preview?: string;
2674
+ },
2675
+ {
2676
+ /**
2677
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2678
+ */
2679
+ label: string;
2680
+ /**
2681
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2682
+ */
2683
+ description: string;
2684
+ /**
2685
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2686
+ */
2687
+ preview?: string;
2688
+ }
2689
+ ];
2690
+ /**
2691
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
2692
+ */
2693
+ multiSelect: boolean;
2694
+ }[];
2695
+ /**
2696
+ * The answers provided by the user (question text -> answer string; multi-select answers are comma-separated)
2697
+ */
2698
+ answers: {
2699
+ [k: string]: string;
2700
+ };
2701
+ /**
2702
+ * Optional per-question annotations from the user (e.g., notes on preview selections). Keyed by question text.
2703
+ */
2704
+ annotations?: {
2705
+ [k: string]: {
2706
+ /**
2707
+ * The preview content of the selected option, if the question used previews.
2708
+ */
2709
+ preview?: string;
2710
+ /**
2711
+ * Free-text notes the user added to their selection.
2712
+ */
2713
+ notes?: string;
2714
+ };
2715
+ };
2716
+ }
2717
+ export interface ConfigOutput {
2718
+ success: boolean;
2719
+ operation?: "get" | "set";
2720
+ setting?: string;
2721
+ value?: unknown;
2722
+ previousValue?: unknown;
2723
+ newValue?: unknown;
2724
+ error?: string;
2725
+ }
2726
+ export interface EnterWorktreeOutput {
2727
+ worktreePath: string;
2728
+ worktreeBranch?: string;
2729
+ message: string;
2730
+ }
2731
+ export interface ExitWorktreeOutput {
2732
+ action: "keep" | "remove";
2733
+ originalCwd: string;
2734
+ worktreePath: string;
2735
+ worktreeBranch?: string;
2736
+ tmuxSessionName?: string;
2737
+ discardedFiles?: number;
2738
+ discardedCommits?: number;
2739
+ message: string;
2740
+ }