- Bump ctx API to 1.31.0; extend /proc/bare_os/syscalls.json schema 4 (fdModel, signalModel) - Add /mirror/aux* routing for auxiliary Hyperdrives; optional BLAKE2b-keyed /bin cache (BARE_OS_VFS_BIN_CACHE_BLAKE2B) - Wire seeder snapshotHintsJson from BARE_OS_SEED_* env; add seeder unit tests - Shell: trap -p; docs for jobs/bg/trap; sync schemas, examples, compatibility matrix, handbook ch.9 - Coreutils: Issue 7 man option rows for cp/mv/ln/find/grep/sed/awk/tar/test/true; xcu-issue7-sweep tests - Docs: env appendix, vault-threat-model, node-vs-bare-host-matrix, test:bare, CHANGELOG 1.31.0
18 lines
654 B
JavaScript
18 lines
654 B
JavaScript
/**
|
|
* Build `snapshotHintsJson` for `setupSeedChannel` (bare_os.snapshot_hints RPC → booter proc).
|
|
* @param {Record<string, string | undefined> | null | undefined} hostEnv
|
|
* @returns {string}
|
|
*/
|
|
export function buildSeederSnapshotHintsJson(hostEnv) {
|
|
const e = hostEnv && typeof hostEnv === 'object' ? hostEnv : {}
|
|
const explicit = String(e.BARE_OS_SEED_SNAPSHOT_HINTS_JSON ?? '').trim()
|
|
if (explicit) return explicit
|
|
const tag = String(e.BARE_OS_SEED_CORESTORE_SNAPSHOT_TAG ?? '').trim()
|
|
if (!tag) return ''
|
|
return JSON.stringify({
|
|
schema: 1,
|
|
corestoreSnapshotTag: tag,
|
|
source: 'BARE_OS_SEED_CORESTORE_SNAPSHOT_TAG'
|
|
})
|
|
}
|