@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
23 lines (22 loc) • 546 B
JavaScript
/** Codes vigilbase.com sends in its agent API errors (apps/com/lib/agent/api-error.ts). */
export const AGENT_API_ERROR_CODES = [
'bad_request',
'unauthorized',
'forbidden',
'not_found',
'conflict',
'gone',
'length_required',
'payload_too_large',
'unsupported_media_type',
'rate_limit_exceeded',
'unprocessable_entity',
'internal_error',
'service_unavailable',
];
/** Exit codes used by the CLI. Documented for agents. */
export const EXIT = {
OK: 0,
ERROR: 1,
RATE_LIMITED: 2,
};