fix: align Codex hook sources
This commit is contained in:
1 parent
cb187de88e
commit
91b4251fea
3 files changed
+103
No files matched your search
@@ -110,6 +110,57 @@
|
||||
"mechanism": "exit_code_2",
|
||||
"failure_mode": "fail_open"
|
||||
},
|
||||
"contract_variants": [
|
||||
{
|
||||
"id": "inlinetoml",
|
||||
"release_channel": "stable",
|
||||
"activation": "Hooks configured inline in an active Codex config.toml or managed requirements.toml layer",
|
||||
"config_format": "toml",
|
||||
"config_paths": [
|
||||
"~/.codex/config.toml",
|
||||
".codex/config.toml",
|
||||
"requirements.toml"
|
||||
],
|
||||
"events": {
|
||||
"before_tool": "PreToolUse",
|
||||
"after_tool": "PostToolUse"
|
||||
},
|
||||
"event_fields": {
|
||||
"name": "tool_name",
|
||||
"input": "tool_input",
|
||||
"session": "session_id"
|
||||
},
|
||||
"blocking": {
|
||||
"mechanism": "exit_code_2",
|
||||
"failure_mode": "fail_open"
|
||||
},
|
||||
"source_url": "https://learn.chatgpt.com/docs/hooks"
|
||||
},
|
||||
{
|
||||
"id": "pluginbundle",
|
||||
"release_channel": "stable",
|
||||
"activation": "An enabled Codex plugin supplies hooks through its manifest or default hooks file",
|
||||
"config_format": "plugin",
|
||||
"config_paths": [
|
||||
".codex-plugin/plugin.json",
|
||||
"hooks/hooks.json"
|
||||
],
|
||||
"events": {
|
||||
"before_tool": "PreToolUse",
|
||||
"after_tool": "PostToolUse"
|
||||
},
|
||||
"event_fields": {
|
||||
"name": "tool_name",
|
||||
"input": "tool_input",
|
||||
"session": "session_id"
|
||||
},
|
||||
"blocking": {
|
||||
"mechanism": "exit_code_2",
|
||||
"failure_mode": "fail_open"
|
||||
},
|
||||
"source_url": "https://learn.chatgpt.com/docs/hooks"
|
||||
}
|
||||
],
|
||||
"adapters": { "node": true, "python": true, "go": true },
|
||||
"delivery_state": "available",
|
||||
"source_url": "https://learn.chatgpt.com/docs/hooks"
|
||||
|
||||
Reference in new issue
Block a user