Skip to content

refactor(ui): consume @datum-cloud/assistant-chat-kit in ChatDock - #92

Merged
kevwilliams merged 1 commit into
mainfrom
feat/assistant-chat-kit-extraction
Sep 22, 2026
Merged

kevwilliams merged 1 commit into
mainfrom
feat/assistant-chat-kit-extraction

Conversation

@kevwilliams

Copy link
Copy Markdown
Contributor

Summary

  • Extracts the conversation hook, API client, SSE parser, and speech-input hook out of ChatDock into 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.
  • Bumps @datum-cloud/datum-ui to ^2.10.0. The archive/delete feature (feat(conversations): archive and delete conversations #89) 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 (confirmed this was actually happening: bun install && bun run typecheck on main fails today).

Test plan

  • bun run typecheck passes clean (previously failed on main due to the onArchiveChat mismatch)
  • bun run build succeeds
  • Verified against the real published @datum-cloud/assistant-chat-kit@0.1.0 (not just a local link) — no dual-module-instance type issues
  • Manual smoke test of the dock in a running portal session (send, stream, switch/archive/delete chats)

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.
@kevwilliams
kevwilliams merged commit 8e9cd65 into main Sep 22, 2026
5 checks passed
@kevwilliams
kevwilliams deleted the feat/assistant-chat-kit-extraction branch September 22, 2026 18:57
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