- Create src/shared/opencode-storage-paths.ts with all 4 constants - Update 4 previous declaration sites to import from shared file - Update additional OPENCODE_STORAGE usages for consistency - Re-export from src/shared/index.ts - No duplicate constant declarations remain
30 lines
704 B
TypeScript
30 lines
704 B
TypeScript
import { join } from "node:path";
|
|
import { OPENCODE_STORAGE } from "../../shared";
|
|
export const RULES_INJECTOR_STORAGE = join(OPENCODE_STORAGE, "rules-injector");
|
|
|
|
export const PROJECT_MARKERS = [
|
|
".git",
|
|
"pyproject.toml",
|
|
"package.json",
|
|
"Cargo.toml",
|
|
"go.mod",
|
|
".venv",
|
|
];
|
|
|
|
export const PROJECT_RULE_SUBDIRS: [string, string][] = [
|
|
[".github", "instructions"],
|
|
[".cursor", "rules"],
|
|
[".claude", "rules"],
|
|
[".sisyphus", "rules"],
|
|
];
|
|
|
|
export const PROJECT_RULE_FILES: string[] = [
|
|
".github/copilot-instructions.md",
|
|
];
|
|
|
|
export const GITHUB_INSTRUCTIONS_PATTERN = /\.instructions\.md$/;
|
|
|
|
export const USER_RULE_DIR = ".claude/rules";
|
|
|
|
export const RULE_EXTENSIONS = [".md", ".mdc"];
|