@linxiraos/pi-tui 1.4.13 → 1.5.1

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 (94) hide show
  1. package/CHANGELOG.md +33 -34
  2. package/dist/types/chat/messages.d.ts +2 -0
  3. package/dist/types/chat/spotlight.d.ts +8 -3
  4. package/dist/types/chat/transcript-render-helpers.d.ts +5 -0
  5. package/dist/types/components/editor.d.ts +4 -1
  6. package/dist/types/html-form/data.d.ts +56 -0
  7. package/dist/types/html-form/dialog.d.ts +51 -0
  8. package/dist/types/html-form/media.d.ts +28 -0
  9. package/dist/types/html-form/paginate.d.ts +43 -0
  10. package/dist/types/html-form/parse.d.ts +99 -0
  11. package/dist/types/overlays/ask-dialog.d.ts +11 -6
  12. package/dist/types/overlays/copy-targets.d.ts +8 -6
  13. package/dist/types/overlays/directory-picker.d.ts +62 -0
  14. package/dist/types/overlays/hook-editor.d.ts +3 -1
  15. package/dist/types/overlays/hub-frame.d.ts +2 -0
  16. package/dist/types/overlays/model-hub.d.ts +2 -0
  17. package/dist/types/overlays/team-hub.d.ts +150 -0
  18. package/dist/types/render/row-moves.d.ts +41 -0
  19. package/dist/types/status-line/component.d.ts +5 -0
  20. package/dist/types/status-line/host.d.ts +2 -2
  21. package/dist/types/status-line/schema.d.ts +1 -1
  22. package/dist/types/status-line/types.d.ts +8 -0
  23. package/dist/types/tools/ask.d.ts +11 -49
  24. package/dist/types/tools/autoresearch.d.ts +2 -2
  25. package/dist/types/tools/eval.d.ts +4 -0
  26. package/dist/types/tools/grouped-file-output.d.ts +2 -0
  27. package/dist/types/tools/shell-viz.d.ts +6 -2
  28. package/dist/types/tools/xd-url.d.ts +6 -0
  29. package/dist/types/windows-input-mode.d.ts +8 -0
  30. package/package.json +9 -9
  31. package/src/charts/table-data.ts +18 -5
  32. package/src/chat/chat-transcript-builder.ts +27 -10
  33. package/src/chat/image-loading.ts +55 -0
  34. package/src/chat/messages.d.ts +2 -0
  35. package/src/chat/messages.ts +3 -0
  36. package/src/chat/spotlight.d.ts +8 -3
  37. package/src/chat/spotlight.ts +23 -11
  38. package/src/chat/tool-execution.ts +5 -0
  39. package/src/chat/transcript-render-helpers.d.ts +5 -0
  40. package/src/chat/transcript-render-helpers.ts +13 -0
  41. package/src/chrome/transcript-container.ts +1 -1
  42. package/src/components/editor.d.ts +4 -1
  43. package/src/components/editor.ts +3 -2
  44. package/src/components/markdown.ts +70 -12
  45. package/src/html-form/data.d.ts +56 -0
  46. package/src/html-form/data.ts +177 -0
  47. package/src/html-form/dialog.ts +1450 -0
  48. package/src/html-form/media.ts +105 -0
  49. package/src/html-form/paginate.ts +99 -0
  50. package/src/html-form/parse.d.ts +99 -0
  51. package/src/html-form/parse.ts +568 -0
  52. package/src/lang-from-path.ts +1 -0
  53. package/src/latex-block.ts +3 -3
  54. package/src/latex-to-unicode.ts +18 -5
  55. package/src/overlays/ask-dialog.ts +69 -52
  56. package/src/overlays/copy-targets.d.ts +8 -6
  57. package/src/overlays/copy-targets.ts +25 -46
  58. package/src/overlays/directory-picker.ts +387 -0
  59. package/src/overlays/hook-editor.ts +16 -15
  60. package/src/overlays/hub-frame.ts +8 -1
  61. package/src/overlays/model-hub.ts +12 -2
  62. package/src/overlays/spotlight-sheet.ts +18 -18
  63. package/src/overlays/team-hub.ts +901 -0
  64. package/src/render/row-moves.d.ts +41 -0
  65. package/src/render/row-moves.ts +109 -0
  66. package/src/setup/wizard-overlay.ts +7 -3
  67. package/src/status-line/component.ts +19 -0
  68. package/src/status-line/footer.ts +2 -2
  69. package/src/status-line/host.ts +2 -2
  70. package/src/status-line/presets.ts +6 -6
  71. package/src/status-line/schema.ts +2 -1
  72. package/src/status-line/segments.ts +31 -4
  73. package/src/status-line/startup.ts +1 -1
  74. package/src/status-line/types.ts +8 -0
  75. package/src/stdin-buffer.ts +15 -1
  76. package/src/terminal-capabilities.ts +12 -3
  77. package/src/terminal.ts +41 -3
  78. package/src/tools/ask.d.ts +11 -49
  79. package/src/tools/ask.ts +201 -606
  80. package/src/tools/autoresearch.ts +2 -2
  81. package/src/tools/debug.ts +31 -38
  82. package/src/tools/eval.d.ts +4 -0
  83. package/src/tools/eval.ts +4 -0
  84. package/src/tools/grep.ts +38 -16
  85. package/src/tools/grouped-file-output.d.ts +2 -0
  86. package/src/tools/grouped-file-output.ts +5 -0
  87. package/src/tools/shell-viz-render.ts +37 -6
  88. package/src/tools/shell-viz.d.ts +6 -2
  89. package/src/tools/shell-viz.ts +19 -6
  90. package/src/tools/xd-url.d.ts +6 -0
  91. package/src/tools/xd-url.ts +19 -1
  92. package/src/tui.ts +129 -1
  93. package/src/windows-input-mode.d.ts +8 -0
  94. package/src/windows-input-mode.ts +13 -0
