UNPKG

@gguf/claw

Version:

Multi-channel AI gateway with extensible messaging integrations

29 lines (28 loc) 1.01 kB
import type { AgentToolResult } from "@mariozechner/pi-agent-core"; import { type ExecAsk, type ExecSecurity } from "../infra/exec-approvals.js"; import type { ExecToolDetails } from "./bash-tools.exec-types.js"; export type ProcessGatewayAllowlistParams = { command: string; workdir: string; env: Record<string, string>; pty: boolean; timeoutSec?: number; defaultTimeoutSec: number; security: ExecSecurity; ask: ExecAsk; safeBins: Set<string>; agentId?: string; sessionKey?: string; scopeKey?: string; warnings: string[]; notifySessionKey?: string; approvalRunningNoticeMs: number; maxOutput: number; pendingMaxOutput: number; trustedSafeBinDirs?: ReadonlySet<string>; }; export type ProcessGatewayAllowlistResult = { execCommandOverride?: string; pendingResult?: AgentToolResult<ExecToolDetails>; }; export declare function processGatewayAllowlist(params: ProcessGatewayAllowlistParams): Promise<ProcessGatewayAllowlistResult>;