MCPcopy Create free account
hub / github.com/anomalyco/opencode / isACPError

Function isACPError

packages/opencode/src/acp/service.ts:1065–1073  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1063}
1064
1065function isACPError(error: unknown): error is Error {
1066 return (
1067 typeof error === "object" &&
1068 error !== null &&
1069 "_tag" in error &&
1070 typeof error._tag === "string" &&
1071 error._tag.startsWith("ACP")
1072 )
1073}
1074
1075function isAuthRequired(value: unknown): boolean {
1076 if (typeof value !== "object" || value === null) return false

Callers 1

fromUnknownErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected