@adminforth/agent 1.32.0 → 1.32.2
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/build.log +2 -2
- package/custom/conversation_area/TextRenderer.vue +4 -0
- package/custom/incremark_code_renderers/IncremarkShikiCodeBlock.vue +11 -1
- package/dist/custom/conversation_area/TextRenderer.vue +4 -0
- package/dist/custom/incremark_code_renderers/IncremarkShikiCodeBlock.vue +11 -1
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -40,5 +40,5 @@ custom/skills/fetch_data/SKILL.md
|
|
|
40
40
|
custom/skills/mutate_data/
|
|
41
41
|
custom/skills/mutate_data/SKILL.md
|
|
42
42
|
|
|
43
|
-
sent
|
|
44
|
-
total size is 206,
|
|
43
|
+
sent 209,157 bytes received 585 bytes 419,484.00 bytes/sec
|
|
44
|
+
total size is 206,747 speedup is 0.99
|
|
@@ -39,7 +39,7 @@ import type { Code } from 'mdast';
|
|
|
39
39
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
|
40
40
|
import embed from 'vega-embed';
|
|
41
41
|
|
|
42
|
-
import {
|
|
42
|
+
import type { IncremarkCodeTheme } from './incremarkCodeHighlight';
|
|
43
43
|
|
|
44
44
|
const props = withDefaults(defineProps<{
|
|
45
45
|
node: Code;
|
|
@@ -67,6 +67,7 @@ let renderRequestId = 0;
|
|
|
67
67
|
let scheduledFrameId: number | null = null;
|
|
68
68
|
let themeObserver: MutationObserver | null = null;
|
|
69
69
|
let vegaResult: { finalize: () => void } | null = null;
|
|
70
|
+
let highlightModulePromise: Promise<typeof import('./incremarkCodeHighlight')> | null = null;
|
|
70
71
|
|
|
71
72
|
const sourceCode = computed(() => props.node.value ?? '');
|
|
72
73
|
const language = computed(() => props.node.lang?.trim().toLowerCase() || 'text');
|
|
@@ -165,6 +166,14 @@ function scheduleHighlight() {
|
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
168
|
|
|
169
|
+
function loadHighlightModule() {
|
|
170
|
+
if (!highlightModulePromise) {
|
|
171
|
+
highlightModulePromise = import('./incremarkCodeHighlight');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return highlightModulePromise;
|
|
175
|
+
}
|
|
176
|
+
|
|
168
177
|
async function renderHighlight() {
|
|
169
178
|
const requestId = ++renderRequestId;
|
|
170
179
|
|
|
@@ -219,6 +228,7 @@ async function renderHighlight() {
|
|
|
219
228
|
}
|
|
220
229
|
|
|
221
230
|
try {
|
|
231
|
+
const { highlightCodeSnippetHtml } = await loadHighlightModule();
|
|
222
232
|
const html = await highlightCodeSnippetHtml(sourceCode.value, language.value, codeTheme.value);
|
|
223
233
|
|
|
224
234
|
if (requestId === renderRequestId) {
|
|
@@ -39,7 +39,7 @@ import type { Code } from 'mdast';
|
|
|
39
39
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
|
40
40
|
import embed from 'vega-embed';
|
|
41
41
|
|
|
42
|
-
import {
|
|
42
|
+
import type { IncremarkCodeTheme } from './incremarkCodeHighlight';
|
|
43
43
|
|
|
44
44
|
const props = withDefaults(defineProps<{
|
|
45
45
|
node: Code;
|
|
@@ -67,6 +67,7 @@ let renderRequestId = 0;
|
|
|
67
67
|
let scheduledFrameId: number | null = null;
|
|
68
68
|
let themeObserver: MutationObserver | null = null;
|
|
69
69
|
let vegaResult: { finalize: () => void } | null = null;
|
|
70
|
+
let highlightModulePromise: Promise<typeof import('./incremarkCodeHighlight')> | null = null;
|
|
70
71
|
|
|
71
72
|
const sourceCode = computed(() => props.node.value ?? '');
|
|
72
73
|
const language = computed(() => props.node.lang?.trim().toLowerCase() || 'text');
|
|
@@ -165,6 +166,14 @@ function scheduleHighlight() {
|
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
168
|
|
|
169
|
+
function loadHighlightModule() {
|
|
170
|
+
if (!highlightModulePromise) {
|
|
171
|
+
highlightModulePromise = import('./incremarkCodeHighlight');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return highlightModulePromise;
|
|
175
|
+
}
|
|
176
|
+
|
|
168
177
|
async function renderHighlight() {
|
|
169
178
|
const requestId = ++renderRequestId;
|
|
170
179
|
|
|
@@ -219,6 +228,7 @@ async function renderHighlight() {
|
|
|
219
228
|
}
|
|
220
229
|
|
|
221
230
|
try {
|
|
231
|
+
const { highlightCodeSnippetHtml } = await loadHighlightModule();
|
|
222
232
|
const html = await highlightCodeSnippetHtml(sourceCode.value, language.value, codeTheme.value);
|
|
223
233
|
|
|
224
234
|
if (requestId === renderRequestId) {
|