From 0b5c7747a3165bf0d0f2219204b7b70ec3ed7645 Mon Sep 17 00:00:00 2001 From: weichen Date: Sun, 4 Oct 2026 18:36:08 +0000 Subject: [PATCH] Keep the context section type inside the contract file Why: A separately exported ContextSection is unused inside the UI package and pushes the knip ratchet over its baseline. Evidence: UI knip reported 56 unused exports against baseline 55. The section shape stays on ContextObservation.sections. Impact: Generated frontend and UI contracts drop the extra export. JSON field names are unchanged. Refs: .task/feature-sillytavern-review.md Co-authored-by: Cursor --- ts/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/types.ts b/ts/types.ts index 91a1386..60936d3 100644 --- a/ts/types.ts +++ b/ts/types.ts @@ -113,7 +113,7 @@ export interface RunCompletedPayload { context?: ContextObservation } -export interface ContextSection { +interface ContextSection { name: string estTokens: number }