Download src/hooks/install.runtime.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/hooks/install.runtime.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/hooks/install.runtime.ts
-
curl -L -o install.runtime.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/hooks/install.runtime.ts
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, | |
| }; | |