MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / createDefaultConfig

Function createDefaultConfig

lib/config.ts:768–778  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

766}
767
768function createDefaultConfig(): void {
769 if (!existsSync(GLOBAL_CONFIG_DIR)) {
770 mkdirSync(GLOBAL_CONFIG_DIR, { recursive: true })
771 }
772
773 const configContent = `{
774 "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json"
775}
776`
777 writeFileSync(GLOBAL_CONFIG_PATH_JSONC, configContent, "utf-8")
778}
779
780interface ConfigLoadResult {
781 data: Record<string, any> | null

Callers 1

getConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected