agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
40 lines (39 loc) • 1.69 kB
TypeScript
/**
* hosting/signin/errors — the sign-in pieces' construction and capacity
* refusals, each naming what is at fault.
*/
/** A sign-in door option that cannot be honoured — `option` names it. */
export declare class SignInDoorConfigError extends TypeError {
readonly code: "ERR_SIGN_IN_DOOR_CONFIG";
/** The option at fault (`publicUrl`, `hours`, `guard`, `trustedProxies`, …). */
readonly option: string;
constructor(option: string, sentence: string);
}
/** A `memorySignIns` option that cannot be honoured — `option` names it. */
export declare class MemorySignInsConfigError extends TypeError {
readonly code: "ERR_MEMORY_SIGN_INS_CONFIG";
readonly option: string;
constructor(option: string, sentence: string);
}
/**
* The sign-in store is full of LIVE sign-ins and will not evict another
* person's to make room — the new sign-in is refused (the door answers 503)
* instead of signing somebody else out.
*/
export declare class SignInStoreFullError extends Error {
readonly code: "ERR_SIGN_IN_STORE_FULL";
constructor(max: number);
}
/**
* A password check that never reached its backend — the directory could not
* be connected to, or its TLS handshake failed — so the password was never
* sent and nobody's lockout counter moved. The door un-counts the attempt.
* Any OTHER error from a check (a bind that timed out after it was sent) keeps
* the attempt counted: the directory may have charged it (review idI57 S-6).
*/
export declare class PasswordCheckUnreachableError extends Error {
readonly code: "ERR_PASSWORD_CHECK_UNREACHABLE";
constructor(sentence: string, options?: {
cause?: unknown;
});
}