Files
Claude de9ab5c5db fix: make the plugin work in the real OpenCode V2 host
- Pass tool inputs to the host as plain JSON Schema (toHostInputSchema via
  zod-to-json-schema). The host rejects zod v3 schemas, so every tool was
  silently dropped at registration.
- setup() now awaits every hook/transform registration and resolves to a
  cleanup function that disposes them; returning the doctor report made the
  host crash on unload. setupOpenCodeV2Harness() exposes the report.
- Read plugin options from ctx.options (where the host delivers them).
- MCP server seeding is opt-in (seedRecommendedMcp) and uses the
  Mcp.LocalConfig shape; it no longer runs bunx/npx --yes by default.
- Meta.txt calibration falls back to a one-line matcher if upstream rewords
  the subagent bullet; documented the event.system amendment in README/SPEC.
- Single version source (src/version.ts), bumped to 1.0.7.
- Tests: host contract, partial hashline anchor mismatch, calibration.
- make host-test / scripts/host-test: loads the plugin into anomalyco/opencode
  at a pinned commit via the upstream plugin fixture.
- CI workflow: check, accept, build, and the real-host test on every PR.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012AuVk4nEvBXaTjs4G6wdW4
2026-10-16 14:58:42 +00:00

26 lines
573 B
Makefile

.PHONY: check test accept host-test
check:
bun run check
bun test
test:
bun test
accept:
@if [ -z "$(WAVE)" ]; then \
bash scripts/accept/wave-1.sh && \
bash scripts/accept/wave-2.sh && \
bash scripts/accept/wave-3.sh && \
bash scripts/accept/wave-4.sh && \
bash scripts/accept/wave-5.sh && \
bash scripts/accept/wave-6.sh && \
bash scripts/accept/wave-7.sh; \
else \
bash scripts/accept/wave-$(WAVE).sh; \
fi
# Load the plugin into a real OpenCode V2 host (clones anomalyco/opencode at a pinned commit).
host-test:
bash scripts/host-test/run.sh