@kingsoftcloud/agentkit-harness-ui 0.0.30 → 0.0.32
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/studio-client.mjs +78 -78
- package/package.json +2 -2
- package/src/view.mjs +8 -5
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.32",
|
|
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.",
|
|
@@ -99,6 +99,6 @@
|
|
|
99
99
|
"registry": "https://registry.npmjs.org"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@kingsoftcloud/agentkit-harness-core": "0.0.
|
|
102
|
+
"@kingsoftcloud/agentkit-harness-core": "0.0.32"
|
|
103
103
|
}
|
|
104
104
|
}
|
package/src/view.mjs
CHANGED
|
@@ -293,9 +293,10 @@ function modelActivity(opts, state) {
|
|
|
293
293
|
const number = attempt ? (zh ? ` · 第 ${attempt} 次重试` : ` · Attempt ${attempt}`) : '';
|
|
294
294
|
return h('div', { className: 'harness-thought-summary harness-model-activity', role: 'status',
|
|
295
295
|
'data-testid': 'model-backoff', 'data-retry-at': retryAt },
|
|
296
|
-
|
|
297
|
-
h('span', {}, stage + label
|
|
298
|
-
h('span', { 'data-testid': 'model-retry-countdown', 'data-retry-at': retryAt, 'data-retry-language': zh ? 'zh' : 'en' })
|
|
296
|
+
brainIcon('harness-thought-icon'),
|
|
297
|
+
h('span', {}, h('span', { className: 'harness-shimmer' }, stage + label), number),
|
|
298
|
+
h('span', { 'data-testid': 'model-retry-countdown', 'data-retry-at': retryAt, 'data-retry-language': zh ? 'zh' : 'en' }),
|
|
299
|
+
h('span', { className: 'harness-retry-caret', 'aria-hidden': 'true' }));
|
|
299
300
|
}
|
|
300
301
|
const zh = String(opts.locale ?? '').startsWith('zh');
|
|
301
302
|
const compacting = state.modelRequestPurpose === 'compaction', retry = state.modelRequestRetry;
|
|
@@ -306,8 +307,10 @@ function modelActivity(opts, state) {
|
|
|
306
307
|
const number = retry && attempt ? (zh ? ` · 第 ${attempt} 次重试` : ` · Attempt ${attempt}`) : '';
|
|
307
308
|
return h("div", { className: "harness-thought-summary harness-model-activity", role: "status",
|
|
308
309
|
"data-testid": compacting ? "model-compaction" : retry ? "model-retry" : "model-thinking" },
|
|
309
|
-
|
|
310
|
-
h("span", { className: "harness-thought-label harness-thought-label-streaming" },
|
|
310
|
+
brainIcon("harness-thought-icon"),
|
|
311
|
+
h("span", { className: "harness-thought-label harness-thought-label-streaming" },
|
|
312
|
+
h('span', { className: 'harness-shimmer' }, label), number),
|
|
313
|
+
compacting || retry ? h('span', { className: 'harness-retry-caret', 'aria-hidden': 'true' }) : null);
|
|
311
314
|
}
|
|
312
315
|
|
|
313
316
|
function thoughtBlock(item, opts) {
|