@navios/commander-tui 1.0.0 → 1.2.0

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +27 -0
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/lib/index.cjs +338 -22
  5. package/lib/index.cjs.map +1 -1
  6. package/lib/index.d.cts +161 -118
  7. package/lib/index.d.cts.map +1 -1
  8. package/lib/index.d.mts +176 -133
  9. package/lib/index.d.mts.map +1 -1
  10. package/lib/index.mjs +333 -24
  11. package/lib/index.mjs.map +1 -1
  12. package/lib/{screen_manager_bridge-DN2J6_k1.mjs → screen_manager_bridge-Bk1i53h5.mjs} +1 -1
  13. package/lib/{screen_manager_bridge-Dfg4QUrl.mjs → screen_manager_bridge-BwPVr0bX.mjs} +17 -3
  14. package/lib/screen_manager_bridge-BwPVr0bX.mjs.map +1 -0
  15. package/lib/{screen_manager_bridge-BpDgVu3e.cjs → screen_manager_bridge-CWxLO0CK.cjs} +17 -3
  16. package/lib/screen_manager_bridge-CWxLO0CK.cjs.map +1 -0
  17. package/lib/{screen_manager_bridge-CkV7637i.cjs → screen_manager_bridge-DXc57iXW.cjs} +1 -1
  18. package/package.json +1 -1
  19. package/src/__tests__/components/__snapshots__/filter_bar.spec.tsx.snap +2604 -0
  20. package/src/__tests__/components/__snapshots__/loading_message.spec.tsx.snap +1621 -0
  21. package/src/__tests__/components/__snapshots__/log_message.spec.tsx.snap +3757 -0
  22. package/src/__tests__/components/__snapshots__/progress_message.spec.tsx.snap +2042 -0
  23. package/src/__tests__/components/__snapshots__/prompt_renderer.spec.tsx.snap +3652 -0
  24. package/src/__tests__/components/__snapshots__/sidebar.spec.tsx.snap +3426 -0
  25. package/src/__tests__/components/sidebar.spec.tsx +17 -0
  26. package/src/__tests__/services/logger.spec.ts +5 -3
  27. package/src/factories/index.ts +1 -0
  28. package/src/factories/isomorphic-logger.factory.ts +23 -0
  29. package/src/index.ts +5 -0
  30. package/src/interfaces/index.ts +1 -0
  31. package/src/interfaces/isomorphic-logger.ts +9 -0
  32. package/src/overrides/console.logger.override.ts +8 -1
  33. package/src/schemas/screen-options.ts +2 -0
  34. package/src/services/logger.ts +1 -1
  35. package/src/services/screen.ts +3 -0
  36. package/src/services/screen_manager.tsx +16 -12
  37. package/src/themes/dark.ts +4 -0
  38. package/src/themes/high-contrast.ts +4 -0
  39. package/src/themes/light.ts +4 -0
  40. package/src/tokens/logger.ts +9 -0
  41. package/src/types/screen.types.ts +2 -2
  42. package/src/types/theme.types.ts +1 -0
  43. package/src/utils/format.ts +3 -2
  44. package/lib/screen_manager_bridge-BpDgVu3e.cjs.map +0 -1
  45. package/lib/screen_manager_bridge-Dfg4QUrl.mjs.map +0 -1
@@ -138,6 +138,10 @@ exports[`PromptRenderer > choice prompt > should render choice prompt with optio
138
138
  "color": "#F59E0B",
139
139
  "icon": "◐",
140
140
  },
141
+ "static": {
142
+ "color": "#3B82F6",
143
+ "icon": "●",
144
+ },
141
145
  "success": {
142
146
  "color": "#22C55E",
143
147
  "icon": "✓",
@@ -328,6 +332,10 @@ exports[`PromptRenderer > choice prompt > should render choice with input mode 1
328
332
  "color": "#F59E0B",
329
333
  "icon": "◐",
330
334
  },
335
+ "static": {
336
+ "color": "#3B82F6",
337
+ "icon": "●",
338
+ },
331
339
  "success": {
332
340
  "color": "#22C55E",
333
341
  "icon": "✓",
@@ -515,6 +523,10 @@ exports[`PromptRenderer > choice prompt > should render choice with timeout 1`]
515
523
  "color": "#F59E0B",
516
524
  "icon": "◐",
517
525
  },
