Keep embedded skill assets in single bundles

This commit is contained in:
gitea committed 2026-09-18 12:23:33 +08:00
1 parent a37e925979
commit 605b8e18d2
5 files changed
+914 -526

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ import { homedir } from "node:os";
import { dirname, join } from "node:path";
import {
EMBEDDED_SKILL_ASSET_PATHS,
EMBEDDED_SKILL_ASSET_DATA,
EMBEDDED_SKILL_TEXT_FILES
} from "./embedded-skill.generated.js";
@@ -11,7 +11,7 @@ export { EMBEDDED_SKILL_ALL_PATHS } from "./embedded-skill.generated.js";
export const EMBEDDED_SKILL_FILES = EMBEDDED_SKILL_TEXT_FILES;
export const EMBEDDED_SKILL_ASSETS: Record<string, Uint8Array> = Object.fromEntries(
Object.entries(EMBEDDED_SKILL_ASSET_PATHS).map(([relPath, filePath]) => [relPath, readFileSync(filePath)])
Object.entries(EMBEDDED_SKILL_ASSET_DATA).map(([relPath, base64]) => [relPath, Buffer.from(base64, "base64")])
);
export function getSkillContent(): string {