refactor(ui): consume @datum-cloud/assistant-chat-kit in ChatDock - #92
Merged
Merged
Conversation
Extracted the conversation hook, API client, SSE parser, and speech-input hook out of this plugin into a new published package (datum-cloud/assistant-chat-kit) so other portal plugins — starting with interconnect's own assistant page — can embed the same Patch chat experience without duplicating this logic. ChatDock's behavior is unchanged, it's a pure import swap. Also bumps @datum-cloud/datum-ui to ^2.10.0: the archive/delete feature (e3474c7) already depends on AssistantWorkspaceProps.onArchiveChat / onUnarchiveChat / confirmDelete, which only exist from datum-ui 2.10.0 onward, but the dependency range was never bumped past ^2.5.0 — a resolver could legally install an older datum-ui and fail to typecheck.
yahyafakhroji
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ChatDockinto a new published package (@datum-cloud/assistant-chat-kit, https://github.com/datum-cloud/assistant-chat-kit) so other portal plugins — starting with interconnect's own assistant page — can embed the same Patch chat experience without duplicating this logic.ChatDock's behavior is unchanged; this is a pure import swap.@datum-cloud/datum-uito^2.10.0. The archive/delete feature (feat(conversations): archive and delete conversations #89) already depends onAssistantWorkspaceProps.onArchiveChat/onUnarchiveChat/confirmDelete, which only exist fromdatum-ui2.10.0 onward, but the dependency range was never bumped past^2.5.0— a resolver could legally install an olderdatum-uiand fail to typecheck (confirmed this was actually happening:bun install && bun run typecheckonmainfails today).Test plan
bun run typecheckpasses clean (previously failed onmaindue to theonArchiveChatmismatch)bun run buildsucceeds@datum-cloud/assistant-chat-kit@0.1.0(not just a local link) — no dual-module-instance type issues