@simon_he/vue-tui 1.0.2 → 1.1.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 (104) hide show
  1. package/README.md +44 -26
  2. package/dist/TMermaidText-CXm_L969.js +885 -0
  3. package/dist/{TSelect-DR0FomSu.js → TSelect-CiyMvwl-.js} +60 -81
  4. package/dist/{TTree-kzhlB5P0.js → TTree-DKGiuIcM.js} +140 -103
  5. package/dist/agent/mermaid.cjs +2 -0
  6. package/dist/agent/mermaid.d.cts +2 -0
  7. package/dist/agent/mermaid.d.ts +2 -0
  8. package/dist/agent/mermaid.js +1 -0
  9. package/dist/agent.cjs +31184 -24907
  10. package/dist/agent.d.cts +11 -1
  11. package/dist/agent.d.ts +11 -1
  12. package/dist/agent.js +1700 -13
  13. package/dist/block-source-5CQp4tF8.js +3230 -0
  14. package/dist/cli/stdin-buffer.d.ts +1 -1
  15. package/dist/cli.cjs +5037 -6767
  16. package/dist/cli.d.cts +4 -0
  17. package/dist/cli.d.ts +4 -0
  18. package/dist/cli.js +2733 -148
  19. package/dist/core/buffer/eaw-ranges-unicode-17.d.ts +14 -0
  20. package/dist/core/perf/instrumentation-noop.d.ts +48 -0
  21. package/dist/core/perf/instrumentation.d.ts +136 -0
  22. package/dist/core/terminal/create-terminal.d.ts +1 -0
  23. package/dist/core.cjs +843 -1469
  24. package/dist/core.js +6 -6
  25. package/dist/{create-terminal-DBFNYr8f.js → create-terminal-DXuZ2fci.js} +39 -13
  26. package/dist/debug-logger-ChY_PXVk.js +74 -0
  27. package/dist/{dom-renderer-BniJSQyX.js → dom-renderer-DNzmg2As.js} +2 -2
  28. package/dist/experimental.cjs +4115 -5928
  29. package/dist/experimental.d.cts +2 -0
  30. package/dist/experimental.d.ts +2 -0
  31. package/dist/experimental.js +1490 -9
  32. package/dist/frame-perf-BBhE-iuS.js +111 -0
  33. package/dist/{sgr-BmzxEjAO.js → hyperlink-B35-O-cW.js} +100 -1
  34. package/dist/index.cjs +5017 -10339
  35. package/dist/index.js +16 -14
  36. package/dist/{linkify-D_gzn9Xq.js → linkify-CuuquMQT.js} +32 -3
  37. package/dist/markdown.cjs +21295 -12691
  38. package/dist/markdown.d.cts +1 -1
  39. package/dist/markdown.d.ts +1 -1
  40. package/dist/markdown.js +211 -51
  41. package/dist/mermaid-CWto52Wk.js +123 -0
  42. package/dist/mermaid.cjs +1707 -0
  43. package/dist/mermaid.d.cts +3 -0
  44. package/dist/mermaid.d.ts +3 -0
  45. package/dist/mermaid.js +6 -0
  46. package/dist/observability/frame-perf-store.d.ts +2 -1
  47. package/dist/observability/frame-perf.d.ts +33 -0
  48. package/dist/observability.cjs +106 -107
  49. package/dist/observability.d.cts +2 -2
  50. package/dist/observability.d.ts +2 -2
  51. package/dist/observability.js +3 -3
  52. package/dist/{path-suggest-BNqcuE3-.js → path-suggest-fPzRsgPv.js} +1 -1
  53. package/dist/{wheel-scroll-vBRaQ7p-.js → rect-Ng-3eKzF.js} +253 -117
  54. package/dist/renderer/cli/stdout-metrics.d.ts +10 -0
  55. package/dist/renderer/cli/stdout-renderer.d.ts +3 -0
  56. package/dist/renderer/terminal-graphic-render-queue.d.ts +50 -0
  57. package/dist/renderer/terminal-graphics-trace.d.ts +53 -0
  58. package/dist/renderer/terminal-graphics.d.ts +146 -0
  59. package/dist/renderer-dom.cjs +364 -903
  60. package/dist/renderer-dom.js +4 -4
  61. package/dist/runtime/index.d.ts +2 -0
  62. package/dist/{runtime-rfcZCyJq.js → runtime-D77C03RM.js} +28 -15
  63. package/dist/runtime.cjs +427 -889
  64. package/dist/runtime.js +2 -2
  65. package/dist/{terminal-selection-DBinO6p5.js → terminal-selection-CQYr--26.js} +4 -1
  66. package/dist/{tlog-theme-CvLFNMwk.js → tlog-theme-CopRt9SC.js} +37 -6
  67. package/dist/{trace-CjzYeIxN.js → trace-CYHDKM1m.js} +5 -0
  68. package/dist/vue/agent/create-png-terminal-graphic-renderer.d.ts +19 -0
  69. package/dist/vue/components/TAgentTerminalGraphic.d.ts +481 -0
  70. package/dist/vue/components/TCharts.d.ts +1121 -0
  71. package/dist/vue/components/TFeedback.d.ts +1 -1
  72. package/dist/vue/components/TFlex.d.ts +389 -0
  73. package/dist/vue/components/TForm.d.ts +4 -4
  74. package/dist/vue/components/TLogSearchBar.d.ts +3 -3
  75. package/dist/vue/components/TLogSearchPager.d.ts +2 -2
  76. package/dist/vue/components/TMarkdownText.d.ts +162 -4
  77. package/dist/vue/components/TMermaidText.d.ts +900 -0
  78. package/dist/vue/components/TVirtualList.d.ts +9 -0
  79. package/dist/vue/components/TVirtualMarkdown.d.ts +170 -9
  80. package/dist/vue/components/TVirtualRows.d.ts +9 -0
  81. package/dist/vue/components/TerminalProvider.d.ts +2 -0
  82. package/dist/vue/context.d.ts +24 -0
  83. package/dist/vue/index.d.ts +5 -0
  84. package/dist/vue/layout/flex.d.ts +67 -0
  85. package/dist/vue/markdown/ast.d.ts +5 -2
  86. package/dist/vue/markdown/document.d.ts +5 -0
  87. package/dist/vue/markdown/image-actions.d.ts +14 -0
  88. package/dist/vue/markdown/image.d.ts +11 -0
  89. package/dist/vue/markdown/link-actions.d.ts +14 -0
  90. package/dist/vue/markdown/math-actions.d.ts +14 -0
  91. package/dist/vue/markdown/math.d.ts +6 -0
  92. package/dist/vue/markdown/render.d.ts +28 -0
  93. package/dist/vue/markdown/types.d.ts +78 -0
  94. package/dist/vue/mermaid/beautiful-mermaid.d.ts +1436 -0
  95. package/dist/vue/render/render-manager.d.ts +7 -0
  96. package/dist/vue.cjs +7207 -12437
  97. package/dist/vue.js +706 -39
  98. package/dist/wheel-scroll-CQ22Hcyj.js +106 -0
  99. package/dist/{hyperlink-Bn02UXJb.js → width-GqllnV8C.js} +166 -111
  100. package/package.json +85 -14
  101. package/dist/block-source-CKUOnkgT.js +0 -1663
  102. package/dist/frame-perf-C6Xfg85O.js +0 -24
  103. /package/dist/{env-Cl8qmNFN.js → env-DNCzvX8b.js} +0 -0
  104. /package/dist/{path-mnSgEpCm.js → path-BI9W15Zt.js} +0 -0
