gsxdsm
f998fe3ffc
FN-7397: pass plugin context to lifecycle hooks
Ensure task lifecycle plugin hooks receive a PluginContext when fired through runtime event bridges.
- Append the plugin context for task-created, task-moved, and task-completed hooks when callers only provide raw lifecycle arguments.
- Preserve existing explicit-context hook calls and add coverage for loader and runner lifecycle dispatch paths.
- Cover Compound Engineering sync completion handling so taskStore is available in onTaskCompleted.
Files changed:
.changeset/fn-7397-plugin-hook-context.md | 7 +++
packages/core/src/__tests__/plugin-loader.test.ts | 52 +++++++++++++++++++++-
packages/core/src/plugin-loader.ts | 34 +++++++++++++-
.../engine/src/__tests__/plugin-runner.test.ts | 25 ++++++++++-
.../src/__tests__/sync.test.ts | 29 +++++++++++-
5 files changed, 141 insertions(+), 6 deletions(-)
Fusion-Task-Id: FN-7397
Fusion-Task-Lineage: 7661714c-cf2a-4f4d-bec1-fc6bc11c0613
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-01 15:39:34 -07:00
..
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 15:39:34 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-06-08 15:19:27 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-07-01 00:47:09 -07:00
2026-04-09 20:19:43 -07:00