MCPcopy Create free account
hub / github.com/anomalyco/opencode / wrapSystemUpdate

Function wrapSystemUpdate

packages/llm/src/protocols/shared.ts:120–121  ·  view source on GitHub ↗
(parts: ReadonlyArray<{ readonly text: string }>)

Source from the content-addressed store, hash-verified

118 * temporal position, and XML-escapes content so it cannot close the wrapper.
119 */
120export const wrapSystemUpdate = (parts: ReadonlyArray<{ readonly text: string }>) =>
121 `<system-update>\n${escapeSystemUpdateText(joinText(parts))}\n</system-update>`
122
123/**
124 * Chronological system updates deliberately accept text only. Do not insert

Callers 1

shared.tsFile · 0.85

Calls 2

escapeSystemUpdateTextFunction · 0.85
joinTextFunction · 0.85

Tested by

no test coverage detected