Commit 891fcb7
refactor: rename ChatAgent → Agent across the contract surface (#137)
* docs: ChatAgent → Agent rename design
Scope: contract types strip prefix (Agent, AgentWithHistory). Data
types go bare (Message, Role, ToolCall, ContentBlock, Subagent).
Collision-prone types prefix with Agent (AgentCustomEvent,
AgentInterrupt, AgentStatus, AgentSubmit*, AgentCheckpoint).
No backwards-compat aliases, no structural changes.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs: ChatAgent → Agent rename implementation plan
8 tasks: rename agent/ files, testing/ files, exports, primitives +
compositions, langgraph adapter file, cockpit consumers, then verify.
git mv preserves history; ordered find/replace avoids partial matches.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(chat): rename ChatAgent → Agent and paired types
- Strip Chat prefix from contract types (Agent, AgentWithHistory)
- Strip Chat prefix from data types (Message, Role, ToolCall, ContentBlock, Subagent)
- Prefix Agent on collision-prone types (AgentStatus, AgentInterrupt, AgentCustomEvent, AgentSubmit*, AgentCheckpoint)
- Rename mockChatAgent → mockAgent, conformance helpers analogously
- File renames via git mv preserve history
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(langgraph): rename toChatAgent → toAgent
Adapter function renamed to match Agent rename in @cacheplane/chat.
ChatAgent → Agent, ChatAgentWithHistory → AgentWithHistory in return
type and translation helpers.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(cockpit): adopt Agent rename across demos
Updates imports of toChatAgent → toAgent and any direct Type
references (ChatAgent, ChatMessage, etc.) to the new bare/Agent-
prefixed names. Component class imports (ChatMessagesComponent etc.)
are unchanged.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs(chat): update README to reference Agent contract
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4f3259e commit 891fcb7
82 files changed
Lines changed: 1138 additions & 493 deletions
File tree
- cockpit
- chat
- a2ui/angular/src/app
- debug/angular/src/app
- generative-ui/angular/src/app
- input/angular/src/app
- interrupts/angular/src/app
- messages/angular/src/app
- subagents/angular/src/app
- theming/angular/src/app
- threads/angular/src/app
- timeline/angular/src/app
- tool-calls/angular/src/app
- deep-agents
- filesystem/angular/src/app
- memory/angular/src/app
- planning/angular/src/app
- sandboxes/angular/src/app
- skills/angular/src/app
- subagents/angular/src/app
- langgraph
- deployment-runtime/angular/src/app
- durable-execution/angular/src/app
- interrupts/angular/src/app
- memory/angular/src/app
- persistence/angular/src/app
- streaming/angular/src/app
- subgraphs/angular/src/app
- time-travel/angular/src/app
- docs/superpowers
- plans
- specs
- libs
- chat
- src
- lib
- agent
- compositions
- chat-debug
- chat-interrupt-panel
- chat-subagent-card
- chat-timeline-slider
- chat
- primitives
- chat-error
- chat-input
- chat-interrupt
- chat-messages
- chat-subagents
- chat-timeline
- chat-tool-calls
- chat-typing-indicator
- testing
- langgraph/src
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
Lines changed: 2 additions & 2 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 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
0 commit comments