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

Function buildCliBridgeEnv

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

Source from the content-addressed store, hash-verified

162}
163
164export function buildCliBridgeEnv(
165 bridge: OpenCodeBridgeContext | undefined,
166): Record<string, string | undefined> {
167 return {
168 ...(bridge?.sharingEnabled !== undefined && {
169 PLANNOTATOR_SHARE: bridge.sharingEnabled ? "enabled" : "disabled",
170 }),
171 ...(bridge?.shareBaseUrl && { PLANNOTATOR_SHARE_URL: bridge.shareBaseUrl }),
172 ...(bridge?.pasteApiUrl && { PLANNOTATOR_PASTE_URL: bridge.pasteApiUrl }),
173 };
174}
175
176function buildBridgePayload(bridge: OpenCodeBridgeContext | undefined): OpenCodeBridgeContext {
177 return {

Callers 2

cli-bridge.test.tsFile · 0.90
runPlannotatorCliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected