Commit 4614ad7
feat(chat): complete runtime decoupling — compositions back to @cacheplane/chat (#136)
* docs: phase-2 design for finishing chat-runtime decoupling
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>
* docs: phase-2 implementation plan
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>
* feat(chat): add ChatAgentWithHistory sub-contract and ChatCheckpoint
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat(chat): extend mockChatAgent with optional history
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* test(chat): add ChatAgentWithHistory conformance helper
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat(langgraph): widen toChatAgent to ChatAgentWithHistory, translate history
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(chat,langgraph): move chat-timeline primitive to chat, retarget to ChatAgentWithHistory
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(chat,langgraph): move chat-timeline-slider to chat, retarget 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>
* refactor(chat,langgraph): move chat-debug composition tree to chat, retarget 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>
* refactor(cockpit): rebind chat-debug and chat-timeline demos to @cacheplane/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>
* chore(chat): allow vitest in @nx/dependency-checks ignore list
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>
* chore(langgraph): drop unused @angular/common, @angular/platform-browser 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>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 71f290e commit 4614ad7
35 files changed
Lines changed: 1439 additions & 274 deletions
File tree
- cockpit/chat
- debug/angular/src/app
- timeline/angular/src/app
- docs/superpowers
- plans
- specs
- libs
- chat
- src
- lib
- agent
- compositions
- chat-debug
- chat-timeline-slider
- primitives/chat-timeline
- testing
- langgraph
- src
- lib
- compositions
- chat-debug
- chat-timeline-slider
- primitives/chat-timeline
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments