@quantiya/codevibe-core 2.0.22 → 2.0.23

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.
@@ -27,7 +27,9 @@ export interface ParsedInteractivePrompt {
27
27
  *
28
28
  * Returns null if no prompt is detected.
29
29
  */
30
- export declare function parseInteractivePrompt(snapshot: string): ParsedInteractivePrompt | null;
30
+ export declare function parseInteractivePrompt(snapshot: string, options?: {
31
+ boundedOptionBlock?: boolean;
32
+ }): ParsedInteractivePrompt | null;
31
33
  /**
32
34
  * Strip ANSI escape codes, box-drawing characters, and normalize whitespace
33
35
  * from terminal output.
@@ -0,0 +1,22 @@
1
+ import { ParsedInteractivePrompt } from './prompt-parser';
2
+ export interface TerminalMenu {
3
+ prompt: ParsedInteractivePrompt;
4
+ selectedNumber: string;
5
+ /** Stable across ANSI repaint and selection movement, not a prompt occurrence ID. */
6
+ identity: string;
7
+ snapshot: string;
8
+ }
9
+ export type TerminalMenuDelivery = 'sent' | 'unverified' | 'send_failed' | 'stale';
10
+ /** Run inside the provider's serialized input owner; never guess numeric hotkeys. */
11
+ export declare function selectTerminalMenuOption(identity: string, number: string, io: {
12
+ current(): boolean;
13
+ read(): Promise<TerminalMenu | null>;
14
+ key(key: 'Up' | 'Down' | 'Enter'): Promise<boolean>;
15
+ wait(): Promise<void>;
16
+ }): Promise<TerminalMenuDelivery>;
17
+ /**
18
+ * Recognize a bottom-pane numbered selector, never a bare numbered list.
19
+ * Requires a styled title, exactly one selected option, and a separate terminal
20
+ * footer. Labels are data: there is no dialog-title or approval-phrase allowlist.
21
+ */
22
+ export declare function parseActiveTerminalMenu(snapshot: string): TerminalMenu | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-core",
3
- "version": "2.0.22",
3
+ "version": "2.0.23",
4
4
  "description": "Core library for CodeVibe plugins - shared keychain, crypto, AppSync, and auth functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",