feat(manifest): un plugin peut contribuer des commandes slash via callback — #165 (QA verte)
Étend le manifeste et la validation SDK : un plugin déclare des commandes slash (contributes.slashCommands) adossées à une callback (command id enregistré via ctx.commands.registerCommand). Métadonnées UI exposées : name, shortDescription, requiresConfirmation, when. Exemple hello-plugin mis à jour avec une commande /hello. Ces commandes transitent ensuite par le registry/contrat unifié (#162). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -32,6 +32,14 @@
|
||||
"order": 10
|
||||
}
|
||||
],
|
||||
"slashCommands": [
|
||||
{
|
||||
"name": "/hello",
|
||||
"shortDescription": "Run the hello-plugin callback",
|
||||
"command": "hello-plugin",
|
||||
"requiresConfirmation": false
|
||||
}
|
||||
],
|
||||
"layouts": [
|
||||
{
|
||||
"type": "hello-plugin.hello-world",
|
||||
|
||||
Reference in New Issue
Block a user