mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 11:02:17 +00:00
15 lines
455 B
TypeScript
15 lines
455 B
TypeScript
import { dirname, join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
|
|
const baseDir = dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default function (pi: ExtensionAPI) {
|
|
pi.on("resources_discover", () => {
|
|
return {
|
|
skillPaths: [join(baseDir, "SKILL.md")],
|
|
promptPaths: [join(baseDir, "dynamic.md")],
|
|
themePaths: [join(baseDir, "dynamic.json")],
|
|
};
|
|
});
|
|
}
|