refactor(agent-streaming): Convert server to TS#116
Conversation
agduan
commented
Jun 12, 2026
- chore: Add TS compiler, executor, typings
- chore: Add tsconfig.json
- refactor: Convert backend to TypeScript
- chore: Update npm scripts
There was a problem hiding this comment.
Code Review
This pull request migrates the server-side code of the agent-streaming application from JavaScript to TypeScript, introducing a Genkit AI streaming flow with Gemini 3.5 Flash and updating the project configuration and dependencies. The review feedback highlights several key improvements: safely handling pre-stream errors in the SSE endpoint by checking res.headersSent, optimizing the regex logic for extracting the last thought step to avoid performance issues, validating the parsed PORT to prevent NaN errors, removing browser-specific DOM libraries from tsconfig.json, and deleting the obsolete src/server/index.js file.
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.
dae6383 to
835c31f
Compare
- chore: Add TS compiler, executor, typings - chore: Add tsconfig.json - refactor: Convert backend to TypeScript - chore: Update npm scripts
835c31f to
4e5665c
Compare