Files
bare-operating-system/docs/examples/pear-updater-delegate-minimal.mjs
T
2026-04-05 04:33:14 -04:00

16 lines
628 B
JavaScript

/**
* Minimal Pear updater delegate for `BARE_OS_PEAR_UPDATER_MODULE`.
* Bare/Pear-safe: no static `node:` imports (see `scripts/verify-pear-no-static-node-import.mjs`).
* A host reload / new Pear release can ship an updated `bare-module-manifest.data.mjs`; updating only `/lib/bare/bare-module-manifest.json` on the drive does not change Pear host `import()`s for `ctx.bare`.
*/
export async function getPearUpdaterState() {
return {
schema: 1,
channel: 'example',
pending: false,
note: 'Replace with real pear-updater integration; keep imports Bare-resolvable.'
}
}
export default getPearUpdaterState