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

Function isRetryableResolveError

packages/opencode/src/plugin/loader.ts:71–74  ·  view source on GitHub ↗
(stage: "install" | "entry" | "compatibility", error: unknown)

Source from the content-addressed store, hash-verified

69 }
70
71 function isRetryableResolveError(stage: "install" | "entry" | "compatibility", error: unknown) {
72 if (stage !== "install") return false
73 return errorMessage(error).includes("missing package.json or index file")
74 }
75
76 // Normalize a config item into the loader's internal representation.
77 function plan(item: ConfigPluginV1.Spec): Plan {

Callers 1

attemptFunction · 0.85

Calls 1

errorMessageFunction · 0.70

Tested by

no test coverage detected