DCP was failing to find session messages because it was looking in ~/.config/opencode/sessions instead of ~/.local/share/opencode/storage. Unified all hooks to use getOpenCodeStorageDir() for cross-platform consistency. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
24 lines
566 B
TypeScript
24 lines
566 B
TypeScript
import { join } from "node:path";
|
|
import { getOpenCodeStorageDir } from "../../shared/data-path";
|
|
|
|
export const OPENCODE_STORAGE = getOpenCodeStorageDir();
|
|
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][] = [
|
|
[".cursor", "rules"],
|
|
[".claude", "rules"],
|
|
];
|
|
|
|
export const USER_RULE_DIR = ".claude/rules";
|
|
|
|
export const RULE_EXTENSIONS = [".md", ".mdc"];
|