reifyui 0.13.9 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/agent-chat.cjs +2046 -0
- package/dist/agent-chat.cjs.map +1 -0
- package/dist/agent-chat.d.ts +190 -0
- package/dist/agent-chat.js +157 -0
- package/dist/agent-chat.js.map +1 -0
- package/dist/chunk-6CJPYMR2.js +1892 -0
- package/dist/chunk-6CJPYMR2.js.map +1 -0
- package/dist/chunk-AGSX5YKH.js +177 -0
- package/dist/chunk-AGSX5YKH.js.map +1 -0
- package/dist/chunk-WAND7AYD.js +124 -0
- package/dist/chunk-WAND7AYD.js.map +1 -0
- package/dist/graph.js +2 -1
- package/dist/graph.js.map +1 -1
- package/dist/harness.cjs +4 -0
- package/dist/harness.cjs.map +1 -1
- package/dist/harness.js +4 -0
- package/dist/harness.js.map +1 -1
- package/dist/index.cjs +2269 -741
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +50 -6
- package/dist/index.js.map +1 -1
- package/package.json +11 -2
- package/src/agent-chat/components.jsx +777 -0
- package/src/agent-chat/index.d.ts +190 -0
- package/src/agent-chat/index.js +24 -0
- package/src/agent-chat/marks.js +51 -0
- package/src/agent-chat/time.js +55 -0
- package/src/agent-chat/tools.js +357 -0
- package/src/agent-chat/turn.js +476 -0
- package/src/components/ChatPanel.jsx +37 -1
- package/src/harness/index.js +3 -1
- package/src/index.d.ts +11 -0
- package/styles/agent-chat.css +306 -0
- package/styles/chat.css +5 -0
- package/dist/chunk-J7SECRIG.js +0 -295
- package/dist/chunk-J7SECRIG.js.map +0 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentComposer,
|
|
3
|
+
AgentConversation,
|
|
4
|
+
AgentTurnView,
|
|
5
|
+
CopyButton,
|
|
6
|
+
DEFAULT_AGENT_LABELS,
|
|
7
|
+
DiffBadge,
|
|
8
|
+
LinesBlock,
|
|
9
|
+
StepRow,
|
|
10
|
+
StreamingText,
|
|
11
|
+
ThinkingRow,
|
|
12
|
+
TodoCard,
|
|
13
|
+
TurnOutcome,
|
|
14
|
+
UserBubble,
|
|
15
|
+
WorkGroup,
|
|
16
|
+
WorkingIndicator,
|
|
17
|
+
WorkingMark,
|
|
18
|
+
baseNameOf,
|
|
19
|
+
commandText,
|
|
20
|
+
describeTool,
|
|
21
|
+
diffOf,
|
|
22
|
+
finish,
|
|
23
|
+
formatDuration,
|
|
24
|
+
formatElapsed,
|
|
25
|
+
formatTokens,
|
|
26
|
+
isTerminal,
|
|
27
|
+
latestPlan,
|
|
28
|
+
lineCount,
|
|
29
|
+
liveState,
|
|
30
|
+
newTurn,
|
|
31
|
+
parseToolArgs,
|
|
32
|
+
patchStats,
|
|
33
|
+
reduceTurn,
|
|
34
|
+
resultNote,
|
|
35
|
+
segments,
|
|
36
|
+
summarizeCalls,
|
|
37
|
+
todosOf,
|
|
38
|
+
toolKind,
|
|
39
|
+
toolLine,
|
|
40
|
+
turnFromEvents,
|
|
41
|
+
turnFromHistory,
|
|
42
|
+
turnFromMessage,
|
|
43
|
+
turnFromResponse,
|
|
44
|
+
useElapsed,
|
|
45
|
+
useNow,
|
|
46
|
+
useStickToBottom
|
|
47
|
+
} from "./chunk-6CJPYMR2.js";
|
|
48
|
+
import "./chunk-WAND7AYD.js";
|
|
49
|
+
import "./chunk-PZ5AY32C.js";
|
|
50
|
+
|
|
51
|
+
// src/agent-chat/marks.js
|
|
52
|
+
var MARK_MOTIONS = {
|
|
53
|
+
"claude-code": "bloom",
|
|
54
|
+
claude: "bloom",
|
|
55
|
+
anthropic: "bloom",
|
|
56
|
+
codex: "sheen",
|
|
57
|
+
openai: "sheen",
|
|
58
|
+
gemini: "glint",
|
|
59
|
+
"gemini-cli": "glint",
|
|
60
|
+
hermes: "flutter",
|
|
61
|
+
goose: "glide",
|
|
62
|
+
opencode: "blink",
|
|
63
|
+
pi: "flip",
|
|
64
|
+
omp: "flip",
|
|
65
|
+
dsh: "swim",
|
|
66
|
+
deepseek: "swim",
|
|
67
|
+
qwen: "spin",
|
|
68
|
+
grok: "spin",
|
|
69
|
+
systemone: "spin",
|
|
70
|
+
opensquilla: "spin",
|
|
71
|
+
openhands: "wave",
|
|
72
|
+
cheetahclaws: "dash",
|
|
73
|
+
zeroclaw: "scuttle",
|
|
74
|
+
minimax: "equalize",
|
|
75
|
+
cline: "bob",
|
|
76
|
+
agentzero: "bob",
|
|
77
|
+
qoder: "bob",
|
|
78
|
+
nanobot: "bob",
|
|
79
|
+
kimi: "sheen",
|
|
80
|
+
kilo: "sheen",
|
|
81
|
+
jcode: "pulse",
|
|
82
|
+
mimo: "pulse",
|
|
83
|
+
aider: "pulse"
|
|
84
|
+
};
|
|
85
|
+
var MOTIONS = [
|
|
86
|
+
"bloom",
|
|
87
|
+
"sheen",
|
|
88
|
+
"glint",
|
|
89
|
+
"flutter",
|
|
90
|
+
"glide",
|
|
91
|
+
"blink",
|
|
92
|
+
"flip",
|
|
93
|
+
"swim",
|
|
94
|
+
"spin",
|
|
95
|
+
"wave",
|
|
96
|
+
"dash",
|
|
97
|
+
"scuttle",
|
|
98
|
+
"equalize",
|
|
99
|
+
"bob",
|
|
100
|
+
"pulse",
|
|
101
|
+
"dots"
|
|
102
|
+
];
|
|
103
|
+
function motionFor(base) {
|
|
104
|
+
const k = String(base || "").toLowerCase().trim();
|
|
105
|
+
return MARK_MOTIONS[k] || "pulse";
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
AgentComposer,
|
|
109
|
+
AgentConversation,
|
|
110
|
+
AgentTurnView,
|
|
111
|
+
CopyButton,
|
|
112
|
+
DEFAULT_AGENT_LABELS,
|
|
113
|
+
DiffBadge,
|
|
114
|
+
LinesBlock,
|
|
115
|
+
MARK_MOTIONS,
|
|
116
|
+
MOTIONS,
|
|
117
|
+
StepRow,
|
|
118
|
+
StreamingText,
|
|
119
|
+
ThinkingRow,
|
|
120
|
+
TodoCard,
|
|
121
|
+
TurnOutcome,
|
|
122
|
+
UserBubble,
|
|
123
|
+
WorkGroup,
|
|
124
|
+
WorkingIndicator,
|
|
125
|
+
WorkingMark,
|
|
126
|
+
baseNameOf,
|
|
127
|
+
commandText,
|
|
128
|
+
describeTool,
|
|
129
|
+
diffOf,
|
|
130
|
+
finish,
|
|
131
|
+
formatDuration,
|
|
132
|
+
formatElapsed,
|
|
133
|
+
formatTokens,
|
|
134
|
+
isTerminal,
|
|
135
|
+
latestPlan,
|
|
136
|
+
lineCount,
|
|
137
|
+
liveState,
|
|
138
|
+
motionFor,
|
|
139
|
+
newTurn,
|
|
140
|
+
parseToolArgs,
|
|
141
|
+
patchStats,
|
|
142
|
+
reduceTurn,
|
|
143
|
+
resultNote,
|
|
144
|
+
segments,
|
|
145
|
+
summarizeCalls,
|
|
146
|
+
todosOf,
|
|
147
|
+
toolKind,
|
|
148
|
+
toolLine,
|
|
149
|
+
turnFromEvents,
|
|
150
|
+
turnFromHistory,
|
|
151
|
+
turnFromMessage,
|
|
152
|
+
turnFromResponse,
|
|
153
|
+
useElapsed,
|
|
154
|
+
useNow,
|
|
155
|
+
useStickToBottom
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=agent-chat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/agent-chat/marks.js"],"sourcesContent":["// The working mark: each harness's own logo, moving the way that logo suggests.\n//\n// The package ships the MOTIONS (CSS keyframes in styles/agent-chat.css), never the logos: a\n// host passes its official mark as a node and names a motion. motionFor(base) is the house\n// choice for the harnesses we know, picked by looking at each mark:\n//\n// bloom the Claude starburst turns a quarter and breathes, like the CLI's ✻ ✽ ✶ spinner\n// sheen a light passes across the tile (Codex's prompt, Kimi's K, Kilo's grid)\n// glint brightens and swells, a spark catching light (Gemini)\n// flutter a quick wing beat, tilt and lift (Hermes, the messenger)\n// glide a bird's lift and settle (Goose)\n// blink the tile blinks shut and open, a terminal cursor (OpenCode)\n// flip a coin turning on its vertical axis (pi, omp)\n// swim a short wave from nose to tail (DeepSeek's whale)\n// spin a steady revolution, for round marks (Qwen, Grok, System One, OpenSquilla)\n// wave hands waving from the wrist (OpenHands)\n// dash a sprint forward and back (CheetahClaws)\n// scuttle a sideways skitter (ZeroClaw's crab)\n// equalize a level meter rising and falling (MiniMax's waveform)\n// bob a soft hop (robots and app tiles: Cline, Agent Zero, Qoder, nanobot)\n// pulse the default: scale and opacity breathing\n//\n// Every motion stops under prefers-reduced-motion; the mark then stands still and the line's\n// words alone say the work is going on.\n\nexport const MARK_MOTIONS = {\n 'claude-code': 'bloom', claude: 'bloom', anthropic: 'bloom',\n codex: 'sheen', openai: 'sheen',\n gemini: 'glint', 'gemini-cli': 'glint',\n hermes: 'flutter',\n goose: 'glide',\n opencode: 'blink',\n pi: 'flip', omp: 'flip',\n dsh: 'swim', deepseek: 'swim',\n qwen: 'spin', grok: 'spin', systemone: 'spin', opensquilla: 'spin',\n openhands: 'wave',\n cheetahclaws: 'dash',\n zeroclaw: 'scuttle',\n minimax: 'equalize',\n cline: 'bob', agentzero: 'bob', qoder: 'bob', nanobot: 'bob',\n kimi: 'sheen', kilo: 'sheen', jcode: 'pulse', mimo: 'pulse', aider: 'pulse',\n};\n\nexport const MOTIONS = ['bloom', 'sheen', 'glint', 'flutter', 'glide', 'blink', 'flip', 'swim', 'spin', 'wave',\n 'dash', 'scuttle', 'equalize', 'bob', 'pulse', 'dots'];\n\n/** The motion for a base harness id, 'pulse' for one we do not know. */\nexport function motionFor(base) {\n const k = String(base || '').toLowerCase().trim();\n return MARK_MOTIONS[k] || 'pulse';\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBO,IAAM,eAAe;AAAA,EAC1B,eAAe;AAAA,EAAS,QAAQ;AAAA,EAAS,WAAW;AAAA,EACpD,OAAO;AAAA,EAAS,QAAQ;AAAA,EACxB,QAAQ;AAAA,EAAS,cAAc;AAAA,EAC/B,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UAAU;AAAA,EACV,IAAI;AAAA,EAAQ,KAAK;AAAA,EACjB,KAAK;AAAA,EAAQ,UAAU;AAAA,EACvB,MAAM;AAAA,EAAQ,MAAM;AAAA,EAAQ,WAAW;AAAA,EAAQ,aAAa;AAAA,EAC5D,WAAW;AAAA,EACX,cAAc;AAAA,EACd,UAAU;AAAA,EACV,SAAS;AAAA,EACT,OAAO;AAAA,EAAO,WAAW;AAAA,EAAO,OAAO;AAAA,EAAO,SAAS;AAAA,EACvD,MAAM;AAAA,EAAS,MAAM;AAAA,EAAS,OAAO;AAAA,EAAS,MAAM;AAAA,EAAS,OAAO;AACtE;AAEO,IAAM,UAAU;AAAA,EAAC;AAAA,EAAS;AAAA,EAAS;AAAA,EAAS;AAAA,EAAW;AAAA,EAAS;AAAA,EAAS;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAQ;AAAA,EACtG;AAAA,EAAQ;AAAA,EAAW;AAAA,EAAY;AAAA,EAAO;AAAA,EAAS;AAAM;AAGhD,SAAS,UAAU,MAAM;AAC9B,QAAM,IAAI,OAAO,QAAQ,EAAE,EAAE,YAAY,EAAE,KAAK;AAChD,SAAO,aAAa,CAAC,KAAK;AAC5B;","names":[]}
|