feat(ui): add full-page Assistant, backed by assistant-chat-kit - #6
Draft
kevwilliams wants to merge 1 commit into
Draft
kevwilliams wants to merge 1 commit into
kevwilliams wants to merge 1 commit into
Conversation
New portal.page/project extension (interconnect.datumapis.com/Assistant, routed at .../services/interconnect/assistant) — a full-page counterpart to the assistant plugin's docked ChatDock, using the same @datum-cloud/assistant-chat-kit conversation logic against the same per-project Patch backend. Interconnect-specific answers come from that backend's own AgentBinding capability document, not from anything here. vite.config.ts needed shared singleton entries it was missing entirely (react-dom/client, @datum-cloud/portal-plugin-sdk) — without them, useProjectContext()/usePluginFetch() would read a disconnected Context instead of the host's. package.json needed @datum-cloud/datum-ui's full optional-peer surface, not just the pieces this page uses directly: its subpath exports aren't independently tree-shakeable, so importing just /assistant still pulls in shared chunks referencing leaflet, monaco, recharts, etc. at build time.
kevwilliams
marked this pull request as draft
September 18, 2026 01:51
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
portal.page/project,.../services/interconnect/assistant) — a full-page counterpart to the assistant plugin's dockedChatDock, reusing the same@datum-cloud/assistant-chat-kitconversation logic against the same per-project Patch backend. Interconnect-specific answers come from that backend's ownAgentBindingcapability document (separate work), not from anything in this repo.vite.config.ts, which had no Module Federation shared singletons at all. Without@datum-cloud/portal-plugin-sdkshared as a singleton,useProjectContext()/usePluginFetch()would read a disconnected React Context instead of the host's (this would have broken any future use of those hooks, not just this page). Addedreact-dom/clienttoo, matching a gotcha already documented in the assistant plugin's own config.package.json's dependencies to@datum-cloud/datum-ui's full optional-peer surface (leaflet, monaco, recharts, dnd-kit, etc.), discovered via real build failures — its subpath exports aren't independently tree-shakeable, so importing just/assistantstill pulls in shared chunks referencing the rest of the library at build time. Matches the assistant plugin's own (equally broad) dependency list rather than a hand-picked subset.Test plan
bun run typecheckpasses cleanbun run buildsucceeds@datum-cloud/assistant-chat-kit@0.1.0assistantpage, confirm it starts a conversation and streams a response