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"],
  [".omo", "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 OPENCODE_USER_RULE_DIRS = [".omo/rules", ".opencode/rules"];

export const RULE_EXTENSIONS = [".md", ".mdc"];
