openclaw / src /hooks /install.runtime.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
d197cf3 verified
Raw History Blame Contribute Delete
1.57 kB
// Hook install runtime helpers resolve archive install behavior behind runtime imports.
import { resolveArchiveKind } from "../infra/archive.js";
import { pathExists } from "../infra/fs-safe.js";
import { resolveExistingInstallPath, withExtractedArchiveRoot } from "../infra/install-flow.js";
import { installFromValidatedNpmSpecArchive } from "../infra/install-from-npm-spec.js";
import {
resolveInstallModeOptions,
resolveTimedInstallModeOptions,
} from "../infra/install-mode-options.js";
import { installPackageDir } from "../infra/install-package-dir.js";
import {
type NpmIntegrityDrift,
type NpmSpecResolution,
resolveArchiveSourcePath,
} from "../infra/install-source-utils.js";
import {
ensureInstallTargetAvailable,
resolveCanonicalInstallTarget,
} from "../infra/install-target.js";
import { readJson } from "../infra/json-files.js";
import { isPathInside, isPathInsideWithRealpath } from "../security/scan-paths.js";
/** Runtime-only install dependencies for hook install/update paths. */
export type { NpmIntegrityDrift, NpmSpecResolution };
/** Lazy facade kept separate so hook metadata paths do not eagerly load install tooling. */
export {
ensureInstallTargetAvailable,
pathExists as fileExists,
installFromValidatedNpmSpecArchive,
installPackageDir,
isPathInside,
isPathInsideWithRealpath,
readJson as readJsonFile,
resolveArchiveKind,
resolveArchiveSourcePath,
resolveCanonicalInstallTarget,
resolveExistingInstallPath,
resolveInstallModeOptions,
resolveTimedInstallModeOptions,
withExtractedArchiveRoot,
};