Skip to content

refactor(agent-streaming): Convert client to TS#117

Merged
agduan merged 5 commits into
agent-streaming/2-ts-serverfrom
agent-streaming/3-ts-client
Jun 16, 2026
Merged

refactor(agent-streaming): Convert client to TS#117
agduan merged 5 commits into
agent-streaming/2-ts-serverfrom
agent-streaming/3-ts-client

Conversation

@agduan

@agduan agduan commented Jun 12, 2026

Copy link
Copy Markdown
Contributor
  • refactor: Convert frontend to TypeScript
  • refactor: Update index.html to reference TS
  • chore: Add typecheck to build script

@agduan agduan requested a review from nohe427 June 12, 2026 03:53

@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 migrates the client-side script from JavaScript to TypeScript, updates the HTML script reference, and integrates TypeScript verification into the build pipeline. The new script implements SSE streaming for chat messages, rendering markdown securely using marked and DOMPurify. Feedback on the changes suggests simplifying the markdown rendering logic in script.ts by removing redundant runtime type checks and avoiding the use of @ts-ignore since the libraries are statically imported.

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 agent-streaming/src/client/script.ts Outdated
@agduan agduan force-pushed the agent-streaming/3-ts-client branch from 44a225d to 8667785 Compare June 12, 2026 21:09
@agduan agduan force-pushed the agent-streaming/2-ts-server branch from a23af3a to 2fbb433 Compare June 12, 2026 21:09
@agduan agduan force-pushed the agent-streaming/3-ts-client branch from 8667785 to c76d147 Compare June 12, 2026 21:30
@agduan agduan force-pushed the agent-streaming/2-ts-server branch 2 times, most recently from 1979861 to dae6383 Compare June 13, 2026 05:24
@agduan agduan force-pushed the agent-streaming/3-ts-client branch from c76d147 to 0a8bc45 Compare June 13, 2026 05:24
@agduan agduan force-pushed the agent-streaming/2-ts-server branch from dae6383 to 835c31f Compare June 15, 2026 04:47
@agduan agduan force-pushed the agent-streaming/3-ts-client branch from 0a8bc45 to d692374 Compare June 15, 2026 04:47
- refactor: Convert frontend to TypeScript
- refactor: Update index.html to reference TS
- chore: Add typecheck to build script
@agduan agduan force-pushed the agent-streaming/3-ts-client branch from d692374 to f8869b2 Compare June 15, 2026 18:19
@agduan agduan force-pushed the agent-streaming/2-ts-server branch from 835c31f to 4e5665c Compare June 15, 2026 18:19
agduan added 4 commits June 16, 2026 10:12
- refactor: Add React entry point
- refactor: Update index.html with React root
- chore: Delete unused script.ts
- chore: Add React dependencies
- chore: Update configs for React
- refactor: Create React types
- refactor: Create ThoughtBox component
- refactor: Create MessageBubble component
- refactor: Create ChatInput component
- refactor: Create App component
…ents

refactor(agent-streaming): Create React components
@agduan agduan merged commit 3f34878 into agent-streaming/2-ts-server Jun 16, 2026
1 check passed
@agduan agduan deleted the agent-streaming/3-ts-client branch June 16, 2026 18:10
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