@@ -31,6 +31,14 @@ export declare class Win32InputModeDecoder {
31
31
  #private;
32
32
  /** Whether relayed VT text is held waiting for the rest of its sequence. */
33
33
  get hasPendingSequence(): boolean;
34
+ /**
35
+ * Whether the held relayed text is an OSC/DCS/APC string still waiting for
36
+ * its terminator (a TSP event, a clipboard or colour reply). Unlike a lone
37
+ * ESC or a short CSI, releasing it early cannot be mistaken for a key: the
38
+ * head would be handed on as a fragment and the tail typed as text. A bare
39
+ * two-byte introducer is not a string yet: it may be an Alt chord (Alt+]).
40
+ */
41
+ get hasPendingString(): boolean;
34
42
  /**
35
43
  * Release held VT text as-is. The caller invokes this once no further bytes
36
44
  * arrived in time, so a lone relayed ESC still acts as the Escape key.
@@ -224,6 +224,19 @@ export class Win32InputModeDecoder {
224
224
  return this.#pendingVt.length > 0;
225
225
  }
226
226
 
227
+ /**
228
+ * Whether the held relayed text is an OSC/DCS/APC string still waiting for
229
+ * its terminator (a TSP event, a clipboard or colour reply). Unlike a lone
230
+ * ESC or a short CSI, releasing it early cannot be mistaken for a key: the
231
+ * head would be handed on as a fragment and the tail typed as text. A bare
232
+ * two-byte introducer is not a string yet: it may be an Alt chord (Alt+]).
233
+ */
234
+ get hasPendingString(): boolean {
235
+ if (this.#pendingVt.length < 3) return false;
236
+ const introducer = this.#pendingVt[1];
237
+ return introducer === "]" || introducer === "P" || introducer === "_";
238
+ }
239
+
227
240
  /**
228
241
  * Release held VT text as-is. The caller invokes this once no further bytes
229
242
  * arrived in time, so a lone relayed ESC still acts as the Escape key.