Structs§
- Runtime
Manifest - Write a manifest inside cached runtime for verification
Functions§
- download_
runtime - Download runtime from GitHub Releases
- fetch_
latest_ runtime_ version - Fetch latest version from GitHub via versions/ files or API
- fingerprint_
inputs - Compose a fingerprint over a set of (relative_path, content) inputs.
The hashes are fed through a final digest so file additions/removals and
ordering changes are reflected.
inputsearlier in the slice must map to distinct paths; content may be empty for files that were deleted. - global_
cache_ root - Global cache root: ~/.morph/
- global_
runtime_ version_ dir - global_
runtimes_ dir - hash_
tree - Hash all files under
dir(relative path + content). Returns an empty string if the directory does not exist. Hidden/.git contents are skipped so unrelated files (e.g. cached build artifacts) don’t force rebuilds. - is_
project_ runtime_ installed - Check if project has runtime installed
- is_
runtime_ cached - Check if a runtime version is cached globally
- link_
runtime_ to_ project - Link or copy global cache to project .morph/runtime
- project_
hash_ dir - Project build-hash dir:
/.morph/hash - read_
stored_ fingerprint - Read the previously stored fingerprint for
binary_name, if any. - sha256_
bytes - Compute sha256 of bytes
- sha256_
file - Compute sha256 of a file
- sha256_
string - Compute sha256 of a string
- write_
lock_ file - Create morph.lock file
- write_
stored_ fingerprint - Store the fingerprint for
binary_nameunder/.morph/hash.