Files
bare-operating-system/packages/bare-os-booter/lib/bare-os-hyperbee-guest-hint.js
T
Raven Scott 6f923f72d1 Implement roadmap items across booter, protocol, kernel bundle, coreutils, and docs.
- Hyperswarm connection caps (env + /proc + disk.os replication_operator_sketch)
- Protomux operator metrics schema; warm-cache invalidation on replication
- ctx.bareOsSyscall nanosleep; socket bridge getsockopt/setsockopt (keepalive/nodelay)
- Extension signer pin verification before kernel.ext.d scripts; ctx/DTS updates
- Structured seeder logging (BARE_OS_SEED_LOG_*); release-checklist holepunch drift
- POSIX profile/matrix/conformance lists + handbook/env appendix/kernel-extensions
- Coreutils printf golden tests; sync kernel ↔ seeder parity after bundle
2026-04-05 02:38:24 -04:00

23 lines
819 B
JavaScript

/**
* Operator hint for optional Hyperbee2-style P2P indexes (Holepunch hyperbee2).
* Guests do not open Hyperbee by default; extensions on a capable host may dynamic-import.
*/
/**
* @param {Record<string, string | undefined> | null | undefined} env
*/
export function buildBareOsHyperbeeGuestHint(env) {
const on =
env?.BARE_OS_HYPERBEE_GUEST_INDEX === '1' ||
env?.BARE_OS_HYPERBEE_GUEST_INDEX === 'true'
return {
schema: 1,
enabled: on,
optionalNpmPackage: 'hyperbee2',
code: on ? 'host_extension_may_import' : 'ENOTSUP',
note:
'When enabled, operators may attach hyperbee2-backed indexes from host Pear/Bare context; stock guest kernel stays file/Hyperdrive-shaped. No central authority: indexes replicate with their Hypercore backing store.',
atMs: Date.now()
}
}