Complete the full planned effort for the detailed ctx.bare code audit and the new ctx.pear surface, delivering the ability to create, stage, and integrate real Pear applications from within a booted Bare OS. ### Audit (ctx.bare) - Performed exhaustive code audit of bare-os-ctx-bare.js (host import path, drive bundle eval + require.addon wrappers, referrer workarounds). - Inventoried all manifest/bundle verifiers and related scripts. - Researched manifest format, implicit tiering model, and dual loading strategy (JSON + .data.mjs). - Deep analysis of the local Holepunch clone (bare-* and pear-* packages) to identify realistic guest vs host-delegate boundaries. - Full cross-reference of call sites, greps, and historical pain points (pear:// referrer resolution, nativeHint handling, addon stubs). ### Implementation (ctx.pear) - Added `pearEntries` tier to bare-module-manifest.json with initial high-value packages (pear-build, pear-bundle, pear-ref, etc.). - Implemented `loadPearModuleManifest()` and `buildPearCtxObjectFromHost()`. - Wired ctx.pear exposure through the booter into the guest context. - Updated TypeScript definitions (`bare-os-ctx.d.ts`). ### User-Facing Surface - Created full `/bin/pear` command with `help`, `info`, `list`, `init` (functional skeleton creation), and improved `stage` subcommands. - Registered as Tier-1 command (now 183 total commands). - Added man page and rebuilt coreutils (kernel + seeder). ### Agent Autonomy - Created production-quality `pear-dev` agent skill. - Added to skill seed list with cross-references to the appstore skill. ### P2P App Store Integration - Updated appstore skill with explicit Pear development synergy section. - Updated p2p-app-store design doc to document the new closed loop. - Added cross-references in both skills and design documents. ### Verification & Hygiene - Created `scripts/verify-pear-module-manifest-data.mjs`. - Enhanced `verify-pear-no-static-node-import.mjs` with explicit pear command coverage. - Integrated new verifier into release-checklist and agent hints. - Performed comprehensive zero-TODO/scaffolding sweep across all new Pear artifacts (clean). - Multiple full verification harness runs (all green). ### Documentation & Governance - Added complete "Pear Development Environment" thread to feature-roadmap.md. - Updated developer guide (Chapter 12). - Maintained living plan document and detailed audit notes with full Implementation Log throughout. - Updated command counts across READMEs and supporting docs. All changes follow project governance: - Bare-only guest constraints strictly observed - Verifier-first discipline maintained - Living plan + audit documents kept as single source of truth - Production quality bar matching the completed P2P App Store feature Plan items 04–21 completed. See: - docs/design/ctx-pear-surface-and-bare-audit-plan.md - docs/audit/ctx-bare-audit-notes.md (full audit + implementation log)
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"schema": 1,
|
|
"appstoreDriveLabel": "appstore",
|
|
"lastUpdatedMs": 0,
|
|
"packages": [
|
|
{
|
|
"name": "keet",
|
|
"type": "app",
|
|
"pearLink": "pear://example-keet-key",
|
|
"channel": "stable",
|
|
"version": "1.0.0",
|
|
"description": "P2P chat and collaboration app",
|
|
"trustPins": [],
|
|
"installPolicy": "default",
|
|
"installedAtMs": 0
|
|
},
|
|
{
|
|
"name": "simple-file-share",
|
|
"type": "service",
|
|
"pearLink": "pear://example-fileshare-key",
|
|
"channel": "released",
|
|
"version": "0.4.2",
|
|
"description": "Lightweight P2P file sharing service",
|
|
"trustPins": [],
|
|
"installPolicy": "default",
|
|
"service": {
|
|
"initdUnit": "simple-file-share.unit",
|
|
"autoStart": false
|
|
},
|
|
"installedAtMs": 0
|
|
},
|
|
{
|
|
"name": "example-kernel-ext",
|
|
"type": "kernel-ext",
|
|
"pearLink": "pear://example-kernel-ext-key",
|
|
"channel": "stable",
|
|
"version": "0.1.0",
|
|
"description": "Example kernel extension (requires explicit allow)",
|
|
"trustPins": ["deadbeef..."],
|
|
"installPolicy": "require-review",
|
|
"kernelExt": {
|
|
"id": "example-kernel-ext",
|
|
"provides": [{ "name": "example-feature", "version": "0.1" }],
|
|
"signaturePointer": "pear://..."
|
|
},
|
|
"installedAtMs": 0
|
|
}
|
|
]
|
|
}
|