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:
2026-08-06 15:46:05 +02:00
parent fe50219493
commit d1c3c00b4d
3 changed files with 40 additions and 2 deletions

View File

@ -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",