From bc1984b2f261f112117bb03d882df61906ded57b Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Thu, 3 Sep 2026 12:05:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(sidechat):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=9B=B6=E5=BC=95=E7=94=A8=E7=9A=84=20sidechatSeed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/sidechat-core.ts 的 sidechatSeed()(buildSidechatInheritance 的 seed 半边,doc 注明 test convenience)在 src+tests 全仓零引用,也无 barrel 转出口,删除。同文件的 SeedEvent 类型与 copyEvents 仍被 SidechatInheritance 使用,保留;其余导出不动。 --- src/sidechat-core.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sidechat-core.ts b/src/sidechat-core.ts index a818ef6..51b2a4b 100644 --- a/src/sidechat-core.ts +++ b/src/sidechat-core.ts @@ -245,11 +245,6 @@ export function buildSidechatInheritance(events: readonly SidechatLogEvent[]): S return { seed, snapshot: null } } -/** The seed half of {@link buildSidechatInheritance} (test convenience). */ -export function sidechatSeed(events: readonly SidechatLogEvent[]): SeedEvent[] { - return buildSidechatInheritance(events).seed -} - /** * Structured text snapshot of the parent's OPEN turn (from its `turn/start` * to the log tail): the accumulated assistant/reasoning output verbatim