@qilin-agent/client-ui-chat 0.0.0-stage → 3.1.3
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/LICENSE +21 -0
- package/README.i18n.yaml +55 -0
- package/README.md +122 -2
- package/README.zh.md +124 -0
- package/lib/client.js +13227 -0
- package/lib/index.js +54 -0
- package/lib/types/chat-settings.d.ts +47 -0
- package/lib/types/client/apply.d.ts +10 -0
- package/lib/types/client/chat/ApprovalCommand.d.ts +20 -0
- package/lib/types/client/chat/AssistantMarkdown.d.ts +47 -0
- package/lib/types/client/chat/AssistantNodeView.d.ts +7 -0
- package/lib/types/client/chat/ChatGroupSeat.d.ts +14 -0
- package/lib/types/client/chat/ChatNodeSeat.d.ts +22 -0
- package/lib/types/client/chat/ChatView.d.ts +7 -0
- package/lib/types/client/chat/CommandNodeView.d.ts +9 -0
- package/lib/types/client/chat/CompactionCommandCard.d.ts +8 -0
- package/lib/types/client/chat/CompactionItem.d.ts +19 -0
- package/lib/types/client/chat/ContextBody.d.ts +131 -0
- package/lib/types/client/chat/ContextInjectionRow.d.ts +26 -0
- package/lib/types/client/chat/GenericCommandCard.d.ts +9 -0
- package/lib/types/client/chat/MessageIconActions.d.ts +37 -0
- package/lib/types/client/chat/MessageItem.d.ts +42 -0
- package/lib/types/client/chat/ReasoningRow.d.ts +20 -0
- package/lib/types/client/chat/RunningSeal.d.ts +6 -0
- package/lib/types/client/chat/RunningStatus.d.ts +13 -0
- package/lib/types/client/chat/StatsPills.d.ts +71 -0
- package/lib/types/client/chat/SystemPromptRow.d.ts +22 -0
- package/lib/types/client/chat/TurnNavigator.d.ts +28 -0
- package/lib/types/client/chat/TurnProcessNodeView.d.ts +4 -0
- package/lib/types/client/chat/TurnTailNodeView.d.ts +7 -0
- package/lib/types/client/chat/TurnTriggerNodeView.d.ts +4 -0
- package/lib/types/client/chat/TurnUsagePanel.d.ts +15 -0
- package/lib/types/client/chat/message-chrome.d.ts +50 -0
- package/lib/types/client/chat/register-node-renderers.d.ts +14 -0
- package/lib/types/client/chat/render-entry.d.ts +9 -0
- package/lib/types/client/chat/searchable-hidden.d.ts +9 -0
- package/lib/types/client/chat/stat-dialog.d.ts +20 -0
- package/lib/types/client/chat/step-process.d.ts +11 -0
- package/lib/types/client/chat/token-format.d.ts +25 -0
- package/lib/types/client/chat/turn-assistant.d.ts +8 -0
- package/lib/types/client/chat/turn-rail-items.d.ts +37 -0
- package/lib/types/client/chat/turn-trigger.d.ts +15 -0
- package/lib/types/client/chat/use-calendar-day.d.ts +6 -0
- package/lib/types/client/chat/use-chat-navigation.d.ts +69 -0
- package/lib/types/client/chat/use-chat-reading.d.ts +102 -0
- package/lib/types/client/chat/use-chat-scroll.d.ts +35 -0
- package/lib/types/client/chat/use-chat-viewport.d.ts +169 -0
- package/lib/types/client/chat/use-disclosure.d.ts +15 -0
- package/lib/types/client/chat/use-process-scroll.d.ts +23 -0
- package/lib/types/client/chat/use-scroll-follow.d.ts +105 -0
- package/lib/types/client/chat/use-turn-data.d.ts +9 -0
- package/lib/types/client/contract/assistant-content.d.ts +9 -0
- package/lib/types/client/contract/chat-nodes.d.ts +108 -0
- package/lib/types/client/contract/chat-visibility.d.ts +10 -0
- package/lib/types/client/contract/process-groups.d.ts +25 -0
- package/lib/types/client/contract/slots.d.ts +258 -0
- package/lib/types/client/contract/snapshot.d.ts +105 -0
- package/lib/types/client/contract/store.d.ts +13 -0
- package/lib/types/client/contract/turn-metrics.d.ts +19 -0
- package/lib/types/client/contract/turn-process.d.ts +40 -0
- package/lib/types/client/conversation-nodes/assistant.d.ts +36 -0
- package/lib/types/client/conversation-nodes/chat-snapshot-builder.d.ts +103 -0
- package/lib/types/client/conversation-nodes/command.d.ts +53 -0
- package/lib/types/client/conversation-nodes/common.d.ts +41 -0
- package/lib/types/client/conversation-nodes/compaction.d.ts +21 -0
- package/lib/types/client/conversation-nodes/event-projection.d.ts +63 -0
- package/lib/types/client/conversation-nodes/fallback.d.ts +16 -0
- package/lib/types/client/conversation-nodes/inbox.d.ts +40 -0
- package/lib/types/client/conversation-nodes/message.d.ts +42 -0
- package/lib/types/client/conversation-nodes/process-activity.d.ts +9 -0
- package/lib/types/client/conversation-nodes/process-groups.d.ts +27 -0
- package/lib/types/client/conversation-nodes/register.d.ts +7 -0
- package/lib/types/client/conversation-nodes/request-prompt.d.ts +44 -0
- package/lib/types/client/conversation-nodes/retry.d.ts +22 -0
- package/lib/types/client/conversation-nodes/tool.d.ts +23 -0
- package/lib/types/client/conversation-nodes/turn-error.d.ts +30 -0
- package/lib/types/client/conversation-nodes/turn-max-tokens.d.ts +22 -0
- package/lib/types/client/conversation-nodes/turn-navigation.d.ts +17 -0
- package/lib/types/client/conversation-nodes/turn-process-presentation.d.ts +30 -0
- package/lib/types/client/conversation-nodes/turn-process.d.ts +34 -0
- package/lib/types/client/conversation-nodes/turn-tail.d.ts +28 -0
- package/lib/types/client/index.d.ts +38 -0
- package/lib/types/client/locale.d.ts +378 -0
- package/lib/types/client/markdown-labels.d.ts +10 -0
- package/lib/types/client/model/conversation-context.d.ts +21 -0
- package/lib/types/client/model/tool-call-tree.d.ts +45 -0
- package/lib/types/client/performance-usage.d.ts +20 -0
- package/lib/types/client/presentation-policy.d.ts +35 -0
- package/lib/types/client/settings/LinkOpeningRow.d.ts +24 -0
- package/lib/types/client/settings/PerformanceUsageRow.d.ts +22 -0
- package/lib/types/client/settings/PreferenceRow.d.ts +18 -0
- package/lib/types/client/settings/TranscriptViewRow.d.ts +22 -0
- package/lib/types/client/stores.d.ts +20 -0
- package/lib/types/client/transcript-view.d.ts +25 -0
- package/lib/types/index.d.ts +6 -0
- package/package.json +106 -3
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
/** Chat-owned locale namespace and dictionaries. */
|
|
2
|
+
/** Namespace for Chat target, node, statistics, and details copy. */
|
|
3
|
+
export declare const NS = "chat";
|
|
4
|
+
/** Simplified Chinese dictionary and key-set source of truth. */
|
|
5
|
+
export declare const zh: {
|
|
6
|
+
'view.chat': string;
|
|
7
|
+
'image.open': string;
|
|
8
|
+
'image.loading': string;
|
|
9
|
+
'image.failed': string;
|
|
10
|
+
'image.dialog': string;
|
|
11
|
+
'image.close': string;
|
|
12
|
+
'number.groupSeparator': string;
|
|
13
|
+
'duration.compactSeconds': string;
|
|
14
|
+
'duration.compactMinutes': string;
|
|
15
|
+
'duration.milliseconds': string;
|
|
16
|
+
'stats.counts': string;
|
|
17
|
+
'stats.cacheHit': string;
|
|
18
|
+
'stats.dialog.title': string;
|
|
19
|
+
'stats.dialog.usageTitle': string;
|
|
20
|
+
'stats.dialog.llmTime': string;
|
|
21
|
+
'stats.dialog.toolTime': string;
|
|
22
|
+
'stats.dialog.ttft': string;
|
|
23
|
+
'stats.dialog.speed': string;
|
|
24
|
+
'chat.loadingHistory': string;
|
|
25
|
+
'chat.loadError': string;
|
|
26
|
+
'chat.loadOlder': string;
|
|
27
|
+
'chat.toBottom': string;
|
|
28
|
+
'chat.running': string;
|
|
29
|
+
'chat.runningFor': string;
|
|
30
|
+
'chat.turnNavigation.label': string;
|
|
31
|
+
'chat.turnNavigation.jump': string;
|
|
32
|
+
'chat.turnNavigation.jumpLoad': string;
|
|
33
|
+
'chat.turnNavigation.turn': string;
|
|
34
|
+
'settings.transcript.title': string;
|
|
35
|
+
'settings.transcript.description': string;
|
|
36
|
+
'settings.transcript.compact': string;
|
|
37
|
+
'settings.transcript.standard': string;
|
|
38
|
+
'settings.transcript.detailed': string;
|
|
39
|
+
'settings.transcript.verbose': string;
|
|
40
|
+
'settings.performance.title': string;
|
|
41
|
+
'settings.performance.description': string;
|
|
42
|
+
'settings.performance.compact': string;
|
|
43
|
+
'settings.performance.detailed': string;
|
|
44
|
+
'settings.links.title': string;
|
|
45
|
+
'settings.links.description': string;
|
|
46
|
+
'settings.links.sidebar': string;
|
|
47
|
+
'settings.links.newTab': string;
|
|
48
|
+
'fileOpen.title': string;
|
|
49
|
+
'fileOpen.unknown': string;
|
|
50
|
+
'message.extraBlock': string;
|
|
51
|
+
'message.systemPrompt': string;
|
|
52
|
+
'message.systemPromptUpdate': string;
|
|
53
|
+
'message.contextInjection': string;
|
|
54
|
+
'message.toolAdded': string;
|
|
55
|
+
'message.toolRemoved': string;
|
|
56
|
+
'message.toolsAdded': string;
|
|
57
|
+
'message.toolsAddedCount': string;
|
|
58
|
+
'message.toolsChanged': string;
|
|
59
|
+
'message.toolsRemoved': string;
|
|
60
|
+
'message.toolsRemovedCount': string;
|
|
61
|
+
'message.toolsUpdated': string;
|
|
62
|
+
'message.contextRecall': string;
|
|
63
|
+
'message.referenceSummary': string;
|
|
64
|
+
'message.referenceSeparator': string;
|
|
65
|
+
'message.context.instructions.loaded': string;
|
|
66
|
+
'message.context.instructions.added': string;
|
|
67
|
+
'message.context.instructions.updated': string;
|
|
68
|
+
'message.context.instructions.removed': string;
|
|
69
|
+
'message.context.catalog.replaced': string;
|
|
70
|
+
'message.context.catalog.more': string;
|
|
71
|
+
'message.context.snapshot.supersedes': string;
|
|
72
|
+
'message.context.relay.from': string;
|
|
73
|
+
'message.context.recall.counts': string;
|
|
74
|
+
'message.context.recall.truncated': string;
|
|
75
|
+
'message.compaction': string;
|
|
76
|
+
'message.compaction.running': string;
|
|
77
|
+
'message.compaction.completed': string;
|
|
78
|
+
'message.compaction.expand': string;
|
|
79
|
+
'message.compaction.unavailable': string;
|
|
80
|
+
'message.compaction.commandTitle': string;
|
|
81
|
+
'message.think': string;
|
|
82
|
+
'message.unknownSurface': string;
|
|
83
|
+
'message.unknownBlock': string;
|
|
84
|
+
'message.turnProcess.worked': string;
|
|
85
|
+
'message.turnProcess.took': string;
|
|
86
|
+
'message.turnProcess.failed': string;
|
|
87
|
+
'message.turnProcess.toolCalls.one': string;
|
|
88
|
+
'message.turnProcess.toolCalls.other': string;
|
|
89
|
+
'message.turnProcess.messages.one': string;
|
|
90
|
+
'message.turnProcess.messages.other': string;
|
|
91
|
+
'message.turnProcess.subagents.one': string;
|
|
92
|
+
'message.turnProcess.subagents.other': string;
|
|
93
|
+
'message.turnProcess.thoughtForAWhile': string;
|
|
94
|
+
'message.turnProcess.separator': string;
|
|
95
|
+
'message.stepProcess.thinking': string;
|
|
96
|
+
'message.stepProcess.read': string;
|
|
97
|
+
'message.stepProcess.readImage': string;
|
|
98
|
+
'message.stepProcess.write': string;
|
|
99
|
+
'message.stepProcess.search': string;
|
|
100
|
+
'message.stepProcess.edit': string;
|
|
101
|
+
'message.stepProcess.commands': string;
|
|
102
|
+
'message.stepProcess.code': string;
|
|
103
|
+
'message.stepProcess.webSearch': string;
|
|
104
|
+
'message.stepProcess.webFetch': string;
|
|
105
|
+
'message.stepProcess.subagents': string;
|
|
106
|
+
'message.stepProcess.plan': string;
|
|
107
|
+
'message.stepProcess.questions': string;
|
|
108
|
+
'message.stepProcess.tools': string;
|
|
109
|
+
'message.stepProcess.prepare.read': string;
|
|
110
|
+
'message.stepProcess.prepare.readImage': string;
|
|
111
|
+
'message.stepProcess.prepare.write': string;
|
|
112
|
+
'message.stepProcess.prepare.search': string;
|
|
113
|
+
'message.stepProcess.prepare.edit': string;
|
|
114
|
+
'message.stepProcess.prepare.commands': string;
|
|
115
|
+
'message.stepProcess.prepare.code': string;
|
|
116
|
+
'message.stepProcess.prepare.webSearch': string;
|
|
117
|
+
'message.stepProcess.prepare.webFetch': string;
|
|
118
|
+
'message.stepProcess.prepare.subagents': string;
|
|
119
|
+
'message.stepProcess.prepare.plan': string;
|
|
120
|
+
'message.stepProcess.prepare.questions': string;
|
|
121
|
+
'message.stepProcess.prepare.tools': string;
|
|
122
|
+
'message.stepProcess.done.thinking': string;
|
|
123
|
+
'message.stepProcess.done.read': string;
|
|
124
|
+
'message.stepProcess.done.readImage': string;
|
|
125
|
+
'message.stepProcess.done.write': string;
|
|
126
|
+
'message.stepProcess.done.search': string;
|
|
127
|
+
'message.stepProcess.done.edit': string;
|
|
128
|
+
'message.stepProcess.done.commands': string;
|
|
129
|
+
'message.stepProcess.done.code': string;
|
|
130
|
+
'message.stepProcess.done.webSearch': string;
|
|
131
|
+
'message.stepProcess.done.webFetch': string;
|
|
132
|
+
'message.stepProcess.done.subagents': string;
|
|
133
|
+
'message.stepProcess.done.plan': string;
|
|
134
|
+
'message.stepProcess.done.questions': string;
|
|
135
|
+
'message.stepProcess.done.tools': string;
|
|
136
|
+
'message.stepProcess.joinTwo': string;
|
|
137
|
+
'message.stepProcess.comma': string;
|
|
138
|
+
'message.stepProcess.sharedPrefix': string;
|
|
139
|
+
'message.stepProcess.more': string;
|
|
140
|
+
'message.trigger.request': string;
|
|
141
|
+
'message.trigger.goal': string;
|
|
142
|
+
'message.trigger.agent': string;
|
|
143
|
+
'message.trigger.team': string;
|
|
144
|
+
'message.trigger.subagent': string;
|
|
145
|
+
'message.trigger.github': string;
|
|
146
|
+
'message.trigger.webhook': string;
|
|
147
|
+
'message.trigger.schedule': string;
|
|
148
|
+
'message.trigger.job': string;
|
|
149
|
+
'message.trigger.plugin': string;
|
|
150
|
+
'message.trigger.explanation': string;
|
|
151
|
+
'message.stopped': string;
|
|
152
|
+
'message.branch': string;
|
|
153
|
+
'message.branchUnavailable': string;
|
|
154
|
+
'message.edit': string;
|
|
155
|
+
'message.retry.active': string;
|
|
156
|
+
'message.retry.cancelled': string;
|
|
157
|
+
'message.retry.started': string;
|
|
158
|
+
'message.retry.scheduled': string;
|
|
159
|
+
'message.retry.status': string;
|
|
160
|
+
'message.retry.delay': string;
|
|
161
|
+
'message.retry.failure': string;
|
|
162
|
+
'message.failure.auth': string;
|
|
163
|
+
'message.turnError': string;
|
|
164
|
+
'message.maxTokens': string;
|
|
165
|
+
'message.maxTokens.hint': string;
|
|
166
|
+
'message.tokensPerSecond': string;
|
|
167
|
+
'message.turnUsage.title': string;
|
|
168
|
+
'message.turnUsage.consumed': string;
|
|
169
|
+
'message.turnUsage.model': string;
|
|
170
|
+
'message.turnUsage.cacheHit': string;
|
|
171
|
+
'message.turnUsage.input': string;
|
|
172
|
+
'message.turnUsage.cacheRead': string;
|
|
173
|
+
'message.turnUsage.cacheWrite': string;
|
|
174
|
+
'message.turnUsage.output': string;
|
|
175
|
+
'message.turnUsage.reasoning': string;
|
|
176
|
+
'message.turnUsage.count': string;
|
|
177
|
+
'duration.secondUnit': string;
|
|
178
|
+
'duration.minuteUnit': string;
|
|
179
|
+
'duration.hourUnit': string;
|
|
180
|
+
'command.running': string;
|
|
181
|
+
'command.failed': string;
|
|
182
|
+
'command.done': string;
|
|
183
|
+
'command.title': string;
|
|
184
|
+
'row.running': string;
|
|
185
|
+
'row.failed': string;
|
|
186
|
+
'json.truncated': string;
|
|
187
|
+
'clock.md': string;
|
|
188
|
+
'clock.ymd': string;
|
|
189
|
+
};
|
|
190
|
+
/** Chat dictionary key union. */
|
|
191
|
+
export type ChatKey = keyof typeof zh;
|
|
192
|
+
/** English dictionary, checked against the Chinese key set. */
|
|
193
|
+
export declare const en: {
|
|
194
|
+
'view.chat': string;
|
|
195
|
+
'image.open': string;
|
|
196
|
+
'image.loading': string;
|
|
197
|
+
'image.failed': string;
|
|
198
|
+
'image.dialog': string;
|
|
199
|
+
'image.close': string;
|
|
200
|
+
'number.groupSeparator': string;
|
|
201
|
+
'duration.compactSeconds': string;
|
|
202
|
+
'duration.compactMinutes': string;
|
|
203
|
+
'duration.milliseconds': string;
|
|
204
|
+
'stats.counts': string;
|
|
205
|
+
'stats.cacheHit': string;
|
|
206
|
+
'stats.dialog.title': string;
|
|
207
|
+
'stats.dialog.usageTitle': string;
|
|
208
|
+
'stats.dialog.llmTime': string;
|
|
209
|
+
'stats.dialog.toolTime': string;
|
|
210
|
+
'stats.dialog.ttft': string;
|
|
211
|
+
'stats.dialog.speed': string;
|
|
212
|
+
'chat.loadingHistory': string;
|
|
213
|
+
'chat.loadError': string;
|
|
214
|
+
'chat.loadOlder': string;
|
|
215
|
+
'chat.toBottom': string;
|
|
216
|
+
'chat.running': string;
|
|
217
|
+
'chat.runningFor': string;
|
|
218
|
+
'chat.turnNavigation.label': string;
|
|
219
|
+
'chat.turnNavigation.jump': string;
|
|
220
|
+
'chat.turnNavigation.jumpLoad': string;
|
|
221
|
+
'chat.turnNavigation.turn': string;
|
|
222
|
+
'settings.transcript.title': string;
|
|
223
|
+
'settings.transcript.description': string;
|
|
224
|
+
'settings.transcript.compact': string;
|
|
225
|
+
'settings.transcript.standard': string;
|
|
226
|
+
'settings.transcript.detailed': string;
|
|
227
|
+
'settings.transcript.verbose': string;
|
|
228
|
+
'settings.performance.title': string;
|
|
229
|
+
'settings.performance.description': string;
|
|
230
|
+
'settings.performance.compact': string;
|
|
231
|
+
'settings.performance.detailed': string;
|
|
232
|
+
'settings.links.title': string;
|
|
233
|
+
'settings.links.description': string;
|
|
234
|
+
'settings.links.sidebar': string;
|
|
235
|
+
'settings.links.newTab': string;
|
|
236
|
+
'fileOpen.title': string;
|
|
237
|
+
'fileOpen.unknown': string;
|
|
238
|
+
'message.extraBlock': string;
|
|
239
|
+
'message.systemPrompt': string;
|
|
240
|
+
'message.systemPromptUpdate': string;
|
|
241
|
+
'message.contextInjection': string;
|
|
242
|
+
'message.toolAdded': string;
|
|
243
|
+
'message.toolRemoved': string;
|
|
244
|
+
'message.toolsAdded': string;
|
|
245
|
+
'message.toolsAddedCount': string;
|
|
246
|
+
'message.toolsChanged': string;
|
|
247
|
+
'message.toolsRemoved': string;
|
|
248
|
+
'message.toolsRemovedCount': string;
|
|
249
|
+
'message.toolsUpdated': string;
|
|
250
|
+
'message.contextRecall': string;
|
|
251
|
+
'message.referenceSummary': string;
|
|
252
|
+
'message.referenceSeparator': string;
|
|
253
|
+
'message.context.instructions.loaded': string;
|
|
254
|
+
'message.context.instructions.added': string;
|
|
255
|
+
'message.context.instructions.updated': string;
|
|
256
|
+
'message.context.instructions.removed': string;
|
|
257
|
+
'message.context.catalog.replaced': string;
|
|
258
|
+
'message.context.catalog.more': string;
|
|
259
|
+
'message.context.snapshot.supersedes': string;
|
|
260
|
+
'message.context.relay.from': string;
|
|
261
|
+
'message.context.recall.counts': string;
|
|
262
|
+
'message.context.recall.truncated': string;
|
|
263
|
+
'message.compaction': string;
|
|
264
|
+
'message.compaction.running': string;
|
|
265
|
+
'message.compaction.completed': string;
|
|
266
|
+
'message.compaction.expand': string;
|
|
267
|
+
'message.compaction.unavailable': string;
|
|
268
|
+
'message.compaction.commandTitle': string;
|
|
269
|
+
'message.think': string;
|
|
270
|
+
'message.unknownSurface': string;
|
|
271
|
+
'message.unknownBlock': string;
|
|
272
|
+
'message.turnProcess.worked': string;
|
|
273
|
+
'message.turnProcess.took': string;
|
|
274
|
+
'message.turnProcess.failed': string;
|
|
275
|
+
'message.turnProcess.toolCalls.one': string;
|
|
276
|
+
'message.turnProcess.toolCalls.other': string;
|
|
277
|
+
'message.turnProcess.messages.one': string;
|
|
278
|
+
'message.turnProcess.messages.other': string;
|
|
279
|
+
'message.turnProcess.subagents.one': string;
|
|
280
|
+
'message.turnProcess.subagents.other': string;
|
|
281
|
+
'message.turnProcess.thoughtForAWhile': string;
|
|
282
|
+
'message.turnProcess.separator': string;
|
|
283
|
+
'message.stepProcess.thinking': string;
|
|
284
|
+
'message.stepProcess.read': string;
|
|
285
|
+
'message.stepProcess.readImage': string;
|
|
286
|
+
'message.stepProcess.write': string;
|
|
287
|
+
'message.stepProcess.search': string;
|
|
288
|
+
'message.stepProcess.edit': string;
|
|
289
|
+
'message.stepProcess.commands': string;
|
|
290
|
+
'message.stepProcess.code': string;
|
|
291
|
+
'message.stepProcess.webSearch': string;
|
|
292
|
+
'message.stepProcess.webFetch': string;
|
|
293
|
+
'message.stepProcess.subagents': string;
|
|
294
|
+
'message.stepProcess.plan': string;
|
|
295
|
+
'message.stepProcess.questions': string;
|
|
296
|
+
'message.stepProcess.tools': string;
|
|
297
|
+
'message.stepProcess.prepare.read': string;
|
|
298
|
+
'message.stepProcess.prepare.readImage': string;
|
|
299
|
+
'message.stepProcess.prepare.write': string;
|
|
300
|
+
'message.stepProcess.prepare.search': string;
|
|
301
|
+
'message.stepProcess.prepare.edit': string;
|
|
302
|
+
'message.stepProcess.prepare.commands': string;
|
|
303
|
+
'message.stepProcess.prepare.code': string;
|
|
304
|
+
'message.stepProcess.prepare.webSearch': string;
|
|
305
|
+
'message.stepProcess.prepare.webFetch': string;
|
|
306
|
+
'message.stepProcess.prepare.subagents': string;
|
|
307
|
+
'message.stepProcess.prepare.plan': string;
|
|
308
|
+
'message.stepProcess.prepare.questions': string;
|
|
309
|
+
'message.stepProcess.prepare.tools': string;
|
|
310
|
+
'message.stepProcess.done.thinking': string;
|
|
311
|
+
'message.stepProcess.done.read': string;
|
|
312
|
+
'message.stepProcess.done.readImage': string;
|
|
313
|
+
'message.stepProcess.done.write': string;
|
|
314
|
+
'message.stepProcess.done.search': string;
|
|
315
|
+
'message.stepProcess.done.edit': string;
|
|
316
|
+
'message.stepProcess.done.commands': string;
|
|
317
|
+
'message.stepProcess.done.code': string;
|
|
318
|
+
'message.stepProcess.done.webSearch': string;
|
|
319
|
+
'message.stepProcess.done.webFetch': string;
|
|
320
|
+
'message.stepProcess.done.subagents': string;
|
|
321
|
+
'message.stepProcess.done.plan': string;
|
|
322
|
+
'message.stepProcess.done.questions': string;
|
|
323
|
+
'message.stepProcess.done.tools': string;
|
|
324
|
+
'message.stepProcess.joinTwo': string;
|
|
325
|
+
'message.stepProcess.comma': string;
|
|
326
|
+
'message.stepProcess.sharedPrefix': string;
|
|
327
|
+
'message.stepProcess.more': string;
|
|
328
|
+
'message.trigger.request': string;
|
|
329
|
+
'message.trigger.goal': string;
|
|
330
|
+
'message.trigger.agent': string;
|
|
331
|
+
'message.trigger.team': string;
|
|
332
|
+
'message.trigger.subagent': string;
|
|
333
|
+
'message.trigger.github': string;
|
|
334
|
+
'message.trigger.webhook': string;
|
|
335
|
+
'message.trigger.schedule': string;
|
|
336
|
+
'message.trigger.job': string;
|
|
337
|
+
'message.trigger.plugin': string;
|
|
338
|
+
'message.trigger.explanation': string;
|
|
339
|
+
'message.stopped': string;
|
|
340
|
+
'message.branch': string;
|
|
341
|
+
'message.branchUnavailable': string;
|
|
342
|
+
'message.edit': string;
|
|
343
|
+
'message.retry.active': string;
|
|
344
|
+
'message.retry.cancelled': string;
|
|
345
|
+
'message.retry.started': string;
|
|
346
|
+
'message.retry.scheduled': string;
|
|
347
|
+
'message.retry.status': string;
|
|
348
|
+
'message.retry.delay': string;
|
|
349
|
+
'message.retry.failure': string;
|
|
350
|
+
'message.failure.auth': string;
|
|
351
|
+
'message.turnError': string;
|
|
352
|
+
'message.maxTokens': string;
|
|
353
|
+
'message.maxTokens.hint': string;
|
|
354
|
+
'message.tokensPerSecond': string;
|
|
355
|
+
'message.turnUsage.title': string;
|
|
356
|
+
'message.turnUsage.consumed': string;
|
|
357
|
+
'message.turnUsage.model': string;
|
|
358
|
+
'message.turnUsage.cacheHit': string;
|
|
359
|
+
'message.turnUsage.input': string;
|
|
360
|
+
'message.turnUsage.cacheRead': string;
|
|
361
|
+
'message.turnUsage.cacheWrite': string;
|
|
362
|
+
'message.turnUsage.output': string;
|
|
363
|
+
'message.turnUsage.reasoning': string;
|
|
364
|
+
'message.turnUsage.count': string;
|
|
365
|
+
'duration.secondUnit': string;
|
|
366
|
+
'duration.minuteUnit': string;
|
|
367
|
+
'duration.hourUnit': string;
|
|
368
|
+
'command.running': string;
|
|
369
|
+
'command.failed': string;
|
|
370
|
+
'command.done': string;
|
|
371
|
+
'command.title': string;
|
|
372
|
+
'row.running': string;
|
|
373
|
+
'row.failed': string;
|
|
374
|
+
'json.truncated': string;
|
|
375
|
+
'clock.md': string;
|
|
376
|
+
'clock.ymd': string;
|
|
377
|
+
};
|
|
378
|
+
//# sourceMappingURL=locale.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Localized copy adapters for Cordis-free Markdown primitives. */
|
|
2
|
+
import type { MarkdownLabels } from '@qilin-agent/client-ui-primitives';
|
|
3
|
+
import type { ChatViewSlotProps } from './contract/slots.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Build the complete Markdown chrome copy for one locale revision.
|
|
6
|
+
* @param t - Chat locale seat.
|
|
7
|
+
* @returns Labels for code fences and footnotes.
|
|
8
|
+
*/
|
|
9
|
+
export declare function markdownLabels(t: ChatViewSlotProps['t']): MarkdownLabels;
|
|
10
|
+
//# sourceMappingURL=markdown-labels.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ConversationNode, ConversationPromptSnapshot } from '@qilin-agent/client-ui-conversation/client';
|
|
2
|
+
/** Operation that started a new append-only model context. */
|
|
3
|
+
export type ConversationContextOriginKind = 'compaction' | 'rewind' | 'rewrite';
|
|
4
|
+
/** One immutable model-context generation reconstructed from surface replacements. */
|
|
5
|
+
export interface ConversationContext {
|
|
6
|
+
/** Zero-based generation within the session; stable across later appends. */
|
|
7
|
+
id: number;
|
|
8
|
+
/** Previous generation in this session; absent for the initial context. */
|
|
9
|
+
parentId?: number;
|
|
10
|
+
/** Why this generation exists; absent for the initial context. */
|
|
11
|
+
origin?: ConversationContextOriginKind;
|
|
12
|
+
/** Event seq of the replacement that created this generation. */
|
|
13
|
+
originSeq?: number;
|
|
14
|
+
/** Unix epoch ms of the replacement that created this generation. */
|
|
15
|
+
createdAt?: number;
|
|
16
|
+
/** Latest request header observed in this generation, inherited until a later header replaces it. */
|
|
17
|
+
prompt?: ConversationPromptSnapshot;
|
|
18
|
+
/** Final frozen nodes for historical generations, or current folded nodes for the tail. */
|
|
19
|
+
nodes: readonly ConversationNode[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=conversation-context.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { SessionEvent } from '@qilin-agent/session/types';
|
|
2
|
+
import type { ConversationNode, RunningToolCall } from '@qilin-agent/client-ui-conversation/client';
|
|
3
|
+
/** Fixed wire-safety ceiling for every recursive Tool call consumer. */
|
|
4
|
+
export declare const MAX_TOOL_CALL_TREE_DEPTH = 256;
|
|
5
|
+
/**
|
|
6
|
+
* Owns PTC dispatch pairing and projects its private parent index into the
|
|
7
|
+
* recursive Tool call contract exposed by conversation snapshots.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ToolCallTree {
|
|
10
|
+
private readonly childrenByParent;
|
|
11
|
+
private readonly depthByCall;
|
|
12
|
+
private readonly projectedByCall;
|
|
13
|
+
private revision;
|
|
14
|
+
private nodesCache;
|
|
15
|
+
private runningCache;
|
|
16
|
+
/** Forget all event-derived child calls before replaying a new window. */
|
|
17
|
+
reset(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Fold one event when it belongs to the PTC dispatch lifecycle.
|
|
20
|
+
* @param event - Session event from the current live or history window.
|
|
21
|
+
* @returns Whether the event was consumed as a child-call lifecycle event.
|
|
22
|
+
*/
|
|
23
|
+
apply(event: SessionEvent): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Attach recursively projected children to all settled roots in a node list.
|
|
26
|
+
* @param nodes - Cache-stable base conversation nodes.
|
|
27
|
+
* @returns The original list when no root changed, otherwise a structurally shared list.
|
|
28
|
+
*/
|
|
29
|
+
projectNodes(nodes: readonly ConversationNode[]): readonly ConversationNode[];
|
|
30
|
+
/**
|
|
31
|
+
* Attach recursively projected children to all running root calls.
|
|
32
|
+
* @param calls - Cache-stable base running calls.
|
|
33
|
+
* @returns The original list when no root changed, otherwise a structurally shared list.
|
|
34
|
+
*/
|
|
35
|
+
projectRunningCalls(calls: readonly RunningToolCall[]): readonly RunningToolCall[];
|
|
36
|
+
private projectBlock;
|
|
37
|
+
/**
|
|
38
|
+
* Accept an edge only when every recursive consumer can traverse it safely.
|
|
39
|
+
* Host-minted ids exclude cycles and current bindings emit one level; a
|
|
40
|
+
* malformed wire/history edge is consumed without hiding the rest of the session.
|
|
41
|
+
*/
|
|
42
|
+
private acceptEdge;
|
|
43
|
+
private wouldCreateCycle;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=tool-call-tree.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Performance detail preference with process-local choices on memory-only settings scopes. */
|
|
2
|
+
import type { ConfigForm } from '@qilin-agent/client-ui-settings/client';
|
|
3
|
+
import { type ChatSettings, type PerformanceUsageMode } from '../chat-settings.ts';
|
|
4
|
+
/** Shared live preference for the settings row and chat statistics. */
|
|
5
|
+
export declare class PerformanceUsagePolicy {
|
|
6
|
+
private readonly host;
|
|
7
|
+
private readonly unsubscribe;
|
|
8
|
+
/** Current choice, reconciled with accepted Host settings when available. */
|
|
9
|
+
readonly mode: import("@qilin-agent/client-store").SnapshotStore<"compact" | "detailed">;
|
|
10
|
+
/** @param host - Chat settings scope, durable on loopback and memory-only elsewhere. */
|
|
11
|
+
constructor(host: ConfigForm<ChatSettings>);
|
|
12
|
+
/** Release the accepted-value subscription. */
|
|
13
|
+
dispose(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Publish a choice immediately and persist it when the scope supports writes.
|
|
16
|
+
* @param mode - Statistics detail selected by the user.
|
|
17
|
+
*/
|
|
18
|
+
setMode(mode: PerformanceUsageMode): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=performance-usage.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime vocabulary derived from the persisted work-details mode. Renderers
|
|
3
|
+
* and seats select single fields of this policy; none of them compares the
|
|
4
|
+
* mode enum, so adding a mode changes only the table below.
|
|
5
|
+
*/
|
|
6
|
+
import type { ObservableSnapshot } from '@qilin-agent/client-store';
|
|
7
|
+
import type { TranscriptViewMode } from '../chat-settings.ts';
|
|
8
|
+
/** Presentation capabilities that one work-details mode enables. */
|
|
9
|
+
export interface ChatPresentationPolicy {
|
|
10
|
+
/** Mode this policy was derived from; for diagnostics, never for branching in renderers. */
|
|
11
|
+
readonly mode: TranscriptViewMode;
|
|
12
|
+
/** Whether a normally completed Turn folds its process rows behind the whole-Turn control. */
|
|
13
|
+
readonly foldCompletedTurns: boolean;
|
|
14
|
+
/** Collapsible group headers for all Turns, historical Turns only, or no Turns. */
|
|
15
|
+
readonly stepGrouping: 'collapsed' | 'history' | 'none';
|
|
16
|
+
/** Show the running command, path, query, or reasoning detail in group titles. */
|
|
17
|
+
readonly liveProcessDetail: boolean;
|
|
18
|
+
/** Whether a settled reasoning row previews its first line beside the Think title. */
|
|
19
|
+
readonly settledReasoningPreview: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Resolve the policy constant for one mode. The same mode always yields the
|
|
23
|
+
* same object, so selectors over a policy see stable identities.
|
|
24
|
+
* @param mode - persisted work-details mode.
|
|
25
|
+
* @returns the mode's presentation policy.
|
|
26
|
+
*/
|
|
27
|
+
export declare function presentationPolicyFor(mode: TranscriptViewMode): ChatPresentationPolicy;
|
|
28
|
+
/**
|
|
29
|
+
* Derive a policy observable from the mode observable without a subscription of
|
|
30
|
+
* its own: reads are a table lookup and change notifications are the mode's.
|
|
31
|
+
* @param mode - live work-details mode.
|
|
32
|
+
* @returns observable policy that changes exactly when the mode changes.
|
|
33
|
+
*/
|
|
34
|
+
export declare function derivePresentationPolicy(mode: ObservableSnapshot<TranscriptViewMode>): ObservableSnapshot<ChatPresentationPolicy>;
|
|
35
|
+
//# sourceMappingURL=presentation-policy.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** General Settings row for Chat HTTP(S) link destinations. */
|
|
2
|
+
import type { ObservableSnapshot } from '@qilin-agent/client-store';
|
|
3
|
+
import type { InjectFace, PropsLocale, PropsRuntime } from '@qilin-agent/client-ui-slots';
|
|
4
|
+
import type { LinkOpening } from '../../chat-settings.ts';
|
|
5
|
+
/** Registration-side link-opening preference. */
|
|
6
|
+
export interface LinkOpeningRowInjected {
|
|
7
|
+
hooks: {
|
|
8
|
+
/** Current destination, bound as useLinkOpening. */
|
|
9
|
+
linkOpening: ObservableSnapshot<LinkOpening>;
|
|
10
|
+
/** Whether the built-in browser is registered, bound as useBrowserAvailable. */
|
|
11
|
+
browserAvailable: ObservableSnapshot<boolean>;
|
|
12
|
+
};
|
|
13
|
+
/** Change the default destination for Chat HTTP(S) links. */
|
|
14
|
+
setLinkOpening: (destination: LinkOpening) => void;
|
|
15
|
+
}
|
|
16
|
+
/** Full Settings-row props. */
|
|
17
|
+
export type LinkOpeningRowProps = PropsRuntime<'settings.general.item'> & PropsLocale<'chat'> & InjectFace<LinkOpeningRowInjected>;
|
|
18
|
+
/**
|
|
19
|
+
* Render the link-opening destination selector.
|
|
20
|
+
* @param props - Composed Settings slot props.
|
|
21
|
+
* @returns The preference row.
|
|
22
|
+
*/
|
|
23
|
+
export declare function LinkOpeningRow({ useLinkOpening, useBrowserAvailable, setLinkOpening, t }: LinkOpeningRowProps): import("react").JSX.Element | null;
|
|
24
|
+
//# sourceMappingURL=LinkOpeningRow.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** General Settings row for performance and usage detail. */
|
|
2
|
+
import type { ObservableSnapshot } from '@qilin-agent/client-store';
|
|
3
|
+
import type { InjectFace, PropsLocale, PropsRuntime } from '@qilin-agent/client-ui-slots';
|
|
4
|
+
import type { PerformanceUsageMode } from '../../chat-settings.ts';
|
|
5
|
+
/** Registration-side performance and usage preference face. */
|
|
6
|
+
export interface PerformanceUsageRowInjected {
|
|
7
|
+
hooks: {
|
|
8
|
+
/** Accepted performance and usage detail preference, bound as usePerformanceUsage. */
|
|
9
|
+
performanceUsage: ObservableSnapshot<PerformanceUsageMode>;
|
|
10
|
+
};
|
|
11
|
+
/** Change the performance and usage detail. */
|
|
12
|
+
setPerformanceUsage: (mode: PerformanceUsageMode) => void;
|
|
13
|
+
}
|
|
14
|
+
/** Full Settings-row props. */
|
|
15
|
+
export type PerformanceUsageRowProps = PropsRuntime<'settings.general.item'> & PropsLocale<'chat'> & InjectFace<PerformanceUsageRowInjected>;
|
|
16
|
+
/**
|
|
17
|
+
* Render the performance and usage detail selector.
|
|
18
|
+
* @param props - composed Settings slot props.
|
|
19
|
+
* @returns the preference row.
|
|
20
|
+
*/
|
|
21
|
+
export declare function PerformanceUsageRow({ usePerformanceUsage, setPerformanceUsage, t }: PerformanceUsageRowProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=PerformanceUsageRow.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Localized two-column selector shared by Chat preference rows. */
|
|
2
|
+
/**
|
|
3
|
+
* Render a preference label and its menu; selection restores focus before publishing the new value.
|
|
4
|
+
* @param props - localized copy, selected value, choices, and mutation callback.
|
|
5
|
+
* @returns the settings row.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PreferenceRow({ title, description, value, selectedLabel, options, onSelect }: {
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
value: string;
|
|
11
|
+
selectedLabel: string;
|
|
12
|
+
options: readonly {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
onSelect: (value: string) => void;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=PreferenceRow.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** General Settings row for work-details presentation. */
|
|
2
|
+
import type { SnapshotStore } from '@qilin-agent/client-store';
|
|
3
|
+
import type { InjectFace, PropsLocale, PropsRuntime } from '@qilin-agent/client-ui-slots';
|
|
4
|
+
import { type TranscriptViewMode } from '../../chat-settings.ts';
|
|
5
|
+
/** Registration-side work-details preference face. */
|
|
6
|
+
export interface TranscriptViewRowInjected {
|
|
7
|
+
hooks: {
|
|
8
|
+
/** Persisted work-details preference bound as useTranscriptView. */
|
|
9
|
+
transcriptView: SnapshotStore<TranscriptViewMode>;
|
|
10
|
+
};
|
|
11
|
+
/** Change the work-details presentation. */
|
|
12
|
+
setTranscriptView: (mode: TranscriptViewMode) => void;
|
|
13
|
+
}
|
|
14
|
+
/** Full Settings-row props. */
|
|
15
|
+
export type TranscriptViewRowProps = PropsRuntime<'settings.general.item'> & PropsLocale<'chat'> & InjectFace<TranscriptViewRowInjected>;
|
|
16
|
+
/**
|
|
17
|
+
* Render the work-details mode selector.
|
|
18
|
+
* @param props - composed Settings slot props.
|
|
19
|
+
* @returns the preference row.
|
|
20
|
+
*/
|
|
21
|
+
export declare function TranscriptViewRow({ useTranscriptView, setTranscriptView, t }: TranscriptViewRowProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=TranscriptViewRow.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Per-Session Chat view store. */
|
|
2
|
+
import { type EngineStoreHandle } from '@qilin-agent/client-store';
|
|
3
|
+
import type { ChatStoreState, TurnProcessViewEntry } from './contract/store.ts';
|
|
4
|
+
type ChatActions = {
|
|
5
|
+
setTurnProcessOpen: (draft: ChatStoreState, turn: number, answerStep: number, open: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Resolve the manually expanded answer for one Turn.
|
|
9
|
+
* @param state - Chat store snapshot.
|
|
10
|
+
* @param turn - owning Turn.
|
|
11
|
+
* @returns the Turn's stored entry, when present.
|
|
12
|
+
*/
|
|
13
|
+
export declare function storedTurnProcessEntry(state: Readonly<ChatStoreState>, turn: number): Readonly<TurnProcessViewEntry> | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Create the Chat view store handle.
|
|
16
|
+
* @returns a handle instantiated once per rendered Session scope.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createChatStore(): EngineStoreHandle<ChatStoreState, ChatActions>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=stores.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Host-backed work-details presentation policy. */
|
|
2
|
+
import { type SnapshotStore } from '@qilin-agent/client-store';
|
|
3
|
+
import type { ConfigForm } from '@qilin-agent/client-ui-settings/client';
|
|
4
|
+
import { type ChatSettings, type TranscriptViewMode } from '../chat-settings.ts';
|
|
5
|
+
/** Live work-details preference consumed by Chat and its Settings row. */
|
|
6
|
+
export declare class TranscriptViewPolicy {
|
|
7
|
+
private readonly host;
|
|
8
|
+
private readonly unsubscribe;
|
|
9
|
+
/** Reactive current mode; defaults to Standard before Host settings arrive. */
|
|
10
|
+
readonly mode: SnapshotStore<TranscriptViewMode>;
|
|
11
|
+
/**
|
|
12
|
+
* @param host - durable Chat settings scope.
|
|
13
|
+
*/
|
|
14
|
+
constructor(host: ConfigForm<ChatSettings>);
|
|
15
|
+
/** Release the accepted-value subscription. */
|
|
16
|
+
dispose(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Publish and persist one explicit user choice.
|
|
19
|
+
* @param mode - Compact, Standard, Detailed, or Verbose work details.
|
|
20
|
+
*/
|
|
21
|
+
setMode(mode: TranscriptViewMode): void;
|
|
22
|
+
/** Adopt the latest accepted Host section without writing it back. */
|
|
23
|
+
private adopt;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=transcript-view.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Host registration for browser Chat preferences. */
|
|
2
|
+
import type { Context } from '@qilin-agent/kylin';
|
|
3
|
+
export { CHAT_SETTINGS_NAMESPACE, ChatSettingsFields, DEFAULT_LINK_OPENING, DEFAULT_PERFORMANCE_USAGE, DEFAULT_TRANSCRIPT_VIEW_MODE, LEGACY_EXPANDED_TRANSCRIPT_VIEW_MODE, LEGACY_TRANSCRIPT_VIEW_MODE, PERFORMANCE_USAGE_MODES, TRANSCRIPT_VIEW_FIELD, TRANSCRIPT_VIEW_MODES, type ChatSettings, type LinkOpening, type PerformanceUsageMode, type TranscriptViewMode, } from './chat-settings.ts';
|
|
4
|
+
/** Register the durable Chat settings section when a provider exists. */
|
|
5
|
+
export declare function apply(ctx: Context): void;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|