示例工程 60-tool-registry-approval

60-tool-registry-approval/app/.tsc/shared/ipc.d.ts

typescript · 0.7 KB

import type { ApprovalDecision, AuditEntry, Risk, Scenario, ToolDef } from "./tools";
export declare const CH: {
    readonly snapshot: "tools:snapshot";
    readonly run: "tools:run";
    readonly reset: "tools:reset";
};
export type RunReq = {
    scenarioId: string;
    decision: ApprovalDecision;
};
export type Check = {
    id: string;
    label: string;
    pass: boolean;
    detail: string;
};
export type Snapshot = {
    platform: string;
    electronVersion: string;
    nodeVersion: string;
    tools: Array<ToolDef & {
        needsApproval: boolean;
    }>;
    scenarios: Scenario[];
    grants: string[];
    audit: AuditEntry[];
    checks: Check[];
    score: number;
    risks: Record<Risk, number>;
};
//# sourceMappingURL=ipc.d.ts.map