mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
hooks: add rust-owned schema fixtures
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"additionalProperties": false,
|
||||
"definitions": {
|
||||
"NullableString": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"cwd": {
|
||||
"type": "string"
|
||||
},
|
||||
"hook_event_name": {
|
||||
"const": "Stop",
|
||||
"type": "string"
|
||||
},
|
||||
"last_assistant_message": {
|
||||
"$ref": "#/definitions/NullableString"
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
},
|
||||
"permission_mode": {
|
||||
"enum": [
|
||||
"default",
|
||||
"acceptEdits",
|
||||
"plan",
|
||||
"dontAsk",
|
||||
"bypassPermissions"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"session_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"stop_hook_active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"transcript_path": {
|
||||
"$ref": "#/definitions/NullableString"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"cwd",
|
||||
"hook_event_name",
|
||||
"last_assistant_message",
|
||||
"model",
|
||||
"permission_mode",
|
||||
"session_id",
|
||||
"stop_hook_active",
|
||||
"transcript_path"
|
||||
],
|
||||
"title": "stop.command.input",
|
||||
"type": "object"
|
||||
}
|
||||
Reference in New Issue
Block a user