build: add platform_dir and dispatcher_name to all hook wrapper/plugin templates
feat(hooks): platform-aware path checks using platform_dir and dispatcher_name from JSON input
test: update regression snapshot for platform-aware hook wrappers and scripts
fix: restore adapter_build() contract, revert function renames
Both adapters now export adapter_build() and adapter_translate_*() as
the uniform public contract. scripts/build.sh sources one adapter and
calls adapter_build uniformly. Private helpers (_oc_*) and vocabulary
tables (cc_capability_to_tools, oc_capability_to_permission, etc.)
retain their prefixes. CC regression and OC unit tests all pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(tests): restore test_oc_ prefix on adapter_build end-to-end test
- 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(adapters): claude-code adapter skeleton with capability/event tables
build(claude-code): adapter_translate_dispatcher with test
build(claude-code): adapter_translate_references with test
build(claude-code): adapter_translate_skills with tests
build(claude-code): adapter_translate_agents with capability→tools mapping
build(claude-code): hook wrapper template (CC native → neutral schema)
build(claude-code): adapter_translate_hooks with wrapper generation
build(claude-code): adapter_translate_mcp with hand-rolled YAML parser
build(claude-code): adapter_finalize and complete adapter_build wiring
build: scripts/build.sh dispatches to per-framework adapter
Also fix adapter_translate_hooks and adapter_translate_agents to use
while-read loops (avoiding word-splitting on paths with spaces) and
guard grep calls with || true to survive set -eo pipefail when hooks
have no match-tool field. Remove scripts/build.sh from .gitignore.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>