MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / mergeContext

Function mergeContext

src/core/hooks.ts:341–343  ·  view source on GitHub ↗
(existing: string | undefined, addition: string)

Source from the content-addressed store, hash-verified

339}
340
341function mergeContext(existing: string | undefined, addition: string): string {
342 return existing ? `${existing}\n\n${addition}` : addition
343}
344
345/** Cap injected context so a single hook can't blow the model's context window. */
346function capContext(text: string): string {

Callers 1

runOneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected