@nextclaw/ui 0.11.3 → 0.11.5
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/CHANGELOG.md +15 -0
- package/dist/assets/{ChannelsList-CKl1Zg8f.js → ChannelsList-ClgglSCM.js} +1 -1
- package/dist/assets/ChatPage-_RQ-15hd.js +37 -0
- package/dist/assets/{DocBrowser-DYRBs4-z.js → DocBrowser-CEN7WszT.js} +1 -1
- package/dist/assets/{LogoBadge-33Qlv3Hg.js → LogoBadge-CVhsEo0l.js} +1 -1
- package/dist/assets/{MarketplacePage-B8BZVtjV.js → MarketplacePage-DsC673tU.js} +1 -1
- package/dist/assets/{McpMarketplacePage-BRuE5fJJ.js → McpMarketplacePage-CBaj_rSP.js} +1 -1
- package/dist/assets/{ModelConfig-BiFblwO-.js → ModelConfig-BLchzPTQ.js} +1 -1
- package/dist/assets/{ProvidersList-9goRgHE4.js → ProvidersList-Djbu1TO0.js} +1 -1
- package/dist/assets/{RemoteAccessPage-5vCxZPS6.js → RemoteAccessPage-oQwNGaf6.js} +1 -1
- package/dist/assets/{RuntimeConfig-BmDFHBdW.js → RuntimeConfig-DQMcGY1J.js} +1 -1
- package/dist/assets/{SearchConfig-CJx5CKwG.js → SearchConfig-COiDtpe8.js} +1 -1
- package/dist/assets/{SecretsConfig-B91efXoK.js → SecretsConfig-Ct-H-00g.js} +1 -1
- package/dist/assets/{SessionsConfig-CbFPVmx3.js → SessionsConfig-9iDn5nNW.js} +1 -1
- package/dist/assets/index-ClK2uqZ_.css +1 -0
- package/dist/assets/index-DOioYtlD.js +8 -0
- package/dist/assets/{label-BnSDpjhL.js → label-CGGD8iAm.js} +1 -1
- package/dist/assets/{ncp-session-adapter-w8ZHprab.js → ncp-session-adapter-qs80LdAm.js} +1 -1
- package/dist/assets/{page-layout-B1RIu5-r.js → page-layout-D-XTwxQY.js} +1 -1
- package/dist/assets/{popover-ChzbCIfO.js → popover-D1o13wqM.js} +1 -1
- package/dist/assets/{security-config-eYa6Ovfa.js → security-config-DEUjv2rj.js} +1 -1
- package/dist/assets/{skeleton-D4Eyop0R.js → skeleton-BAHz3XuH.js} +1 -1
- package/dist/assets/{status-dot-CrCw5tkJ.js → status-dot-DRhDa82q.js} +1 -1
- package/dist/assets/{switch-C3vVTpfU.js → switch-DXjAXRVB.js} +1 -1
- package/dist/assets/{tabs-custom-Ilrgt6n1.js → tabs-custom-yMLD4FfD.js} +1 -1
- package/dist/assets/{useConfirmDialog-BeaFLDO8.js → useConfirmDialog-Da7xoSDD.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +4 -4
- package/src/App.test.tsx +0 -1
- package/src/components/chat/adapters/chat-message.adapter.test.ts +0 -7
- package/src/components/chat/adapters/chat-message.adapter.ts +0 -5
- package/src/components/chat/containers/chat-message-list.container.tsx +0 -2
- package/src/lib/i18n.chat.ts +0 -2
- package/dist/assets/ChatPage-BJgO27mk.js +0 -37
- package/dist/assets/index-BtAuUyww.css +0 -1
- package/dist/assets/index-COJomMe9.js +0 -8
|
@@ -17,8 +17,6 @@ const defaultTexts = {
|
|
|
17
17
|
reasoningLabel: "Reasoning",
|
|
18
18
|
toolCallLabel: "Tool Call",
|
|
19
19
|
toolResultLabel: "Tool Result",
|
|
20
|
-
toolInputLabel: "Input Summary",
|
|
21
|
-
toolCallIdLabel: "Call ID",
|
|
22
20
|
toolNoOutputLabel: "No output",
|
|
23
21
|
toolOutputLabel: "View Output",
|
|
24
22
|
toolStatusPreparingLabel: "Preparing",
|
|
@@ -87,9 +85,6 @@ it("maps markdown, reasoning, and tool parts into UI view models", () => {
|
|
|
87
85
|
expect(adapted[0]?.parts[2]).toMatchObject({
|
|
88
86
|
type: "tool-card",
|
|
89
87
|
card: {
|
|
90
|
-
callId: "call-1",
|
|
91
|
-
callIdLabel: "Call ID",
|
|
92
|
-
inputLabel: "Input Summary",
|
|
93
88
|
statusLabel: "Completed",
|
|
94
89
|
statusTone: "success",
|
|
95
90
|
titleLabel: "Tool Result",
|
|
@@ -133,7 +128,6 @@ it("maps tool lifecycle statuses into visible card state feedback", () => {
|
|
|
133
128
|
statusTone: "running",
|
|
134
129
|
statusLabel: "Preparing",
|
|
135
130
|
titleLabel: "Tool Call",
|
|
136
|
-
callId: "call-prep",
|
|
137
131
|
},
|
|
138
132
|
});
|
|
139
133
|
expect(adapted[0]?.parts[1]).toMatchObject({
|
|
@@ -143,7 +137,6 @@ it("maps tool lifecycle statuses into visible card state feedback", () => {
|
|
|
143
137
|
statusLabel: "Failed",
|
|
144
138
|
titleLabel: "Tool Result",
|
|
145
139
|
output: "Command failed",
|
|
146
|
-
callId: "call-error",
|
|
147
140
|
},
|
|
148
141
|
});
|
|
149
142
|
});
|
|
@@ -65,8 +65,6 @@ export type ChatMessageAdapterTexts = {
|
|
|
65
65
|
reasoningLabel: string;
|
|
66
66
|
toolCallLabel: string;
|
|
67
67
|
toolResultLabel: string;
|
|
68
|
-
toolInputLabel: string;
|
|
69
|
-
toolCallIdLabel: string;
|
|
70
68
|
toolNoOutputLabel: string;
|
|
71
69
|
toolOutputLabel: string;
|
|
72
70
|
toolStatusPreparingLabel: string;
|
|
@@ -245,11 +243,8 @@ function buildToolCard(
|
|
|
245
243
|
statusLabel: toolCard.statusLabel,
|
|
246
244
|
titleLabel:
|
|
247
245
|
toolCard.kind === "call" ? texts.toolCallLabel : texts.toolResultLabel,
|
|
248
|
-
inputLabel: texts.toolInputLabel,
|
|
249
246
|
outputLabel: texts.toolOutputLabel,
|
|
250
247
|
emptyLabel: texts.toolNoOutputLabel,
|
|
251
|
-
callIdLabel: texts.toolCallIdLabel,
|
|
252
|
-
callId: toolCard.callId,
|
|
253
248
|
};
|
|
254
249
|
}
|
|
255
250
|
|
|
@@ -46,8 +46,6 @@ export function ChatMessageListContainer(props: ChatMessageListContainerProps) {
|
|
|
46
46
|
reasoningLabel: t("chatReasoning"),
|
|
47
47
|
toolCallLabel: t("chatToolCall"),
|
|
48
48
|
toolResultLabel: t("chatToolResult"),
|
|
49
|
-
toolInputLabel: t("chatToolInput"),
|
|
50
|
-
toolCallIdLabel: t("chatToolCallId"),
|
|
51
49
|
toolNoOutputLabel: t("chatToolNoOutput"),
|
|
52
50
|
toolOutputLabel: t("chatToolOutput"),
|
|
53
51
|
toolStatusPreparingLabel: t("chatToolStatusPreparing"),
|
package/src/lib/i18n.chat.ts
CHANGED
|
@@ -70,8 +70,6 @@ export const CHAT_LABELS: Record<string, { zh: string; en: string }> = {
|
|
|
70
70
|
chatRoleMessage: { zh: '消息', en: 'Message' },
|
|
71
71
|
chatToolCall: { zh: '工具调用', en: 'Tool Call' },
|
|
72
72
|
chatToolResult: { zh: '工具结果', en: 'Tool Result' },
|
|
73
|
-
chatToolInput: { zh: '输入摘要', en: 'Input Summary' },
|
|
74
|
-
chatToolCallId: { zh: '调用 ID', en: 'Call ID' },
|
|
75
73
|
chatToolWorkflow: { zh: '工具工作流', en: 'Tool Workflow' },
|
|
76
74
|
chatToolWorkflowDetails: { zh: '展开查看参数和结果', en: 'Expand to view params and results' },
|
|
77
75
|
chatToolOutput: { zh: '查看输出', en: 'View Output' },
|