fix(cline): mirror transactional Node adapter
This commit is contained in:
1 parent
3ca5d701de
commit
4ad139c60a
13 files changed
+1122
-626
No files matched your search
@@ -69,8 +69,37 @@
|
||||
".cline/hooks/"
|
||||
],
|
||||
"events": { "before_tool": "PreToolUse", "after_tool": "PostToolUse" },
|
||||
"event_fields": { "name": "tool_call.name/tool_result.name", "input": "tool_call.input/tool_result.input", "session": "taskId" },
|
||||
"event_fields": {
|
||||
"name": "tool_call.name/preToolUse.toolName/tool_result.name/postToolUse.toolName",
|
||||
"input": "tool_call.input/preToolUse.parameters/tool_result.input/postToolUse.parameters",
|
||||
"session": "taskId",
|
||||
"call_id": "tool_call.id/tool_result.id",
|
||||
"output": "tool_result.output/postToolUse.result",
|
||||
"error": "tool_result.error"
|
||||
},
|
||||
"blocking": { "mechanism": "json_stdout_cancel", "failure_mode": "fail_open" },
|
||||
"contract_variants": [
|
||||
{
|
||||
"id": "idefilehooks",
|
||||
"release_channel": "stable",
|
||||
"activation": "Hooks enabled in Cline IDE settings; Windows uses <HookName>.ps1 and macOS/Linux use executable extensionless files",
|
||||
"config_format": "script",
|
||||
"config_paths": [
|
||||
"--hooks-dir <path>",
|
||||
"~/Documents/Cline/Hooks/",
|
||||
".clinerules/hooks/"
|
||||
],
|
||||
"events": { "before_tool": "PreToolUse", "after_tool": "PostToolUse" },
|
||||
"event_fields": {
|
||||
"name": "preToolUse.toolName/postToolUse.toolName",
|
||||
"input": "preToolUse.parameters/postToolUse.parameters",
|
||||
"session": "taskId",
|
||||
"output": "postToolUse.result"
|
||||
},
|
||||
"blocking": { "mechanism": "json_stdout_cancel", "failure_mode": "fail_open" },
|
||||
"source_url": "https://github.com/cline/cline/blob/main/apps/vscode/src/core/hooks/hook-factory.ts"
|
||||
}
|
||||
],
|
||||
"adapters": { "node": true, "python": true, "go": true },
|
||||
"delivery_state": "available",
|
||||
"source_url": "https://github.com/cline/cline/blob/main/sdk/examples/hooks/README.md"
|
||||
|
||||
Reference in new issue
Block a user