(staged as /lib/init/init-main.js); point bundle-kernel-init and verify scripts at the new path. Wire curl, wget, openssl, ssh-keygen, and tar through coreutils and booter host delegates with booter-side CLI helpers; refresh related bins, bare manifest, shell completion, and man DB (kernel + seeder). Add booter support modules for ACL evaluation, audit chain, secret handles, peer admission, replication priority, process table, swarm lifecycle, boot-graph proc, metrics, monotonic time, protomux alias registry, and swarm peer policy; extend extension resolver, VFS, swarm connection managers, IPC, identity-account, and initd. Harden bare-os-bare-libs build on esbuild failure; add verify scripts for extension manifest schema and runtime incomplete markers; extend ctx API typings, gen-ctx-client-stub, and verify-ctx-dts. Update boot hook fragment, bundled init.js, handbook and reference docs (incl. kernel security and VFS path classes).
17 lines
410 B
JavaScript
17 lines
410 B
JavaScript
/**
|
|
* Monotonic timing for spans (performance.now when available; else coarse wall fallback).
|
|
*/
|
|
export function bareOsMonotonicNowMs() {
|
|
if (typeof globalThis.performance?.now === 'function') {
|
|
return globalThis.performance.now()
|
|
}
|
|
return Date.now()
|
|
}
|
|
|
|
/**
|
|
* @param {number} startMs
|
|
*/
|
|
export function bareOsMonotonicElapsedMs(startMs) {
|
|
return Math.max(0, bareOsMonotonicNowMs() - startMs)
|
|
}
|