MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / loader

Function loader

crates/opencode-plugin/builtin/copilot-auth.ts:56–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 };
55 },
56 async loader() {
57 const key =
58 process.env.GITHUB_COPILOT_API_KEY?.trim() ||
59 process.env.GITHUB_TOKEN?.trim();
60 if (!key) return {};
61 return {
62 apiKey: key,
63 };
64 },
65 },
66 };
67}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected