s-app-scoder-agent 0.8.1 → 0.8.7
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/dist/tui/chat-views.js +3 -3
- package/dist/tui/sidebar.js +1 -1
- package/package.json +1 -1
package/dist/tui/chat-views.js
CHANGED
|
@@ -116,13 +116,13 @@ export function ChatItemView({ item }) {
|
|
|
116
116
|
case "user":
|
|
117
117
|
// User messages stand out with a full colored border + bold label so they're
|
|
118
118
|
// immediately visible at a glance, distinct from the agent's ◆ markdown.
|
|
119
|
-
return (_jsx(Box, { marginTop: 1, marginLeft: 1, children:
|
|
119
|
+
return (_jsx(Box, { marginTop: 1, marginLeft: 1, children: _jsx(Box, { borderStyle: "single", borderColor: theme.user, borderLeft: true, borderRight: false, borderTop: false, borderBottom: false, backgroundColor: "gray", width: "100%", paddingX: 1, paddingTop: 1, paddingBottom: 1, flexDirection: "column", children: _jsxs(Text, { children: [_jsx(Text, { color: "white", bold: true, children: "you \u25B8 " }), _jsx(Text, { color: "white", bold: true, children: item.text })] }) }) }));
|
|
120
120
|
case "assistant": {
|
|
121
121
|
// Streaming: dim with pulsing cursor; finalized: markdown with agent mark.
|
|
122
122
|
if (item.streaming || !item.text) {
|
|
123
|
-
return (_jsxs(Box, { marginTop: item.text ? 1 : 0, paddingLeft:
|
|
123
|
+
return (_jsxs(Box, { marginTop: item.text ? 1 : 0, paddingLeft: 2, children: [_jsx(AgentMark, {}), _jsx(Text, { dimColor: item.streaming, children: item.text || (item.streaming ? "" : "(no text)") }), item.streaming && _jsx(Text, { color: theme.accent, bold: true, children: "\u258B" })] }));
|
|
124
124
|
}
|
|
125
|
-
return (_jsxs(Box, { marginTop: 1, paddingLeft:
|
|
125
|
+
return (_jsxs(Box, { marginTop: 1, paddingLeft: 2, children: [_jsx(AgentMark, {}), _jsx(Markdown, { text: item.text })] }));
|
|
126
126
|
}
|
|
127
127
|
case "thinking":
|
|
128
128
|
// T-10: reasoning stream — dim color, ⊙ prefix, collapse to last 4 lines.
|
package/dist/tui/sidebar.js
CHANGED
|
@@ -95,5 +95,5 @@ function McpSection({ state, config }) {
|
|
|
95
95
|
// ── Root ─────────────────────────────────────────────────────────────────────
|
|
96
96
|
/** Sidebar phải — mọi trạng thái sống của run, cập nhật theo AgentEvent. */
|
|
97
97
|
export function Sidebar({ state, config }) {
|
|
98
|
-
return (_jsxs(Box, { flexDirection: "column", borderStyle: "single", borderColor: theme.border, width: SIDEBAR_WIDTH, paddingX: 1, flexShrink: 0, overflow: "hidden", children: [_jsx(SessionSection, { state: state, config: config }), _jsx(McpSection, { state: state, config: config }), _jsx(MetricsSection, { state: state }), _jsx(
|
|
98
|
+
return (_jsxs(Box, { flexDirection: "column", borderStyle: "single", borderColor: theme.border, width: SIDEBAR_WIDTH, paddingX: 1, flexShrink: 0, overflow: "hidden", children: [_jsx(SessionSection, { state: state, config: config }), _jsx(McpSection, { state: state, config: config }), _jsx(MetricsSection, { state: state }), _jsx(PhaseSection, { state: state }), _jsx(PlanSection, { state: state }), _jsx(BuildSection, { state: state, config: config })] }));
|
|
99
99
|
}
|
package/package.json
CHANGED