@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
21 lines (20 loc) • 881 B
TypeScript
import { type OneOperation } from '../lib/one-operations.js';
import type { VigilbaseOneClient } from '../lib/one-client.js';
import { type CommandContext, type CommandHandler } from './helpers.js';
/** A command served by a One v1 operation: `run` makes the call(s) and returns the validated body. */
export type OneV1Command = {
kind: 'v1';
label: string;
operationId: string;
run: (client: VigilbaseOneClient) => Promise<unknown>;
};
/** A command with no v1 operation yet: a legacy `/api/...` path on the One origin. */
export type OneLegacyCommand = {
kind: 'legacy';
label: string;
operation: OneOperation;
};
export type OneCommand = OneV1Command | OneLegacyCommand;
export declare function buildOneOperation(ctx: CommandContext): OneCommand;
export declare const handleOne: CommandHandler;
export declare const ONE_HELP: Record<string, string>;