MCPcopy Create free account
hub / github.com/backnotprop/plannotator / buildBridgePayload

Function buildBridgePayload

apps/opencode-plugin/cli-bridge.ts:176–183  ·  view source on GitHub ↗
(bridge: OpenCodeBridgeContext | undefined)

Source from the content-addressed store, hash-verified

174}
175
176function buildBridgePayload(bridge: OpenCodeBridgeContext | undefined): OpenCodeBridgeContext {
177 return {
178 ...(bridge?.sharingEnabled !== undefined && { sharingEnabled: bridge.sharingEnabled }),
179 ...(bridge?.shareBaseUrl && { shareBaseUrl: bridge.shareBaseUrl }),
180 ...(bridge?.pasteApiUrl && { pasteApiUrl: bridge.pasteApiUrl }),
181 ...(bridge?.agents && { agents: bridge.agents }),
182 };
183}
184
185function logCliWarnings(client: OpenCodeClient, stderr: string): void {
186 const warningLines = stderr

Callers 2

runCliPlanReviewFunction · 0.85
handleCliCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected