mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
Some checks are pending
CI / check-test-types (push) Blocked by required conditions
CI / check-additional-boundaries-a (push) Blocked by required conditions
CI / check-additional-boundaries-bcd (push) Blocked by required conditions
CI / check-additional-extension-bundled (push) Blocked by required conditions
CI / check-additional-extension-channels (push) Blocked by required conditions
CI / check-additional-extension-package-boundary (push) Blocked by required conditions
CI / check-additional-runtime-topology-architecture (push) Blocked by required conditions
CI / check-session-accessor-boundary (push) Blocked by required conditions
CI / check-session-transcript-reader-boundary (push) Blocked by required conditions
CI / check-docs (push) Blocked by required conditions
CI / build-artifacts (push) Blocked by required conditions
CI / (push) Blocked by required conditions
CI / -1 (push) Blocked by required conditions
CI / -2 (push) Blocked by required conditions
CI / checks-node-compat-node22 (push) Blocked by required conditions
CI / -3 (push) Blocked by required conditions
CI / check-dependencies (push) Blocked by required conditions
CI / check-guards (push) Blocked by required conditions
CI / check-lint (push) Blocked by required conditions
CI / check-prod-types (push) Blocked by required conditions
CI / check-shrinkwrap (push) Blocked by required conditions
CI / preflight (push) Waiting to run
CI / security-fast (push) Waiting to run
CI / pnpm-store-warmup (push) Blocked by required conditions
CI / skills-python (push) Blocked by required conditions
CI / -4 (push) Blocked by required conditions
CI / -5 (push) Blocked by required conditions
CI / macos-swift (push) Blocked by required conditions
CI / -6 (push) Blocked by required conditions
CI / ci-timings-summary (push) Blocked by required conditions
ClawSweeper Dispatch / dispatch (push) Waiting to run
CodeQL / Security High (actions) (push) Waiting to run
CodeQL / Security High (channel-runtime-boundary) (push) Waiting to run
CodeQL / Security High (core-auth-secrets) (push) Waiting to run
CodeQL / Security High (mcp-process-tool-boundary) (push) Waiting to run
CodeQL / Security High (network-ssrf-boundary) (push) Waiting to run
CodeQL / Security High (plugin-trust-boundary) (push) Waiting to run
Docs Sync Publish Repo / sync-publish-repo (push) Waiting to run
Docs / docs (push) Waiting to run
OpenClaw Stable Main Closeout / Resolve stable release closeout inputs (push) Waiting to run
OpenClaw Stable Main Closeout / Verify stable main closeout (push) Blocked by required conditions
Plugin NPM Release / preview_plugins_npm (push) Waiting to run
Plugin NPM Release / Validate release publish approval (push) Blocked by required conditions
Plugin NPM Release / preview_plugin_pack (push) Blocked by required conditions
Plugin NPM Release / publish_plugins_npm (push) Blocked by required conditions
Workflow Sanity / no-tabs (push) Waiting to run
Workflow Sanity / actionlint (push) Waiting to run
Workflow Sanity / generated-doc-baselines (push) Waiting to run
51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
// Diffs Shiki Curated script supports OpenClaw repository automation.
|
|
import {
|
|
createBundledHighlighter,
|
|
createCssVariablesTheme,
|
|
createSingletonShorthands,
|
|
getTokenStyleObject,
|
|
guessEmbeddedLanguages,
|
|
normalizeTheme,
|
|
stringifyTokenStyle,
|
|
} from "@shikijs/core";
|
|
import {
|
|
createJavaScriptRegexEngine,
|
|
defaultJavaScriptRegexConstructor,
|
|
} from "@shikijs/engine-javascript";
|
|
import { createOnigurumaEngine, loadWasm } from "@shikijs/engine-oniguruma";
|
|
import { bundledLanguages } from "../extensions/diffs/src/shiki-curated-languages.js";
|
|
export * from "@shikijs/core";
|
|
export {
|
|
bundledLanguages,
|
|
bundledLanguagesAlias,
|
|
bundledLanguagesBase,
|
|
bundledLanguagesInfo,
|
|
} from "../extensions/diffs/src/shiki-curated-languages.js";
|
|
export { bundledThemes, bundledThemesInfo } from "shiki/themes";
|
|
import { bundledThemes } from "shiki/themes";
|
|
|
|
export const createHighlighter = createBundledHighlighter({
|
|
langs: bundledLanguages,
|
|
themes: bundledThemes,
|
|
engine: () => createOnigurumaEngine(import("shiki/wasm")),
|
|
});
|
|
|
|
const shorthands = createSingletonShorthands(createHighlighter, { guessEmbeddedLanguages });
|
|
|
|
export const codeToHtml = shorthands.codeToHtml;
|
|
export const codeToHast = shorthands.codeToHast;
|
|
export const codeToTokens = shorthands.codeToTokens;
|
|
export const codeToTokensBase = shorthands.codeToTokensBase;
|
|
export const codeToTokensWithThemes = shorthands.codeToTokensWithThemes;
|
|
export const getSingletonHighlighter = shorthands.getSingletonHighlighter;
|
|
export const getLastGrammarState = shorthands.getLastGrammarState;
|
|
export {
|
|
createCssVariablesTheme,
|
|
createJavaScriptRegexEngine,
|
|
createOnigurumaEngine,
|
|
defaultJavaScriptRegexConstructor,
|
|
getTokenStyleObject,
|
|
loadWasm,
|
|
normalizeTheme,
|
|
stringifyTokenStyle,
|
|
};
|