feat(hooks): implement directory-agents-injector hook

This commit is contained in:
YeonGyu-Kim
2025-12-08 16:54:42 +09:00
parent 79b791117a
commit 9ed23d4037
4 changed files with 188 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { join } from "node:path";
import { xdgData } from "xdg-basedir";
export const OPENCODE_STORAGE = join(xdgData ?? "", "opencode", "storage");
export const AGENTS_INJECTOR_STORAGE = join(
OPENCODE_STORAGE,
"directory-agents",
);
export const AGENTS_FILENAME = "AGENTS.md";