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

Method constructor

lib/prompts/store.ts:330–340  ·  view source on GitHub ↗
(logger: Logger, workingDirectory: string, customPromptsEnabled = false)

Source from the content-addressed store, hash-verified

328 private runtimePrompts: RuntimePrompts
329
330 constructor(logger: Logger, workingDirectory: string, customPromptsEnabled = false) {
331 this.logger = logger
332 this.paths = resolvePromptPaths(workingDirectory)
333 this.customPromptsEnabled = customPromptsEnabled
334 this.runtimePrompts = createBundledRuntimePrompts()
335
336 if (this.customPromptsEnabled) {
337 this.ensureDefaultFiles()
338 }
339 this.reload()
340 }
341
342 getRuntimePrompts(): RuntimePrompts {
343 return { ...this.runtimePrompts }

Callers

nothing calls this directly

Calls 4

ensureDefaultFilesMethod · 0.95
reloadMethod · 0.95
resolvePromptPathsFunction · 0.85

Tested by

no test coverage detected