3.0 KiB
3.0 KiB
name, version, description, tags
| name | version | description | tags | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pear-dev | 0.2.0 | Create, stage, build, release, and seed Pear applications entirely from inside a booted Bare OS using ctx.pear and /bin/pear. |
|
pear-dev Skill
When to Use This Skill
Use this skill whenever the user (or another agent) wants Pear development work inside Bare OS:
- Scaffold a new Pear app (
pear init) - Stage / bundle an app for deployment (
pear stage) - Publish to a real
pear://link from the guest shell (pear release) - Keep the release replicating (
pear seed) - Inspect what Pear tooling is available via
ctx.pear - Integrate Pear app creation with the P2P App Store
Core Capabilities
ctx.pear— Pear development surface (whenBARE_OS_BARE_MODULESis enabled):ctx.pear.pearBuild,ctx.pear.pearBundle,ctx.pear.pearRefctx.pear.bareBundleCompile,ctx.pear.bareBundleEvaluate
/bin/pearcommand:pear help|pear info|pear listpear init [dir]— scaffold project skeletonpear stage [dir]— write<project>/.pear/stage/(sources + bundle)pear release [dir]— publish stage to HDMS Hyperdrive, printpear://linkspear seed [dir]— swarm flush / replication for the release drivepear build/pear bundle— aliases forpear stage
End-to-End Workflow (Guest Shell Only)
The full pipeline runs inside the Bare OS shell. No host-side pear stage / pear release is required.
pear init
cd ~/pear-projects/my-pear-app
pear stage
login # unlock identity vault if not already logged in
pear release
pear seed
Requirements for release/seed:
- Identity unlocked (
login) so HDMS is active - Prior successful
pear stage(.pear/stage/stage.jsonmust exist)
Release creates (or reuses) a writable HDMS mount pear-<app-name> at /mnt/pear-<app-name>/, mirrors the staged tree there, and writes .pear/release.json with pearLink and versionedLink.
Recommended Agent Loop
run_command "pear list"— confirm ctx.pear tools loadedrun_command "pear init"or scaffold in project dirrun_command "pear stage ."- Ensure user is logged in (HDMS active); if guest, prompt
login run_command "pear release ."run_command "pear seed ."for replication- Optional:
appstore install <name> <pear://link> --yes
Safety & Limits
- Release drives live on the user's personal HDMS namespace (same trust model as
hdms create). - Re-release overwrites files on the release mount by path; stale paths are not purged automatically.
pear seedis best-effort swarm flush — not a guarantee of wide replication.- Do not claim host Pear sidecar is needed for release; the guest
/bin/pearpath is authoritative.
Files & References
- Plan:
docs/design/ctx-pear-surface-and-bare-audit-plan.md - Staging:
packages/bare-os-coreutils/lib/pear/pear-stage.js - Release:
packages/bare-os-coreutils/lib/pear/pear-release.js - Command:
packages/bare-os-coreutils/src/pear.js