Files
makelore/resources/coding-plugins/game-audio/com.makelore/capability.json

546 lines
14 KiB
JSON

{
"schemaVersion": 2,
"pluginId": "makelore.game-audio",
"contractVersion": 1,
"scope": "project",
"runtime": {
"kind": "platform_hosted",
"protocol": "makelore-hosted.v1"
},
"skills": [
{
"id": "game-audio",
"entry": "../skills/game-audio/SKILL.md",
"grants": [
"game-audio.music",
"game-audio.sound",
"game-audio.control"
]
}
],
"tools": [
{
"name": "game_music_generate",
"label": "生成游戏音乐",
"description": "Generate audio after Token Point confirmation; internally wait and save all outputs to the original project.",
"capabilityId": "game-audio.music",
"operation": "generate",
"roles": [
"parent"
],
"mutation": "write",
"projectWriteLease": false,
"permissions": [
"hosted.game-audio.game-music-generate"
],
"executionMode": "job",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"prompt",
"confirmed"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"confirmed": {
"type": "boolean"
},
"referencePaths": {
"type": "array",
"maxItems": 4,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
},
"outputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"logicalOperationId",
"providerStatus",
"deliveryStatus",
"outputCount",
"files",
"phase",
"projectId"
],
"properties": {
"executionId": {
"type": "string",
"maxLength": 36
},
"logicalOperationId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"providerStatus": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"deliveryStatus": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"outputCount": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"files": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"index",
"path",
"bytes",
"mimeType"
],
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9
},
"path": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"bytes": {
"type": "integer",
"minimum": 1,
"maximum": 33554432
},
"mimeType": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
}
}
},
"phase": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"progressPercent": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"errorCode": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
}
},
{
"name": "game_music_preview",
"label": "生成音乐短预览",
"description": "Generate audio after Token Point confirmation; internally wait and save all outputs to the original project.",
"capabilityId": "game-audio.music",
"operation": "preview",
"roles": [
"parent"
],
"mutation": "write",
"projectWriteLease": false,
"permissions": [
"hosted.game-audio.game-music-preview"
],
"executionMode": "job",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"prompt",
"confirmed"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"confirmed": {
"type": "boolean"
},
"referencePaths": {
"type": "array",
"maxItems": 4,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
},
"outputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"logicalOperationId",
"providerStatus",
"deliveryStatus",
"outputCount",
"files",
"phase",
"projectId"
],
"properties": {
"executionId": {
"type": "string",
"maxLength": 36
},
"logicalOperationId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"providerStatus": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"deliveryStatus": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"outputCount": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"files": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"index",
"path",
"bytes",
"mimeType"
],
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9
},
"path": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"bytes": {
"type": "integer",
"minimum": 1,
"maximum": 33554432
},
"mimeType": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
}
}
},
"phase": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"progressPercent": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"errorCode": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
}
},
{
"name": "game_sound_generate",
"label": "生成游戏音效",
"description": "Generate audio after Token Point confirmation; internally wait and save all outputs to the original project.",
"capabilityId": "game-audio.sound",
"operation": "generate",
"roles": [
"parent"
],
"mutation": "write",
"projectWriteLease": false,
"permissions": [
"hosted.game-audio.game-sound-generate"
],
"executionMode": "job",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"prompt",
"confirmed"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"confirmed": {
"type": "boolean"
},
"mode": {
"type": "string",
"minLength": 1,
"maxLength": 16
},
"duration": {
"type": "number",
"minimum": 0.5,
"maximum": 10
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"loop": {
"type": "boolean"
}
}
},
"outputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"logicalOperationId",
"providerStatus",
"deliveryStatus",
"outputCount",
"files",
"phase",
"projectId"
],
"properties": {
"executionId": {
"type": "string",
"maxLength": 36
},
"logicalOperationId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"providerStatus": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"deliveryStatus": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"outputCount": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"files": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"index",
"path",
"bytes",
"mimeType"
],
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9
},
"path": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"bytes": {
"type": "integer",
"minimum": 1,
"maximum": 33554432
},
"mimeType": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
}
}
},
"phase": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"progressPercent": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"errorCode": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
}
},
{
"name": "game_audio_cancel",
"label": "取消游戏音频任务",
"description": "Cancel only an existing audio execution when the user requests it.",
"capabilityId": "game-audio.control",
"operation": "cancel",
"roles": [
"parent"
],
"mutation": "write",
"projectWriteLease": false,
"permissions": [
"hosted.game-audio.game-audio-cancel"
],
"executionMode": "synchronous",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"executionId"
],
"properties": {
"executionId": {
"type": "string",
"minLength": 1,
"maxLength": 36
}
}
},
"outputSchema": {
"type": "object",
"additionalProperties": false,
"required": [
"executionId",
"providerStatus",
"outputCount",
"generationBilling"
],
"properties": {
"executionId": {
"type": "string",
"minLength": 1,
"maxLength": 36
},
"providerStatus": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"outputCount": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"generationBilling": {
"type": "object",
"additionalProperties": false,
"required": [
"mode",
"status",
"reserved_points",
"usage_amount",
"unit"
],
"properties": {
"mode": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"status": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"reserved_points": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"actual_points": {
"type": "string",
"maxLength": 64
},
"usage_amount": {
"type": "integer",
"minimum": 0,
"maximum": 200
},
"unit": {
"type": "string",
"minLength": 1,
"maxLength": 32
}
}
}
}
}
}
]
}