Skip to content

refactor: add stream module index re-exports (Issue #3594) - #3928

Closed
oyi77 wants to merge 3 commits into
diegosouzapw:release/v3.8.28from
oyi77:pr/stream-index
Closed

oyi77 wants to merge 3 commits into
diegosouzapw:release/v3.8.28from
oyi77:pr/stream-index

Conversation

@oyi77

@oyi77 oyi77 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Part of modularization effort (Issue #3594).

Adds open-sse/utils/stream/index.ts to re-export all stream modules.

Changes:

  • New file: open-sse/utils/stream/index.ts (9 lines)
  • Re-exports all stream modules: types, utils, responsesLifecycle, textualToolCalls, sseFormatters, errors, claudeLifecycle, openaiChunks, streamCore

Usage:

import { createSSEStream, FORMATS, ... } from '@/utils/stream';

Depends on: All prior stream module PRs (#3917-#3927).

@oyi77
oyi77 requested a review from diegosouzapw as a code owner June 15, 2026 20:31

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces an index file open-sse/utils/stream/index.ts to export various stream-related modules. The review feedback correctly points out that using explicit .ts extensions in relative export paths is discouraged in TypeScript and can lead to compiler errors, suggesting they be omitted.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread open-sse/utils/stream/index.ts Outdated
Comment on lines +1 to +9
export * from "./types.ts";
export * from "./utils.ts";
export * from "./responsesLifecycle.ts";
export * from "./textualToolCalls.ts";
export * from "./sseFormatters.ts";
export * from "./errors.ts";
export * from "./claudeLifecycle.ts";
export * from "./openaiChunks.ts";
export * from "./streamCore.ts";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In TypeScript, exporting files with an explicit .ts extension is generally discouraged and can cause compiler errors (such as TS2691: 'An import path cannot end with a ".ts" extension') depending on the project's TypeScript configuration. It is recommended to omit the .ts extension in relative export paths to ensure compatibility with standard TypeScript module resolution and bundlers.

Suggested change
export * from "./types.ts";
export * from "./utils.ts";
export * from "./responsesLifecycle.ts";
export * from "./textualToolCalls.ts";
export * from "./sseFormatters.ts";
export * from "./errors.ts";
export * from "./claudeLifecycle.ts";
export * from "./openaiChunks.ts";
export * from "./streamCore.ts";
export * from "./types";
export * from "./utils";
export * from "./responsesLifecycle";
export * from "./textualToolCalls";
export * from "./sseFormatters";
export * from "./errors";
export * from "./claudeLifecycle";
export * from "./openaiChunks";
export * from "./streamCore";

@diegosouzapw
diegosouzapw changed the base branch from release/v3.8.26 to release/v3.8.27 June 16, 2026 06:19
oyi77 added 2 commits June 16, 2026 16:12
Part of Issue diegosouzapw#3594 modularization. Adds index.ts to re-export all stream modules for convenient imports.
@oyi77
oyi77 force-pushed the pr/stream-index branch from ebddbdd to 43a02ed Compare June 16, 2026 09:12
@diegosouzapw
diegosouzapw changed the base branch from release/v3.8.27 to release/v3.8.28 June 17, 2026 08:20
@diegosouzapw

Copy link
Copy Markdown
Owner

Thanks, @oyi77 🙏. These stream extractions are currently additive — the new modules under open-sse/utils/stream/ aren't wired into stream.ts yet, so they don't change runtime behavior on their own. Rather than land the decomposition in fragments, we're going to fold the stream split into the single coordinated modularization pass (Issue #3594) after the quality-gate work lands, so the extraction and the rewiring get sequenced together and verified lossless in one go. Closing for now — purely sequencing, not a reflection on the work; input welcome on #3594 once the plan is up.

@oyi77
oyi77 deleted the pr/stream-index branch August 7, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants