Merge pull request #69 from liby/feat/xdg-config-path

feat: add XDG config path support for EXTEND.md
This commit is contained in:
Jim Liu 宝玉
2026-03-08 22:19:52 -05:00
committed by GitHub
21 changed files with 75 additions and 7 deletions
@@ -37,6 +37,10 @@ function parseExtendYaml(yaml: string): Partial<ExtendConfig> {
export function loadExtendConfig(): Partial<ExtendConfig> {
const paths = [
path.join(process.cwd(), ".baoyu-skills", "baoyu-markdown-to-html", "EXTEND.md"),
path.join(
process.env.XDG_CONFIG_HOME || path.join(homedir(), ".config"),
"baoyu-skills", "baoyu-markdown-to-html", "EXTEND.md"
),
path.join(homedir(), ".baoyu-skills", "baoyu-markdown-to-html", "EXTEND.md"),
];
for (const p of paths) {