Public declaration syntax from forge-ts/packages/forge-core/src/error.ts Original source SHA-256: 10f7068014710f8ba2036c3b1cee64434c29414611affb6346ce5049b42ef325 Function bodies and constant values are omitted. This is not the complete implementation. Source line 21 export const ForgeErrorCode /* type inferred in source */; Source line 44 export type ForgeErrorCode = (typeof ForgeErrorCode)[keyof typeof ForgeErrorCode]; Source line 63 export class ForgeError extends Error { public readonly code: ForgeErrorCode; constructor(code: ForgeErrorCode, message: string); static providerNotFound(providerRef: string): ForgeError; static invalidProviderRef(input: string): ForgeError; static schemaValidation(path: string, reason: string): ForgeError; static invalidLifecycleTransition(from: string, to: string, reason: string): ForgeError; static toolInvocationDenied( toolName: string, agentDid: string, requiredCapability: string, actId: string ): ForgeError; static toolExecutionFailed(toolName: string, reason: string): ForgeError; static missingConfig(field: string, hint: string): ForgeError; static stopConditionReached(reason: string, steps: number, tokens: number): ForgeError; static unsupportedOperation(model: string, operation: string): ForgeError; static providerUnavailable(providerRef: string, reason: string): ForgeError; static providerAuthenticationFailed(providerRef: string, reason: string): ForgeError; static capabilityUnsupported(providerRef: string, capability: string): ForgeError; static providerNegotiationFailed(providerRef: string, reason: string): ForgeError; static providerSessionExpired(providerRef: string, sessionId: string): ForgeError; static providerInterruptUnsupported(providerRef: string): ForgeError; static providerResumeUnsupported(providerRef: string): ForgeError; static internal(message: string): ForgeError; }