From f304c70899126134ff62b1de70b00b4a6bfe1029 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 24 Apr 2026 17:43:16 +0000 Subject: [PATCH] fix: keep formatClaudeStreamLine internal to avoid ESM hot-reload link failure (FAR-32) Exposing formatClaudeStreamLine at the package root caused Paperclip reinstalls to fail with "'./cli/index.js' does not provide an export named 'formatClaudeStreamLine'". The host process caches child ESM module records across reinstalls; linking the new dist/index.js re-export against the cached old dist/cli/index.js fails. The symbol is only used internally by server/execute.ts (which imports from ./cli/format-event.js directly), so drop the public re-export. Co-Authored-By: Paperclip --- src/cli/index.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index c21e21b..7c81ab6 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -1 +1 @@ -export { printClaudeStreamEvent, formatClaudeStreamLine } from "./format-event.js"; +export { printClaudeStreamEvent } from "./format-event.js"; diff --git a/src/index.ts b/src/index.ts index b8611c1..0580420 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,4 +52,4 @@ Notes: `; export { createServerAdapter } from "./server/index.js"; -export { printClaudeStreamEvent, formatClaudeStreamLine } from "./cli/index.js"; +export { printClaudeStreamEvent } from "./cli/index.js";