Add plugin hook enablement config APIs

This commit is contained in:
Abhinav Vedmala
2026-04-26 14:48:00 -07:00
parent 803c16f2d3
commit 3de8182aa9
36 changed files with 1838 additions and 19 deletions

View File

@@ -1447,6 +1447,52 @@
],
"type": "object"
},
"HookConfigSource": {
"enum": [
"plugin"
],
"type": "string"
},
"HooksConfigWriteParams": {
"properties": {
"enabled": {
"type": "boolean"
},
"key": {
"type": "string"
},
"pluginId": {
"type": [
"string",
"null"
]
},
"source": {
"$ref": "#/definitions/HookConfigSource"
}
},
"required": [
"enabled",
"key",
"source"
],
"type": "object"
},
"HooksListParams": {
"properties": {
"cwds": {
"description": "When omitted or empty, defaults to the current session working directory.",
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
}
},
"type": "object"
},
"ImageDetail": {
"enum": [
"auto",
@@ -5336,6 +5382,54 @@
"title": "Skills/config/writeRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"hooks/list"
],
"title": "Hooks/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/HooksListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Hooks/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"hooks/config/write"
],
"title": "Hooks/config/writeRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/HooksConfigWriteParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Hooks/config/writeRequest",
"type": "object"
},
{
"properties": {
"id": {