feat(chat): complete runtime decoupling — compositions back to @cacheplane/chat#136
Merged
Conversation
Defines the ChatAgentWithHistory sub-contract, ChatCheckpoint neutral shape, file-movement plan (three compositions back to @cacheplane/chat), and public-API delta. Replay/fork stay as composition outputs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
9 tasks: add sub-contract types, extend mock/conformance, widen toChatAgent, move three compositions back to @cacheplane/chat, rebind cockpit consumers, verify dep graph. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
… history Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…get to ChatAgentWithHistory Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
… to ChatAgentWithHistory Moves ChatTimelineSliderComponent from @cacheplane/langgraph to @cacheplane/chat, replacing the LangGraph-specific AgentRef/ThreadState types with the runtime-neutral ChatAgentWithHistory/ChatCheckpoint contract. Updates both public-api.ts files accordingly. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…etarget to ChatCheckpoint Moves all 11 files from libs/langgraph/src/lib/compositions/chat-debug/ to libs/chat/src/lib/compositions/chat-debug/. Rewires chat-debug.component.ts to use ChatAgentWithHistory (replacing AgentRef + toChatAgent adapter) and debug-utils.ts to consume ChatCheckpoint (replacing ThreadState). Updates public APIs: ChatDebugComponent exported from @cacheplane/chat; all debug-* re-exports removed from @cacheplane/langgraph. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…eplane/chat Move ChatDebugComponent and ChatTimelineSliderComponent imports from @cacheplane/langgraph to @cacheplane/chat, and update consumer bindings to use [agent] instead of [ref] for consistency with Phase-2 primitives. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Conformance helpers (chat-agent-conformance, chat-agent-with-history- conformance) legitimately import from vitest. Adding to ignoredDependencies matches how vite/@nx/vite are already excluded. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ser peer-deps After the chat-debug tree moved to @cacheplane/chat in Phase-2, @cacheplane/langgraph no longer consumes NgTemplateOutlet or DomSanitizer. @nx/dependency-checks correctly flagged both as unused. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
ChatAgentWithHistorysub-contract andChatCheckpointneutral shape to@cacheplane/chat.chat-timeline,chat-timeline-slider, andchat-debugback into@cacheplane/chat, retargeted fromAgentRefto the sub-contract.toChatAgentto returnChatAgentWithHistory; translatesThreadState[]→ChatCheckpoint[].mockChatAgentgrows an optionalhistoryoption; newrunChatAgentWithHistoryConformancehelper.Test Plan
nx run-many -t lint,test,build -p chat,langgraphpassesnx graphshowslanggraph → chatonly (no reverse edge)AgentReforThreadStatereferences inlibs/chat/srcTODO(phase-2)/TODO(phase-3)markersDesign docs
docs/superpowers/specs/2026-04-21-chat-decoupling-phase-2-design.mddocs/superpowers/plans/2026-04-21-chat-decoupling-phase-2.md🤖 Generated with Claude Code