Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@opencode-compat/cli

OCP compat doctor, Plugin×Host×Tier matrix runner, Layer A setup / overrides, Option B provider shims, and migrate-zcode companion CLI.

End-user install: see docs/hosts/opencode-clones.md.

compat doctor [--host opencode|mimo|kilo|zcode]
compat setup [--dir <path>] [--host <id>] [--mode auto|npm|file] [--version <x.y.z>]
             [--dry-run] [--deep|--no-deep] [--reify|--no-reify]
             [--provider-shim|--no-provider-shim]
             [--absolute-plugins|--no-absolute-plugins]
compat overrides
compat matrix [...]
compat migrate-zcode --plugin <dir> [--out <dir>] [--dry-run]

setup defaults to deep child package.json patches, auto-reify (npm install) when a patched tree already has node_modules, --provider-shim (Option B force-instrumented, backup-free entry shims), and --absolute-plugins (facade symlinks into absolute-path / file:// checkouts). Deep + reify are required on MiMo/Kilo isolated per-plugin install dirs. Re-run after installing, upgrading, or locally rebuilding consumer plugins. Rebuild/reinstall—not a captured backup—is the stock revert path. Outside this monorepo prefer --mode npm.

User-facing entry is ocp from @opencode-compat/ocp (defaults to setup). This package remains the bridge CLI implementation.

migrate-zcode packs plugin-packaged skills/commands/manifests into a .zcode-plugin tree. It is not OCP ABI compatibility (ZCode stays T0) and does not migrate host MCP.

License: MPL-2.0

See the monorepo README, OCP 0.1, host guides under docs/hosts/, and the ZCode import/migrate guide.