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 <noreply@paperclip.ing>
This commit is contained in:
2026-04-24 17:43:16 +00:00
committed by Hugh Commit [agent]
parent 727d9494da
commit f304c70899
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
export { printClaudeStreamEvent, formatClaudeStreamLine } from "./format-event.js";
export { printClaudeStreamEvent } from "./format-event.js";
+1 -1
View File
@@ -52,4 +52,4 @@ Notes:
`;
export { createServerAdapter } from "./server/index.js";
export { printClaudeStreamEvent, formatClaudeStreamLine } from "./cli/index.js";
export { printClaudeStreamEvent } from "./cli/index.js";