MCPcopy Index your code
hub / github.com/anomalyco/opencode / internalMethod

Function internalMethod

packages/core/test/plugin/host.ts:252–261  ·  view source on GitHub ↗
(
  value: IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod,
)

Source from the content-addressed store, hash-verified

250}
251
252function internalMethod(
253 value: IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod,
254): Integration.Method {
255 if (value.type === "env") return value
256 if (value.type === "key") return value
257 return {
258 ...value,
259 id: Integration.MethodID.make(value.id),
260 }
261}
262
263function agentInfo(value: AgentV2.Info) {
264 return {

Callers 1

integrationHostFunction · 0.85

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected