feat(KB-330): rename internal packages from @kb/* to @fusion/*

- Rename @kb/core, @kb/dashboard, @kb/engine to @fusion/* namespace
- Update all import statements across 143+ files to use new package names
- Update workspace dependencies and root package.json references
- Fix bundler configurations (tsup, vite) for new package names
- Update test files and fix typecheck issues
- Add changeset file documenting the package rename
This commit is contained in:
gsxdsm
2026-03-31 13:33:44 -07:00
parent a9e47f8708
commit 3f77d80096
142 changed files with 340 additions and 328 deletions

View File

@@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { renderHook, act } from "@testing-library/react";
import { useBatchBadgeFetch, __resetBatchBadgeStoreForTests } from "../useBatchBadgeFetch";
import * as api from "../../api";
import type { BatchStatusResult } from "@kb/core";
import type { BatchStatusResult } from "@fusion/core";
// Mock the API module
vi.mock("../../api", () => ({

View File

@@ -19,7 +19,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { renderHook, act, waitFor } from "@testing-library/react";
import { useTasks } from "../useTasks";
import * as api from "../../api";
import type { Task, Column } from "@kb/core";
import type { Task, Column } from "@fusion/core";
// Mock the api module
vi.mock("../../api", () => ({

View File

@@ -1,7 +1,7 @@
import { readFileSync } from "node:fs";
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { renderHook, act } from "@testing-library/react";
import { COLOR_THEMES } from "@kb/core";
import { COLOR_THEMES } from "@fusion/core";
import { useTheme, getThemeInitScript } from "../useTheme";
describe("useTheme", () => {

View File

@@ -1,5 +1,5 @@
import { useState, useEffect, useRef, useCallback } from "react";
import type { AgentLogEntry } from "@kb/core";
import type { AgentLogEntry } from "@fusion/core";
import { fetchAgentLogs } from "../api";
export const MAX_LOG_ENTRIES = 500;

View File

@@ -1,5 +1,5 @@
import { useCallback, useEffect, useRef, useSyncExternalStore } from "react";
import type { IssueInfo, PrInfo } from "@kb/core";
import type { IssueInfo, PrInfo } from "@fusion/core";
interface BadgeUpdatedMessage {
type: "badge:updated";

View File

@@ -1,6 +1,6 @@
import { useCallback, useRef, useState } from "react";
import { fetchBatchStatus } from "../api";
import type { BatchStatusResult } from "@kb/core";
import type { BatchStatusResult } from "@fusion/core";
// Module-level store to share batch data across hook instances
const batchBadgeStore = {

View File

@@ -1,5 +1,5 @@
import { useState, useEffect, useRef, useCallback } from "react";
import type { AgentLogEntry } from "@kb/core";
import type { AgentLogEntry } from "@fusion/core";
import { fetchAgentLogs } from "../api";
export const MAX_LOG_ENTRIES = 500;

View File

@@ -1,5 +1,5 @@
import { useState, useEffect, useCallback, useRef } from "react";
import type { Task, Column, TaskCreateInput, MergeResult } from "@kb/core";
import type { Task, Column, TaskCreateInput, MergeResult } from "@fusion/core";
import * as api from "../api";
function normalizeTask(task: Task): Task {

View File

@@ -1,5 +1,5 @@
import { useState, useEffect, useCallback, useLayoutEffect } from "react";
import { COLOR_THEMES, type ThemeMode, type ColorTheme } from "@kb/core";
import { COLOR_THEMES, type ThemeMode, type ColorTheme } from "@fusion/core";
const THEME_MODE_STORAGE_KEY = "kb-dashboard-theme-mode";
const COLOR_THEME_STORAGE_KEY = "kb-dashboard-color-theme";