Fix: remove claude-specific reference from hooks.

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
This commit is contained in:
nunziati
2026-04-10 17:26:20 +00:00
parent bb5ef7c489
commit 0e66ce3efa
12 changed files with 55 additions and 27 deletions

View File

@@ -43,6 +43,8 @@ function buildPayload(eventName, input) {
session_id: (input && input.sessionId) || "",
cwd: (input && input.cwd) || process.cwd(),
framework: "opencode",
platform_dir: ".opencode",
dispatcher_name: "AGENTS.md",
};
}