openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
46 lines (45 loc) • 1.62 kB
TypeScript
import { Transform } from "node:stream";
//#region node_modules/@openclaw/fs-safe/dist/archive-limits.d.ts
type ArchiveExtractLimits = {
/**
* Max archive file bytes (compressed).
*/
maxArchiveBytes?: number; /** Max number of extracted entries (files + dirs). */
maxEntries?: number; /** Max extracted bytes (sum of all files). */
maxExtractedBytes?: number; /** Max extracted bytes for a single file entry. */
maxEntryBytes?: number;
};
//#endregion
//#region node_modules/@openclaw/fs-safe/dist/archive-kind.d.ts
type ArchiveKind = "tar" | "zip";
//#endregion
//#region node_modules/@openclaw/fs-safe/dist/archive.d.ts
type ArchiveLogger = {
info?: (message: string) => void;
warn?: (message: string) => void;
};
declare function extractArchive(params: {
archivePath: string;
destDir: string;
timeoutMs: number;
kind?: ArchiveKind;
stripComponents?: number;
tarGzip?: boolean;
limits?: ArchiveExtractLimits;
logger?: ArchiveLogger;
}): Promise<void>;
//#endregion
//#region src/infra/brew.d.ts
type BrewResolutionOptions = {
homeDir?: string;
/**
* @deprecated No-op compatibility field for plugin SDK callers. Homebrew
* env vars are ignored for resolution because workspace env can be untrusted.
*/
env?: NodeJS.ProcessEnv;
};
/** Returns standard Homebrew bin directories suitable for PATH augmentation. */
/** Resolves an executable `brew` path from trusted PATH entries or standard install roots. */
declare function resolveBrewExecutable(opts?: BrewResolutionOptions): string | undefined;
//#endregion
export { extractArchive as n, resolveBrewExecutable as t };