fix: sync bundled skills across profiles (#926)

This commit is contained in:
ekko
2026-05-22 10:41:14 +08:00
committed by GitHub
parent 4b759c4d8a
commit f90e79fd2f
5 changed files with 419 additions and 120 deletions
+250 -108
View File
@@ -36,10 +36,6 @@
"name": "Files",
"description": "Hermes file browser"
},
{
"name": "Gateways",
"description": "Gateway process management"
},
{
"name": "Group Chat",
"description": "Group chat management"
@@ -875,6 +871,53 @@
}
}
},
"/api/hermes/custom-model": {
"put": {
"tags": [
"Models"
],
"summary": "Update custom-model",
"description": "PUT /api/hermes/custom-model",
"operationId": "addCustomModel",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
},
"delete": {
"tags": [
"Models"
],
"summary": "Delete custom-model",
"description": "DELETE /api/hermes/custom-model",
"operationId": "removeCustomModel",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/download": {
"get": {
"tags": [
@@ -1132,110 +1175,6 @@
}
}
},
"/api/hermes/gateways": {
"get": {
"tags": [
"Gateways"
],
"summary": "List gateways",
"description": "GET /api/hermes/gateways",
"operationId": "list",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "Not found"
}
}
}
},
"/api/hermes/gateways/{name}/health": {
"get": {
"tags": [
"Gateways"
],
"summary": "Get health",
"description": "GET /api/hermes/gateways/:name/health",
"operationId": "health",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "Not found"
}
}
}
},
"/api/hermes/gateways/{name}/start": {
"post": {
"tags": [
"Gateways"
],
"summary": "Create start",
"description": "POST /api/hermes/gateways/:name/start",
"operationId": "start",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/gateways/{name}/stop": {
"post": {
"tags": [
"Gateways"
],
"summary": "Create stop",
"description": "POST /api/hermes/gateways/:name/stop",
"operationId": "stop",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/group-chat/rooms": {
"post": {
"tags": [
@@ -2117,6 +2056,32 @@
}
}
},
"/api/hermes/profiles/runtime-statuses": {
"get": {
"tags": [
"Profiles"
],
"summary": "Get runtime-statuses",
"description": "GET /api/hermes/profiles/runtime-statuses",
"operationId": "runtimeStatuses",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "Not found"
}
}
}
},
"/api/hermes/profiles/{name}": {
"get": {
"tags": [
@@ -2164,6 +2129,53 @@
}
}
},
"/api/hermes/profiles/{name}/avatar": {
"put": {
"tags": [
"Profiles"
],
"summary": "Update avatar",
"description": "PUT /api/hermes/profiles/:name/avatar",
"operationId": "updateAvatar",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
},
"delete": {
"tags": [
"Profiles"
],
"summary": "Delete avatar",
"description": "DELETE /api/hermes/profiles/:name/avatar",
"operationId": "deleteAvatar",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/profiles/{name}/export": {
"post": {
"tags": [
@@ -2190,6 +2202,32 @@
}
}
},
"/api/hermes/profiles/{name}/gateway/restart": {
"post": {
"tags": [
"Profiles"
],
"summary": "Create restart",
"description": "POST /api/hermes/profiles/:name/gateway/restart",
"operationId": "restartGatewayForProfile",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/profiles/{name}/rename": {
"post": {
"tags": [
@@ -2216,6 +2254,84 @@
}
}
},
"/api/hermes/profiles/{name}/restart": {
"post": {
"tags": [
"Profiles"
],
"summary": "Create restart",
"description": "POST /api/hermes/profiles/:name/restart",
"operationId": "restartProfileRuntime",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/profiles/{name}/runtime-status": {
"get": {
"tags": [
"Profiles"
],
"summary": "Get runtime-status",
"description": "GET /api/hermes/profiles/:name/runtime-status",
"operationId": "runtimeStatus",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "Not found"
}
}
}
},
"/api/hermes/provider-models": {
"post": {
"tags": [
"Models"
],
"summary": "Create provider-models",
"description": "POST /api/hermes/provider-models",
"operationId": "fetchProviderModelList",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/search/sessions": {
"get": {
"tags": [
@@ -2575,6 +2691,32 @@
}
}
},
"/api/hermes/sessions/{id}/model": {
"post": {
"tags": [
"Sessions"
],
"summary": "Create model",
"description": "POST /api/hermes/sessions/:id/model",
"operationId": "setModel",
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Success"
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
}
}
},
"/api/hermes/sessions/{id}/rename": {
"post": {
"tags": [