dsh-shiki
Verified@ch4acko3/dsh-shiki · v0.1.2 · MIT · Web UI
Shared Shiki engine service for DeepSeek Harness Web plugins
Install
dsh plugin add @ch4acko3/dsh-shiki Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Readme
@ch4acko3/dsh-shiki
A browser-side Cordis service that owns one lazily created Shiki engine for DeepSeek Harness Web plugins.
export const inject = ['shiki']
export function apply(ctx) {
const result = ctx.shiki.tokenize({
code: 'const answer = 42',
language: 'ts',
})
console.log(result.lines)
}
resolveLanguage() accepts common aliases, including patch for the bundled diff grammar. tokenize() requires a supported language and returns Shiki tokens using DSH's --shiki-* CSS variables. Its lineEndings field preserves the source's original LF, CRLF, or CR separators.