Deepen all 16 pear-platform scaffolds to production APIs.

Expands spawn, argv, preflight, trust, OTA, pipes, and headless UI modules;
bumps to 0.3.1 with fuller tests and registry tier updates.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 01:35:15 -04:00
co-authored by Cursor
parent 64a2a824b5
commit 83a0ee684c
51 changed files with 982 additions and 178 deletions
@@ -1,10 +1,21 @@
require('bare-process/global')
const test = require('brittle')
const { HyperBareAddonResolve } = require('../index.js')
const { HyperBareTargetMatrix } = require('../../hyper-bare-target-matrix/index.js')
test('resolve addon', async (t) => {
const a = new HyperBareAddonResolve()
a.register('binding', { 'darwin-arm64': '/lib/binding.node' })
t.ok(a.resolve('binding'))
a.register('bare-fs', { 'darwin-arm64': '/addons/fs.node' })
t.ok(a.resolve('bare-fs'))
await a.close()
})
test('preferHost matrix', async (t) => {
const a = new HyperBareAddonResolve()
const m = new HyperBareTargetMatrix()
m.select('linux-arm64')
a.register('x', { 'linux-arm64': '/x.so' })
a.preferHost(m)
t.ok(a.resolve('x'))
await a.close()
})