@kingsoftcloud/agentkit-harness-ui 0.0.3 → 0.0.4
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/package.json +4 -1
- package/src/tool-detail.mjs +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingsoftcloud/agentkit-harness-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Reusable React task-process UI for AgentKit Native: an explicitly versioned event protocol, a pure state reducer, and an accessible timeline. No Studio/DSH/Python imports; React is a peer dependency.",
|
|
@@ -94,5 +94,8 @@
|
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public",
|
|
96
96
|
"registry": "https://registry.npmjs.org"
|
|
97
|
+
},
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"@kingsoftcloud/agentkit-harness-core": "0.0.4"
|
|
97
100
|
}
|
|
98
101
|
}
|
package/src/tool-detail.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { redactDiagnosticText } from '@kingsoftcloud/agentkit-harness-core/error-presentation';
|
|
1
2
|
// @kingsoftcloud/agentkit-harness-ui — tool call detail blocks
|
|
2
3
|
//
|
|
3
4
|
// One stable bounded detail block per call identity. Presentation consumes
|
|
@@ -201,7 +202,7 @@ export function redactError(error, opts = {}) {
|
|
|
201
202
|
const value = String(error || "");
|
|
202
203
|
// The error color/placement already expresses the type; keep the message
|
|
203
204
|
// itself, bounded. Strip common secret patterns defensively.
|
|
204
|
-
const cleaned = value
|
|
205
|
+
const cleaned = redactDiagnosticText(value, 8192);
|
|
205
206
|
return truncateText(cleaned, { maxLines: 3, maxChars });
|
|
206
207
|
}
|
|
207
208
|
|