Skip to content

v0.16.0 — Universal V2 Plugin Mesh Bridge, External State & Local/Global Scope Isolation

Latest

Choose a tag to compare

@huseyincig huseyincig released this 20 Nov 19:28

What's Changed in v0.16.0

  • Universal OpenCode V2 Plugin Mesh Bridge (src/bridge.ts v2.2.0): Zero-dependency N-way interoperability across opencode-guardian, opencode-hi, opencode-smart-questions, and sibling V2 plugins via Symbol.for("opencode.mesh.v2") and opencode-mesh.state RPC.
  • Cryptographic Provenance, Session Leases & Deterministic Interventions: Preserves metadata["opencode-mesh"].token in sanitizeObject, coordinates user_interaction / active_remediation / orchestration_dispatch leases, records/clears deterministic mesh interventions, and synchronizes active handoffs across Guardian, Hi, and Smart Questions.
  • External Per-Project State Directory (Zero .opencode/ Pollution): Stores per-project audit logs in ~/.local/state/opencode-guardian/projects/<projectHash>/guardian-events.jsonl (0600) instead of <project>/.opencode/, preventing untracked files in git repositories and read-only .opencode/ sandbox lockouts in opencode-hi. Isolates NODE_TEST_CONTEXT runs under os.tmpdir()/opencode-guardian-tests-<pid>/ with automatic process-exit cleanup.
  • Local vs. Global Project Scope Isolation: Project-local installations strictly supervise only their own project directory (and subdirectories) without interfering with unrelated projects on the shared OpenCode server; global installations (~/.config/opencode/...) supervise all projects while honoring per-project overrides.
  • Documentation & Verification: Expanded README.md installation guide (Global, Project-Local, .opencode/plugins/ Wrapper/Symlink, file://, and Remote TUI cli.json). Verified with 789/789 unit/regression tests, 18/18 sandbox scenarios, and 10/10 live OpenCode v2.3.2 + Bun 1.4.4 acceptance checks.