UNPKG

@vigilbase/cli

Version:

Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.

12 lines (11 loc) • 684 B
import { type CommandHandler } from './helpers.js'; /** * A bearer token from --token, VIGILBASE_ONE_TOKEN or --token-stdin, checked before any request: fetch refuses * header values with other characters, which would read as a connection failure. */ export declare function validateBearerToken(token: string): string; /** A piped token fails with the same messages as --token. Reading stops past 16 KiB, with room for a line ending. */ export declare function readTokenFromStdin(input?: NodeJS.ReadableStream): Promise<string>; export declare const handleLogin: CommandHandler; export declare const handleLogout: CommandHandler; export declare const handleWhoami: CommandHandler;