//#region src/supply-chain/errors.d.ts /** * Typed error classes for the skills supply-chain subsystem. * * @packageDocumentation */ /** * Base class for every supply-chain error. The framework follows * the project-wide convention of typed `kind` discriminators. * * @stable */ declare class GraphorinSupplyChainError extends Error { readonly kind: string; readonly hint?: string; constructor(kind: string, message: string, options?: { cause?: unknown; hint?: string; }); } /** * Thrown when an `untrusted` install lacks a signature. * * @stable */ declare class SkillSignatureMissingError extends GraphorinSupplyChainError { readonly skillId: string; constructor(skillId: string); } /** * Thrown when the signature on the SKILL.md does not validate. * * @stable */ declare class SkillSignatureInvalidError extends GraphorinSupplyChainError { readonly skillId: string; readonly publisher?: string; constructor(skillId: string, reason: string, publisher?: string); } /** * Thrown when an install request is rejected by the operator-managed * deny list (or by the framework-maintained list once `'auto'` is * supported post-MVP). * * @stable */ declare class SkillInstallDeniedError extends GraphorinSupplyChainError { readonly skillId: string; readonly source: 'denylist' | 'framework-denylist'; constructor(skillId: string, source: 'denylist' | 'framework-denylist', pattern: string); } /** * Thrown when the underlying package manager returns a non-zero exit * code or otherwise fails to install the skill. * * @stable */ declare class SkillInstallError extends GraphorinSupplyChainError { readonly skillId: string; readonly exitCode?: number; readonly stderr?: string; constructor(skillId: string, message: string, options?: { exitCode?: number; stderr?: string; cause?: unknown; }); } /** * Thrown when a SKILL.md cannot be parsed. * * @stable */ declare class SkillManifestParseError extends GraphorinSupplyChainError { constructor(message: string, options?: { cause?: unknown; }); } /** * Thrown when an `untrusted` install requests `trusted-with-scripts`. * * @stable */ declare class TrustLevelEscalationError extends GraphorinSupplyChainError { constructor(requested: string); } //#endregion export { GraphorinSupplyChainError, SkillInstallDeniedError, SkillInstallError, SkillManifestParseError, SkillSignatureInvalidError, SkillSignatureMissingError, TrustLevelEscalationError }; //# sourceMappingURL=errors.d.ts.map