/** * Recoveries for a refusal of a trusted publisher's workload token. * * The Registry's forbidding rules come with recoveries written for a person's * own credential: use your signed-in session. A GitHub Actions job has no * session to fall back to; what its workload token may do is the trusted * publisher's permission document, so a refusal of those limits points there. * The Registry client stays unaware of credentials: the application records * which source the invocation's credential comes from and rewrites the * recovery where it renders failures. */ import * as ServiceMap from "effect/Context"; import * as Option from "effect/Option"; import type { AmbientCredentialSource } from "@agentxm/registry-access/credentials"; import { type StepFailure } from "@agentxm/workspace-kernel/operations"; import { AppError } from "./app-error.js"; /** * Where this invocation's credential for its default Registry comes from, * decided once when the invocation starts. None when the credential, if any, * is a stored session. */ export declare const InvocationCredentialSource: ServiceMap.Reference>; /** A step failure as it reads for this invocation's credential source. */ export declare const stepFailureForCredentialSource: (source: Option.Option, failure: StepFailure) => StepFailure; /** A command's failure as it reads for this invocation's credential source. */ export declare const appErrorForCredentialSource: (source: Option.Option, error: AppError) => AppError; //# sourceMappingURL=trusted-publisher-recoveries.d.ts.map