@simon_he/vue-tui 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -28
- package/dist/{TMermaidText-CXm_L969.js → TMermaidText-frVr8Ysb.js} +1 -1
- package/dist/{TSelect-CiyMvwl-.js → TSelect-Dx34M1pF.js} +6 -168
- package/dist/{TTree-DKGiuIcM.js → TTree-DdAjCPHu.js} +12 -13
- package/dist/agent.cjs +3405 -13393
- package/dist/agent.js +15 -1197
- package/dist/{block-source-5CQp4tF8.js → block-source-Crro3mxi.js} +191 -724
- package/dist/cli/input.d.ts +8 -0
- package/dist/cli/video/ffmpeg-frame-source.d.ts +10 -0
- package/dist/cli/video/png-frame-parser.d.ts +4 -0
- package/dist/cli/video/raw-frame-parser.d.ts +1 -0
- package/dist/cli/video/yt-dlp-frame-source.d.ts +11 -0
- package/dist/cli.cjs +142 -33
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +167 -37
- package/dist/core.js +5 -6
- package/dist/create-terminal-app.d.ts +24 -1
- package/dist/{debug-logger-ChY_PXVk.js → debug-logger-CmsGI4of.js} +1 -1
- package/dist/{dom-renderer-DNzmg2As.js → dom-renderer-DXx8fWzD.js} +2 -3
- package/dist/experimental/3d/bun/contributor-avatar-atlas.d.ts +12 -0
- package/dist/experimental/3d/bun/png.d.ts +1 -0
- package/dist/experimental/3d/bun/terminal-badge-scene.d.ts +11 -0
- package/dist/experimental/3d/bun/terminal-badge.wgsl.d.ts +1 -0
- package/dist/experimental/3d/bun/webgpu-renderer.d.ts +26 -0
- package/dist/experimental/3d/bun.cjs +7271 -0
- package/dist/experimental/3d/bun.d.cts +4 -0
- package/dist/experimental/3d/bun.d.ts +4 -0
- package/dist/experimental/3d/bun.js +7390 -0
- package/dist/experimental/video/node.cjs +497 -0
- package/dist/experimental/video/node.d.cts +4 -0
- package/dist/experimental/video/node.d.ts +4 -0
- package/dist/experimental/video/node.js +610 -0
- package/dist/experimental.cjs +3064 -567
- package/dist/experimental.d.cts +5 -0
- package/dist/experimental.d.ts +5 -0
- package/dist/experimental.js +1524 -9
- package/dist/{create-terminal-DXuZ2fci.js → hyperlink-_1FAj7Wq.js} +403 -2
- package/dist/index.js +15 -16
- package/dist/{linkify-CuuquMQT.js → linkify-BjI4zVfY.js} +164 -3
- package/dist/markdown.cjs +2929 -12918
- package/dist/markdown.d.cts +1 -0
- package/dist/markdown.d.ts +1 -0
- package/dist/markdown.js +13 -9
- package/dist/{mermaid-CWto52Wk.js → mermaid-BNhM1jAZ.js} +1 -1
- package/dist/mermaid.js +3 -3
- package/dist/observability.js +2 -2
- package/dist/{path-suggest-fPzRsgPv.js → path-suggest-Dndu4dTi.js} +1 -1
- package/dist/renderer/terminal-graphics.d.ts +1 -0
- package/dist/renderer-dom.js +3 -4
- package/dist/runtime.js +2 -2
- package/dist/terminal-graphics-Bbe83wSr.js +597 -0
- package/dist/{tlog-theme-CopRt9SC.js → tlog-theme-i6S_Oftd.js} +1206 -12
- package/dist/{trace-CYHDKM1m.js → trace-Bh8WnoMo.js} +1 -1
- package/dist/vue/components/T3DViewport.d.ts +473 -0
- package/dist/vue/components/TAgentTerminalGraphic.d.ts +13 -0
- package/dist/vue/components/TVideo.d.ts +291 -0
- package/dist/vue/markdown/math.d.ts +2 -0
- package/dist/vue/video/types.d.ts +39 -0
- package/dist/vue.js +17 -18
- package/package.json +44 -3
- package/dist/hyperlink-B35-O-cW.js +0 -403
- /package/dist/{ansi-palette-CNXqFciC.js → ansi-palette-CH6jc2Z7.js} +0 -0
- /package/dist/{env-DNCzvX8b.js → env-Cl8qmNFN.js} +0 -0
- /package/dist/{frame-perf-BBhE-iuS.js → frame-perf-CHpWhbC4.js} +0 -0
- /package/dist/{path-BI9W15Zt.js → path-mnSgEpCm.js} +0 -0
- /package/dist/{rect-Ng-3eKzF.js → rect-DUpeDfBg.js} +0 -0
- /package/dist/{runtime-D77C03RM.js → runtime-Byf8XXOT.js} +0 -0
- /package/dist/{terminal-selection-CQYr--26.js → terminal-selection-4W1SJj4c.js} +0 -0
- /package/dist/{wheel-scroll-CQ22Hcyj.js → wheel-scroll-DASkEZr-.js} +0 -0
package/dist/markdown.d.cts
CHANGED
|
@@ -3,6 +3,7 @@ export { TVirtualMarkdown } from "./vue/components/TVirtualMarkdown.js";
|
|
|
3
3
|
export { createMarkdownBlockSource } from "./vue/markdown/block-source.js";
|
|
4
4
|
export { buildMarkdownBlocks, buildMarkdownVisualRows } from "./vue/markdown/document.js";
|
|
5
5
|
export { layoutMarkdownBlocks } from "./vue/markdown/layout.js";
|
|
6
|
+
export { loadMarkdownMathRenderer } from "./vue/markdown/math.js";
|
|
6
7
|
export { createTuiMarkdownParser, isSafeMarkdownLink } from "./vue/markdown/parser.js";
|
|
7
8
|
export type { TuiMarkdownBlockSource, TuiMarkdownBlockSourceOptions, TuiMarkdownBlockSourceSnapshot, } from "./vue/markdown/block-source.js";
|
|
8
9
|
export type { TuiMarkdownLayoutOptions } from "./vue/markdown/layout.js";
|
package/dist/markdown.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { TVirtualMarkdown } from "./vue/components/TVirtualMarkdown.js";
|
|
|
3
3
|
export { createMarkdownBlockSource } from "./vue/markdown/block-source.js";
|
|
4
4
|
export { buildMarkdownBlocks, buildMarkdownVisualRows } from "./vue/markdown/document.js";
|
|
5
5
|
export { layoutMarkdownBlocks } from "./vue/markdown/layout.js";
|
|
6
|
+
export { loadMarkdownMathRenderer } from "./vue/markdown/math.js";
|
|
6
7
|
export { createTuiMarkdownParser, isSafeMarkdownLink } from "./vue/markdown/parser.js";
|
|
7
8
|
export type { TuiMarkdownBlockSource, TuiMarkdownBlockSourceOptions, TuiMarkdownBlockSourceSnapshot, } from "./vue/markdown/block-source.js";
|
|
8
9
|
export type { TuiMarkdownLayoutOptions } from "./vue/markdown/layout.js";
|
package/dist/markdown.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./hyperlink-_1FAj7Wq.js";
|
|
2
2
|
import "./width-GqllnV8C.js";
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import { TVirtualMarkdown, buildMarkdownBlocks, buildMarkdownVisualRows, clearMarkdownImageGraphics, collectVisibleMarkdownImageGraphicIds, createMarkdownBlockSource, createTuiMarkdownParser, findMarkdownImageActionAt, findMarkdownLinkActionAt, findMarkdownMathActionAt,
|
|
3
|
+
import { EventZIndexContextKey, intersectRect, translateRect, useLayout, useRenderNode, useTerminal, useTerminalNode, useVisibility, withTextWidthProvider } from "./rect-DUpeDfBg.js";
|
|
4
|
+
import "./env-Cl8qmNFN.js";
|
|
5
|
+
import "./terminal-selection-4W1SJj4c.js";
|
|
6
|
+
import "./debug-logger-CmsGI4of.js";
|
|
7
|
+
import "./wheel-scroll-DASkEZr-.js";
|
|
8
|
+
import { getTerminalGraphicsOutputVersion, subscribeTerminalGraphicsOutput } from "./terminal-graphics-Bbe83wSr.js";
|
|
9
|
+
import { TVirtualMarkdown, buildMarkdownBlocks, buildMarkdownVisualRows, clearMarkdownImageGraphics, collectVisibleMarkdownImageGraphicIds, createMarkdownBlockSource, createTuiMarkdownParser, findMarkdownImageActionAt, findMarkdownLinkActionAt, findMarkdownMathActionAt, isSafeMarkdownLink, layoutMarkdownBlocks, loadMarkdownMathRenderer, markdownThemeSignature, paintMarkdownVisualRow, subscribeMarkdownMathRenderer } from "./block-source-Crro3mxi.js";
|
|
10
10
|
import { computed, defineComponent, getCurrentInstance, h, inject, markRaw, onBeforeUnmount, shallowRef, watch } from "vue";
|
|
11
11
|
|
|
12
12
|
//#region src/vue/components/TMarkdownText.ts
|
|
@@ -127,6 +127,9 @@ const TMarkdownText = defineComponent({
|
|
|
127
127
|
const unsubscribeGraphicsOutput = subscribeTerminalGraphicsOutput(terminal, () => {
|
|
128
128
|
graphicsOutputVersion.value = getTerminalGraphicsOutputVersion(terminal);
|
|
129
129
|
});
|
|
130
|
+
const unsubscribeMathRenderer = subscribeMarkdownMathRenderer(() => {
|
|
131
|
+
scheduleRebuild();
|
|
132
|
+
});
|
|
130
133
|
watch(() => `${props.streaming ? 1 : 0}:${(props.customHtmlTags ?? []).join("\0")}`, () => {
|
|
131
134
|
parser.value = markRaw(createTuiMarkdownParser({
|
|
132
135
|
streaming: props.streaming,
|
|
@@ -186,6 +189,7 @@ const TMarkdownText = defineComponent({
|
|
|
186
189
|
alive = false;
|
|
187
190
|
rebuildVersion++;
|
|
188
191
|
unsubscribeGraphicsOutput();
|
|
192
|
+
unsubscribeMathRenderer();
|
|
189
193
|
clearMarkdownImageGraphics(terminal, fullRect.value);
|
|
190
194
|
});
|
|
191
195
|
const fullRect = computed(() => {
|
|
@@ -347,4 +351,4 @@ const TMarkdownText = defineComponent({
|
|
|
347
351
|
});
|
|
348
352
|
|
|
349
353
|
//#endregion
|
|
350
|
-
export { TMarkdownText, TVirtualMarkdown, buildMarkdownBlocks, buildMarkdownVisualRows, createMarkdownBlockSource, createTuiMarkdownParser, isSafeMarkdownLink, layoutMarkdownBlocks };
|
|
354
|
+
export { TMarkdownText, TVirtualMarkdown, buildMarkdownBlocks, buildMarkdownVisualRows, createMarkdownBlockSource, createTuiMarkdownParser, isSafeMarkdownLink, layoutMarkdownBlocks, loadMarkdownMathRenderer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TMermaidText$1 as TMermaidText, isSimpleMermaidFlowchartSource, markMermaidRenderErrorFatal, tMermaidTextProps } from "./TMermaidText-
|
|
1
|
+
import { TMermaidText$1 as TMermaidText, isSimpleMermaidFlowchartSource, markMermaidRenderErrorFatal, tMermaidTextProps } from "./TMermaidText-frVr8Ysb.js";
|
|
2
2
|
import { defineComponent, h } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/vue/mermaid/beautiful-mermaid.ts
|
package/dist/mermaid.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./width-GqllnV8C.js";
|
|
2
|
-
import "./rect-
|
|
3
|
-
import { isSimpleMermaidFlowchartSource, markMermaidRenderErrorFatal } from "./TMermaidText-
|
|
4
|
-
import { TBeautifulMermaid, TBeautifulMermaidText, TMermaid, TMermaidText, beautifulMermaidRenderer, createBeautifulMermaidRenderer } from "./mermaid-
|
|
2
|
+
import "./rect-DUpeDfBg.js";
|
|
3
|
+
import { isSimpleMermaidFlowchartSource, markMermaidRenderErrorFatal } from "./TMermaidText-frVr8Ysb.js";
|
|
4
|
+
import { TBeautifulMermaid, TBeautifulMermaidText, TMermaid, TMermaidText, beautifulMermaidRenderer, createBeautifulMermaidRenderer } from "./mermaid-BNhM1jAZ.js";
|
|
5
5
|
|
|
6
6
|
export { TBeautifulMermaid, TBeautifulMermaidText, TMermaid, TMermaidText, beautifulMermaidRenderer, createBeautifulMermaidRenderer, isSimpleMermaidFlowchartSource, markMermaidRenderErrorFatal };
|
package/dist/observability.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { framePerfNow, summarizeFramePerf } from "./frame-perf-
|
|
2
|
-
import { createFramePerfStore, createJsonlPerfSink, createTraceStore, installTuiPerf } from "./trace-
|
|
1
|
+
import { framePerfNow, summarizeFramePerf } from "./frame-perf-CHpWhbC4.js";
|
|
2
|
+
import { createFramePerfStore, createJsonlPerfSink, createTraceStore, installTuiPerf } from "./trace-Bh8WnoMo.js";
|
|
3
3
|
|
|
4
4
|
export { createFramePerfStore, createJsonlPerfSink, createTraceStore, framePerfNow, installTuiPerf, summarizeFramePerf };
|
|
@@ -67,6 +67,7 @@ export type TerminalGraphicsOutput = Readonly<{
|
|
|
67
67
|
capabilities: TerminalGraphicsCapabilities;
|
|
68
68
|
queue: (payload: TerminalGraphicsPayload) => boolean;
|
|
69
69
|
clear?: (id: string) => boolean;
|
|
70
|
+
clearAll?: () => boolean;
|
|
70
71
|
isActive?: (id: string) => boolean;
|
|
71
72
|
}>;
|
|
72
73
|
export declare const MAX_TERMINAL_GRAPHICS_SEQUENCE_CHARS: number;
|
package/dist/renderer-dom.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./hyperlink-_1FAj7Wq.js";
|
|
2
2
|
import "./width-GqllnV8C.js";
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import { DOM_RENDERER_CAPABILITIES, createDomRenderer } from "./dom-renderer-DNzmg2As.js";
|
|
3
|
+
import "./ansi-palette-CH6jc2Z7.js";
|
|
4
|
+
import { DOM_RENDERER_CAPABILITIES, createDomRenderer } from "./dom-renderer-DXx8fWzD.js";
|
|
6
5
|
|
|
7
6
|
export { DOM_RENDERER_CAPABILITIES, createDomRenderer };
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createEventManager, createRuntime } from "./runtime-
|
|
2
|
-
import { createTerminalSelectionController, terminalSelectionRowSpans, terminalSelectionVisibleRowSpans } from "./terminal-selection-
|
|
1
|
+
import { createEventManager, createRuntime } from "./runtime-Byf8XXOT.js";
|
|
2
|
+
import { createTerminalSelectionController, terminalSelectionRowSpans, terminalSelectionVisibleRowSpans } from "./terminal-selection-4W1SJj4c.js";
|
|
3
3
|
|
|
4
4
|
export { createEventManager, createRuntime, createTerminalSelectionController, terminalSelectionRowSpans, terminalSelectionVisibleRowSpans };
|