feat(FN-1800): merge fusion/fn-1800
This commit is contained in:
@@ -104,7 +104,7 @@ export interface PluginLifecyclePayload {
|
||||
function mapSourceEventToTransition(
|
||||
sourceEvent: string,
|
||||
plugin: PluginInstallation,
|
||||
previousState?: PluginState,
|
||||
_previousState?: PluginState,
|
||||
): PluginLifecycleTransition {
|
||||
switch (sourceEvent) {
|
||||
case "plugin:registered":
|
||||
@@ -198,7 +198,7 @@ export function createSSE(
|
||||
};
|
||||
|
||||
// --- Event handler definitions ---
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any -- EventEmitter handlers receive untyped event data */
|
||||
const onCreated = (task: any) => {
|
||||
send(`event: task:created\ndata: ${JSON.stringify(stripTaskListHeavyFields(task))}\n\n`);
|
||||
};
|
||||
@@ -287,6 +287,8 @@ export function createSSE(
|
||||
send(`event: ai_session:deleted\ndata: ${JSON.stringify(data)}\n\n`);
|
||||
};
|
||||
|
||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||
|
||||
// --- Unified plugin lifecycle handler ---
|
||||
// Instead of emitting individual plugin events, we normalize all plugin
|
||||
// lifecycle changes into a single `plugin:lifecycle` SSE event with
|
||||
|
||||
Reference in New Issue
Block a user