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

@@ -12,7 +12,7 @@ import {
writeWorkspaceFile,
MAX_FILE_SIZE,
} from "../file-service.js";
import type { TaskStore } from "@kb/core";
import type { TaskStore } from "@fusion/core";
// Mock node:fs/promises
const mockReaddir = vi.fn();

View File

@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { afterEach, beforeEach, describe, expect, it, vi, type Mock } from "vitest";
import { GitHubRateLimiter, GitHubPollingService, githubPoller, githubRateLimiter } from "../github-poll.js";
import type { TaskStore } from "@kb/core";
import type { TaskStore } from "@fusion/core";
// Mock the GitHubClient
const mockGetBadgeStatusesBatch = vi.fn();
@@ -98,9 +98,9 @@ describe("GitHubRateLimiter", () => {
describe("GitHubPollingService", () => {
let service: GitHubPollingService;
let mockStore: TaskStore;
let mockUpdatePrInfo: vi.Mock;
let mockUpdateIssueInfo: vi.Mock;
let mockGetTask: vi.Mock;
let mockUpdatePrInfo: Mock;
let mockUpdateIssueInfo: Mock;
let mockGetTask: Mock;
beforeEach(() => {
vi.useFakeTimers();

View File

@@ -1,7 +1,7 @@
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { EventEmitter, once } from "node:events";
import http from "node:http";
import type { Task, TaskStore, PrInfo, IssueInfo } from "@kb/core";
import type { Task, TaskStore, PrInfo, IssueInfo } from "@fusion/core";
import { createServer } from "../server.js";
import { getGitHubAppConfig } from "../github-webhooks.js";

View File

@@ -1,7 +1,7 @@
import { EventEmitter, once } from "node:events";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { WebSocket } from "ws";
import type { Task } from "@kb/core";
import type { Task } from "@fusion/core";
import { createServer } from "../server.js";
import { WebSocketManager } from "../websocket.js";
import { InMemoryBadgePubSub, type BadgePubSub } from "../badge-pubsub.js";