Skip to content

Commit 1ae49e1

Browse files
authored
feat(desktop): consolidate syntax highlighting on shiki (#228)
docs: remove unreferenced diagram assets docs: regenerate documentation diagrams docs: complete plugin-bundled skill source paths docs(core): mark archive marketplace source as legacy docs(core): correct archive marketplace source comment
1 parent 60a1031 commit 1ae49e1

110 files changed

Lines changed: 7384 additions & 3040 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

desktop/e2e/smoke.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,16 @@ async function run(): Promise<void> {
228228
log('FAIL: first window is not visible after launch.')
229229
process.exit(1)
230230
}
231-
await page.waitForSelector('#root', { timeout: STEP_TIMEOUT })
232-
const rootText = (await page.textContent('#root')) ?? ''
233-
if (rootText.trim().length === 0) {
231+
// #root exists in index.html before React runs, so waiting for the element
232+
// only proves the document parsed. Wait for content instead, or this races
233+
// the first paint and fails on whatever the app happens to load first.
234+
try {
235+
await page.waitForFunction(
236+
() => (document.getElementById('root')?.textContent ?? '').trim().length > 0,
237+
undefined,
238+
{ timeout: STEP_TIMEOUT }
239+
)
240+
} catch {
234241
log('FAIL: renderer root mounted but has no visible content.')
235242
process.exit(1)
236243
}

desktop/electron.vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ export default defineConfig({
3636
}
3737
}
3838
},
39+
// The highlight worker lazily imports one grammar module per language,
40+
// so its bundle is code-split. IIFE workers cannot be, and are the default.
41+
worker: {
42+
format: 'es'
43+
},
3944
plugins: [react(), tailwindcss()]
4045
}
4146
})

0 commit comments

Comments
 (0)