@nextclaw/ui 0.11.14 → 0.11.15
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 +10 -0
- package/dist/assets/{ChannelsList-CvK4qHfg.js → ChannelsList-WmCqjuMG.js} +1 -1
- package/dist/assets/ChatPage-vfnUvEdN.js +37 -0
- package/dist/assets/{DocBrowser-BFmW6e-4.js → DocBrowser-Cuds8S4N.js} +1 -1
- package/dist/assets/{LogoBadge-DZL-zQTr.js → LogoBadge-CiukNh5R.js} +1 -1
- package/dist/assets/{MarketplacePage-B__MZRrD.js → MarketplacePage--cCya2vU.js} +1 -1
- package/dist/assets/{McpMarketplacePage-C_VKm1uq.js → McpMarketplacePage-SYy23E4x.js} +1 -1
- package/dist/assets/{ModelConfig-CqJubuwU.js → ModelConfig-D4Nd4HWX.js} +1 -1
- package/dist/assets/{ProvidersList-BoSsFBk5.js → ProvidersList-k95kUPqD.js} +1 -1
- package/dist/assets/{RemoteAccessPage-S1ChRWMX.js → RemoteAccessPage-XjDtIQV4.js} +1 -1
- package/dist/assets/{RuntimeConfig-WnFUsayT.js → RuntimeConfig-BR4oBxQ-.js} +1 -1
- package/dist/assets/{SearchConfig-D9V07oqj.js → SearchConfig-fJjFykmH.js} +1 -1
- package/dist/assets/{SecretsConfig-Ci8sEzaV.js → SecretsConfig-D7CxxH1q.js} +1 -1
- package/dist/assets/{SessionsConfig-5Nznhx9P.js → SessionsConfig-2hYobMkj.js} +1 -1
- package/dist/assets/{chat-session-display-D0ZcEkUq.js → chat-session-display-BeoRHq9x.js} +1 -1
- package/dist/assets/{index-BvCYcN48.js → index-DWrpxFk0.js} +2 -2
- package/dist/assets/{label-AurG3ZpO.js → label-C2uGecRa.js} +1 -1
- package/dist/assets/{page-layout-Q2hHkfJy.js → page-layout-DICppNFk.js} +1 -1
- package/dist/assets/{popover-BKInm43u.js → popover-DoacXI3f.js} +1 -1
- package/dist/assets/{security-config-BbPGNJAB.js → security-config-54LcQtst.js} +1 -1
- package/dist/assets/{skeleton-CuKw6-Ww.js → skeleton-DjjQR4NY.js} +1 -1
- package/dist/assets/{status-dot-DLk8UxLB.js → status-dot-OjV8JCSV.js} +1 -1
- package/dist/assets/{switch-BxMSKsQS.js → switch-Dvd2FqUB.js} +1 -1
- package/dist/assets/{tabs-custom-B6gK-RY6.js → tabs-custom-DlwuO0Gw.js} +1 -1
- package/dist/assets/{useConfirmDialog-Dth62a0a.js → useConfirmDialog-BuB9l_2r.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/src/components/chat/adapters/chat-message.adapter.test.ts +40 -0
- package/src/components/chat/adapters/chat-message.adapter.ts +11 -0
- package/src/components/chat/adapters/chat-message.subagent-tool-card.ts +125 -0
- package/src/components/chat/ncp/NcpChatPage.tsx +17 -33
- package/src/components/config/README.md +1 -1
- package/dist/assets/ChatPage-Co3GqIVP.js +0 -37
- package/src/components/chat/ncp/ncp-chat-realtime-reload.test.ts +0 -44
- package/src/components/chat/ncp/ncp-chat-realtime-reload.ts +0 -20
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { resolveNcpChatRealtimeReloadAction } from '@/components/chat/ncp/ncp-chat-realtime-reload';
|
|
3
|
-
|
|
4
|
-
describe('resolveNcpChatRealtimeReloadAction', () => {
|
|
5
|
-
it('defers reload while the page is hydrating', () => {
|
|
6
|
-
expect(
|
|
7
|
-
resolveNcpChatRealtimeReloadAction({
|
|
8
|
-
isHydrating: true,
|
|
9
|
-
isRunning: false,
|
|
10
|
-
isSending: false,
|
|
11
|
-
}),
|
|
12
|
-
).toBe('defer');
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('skips reload while the current session run is still active', () => {
|
|
16
|
-
expect(
|
|
17
|
-
resolveNcpChatRealtimeReloadAction({
|
|
18
|
-
isHydrating: false,
|
|
19
|
-
isRunning: true,
|
|
20
|
-
isSending: false,
|
|
21
|
-
}),
|
|
22
|
-
).toBe('skip');
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('skips reload while the current page is still sending', () => {
|
|
26
|
-
expect(
|
|
27
|
-
resolveNcpChatRealtimeReloadAction({
|
|
28
|
-
isHydrating: false,
|
|
29
|
-
isRunning: false,
|
|
30
|
-
isSending: true,
|
|
31
|
-
}),
|
|
32
|
-
).toBe('skip');
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it('reloads immediately once the current page is idle', () => {
|
|
36
|
-
expect(
|
|
37
|
-
resolveNcpChatRealtimeReloadAction({
|
|
38
|
-
isHydrating: false,
|
|
39
|
-
isRunning: false,
|
|
40
|
-
isSending: false,
|
|
41
|
-
}),
|
|
42
|
-
).toBe('reload');
|
|
43
|
-
});
|
|
44
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type NcpChatRealtimeReloadAction = "reload" | "defer" | "skip";
|
|
2
|
-
|
|
3
|
-
export function resolveNcpChatRealtimeReloadAction(params: {
|
|
4
|
-
isHydrating: boolean;
|
|
5
|
-
isRunning: boolean;
|
|
6
|
-
isSending: boolean;
|
|
7
|
-
}): NcpChatRealtimeReloadAction {
|
|
8
|
-
if (params.isHydrating) {
|
|
9
|
-
return "defer";
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// While the current page owns the active run, live stream events already
|
|
13
|
-
// update the conversation state. Rehydrating from realtime session summaries
|
|
14
|
-
// here can reintroduce transient "running" state after the run has ended.
|
|
15
|
-
if (params.isRunning || params.isSending) {
|
|
16
|
-
return "skip";
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return "reload";
|
|
20
|
-
}
|