authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-22 01:04:59-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-26 13:20:36-08:00
log9c070efface28ef266dc9736f9c1df4e9d61066d
tree6b0e8d0168d6d0d303670d6def1563ab7016a9f1
parent7a5ea7a5d8d2a779cafb6413306eed554977825c

rm unused


2 files changed, 0 insertions(+), 66 deletions(-)

apps/server/src/orchestration/engine.ts-2
...@@ -20,7 +20,6 @@ import {...@@ -20,7 +20,6 @@ import {
20import { createLogger } from "../logger";20import { createLogger } from "../logger";
21import type { OrchestrationEventRepositoryShape } from "../persistence/Services/OrchestrationEvents";21import type { OrchestrationEventRepositoryShape } from "../persistence/Services/OrchestrationEvents";
22import { createEmptyReadModel, reduceEvent } from "./reducer";22import { createEmptyReadModel, reduceEvent } from "./reducer";
23import { UI_ENTITY_CONTRACTS } from "./uiContractInventory";
2423
25type CommandEnvelope = {24type CommandEnvelope = {
26 command: OrchestrationCommand;25 command: OrchestrationCommand;
...@@ -245,7 +244,6 @@ export class OrchestrationEngine {...@@ -245,7 +244,6 @@ export class OrchestrationEngine {
245 this.workerFiber = Runtime.runFork(this.runtime)(worker);244 this.workerFiber = Runtime.runFork(this.runtime)(worker);
246 this.logger.info("orchestration engine started", {245 this.logger.info("orchestration engine started", {
247 sequence: this.readModel.sequence,246 sequence: this.readModel.sequence,
248 contracts: UI_ENTITY_CONTRACTS.length,
249 });247 });
250 }248 }
251249
apps/server/src/orchestration/uiContractInventory.ts deleted-64
...@@ -1,64 +0,0 @@
1export interface UiEntityContract {
2 entity: string;
3 requiredFields: string[];
4 consumedBy: string[];
5}
6
7// Explicit UI inventory used to keep server read models aligned
8// with what the current frontend renders.
9export const UI_ENTITY_CONTRACTS: UiEntityContract[] = [
10 {
11 entity: "Thread",
12 requiredFields: [
13 "id",
14 "projectId",
15 "title",
16 "model",
17 "branch",
18 "worktreePath",
19 "createdAt",
20 "latestTurnId",
21 "latestTurnStartedAt",
22 "latestTurnCompletedAt",
23 "latestTurnDurationMs",
24 "error",
25 ],
26 consumedBy: [
27 "apps/web/src/components/Sidebar.tsx",
28 "apps/web/src/components/ChatView.tsx",
29 "apps/web/src/components/BranchToolbar.tsx",
30 ],
31 },
32 {
33 entity: "Message",
34 requiredFields: ["id", "role", "text", "createdAt", "streaming"],
35 consumedBy: ["apps/web/src/components/ChatView.tsx"],
36 },
37 {
38 entity: "ProviderSession",
39 requiredFields: [
40 "sessionId",
41 "provider",
42 "status",
43 "threadId",
44 "activeTurnId",
45 "createdAt",
46 "updatedAt",
47 "lastError",
48 ],
49 consumedBy: ["apps/web/src/components/ChatView.tsx", "apps/web/src/components/Sidebar.tsx"],
50 },
51 {
52 entity: "TurnDiffSummary",
53 requiredFields: ["turnId", "completedAt", "status", "files"],
54 consumedBy: ["apps/web/src/components/DiffPanel.tsx", "apps/web/src/components/ChatView.tsx"],
55 },
56 {
57 entity: "GitReadModel",
58 requiredFields: ["projectId", "branch", "hasWorkingTreeChanges", "aheadCount", "behindCount"],
59 consumedBy: [
60 "apps/web/src/components/GitActionsControl.tsx",
61 "apps/web/src/components/BranchToolbar.tsx",
62 ],
63 },
64];