{ "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "AbsolutePathBuf": { "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", "type": "string" }, "AppSummary": { "description": "EXPERIMENTAL - app metadata summary for plugin responses. ChatGPT apps are never available in aKode, so plugin responses always carry empty lists of this type.", "properties": { "category": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "id": { "type": "string" }, "installUrl": { "type": [ "string", "null" ] }, "name": { "type": "string" } }, "required": [ "id", "name" ], "type": "object" }, "HookEventName": { "enum": [ "preModelRequest", "postModelRequest", "preToolUse", "permissionRequest", "postToolUse", "preCompact", "postCompact", "sessionStart", "sessionEnd", "userPromptSubmit", "subagentStart", "subagentStop", "stop", "interrupt" ], "type": "string" }, "LegacyAppPathString": { "type": "string" }, "PluginAuthPolicy": { "enum": [ "ON_INSTALL", "ON_USE" ], "type": "string" }, "PluginDetail": { "properties": { "apps": { "items": { "$ref": "#/definitions/AppSummary" }, "type": "array" }, "description": { "type": [ "string", "null" ] }, "hooks": { "items": { "$ref": "#/definitions/PluginHookSummary" }, "type": "array" }, "marketplaceName": { "type": "string" }, "marketplacePath": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ] }, "mcpServers": { "items": { "type": "string" }, "type": "array" }, "onboardingSkill": { "anyOf": [ { "$ref": "#/definitions/SkillSummary" }, { "type": "null" } ], "default": null, "description": "The declared onboarding skill, when the plugin and visible skill are enabled." }, "skills": { "items": { "$ref": "#/definitions/SkillSummary" }, "type": "array" }, "summary": { "$ref": "#/definitions/PluginSummary" } }, "required": [ "apps", "hooks", "marketplaceName", "mcpServers", "skills", "summary" ], "type": "object" }, "PluginHookSummary": { "properties": { "eventName": { "$ref": "#/definitions/HookEventName" }, "key": { "type": "string" } }, "required": [ "eventName", "key" ], "type": "object" }, "PluginInstallPolicy": { "enum": [ "NOT_AVAILABLE", "AVAILABLE", "INSTALLED_BY_DEFAULT" ], "type": "string" }, "PluginInterface": { "properties": { "brandColor": { "type": [ "string", "null" ] }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "category": { "type": [ "string", "null" ] }, "composerIcon": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ], "description": "Local composer icon path, resolved from the installed plugin package." }, "defaultPrompt": { "description": "Starter prompts for the plugin. Capped at 3 entries with a maximum of 512 characters per entry.", "items": { "type": "string" }, "type": [ "array", "null" ] }, "developerName": { "type": [ "string", "null" ] }, "displayName": { "type": [ "string", "null" ] }, "logo": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ], "description": "Local logo path, resolved from the installed plugin package." }, "logoDark": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ], "description": "Local dark-mode logo path, resolved from the installed plugin package." }, "longDescription": { "type": [ "string", "null" ] }, "privacyPolicyUrl": { "type": [ "string", "null" ] }, "screenshots": { "description": "Local screenshot paths, resolved from the installed plugin package.", "items": { "$ref": "#/definitions/AbsolutePathBuf" }, "type": "array" }, "shortDescription": { "type": [ "string", "null" ] }, "termsOfServiceUrl": { "type": [ "string", "null" ] }, "websiteUrl": { "type": [ "string", "null" ] } }, "required": [ "capabilities", "screenshots" ], "type": "object" }, "PluginSource": { "oneOf": [ { "properties": { "path": { "$ref": "#/definitions/AbsolutePathBuf" }, "type": { "enum": [ "local" ], "title": "LocalPluginSourceType", "type": "string" } }, "required": [ "path", "type" ], "title": "LocalPluginSource", "type": "object" }, { "properties": { "path": { "type": [ "string", "null" ] }, "refName": { "type": [ "string", "null" ] }, "sha": { "type": [ "string", "null" ] }, "type": { "enum": [ "git" ], "title": "GitPluginSourceType", "type": "string" }, "url": { "type": "string" } }, "required": [ "type", "url" ], "title": "GitPluginSource", "type": "object" }, { "properties": { "package": { "type": "string" }, "registry": { "description": "Optional HTTPS registry URL. Authentication stays in the user's npm config.", "type": [ "string", "null" ] }, "type": { "enum": [ "npm" ], "title": "NpmPluginSourceType", "type": "string" }, "version": { "description": "Optional npm version or version range.", "type": [ "string", "null" ] } }, "required": [ "package", "type" ], "title": "NpmPluginSource", "type": "object" } ] }, "PluginSummary": { "properties": { "authPolicy": { "$ref": "#/definitions/PluginAuthPolicy" }, "enabled": { "type": "boolean" }, "id": { "type": "string" }, "installPolicy": { "$ref": "#/definitions/PluginInstallPolicy" }, "installed": { "type": "boolean" }, "interface": { "anyOf": [ { "$ref": "#/definitions/PluginInterface" }, { "type": "null" } ] }, "keywords": { "default": [], "items": { "type": "string" }, "type": "array" }, "localVersion": { "default": null, "description": "Version of the locally materialized plugin package when available.", "type": [ "string", "null" ] }, "name": { "type": "string" }, "source": { "$ref": "#/definitions/PluginSource" } }, "required": [ "authPolicy", "enabled", "id", "installPolicy", "installed", "name", "source" ], "type": "object" }, "SkillInterface": { "properties": { "brandColor": { "type": [ "string", "null" ] }, "defaultPrompt": { "type": [ "string", "null" ] }, "displayName": { "type": [ "string", "null" ] }, "iconLarge": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ] }, "iconSmall": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ] }, "shortDescription": { "type": [ "string", "null" ] } }, "type": "object" }, "SkillSummary": { "properties": { "description": { "type": "string" }, "enabled": { "type": "boolean" }, "interface": { "anyOf": [ { "$ref": "#/definitions/SkillInterface" }, { "type": "null" } ] }, "name": { "type": "string" }, "path": { "anyOf": [ { "$ref": "#/definitions/LegacyAppPathString" }, { "type": "null" } ] }, "shortDescription": { "type": [ "string", "null" ] } }, "required": [ "description", "enabled", "name" ], "type": "object" } }, "properties": { "plugin": { "$ref": "#/definitions/PluginDetail" } }, "required": [ "plugin" ], "title": "PluginReadResponse", "type": "object" }