mirror of
https://github.com/openai/codex.git
synced 2026-05-01 18:06:47 +00:00
Refactor hook config selectors
This commit is contained in:
@@ -1447,44 +1447,90 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"HookConfigSource": {
|
||||
"enum": [
|
||||
"plugin",
|
||||
"user",
|
||||
"project"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"HooksConfigWriteParams": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
"oneOf": [
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"pluginId": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"enum": [
|
||||
"plugin"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enabled",
|
||||
"key",
|
||||
"pluginId",
|
||||
"source"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"enum": [
|
||||
"user"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"sourcePath": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enabled",
|
||||
"key",
|
||||
"source",
|
||||
"sourcePath"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"pluginId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"source": {
|
||||
"$ref": "#/definitions/HookConfigSource"
|
||||
},
|
||||
"sourcePath": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"enum": [
|
||||
"project"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"sourcePath": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enabled",
|
||||
"key",
|
||||
"source",
|
||||
"sourcePath"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enabled",
|
||||
"key",
|
||||
"source"
|
||||
],
|
||||
"type": "object"
|
||||
]
|
||||
},
|
||||
"HooksListParams": {
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user