Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

rm unused

Julius Marminge9c070efface2
diff --git a/apps/server/src/orchestration/engine.ts b/apps/server/src/orchestration/engine.ts
index fda67ce71..1f66c21d0 100644
--- a/apps/server/src/orchestration/engine.ts
+++ b/apps/server/src/orchestration/engine.ts
@@ -20,7 +20,6 @@ import {
import { createLogger } from "../logger";
import type { OrchestrationEventRepositoryShape } from "../persistence/Services/OrchestrationEvents";
import { createEmptyReadModel, reduceEvent } from "./reducer";
-import { UI_ENTITY_CONTRACTS } from "./uiContractInventory";
type CommandEnvelope = {
command: OrchestrationCommand;
@@ -245,7 +244,6 @@ export class OrchestrationEngine {
this.workerFiber = Runtime.runFork(this.runtime)(worker);
this.logger.info("orchestration engine started", {
sequence: this.readModel.sequence,
- contracts: UI_ENTITY_CONTRACTS.length,
});
}
diff --git a/apps/server/src/orchestration/uiContractInventory.ts b/apps/server/src/orchestration/uiContractInventory.ts
deleted file mode 100644
index eb0dbed85..000000000
--- a/apps/server/src/orchestration/uiContractInventory.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-export interface UiEntityContract {
- entity: string;
- requiredFields: string[];
- consumedBy: string[];
-}
-
-// Explicit UI inventory used to keep server read models aligned
-// with what the current frontend renders.
-export const UI_ENTITY_CONTRACTS: UiEntityContract[] = [
- {
- entity: "Thread",
- requiredFields: [
- "id",
- "projectId",
- "title",
- "model",
- "branch",
- "worktreePath",
- "createdAt",
- "latestTurnId",
- "latestTurnStartedAt",
- "latestTurnCompletedAt",
- "latestTurnDurationMs",
- "error",
- ],
- consumedBy: [
- "apps/web/src/components/Sidebar.tsx",
- "apps/web/src/components/ChatView.tsx",
- "apps/web/src/components/BranchToolbar.tsx",
- ],
- },
- {
- entity: "Message",
- requiredFields: ["id", "role", "text", "createdAt", "streaming"],
- consumedBy: ["apps/web/src/components/ChatView.tsx"],
- },
- {
- entity: "ProviderSession",
- requiredFields: [
- "sessionId",
- "provider",
- "status",
- "threadId",
- "activeTurnId",
- "createdAt",
- "updatedAt",
- "lastError",
- ],
- consumedBy: ["apps/web/src/components/ChatView.tsx", "apps/web/src/components/Sidebar.tsx"],
- },
- {
- entity: "TurnDiffSummary",
- requiredFields: ["turnId", "completedAt", "status", "files"],
- consumedBy: ["apps/web/src/components/DiffPanel.tsx", "apps/web/src/components/ChatView.tsx"],
- },
- {
- entity: "GitReadModel",
- requiredFields: ["projectId", "branch", "hasWorkingTreeChanges", "aheadCount", "behindCount"],
- consumedBy: [
- "apps/web/src/components/GitActionsControl.tsx",
- "apps/web/src/components/BranchToolbar.tsx",
- ],
- },
-];