Chaim Marcus 6b856dbe85 feat: add onWebhook handler for case-status events
Adds the onWebhook lifecycle hook to the definePlugin() call. When
legal-ai POSTs to /webhooks/case-status, the handler finds the linked
Paperclip issue (via plugin state scan), posts a Hebrew status comment,
and wakes the CEO agent on qa_failed. Hoists PluginContext and
CEO_AGENT_IDS to module scope so onWebhook can access them after setup().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 17:16:28 +00:00
Description
Paperclip plugin for Legal AI integration — case management, semantic search, workflow tracking
5.9 MiB
Languages
TypeScript 100%