package/dist/runtime.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createEventManager, createRuntime } from "./runtime-rfcZCyJq.js";
2
- import { createTerminalSelectionController, terminalSelectionRowSpans, terminalSelectionVisibleRowSpans } from "./terminal-selection-DBinO6p5.js";
1
+ import { createEventManager, createRuntime } from "./runtime-D77C03RM.js";
2
+ import { createTerminalSelectionController, terminalSelectionRowSpans, terminalSelectionVisibleRowSpans } from "./terminal-selection-CQYr--26.js";
3
3
 
4
4
  export { createEventManager, createRuntime, createTerminalSelectionController, terminalSelectionRowSpans, terminalSelectionVisibleRowSpans };
@@ -88,6 +88,9 @@ function clampPointToRect(point, rect) {
88
88
  y: Math.max(rect.y, Math.min(rect.y + Math.max(0, rect.h - 1), Math.floor(point.y)))
89
89
  };
90
90
  }
91
+ function clipboardCanWrite(api) {
92
+ return api.canWrite ?? api.supported;
93
+ }
91
94
  function createTerminalSelectionController(options) {
92
95
  const state = shallowRef(EMPTY_STATE);
93
96
  let range = null;
@@ -278,7 +281,7 @@ function createTerminalSelectionController(options) {
278
281
  const text = state.value.text || selectedText();
279
282
  if (!text) return false;
280
283
  setResolvedText(text);
281
- if (!options.clipboard.supported) {
284
+ if (!clipboardCanWrite(options.clipboard)) {
282
285
  options.onCopy?.(copyPayload(text, false, new Error("Clipboard unavailable")));
283
286
  return false;
284
287
  }
@@ -1,9 +1,9 @@
1
- import { sanitizeTerminalHref } from "./hyperlink-Bn02UXJb.js";
2
- import { applyAnsiSgrStyle, parseAnsiSgr } from "./sgr-BmzxEjAO.js";
3
- import { EventZIndexContextKey, LayoutContextKey, RenderPlaneContextKey, RenderStackKey, applyWheelScroll, createWheelScrollState, forEachTextCellSegment, formatInlineCellLine, intersectRect, normalizeCellRect, padEndByCells$1 as padEndByCells, resetWheelScrollState, sanitizeInlineText, sliceByCellsRange, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useRenderStack, useTerminal, useTerminalNode, useVisibility, wrapByCells } from "./wheel-scroll-vBRaQ7p-.js";
4
- import { TView, TuiThemeContextKey, createFrameMailbox, defaultActiveStyle, linkifyTextSegments, tuiDefaultTheme } from "./linkify-D_gzn9Xq.js";
5
- import { terminalSelectionRowSpans, terminalSelectionVisibleRowSpans } from "./terminal-selection-DBinO6p5.js";
6
- import { framePerfNow } from "./frame-perf-C6Xfg85O.js";
1
+ import { applyAnsiSgrStyle, parseAnsiSgr, sanitizeTerminalHref } from "./hyperlink-B35-O-cW.js";
2
+ import { EventZIndexContextKey, LayoutContextKey, RenderPlaneContextKey, RenderStackKey, TerminalGraphicsActivityKey, createCombinedTerminalGraphicsActivity, createTerminalGraphicsActivity, forEachTextCellSegment, formatInlineCellLine, intersectRect, normalizeCellRect, padEndByCells$1 as padEndByCells, sanitizeInlineText, sliceByCellsRange, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useRenderStack, useTerminal, useTerminalNode, useVisibility, wrapByCells } from "./rect-Ng-3eKzF.js";
3
+ import { TView, TuiThemeContextKey, createFrameMailbox, defaultActiveStyle, linkifyTextSegments, tuiDefaultTheme } from "./linkify-CuuquMQT.js";
4
+ import { framePerfNow } from "./frame-perf-BBhE-iuS.js";
5
+ import { terminalSelectionRowSpans, terminalSelectionVisibleRowSpans } from "./terminal-selection-CQYr--26.js";
6
+ import { applyWheelScroll, createWheelScrollState, resetWheelScrollState } from "./wheel-scroll-CQ22Hcyj.js";
7
7
  import { computed, defineComponent, getCurrentInstance, h, inject, onBeforeUnmount, provide, ref, shallowReactive, watch, watchEffect } from "vue";
8
8
 
9
9
  //#region src/vue/utils/row-scroll.ts
@@ -143,6 +143,10 @@ const TVirtualList = defineComponent({
143
143
  rowScrollMode: {
144
144
  type: String,
145
145
  default: "off"
146
+ },
147
+ terminalGraphicScrollIdleMs: {
148
+ type: Number,
149
+ default: 96
146
150
  }
147
151
  },
148
152
  emits: [
@@ -165,6 +169,13 @@ const TVirtualList = defineComponent({
165
169
  const eventZ = computed(() => (parentEventZ.value ?? 0) + (props.zIndex ?? 0));
166
170
  const virtualListInstanceId = ++virtualListInstanceSeq;
167
171
  const wheelTaskId = `TVirtualList:${virtualListInstanceId}:wheel`;
172
+ const parentTerminalGraphicsActivity = inject(TerminalGraphicsActivityKey, null);
173
+ const terminalGraphicsActivity = createTerminalGraphicsActivity({
174
+ scrollIdleMs: props.terminalGraphicScrollIdleMs,
175
+ traceId: `TVirtualList:${virtualListInstanceId}:terminal-graphics`
176
+ });
177
+ provide(TerminalGraphicsActivityKey, createCombinedTerminalGraphicsActivity(parentTerminalGraphicsActivity, terminalGraphicsActivity));
178
+ watch(() => props.terminalGraphicScrollIdleMs, (value) => terminalGraphicsActivity.setScrollIdleMs(value));
168
179
  const focused = ref(false);
169
180
  const active = ref(props.modelValue);
170
181
  const scrollTop = ref(0);
@@ -381,6 +392,7 @@ const TVirtualList = defineComponent({
381
392
  const changed = scrollTop.value !== nextTop;
382
393
  scrollTop.value = nextTop;
383
394
  if (!wasInitialized || !changed) return;
395
+ terminalGraphicsActivity.markScroll();
384
396
  const remap = pendingSelectionScrollFocusRemap;
385
397
  pendingSelectionScrollFocusRemap = false;
386
398
  selection.refresh(remap ? { remapFocus: true } : void 0);
@@ -481,6 +493,7 @@ const TVirtualList = defineComponent({
481
493
  if (nextTop === scrollTop.value) return false;
482
494
  if (pendingSelectionScrollFocusRemap) return false;
483
495
  pendingSelectionScrollFocusRemap = true;
496
+ terminalGraphicsActivity.markScroll();
484
497
  emit("update:scrollTop", nextTop);
485
498
  emit("scroll", nextTop);
486
499
  return true;
@@ -621,6 +634,7 @@ const TVirtualList = defineComponent({
621
634
  pendingWheelTop = null;
622
635
  resetWheelScrollState(wheelState);
623
636
  wheelMailbox.dispose();
637
+ terminalGraphicsActivity.dispose();
624
638
  });
625
639
  function viewportRows() {
626
640
  const r = normalizedRect();
@@ -668,6 +682,7 @@ const TVirtualList = defineComponent({
668
682
  controlled
669
683
  };
670
684
  if (controlled) {
685
+ terminalGraphicsActivity.markScroll();
671
686
  if (options?.emitUpdate ?? true) emit("update:scrollTop", clampedTop);
672
687
  if (options?.emitScroll) emit("scroll", clampedTop);
673
688
  return {
@@ -677,6 +692,7 @@ const TVirtualList = defineComponent({
677
692
  controlled
678
693
  };
679
694
  }
695
+ terminalGraphicsActivity.markScroll();
680
696
  scrollTop.value = clampedTop;
681
697
  if (options?.emitUpdate) emit("update:scrollTop", clampedTop);
682
698
  const canUseTerminalRowScroll = rendererCapabilities.value.scrollOperations && rendererCapabilities.value.domRows !== true;
@@ -1126,6 +1142,10 @@ const TVirtualRows = defineComponent({
1126
1142
  rowScrollMode: {
1127
1143
  type: String,
1128
1144
  default: "off"
1145
+ },
1146
+ terminalGraphicScrollIdleMs: {
1147
+ type: Number,
1148
+ default: 96
1129
1149
  }
1130
1150
  },
1131
1151
  emits: [
@@ -1167,6 +1187,13 @@ const TVirtualRows = defineComponent({
1167
1187
  provide(RenderStackKey, childStack);
1168
1188
  provide(EventZIndexContextKey, eventZ);
1169
1189
  const virtualRowsInstanceId = ++virtualRowsInstanceSeq;
1190
+ const parentTerminalGraphicsActivity = inject(TerminalGraphicsActivityKey, null);
1191
+ const terminalGraphicsActivity = createTerminalGraphicsActivity({
1192
+ scrollIdleMs: props.terminalGraphicScrollIdleMs,
1193
+ traceId: `TVirtualRows:${virtualRowsInstanceId}:terminal-graphics`
1194
+ });
1195
+ provide(TerminalGraphicsActivityKey, createCombinedTerminalGraphicsActivity(parentTerminalGraphicsActivity, terminalGraphicsActivity));
1196
+ watch(() => props.terminalGraphicScrollIdleMs, (value) => terminalGraphicsActivity.setScrollIdleMs(value));
1170
1197
  const frameTaskId = `TVirtualRows:${virtualRowsInstanceId}`;
1171
1198
  const innerScrollTop = ref(0);
1172
1199
  const controlledScrollTop = ref(0);
@@ -1305,10 +1332,12 @@ const TVirtualRows = defineComponent({
1305
1332
  const delta = clampedTop - prevTop;
1306
1333
  if (!delta) return false;
1307
1334
  if (isScrollControlled()) {
1335
+ terminalGraphicsActivity.markScroll();
1308
1336
  if (options?.emitUpdate !== false) emit("update:scrollTop", clampedTop);
1309
1337
  if (options?.emitScroll) emitScroll(clampedTop);
1310
1338
  return true;
1311
1339
  }
1340
+ terminalGraphicsActivity.markScroll();
1312
1341
  setCurrentScrollTop(clampedTop);
1313
1342
  if (options?.emitUpdate !== false) emit("update:scrollTop", clampedTop);
1314
1343
  markScrollDamage(prevTop, clampedTop, options?.strategy);
@@ -1607,6 +1636,7 @@ const TVirtualRows = defineComponent({
1607
1636
  cancelWheelScrollFrame();
1608
1637
  const prevTop = controlledScrollTop.value;
1609
1638
  controlledScrollTop.value = nextTop;
1639
+ terminalGraphicsActivity.markScroll();
1610
1640
  markScrollDamage(prevTop, nextTop);
1611
1641
  selection.refresh(pendingSelectionScrollFocusRemap ? { remapFocus: true } : void 0);
1612
1642
  pendingSelectionScrollFocusRemap = false;
@@ -1655,6 +1685,7 @@ const TVirtualRows = defineComponent({
1655
1685
  pendingWheelTop = null;
1656
1686
  resetWheelScrollState(wheelState);
1657
1687
  wheelMailbox.dispose();
1688
+ terminalGraphicsActivity.dispose();
1658
1689
  });
1659
1690
  const renderNode = useRenderNode(() => ({
1660
1691
  zIndex: props.zIndex,
@@ -1,3 +1,4 @@
1
+ import { summarizeFramePerf } from "./frame-perf-BBhE-iuS.js";
1
2
  import { computed, ref, shallowReactive } from "vue";
2
3
 
3
4
  //#region src/observability/perf-sink.ts
@@ -136,6 +137,9 @@ function createFramePerfStore(limit = 120, opts) {
136
137
  function list() {
137
138
  return samples.slice();
138
139
  }
140
+ function summary() {
141
+ return summarizeFramePerf(samples);
142
+ }
139
143
  function clear() {
140
144
  samples.length = 0;
141
145
  }
@@ -148,6 +152,7 @@ function createFramePerfStore(limit = 120, opts) {
148
152
  addSink,
149
153
  latest,
150
154
  list,
155
+ summary,
151
156
  clear
152
157
  };
153
158
  }
@@ -0,0 +1,19 @@
1
+ import type { TAgentTerminalGraphicRenderer, TAgentTerminalGraphicRendererContext } from "../components/TAgentTerminalGraphic.js";
2
+ import type { TerminalGraphicRenderQueue } from "../../renderer/terminal-graphic-render-queue.js";
3
+ export type PngTerminalGraphicFrame = Readonly<{
4
+ base64: string;
5
+ fallback?: string;
6
+ cols?: number;
7
+ rows?: number;
8
+ }>;
9
+ export type CreatePngTerminalGraphicRendererOptions = Readonly<{
10
+ toPngBase64: (content: string, context: TAgentTerminalGraphicRendererContext) => Promise<PngTerminalGraphicFrame>;
11
+ toSixel?: (pngBase64: string, context: TAgentTerminalGraphicRendererContext) => Promise<string>;
12
+ fallback?: (content: string, context: TAgentTerminalGraphicRendererContext) => string | Promise<string>;
13
+ cacheSalt?: string | ((content: string, context: TAgentTerminalGraphicRendererContext) => string);
14
+ cacheKey?: (content: string, context: TAgentTerminalGraphicRendererContext) => string;
15
+ queue?: TerminalGraphicRenderQueue;
16
+ dedupeInflight?: boolean;
17
+ zIndex?: number;
18
+ }>;
19
+ export declare function createPngTerminalGraphicRenderer(options: CreatePngTerminalGraphicRendererOptions): TAgentTerminalGraphicRenderer;
@@ -0,0 +1,481 @@
1
+ import type { ExtractPublicPropTypes, PropType } from "vue";
2
+ import type { Style } from "../../core/types.js";
3
+ import type { Rect } from "../../events/manager/types.js";
4
+ import type { TerminalGraphicsCapabilities, TerminalGraphicsProtocol, TerminalGraphicsResolvedProtocol } from "../../renderer/terminal-graphics.js";
5
+ export type TAgentTerminalGraphicKind = "image" | "math";
6
+ export type TAgentTerminalGraphicRendererContext = Readonly<{
7
+ kind: TAgentTerminalGraphicKind;
8
+ width: number;
9
+ height?: number;
10
+ final: boolean;
11
+ streaming: boolean;
12
+ protocol: TerminalGraphicsResolvedProtocol;
13
+ capabilities: TerminalGraphicsCapabilities;
14
+ signal: AbortSignal;
15
+ imageId: number;
16
+ placementId: number;
17
+ visible: boolean;
18
+ rawVisible: boolean;
19
+ scrolling: boolean;
20
+ cacheKey?: string;
21
+ viewport: Readonly<{
22
+ visible: boolean;
23
+ rawVisible: boolean;
24
+ scrolling: boolean;
25
+ rect: Rect;
26
+ fullRect: Rect;
27
+ }>;
28
+ }>;
29
+ export type TAgentTerminalGraphicTraceEvent = Readonly<{
30
+ type: "render-start" | "render-end" | "render-abort" | "defer" | "raw-draw" | "raw-clear" | "raw-skip-scroll";
31
+ id: string;
32
+ kind: TAgentTerminalGraphicKind;
33
+ protocol: TerminalGraphicsResolvedProtocol;
34
+ contentHash: string;
35
+ durationMs?: number;
36
+ sequenceChars?: number;
37
+ sequenceBytes?: number;
38
+ reason?: string;
39
+ x?: number;
40
+ y?: number;
41
+ w?: number;
42
+ h?: number;
43
+ }>;
44
+ export type TAgentTerminalGraphicRenderResult = Readonly<{
45
+ type: "sequence";
46
+ sequence: string;
47
+ protocol: TerminalGraphicsProtocol;
48
+ fallback?: string;
49
+ clearSequence?: string;
50
+ resizeSequence?: string;
51
+ cols?: number;
52
+ rows?: number;
53
+ sourceWidth?: unknown;
54
+ sourceHeight?: unknown;
55
+ zIndex?: unknown;
56
+ }> | Readonly<{
57
+ type: "text";
58
+ text: string;
59
+ }> | null | undefined | string | Readonly<{
60
+ sequence: string;
61
+ protocol: TerminalGraphicsProtocol;
62
+ fallback?: string;
63
+ clearSequence?: string;
64
+ resizeSequence?: string;
65
+ cols?: number;
66
+ rows?: number;
67
+ sourceWidth?: unknown;
68
+ sourceHeight?: unknown;
69
+ }> | Readonly<{
70
+ text: string;
71
+ }>;
72
+ export type TAgentTerminalGraphicRenderer = (content: string, context: TAgentTerminalGraphicRendererContext) => TAgentTerminalGraphicRenderResult | Promise<TAgentTerminalGraphicRenderResult>;
73
+ export declare const tAgentTerminalGraphicProps: {
74
+ readonly x: {
75
+ readonly type: NumberConstructor;
76
+ readonly required: true;
77
+ };
78
+ readonly y: {
79
+ readonly type: NumberConstructor;
80
+ readonly required: true;
81
+ };
82
+ readonly w: {
83
+ readonly type: NumberConstructor;
84
+ readonly required: true;
85
+ };
86
+ readonly h: {
87
+ readonly type: NumberConstructor;
88
+ readonly default: undefined;
89
+ };
90
+ readonly zIndex: {
91
+ readonly type: NumberConstructor;
92
+ readonly default: 0;
93
+ };
94
+ readonly content: {
95
+ readonly type: StringConstructor;
96
+ readonly required: true;
97
+ };
98
+ readonly kind: {
99
+ readonly type: PropType<TAgentTerminalGraphicKind>;
100
+ readonly default: "image";
101
+ };
102
+ readonly fallback: {
103
+ readonly type: StringConstructor;
104
+ readonly default: undefined;
105
+ };
106
+ readonly style: {
107
+ readonly type: PropType<Style>;
108
+ readonly default: undefined;
109
+ };
110
+ readonly loadingStyle: {
111
+ readonly type: PropType<Style>;
112
+ readonly default: undefined;
113
+ };
114
+ readonly errorStyle: {
115
+ readonly type: PropType<Style>;
116
+ readonly default: undefined;
117
+ };
118
+ readonly clear: {
119
+ readonly type: BooleanConstructor;
120
+ readonly default: true;
121
+ };
122
+ readonly final: {
123
+ readonly type: BooleanConstructor;
124
+ readonly default: true;
125
+ };
126
+ readonly streaming: {
127
+ readonly type: BooleanConstructor;
128
+ readonly default: false;
129
+ };
130
+ readonly renderer: {
131
+ readonly type: PropType<TAgentTerminalGraphicRenderer>;
132
+ readonly default: undefined;
133
+ };
134
+ readonly loadingText: {
135
+ readonly type: StringConstructor;
136
+ readonly default: "Rendering terminal graphic...";
137
+ };
138
+ readonly deferRenderUntilVisible: {
139
+ readonly type: BooleanConstructor;
140
+ readonly default: true;
141
+ };
142
+ readonly suspendRawWhileScrolling: {
143
+ readonly type: BooleanConstructor;
144
+ readonly default: true;
145
+ };
146
+ readonly suspendRenderWhileScrolling: {
147
+ readonly type: BooleanConstructor;
148
+ readonly default: true;
149
+ };
150
+ readonly scrolling: {
151
+ readonly type: BooleanConstructor;
152
+ readonly default: false;
153
+ };
154
+ readonly scrollVersion: {
155
+ readonly type: NumberConstructor;
156
+ readonly default: 0;
157
+ };
158
+ readonly placementMoveWithoutClear: {
159
+ readonly type: BooleanConstructor;
160
+ readonly default: false;
161
+ };
162
+ readonly suspended: {
163
+ readonly type: BooleanConstructor;
164
+ readonly default: false;
165
+ };
166
+ readonly retainRawWhileCovered: {
167
+ readonly type: BooleanConstructor;
168
+ readonly default: false;
169
+ };
170
+ readonly ignoreRawCoverage: {
171
+ readonly type: BooleanConstructor;
172
+ readonly default: false;
173
+ };
174
+ readonly ignoreSamePlaneRawCoverage: {
175
+ readonly type: BooleanConstructor;
176
+ readonly default: false;
177
+ };
178
+ readonly cacheKey: {
179
+ readonly type: StringConstructor;
180
+ readonly default: undefined;
181
+ };
182
+ readonly placementKey: {
183
+ readonly type: StringConstructor;
184
+ readonly default: undefined;
185
+ };
186
+ readonly trace: {
187
+ readonly type: PropType<(event: TAgentTerminalGraphicTraceEvent) => void>;
188
+ readonly default: undefined;
189
+ };
190
+ };
191
+ export type TAgentTerminalGraphicProps = ExtractPublicPropTypes<typeof tAgentTerminalGraphicProps>;
192
+ export declare const TAgentTerminalGraphic: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
193
+ readonly x: {
194
+ readonly type: NumberConstructor;
195
+ readonly required: true;
196
+ };
197
+ readonly y: {
198
+ readonly type: NumberConstructor;
199
+ readonly required: true;
200
+ };
201
+ readonly w: {
202
+ readonly type: NumberConstructor;
203
+ readonly required: true;
204
+ };
205
+ readonly h: {
206
+ readonly type: NumberConstructor;
207
+ readonly default: undefined;
208
+ };
209
+ readonly zIndex: {
210
+ readonly type: NumberConstructor;
211
+ readonly default: 0;
212
+ };
213
+ readonly content: {
214
+ readonly type: StringConstructor;
215
+ readonly required: true;
216
+ };
217
+ readonly kind: {
218
+ readonly type: PropType<TAgentTerminalGraphicKind>;
219
+ readonly default: "image";
220
+ };
221
+ readonly fallback: {
222
+ readonly type: StringConstructor;
223
+ readonly default: undefined;
224
+ };
225
+ readonly style: {
226
+ readonly type: PropType<Style>;
227
+ readonly default: undefined;
228
+ };
229
+ readonly loadingStyle: {
230
+ readonly type: PropType<Style>;
231
+ readonly default: undefined;
232
+ };
233
+ readonly errorStyle: {
234
+ readonly type: PropType<Style>;
235
+ readonly default: undefined;
236
+ };
237
+ readonly clear: {
238
+ readonly type: BooleanConstructor;
239
+ readonly default: true;
240
+ };
241
+ readonly final: {
242
+ readonly type: BooleanConstructor;
243
+ readonly default: true;
244
+ };
245
+ readonly streaming: {
246
+ readonly type: BooleanConstructor;
247
+ readonly default: false;
248
+ };
249
+ readonly renderer: {
250
+ readonly type: PropType<TAgentTerminalGraphicRenderer>;
251
+ readonly default: undefined;
252
+ };
253
+ readonly loadingText: {
254
+ readonly type: StringConstructor;
255
+ readonly default: "Rendering terminal graphic...";
256
+ };
257
+ readonly deferRenderUntilVisible: {
258
+ readonly type: BooleanConstructor;
259
+ readonly default: true;
260
+ };
261
+ readonly suspendRawWhileScrolling: {
262
+ readonly type: BooleanConstructor;
263
+ readonly default: true;
264
+ };
265
+ readonly suspendRenderWhileScrolling: {
266
+ readonly type: BooleanConstructor;
267
+ readonly default: true;
268
+ };
269
+ readonly scrolling: {
270
+ readonly type: BooleanConstructor;
271
+ readonly default: false;
272
+ };
273
+ readonly scrollVersion: {
274
+ readonly type: NumberConstructor;
275
+ readonly default: 0;
276
+ };
277
+ readonly placementMoveWithoutClear: {
278
+ readonly type: BooleanConstructor;
279
+ readonly default: false;
280
+ };
281
+ readonly suspended: {
282
+ readonly type: BooleanConstructor;
283
+ readonly default: false;
284
+ };
285
+ readonly retainRawWhileCovered: {
286
+ readonly type: BooleanConstructor;
287
+ readonly default: false;
288
+ };
289
+ readonly ignoreRawCoverage: {
290
+ readonly type: BooleanConstructor;
291
+ readonly default: false;
292
+ };
293
+ readonly ignoreSamePlaneRawCoverage: {
294
+ readonly type: BooleanConstructor;
295
+ readonly default: false;
296
+ };
297
+ readonly cacheKey: {
298
+ readonly type: StringConstructor;
299
+ readonly default: undefined;
300
+ };
301
+ readonly placementKey: {
302
+ readonly type: StringConstructor;
303
+ readonly default: undefined;
304
+ };
305
+ readonly trace: {
306
+ readonly type: PropType<(event: TAgentTerminalGraphicTraceEvent) => void>;
307
+ readonly default: undefined;
308
+ };
309
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
310
+ [key: string]: any;
311
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps), Readonly<import("vue").ExtractPropTypes<{
312
+ readonly x: {
313
+ readonly type: NumberConstructor;
314
+ readonly required: true;
315
+ };
316
+ readonly y: {
317
+ readonly type: NumberConstructor;
318
+ readonly required: true;
319
+ };
320
+ readonly w: {
321
+ readonly type: NumberConstructor;
322
+ readonly required: true;
323
+ };
324
+ readonly h: {
325
+ readonly type: NumberConstructor;
326
+ readonly default: undefined;
327
+ };
328
+ readonly zIndex: {
329
+ readonly type: NumberConstructor;
330
+ readonly default: 0;
331
+ };
332
+ readonly content: {
333
+ readonly type: StringConstructor;
334
+ readonly required: true;
335
+ };
336
+ readonly kind: {
337
+ readonly type: PropType<TAgentTerminalGraphicKind>;
338
+ readonly default: "image";
339
+ };
340
+ readonly fallback: {
341
+ readonly type: StringConstructor;
342
+ readonly default: undefined;
343
+ };
344
+ readonly style: {
345
+ readonly type: PropType<Style>;
346
+ readonly default: undefined;
347
+ };
348
+ readonly loadingStyle: {
349
+ readonly type: PropType<Style>;
350
+ readonly default: undefined;
351
+ };
352
+ readonly errorStyle: {
353
+ readonly type: PropType<Style>;
354
+ readonly default: undefined;
355
+ };
356
+ readonly clear: {
357
+ readonly type: BooleanConstructor;
358
+ readonly default: true;
359
+ };
360
+ readonly final: {
361
+ readonly type: BooleanConstructor;
362
+ readonly default: true;
363
+ };
364
+ readonly streaming: {
365
+ readonly type: BooleanConstructor;
366
+ readonly default: false;
367
+ };
368
+ readonly renderer: {
369
+ readonly type: PropType<TAgentTerminalGraphicRenderer>;
370
+ readonly default: undefined;
371
+ };
372
+ readonly loadingText: {
373
+ readonly type: StringConstructor;
374
+ readonly default: "Rendering terminal graphic...";
375
+ };
376
+ readonly deferRenderUntilVisible: {
377
+ readonly type: BooleanConstructor;
378
+ readonly default: true;
379
+ };
380
+ readonly suspendRawWhileScrolling: {
381
+ readonly type: BooleanConstructor;
382
+ readonly default: true;
383
+ };
384
+ readonly suspendRenderWhileScrolling: {
385
+ readonly type: BooleanConstructor;
386
+ readonly default: true;
387
+ };
388
+ readonly scrolling: {
389
+ readonly type: BooleanConstructor;
390
+ readonly default: false;
391
+ };
392
+ readonly scrollVersion: {
393
+ readonly type: NumberConstructor;
394
+ readonly default: 0;
395
+ };
396
+ readonly placementMoveWithoutClear: {
397
+ readonly type: BooleanConstructor;
398
+ readonly default: false;
399
+ };
400
+ readonly suspended: {
401
+ readonly type: BooleanConstructor;
402
+ readonly default: false;
403
+ };
404
+ readonly retainRawWhileCovered: {
405
+ readonly type: BooleanConstructor;
406
+ readonly default: false;
407
+ };
408
+ readonly ignoreRawCoverage: {
409
+ readonly type: BooleanConstructor;
410
+ readonly default: false;
411
+ };
412
+ readonly ignoreSamePlaneRawCoverage: {
413
+ readonly type: BooleanConstructor;
414
+ readonly default: false;
415
+ };
416
+ readonly cacheKey: {
417
+ readonly type: StringConstructor;
418
+ readonly default: undefined;
419
+ };
420
+ readonly placementKey: {
421
+ readonly type: StringConstructor;
422
+ readonly default: undefined;
423
+ };
424
+ readonly trace: {
425
+ readonly type: PropType<(event: TAgentTerminalGraphicTraceEvent) => void>;
426
+ readonly default: undefined;
427
+ };
428
+ }>> & Readonly<{}>, {
429
+ readonly kind: TAgentTerminalGraphicKind;
430
+ readonly style: Readonly<{
431
+ fg?: string;
432
+ bg?: string;
433
+ bold?: boolean;
434
+ dim?: boolean;
435
+ italic?: boolean;
436
+ underline?: boolean;
437
+ inverse?: boolean;
438
+ href?: string;
439
+ }>;
440
+ readonly h: number;
441
+ readonly zIndex: number;
442
+ readonly clear: boolean;
443
+ readonly placementMoveWithoutClear: boolean;
444
+ readonly trace: (event: TAgentTerminalGraphicTraceEvent) => void;
445
+ readonly scrolling: boolean;
446
+ readonly renderer: TAgentTerminalGraphicRenderer;
447
+ readonly loadingText: string;
448
+ readonly fallback: string;
449
+ readonly loadingStyle: Readonly<{
450
+ fg?: string;
451
+ bg?: string;
452
+ bold?: boolean;
453
+ dim?: boolean;
454
+ italic?: boolean;
455
+ underline?: boolean;
456
+ inverse?: boolean;
457
+ href?: string;
458
+ }>;
459
+ readonly errorStyle: Readonly<{
460
+ fg?: string;
461
+ bg?: string;
462
+ bold?: boolean;
463
+ dim?: boolean;
464
+ italic?: boolean;
465
+ underline?: boolean;
466
+ inverse?: boolean;
467
+ href?: string;
468
+ }>;
469
+ readonly final: boolean;
470
+ readonly streaming: boolean;
471
+ readonly deferRenderUntilVisible: boolean;
472
+ readonly suspendRawWhileScrolling: boolean;
473
+ readonly suspendRenderWhileScrolling: boolean;
474
+ readonly scrollVersion: number;
475
+ readonly suspended: boolean;
476
+ readonly retainRawWhileCovered: boolean;
477
+ readonly ignoreRawCoverage: boolean;
478
+ readonly ignoreSamePlaneRawCoverage: boolean;
479
+ readonly cacheKey: string;
480
+ readonly placementKey: string;
481
+ }, {}>;