- adapters/opencode/adapter.sh: replace python3 template substitution with
pure bash (while-read loop with case matching), removing python3 dependency
- adapters/lib.sh: should_include now falls back to plain YAML key read for
files without frontmatter delimiters (fixes hook .yaml exclude: support)
- Add tests/regression/run.sh that builds dist/claude-code and compares
against snapshot, excluding runtime-only artifacts (.mbifc-manifest,
.mcp.json, .claude-plugin/plugin.json)
- Fix adapters/lib.sh agent_body: preserve '---' section dividers in body
(awk now only skips '---' while still inside frontmatter, fm < 2)
- Fix adapters/claude-code/adapter.sh: change 'read' capability to expand
to only 'Read', appending 'Glob, Grep' at end of tools list to match
snapshot ordering
- Update snapshot to reflect intentional refactor changes: hook JSON schema
(.args.* instead of .tool_input.*), wrapper scripts, settings.json with
wrapper paths, and consistent tool ordering for postman/sorter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
build: add adapters/lib.sh skeleton with vocabulary constants
test: bash test runner for adapter helpers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
build(adapters): parse_frontmatter helper with tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
build(adapters): parse_capabilities helper with tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
build(adapters): should_include helper with tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
build(adapters): parse_hook_yaml helper with tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
build(adapters): agent_body helper with tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
build(adapters): enumerate_agents and enumerate_hooks helpers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>