refactor(FN-2162): rename kb-agent identifiers to fn-agent

- Rename core loader, dashboard server chat/planning routes, and frontend agent IDs/storage keys from kb-agent to fn-agent naming
- Update dashboard hooks and components (agent list, chat view, quick chat) to use the new fn agent key prefixes consistently
- Refresh engine, dashboard, core, and CLI tests/mocks to remove remaining kb-agent route and temp prefix references
- Update storage/gap-analysis docs to reflect fn agent key names and add a @gsxdsm/fusion patch changeset for the rename
This commit is contained in:
Fusion
2026-04-19 19:40:10 -07:00
committed by gsxdsm
parent 0aa1360a18
commit 0b9bf62a2a
51 changed files with 878 additions and 873 deletions

View File

@@ -2,7 +2,7 @@ import { act, renderHook, waitFor } from "@testing-library/react";
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { ChatSession } from "@fusion/core";
import * as apiModule from "../../api";
import { KB_AGENT_ID, useQuickChat } from "../useQuickChat";
import { FN_AGENT_ID, useQuickChat } from "../useQuickChat";
vi.mock("../../api", () => ({
fetchChatSessions: vi.fn(),
@@ -74,7 +74,7 @@ describe("useQuickChat", () => {
await waitFor(() => {
expect(mockCreateChatSession).toHaveBeenCalledWith(
{
agentId: KB_AGENT_ID,
agentId: FN_AGENT_ID,
modelProvider: "anthropic",
modelId: "claude-sonnet-4-5",
},
@@ -112,7 +112,7 @@ describe("useQuickChat", () => {
await waitFor(() => {
expect(mockCreateChatSession).toHaveBeenCalledWith(
{
agentId: KB_AGENT_ID,
agentId: FN_AGENT_ID,
modelProvider: "openai",
modelId: "gpt-4o",
},