feat(FN-1800): merge fusion/fn-1800

This commit is contained in:
gsxdsm
2026-04-15 04:45:56 -07:00
parent 3f61d6433d
commit 14f7ab559d
15 changed files with 175 additions and 146 deletions

View File

@@ -386,17 +386,6 @@ function extractPartsFromChannel(channel: string): { taskId: string | null; proj
return { projectId: null, taskId: null };
}
/**
* Extract taskId from any badge channel key (without knowing the projectId).
* @deprecated Use extractPartsFromChannel instead
*/
function extractTaskIdFromChannel(channel: string): string | null {
// Channel format: badge:{projectId}:{taskId}
// We need to find the taskId after the second colon
const match = channel.match(/^badge:[^:]+:(.+)$/);
return match ? match[1] : null;
}
function parseClientMessage(raw: WebSocket.RawData):
| { ok: true; value: BadgeClientMessage }
| { ok: false; error: string } {