2025-12-11 11:07:31 +09:00
|
|
|
import { join } from "node:path";
|
2026-02-14 20:09:13 +09:00
|
|
|
import { OPENCODE_STORAGE } from "../../shared";
|
2025-12-11 11:07:31 +09:00
|
|
|
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][] = [
|
2026-01-02 10:27:33 +09:00
|
|
|
[".github", "instructions"],
|
2025-12-11 11:07:31 +09:00
|
|
|
[".cursor", "rules"],
|
|
|
|
|
[".claude", "rules"],
|
2026-02-01 15:01:09 +09:00
|
|
|
[".sisyphus", "rules"],
|
2025-12-11 11:07:31 +09:00
|
|
|
];
|
|
|
|
|
|
2026-01-02 10:27:33 +09:00
|
|
|
export const PROJECT_RULE_FILES: string[] = [
|
|
|
|
|
".github/copilot-instructions.md",
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const GITHUB_INSTRUCTIONS_PATTERN = /\.instructions\.md$/;
|
|
|
|
|
|
2025-12-11 11:07:31 +09:00
|
|
|
export const USER_RULE_DIR = ".claude/rules";
|
|
|
|
|
|
|
|
|
|
export const RULE_EXTENSIONS = [".md", ".mdc"];
|