refactor(FN-1317): rename remaining kb references to fn

- Update executor, triage, and merger prompt strings to identify the product as "fn"
- Align branch/worktree documentation examples with fusion/fn-* naming conventions
- Rename dashboard websocket attachment guard from __kbWebSocketsAttached to __fnWebSocketsAttached
- Refresh engine tests, dashboard utility comments, and TUI header text to remove stale kb wording
This commit is contained in:
gsxdsm
2026-04-08 14:38:36 -07:00
parent 9ad0b8be24
commit 1d57fb4b50
12 changed files with 23 additions and 23 deletions

View File

@@ -81,7 +81,7 @@ type DashboardExpressApp = ReturnType<typeof express> & {
terminalWsServer?: WebSocketServer | null;
badgeWsServer?: WebSocketServer | null;
badgeWsManager?: WebSocketManager | null;
__kbWebSocketsAttached?: boolean;
__fnWebSocketsAttached?: boolean;
};
function shouldForceLocalhostForTests(): boolean {
@@ -433,7 +433,7 @@ export function createServer(store: TaskStore, options?: ServerOptions): ReturnT
dashboardApp.terminalWsServer = null;
dashboardApp.badgeWsServer = null;
dashboardApp.badgeWsManager = null;
dashboardApp.__kbWebSocketsAttached = false;
dashboardApp.__fnWebSocketsAttached = false;
const originalListen = dashboardApp.listen.bind(dashboardApp);
dashboardApp.listen = ((...args: Parameters<typeof dashboardApp.listen>) => {
@@ -444,8 +444,8 @@ export function createServer(store: TaskStore, options?: ServerOptions): ReturnT
aiSessionStore.stopScheduledCleanup();
});
if (!dashboardApp.__kbWebSocketsAttached) {
dashboardApp.__kbWebSocketsAttached = true;
if (!dashboardApp.__fnWebSocketsAttached) {
dashboardApp.__fnWebSocketsAttached = true;
setupTerminalWebSocket(dashboardApp, server);
setupBadgeWebSocket(dashboardApp, server, store, options);
}
@@ -796,7 +796,7 @@ export function setupBadgeWebSocket(
dashboardApp.terminalWsServer = null;
dashboardApp.badgeWsServer = null;
dashboardApp.badgeWsManager = null;
dashboardApp.__kbWebSocketsAttached = false;
dashboardApp.__fnWebSocketsAttached = false;
});
}