MCPcopy Create free account
hub / github.com/Tencent/teamai-cli / resolveOpencodePluginDir

Function resolveOpencodePluginDir

src/opencode-hooks.ts:48–51  ·  view source on GitHub ↗
(baseDir: string, scope: 'project' | 'user')

Source from the content-addressed store, hash-verified

46 * how teamai resolves every other OpenCode path.)
47 */
48export function resolveOpencodePluginDir(baseDir: string, scope: 'project' | 'user'): string {
49 const configDir = scope === 'project' ? '.opencode' : path.join('.config', 'opencode');
50 return path.join(baseDir, configDir, OPENCODE_PLUGIN_DIR);
51}
52
53/**
54 * Build the teamai OpenCode plugin source.

Callers 7

discoverToolResourcesFunction · 0.85
executeRemovalFunction · 0.85
injectOpencodeHooksFunction · 0.85
removeOpencodeHooksFunction · 0.85
applyOpencodeAgentHookFunction · 0.85
removeOpencodeAgentHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected