From 9633617e26f6cfd30368431efc5d71120a3d1fbd Mon Sep 17 00:00:00 2001 From: Chaim Marcus Date: Sat, 16 May 2026 17:29:56 +0000 Subject: [PATCH] fix: declare case-status webhook endpoint in manifest Add webhooks[] array to plugin.json and manifest.ts with the 'case-status' endpointKey. Without this declaration, Paperclip registers 0 webhooks even when onWebhook() is implemented, so POST /api/plugins/marcusgroup.legal-ai/webhooks/case-status would return 501 and never reach the handler. Co-Authored-By: Claude Sonnet 4.6 --- plugin.json | 7 +++++++ src/manifest.ts | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/plugin.json b/plugin.json index 2ae32c1..893c6ea 100644 --- a/plugin.json +++ b/plugin.json @@ -64,5 +64,12 @@ "description": "סנכרון סטטוס בין legal-ai ל-Paperclip כל 15 דקות", "schedule": "*/15 * * * *" } + ], + "webhooks": [ + { + "endpointKey": "case-status", + "displayName": "עדכון סטטוס תיק", + "description": "מקבל עדכוני סטטוס מ-legal-ai ומפרסם תגובה על ה-issue המקושר" + } ] } diff --git a/src/manifest.ts b/src/manifest.ts index 31bba0c..53daeb7 100644 --- a/src/manifest.ts +++ b/src/manifest.ts @@ -159,4 +159,12 @@ export default { schedule: "*/15 * * * *", }, ], + webhooks: [ + { + endpointKey: "case-status", + displayName: "עדכון סטטוס תיק", + description: + "מקבל עדכוני סטטוס מ-legal-ai ומפרסם תגובה על ה-issue המקושר", + }, + ], };