MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / findOpenCodeDirs

Function findOpenCodeDirs

src/core/parser-opencode.ts:80–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78const READ_TOOLS = new Set(['read', 'glob', 'grep', 'ls', 'find']);
79
80export function findOpenCodeDirs(): string[] {
81 const home = process.env.HOME || process.env.USERPROFILE || '';
82 const dirs: string[] = [];
83
84 // macOS / Linux
85 const linuxPath = path.join(home, '.local', 'share', 'opencode', 'storage');
86 if (fs.existsSync(linuxPath)) dirs.push(linuxPath);
87
88 return dirs;
89}
90
91function readJsonSafe<T>(filePath: string): T | null {
92 try {

Callers 2

collectSyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected