fix: strip frontmatter from injected skill content and share parser from src
This commit is contained in:
1 parent
023e012eda
commit
d301ef5a62
7 files changed
+108
-43
No files matched your search
+10
-2
@@ -10,10 +10,18 @@
|
||||
//
|
||||
// Deterministic: same inputs produce byte-identical outputs, so the nightly git diff is the
|
||||
// affected-set report. Never hand-edit skills/ or the matrix section.
|
||||
import { cpSync, existsSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs"
|
||||
import {
|
||||
cpSync,
|
||||
existsSync,
|
||||
readFileSync,
|
||||
readdirSync,
|
||||
rmSync,
|
||||
statSync,
|
||||
writeFileSync,
|
||||
} from "node:fs"
|
||||
import path from "node:path"
|
||||
import { fileURLToPath } from "node:url"
|
||||
import { isUserInvoked, parseFrontmatter } from "./frontmatter.ts"
|
||||
import { isUserInvoked, parseFrontmatter } from "../src/frontmatter.ts"
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..")
|
||||
|
||||
|
||||
Reference in new issue
Block a user