History

rm unused

Julius Marminge committed 8 months ago

Commit 9c070ef1 parent 7a5ea7a2 files · +0 −66Browse files

Unified · Split

2 files
  1. apps/server/src/orchestration/engine.ts +0 −2
  2. apps/server/src/orchestration/uiContractInventory.ts +0 −64
apps/server/src/orchestration/engine.ts+0−2
@@ -20,7 +20,6 @@ import { · 19 unmodified lines
2020 import { createLogger } from "../logger";
2121 import type { OrchestrationEventRepositoryShape } from "../persistence/Services/OrchestrationEvents";
2222 import { createEmptyReadModel, reduceEvent } from "./reducer";
23−import { UI_ENTITY_CONTRACTS } from "./uiContractInventory";
2423
2524 type CommandEnvelope = {
2625 command: OrchestrationCommand;
@@ -245,7 +244,6 @@ export class OrchestrationEngine { · 218 unmodified lines
245244 this.workerFiber = Runtime.runFork(this.runtime)(worker);
246245 this.logger.info("orchestration engine started", {
247246 sequence: this.readModel.sequence,
248− contracts: UI_ENTITY_CONTRACTS.length,
249247 });
250248 }
251249
apps/server/src/orchestration/uiContractInventory.ts+0−64
@@ -1,64 +0,0 @@
1−export 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.
9−export 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−];