526
+ "static": {
527
+ "color": "#3B82F6",
528
+ "icon": "●",
529
+ },
518
530
  "success": {
519
531
  "color": "#22C55E",
520
532
  "icon": "✓",
@@ -699,6 +711,10 @@ exports[`PromptRenderer > choice prompt > should render resolved choice prompt 1
699
711
  "color": "#F59E0B",
700
712
  "icon": "◐",
701
713
  },
714
+ "static": {
715
+ "color": "#3B82F6",
716
+ "icon": "●",
717
+ },
702
718
  "success": {
703
719
  "color": "#22C55E",
704
720
  "icon": "✓",
@@ -886,6 +902,10 @@ exports[`PromptRenderer > choice prompt > should render selected option highligh
886
902
  "color": "#F59E0B",
887
903
  "icon": "◐",
888
904
  },
905
+ "static": {
906
+ "color": "#3B82F6",
907
+ "icon": "●",
908
+ },
889
909
  "success": {
890
910
  "color": "#22C55E",
891
911
  "icon": "✓",
@@ -1076,6 +1096,10 @@ exports[`PromptRenderer > confirm prompt > should render confirm prompt (Yes/No)
1076
1096
  "color": "#F59E0B",
1077
1097
  "icon": "◐",
1078
1098
  },
1099
+ "static": {
1100
+ "color": "#3B82F6",
1101
+ "icon": "●",
1102
+ },
1079
1103
  "success": {
1080
1104
  "color": "#22C55E",
1081
1105
  "icon": "✓",
@@ -1252,6 +1276,10 @@ exports[`PromptRenderer > confirm prompt > should render resolved confirm prompt
1252
1276
  "color": "#F59E0B",
1253
1277
  "icon": "◐",
1254
1278
  },
1279
+ "static": {
1280
+ "color": "#3B82F6",
1281
+ "icon": "●",
1282
+ },
1255
1283
  "success": {
1256
1284
  "color": "#22C55E",
1257
1285
  "icon": "✓",
@@ -1429,6 +1457,10 @@ exports[`PromptRenderer > confirm prompt > should render with No selected 1`] =
1429
1457
  "color": "#F59E0B",
1430
1458
  "icon": "◐",
1431
1459
  },
1460
+ "static": {
1461
+ "color": "#3B82F6",
1462
+ "icon": "●",
1463
+ },
1432
1464
  "success": {
1433
1465
  "color": "#22C55E",
1434
1466
  "icon": "✓",
@@ -1605,6 +1637,10 @@ exports[`PromptRenderer > confirm prompt > should render with custom button labe
1605
1637
  "color": "#F59E0B",
1606
1638
  "icon": "◐",
1607
1639
  },
1640
+ "static": {
1641
+ "color": "#3B82F6",
1642
+ "icon": "●",
1643
+ },
1608
1644
  "success": {
1609
1645
  "color": "#22C55E",
1610
1646
  "icon": "✓",
@@ -1781,6 +1817,10 @@ exports[`PromptRenderer > input prompt > should render input prompt with placeho
1781
1817
  "color": "#F59E0B",
1782
1818
  "icon": "◐",
1783
1819
  },
1820
+ "static": {
1821
+ "color": "#3B82F6",
1822
+ "icon": "●",
1823
+ },
1784
1824
  "success": {
1785
1825
  "color": "#22C55E",
1786
1826
  "icon": "✓",
@@ -1956,6 +1996,10 @@ exports[`PromptRenderer > input prompt > should render input with entered value
1956
1996
  "color": "#F59E0B",
1957
1997
  "icon": "◐",
1958
1998
  },
1999
+ "static": {
2000
+ "color": "#3B82F6",
2001
+ "icon": "●",
2002
+ },
1959
2003
  "success": {
1960
2004
  "color": "#22C55E",
1961
2005
  "icon": "✓",
@@ -2131,6 +2175,10 @@ exports[`PromptRenderer > input prompt > should render resolved input prompt 1`]
2131
2175
  "color": "#F59E0B",
2132
2176
  "icon": "◐",
2133
2177
  },
2178
+ "static": {
2179
+ "color": "#3B82F6",
2180
+ "icon": "●",
2181
+ },
2134
2182
  "success": {
2135
2183
  "color": "#22C55E",
2136
2184
  "icon": "✓",
@@ -2307,6 +2355,10 @@ exports[`PromptRenderer > multiChoice prompt > should render multiChoice with ch
2307
2355
  "color": "#F59E0B",
2308
2356
  "icon": "◐",
2309
2357
  },
2358
+ "static": {
2359
+ "color": "#3B82F6",
2360
+ "icon": "●",
2361
+ },
2310
2362
  "success": {
2311
2363
  "color": "#22C55E",
2312
2364
  "icon": "✓",
@@ -2497,6 +2549,10 @@ exports[`PromptRenderer > multiChoice prompt > should render resolved multiChoic
2497
2549
  "color": "#F59E0B",
2498
2550
  "icon": "◐",
2499
2551
  },
2552
+ "static": {
2553
+ "color": "#3B82F6",
2554
+ "icon": "●",
2555
+ },
2500
2556
  "success": {
2501
2557
  "color": "#22C55E",
2502
2558
  "icon": "✓",
@@ -2690,6 +2746,10 @@ exports[`PromptRenderer > multiChoice prompt > should render with some options s
2690
2746
  "color": "#F59E0B",
2691
2747
  "icon": "◐",
2692
2748
  },
2749
+ "static": {
2750
+ "color": "#3B82F6",
2751
+ "icon": "●",
2752
+ },
2693
2753
  "success": {
2694
2754
  "color": "#22C55E",
2695
2755
  "icon": "✓",
@@ -2883,6 +2943,10 @@ exports[`PromptRenderer > multiChoice prompt > should show minSelect warning whe
2883
2943
  "color": "#F59E0B",
2884
2944
  "icon": "◐",
2885
2945
  },
2946
+ "static": {
2947
+ "color": "#3B82F6",
2948
+ "icon": "●",
2949
+ },
2886
2950
  "success": {
2887
2951
  "color": "#22C55E",
2888
2952
  "icon": "✓",
@@ -3075,6 +3139,10 @@ exports[`PromptRenderer > multiChoice prompt > should show selection count 1`] =
3075
3139
  "color": "#F59E0B",
3076
3140
  "icon": "◐",
3077
3141
  },
3142
+ "static": {
3143
+ "color": "#3B82F6",
3144
+ "icon": "●",
3145
+ },
3078
3146
  "success": {
3079
3147
  "color": "#22C55E",
3080
3148
  "icon": "✓",
@@ -3133,3 +3201,3587 @@ exports[`PromptRenderer > multiChoice prompt > should show selection count 1`] =
3133
3201
  />
3134
3202
  </LoggerProvider>
3135
3203
  `;
3204
+
3205
+ exports[`PromptRenderer choice prompt should render choice prompt with options 1`] = `
3206
+ {
3207
+ "$$typeof": Symbol(react.transitional.element),
3208
+ "_debugInfo": null,
3209
+ "_debugStack": [Error: react-stack-top-frame],
3210
+ "_debugTask": null,
3211
+ "_owner": null,
3212
+ "_store": {
3213
+ "validated": 0,
3214
+ },
3215
+ "key": null,
3216
+ "props": {
3217
+ "children": {
3218
+ "$$typeof": Symbol(react.transitional.element),
3219
+ "_debugInfo": null,
3220
+ "_debugStack": [Error: react-stack-top-frame],
3221
+ "_debugTask": null,
3222
+ "_owner": null,
3223
+ "_store": {
3224
+ "validated": 1,
3225
+ },
3226
+ "key": null,
3227
+ "props": {
3228
+ "prompt": {
3229
+ "choices": [
3230
+ {
3231
+ "label": "Option A",
3232
+ "value": "a",
3233
+ },
3234
+ {
3235
+ "label": "Option B",
3236
+ "value": "b",
3237
+ },
3238
+ {
3239
+ "label": "Option C",
3240
+ "value": "c",
3241
+ },
3242
+ ],
3243
+ "defaultChoice": "a",
3244
+ "id": "prompt-11",
3245
+ "inputMode": false,
3246
+ "inputValue": "",
3247
+ "question": "Select an option",
3248
+ "resolved": false,
3249
+ "selectedIndex": 0,
3250
+ "timestamp": 2025-01-01T00:00:00.000Z,
3251
+ "type": "choice",
3252
+ },
3253
+ },
3254
+ "ref": null,
3255
+ "type": [Function: PromptRenderer],
3256
+ },
3257
+ "levelColors": undefined,
3258
+ "theme": {
3259
+ "colors": {
3260
+ "background": "#111827",
3261
+ "error": "#EF4444",
3262
+ "foreground": "#F9FAFB",
3263
+ "muted": "#6B7280",
3264
+ "primary": "#3B82F6",
3265
+ "secondary": "#8B5CF6",
3266
+ "success": "#22C55E",
3267
+ "warning": "#F59E0B",
3268
+ },
3269
+ "errorHighlight": {
3270
+ "background": "#EF444425",
3271
+ "border": "#EF4444",
3272
+ "gutterBackground": "#EF444440",
3273
+ },
3274
+ "file": {
3275
+ "background": "#3B82F615",
3276
+ "border": "#3B82F6",
3277
+ "headerBackground": "#3B82F625",
3278
+ "headerText": "#F9FAFB",
3279
+ },
3280
+ "filter": {
3281
+ "activeLevel": "#3B82F6",
3282
+ "background": "#1F293780",
3283
+ "border": "#3B82F6",
3284
+ "cursor": "#3B82F6",
3285
+ "inactiveLevel": "#4B5563",
3286
+ "inputBackground": "#1F2937",
3287
+ "inputPlaceholder": "#6B7280",
3288
+ "inputText": "#F9FAFB",
3289
+ "text": "#E5E7EB",
3290
+ "textDim": "#6B7280",
3291
+ },
3292
+ "group": {
3293
+ "background": "#6B728010",
3294
+ "border": "#6B7280",
3295
+ "headerText": "#E5E7EB",
3296
+ "icon": "#9CA3AF",
3297
+ },
3298
+ "header": {
3299
+ "background": undefined,
3300
+ "border": "#374151",
3301
+ "text": "#F9FAFB",
3302
+ },
3303
+ "help": {
3304
+ "background": "#1F2937",
3305
+ "border": "#3B82F6",
3306
+ "category": "#3B82F6",
3307
+ "description": "#E5E7EB",
3308
+ "hint": "#6B7280",
3309
+ "key": "#F59E0B",
3310
+ "title": "#F9FAFB",
3311
+ },
3312
+ "logLevels": {
3313
+ "debug": {
3314
+ "background": "#8B5CF615",
3315
+ "border": "#8B5CF6",
3316
+ },
3317
+ "error": {
3318
+ "background": "#EF444415",
3319
+ "border": "#EF4444",
3320
+ },
3321
+ "fatal": {
3322
+ "background": "#DC262625",
3323
+ "border": "#DC2626",
3324
+ "text": "#FCA5A5",
3325
+ },
3326
+ "log": {
3327
+ "background": "#3B82F615",
3328
+ "border": "#3B82F6",
3329
+ },
3330
+ "verbose": {
3331
+ "background": "#6B728015",
3332
+ "border": "#6B7280",
3333
+ },
3334
+ "warn": {
3335
+ "background": "#F59E0B15",
3336
+ "border": "#F59E0B",
3337
+ },
3338
+ },
3339
+ "name": "dark",
3340
+ "progress": {
3341
+ "background": "#3B82F615",
3342
+ "barEmpty": "#374151",
3343
+ "barFilled": "#3B82F6",
3344
+ "border": "#3B82F6",
3345
+ "complete": "#22C55E",
3346
+ "completeBackground": "#22C55E15",
3347
+ "failed": "#EF4444",
3348
+ "failedBackground": "#EF444415",
3349
+ "text": "#E5E7EB",
3350
+ "textDim": "#9CA3AF",
3351
+ },
3352
+ "prompt": {
3353
+ "border": "#374151",
3354
+ "buttonBackground": "#374151",
3355
+ "buttonSelectedBackground": "#1F2937",
3356
+ "cancelButton": "#EF4444",
3357
+ "confirmButton": "#22C55E",
3358
+ "focusBorder": "#3B82F6",
3359
+ "inputBackground": "#1F2937",
3360
+ "inputBorder": "#3B82F6",
3361
+ "inputCursor": "#3B82F6",
3362
+ "inputPlaceholder": "#6B7280",
3363
+ "inputText": "#F9FAFB",
3364
+ "optionSelected": "#3B82F6",
3365
+ "optionSelectedBackground": "#1E3A5F",
3366
+ "optionText": "#E5E7EB",
3367
+ "optionTextDim": "#9CA3AF",
3368
+ "question": "#F9FAFB",
3369
+ },
3370
+ "separator": {
3371
+ "line": "#374151",
3372
+ "text": "#6B7280",
3373
+ },
3374
+ "sidebar": {
3375
+ "background": undefined,
3376
+ "badge": "#3B82F6",
3377
+ "border": "#374151",
3378
+ "focusBorder": "#3B82F6",
3379
+ "hoverBackground": "#374151",
3380
+ "selectedBackground": "#1F293780",
3381
+ "text": "#E5E7EB",
3382
+ "textDim": "#6B7280",
3383
+ },
3384
+ "statusIndicators": {
3385
+ "fail": {
3386
+ "color": "#EF4444",
3387
+ "icon": "✗",
3388
+ },
3389
+ "pending": {
3390
+ "color": "#F59E0B",
3391
+ "icon": "◐",
3392
+ },
3393
+ "static": {
3394
+ "color": "#3B82F6",
3395
+ "icon": "●",
3396
+ },
3397
+ "success": {
3398
+ "color": "#22C55E",
3399
+ "icon": "✓",
3400
+ },
3401
+ "waiting": {
3402
+ "color": "#6B7280",
3403
+ "icon": "○",
3404
+ },
3405
+ },
3406
+ "table": {
3407
+ "background": "#3B82F615",
3408
+ "border": "#3B82F6",
3409
+ "cellText": "#E5E7EB",
3410
+ "headerText": "#F9FAFB",
3411
+ "separator": "#3B82F650",
3412
+ "title": "#F9FAFB",
3413
+ },
3414
+ },
3415
+ },
3416
+ "ref": null,
3417
+ "type": [Function: LoggerProvider],
3418
+ }
3419
+ `;
3420
+
3421
+ exports[`PromptRenderer choice prompt should render choice with input mode 1`] = `
3422
+ {
3423
+ "$$typeof": Symbol(react.transitional.element),
3424
+ "_debugInfo": null,
3425
+ "_debugStack": [Error: react-stack-top-frame],
3426
+ "_debugTask": null,
3427
+ "_owner": null,
3428
+ "_store": {
3429
+ "validated": 0,
3430
+ },
3431
+ "key": null,
3432
+ "props": {
3433
+ "children": {
3434
+ "$$typeof": Symbol(react.transitional.element),
3435
+ "_debugInfo": null,
3436
+ "_debugStack": [Error: react-stack-top-frame],
3437
+ "_debugTask": null,
3438
+ "_owner": null,
3439
+ "_store": {
3440
+ "validated": 1,
3441
+ },
3442
+ "key": null,
3443
+ "props": {
3444
+ "prompt": {
3445
+ "choices": [
3446
+ {
3447
+ "label": "Option A",
3448
+ "value": "a",
3449
+ },
3450
+ {
3451
+ "input": true,
3452
+ "label": "Other",
3453
+ "value": "other",
3454
+ },
3455
+ ],
3456
+ "defaultChoice": "a",
3457
+ "id": "prompt-13",
3458
+ "inputMode": true,
3459
+ "inputValue": "custom value",
3460
+ "question": "Select or type",
3461
+ "resolved": false,
3462
+ "selectedIndex": 1,
3463
+ "timestamp": 2025-01-01T00:00:00.000Z,
3464
+ "type": "choice",
3465
+ },
3466
+ },
3467
+ "ref": null,
3468
+ "type": [Function: PromptRenderer],
3469
+ },
3470
+ "levelColors": undefined,
3471
+ "theme": {
3472
+ "colors": {
3473
+ "background": "#111827",
3474
+ "error": "#EF4444",
3475
+ "foreground": "#F9FAFB",
3476
+ "muted": "#6B7280",
3477
+ "primary": "#3B82F6",
3478
+ "secondary": "#8B5CF6",
3479
+ "success": "#22C55E",
3480
+ "warning": "#F59E0B",
3481
+ },
3482
+ "errorHighlight": {
3483
+ "background": "#EF444425",
3484
+ "border": "#EF4444",
3485
+ "gutterBackground": "#EF444440",
3486
+ },
3487
+ "file": {
3488
+ "background": "#3B82F615",
3489
+ "border": "#3B82F6",
3490
+ "headerBackground": "#3B82F625",
3491
+ "headerText": "#F9FAFB",
3492
+ },
3493
+ "filter": {
3494
+ "activeLevel": "#3B82F6",
3495
+ "background": "#1F293780",
3496
+ "border": "#3B82F6",
3497
+ "cursor": "#3B82F6",
3498
+ "inactiveLevel": "#4B5563",
3499
+ "inputBackground": "#1F2937",
3500
+ "inputPlaceholder": "#6B7280",
3501
+ "inputText": "#F9FAFB",
3502
+ "text": "#E5E7EB",
3503
+ "textDim": "#6B7280",
3504
+ },
3505
+ "group": {
3506
+ "background": "#6B728010",
3507
+ "border": "#6B7280",
3508
+ "headerText": "#E5E7EB",
3509
+ "icon": "#9CA3AF",
3510
+ },
3511
+ "header": {
3512
+ "background": undefined,
3513
+ "border": "#374151",
3514
+ "text": "#F9FAFB",
3515
+ },
3516
+ "help": {
3517
+ "background": "#1F2937",
3518
+ "border": "#3B82F6",
3519
+ "category": "#3B82F6",
3520
+ "description": "#E5E7EB",
3521
+ "hint": "#6B7280",
3522
+ "key": "#F59E0B",
3523
+ "title": "#F9FAFB",
3524
+ },
3525
+ "logLevels": {
3526
+ "debug": {
3527
+ "background": "#8B5CF615",
3528
+ "border": "#8B5CF6",
3529
+ },
3530
+ "error": {
3531
+ "background": "#EF444415",
3532
+ "border": "#EF4444",
3533
+ },
3534
+ "fatal": {
3535
+ "background": "#DC262625",
3536
+ "border": "#DC2626",
3537
+ "text": "#FCA5A5",
3538
+ },
3539
+ "log": {
3540
+ "background": "#3B82F615",
3541
+ "border": "#3B82F6",
3542
+ },
3543
+ "verbose": {
3544
+ "background": "#6B728015",
3545
+ "border": "#6B7280",
3546
+ },
3547
+ "warn": {
3548
+ "background": "#F59E0B15",
3549
+ "border": "#F59E0B",
3550
+ },
3551
+ },
3552
+ "name": "dark",
3553
+ "progress": {
3554
+ "background": "#3B82F615",
3555
+ "barEmpty": "#374151",
3556
+ "barFilled": "#3B82F6",
3557
+ "border": "#3B82F6",
3558
+ "complete": "#22C55E",
3559
+ "completeBackground": "#22C55E15",
3560
+ "failed": "#EF4444",
3561
+ "failedBackground": "#EF444415",
3562
+ "text": "#E5E7EB",
3563
+ "textDim": "#9CA3AF",
3564
+ },
3565
+ "prompt": {
3566
+ "border": "#374151",
3567
+ "buttonBackground": "#374151",
3568
+ "buttonSelectedBackground": "#1F2937",
3569
+ "cancelButton": "#EF4444",
3570
+ "confirmButton": "#22C55E",
3571
+ "focusBorder": "#3B82F6",
3572
+ "inputBackground": "#1F2937",
3573
+ "inputBorder": "#3B82F6",
3574
+ "inputCursor": "#3B82F6",
3575
+ "inputPlaceholder": "#6B7280",
3576
+ "inputText": "#F9FAFB",
3577
+ "optionSelected": "#3B82F6",
3578
+ "optionSelectedBackground": "#1E3A5F",
3579
+ "optionText": "#E5E7EB",
3580
+ "optionTextDim": "#9CA3AF",
3581
+ "question": "#F9FAFB",
3582
+ },
3583
+ "separator": {
3584
+ "line": "#374151",
3585
+ "text": "#6B7280",
3586
+ },
3587
+ "sidebar": {
3588
+ "background": undefined,
3589
+ "badge": "#3B82F6",
3590
+ "border": "#374151",
3591
+ "focusBorder": "#3B82F6",
3592
+ "hoverBackground": "#374151",
3593
+ "selectedBackground": "#1F293780",
3594
+ "text": "#E5E7EB",
3595
+ "textDim": "#6B7280",
3596
+ },
3597
+ "statusIndicators": {
3598
+ "fail": {
3599
+ "color": "#EF4444",
3600
+ "icon": "✗",
3601
+ },
3602
+ "pending": {
3603
+ "color": "#F59E0B",
3604
+ "icon": "◐",
3605
+ },
3606
+ "static": {
3607
+ "color": "#3B82F6",
3608
+ "icon": "●",
3609
+ },
3610
+ "success": {
3611
+ "color": "#22C55E",
3612
+ "icon": "✓",
3613
+ },
3614
+ "waiting": {
3615
+ "color": "#6B7280",
3616
+ "icon": "○",
3617
+ },
3618
+ },
3619
+ "table": {
3620
+ "background": "#3B82F615",
3621
+ "border": "#3B82F6",
3622
+ "cellText": "#E5E7EB",
3623
+ "headerText": "#F9FAFB",
3624
+ "separator": "#3B82F650",
3625
+ "title": "#F9FAFB",
3626
+ },
3627
+ },
3628
+ },
3629
+ "ref": null,
3630
+ "type": [Function: LoggerProvider],
3631
+ }
3632
+ `;
3633
+
3634
+ exports[`PromptRenderer choice prompt should render choice with timeout 1`] = `
3635
+ {
3636
+ "$$typeof": Symbol(react.transitional.element),
3637
+ "_debugInfo": null,
3638
+ "_debugStack": [Error: react-stack-top-frame],
3639
+ "_debugTask": null,
3640
+ "_owner": null,
3641
+ "_store": {
3642
+ "validated": 0,
3643
+ },
3644
+ "key": null,
3645
+ "props": {
3646
+ "children": {
3647
+ "$$typeof": Symbol(react.transitional.element),
3648
+ "_debugInfo": null,
3649
+ "_debugStack": [Error: react-stack-top-frame],
3650
+ "_debugTask": null,
3651
+ "_owner": null,
3652
+ "_store": {
3653
+ "validated": 1,
3654
+ },
3655
+ "key": null,
3656
+ "props": {
3657
+ "prompt": {
3658
+ "choices": [
3659
+ {
3660
+ "label": "Default",
3661
+ "value": "default",
3662
+ },
3663
+ ],
3664
+ "defaultChoice": "a",
3665
+ "id": "prompt-14",
3666
+ "inputMode": false,
3667
+ "inputValue": "",
3668
+ "question": "Quick! Select one",
3669
+ "resolved": false,
3670
+ "selectedIndex": 0,
3671
+ "timeout": 10000,
3672
+ "timeoutStarted": 1735689595000,
3673
+ "timestamp": 2025-01-01T00:00:00.000Z,
3674
+ "type": "choice",
3675
+ },
3676
+ },
3677
+ "ref": null,
3678
+ "type": [Function: PromptRenderer],
3679
+ },
3680
+ "levelColors": undefined,
3681
+ "theme": {
3682
+ "colors": {
3683
+ "background": "#111827",
3684
+ "error": "#EF4444",
3685
+ "foreground": "#F9FAFB",
3686
+ "muted": "#6B7280",
3687
+ "primary": "#3B82F6",
3688
+ "secondary": "#8B5CF6",
3689
+ "success": "#22C55E",
3690
+ "warning": "#F59E0B",
3691
+ },
3692
+ "errorHighlight": {
3693
+ "background": "#EF444425",
3694
+ "border": "#EF4444",
3695
+ "gutterBackground": "#EF444440",
3696
+ },
3697
+ "file": {
3698
+ "background": "#3B82F615",
3699
+ "border": "#3B82F6",
3700
+ "headerBackground": "#3B82F625",
3701
+ "headerText": "#F9FAFB",
3702
+ },
3703
+ "filter": {
3704
+ "activeLevel": "#3B82F6",
3705
+ "background": "#1F293780",
3706
+ "border": "#3B82F6",
3707
+ "cursor": "#3B82F6",
3708
+ "inactiveLevel": "#4B5563",
3709
+ "inputBackground": "#1F2937",
3710
+ "inputPlaceholder": "#6B7280",
3711
+ "inputText": "#F9FAFB",
3712
+ "text": "#E5E7EB",
3713
+ "textDim": "#6B7280",
3714
+ },
3715
+ "group": {
3716
+ "background": "#6B728010",
3717
+ "border": "#6B7280",
3718
+ "headerText": "#E5E7EB",
3719
+ "icon": "#9CA3AF",
3720
+ },
3721
+ "header": {
3722
+ "background": undefined,
3723
+ "border": "#374151",
3724
+ "text": "#F9FAFB",
3725
+ },
3726
+ "help": {
3727
+ "background": "#1F2937",
3728
+ "border": "#3B82F6",
3729
+ "category": "#3B82F6",
3730
+ "description": "#E5E7EB",
3731
+ "hint": "#6B7280",
3732
+ "key": "#F59E0B",
3733
+ "title": "#F9FAFB",
3734
+ },
3735
+ "logLevels": {
3736
+ "debug": {
3737
+ "background": "#8B5CF615",
3738
+ "border": "#8B5CF6",
3739
+ },
3740
+ "error": {
3741
+ "background": "#EF444415",
3742
+ "border": "#EF4444",
3743
+ },
3744
+ "fatal": {
3745
+ "background": "#DC262625",
3746
+ "border": "#DC2626",
3747
+ "text": "#FCA5A5",
3748
+ },
3749
+ "log": {
3750
+ "background": "#3B82F615",
3751
+ "border": "#3B82F6",
3752
+ },
3753
+ "verbose": {
3754
+ "background": "#6B728015",
3755
+ "border": "#6B7280",
3756
+ },
3757
+ "warn": {
3758
+ "background": "#F59E0B15",
3759
+ "border": "#F59E0B",
3760
+ },
3761
+ },
3762
+ "name": "dark",
3763
+ "progress": {
3764
+ "background": "#3B82F615",
3765
+ "barEmpty": "#374151",
3766
+ "barFilled": "#3B82F6",
3767
+ "border": "#3B82F6",
3768
+ "complete": "#22C55E",
3769
+ "completeBackground": "#22C55E15",
3770
+ "failed": "#EF4444",
3771
+ "failedBackground": "#EF444415",
3772
+ "text": "#E5E7EB",
3773
+ "textDim": "#9CA3AF",
3774
+ },
3775
+ "prompt": {
3776
+ "border": "#374151",
3777
+ "buttonBackground": "#374151",
3778
+ "buttonSelectedBackground": "#1F2937",
3779
+ "cancelButton": "#EF4444",
3780
+ "confirmButton": "#22C55E",
3781
+ "focusBorder": "#3B82F6",
3782
+ "inputBackground": "#1F2937",
3783
+ "inputBorder": "#3B82F6",
3784
+ "inputCursor": "#3B82F6",
3785
+ "inputPlaceholder": "#6B7280",
3786
+ "inputText": "#F9FAFB",
3787
+ "optionSelected": "#3B82F6",
3788
+ "optionSelectedBackground": "#1E3A5F",
3789
+ "optionText": "#E5E7EB",
3790
+ "optionTextDim": "#9CA3AF",
3791
+ "question": "#F9FAFB",
3792
+ },
3793
+ "separator": {
3794
+ "line": "#374151",
3795
+ "text": "#6B7280",
3796
+ },
3797
+ "sidebar": {
3798
+ "background": undefined,
3799
+ "badge": "#3B82F6",
3800
+ "border": "#374151",
3801
+ "focusBorder": "#3B82F6",
3802
+ "hoverBackground": "#374151",
3803
+ "selectedBackground": "#1F293780",
3804
+ "text": "#E5E7EB",
3805
+ "textDim": "#6B7280",
3806
+ },
3807
+ "statusIndicators": {
3808
+ "fail": {
3809
+ "color": "#EF4444",
3810
+ "icon": "✗",
3811
+ },
3812
+ "pending": {
3813
+ "color": "#F59E0B",
3814
+ "icon": "◐",
3815
+ },
3816
+ "static": {
3817
+ "color": "#3B82F6",
3818
+ "icon": "●",
3819
+ },
3820
+ "success": {
3821
+ "color": "#22C55E",
3822
+ "icon": "✓",
3823
+ },
3824
+ "waiting": {
3825
+ "color": "#6B7280",
3826
+ "icon": "○",
3827
+ },
3828
+ },
3829
+ "table": {
3830
+ "background": "#3B82F615",
3831
+ "border": "#3B82F6",
3832
+ "cellText": "#E5E7EB",
3833
+ "headerText": "#F9FAFB",
3834
+ "separator": "#3B82F650",
3835
+ "title": "#F9FAFB",
3836
+ },
3837
+ },
3838
+ },
3839
+ "ref": null,
3840
+ "type": [Function: LoggerProvider],
3841
+ }
3842
+ `;
3843
+
3844
+ exports[`PromptRenderer choice prompt should render resolved choice prompt 1`] = `
3845
+ {
3846
+ "$$typeof": Symbol(react.transitional.element),
3847
+ "_debugInfo": null,
3848
+ "_debugStack": [Error: react-stack-top-frame],
3849
+ "_debugTask": null,
3850
+ "_owner": null,
3851
+ "_store": {
3852
+ "validated": 0,
3853
+ },
3854
+ "key": null,
3855
+ "props": {
3856
+ "children": {
3857
+ "$$typeof": Symbol(react.transitional.element),
3858
+ "_debugInfo": null,
3859
+ "_debugStack": [Error: react-stack-top-frame],
3860
+ "_debugTask": null,
3861
+ "_owner": null,
3862
+ "_store": {
3863
+ "validated": 1,
3864
+ },
3865
+ "key": null,
3866
+ "props": {
3867
+ "prompt": {
3868
+ "choices": [
3869
+ {
3870
+ "label": "Yes",
3871
+ "value": "yes",
3872
+ },
3873
+ {
3874
+ "label": "No",
3875
+ "value": "no",
3876
+ },
3877
+ ],
3878
+ "defaultChoice": "a",
3879
+ "id": "prompt-15",
3880
+ "inputMode": false,
3881
+ "inputValue": "",
3882
+ "question": "Already answered",
3883
+ "resolved": true,
3884
+ "resolvedValue": "yes",
3885
+ "selectedIndex": 0,
3886
+ "timestamp": 2025-01-01T00:00:00.000Z,
3887
+ "type": "choice",
3888
+ },
3889
+ },
3890
+ "ref": null,
3891
+ "type": [Function: PromptRenderer],
3892
+ },
3893
+ "levelColors": undefined,
3894
+ "theme": {
3895
+ "colors": {
3896
+ "background": "#111827",
3897
+ "error": "#EF4444",
3898
+ "foreground": "#F9FAFB",
3899
+ "muted": "#6B7280",
3900
+ "primary": "#3B82F6",
3901
+ "secondary": "#8B5CF6",
3902
+ "success": "#22C55E",
3903
+ "warning": "#F59E0B",
3904
+ },
3905
+ "errorHighlight": {
3906
+ "background": "#EF444425",
3907
+ "border": "#EF4444",
3908
+ "gutterBackground": "#EF444440",
3909
+ },
3910
+ "file": {
3911
+ "background": "#3B82F615",
3912
+ "border": "#3B82F6",
3913
+ "headerBackground": "#3B82F625",
3914
+ "headerText": "#F9FAFB",
3915
+ },
3916
+ "filter": {
3917
+ "activeLevel": "#3B82F6",
3918
+ "background": "#1F293780",
3919
+ "border": "#3B82F6",
3920
+ "cursor": "#3B82F6",
3921
+ "inactiveLevel": "#4B5563",
3922
+ "inputBackground": "#1F2937",
3923
+ "inputPlaceholder": "#6B7280",
3924
+ "inputText": "#F9FAFB",
3925
+ "text": "#E5E7EB",
3926
+ "textDim": "#6B7280",
3927
+ },
3928
+ "group": {
3929
+ "background": "#6B728010",
3930
+ "border": "#6B7280",
3931
+ "headerText": "#E5E7EB",
3932
+ "icon": "#9CA3AF",
3933
+ },
3934
+ "header": {
3935
+ "background": undefined,
3936
+ "border": "#374151",
3937
+ "text": "#F9FAFB",
3938
+ },
3939
+ "help": {
3940
+ "background": "#1F2937",
3941
+ "border": "#3B82F6",
3942
+ "category": "#3B82F6",
3943
+ "description": "#E5E7EB",
3944
+ "hint": "#6B7280",
3945
+ "key": "#F59E0B",
3946
+ "title": "#F9FAFB",
3947
+ },
3948
+ "logLevels": {
3949
+ "debug": {
3950
+ "background": "#8B5CF615",
3951
+ "border": "#8B5CF6",
3952
+ },
3953
+ "error": {
3954
+ "background": "#EF444415",
3955
+ "border": "#EF4444",
3956
+ },
3957
+ "fatal": {
3958
+ "background": "#DC262625",
3959
+ "border": "#DC2626",
3960
+ "text": "#FCA5A5",
3961
+ },
3962
+ "log": {
3963
+ "background": "#3B82F615",
3964
+ "border": "#3B82F6",
3965
+ },
3966
+ "verbose": {
3967
+ "background": "#6B728015",
3968
+ "border": "#6B7280",
3969
+ },
3970
+ "warn": {
3971
+ "background": "#F59E0B15",
3972
+ "border": "#F59E0B",
3973
+ },
3974
+ },
3975
+ "name": "dark",
3976
+ "progress": {
3977
+ "background": "#3B82F615",
3978
+ "barEmpty": "#374151",
3979
+ "barFilled": "#3B82F6",
3980
+ "border": "#3B82F6",
3981
+ "complete": "#22C55E",
3982
+ "completeBackground": "#22C55E15",
3983
+ "failed": "#EF4444",
3984
+ "failedBackground": "#EF444415",
3985
+ "text": "#E5E7EB",
3986
+ "textDim": "#9CA3AF",
3987
+ },
3988
+ "prompt": {
3989
+ "border": "#374151",
3990
+ "buttonBackground": "#374151",
3991
+ "buttonSelectedBackground": "#1F2937",
3992
+ "cancelButton": "#EF4444",
3993
+ "confirmButton": "#22C55E",
3994
+ "focusBorder": "#3B82F6",
3995
+ "inputBackground": "#1F2937",
3996
+ "inputBorder": "#3B82F6",
3997
+ "inputCursor": "#3B82F6",
3998
+ "inputPlaceholder": "#6B7280",
3999
+ "inputText": "#F9FAFB",
4000
+ "optionSelected": "#3B82F6",
4001
+ "optionSelectedBackground": "#1E3A5F",
4002
+ "optionText": "#E5E7EB",
4003
+ "optionTextDim": "#9CA3AF",
4004
+ "question": "#F9FAFB",
4005
+ },
4006
+ "separator": {
4007
+ "line": "#374151",
4008
+ "text": "#6B7280",
4009
+ },
4010
+ "sidebar": {
4011
+ "background": undefined,
4012
+ "badge": "#3B82F6",
4013
+ "border": "#374151",
4014
+ "focusBorder": "#3B82F6",
4015
+ "hoverBackground": "#374151",
4016
+ "selectedBackground": "#1F293780",
4017
+ "text": "#E5E7EB",
4018
+ "textDim": "#6B7280",
4019
+ },
4020
+ "statusIndicators": {
4021
+ "fail": {
4022
+ "color": "#EF4444",
4023
+ "icon": "✗",
4024
+ },
4025
+ "pending": {
4026
+ "color": "#F59E0B",
4027
+ "icon": "◐",
4028
+ },
4029
+ "static": {
4030
+ "color": "#3B82F6",
4031
+ "icon": "●",
4032
+ },
4033
+ "success": {
4034
+ "color": "#22C55E",
4035
+ "icon": "✓",
4036
+ },
4037
+ "waiting": {
4038
+ "color": "#6B7280",
4039
+ "icon": "○",
4040
+ },
4041
+ },
4042
+ "table": {
4043
+ "background": "#3B82F615",
4044
+ "border": "#3B82F6",
4045
+ "cellText": "#E5E7EB",
4046
+ "headerText": "#F9FAFB",
4047
+ "separator": "#3B82F650",
4048
+ "title": "#F9FAFB",
4049
+ },
4050
+ },
4051
+ },
4052
+ "ref": null,
4053
+ "type": [Function: LoggerProvider],
4054
+ }
4055
+ `;
4056
+
4057
+ exports[`PromptRenderer choice prompt should render selected option highlighted 1`] = `
4058
+ {
4059
+ "$$typeof": Symbol(react.transitional.element),
4060
+ "_debugInfo": null,
4061
+ "_debugStack": [Error: react-stack-top-frame],
4062
+ "_debugTask": null,
4063
+ "_owner": null,
4064
+ "_store": {
4065
+ "validated": 0,
4066
+ },
4067
+ "key": null,
4068
+ "props": {
4069
+ "children": {
4070
+ "$$typeof": Symbol(react.transitional.element),
4071
+ "_debugInfo": null,
4072
+ "_debugStack": [Error: react-stack-top-frame],
4073
+ "_debugTask": null,
4074
+ "_owner": null,
4075
+ "_store": {
4076
+ "validated": 1,
4077
+ },
4078
+ "key": null,
4079
+ "props": {
4080
+ "prompt": {
4081
+ "choices": [
4082
+ {
4083
+ "label": "First",
4084
+ "value": "1",
4085
+ },
4086
+ {
4087
+ "label": "Second",
4088
+ "value": "2",
4089
+ },
4090
+ {
4091
+ "label": "Third",
4092
+ "value": "3",
4093
+ },
4094
+ ],
4095
+ "defaultChoice": "a",
4096
+ "id": "prompt-12",
4097
+ "inputMode": false,
4098
+ "inputValue": "",
4099
+ "question": "Choose wisely",
4100
+ "resolved": false,
4101
+ "selectedIndex": 1,
4102
+ "timestamp": 2025-01-01T00:00:00.000Z,
4103
+ "type": "choice",
4104
+ },
4105
+ },
4106
+ "ref": null,
4107
+ "type": [Function: PromptRenderer],
4108
+ },
4109
+ "levelColors": undefined,
4110
+ "theme": {
4111
+ "colors": {
4112
+ "background": "#111827",
4113
+ "error": "#EF4444",
4114
+ "foreground": "#F9FAFB",
4115
+ "muted": "#6B7280",
4116
+ "primary": "#3B82F6",
4117
+ "secondary": "#8B5CF6",
4118
+ "success": "#22C55E",
4119
+ "warning": "#F59E0B",
4120
+ },
4121
+ "errorHighlight": {
4122
+ "background": "#EF444425",
4123
+ "border": "#EF4444",
4124
+ "gutterBackground": "#EF444440",
4125
+ },
4126
+ "file": {
4127
+ "background": "#3B82F615",
4128
+ "border": "#3B82F6",
4129
+ "headerBackground": "#3B82F625",
4130
+ "headerText": "#F9FAFB",
4131
+ },
4132
+ "filter": {
4133
+ "activeLevel": "#3B82F6",
4134
+ "background": "#1F293780",
4135
+ "border": "#3B82F6",
4136
+ "cursor": "#3B82F6",
4137
+ "inactiveLevel": "#4B5563",
4138
+ "inputBackground": "#1F2937",
4139
+ "inputPlaceholder": "#6B7280",
4140
+ "inputText": "#F9FAFB",
4141
+ "text": "#E5E7EB",
4142
+ "textDim": "#6B7280",
4143
+ },
4144
+ "group": {
4145
+ "background": "#6B728010",
4146
+ "border": "#6B7280",
4147
+ "headerText": "#E5E7EB",
4148
+ "icon": "#9CA3AF",
4149
+ },
4150
+ "header": {
4151
+ "background": undefined,
4152
+ "border": "#374151",
4153
+ "text": "#F9FAFB",
4154
+ },
4155
+ "help": {
4156
+ "background": "#1F2937",
4157
+ "border": "#3B82F6",
4158
+ "category": "#3B82F6",
4159
+ "description": "#E5E7EB",
4160
+ "hint": "#6B7280",
4161
+ "key": "#F59E0B",
4162
+ "title": "#F9FAFB",
4163
+ },
4164
+ "logLevels": {
4165
+ "debug": {
4166
+ "background": "#8B5CF615",
4167
+ "border": "#8B5CF6",
4168
+ },
4169
+ "error": {
4170
+ "background": "#EF444415",
4171
+ "border": "#EF4444",
4172
+ },
4173
+ "fatal": {
4174
+ "background": "#DC262625",
4175
+ "border": "#DC2626",
4176
+ "text": "#FCA5A5",
4177
+ },
4178
+ "log": {
4179
+ "background": "#3B82F615",
4180
+ "border": "#3B82F6",
4181
+ },
4182
+ "verbose": {
4183
+ "background": "#6B728015",
4184
+ "border": "#6B7280",
4185
+ },
4186
+ "warn": {
4187
+ "background": "#F59E0B15",
4188
+ "border": "#F59E0B",
4189
+ },
4190
+ },
4191
+ "name": "dark",
4192
+ "progress": {
4193
+ "background": "#3B82F615",
4194
+ "barEmpty": "#374151",
4195
+ "barFilled": "#3B82F6",
4196
+ "border": "#3B82F6",
4197
+ "complete": "#22C55E",
4198
+ "completeBackground": "#22C55E15",
4199
+ "failed": "#EF4444",
4200
+ "failedBackground": "#EF444415",
4201
+ "text": "#E5E7EB",
4202
+ "textDim": "#9CA3AF",
4203
+ },
4204
+ "prompt": {
4205
+ "border": "#374151",
4206
+ "buttonBackground": "#374151",
4207
+ "buttonSelectedBackground": "#1F2937",
4208
+ "cancelButton": "#EF4444",
4209
+ "confirmButton": "#22C55E",
4210
+ "focusBorder": "#3B82F6",
4211
+ "inputBackground": "#1F2937",
4212
+ "inputBorder": "#3B82F6",
4213
+ "inputCursor": "#3B82F6",
4214
+ "inputPlaceholder": "#6B7280",
4215
+ "inputText": "#F9FAFB",
4216
+ "optionSelected": "#3B82F6",
4217
+ "optionSelectedBackground": "#1E3A5F",
4218
+ "optionText": "#E5E7EB",
4219
+ "optionTextDim": "#9CA3AF",
4220
+ "question": "#F9FAFB",
4221
+ },
4222
+ "separator": {
4223
+ "line": "#374151",
4224
+ "text": "#6B7280",
4225
+ },
4226
+ "sidebar": {
4227
+ "background": undefined,
4228
+ "badge": "#3B82F6",
4229
+ "border": "#374151",
4230
+ "focusBorder": "#3B82F6",
4231
+ "hoverBackground": "#374151",
4232
+ "selectedBackground": "#1F293780",
4233
+ "text": "#E5E7EB",
4234
+ "textDim": "#6B7280",
4235
+ },
4236
+ "statusIndicators": {
4237
+ "fail": {
4238
+ "color": "#EF4444",
4239
+ "icon": "✗",
4240
+ },
4241
+ "pending": {
4242
+ "color": "#F59E0B",
4243
+ "icon": "◐",
4244
+ },
4245
+ "static": {
4246
+ "color": "#3B82F6",
4247
+ "icon": "●",
4248
+ },
4249
+ "success": {
4250
+ "color": "#22C55E",
4251
+ "icon": "✓",
4252
+ },
4253
+ "waiting": {
4254
+ "color": "#6B7280",
4255
+ "icon": "○",
4256
+ },
4257
+ },
4258
+ "table": {
4259
+ "background": "#3B82F615",
4260
+ "border": "#3B82F6",
4261
+ "cellText": "#E5E7EB",
4262
+ "headerText": "#F9FAFB",
4263
+ "separator": "#3B82F650",
4264
+ "title": "#F9FAFB",
4265
+ },
4266
+ },
4267
+ },
4268
+ "ref": null,
4269
+ "type": [Function: LoggerProvider],
4270
+ }
4271
+ `;
4272
+
4273
+ exports[`PromptRenderer confirm prompt should render confirm prompt (Yes/No) 1`] = `
4274
+ {
4275
+ "$$typeof": Symbol(react.transitional.element),
4276
+ "_debugInfo": null,
4277
+ "_debugStack": [Error: react-stack-top-frame],
4278
+ "_debugTask": null,
4279
+ "_owner": null,
4280
+ "_store": {
4281
+ "validated": 0,
4282
+ },
4283
+ "key": null,
4284
+ "props": {
4285
+ "children": {
4286
+ "$$typeof": Symbol(react.transitional.element),
4287
+ "_debugInfo": null,
4288
+ "_debugStack": [Error: react-stack-top-frame],
4289
+ "_debugTask": null,
4290
+ "_owner": null,
4291
+ "_store": {
4292
+ "validated": 1,
4293
+ },
4294
+ "key": null,
4295
+ "props": {
4296
+ "prompt": {
4297
+ "cancelText": "No",
4298
+ "confirmText": "Yes",
4299
+ "defaultValue": true,
4300
+ "id": "prompt-16",
4301
+ "question": "Are you sure?",
4302
+ "resolved": false,
4303
+ "selectedValue": true,
4304
+ "timestamp": 2025-01-01T00:00:00.000Z,
4305
+ "type": "confirm",
4306
+ },
4307
+ },
4308
+ "ref": null,
4309
+ "type": [Function: PromptRenderer],
4310
+ },
4311
+ "levelColors": undefined,
4312
+ "theme": {
4313
+ "colors": {
4314
+ "background": "#111827",
4315
+ "error": "#EF4444",
4316
+ "foreground": "#F9FAFB",
4317
+ "muted": "#6B7280",
4318
+ "primary": "#3B82F6",
4319
+ "secondary": "#8B5CF6",
4320
+ "success": "#22C55E",
4321
+ "warning": "#F59E0B",
4322
+ },
4323
+ "errorHighlight": {
4324
+ "background": "#EF444425",
4325
+ "border": "#EF4444",
4326
+ "gutterBackground": "#EF444440",
4327
+ },
4328
+ "file": {
4329
+ "background": "#3B82F615",
4330
+ "border": "#3B82F6",
4331
+ "headerBackground": "#3B82F625",
4332
+ "headerText": "#F9FAFB",
4333
+ },
4334
+ "filter": {
4335
+ "activeLevel": "#3B82F6",
4336
+ "background": "#1F293780",
4337
+ "border": "#3B82F6",
4338
+ "cursor": "#3B82F6",
4339
+ "inactiveLevel": "#4B5563",
4340
+ "inputBackground": "#1F2937",
4341
+ "inputPlaceholder": "#6B7280",
4342
+ "inputText": "#F9FAFB",
4343
+ "text": "#E5E7EB",
4344
+ "textDim": "#6B7280",
4345
+ },
4346
+ "group": {
4347
+ "background": "#6B728010",
4348
+ "border": "#6B7280",
4349
+ "headerText": "#E5E7EB",
4350
+ "icon": "#9CA3AF",
4351
+ },
4352
+ "header": {
4353
+ "background": undefined,
4354
+ "border": "#374151",
4355
+ "text": "#F9FAFB",
4356
+ },
4357
+ "help": {
4358
+ "background": "#1F2937",
4359
+ "border": "#3B82F6",
4360
+ "category": "#3B82F6",
4361
+ "description": "#E5E7EB",
4362
+ "hint": "#6B7280",
4363
+ "key": "#F59E0B",
4364
+ "title": "#F9FAFB",
4365
+ },
4366
+ "logLevels": {
4367
+ "debug": {
4368
+ "background": "#8B5CF615",
4369
+ "border": "#8B5CF6",
4370
+ },
4371
+ "error": {
4372
+ "background": "#EF444415",
4373
+ "border": "#EF4444",
4374
+ },
4375
+ "fatal": {
4376
+ "background": "#DC262625",
4377
+ "border": "#DC2626",
4378
+ "text": "#FCA5A5",
4379
+ },
4380
+ "log": {
4381
+ "background": "#3B82F615",
4382
+ "border": "#3B82F6",
4383
+ },
4384
+ "verbose": {
4385
+ "background": "#6B728015",
4386
+ "border": "#6B7280",
4387
+ },
4388
+ "warn": {
4389
+ "background": "#F59E0B15",
4390
+ "border": "#F59E0B",
4391
+ },
4392
+ },
4393
+ "name": "dark",
4394
+ "progress": {
4395
+ "background": "#3B82F615",
4396
+ "barEmpty": "#374151",
4397
+ "barFilled": "#3B82F6",
4398
+ "border": "#3B82F6",
4399
+ "complete": "#22C55E",
4400
+ "completeBackground": "#22C55E15",
4401
+ "failed": "#EF4444",
4402
+ "failedBackground": "#EF444415",
4403
+ "text": "#E5E7EB",
4404
+ "textDim": "#9CA3AF",
4405
+ },
4406
+ "prompt": {
4407
+ "border": "#374151",
4408
+ "buttonBackground": "#374151",
4409
+ "buttonSelectedBackground": "#1F2937",
4410
+ "cancelButton": "#EF4444",
4411
+ "confirmButton": "#22C55E",
4412
+ "focusBorder": "#3B82F6",
4413
+ "inputBackground": "#1F2937",
4414
+ "inputBorder": "#3B82F6",
4415
+ "inputCursor": "#3B82F6",
4416
+ "inputPlaceholder": "#6B7280",
4417
+ "inputText": "#F9FAFB",
4418
+ "optionSelected": "#3B82F6",
4419
+ "optionSelectedBackground": "#1E3A5F",
4420
+ "optionText": "#E5E7EB",
4421
+ "optionTextDim": "#9CA3AF",
4422
+ "question": "#F9FAFB",
4423
+ },
4424
+ "separator": {
4425
+ "line": "#374151",
4426
+ "text": "#6B7280",
4427
+ },
4428
+ "sidebar": {
4429
+ "background": undefined,
4430
+ "badge": "#3B82F6",
4431
+ "border": "#374151",
4432
+ "focusBorder": "#3B82F6",
4433
+ "hoverBackground": "#374151",
4434
+ "selectedBackground": "#1F293780",
4435
+ "text": "#E5E7EB",
4436
+ "textDim": "#6B7280",
4437
+ },
4438
+ "statusIndicators": {
4439
+ "fail": {
4440
+ "color": "#EF4444",
4441
+ "icon": "✗",
4442
+ },
4443
+ "pending": {
4444
+ "color": "#F59E0B",
4445
+ "icon": "◐",
4446
+ },
4447
+ "static": {
4448
+ "color": "#3B82F6",
4449
+ "icon": "●",
4450
+ },
4451
+ "success": {
4452
+ "color": "#22C55E",
4453
+ "icon": "✓",
4454
+ },
4455
+ "waiting": {
4456
+ "color": "#6B7280",
4457
+ "icon": "○",
4458
+ },
4459
+ },
4460
+ "table": {
4461
+ "background": "#3B82F615",
4462
+ "border": "#3B82F6",
4463
+ "cellText": "#E5E7EB",
4464
+ "headerText": "#F9FAFB",
4465
+ "separator": "#3B82F650",
4466
+ "title": "#F9FAFB",
4467
+ },
4468
+ },
4469
+ },
4470
+ "ref": null,
4471
+ "type": [Function: LoggerProvider],
4472
+ }
4473
+ `;
4474
+
4475
+ exports[`PromptRenderer confirm prompt should render resolved confirm prompt 1`] = `
4476
+ {
4477
+ "$$typeof": Symbol(react.transitional.element),
4478
+ "_debugInfo": null,
4479
+ "_debugStack": [Error: react-stack-top-frame],
4480
+ "_debugTask": null,
4481
+ "_owner": null,
4482
+ "_store": {
4483
+ "validated": 0,
4484
+ },
4485
+ "key": null,
4486
+ "props": {
4487
+ "children": {
4488
+ "$$typeof": Symbol(react.transitional.element),
4489
+ "_debugInfo": null,
4490
+ "_debugStack": [Error: react-stack-top-frame],
4491
+ "_debugTask": null,
4492
+ "_owner": null,
4493
+ "_store": {
4494
+ "validated": 1,
4495
+ },
4496
+ "key": null,
4497
+ "props": {
4498
+ "prompt": {
4499
+ "cancelText": "No",
4500
+ "confirmText": "Yes",
4501
+ "defaultValue": true,
4502
+ "id": "prompt-19",
4503
+ "question": "Already confirmed",
4504
+ "resolved": true,
4505
+ "resolvedValue": true,
4506
+ "selectedValue": true,
4507
+ "timestamp": 2025-01-01T00:00:00.000Z,
4508
+ "type": "confirm",
4509
+ },
4510
+ },
4511
+ "ref": null,
4512
+ "type": [Function: PromptRenderer],
4513
+ },
4514
+ "levelColors": undefined,
4515
+ "theme": {
4516
+ "colors": {
4517
+ "background": "#111827",
4518
+ "error": "#EF4444",
4519
+ "foreground": "#F9FAFB",
4520
+ "muted": "#6B7280",
4521
+ "primary": "#3B82F6",
4522
+ "secondary": "#8B5CF6",
4523
+ "success": "#22C55E",
4524
+ "warning": "#F59E0B",
4525
+ },
4526
+ "errorHighlight": {
4527
+ "background": "#EF444425",
4528
+ "border": "#EF4444",
4529
+ "gutterBackground": "#EF444440",
4530
+ },
4531
+ "file": {
4532
+ "background": "#3B82F615",
4533
+ "border": "#3B82F6",
4534
+ "headerBackground": "#3B82F625",
4535
+ "headerText": "#F9FAFB",
4536
+ },
4537
+ "filter": {
4538
+ "activeLevel": "#3B82F6",
4539
+ "background": "#1F293780",
4540
+ "border": "#3B82F6",
4541
+ "cursor": "#3B82F6",
4542
+ "inactiveLevel": "#4B5563",
4543
+ "inputBackground": "#1F2937",
4544
+ "inputPlaceholder": "#6B7280",
4545
+ "inputText": "#F9FAFB",
4546
+ "text": "#E5E7EB",
4547
+ "textDim": "#6B7280",
4548
+ },
4549
+ "group": {
4550
+ "background": "#6B728010",
4551
+ "border": "#6B7280",
4552
+ "headerText": "#E5E7EB",
4553
+ "icon": "#9CA3AF",
4554
+ },
4555
+ "header": {
4556
+ "background": undefined,
4557
+ "border": "#374151",
4558
+ "text": "#F9FAFB",
4559
+ },
4560
+ "help": {
4561
+ "background": "#1F2937",
4562
+ "border": "#3B82F6",
4563
+ "category": "#3B82F6",
4564
+ "description": "#E5E7EB",
4565
+ "hint": "#6B7280",
4566
+ "key": "#F59E0B",
4567
+ "title": "#F9FAFB",
4568
+ },
4569
+ "logLevels": {
4570
+ "debug": {
4571
+ "background": "#8B5CF615",
4572
+ "border": "#8B5CF6",
4573
+ },
4574
+ "error": {
4575
+ "background": "#EF444415",
4576
+ "border": "#EF4444",
4577
+ },
4578
+ "fatal": {
4579
+ "background": "#DC262625",
4580
+ "border": "#DC2626",
4581
+ "text": "#FCA5A5",
4582
+ },
4583
+ "log": {
4584
+ "background": "#3B82F615",
4585
+ "border": "#3B82F6",
4586
+ },
4587
+ "verbose": {
4588
+ "background": "#6B728015",
4589
+ "border": "#6B7280",
4590
+ },
4591
+ "warn": {
4592
+ "background": "#F59E0B15",
4593
+ "border": "#F59E0B",
4594
+ },
4595
+ },
4596
+ "name": "dark",
4597
+ "progress": {
4598
+ "background": "#3B82F615",
4599
+ "barEmpty": "#374151",
4600
+ "barFilled": "#3B82F6",
4601
+ "border": "#3B82F6",
4602
+ "complete": "#22C55E",
4603
+ "completeBackground": "#22C55E15",
4604
+ "failed": "#EF4444",
4605
+ "failedBackground": "#EF444415",
4606
+ "text": "#E5E7EB",
4607
+ "textDim": "#9CA3AF",
4608
+ },
4609
+ "prompt": {
4610
+ "border": "#374151",
4611
+ "buttonBackground": "#374151",
4612
+ "buttonSelectedBackground": "#1F2937",
4613
+ "cancelButton": "#EF4444",
4614
+ "confirmButton": "#22C55E",
4615
+ "focusBorder": "#3B82F6",
4616
+ "inputBackground": "#1F2937",
4617
+ "inputBorder": "#3B82F6",
4618
+ "inputCursor": "#3B82F6",
4619
+ "inputPlaceholder": "#6B7280",
4620
+ "inputText": "#F9FAFB",
4621
+ "optionSelected": "#3B82F6",
4622
+ "optionSelectedBackground": "#1E3A5F",
4623
+ "optionText": "#E5E7EB",
4624
+ "optionTextDim": "#9CA3AF",
4625
+ "question": "#F9FAFB",
4626
+ },
4627
+ "separator": {
4628
+ "line": "#374151",
4629
+ "text": "#6B7280",
4630
+ },
4631
+ "sidebar": {
4632
+ "background": undefined,
4633
+ "badge": "#3B82F6",
4634
+ "border": "#374151",
4635
+ "focusBorder": "#3B82F6",
4636
+ "hoverBackground": "#374151",
4637
+ "selectedBackground": "#1F293780",
4638
+ "text": "#E5E7EB",
4639
+ "textDim": "#6B7280",
4640
+ },
4641
+ "statusIndicators": {
4642
+ "fail": {
4643
+ "color": "#EF4444",
4644
+ "icon": "✗",
4645
+ },
4646
+ "pending": {
4647
+ "color": "#F59E0B",
4648
+ "icon": "◐",
4649
+ },
4650
+ "static": {
4651
+ "color": "#3B82F6",
4652
+ "icon": "●",
4653
+ },
4654
+ "success": {
4655
+ "color": "#22C55E",
4656
+ "icon": "✓",
4657
+ },
4658
+ "waiting": {
4659
+ "color": "#6B7280",
4660
+ "icon": "○",
4661
+ },
4662
+ },
4663
+ "table": {
4664
+ "background": "#3B82F615",
4665
+ "border": "#3B82F6",
4666
+ "cellText": "#E5E7EB",
4667
+ "headerText": "#F9FAFB",
4668
+ "separator": "#3B82F650",
4669
+ "title": "#F9FAFB",
4670
+ },
4671
+ },
4672
+ },
4673
+ "ref": null,
4674
+ "type": [Function: LoggerProvider],
4675
+ }
4676
+ `;
4677
+
4678
+ exports[`PromptRenderer confirm prompt should render with No selected 1`] = `
4679
+ {
4680
+ "$$typeof": Symbol(react.transitional.element),
4681
+ "_debugInfo": null,
4682
+ "_debugStack": [Error: react-stack-top-frame],
4683
+ "_debugTask": null,
4684
+ "_owner": null,
4685
+ "_store": {
4686
+ "validated": 0,
4687
+ },
4688
+ "key": null,
4689
+ "props": {
4690
+ "children": {
4691
+ "$$typeof": Symbol(react.transitional.element),
4692
+ "_debugInfo": null,
4693
+ "_debugStack": [Error: react-stack-top-frame],
4694
+ "_debugTask": null,
4695
+ "_owner": null,
4696
+ "_store": {
4697
+ "validated": 1,
4698
+ },
4699
+ "key": null,
4700
+ "props": {
4701
+ "prompt": {
4702
+ "cancelText": "No",
4703
+ "confirmText": "Yes",
4704
+ "defaultValue": true,
4705
+ "id": "prompt-17",
4706
+ "question": "Continue?",
4707
+ "resolved": false,
4708
+ "selectedValue": false,
4709
+ "timestamp": 2025-01-01T00:00:00.000Z,
4710
+ "type": "confirm",
4711
+ },
4712
+ },
4713
+ "ref": null,
4714
+ "type": [Function: PromptRenderer],
4715
+ },
4716
+ "levelColors": undefined,
4717
+ "theme": {
4718
+ "colors": {
4719
+ "background": "#111827",
4720
+ "error": "#EF4444",
4721
+ "foreground": "#F9FAFB",
4722
+ "muted": "#6B7280",
4723
+ "primary": "#3B82F6",
4724
+ "secondary": "#8B5CF6",
4725
+ "success": "#22C55E",
4726
+ "warning": "#F59E0B",
4727
+ },
4728
+ "errorHighlight": {
4729
+ "background": "#EF444425",
4730
+ "border": "#EF4444",
4731
+ "gutterBackground": "#EF444440",
4732
+ },
4733
+ "file": {
4734
+ "background": "#3B82F615",
4735
+ "border": "#3B82F6",
4736
+ "headerBackground": "#3B82F625",
4737
+ "headerText": "#F9FAFB",
4738
+ },
4739
+ "filter": {
4740
+ "activeLevel": "#3B82F6",
4741
+ "background": "#1F293780",
4742
+ "border": "#3B82F6",
4743
+ "cursor": "#3B82F6",
4744
+ "inactiveLevel": "#4B5563",
4745
+ "inputBackground": "#1F2937",
4746
+ "inputPlaceholder": "#6B7280",
4747
+ "inputText": "#F9FAFB",
4748
+ "text": "#E5E7EB",
4749
+ "textDim": "#6B7280",
4750
+ },
4751
+ "group": {
4752
+ "background": "#6B728010",
4753
+ "border": "#6B7280",
4754
+ "headerText": "#E5E7EB",
4755
+ "icon": "#9CA3AF",
4756
+ },
4757
+ "header": {
4758
+ "background": undefined,
4759
+ "border": "#374151",
4760
+ "text": "#F9FAFB",
4761
+ },
4762
+ "help": {
4763
+ "background": "#1F2937",
4764
+ "border": "#3B82F6",
4765
+ "category": "#3B82F6",
4766
+ "description": "#E5E7EB",
4767
+ "hint": "#6B7280",
4768
+ "key": "#F59E0B",
4769
+ "title": "#F9FAFB",
4770
+ },
4771
+ "logLevels": {
4772
+ "debug": {
4773
+ "background": "#8B5CF615",
4774
+ "border": "#8B5CF6",
4775
+ },
4776
+ "error": {
4777
+ "background": "#EF444415",
4778
+ "border": "#EF4444",
4779
+ },
4780
+ "fatal": {
4781
+ "background": "#DC262625",
4782
+ "border": "#DC2626",
4783
+ "text": "#FCA5A5",
4784
+ },
4785
+ "log": {
4786
+ "background": "#3B82F615",
4787
+ "border": "#3B82F6",
4788
+ },
4789
+ "verbose": {
4790
+ "background": "#6B728015",
4791
+ "border": "#6B7280",
4792
+ },
4793
+ "warn": {
4794
+ "background": "#F59E0B15",
4795
+ "border": "#F59E0B",
4796
+ },
4797
+ },
4798
+ "name": "dark",
4799
+ "progress": {
4800
+ "background": "#3B82F615",
4801
+ "barEmpty": "#374151",
4802
+ "barFilled": "#3B82F6",
4803
+ "border": "#3B82F6",
4804
+ "complete": "#22C55E",
4805
+ "completeBackground": "#22C55E15",
4806
+ "failed": "#EF4444",
4807
+ "failedBackground": "#EF444415",
4808
+ "text": "#E5E7EB",
4809
+ "textDim": "#9CA3AF",
4810
+ },
4811
+ "prompt": {
4812
+ "border": "#374151",
4813
+ "buttonBackground": "#374151",
4814
+ "buttonSelectedBackground": "#1F2937",
4815
+ "cancelButton": "#EF4444",
4816
+ "confirmButton": "#22C55E",
4817
+ "focusBorder": "#3B82F6",
4818
+ "inputBackground": "#1F2937",
4819
+ "inputBorder": "#3B82F6",
4820
+ "inputCursor": "#3B82F6",
4821
+ "inputPlaceholder": "#6B7280",
4822
+ "inputText": "#F9FAFB",
4823
+ "optionSelected": "#3B82F6",
4824
+ "optionSelectedBackground": "#1E3A5F",
4825
+ "optionText": "#E5E7EB",
4826
+ "optionTextDim": "#9CA3AF",
4827
+ "question": "#F9FAFB",
4828
+ },
4829
+ "separator": {
4830
+ "line": "#374151",
4831
+ "text": "#6B7280",
4832
+ },
4833
+ "sidebar": {
4834
+ "background": undefined,
4835
+ "badge": "#3B82F6",
4836
+ "border": "#374151",
4837
+ "focusBorder": "#3B82F6",
4838
+ "hoverBackground": "#374151",
4839
+ "selectedBackground": "#1F293780",
4840
+ "text": "#E5E7EB",
4841
+ "textDim": "#6B7280",
4842
+ },
4843
+ "statusIndicators": {
4844
+ "fail": {
4845
+ "color": "#EF4444",
4846
+ "icon": "✗",
4847
+ },
4848
+ "pending": {
4849
+ "color": "#F59E0B",
4850
+ "icon": "◐",
4851
+ },
4852
+ "static": {
4853
+ "color": "#3B82F6",
4854
+ "icon": "●",
4855
+ },
4856
+ "success": {
4857
+ "color": "#22C55E",
4858
+ "icon": "✓",
4859
+ },
4860
+ "waiting": {
4861
+ "color": "#6B7280",
4862
+ "icon": "○",
4863
+ },
4864
+ },
4865
+ "table": {
4866
+ "background": "#3B82F615",
4867
+ "border": "#3B82F6",
4868
+ "cellText": "#E5E7EB",
4869
+ "headerText": "#F9FAFB",
4870
+ "separator": "#3B82F650",
4871
+ "title": "#F9FAFB",
4872
+ },
4873
+ },
4874
+ },
4875
+ "ref": null,
4876
+ "type": [Function: LoggerProvider],
4877
+ }
4878
+ `;
4879
+
4880
+ exports[`PromptRenderer confirm prompt should render with custom button labels 1`] = `
4881
+ {
4882
+ "$$typeof": Symbol(react.transitional.element),
4883
+ "_debugInfo": null,
4884
+ "_debugStack": [Error: react-stack-top-frame],
4885
+ "_debugTask": null,
4886
+ "_owner": null,
4887
+ "_store": {
4888
+ "validated": 0,
4889
+ },
4890
+ "key": null,
4891
+ "props": {
4892
+ "children": {
4893
+ "$$typeof": Symbol(react.transitional.element),
4894
+ "_debugInfo": null,
4895
+ "_debugStack": [Error: react-stack-top-frame],
4896
+ "_debugTask": null,
4897
+ "_owner": null,
4898
+ "_store": {
4899
+ "validated": 1,
4900
+ },
4901
+ "key": null,
4902
+ "props": {
4903
+ "prompt": {
4904
+ "cancelText": "Keep",
4905
+ "confirmText": "Delete",
4906
+ "defaultValue": true,
4907
+ "id": "prompt-18",
4908
+ "question": "Delete this file?",
4909
+ "resolved": false,
4910
+ "selectedValue": true,
4911
+ "timestamp": 2025-01-01T00:00:00.000Z,
4912
+ "type": "confirm",
4913
+ },
4914
+ },
4915
+ "ref": null,
4916
+ "type": [Function: PromptRenderer],
4917
+ },
4918
+ "levelColors": undefined,
4919
+ "theme": {
4920
+ "colors": {
4921
+ "background": "#111827",
4922
+ "error": "#EF4444",
4923
+ "foreground": "#F9FAFB",
4924
+ "muted": "#6B7280",
4925
+ "primary": "#3B82F6",
4926
+ "secondary": "#8B5CF6",
4927
+ "success": "#22C55E",
4928
+ "warning": "#F59E0B",
4929
+ },
4930
+ "errorHighlight": {
4931
+ "background": "#EF444425",
4932
+ "border": "#EF4444",
4933
+ "gutterBackground": "#EF444440",
4934
+ },
4935
+ "file": {
4936
+ "background": "#3B82F615",
4937
+ "border": "#3B82F6",
4938
+ "headerBackground": "#3B82F625",
4939
+ "headerText": "#F9FAFB",
4940
+ },
4941
+ "filter": {
4942
+ "activeLevel": "#3B82F6",
4943
+ "background": "#1F293780",
4944
+ "border": "#3B82F6",
4945
+ "cursor": "#3B82F6",
4946
+ "inactiveLevel": "#4B5563",
4947
+ "inputBackground": "#1F2937",
4948
+ "inputPlaceholder": "#6B7280",
4949
+ "inputText": "#F9FAFB",
4950
+ "text": "#E5E7EB",
4951
+ "textDim": "#6B7280",
4952
+ },
4953
+ "group": {
4954
+ "background": "#6B728010",
4955
+ "border": "#6B7280",
4956
+ "headerText": "#E5E7EB",
4957
+ "icon": "#9CA3AF",
4958
+ },
4959
+ "header": {
4960
+ "background": undefined,
4961
+ "border": "#374151",
4962
+ "text": "#F9FAFB",
4963
+ },
4964
+ "help": {
4965
+ "background": "#1F2937",
4966
+ "border": "#3B82F6",
4967
+ "category": "#3B82F6",
4968
+ "description": "#E5E7EB",
4969
+ "hint": "#6B7280",
4970
+ "key": "#F59E0B",
4971
+ "title": "#F9FAFB",
4972
+ },
4973
+ "logLevels": {
4974
+ "debug": {
4975
+ "background": "#8B5CF615",
4976
+ "border": "#8B5CF6",
4977
+ },
4978
+ "error": {
4979
+ "background": "#EF444415",
4980
+ "border": "#EF4444",
4981
+ },
4982
+ "fatal": {
4983
+ "background": "#DC262625",
4984
+ "border": "#DC2626",
4985
+ "text": "#FCA5A5",
4986
+ },
4987
+ "log": {
4988
+ "background": "#3B82F615",
4989
+ "border": "#3B82F6",
4990
+ },
4991
+ "verbose": {
4992
+ "background": "#6B728015",
4993
+ "border": "#6B7280",
4994
+ },
4995
+ "warn": {
4996
+ "background": "#F59E0B15",
4997
+ "border": "#F59E0B",
4998
+ },
4999
+ },
5000
+ "name": "dark",
5001
+ "progress": {
5002
+ "background": "#3B82F615",
5003
+ "barEmpty": "#374151",
5004
+ "barFilled": "#3B82F6",
5005
+ "border": "#3B82F6",
5006
+ "complete": "#22C55E",
5007
+ "completeBackground": "#22C55E15",
5008
+ "failed": "#EF4444",
5009
+ "failedBackground": "#EF444415",
5010
+ "text": "#E5E7EB",
5011
+ "textDim": "#9CA3AF",
5012
+ },
5013
+ "prompt": {
5014
+ "border": "#374151",
5015
+ "buttonBackground": "#374151",
5016
+ "buttonSelectedBackground": "#1F2937",
5017
+ "cancelButton": "#EF4444",
5018
+ "confirmButton": "#22C55E",
5019
+ "focusBorder": "#3B82F6",
5020
+ "inputBackground": "#1F2937",
5021
+ "inputBorder": "#3B82F6",
5022
+ "inputCursor": "#3B82F6",
5023
+ "inputPlaceholder": "#6B7280",
5024
+ "inputText": "#F9FAFB",
5025
+ "optionSelected": "#3B82F6",
5026
+ "optionSelectedBackground": "#1E3A5F",
5027
+ "optionText": "#E5E7EB",
5028
+ "optionTextDim": "#9CA3AF",
5029
+ "question": "#F9FAFB",
5030
+ },
5031
+ "separator": {
5032
+ "line": "#374151",
5033
+ "text": "#6B7280",
5034
+ },
5035
+ "sidebar": {
5036
+ "background": undefined,
5037
+ "badge": "#3B82F6",
5038
+ "border": "#374151",
5039
+ "focusBorder": "#3B82F6",
5040
+ "hoverBackground": "#374151",
5041
+ "selectedBackground": "#1F293780",
5042
+ "text": "#E5E7EB",
5043
+ "textDim": "#6B7280",
5044
+ },
5045
+ "statusIndicators": {
5046
+ "fail": {
5047
+ "color": "#EF4444",
5048
+ "icon": "✗",
5049
+ },
5050
+ "pending": {
5051
+ "color": "#F59E0B",
5052
+ "icon": "◐",
5053
+ },
5054
+ "static": {
5055
+ "color": "#3B82F6",
5056
+ "icon": "●",
5057
+ },
5058
+ "success": {
5059
+ "color": "#22C55E",
5060
+ "icon": "✓",
5061
+ },
5062
+ "waiting": {
5063
+ "color": "#6B7280",
5064
+ "icon": "○",
5065
+ },
5066
+ },
5067
+ "table": {
5068
+ "background": "#3B82F615",
5069
+ "border": "#3B82F6",
5070
+ "cellText": "#E5E7EB",
5071
+ "headerText": "#F9FAFB",
5072
+ "separator": "#3B82F650",
5073
+ "title": "#F9FAFB",
5074
+ },
5075
+ },
5076
+ },
5077
+ "ref": null,
5078
+ "type": [Function: LoggerProvider],
5079
+ }
5080
+ `;
5081
+
5082
+ exports[`PromptRenderer input prompt should render input prompt with placeholder 1`] = `
5083
+ {
5084
+ "$$typeof": Symbol(react.transitional.element),
5085
+ "_debugInfo": null,
5086
+ "_debugStack": [Error: react-stack-top-frame],
5087
+ "_debugTask": null,
5088
+ "_owner": null,
5089
+ "_store": {
5090
+ "validated": 0,
5091
+ },
5092
+ "key": null,
5093
+ "props": {
5094
+ "children": {
5095
+ "$$typeof": Symbol(react.transitional.element),
5096
+ "_debugInfo": null,
5097
+ "_debugStack": [Error: react-stack-top-frame],
5098
+ "_debugTask": null,
5099
+ "_owner": null,
5100
+ "_store": {
5101
+ "validated": 1,
5102
+ },
5103
+ "key": null,
5104
+ "props": {
5105
+ "prompt": {
5106
+ "defaultValue": "",
5107
+ "id": "prompt-20",
5108
+ "placeholder": "John Doe",
5109
+ "question": "Enter your name",
5110
+ "resolved": false,
5111
+ "timestamp": 2025-01-01T00:00:00.000Z,
5112
+ "type": "input",
5113
+ "value": "",
5114
+ },
5115
+ },
5116
+ "ref": null,
5117
+ "type": [Function: PromptRenderer],
5118
+ },
5119
+ "levelColors": undefined,
5120
+ "theme": {
5121
+ "colors": {
5122
+ "background": "#111827",
5123
+ "error": "#EF4444",
5124
+ "foreground": "#F9FAFB",
5125
+ "muted": "#6B7280",
5126
+ "primary": "#3B82F6",
5127
+ "secondary": "#8B5CF6",
5128
+ "success": "#22C55E",
5129
+ "warning": "#F59E0B",
5130
+ },
5131
+ "errorHighlight": {
5132
+ "background": "#EF444425",
5133
+ "border": "#EF4444",
5134
+ "gutterBackground": "#EF444440",
5135
+ },
5136
+ "file": {
5137
+ "background": "#3B82F615",
5138
+ "border": "#3B82F6",
5139
+ "headerBackground": "#3B82F625",
5140
+ "headerText": "#F9FAFB",
5141
+ },
5142
+ "filter": {
5143
+ "activeLevel": "#3B82F6",
5144
+ "background": "#1F293780",
5145
+ "border": "#3B82F6",
5146
+ "cursor": "#3B82F6",
5147
+ "inactiveLevel": "#4B5563",
5148
+ "inputBackground": "#1F2937",
5149
+ "inputPlaceholder": "#6B7280",
5150
+ "inputText": "#F9FAFB",
5151
+ "text": "#E5E7EB",
5152
+ "textDim": "#6B7280",
5153
+ },
5154
+ "group": {
5155
+ "background": "#6B728010",
5156
+ "border": "#6B7280",
5157
+ "headerText": "#E5E7EB",
5158
+ "icon": "#9CA3AF",
5159
+ },
5160
+ "header": {
5161
+ "background": undefined,
5162
+ "border": "#374151",
5163
+ "text": "#F9FAFB",
5164
+ },
5165
+ "help": {
5166
+ "background": "#1F2937",
5167
+ "border": "#3B82F6",
5168
+ "category": "#3B82F6",
5169
+ "description": "#E5E7EB",
5170
+ "hint": "#6B7280",
5171
+ "key": "#F59E0B",
5172
+ "title": "#F9FAFB",
5173
+ },
5174
+ "logLevels": {
5175
+ "debug": {
5176
+ "background": "#8B5CF615",
5177
+ "border": "#8B5CF6",
5178
+ },
5179
+ "error": {
5180
+ "background": "#EF444415",
5181
+ "border": "#EF4444",
5182
+ },
5183
+ "fatal": {
5184
+ "background": "#DC262625",
5185
+ "border": "#DC2626",
5186
+ "text": "#FCA5A5",
5187
+ },
5188
+ "log": {
5189
+ "background": "#3B82F615",
5190
+ "border": "#3B82F6",
5191
+ },
5192
+ "verbose": {
5193
+ "background": "#6B728015",
5194
+ "border": "#6B7280",
5195
+ },
5196
+ "warn": {
5197
+ "background": "#F59E0B15",
5198
+ "border": "#F59E0B",
5199
+ },
5200
+ },
5201
+ "name": "dark",
5202
+ "progress": {
5203
+ "background": "#3B82F615",
5204
+ "barEmpty": "#374151",
5205
+ "barFilled": "#3B82F6",
5206
+ "border": "#3B82F6",
5207
+ "complete": "#22C55E",
5208
+ "completeBackground": "#22C55E15",
5209
+ "failed": "#EF4444",
5210
+ "failedBackground": "#EF444415",
5211
+ "text": "#E5E7EB",
5212
+ "textDim": "#9CA3AF",
5213
+ },
5214
+ "prompt": {
5215
+ "border": "#374151",
5216
+ "buttonBackground": "#374151",
5217
+ "buttonSelectedBackground": "#1F2937",
5218
+ "cancelButton": "#EF4444",
5219
+ "confirmButton": "#22C55E",
5220
+ "focusBorder": "#3B82F6",
5221
+ "inputBackground": "#1F2937",
5222
+ "inputBorder": "#3B82F6",
5223
+ "inputCursor": "#3B82F6",
5224
+ "inputPlaceholder": "#6B7280",
5225
+ "inputText": "#F9FAFB",
5226
+ "optionSelected": "#3B82F6",
5227
+ "optionSelectedBackground": "#1E3A5F",
5228
+ "optionText": "#E5E7EB",
5229
+ "optionTextDim": "#9CA3AF",
5230
+ "question": "#F9FAFB",
5231
+ },
5232
+ "separator": {
5233
+ "line": "#374151",
5234
+ "text": "#6B7280",
5235
+ },
5236
+ "sidebar": {
5237
+ "background": undefined,
5238
+ "badge": "#3B82F6",
5239
+ "border": "#374151",
5240
+ "focusBorder": "#3B82F6",
5241
+ "hoverBackground": "#374151",
5242
+ "selectedBackground": "#1F293780",
5243
+ "text": "#E5E7EB",
5244
+ "textDim": "#6B7280",
5245
+ },
5246
+ "statusIndicators": {
5247
+ "fail": {
5248
+ "color": "#EF4444",
5249
+ "icon": "✗",
5250
+ },
5251
+ "pending": {
5252
+ "color": "#F59E0B",
5253
+ "icon": "◐",
5254
+ },
5255
+ "static": {
5256
+ "color": "#3B82F6",
5257
+ "icon": "●",
5258
+ },
5259
+ "success": {
5260
+ "color": "#22C55E",
5261
+ "icon": "✓",
5262
+ },
5263
+ "waiting": {
5264
+ "color": "#6B7280",
5265
+ "icon": "○",
5266
+ },
5267
+ },
5268
+ "table": {
5269
+ "background": "#3B82F615",
5270
+ "border": "#3B82F6",
5271
+ "cellText": "#E5E7EB",
5272
+ "headerText": "#F9FAFB",
5273
+ "separator": "#3B82F650",
5274
+ "title": "#F9FAFB",
5275
+ },
5276
+ },
5277
+ },
5278
+ "ref": null,
5279
+ "type": [Function: LoggerProvider],
5280
+ }
5281
+ `;
5282
+
5283
+ exports[`PromptRenderer input prompt should render input with entered value 1`] = `
5284
+ {
5285
+ "$$typeof": Symbol(react.transitional.element),
5286
+ "_debugInfo": null,
5287
+ "_debugStack": [Error: react-stack-top-frame],
5288
+ "_debugTask": null,
5289
+ "_owner": null,
5290
+ "_store": {
5291
+ "validated": 0,
5292
+ },
5293
+ "key": null,
5294
+ "props": {
5295
+ "children": {
5296
+ "$$typeof": Symbol(react.transitional.element),
5297
+ "_debugInfo": null,
5298
+ "_debugStack": [Error: react-stack-top-frame],
5299
+ "_debugTask": null,
5300
+ "_owner": null,
5301
+ "_store": {
5302
+ "validated": 1,
5303
+ },
5304
+ "key": null,
5305
+ "props": {
5306
+ "prompt": {
5307
+ "defaultValue": "",
5308
+ "id": "prompt-21",
5309
+ "placeholder": "user@example.com",
5310
+ "question": "Enter your email",
5311
+ "resolved": false,
5312
+ "timestamp": 2025-01-01T00:00:00.000Z,
5313
+ "type": "input",
5314
+ "value": "test@test.com",
5315
+ },
5316
+ },
5317
+ "ref": null,
5318
+ "type": [Function: PromptRenderer],
5319
+ },
5320
+ "levelColors": undefined,
5321
+ "theme": {
5322
+ "colors": {
5323
+ "background": "#111827",
5324
+ "error": "#EF4444",
5325
+ "foreground": "#F9FAFB",
5326
+ "muted": "#6B7280",
5327
+ "primary": "#3B82F6",
5328
+ "secondary": "#8B5CF6",
5329
+ "success": "#22C55E",
5330
+ "warning": "#F59E0B",
5331
+ },
5332
+ "errorHighlight": {
5333
+ "background": "#EF444425",
5334
+ "border": "#EF4444",
5335
+ "gutterBackground": "#EF444440",
5336
+ },
5337
+ "file": {
5338
+ "background": "#3B82F615",
5339
+ "border": "#3B82F6",
5340
+ "headerBackground": "#3B82F625",
5341
+ "headerText": "#F9FAFB",
5342
+ },
5343
+ "filter": {
5344
+ "activeLevel": "#3B82F6",
5345
+ "background": "#1F293780",
5346
+ "border": "#3B82F6",
5347
+ "cursor": "#3B82F6",
5348
+ "inactiveLevel": "#4B5563",
5349
+ "inputBackground": "#1F2937",
5350
+ "inputPlaceholder": "#6B7280",
5351
+ "inputText": "#F9FAFB",
5352
+ "text": "#E5E7EB",
5353
+ "textDim": "#6B7280",
5354
+ },
5355
+ "group": {
5356
+ "background": "#6B728010",
5357
+ "border": "#6B7280",
5358
+ "headerText": "#E5E7EB",
5359
+ "icon": "#9CA3AF",
5360
+ },
5361
+ "header": {
5362
+ "background": undefined,
5363
+ "border": "#374151",
5364
+ "text": "#F9FAFB",
5365
+ },
5366
+ "help": {
5367
+ "background": "#1F2937",
5368
+ "border": "#3B82F6",
5369
+ "category": "#3B82F6",
5370
+ "description": "#E5E7EB",
5371
+ "hint": "#6B7280",
5372
+ "key": "#F59E0B",
5373
+ "title": "#F9FAFB",
5374
+ },
5375
+ "logLevels": {
5376
+ "debug": {
5377
+ "background": "#8B5CF615",
5378
+ "border": "#8B5CF6",
5379
+ },
5380
+ "error": {
5381
+ "background": "#EF444415",
5382
+ "border": "#EF4444",
5383
+ },
5384
+ "fatal": {
5385
+ "background": "#DC262625",
5386
+ "border": "#DC2626",
5387
+ "text": "#FCA5A5",
5388
+ },
5389
+ "log": {
5390
+ "background": "#3B82F615",
5391
+ "border": "#3B82F6",
5392
+ },
5393
+ "verbose": {
5394
+ "background": "#6B728015",
5395
+ "border": "#6B7280",
5396
+ },
5397
+ "warn": {
5398
+ "background": "#F59E0B15",
5399
+ "border": "#F59E0B",
5400
+ },
5401
+ },
5402
+ "name": "dark",
5403
+ "progress": {
5404
+ "background": "#3B82F615",
5405
+ "barEmpty": "#374151",
5406
+ "barFilled": "#3B82F6",
5407
+ "border": "#3B82F6",
5408
+ "complete": "#22C55E",
5409
+ "completeBackground": "#22C55E15",
5410
+ "failed": "#EF4444",
5411
+ "failedBackground": "#EF444415",
5412
+ "text": "#E5E7EB",
5413
+ "textDim": "#9CA3AF",
5414
+ },
5415
+ "prompt": {
5416
+ "border": "#374151",
5417
+ "buttonBackground": "#374151",
5418
+ "buttonSelectedBackground": "#1F2937",
5419
+ "cancelButton": "#EF4444",
5420
+ "confirmButton": "#22C55E",
5421
+ "focusBorder": "#3B82F6",
5422
+ "inputBackground": "#1F2937",
5423
+ "inputBorder": "#3B82F6",
5424
+ "inputCursor": "#3B82F6",
5425
+ "inputPlaceholder": "#6B7280",
5426
+ "inputText": "#F9FAFB",
5427
+ "optionSelected": "#3B82F6",
5428
+ "optionSelectedBackground": "#1E3A5F",
5429
+ "optionText": "#E5E7EB",
5430
+ "optionTextDim": "#9CA3AF",
5431
+ "question": "#F9FAFB",
5432
+ },
5433
+ "separator": {
5434
+ "line": "#374151",
5435
+ "text": "#6B7280",
5436
+ },
5437
+ "sidebar": {
5438
+ "background": undefined,
5439
+ "badge": "#3B82F6",
5440
+ "border": "#374151",
5441
+ "focusBorder": "#3B82F6",
5442
+ "hoverBackground": "#374151",
5443
+ "selectedBackground": "#1F293780",
5444
+ "text": "#E5E7EB",
5445
+ "textDim": "#6B7280",
5446
+ },
5447
+ "statusIndicators": {
5448
+ "fail": {
5449
+ "color": "#EF4444",
5450
+ "icon": "✗",
5451
+ },
5452
+ "pending": {
5453
+ "color": "#F59E0B",
5454
+ "icon": "◐",
5455
+ },
5456
+ "static": {
5457
+ "color": "#3B82F6",
5458
+ "icon": "●",
5459
+ },
5460
+ "success": {
5461
+ "color": "#22C55E",
5462
+ "icon": "✓",
5463
+ },
5464
+ "waiting": {
5465
+ "color": "#6B7280",
5466
+ "icon": "○",
5467
+ },
5468
+ },
5469
+ "table": {
5470
+ "background": "#3B82F615",
5471
+ "border": "#3B82F6",
5472
+ "cellText": "#E5E7EB",
5473
+ "headerText": "#F9FAFB",
5474
+ "separator": "#3B82F650",
5475
+ "title": "#F9FAFB",
5476
+ },
5477
+ },
5478
+ },
5479
+ "ref": null,
5480
+ "type": [Function: LoggerProvider],
5481
+ }
5482
+ `;
5483
+
5484
+ exports[`PromptRenderer input prompt should render resolved input prompt 1`] = `
5485
+ {
5486
+ "$$typeof": Symbol(react.transitional.element),
5487
+ "_debugInfo": null,
5488
+ "_debugStack": [Error: react-stack-top-frame],
5489
+ "_debugTask": null,
5490
+ "_owner": null,
5491
+ "_store": {
5492
+ "validated": 0,
5493
+ },
5494
+ "key": null,
5495
+ "props": {
5496
+ "children": {
5497
+ "$$typeof": Symbol(react.transitional.element),
5498
+ "_debugInfo": null,
5499
+ "_debugStack": [Error: react-stack-top-frame],
5500
+ "_debugTask": null,
5501
+ "_owner": null,
5502
+ "_store": {
5503
+ "validated": 1,
5504
+ },
5505
+ "key": null,
5506
+ "props": {
5507
+ "prompt": {
5508
+ "defaultValue": "",
5509
+ "id": "prompt-22",
5510
+ "placeholder": "Type here...",
5511
+ "question": "Already answered",
5512
+ "resolved": true,
5513
+ "resolvedValue": "My answer",
5514
+ "timestamp": 2025-01-01T00:00:00.000Z,
5515
+ "type": "input",
5516
+ "value": "My answer",
5517
+ },
5518
+ },
5519
+ "ref": null,
5520
+ "type": [Function: PromptRenderer],
5521
+ },
5522
+ "levelColors": undefined,
5523
+ "theme": {
5524
+ "colors": {
5525
+ "background": "#111827",
5526
+ "error": "#EF4444",
5527
+ "foreground": "#F9FAFB",
5528
+ "muted": "#6B7280",
5529
+ "primary": "#3B82F6",
5530
+ "secondary": "#8B5CF6",
5531
+ "success": "#22C55E",
5532
+ "warning": "#F59E0B",
5533
+ },
5534
+ "errorHighlight": {
5535
+ "background": "#EF444425",
5536
+ "border": "#EF4444",
5537
+ "gutterBackground": "#EF444440",
5538
+ },
5539
+ "file": {
5540
+ "background": "#3B82F615",
5541
+ "border": "#3B82F6",
5542
+ "headerBackground": "#3B82F625",
5543
+ "headerText": "#F9FAFB",
5544
+ },
5545
+ "filter": {
5546
+ "activeLevel": "#3B82F6",
5547
+ "background": "#1F293780",
5548
+ "border": "#3B82F6",
5549
+ "cursor": "#3B82F6",
5550
+ "inactiveLevel": "#4B5563",
5551
+ "inputBackground": "#1F2937",
5552
+ "inputPlaceholder": "#6B7280",
5553
+ "inputText": "#F9FAFB",
5554
+ "text": "#E5E7EB",
5555
+ "textDim": "#6B7280",
5556
+ },
5557
+ "group": {
5558
+ "background": "#6B728010",
5559
+ "border": "#6B7280",
5560
+ "headerText": "#E5E7EB",
5561
+ "icon": "#9CA3AF",
5562
+ },
5563
+ "header": {
5564
+ "background": undefined,
5565
+ "border": "#374151",
5566
+ "text": "#F9FAFB",
5567
+ },
5568
+ "help": {
5569
+ "background": "#1F2937",
5570
+ "border": "#3B82F6",
5571
+ "category": "#3B82F6",
5572
+ "description": "#E5E7EB",
5573
+ "hint": "#6B7280",
5574
+ "key": "#F59E0B",
5575
+ "title": "#F9FAFB",
5576
+ },
5577
+ "logLevels": {
5578
+ "debug": {
5579
+ "background": "#8B5CF615",
5580
+ "border": "#8B5CF6",
5581
+ },
5582
+ "error": {
5583
+ "background": "#EF444415",
5584
+ "border": "#EF4444",
5585
+ },
5586
+ "fatal": {
5587
+ "background": "#DC262625",
5588
+ "border": "#DC2626",
5589
+ "text": "#FCA5A5",
5590
+ },
5591
+ "log": {
5592
+ "background": "#3B82F615",
5593
+ "border": "#3B82F6",
5594
+ },
5595
+ "verbose": {
5596
+ "background": "#6B728015",
5597
+ "border": "#6B7280",
5598
+ },
5599
+ "warn": {
5600
+ "background": "#F59E0B15",
5601
+ "border": "#F59E0B",
5602
+ },
5603
+ },
5604
+ "name": "dark",
5605
+ "progress": {
5606
+ "background": "#3B82F615",
5607
+ "barEmpty": "#374151",
5608
+ "barFilled": "#3B82F6",
5609
+ "border": "#3B82F6",
5610
+ "complete": "#22C55E",
5611
+ "completeBackground": "#22C55E15",
5612
+ "failed": "#EF4444",
5613
+ "failedBackground": "#EF444415",
5614
+ "text": "#E5E7EB",
5615
+ "textDim": "#9CA3AF",
5616
+ },
5617
+ "prompt": {
5618
+ "border": "#374151",
5619
+ "buttonBackground": "#374151",
5620
+ "buttonSelectedBackground": "#1F2937",
5621
+ "cancelButton": "#EF4444",
5622
+ "confirmButton": "#22C55E",
5623
+ "focusBorder": "#3B82F6",
5624
+ "inputBackground": "#1F2937",
5625
+ "inputBorder": "#3B82F6",
5626
+ "inputCursor": "#3B82F6",
5627
+ "inputPlaceholder": "#6B7280",
5628
+ "inputText": "#F9FAFB",
5629
+ "optionSelected": "#3B82F6",
5630
+ "optionSelectedBackground": "#1E3A5F",
5631
+ "optionText": "#E5E7EB",
5632
+ "optionTextDim": "#9CA3AF",
5633
+ "question": "#F9FAFB",
5634
+ },
5635
+ "separator": {
5636
+ "line": "#374151",
5637
+ "text": "#6B7280",
5638
+ },
5639
+ "sidebar": {
5640
+ "background": undefined,
5641
+ "badge": "#3B82F6",
5642
+ "border": "#374151",
5643
+ "focusBorder": "#3B82F6",
5644
+ "hoverBackground": "#374151",
5645
+ "selectedBackground": "#1F293780",
5646
+ "text": "#E5E7EB",
5647
+ "textDim": "#6B7280",
5648
+ },
5649
+ "statusIndicators": {
5650
+ "fail": {
5651
+ "color": "#EF4444",
5652
+ "icon": "✗",
5653
+ },
5654
+ "pending": {
5655
+ "color": "#F59E0B",
5656
+ "icon": "◐",
5657
+ },
5658
+ "static": {
5659
+ "color": "#3B82F6",
5660
+ "icon": "●",
5661
+ },
5662
+ "success": {
5663
+ "color": "#22C55E",
5664
+ "icon": "✓",
5665
+ },
5666
+ "waiting": {
5667
+ "color": "#6B7280",
5668
+ "icon": "○",
5669
+ },
5670
+ },
5671
+ "table": {
5672
+ "background": "#3B82F615",
5673
+ "border": "#3B82F6",
5674
+ "cellText": "#E5E7EB",
5675
+ "headerText": "#F9FAFB",
5676
+ "separator": "#3B82F650",
5677
+ "title": "#F9FAFB",
5678
+ },
5679
+ },
5680
+ },
5681
+ "ref": null,
5682
+ "type": [Function: LoggerProvider],
5683
+ }
5684
+ `;
5685
+
5686
+ exports[`PromptRenderer multiChoice prompt should render multiChoice with checkboxes 1`] = `
5687
+ {
5688
+ "$$typeof": Symbol(react.transitional.element),
5689
+ "_debugInfo": null,
5690
+ "_debugStack": [Error: react-stack-top-frame],
5691
+ "_debugTask": null,
5692
+ "_owner": null,
5693
+ "_store": {
5694
+ "validated": 0,
5695
+ },
5696
+ "key": null,
5697
+ "props": {
5698
+ "children": {
5699
+ "$$typeof": Symbol(react.transitional.element),
5700
+ "_debugInfo": null,
5701
+ "_debugStack": [Error: react-stack-top-frame],
5702
+ "_debugTask": null,
5703
+ "_owner": null,
5704
+ "_store": {
5705
+ "validated": 1,
5706
+ },
5707
+ "key": null,
5708
+ "props": {
5709
+ "prompt": {
5710
+ "choices": [
5711
+ {
5712
+ "label": "Option A",
5713
+ "value": "a",
5714
+ },
5715
+ {
5716
+ "label": "Option B",
5717
+ "value": "b",
5718
+ },
5719
+ {
5720
+ "label": "Option C",
5721
+ "value": "c",
5722
+ },
5723
+ ],
5724
+ "focusedIndex": 0,
5725
+ "id": "prompt-23",
5726
+ "maxSelect": 3,
5727
+ "minSelect": 0,
5728
+ "question": "Select all that apply",
5729
+ "resolved": false,
5730
+ "selectedIndices": Set {},
5731
+ "timestamp": 2025-01-01T00:00:00.000Z,
5732
+ "type": "multiChoice",
5733
+ },
5734
+ },
5735
+ "ref": null,
5736
+ "type": [Function: PromptRenderer],
5737
+ },
5738
+ "levelColors": undefined,
5739
+ "theme": {
5740
+ "colors": {
5741
+ "background": "#111827",
5742
+ "error": "#EF4444",
5743
+ "foreground": "#F9FAFB",
5744
+ "muted": "#6B7280",
5745
+ "primary": "#3B82F6",
5746
+ "secondary": "#8B5CF6",
5747
+ "success": "#22C55E",
5748
+ "warning": "#F59E0B",
5749
+ },
5750
+ "errorHighlight": {
5751
+ "background": "#EF444425",
5752
+ "border": "#EF4444",
5753
+ "gutterBackground": "#EF444440",
5754
+ },
5755
+ "file": {
5756
+ "background": "#3B82F615",
5757
+ "border": "#3B82F6",
5758
+ "headerBackground": "#3B82F625",
5759
+ "headerText": "#F9FAFB",
5760
+ },
5761
+ "filter": {
5762
+ "activeLevel": "#3B82F6",
5763
+ "background": "#1F293780",
5764
+ "border": "#3B82F6",
5765
+ "cursor": "#3B82F6",
5766
+ "inactiveLevel": "#4B5563",
5767
+ "inputBackground": "#1F2937",
5768
+ "inputPlaceholder": "#6B7280",
5769
+ "inputText": "#F9FAFB",
5770
+ "text": "#E5E7EB",
5771
+ "textDim": "#6B7280",
5772
+ },
5773
+ "group": {
5774
+ "background": "#6B728010",
5775
+ "border": "#6B7280",
5776
+ "headerText": "#E5E7EB",
5777
+ "icon": "#9CA3AF",
5778
+ },
5779
+ "header": {
5780
+ "background": undefined,
5781
+ "border": "#374151",
5782
+ "text": "#F9FAFB",
5783
+ },
5784
+ "help": {
5785
+ "background": "#1F2937",
5786
+ "border": "#3B82F6",
5787
+ "category": "#3B82F6",
5788
+ "description": "#E5E7EB",
5789
+ "hint": "#6B7280",
5790
+ "key": "#F59E0B",
5791
+ "title": "#F9FAFB",
5792
+ },
5793
+ "logLevels": {
5794
+ "debug": {
5795
+ "background": "#8B5CF615",
5796
+ "border": "#8B5CF6",
5797
+ },
5798
+ "error": {
5799
+ "background": "#EF444415",
5800
+ "border": "#EF4444",
5801
+ },
5802
+ "fatal": {
5803
+ "background": "#DC262625",
5804
+ "border": "#DC2626",
5805
+ "text": "#FCA5A5",
5806
+ },
5807
+ "log": {
5808
+ "background": "#3B82F615",
5809
+ "border": "#3B82F6",
5810
+ },
5811
+ "verbose": {
5812
+ "background": "#6B728015",
5813
+ "border": "#6B7280",
5814
+ },
5815
+ "warn": {
5816
+ "background": "#F59E0B15",
5817
+ "border": "#F59E0B",
5818
+ },
5819
+ },
5820
+ "name": "dark",
5821
+ "progress": {
5822
+ "background": "#3B82F615",
5823
+ "barEmpty": "#374151",
5824
+ "barFilled": "#3B82F6",
5825
+ "border": "#3B82F6",
5826
+ "complete": "#22C55E",
5827
+ "completeBackground": "#22C55E15",
5828
+ "failed": "#EF4444",
5829
+ "failedBackground": "#EF444415",
5830
+ "text": "#E5E7EB",
5831
+ "textDim": "#9CA3AF",
5832
+ },
5833
+ "prompt": {
5834
+ "border": "#374151",
5835
+ "buttonBackground": "#374151",
5836
+ "buttonSelectedBackground": "#1F2937",
5837
+ "cancelButton": "#EF4444",
5838
+ "confirmButton": "#22C55E",
5839
+ "focusBorder": "#3B82F6",
5840
+ "inputBackground": "#1F2937",
5841
+ "inputBorder": "#3B82F6",
5842
+ "inputCursor": "#3B82F6",
5843
+ "inputPlaceholder": "#6B7280",
5844
+ "inputText": "#F9FAFB",
5845
+ "optionSelected": "#3B82F6",
5846
+ "optionSelectedBackground": "#1E3A5F",
5847
+ "optionText": "#E5E7EB",
5848
+ "optionTextDim": "#9CA3AF",
5849
+ "question": "#F9FAFB",
5850
+ },
5851
+ "separator": {
5852
+ "line": "#374151",
5853
+ "text": "#6B7280",
5854
+ },
5855
+ "sidebar": {
5856
+ "background": undefined,
5857
+ "badge": "#3B82F6",
5858
+ "border": "#374151",
5859
+ "focusBorder": "#3B82F6",
5860
+ "hoverBackground": "#374151",
5861
+ "selectedBackground": "#1F293780",
5862
+ "text": "#E5E7EB",
5863
+ "textDim": "#6B7280",
5864
+ },
5865
+ "statusIndicators": {
5866
+ "fail": {
5867
+ "color": "#EF4444",
5868
+ "icon": "✗",
5869
+ },
5870
+ "pending": {
5871
+ "color": "#F59E0B",
5872
+ "icon": "◐",
5873
+ },
5874
+ "static": {
5875
+ "color": "#3B82F6",
5876
+ "icon": "●",
5877
+ },
5878
+ "success": {
5879
+ "color": "#22C55E",
5880
+ "icon": "✓",
5881
+ },
5882
+ "waiting": {
5883
+ "color": "#6B7280",
5884
+ "icon": "○",
5885
+ },
5886
+ },
5887
+ "table": {
5888
+ "background": "#3B82F615",
5889
+ "border": "#3B82F6",
5890
+ "cellText": "#E5E7EB",
5891
+ "headerText": "#F9FAFB",
5892
+ "separator": "#3B82F650",
5893
+ "title": "#F9FAFB",
5894
+ },
5895
+ },
5896
+ },
5897
+ "ref": null,
5898
+ "type": [Function: LoggerProvider],
5899
+ }
5900
+ `;
5901
+
5902
+ exports[`PromptRenderer multiChoice prompt should render resolved multiChoice prompt 1`] = `
5903
+ {
5904
+ "$$typeof": Symbol(react.transitional.element),
5905
+ "_debugInfo": null,
5906
+ "_debugStack": [Error: react-stack-top-frame],
5907
+ "_debugTask": null,
5908
+ "_owner": null,
5909
+ "_store": {
5910
+ "validated": 0,
5911
+ },
5912
+ "key": null,
5913
+ "props": {
5914
+ "children": {
5915
+ "$$typeof": Symbol(react.transitional.element),
5916
+ "_debugInfo": null,
5917
+ "_debugStack": [Error: react-stack-top-frame],
5918
+ "_debugTask": null,
5919
+ "_owner": null,
5920
+ "_store": {
5921
+ "validated": 1,
5922
+ },
5923
+ "key": null,
5924
+ "props": {
5925
+ "prompt": {
5926
+ "choices": [
5927
+ {
5928
+ "label": "A",
5929
+ "value": "a",
5930
+ },
5931
+ {
5932
+ "label": "B",
5933
+ "value": "b",
5934
+ },
5935
+ ],
5936
+ "focusedIndex": 0,
5937
+ "id": "prompt-27",
5938
+ "maxSelect": 3,
5939
+ "minSelect": 0,
5940
+ "question": "Already selected",
5941
+ "resolved": true,
5942
+ "resolvedValues": [
5943
+ "a",
5944
+ "b",
5945
+ ],
5946
+ "selectedIndices":
5947
+ Set {
5948
+ 0,
5949
+ 1,
5950
+ }
5951
+ ,
5952
+ "timestamp": 2025-01-01T00:00:00.000Z,
5953
+ "type": "multiChoice",
5954
+ },
5955
+ },
5956
+ "ref": null,
5957
+ "type": [Function: PromptRenderer],
5958
+ },
5959
+ "levelColors": undefined,
5960
+ "theme": {
5961
+ "colors": {
5962
+ "background": "#111827",
5963
+ "error": "#EF4444",
5964
+ "foreground": "#F9FAFB",
5965
+ "muted": "#6B7280",
5966
+ "primary": "#3B82F6",
5967
+ "secondary": "#8B5CF6",
5968
+ "success": "#22C55E",
5969
+ "warning": "#F59E0B",
5970
+ },
5971
+ "errorHighlight": {
5972
+ "background": "#EF444425",
5973
+ "border": "#EF4444",
5974
+ "gutterBackground": "#EF444440",
5975
+ },
5976
+ "file": {
5977
+ "background": "#3B82F615",
5978
+ "border": "#3B82F6",
5979
+ "headerBackground": "#3B82F625",
5980
+ "headerText": "#F9FAFB",
5981
+ },
5982
+ "filter": {
5983
+ "activeLevel": "#3B82F6",
5984
+ "background": "#1F293780",
5985
+ "border": "#3B82F6",
5986
+ "cursor": "#3B82F6",
5987
+ "inactiveLevel": "#4B5563",
5988
+ "inputBackground": "#1F2937",
5989
+ "inputPlaceholder": "#6B7280",
5990
+ "inputText": "#F9FAFB",
5991
+ "text": "#E5E7EB",
5992
+ "textDim": "#6B7280",
5993
+ },
5994
+ "group": {
5995
+ "background": "#6B728010",
5996
+ "border": "#6B7280",
5997
+ "headerText": "#E5E7EB",
5998
+ "icon": "#9CA3AF",
5999
+ },
6000
+ "header": {
6001
+ "background": undefined,
6002
+ "border": "#374151",
6003
+ "text": "#F9FAFB",
6004
+ },
6005
+ "help": {
6006
+ "background": "#1F2937",
6007
+ "border": "#3B82F6",
6008
+ "category": "#3B82F6",
6009
+ "description": "#E5E7EB",
6010
+ "hint": "#6B7280",
6011
+ "key": "#F59E0B",
6012
+ "title": "#F9FAFB",
6013
+ },
6014
+ "logLevels": {
6015
+ "debug": {
6016
+ "background": "#8B5CF615",
6017
+ "border": "#8B5CF6",
6018
+ },
6019
+ "error": {
6020
+ "background": "#EF444415",
6021
+ "border": "#EF4444",
6022
+ },
6023
+ "fatal": {
6024
+ "background": "#DC262625",
6025
+ "border": "#DC2626",
6026
+ "text": "#FCA5A5",
6027
+ },
6028
+ "log": {
6029
+ "background": "#3B82F615",
6030
+ "border": "#3B82F6",
6031
+ },
6032
+ "verbose": {
6033
+ "background": "#6B728015",
6034
+ "border": "#6B7280",
6035
+ },
6036
+ "warn": {
6037
+ "background": "#F59E0B15",
6038
+ "border": "#F59E0B",
6039
+ },
6040
+ },
6041
+ "name": "dark",
6042
+ "progress": {
6043
+ "background": "#3B82F615",
6044
+ "barEmpty": "#374151",
6045
+ "barFilled": "#3B82F6",
6046
+ "border": "#3B82F6",
6047
+ "complete": "#22C55E",
6048
+ "completeBackground": "#22C55E15",
6049
+ "failed": "#EF4444",
6050
+ "failedBackground": "#EF444415",
6051
+ "text": "#E5E7EB",
6052
+ "textDim": "#9CA3AF",
6053
+ },
6054
+ "prompt": {
6055
+ "border": "#374151",
6056
+ "buttonBackground": "#374151",
6057
+ "buttonSelectedBackground": "#1F2937",
6058
+ "cancelButton": "#EF4444",
6059
+ "confirmButton": "#22C55E",
6060
+ "focusBorder": "#3B82F6",
6061
+ "inputBackground": "#1F2937",
6062
+ "inputBorder": "#3B82F6",
6063
+ "inputCursor": "#3B82F6",
6064
+ "inputPlaceholder": "#6B7280",
6065
+ "inputText": "#F9FAFB",
6066
+ "optionSelected": "#3B82F6",
6067
+ "optionSelectedBackground": "#1E3A5F",
6068
+ "optionText": "#E5E7EB",
6069
+ "optionTextDim": "#9CA3AF",
6070
+ "question": "#F9FAFB",
6071
+ },
6072
+ "separator": {
6073
+ "line": "#374151",
6074
+ "text": "#6B7280",
6075
+ },
6076
+ "sidebar": {
6077
+ "background": undefined,
6078
+ "badge": "#3B82F6",
6079
+ "border": "#374151",
6080
+ "focusBorder": "#3B82F6",
6081
+ "hoverBackground": "#374151",
6082
+ "selectedBackground": "#1F293780",
6083
+ "text": "#E5E7EB",
6084
+ "textDim": "#6B7280",
6085
+ },
6086
+ "statusIndicators": {
6087
+ "fail": {
6088
+ "color": "#EF4444",
6089
+ "icon": "✗",
6090
+ },
6091
+ "pending": {
6092
+ "color": "#F59E0B",
6093
+ "icon": "◐",
6094
+ },
6095
+ "static": {
6096
+ "color": "#3B82F6",
6097
+ "icon": "●",
6098
+ },
6099
+ "success": {
6100
+ "color": "#22C55E",
6101
+ "icon": "✓",
6102
+ },
6103
+ "waiting": {
6104
+ "color": "#6B7280",
6105
+ "icon": "○",
6106
+ },
6107
+ },
6108
+ "table": {
6109
+ "background": "#3B82F615",
6110
+ "border": "#3B82F6",
6111
+ "cellText": "#E5E7EB",
6112
+ "headerText": "#F9FAFB",
6113
+ "separator": "#3B82F650",
6114
+ "title": "#F9FAFB",
6115
+ },
6116
+ },
6117
+ },
6118
+ "ref": null,
6119
+ "type": [Function: LoggerProvider],
6120
+ }
6121
+ `;
6122
+
6123
+ exports[`PromptRenderer multiChoice prompt should render with some options selected 1`] = `
6124
+ {
6125
+ "$$typeof": Symbol(react.transitional.element),
6126
+ "_debugInfo": null,
6127
+ "_debugStack": [Error: react-stack-top-frame],
6128
+ "_debugTask": null,
6129
+ "_owner": null,
6130
+ "_store": {
6131
+ "validated": 0,
6132
+ },
6133
+ "key": null,
6134
+ "props": {
6135
+ "children": {
6136
+ "$$typeof": Symbol(react.transitional.element),
6137
+ "_debugInfo": null,
6138
+ "_debugStack": [Error: react-stack-top-frame],
6139
+ "_debugTask": null,
6140
+ "_owner": null,
6141
+ "_store": {
6142
+ "validated": 1,
6143
+ },
6144
+ "key": null,
6145
+ "props": {
6146
+ "prompt": {
6147
+ "choices": [
6148
+ {
6149
+ "label": "Feature A",
6150
+ "value": "a",
6151
+ },
6152
+ {
6153
+ "label": "Feature B",
6154
+ "value": "b",
6155
+ },
6156
+ {
6157
+ "label": "Feature C",
6158
+ "value": "c",
6159
+ },
6160
+ ],
6161
+ "focusedIndex": 1,
6162
+ "id": "prompt-24",
6163
+ "maxSelect": 3,
6164
+ "minSelect": 0,
6165
+ "question": "Choose features",
6166
+ "resolved": false,
6167
+ "selectedIndices":
6168
+ Set {
6169
+ 0,
6170
+ 2,
6171
+ }
6172
+ ,
6173
+ "timestamp": 2025-01-01T00:00:00.000Z,
6174
+ "type": "multiChoice",
6175
+ },
6176
+ },
6177
+ "ref": null,
6178
+ "type": [Function: PromptRenderer],
6179
+ },
6180
+ "levelColors": undefined,
6181
+ "theme": {
6182
+ "colors": {
6183
+ "background": "#111827",
6184
+ "error": "#EF4444",
6185
+ "foreground": "#F9FAFB",
6186
+ "muted": "#6B7280",
6187
+ "primary": "#3B82F6",
6188
+ "secondary": "#8B5CF6",
6189
+ "success": "#22C55E",
6190
+ "warning": "#F59E0B",
6191
+ },
6192
+ "errorHighlight": {
6193
+ "background": "#EF444425",
6194
+ "border": "#EF4444",
6195
+ "gutterBackground": "#EF444440",
6196
+ },
6197
+ "file": {
6198
+ "background": "#3B82F615",
6199
+ "border": "#3B82F6",
6200
+ "headerBackground": "#3B82F625",
6201
+ "headerText": "#F9FAFB",
6202
+ },
6203
+ "filter": {
6204
+ "activeLevel": "#3B82F6",
6205
+ "background": "#1F293780",
6206
+ "border": "#3B82F6",
6207
+ "cursor": "#3B82F6",
6208
+ "inactiveLevel": "#4B5563",
6209
+ "inputBackground": "#1F2937",
6210
+ "inputPlaceholder": "#6B7280",
6211
+ "inputText": "#F9FAFB",
6212
+ "text": "#E5E7EB",
6213
+ "textDim": "#6B7280",
6214
+ },
6215
+ "group": {
6216
+ "background": "#6B728010",
6217
+ "border": "#6B7280",
6218
+ "headerText": "#E5E7EB",
6219
+ "icon": "#9CA3AF",
6220
+ },
6221
+ "header": {
6222
+ "background": undefined,
6223
+ "border": "#374151",
6224
+ "text": "#F9FAFB",
6225
+ },
6226
+ "help": {
6227
+ "background": "#1F2937",
6228
+ "border": "#3B82F6",
6229
+ "category": "#3B82F6",
6230
+ "description": "#E5E7EB",
6231
+ "hint": "#6B7280",
6232
+ "key": "#F59E0B",
6233
+ "title": "#F9FAFB",
6234
+ },
6235
+ "logLevels": {
6236
+ "debug": {
6237
+ "background": "#8B5CF615",
6238
+ "border": "#8B5CF6",
6239
+ },
6240
+ "error": {
6241
+ "background": "#EF444415",
6242
+ "border": "#EF4444",
6243
+ },
6244
+ "fatal": {
6245
+ "background": "#DC262625",
6246
+ "border": "#DC2626",
6247
+ "text": "#FCA5A5",
6248
+ },
6249
+ "log": {
6250
+ "background": "#3B82F615",
6251
+ "border": "#3B82F6",
6252
+ },
6253
+ "verbose": {
6254
+ "background": "#6B728015",
6255
+ "border": "#6B7280",
6256
+ },
6257
+ "warn": {
6258
+ "background": "#F59E0B15",
6259
+ "border": "#F59E0B",
6260
+ },
6261
+ },
6262
+ "name": "dark",
6263
+ "progress": {
6264
+ "background": "#3B82F615",
6265
+ "barEmpty": "#374151",
6266
+ "barFilled": "#3B82F6",
6267
+ "border": "#3B82F6",
6268
+ "complete": "#22C55E",
6269
+ "completeBackground": "#22C55E15",
6270
+ "failed": "#EF4444",
6271
+ "failedBackground": "#EF444415",
6272
+ "text": "#E5E7EB",
6273
+ "textDim": "#9CA3AF",
6274
+ },
6275
+ "prompt": {
6276
+ "border": "#374151",
6277
+ "buttonBackground": "#374151",
6278
+ "buttonSelectedBackground": "#1F2937",
6279
+ "cancelButton": "#EF4444",
6280
+ "confirmButton": "#22C55E",
6281
+ "focusBorder": "#3B82F6",
6282
+ "inputBackground": "#1F2937",
6283
+ "inputBorder": "#3B82F6",
6284
+ "inputCursor": "#3B82F6",
6285
+ "inputPlaceholder": "#6B7280",
6286
+ "inputText": "#F9FAFB",
6287
+ "optionSelected": "#3B82F6",
6288
+ "optionSelectedBackground": "#1E3A5F",
6289
+ "optionText": "#E5E7EB",
6290
+ "optionTextDim": "#9CA3AF",
6291
+ "question": "#F9FAFB",
6292
+ },
6293
+ "separator": {
6294
+ "line": "#374151",
6295
+ "text": "#6B7280",
6296
+ },
6297
+ "sidebar": {
6298
+ "background": undefined,
6299
+ "badge": "#3B82F6",
6300
+ "border": "#374151",
6301
+ "focusBorder": "#3B82F6",
6302
+ "hoverBackground": "#374151",
6303
+ "selectedBackground": "#1F293780",
6304
+ "text": "#E5E7EB",
6305
+ "textDim": "#6B7280",
6306
+ },
6307
+ "statusIndicators": {
6308
+ "fail": {
6309
+ "color": "#EF4444",
6310
+ "icon": "✗",
6311
+ },
6312
+ "pending": {
6313
+ "color": "#F59E0B",
6314
+ "icon": "◐",
6315
+ },
6316
+ "static": {
6317
+ "color": "#3B82F6",
6318
+ "icon": "●",
6319
+ },
6320
+ "success": {
6321
+ "color": "#22C55E",
6322
+ "icon": "✓",
6323
+ },
6324
+ "waiting": {
6325
+ "color": "#6B7280",
6326
+ "icon": "○",
6327
+ },
6328
+ },
6329
+ "table": {
6330
+ "background": "#3B82F615",
6331
+ "border": "#3B82F6",
6332
+ "cellText": "#E5E7EB",
6333
+ "headerText": "#F9FAFB",
6334
+ "separator": "#3B82F650",
6335
+ "title": "#F9FAFB",
6336
+ },
6337
+ },
6338
+ },
6339
+ "ref": null,
6340
+ "type": [Function: LoggerProvider],
6341
+ }
6342
+ `;
6343
+
6344
+ exports[`PromptRenderer multiChoice prompt should show minSelect warning when not met 1`] = `
6345
+ {
6346
+ "$$typeof": Symbol(react.transitional.element),
6347
+ "_debugInfo": null,
6348
+ "_debugStack": [Error: react-stack-top-frame],
6349
+ "_debugTask": null,
6350
+ "_owner": null,
6351
+ "_store": {
6352
+ "validated": 0,
6353
+ },
6354
+ "key": null,
6355
+ "props": {
6356
+ "children": {
6357
+ "$$typeof": Symbol(react.transitional.element),
6358
+ "_debugInfo": null,
6359
+ "_debugStack": [Error: react-stack-top-frame],
6360
+ "_debugTask": null,
6361
+ "_owner": null,
6362
+ "_store": {
6363
+ "validated": 1,
6364
+ },
6365
+ "key": null,
6366
+ "props": {
6367
+ "prompt": {
6368
+ "choices": [
6369
+ {
6370
+ "label": "A",
6371
+ "value": "a",
6372
+ },
6373
+ {
6374
+ "label": "B",
6375
+ "value": "b",
6376
+ },
6377
+ {
6378
+ "label": "C",
6379
+ "value": "c",
6380
+ },
6381
+ ],
6382
+ "focusedIndex": 0,
6383
+ "id": "prompt-26",
6384
+ "maxSelect": 3,
6385
+ "minSelect": 2,
6386
+ "question": "Select at least 2",
6387
+ "resolved": false,
6388
+ "selectedIndices":
6389
+ Set {
6390
+ 0,
6391
+ }
6392
+ ,
6393
+ "timestamp": 2025-01-01T00:00:00.000Z,
6394
+ "type": "multiChoice",
6395
+ },
6396
+ },
6397
+ "ref": null,
6398
+ "type": [Function: PromptRenderer],
6399
+ },
6400
+ "levelColors": undefined,
6401
+ "theme": {
6402
+ "colors": {
6403
+ "background": "#111827",
6404
+ "error": "#EF4444",
6405
+ "foreground": "#F9FAFB",
6406
+ "muted": "#6B7280",
6407
+ "primary": "#3B82F6",
6408
+ "secondary": "#8B5CF6",
6409
+ "success": "#22C55E",
6410
+ "warning": "#F59E0B",
6411
+ },
6412
+ "errorHighlight": {
6413
+ "background": "#EF444425",
6414
+ "border": "#EF4444",
6415
+ "gutterBackground": "#EF444440",
6416
+ },
6417
+ "file": {
6418
+ "background": "#3B82F615",
6419
+ "border": "#3B82F6",
6420
+ "headerBackground": "#3B82F625",
6421
+ "headerText": "#F9FAFB",
6422
+ },
6423
+ "filter": {
6424
+ "activeLevel": "#3B82F6",
6425
+ "background": "#1F293780",
6426
+ "border": "#3B82F6",
6427
+ "cursor": "#3B82F6",
6428
+ "inactiveLevel": "#4B5563",
6429
+ "inputBackground": "#1F2937",
6430
+ "inputPlaceholder": "#6B7280",
6431
+ "inputText": "#F9FAFB",
6432
+ "text": "#E5E7EB",
6433
+ "textDim": "#6B7280",
6434
+ },
6435
+ "group": {
6436
+ "background": "#6B728010",
6437
+ "border": "#6B7280",
6438
+ "headerText": "#E5E7EB",
6439
+ "icon": "#9CA3AF",
6440
+ },
6441
+ "header": {
6442
+ "background": undefined,
6443
+ "border": "#374151",
6444
+ "text": "#F9FAFB",
6445
+ },
6446
+ "help": {
6447
+ "background": "#1F2937",
6448
+ "border": "#3B82F6",
6449
+ "category": "#3B82F6",
6450
+ "description": "#E5E7EB",
6451
+ "hint": "#6B7280",
6452
+ "key": "#F59E0B",
6453
+ "title": "#F9FAFB",
6454
+ },
6455
+ "logLevels": {
6456
+ "debug": {
6457
+ "background": "#8B5CF615",
6458
+ "border": "#8B5CF6",
6459
+ },
6460
+ "error": {
6461
+ "background": "#EF444415",
6462
+ "border": "#EF4444",
6463
+ },
6464
+ "fatal": {
6465
+ "background": "#DC262625",
6466
+ "border": "#DC2626",
6467
+ "text": "#FCA5A5",
6468
+ },
6469
+ "log": {
6470
+ "background": "#3B82F615",
6471
+ "border": "#3B82F6",
6472
+ },
6473
+ "verbose": {
6474
+ "background": "#6B728015",
6475
+ "border": "#6B7280",
6476
+ },
6477
+ "warn": {
6478
+ "background": "#F59E0B15",
6479
+ "border": "#F59E0B",
6480
+ },
6481
+ },
6482
+ "name": "dark",
6483
+ "progress": {
6484
+ "background": "#3B82F615",
6485
+ "barEmpty": "#374151",
6486
+ "barFilled": "#3B82F6",
6487
+ "border": "#3B82F6",
6488
+ "complete": "#22C55E",
6489
+ "completeBackground": "#22C55E15",
6490
+ "failed": "#EF4444",
6491
+ "failedBackground": "#EF444415",
6492
+ "text": "#E5E7EB",
6493
+ "textDim": "#9CA3AF",
6494
+ },
6495
+ "prompt": {
6496
+ "border": "#374151",
6497
+ "buttonBackground": "#374151",
6498
+ "buttonSelectedBackground": "#1F2937",
6499
+ "cancelButton": "#EF4444",
6500
+ "confirmButton": "#22C55E",
6501
+ "focusBorder": "#3B82F6",
6502
+ "inputBackground": "#1F2937",
6503
+ "inputBorder": "#3B82F6",
6504
+ "inputCursor": "#3B82F6",
6505
+ "inputPlaceholder": "#6B7280",
6506
+ "inputText": "#F9FAFB",
6507
+ "optionSelected": "#3B82F6",
6508
+ "optionSelectedBackground": "#1E3A5F",
6509
+ "optionText": "#E5E7EB",
6510
+ "optionTextDim": "#9CA3AF",
6511
+ "question": "#F9FAFB",
6512
+ },
6513
+ "separator": {
6514
+ "line": "#374151",
6515
+ "text": "#6B7280",
6516
+ },
6517
+ "sidebar": {
6518
+ "background": undefined,
6519
+ "badge": "#3B82F6",
6520
+ "border": "#374151",
6521
+ "focusBorder": "#3B82F6",
6522
+ "hoverBackground": "#374151",
6523
+ "selectedBackground": "#1F293780",
6524
+ "text": "#E5E7EB",
6525
+ "textDim": "#6B7280",
6526
+ },
6527
+ "statusIndicators": {
6528
+ "fail": {
6529
+ "color": "#EF4444",
6530
+ "icon": "✗",
6531
+ },
6532
+ "pending": {
6533
+ "color": "#F59E0B",
6534
+ "icon": "◐",
6535
+ },
6536
+ "static": {
6537
+ "color": "#3B82F6",
6538
+ "icon": "●",
6539
+ },
6540
+ "success": {
6541
+ "color": "#22C55E",
6542
+ "icon": "✓",
6543
+ },
6544
+ "waiting": {
6545
+ "color": "#6B7280",
6546
+ "icon": "○",
6547
+ },
6548
+ },
6549
+ "table": {
6550
+ "background": "#3B82F615",
6551
+ "border": "#3B82F6",
6552
+ "cellText": "#E5E7EB",
6553
+ "headerText": "#F9FAFB",
6554
+ "separator": "#3B82F650",
6555
+ "title": "#F9FAFB",
6556
+ },
6557
+ },
6558
+ },
6559
+ "ref": null,
6560
+ "type": [Function: LoggerProvider],
6561
+ }
6562
+ `;
6563
+
6564
+ exports[`PromptRenderer multiChoice prompt should show selection count 1`] = `
6565
+ {
6566
+ "$$typeof": Symbol(react.transitional.element),
6567
+ "_debugInfo": null,
6568
+ "_debugStack": [Error: react-stack-top-frame],
6569
+ "_debugTask": null,
6570
+ "_owner": null,
6571
+ "_store": {
6572
+ "validated": 0,
6573
+ },
6574
+ "key": null,
6575
+ "props": {
6576
+ "children": {
6577
+ "$$typeof": Symbol(react.transitional.element),
6578
+ "_debugInfo": null,
6579
+ "_debugStack": [Error: react-stack-top-frame],
6580
+ "_debugTask": null,
6581
+ "_owner": null,
6582
+ "_store": {
6583
+ "validated": 1,
6584
+ },
6585
+ "key": null,
6586
+ "props": {
6587
+ "prompt": {
6588
+ "choices": [
6589
+ {
6590
+ "label": "A",
6591
+ "value": "a",
6592
+ },
6593
+ {
6594
+ "label": "B",
6595
+ "value": "b",
6596
+ },
6597
+ {
6598
+ "label": "C",
6599
+ "value": "c",
6600
+ },
6601
+ {
6602
+ "label": "D",
6603
+ "value": "d",
6604
+ },
6605
+ ],
6606
+ "focusedIndex": 0,
6607
+ "id": "prompt-25",
6608
+ "maxSelect": 3,
6609
+ "minSelect": 0,
6610
+ "question": "Select up to 3",
6611
+ "resolved": false,
6612
+ "selectedIndices":
6613
+ Set {
6614
+ 0,
6615
+ 2,
6616
+ }
6617
+ ,
6618
+ "timestamp": 2025-01-01T00:00:00.000Z,
6619
+ "type": "multiChoice",
6620
+ },
6621
+ },
6622
+ "ref": null,
6623
+ "type": [Function: PromptRenderer],
6624
+ },
6625
+ "levelColors": undefined,
6626
+ "theme": {
6627
+ "colors": {
6628
+ "background": "#111827",
6629
+ "error": "#EF4444",
6630
+ "foreground": "#F9FAFB",
6631
+ "muted": "#6B7280",
6632
+ "primary": "#3B82F6",
6633
+ "secondary": "#8B5CF6",
6634
+ "success": "#22C55E",
6635
+ "warning": "#F59E0B",
6636
+ },
6637
+ "errorHighlight": {
6638
+ "background": "#EF444425",
6639
+ "border": "#EF4444",
6640
+ "gutterBackground": "#EF444440",
6641
+ },
6642
+ "file": {
6643
+ "background": "#3B82F615",
6644
+ "border": "#3B82F6",
6645
+ "headerBackground": "#3B82F625",
6646
+ "headerText": "#F9FAFB",
6647
+ },
6648
+ "filter": {
6649
+ "activeLevel": "#3B82F6",
6650
+ "background": "#1F293780",
6651
+ "border": "#3B82F6",
6652
+ "cursor": "#3B82F6",
6653
+ "inactiveLevel": "#4B5563",
6654
+ "inputBackground": "#1F2937",
6655
+ "inputPlaceholder": "#6B7280",
6656
+ "inputText": "#F9FAFB",
6657
+ "text": "#E5E7EB",
6658
+ "textDim": "#6B7280",
6659
+ },
6660
+ "group": {
6661
+ "background": "#6B728010",
6662
+ "border": "#6B7280",
6663
+ "headerText": "#E5E7EB",
6664
+ "icon": "#9CA3AF",
6665
+ },
6666
+ "header": {
6667
+ "background": undefined,
6668
+ "border": "#374151",
6669
+ "text": "#F9FAFB",
6670
+ },
6671
+ "help": {
6672
+ "background": "#1F2937",
6673
+ "border": "#3B82F6",
6674
+ "category": "#3B82F6",
6675
+ "description": "#E5E7EB",
6676
+ "hint": "#6B7280",
6677
+ "key": "#F59E0B",
6678
+ "title": "#F9FAFB",
6679
+ },
6680
+ "logLevels": {
6681
+ "debug": {
6682
+ "background": "#8B5CF615",
6683
+ "border": "#8B5CF6",
6684
+ },
6685
+ "error": {
6686
+ "background": "#EF444415",
6687
+ "border": "#EF4444",
6688
+ },
6689
+ "fatal": {
6690
+ "background": "#DC262625",
6691
+ "border": "#DC2626",
6692
+ "text": "#FCA5A5",
6693
+ },
6694
+ "log": {
6695
+ "background": "#3B82F615",
6696
+ "border": "#3B82F6",
6697
+ },
6698
+ "verbose": {
6699
+ "background": "#6B728015",
6700
+ "border": "#6B7280",
6701
+ },
6702
+ "warn": {
6703
+ "background": "#F59E0B15",
6704
+ "border": "#F59E0B",
6705
+ },
6706
+ },
6707
+ "name": "dark",
6708
+ "progress": {
6709
+ "background": "#3B82F615",
6710
+ "barEmpty": "#374151",
6711
+ "barFilled": "#3B82F6",
6712
+ "border": "#3B82F6",
6713
+ "complete": "#22C55E",
6714
+ "completeBackground": "#22C55E15",
6715
+ "failed": "#EF4444",
6716
+ "failedBackground": "#EF444415",
6717
+ "text": "#E5E7EB",
6718
+ "textDim": "#9CA3AF",
6719
+ },
6720
+ "prompt": {
6721
+ "border": "#374151",
6722
+ "buttonBackground": "#374151",
6723
+ "buttonSelectedBackground": "#1F2937",
6724
+ "cancelButton": "#EF4444",
6725
+ "confirmButton": "#22C55E",
6726
+ "focusBorder": "#3B82F6",
6727
+ "inputBackground": "#1F2937",
6728
+ "inputBorder": "#3B82F6",
6729
+ "inputCursor": "#3B82F6",
6730
+ "inputPlaceholder": "#6B7280",
6731
+ "inputText": "#F9FAFB",
6732
+ "optionSelected": "#3B82F6",
6733
+ "optionSelectedBackground": "#1E3A5F",
6734
+ "optionText": "#E5E7EB",
6735
+ "optionTextDim": "#9CA3AF",
6736
+ "question": "#F9FAFB",
6737
+ },
6738
+ "separator": {
6739
+ "line": "#374151",
6740
+ "text": "#6B7280",
6741
+ },
6742
+ "sidebar": {
6743
+ "background": undefined,
6744
+ "badge": "#3B82F6",
6745
+ "border": "#374151",
6746
+ "focusBorder": "#3B82F6",
6747
+ "hoverBackground": "#374151",
6748
+ "selectedBackground": "#1F293780",
6749
+ "text": "#E5E7EB",
6750
+ "textDim": "#6B7280",
6751
+ },
6752
+ "statusIndicators": {
6753
+ "fail": {
6754
+ "color": "#EF4444",
6755
+ "icon": "✗",
6756
+ },
6757
+ "pending": {
6758
+ "color": "#F59E0B",
6759
+ "icon": "◐",
6760
+ },
6761
+ "static": {
6762
+ "color": "#3B82F6",
6763
+ "icon": "●",
6764
+ },
6765
+ "success": {
6766
+ "color": "#22C55E",
6767
+ "icon": "✓",
6768
+ },
6769
+ "waiting": {
6770
+ "color": "#6B7280",
6771
+ "icon": "○",
6772
+ },
6773
+ },
6774
+ "table": {
6775
+ "background": "#3B82F615",
6776
+ "border": "#3B82F6",
6777
+ "cellText": "#E5E7EB",
6778
+ "headerText": "#F9FAFB",
6779
+ "separator": "#3B82F650",
6780
+ "title": "#F9FAFB",
6781
+ },
6782
+ },
6783
+ },
6784
+ "ref": null,
6785
+ "type": [Function: LoggerProvider],
6786
+ }
6787
+ `;