fix(FN-3794): pass unload context and isolate WhatsApp sessions per project

- Extend PluginOnUnload to receive runtime context and wire ctx through plugin-loader unload hooks
- Scope WhatsApp chat plugin connections by project root to avoid cross-project session leakage
- Update plugin authoring docs and add a patch changeset for @runfusion/fusion
- Align plugin test suites across WhatsApp and example/runtime plugins with the new onUnload context contract

Fusion-Task-Id: FN-3794
This commit is contained in:
Fusion
2026-05-09 00:50:47 -07:00
committed by gsxdsm
parent b05d011c67
commit c744ef83c2
11 changed files with 166 additions and 18 deletions

View File

@@ -12,7 +12,7 @@
},
"scripts": {
"build": "tsc",
"test": "vitest run --silent=passed-only --reporter=dot"
"test": "pnpm dlx vitest run --silent=passed-only --reporter=dot"
},
"dependencies": {
"@fusion/core": "workspace:*",