@qilin-agent/client-ui-chat 0.0.0-stage → 3.1.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/LICENSE +21 -0
- package/README.i18n.yaml +55 -0
- package/README.md +132 -2
- package/README.zh.md +134 -0
- package/lib/client.js +13900 -0
- package/lib/index.js +54 -0
- package/lib/types/chat-settings.d.ts +47 -0
- package/lib/types/client/apply.d.ts +15 -0
- package/lib/types/client/chat/ApprovalCommand.d.ts +20 -0
- package/lib/types/client/chat/AssistantMarkdown.d.ts +52 -0
- package/lib/types/client/chat/AssistantNodeView.d.ts +7 -0
- package/lib/types/client/chat/ChatFlow.d.ts +4 -0
- package/lib/types/client/chat/ChatGroupSeat.d.ts +15 -0
- package/lib/types/client/chat/ChatNodeSeat.d.ts +25 -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/ReasoningContent.d.ts +16 -0
- package/lib/types/client/chat/ReasoningRow.d.ts +23 -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/flow-motion.d.ts +59 -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 +17 -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 +110 -0
- package/lib/types/client/chat/use-chat-scroll.d.ts +43 -0
- package/lib/types/client/chat/use-chat-viewport.d.ts +197 -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 +106 -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 +340 -0
- package/lib/types/client/contract/snapshot.d.ts +107 -0
- package/lib/types/client/contract/store.d.ts +15 -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 +386 -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 +37 -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 +27 -0
- package/lib/types/client/stores.d.ts +30 -0
- package/lib/types/client/transcript-view.d.ts +35 -0
- package/lib/types/index.d.ts +6 -0
- package/package.json +106 -3
|
@@ -0,0 +1,386 @@
|
|
|
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
|
+
'settings.collapse.title': string;
|
|
49
|
+
'settings.collapse.description': string;
|
|
50
|
+
'settings.collapse.completion': string;
|
|
51
|
+
'settings.collapse.nextInput': string;
|
|
52
|
+
'fileOpen.title': string;
|
|
53
|
+
'fileOpen.unknown': string;
|
|
54
|
+
'message.extraBlock': string;
|
|
55
|
+
'message.systemPrompt': string;
|
|
56
|
+
'message.systemPromptUpdate': string;
|
|
57
|
+
'message.contextInjection': string;
|
|
58
|
+
'message.toolAdded': string;
|
|
59
|
+
'message.toolRemoved': string;
|
|
60
|
+
'message.toolsAdded': string;
|
|
61
|
+
'message.toolsAddedCount': string;
|
|
62
|
+
'message.toolsChanged': string;
|
|
63
|
+
'message.toolsRemoved': string;
|
|
64
|
+
'message.toolsRemovedCount': string;
|
|
65
|
+
'message.toolsUpdated': string;
|
|
66
|
+
'message.contextRecall': string;
|
|
67
|
+
'message.referenceSummary': string;
|
|
68
|
+
'message.referenceSeparator': string;
|
|
69
|
+
'message.context.instructions.loaded': string;
|
|
70
|
+
'message.context.instructions.added': string;
|
|
71
|
+
'message.context.instructions.updated': string;
|
|
72
|
+
'message.context.instructions.removed': string;
|
|
73
|
+
'message.context.catalog.replaced': string;
|
|
74
|
+
'message.context.catalog.more': string;
|
|
75
|
+
'message.context.snapshot.supersedes': string;
|
|
76
|
+
'message.context.relay.from': string;
|
|
77
|
+
'message.context.recall.counts': string;
|
|
78
|
+
'message.context.recall.truncated': string;
|
|
79
|
+
'message.compaction': string;
|
|
80
|
+
'message.compaction.running': string;
|
|
81
|
+
'message.compaction.completed': string;
|
|
82
|
+
'message.compaction.expand': string;
|
|
83
|
+
'message.compaction.unavailable': string;
|
|
84
|
+
'message.compaction.commandTitle': string;
|
|
85
|
+
'message.think': string;
|
|
86
|
+
'message.unknownSurface': string;
|
|
87
|
+
'message.unknownBlock': string;
|
|
88
|
+
'message.turnProcess.worked': string;
|
|
89
|
+
'message.turnProcess.took': string;
|
|
90
|
+
'message.turnProcess.failed': string;
|
|
91
|
+
'message.turnProcess.toolCalls.one': string;
|
|
92
|
+
'message.turnProcess.toolCalls.other': string;
|
|
93
|
+
'message.turnProcess.messages.one': string;
|
|
94
|
+
'message.turnProcess.messages.other': string;
|
|
95
|
+
'message.turnProcess.subagents.one': string;
|
|
96
|
+
'message.turnProcess.subagents.other': string;
|
|
97
|
+
'message.turnProcess.thoughtForAWhile': string;
|
|
98
|
+
'message.turnProcess.separator': string;
|
|
99
|
+
'message.stepProcess.thinking': string;
|
|
100
|
+
'message.stepProcess.read': string;
|
|
101
|
+
'message.stepProcess.readImage': string;
|
|
102
|
+
'message.stepProcess.write': string;
|
|
103
|
+
'message.stepProcess.search': string;
|
|
104
|
+
'message.stepProcess.edit': string;
|
|
105
|
+
'message.stepProcess.commands': string;
|
|
106
|
+
'message.stepProcess.code': string;
|
|
107
|
+
'message.stepProcess.webSearch': string;
|
|
108
|
+
'message.stepProcess.webFetch': string;
|
|
109
|
+
'message.stepProcess.subagents': string;
|
|
110
|
+
'message.stepProcess.plan': string;
|
|
111
|
+
'message.stepProcess.questions': string;
|
|
112
|
+
'message.stepProcess.tools': string;
|
|
113
|
+
'message.stepProcess.prepare.read': string;
|
|
114
|
+
'message.stepProcess.prepare.readImage': string;
|
|
115
|
+
'message.stepProcess.prepare.write': string;
|
|
116
|
+
'message.stepProcess.prepare.search': string;
|
|
117
|
+
'message.stepProcess.prepare.edit': string;
|
|
118
|
+
'message.stepProcess.prepare.commands': string;
|
|
119
|
+
'message.stepProcess.prepare.code': string;
|
|
120
|
+
'message.stepProcess.prepare.webSearch': string;
|
|
121
|
+
'message.stepProcess.prepare.webFetch': string;
|
|
122
|
+
'message.stepProcess.prepare.subagents': string;
|
|
123
|
+
'message.stepProcess.prepare.plan': string;
|
|
124
|
+
'message.stepProcess.prepare.questions': string;
|
|
125
|
+
'message.stepProcess.prepare.tools': string;
|
|
126
|
+
'message.stepProcess.done.thinking': string;
|
|
127
|
+
'message.stepProcess.done.read': string;
|
|
128
|
+
'message.stepProcess.done.readImage': string;
|
|
129
|
+
'message.stepProcess.done.write': string;
|
|
130
|
+
'message.stepProcess.done.search': string;
|
|
131
|
+
'message.stepProcess.done.edit': string;
|
|
132
|
+
'message.stepProcess.done.commands': string;
|
|
133
|
+
'message.stepProcess.done.code': string;
|
|
134
|
+
'message.stepProcess.done.webSearch': string;
|
|
135
|
+
'message.stepProcess.done.webFetch': string;
|
|
136
|
+
'message.stepProcess.done.subagents': string;
|
|
137
|
+
'message.stepProcess.done.plan': string;
|
|
138
|
+
'message.stepProcess.done.questions': string;
|
|
139
|
+
'message.stepProcess.done.tools': string;
|
|
140
|
+
'message.stepProcess.joinTwo': string;
|
|
141
|
+
'message.stepProcess.comma': string;
|
|
142
|
+
'message.stepProcess.sharedPrefix': string;
|
|
143
|
+
'message.stepProcess.more': string;
|
|
144
|
+
'message.trigger.request': string;
|
|
145
|
+
'message.trigger.goal': string;
|
|
146
|
+
'message.trigger.agent': string;
|
|
147
|
+
'message.trigger.team': string;
|
|
148
|
+
'message.trigger.subagent': string;
|
|
149
|
+
'message.trigger.github': string;
|
|
150
|
+
'message.trigger.webhook': string;
|
|
151
|
+
'message.trigger.schedule': string;
|
|
152
|
+
'message.trigger.job': string;
|
|
153
|
+
'message.trigger.plugin': string;
|
|
154
|
+
'message.trigger.explanation': string;
|
|
155
|
+
'message.stopped': string;
|
|
156
|
+
'message.branch': string;
|
|
157
|
+
'message.branchUnavailable': string;
|
|
158
|
+
'message.edit': string;
|
|
159
|
+
'message.retry.active': string;
|
|
160
|
+
'message.retry.cancelled': string;
|
|
161
|
+
'message.retry.started': string;
|
|
162
|
+
'message.retry.scheduled': string;
|
|
163
|
+
'message.retry.status': string;
|
|
164
|
+
'message.retry.delay': string;
|
|
165
|
+
'message.retry.failure': string;
|
|
166
|
+
'message.failure.auth': string;
|
|
167
|
+
'message.turnError': string;
|
|
168
|
+
'message.maxTokens': string;
|
|
169
|
+
'message.maxTokens.hint': string;
|
|
170
|
+
'message.tokensPerSecond': string;
|
|
171
|
+
'message.turnUsage.title': string;
|
|
172
|
+
'message.turnUsage.consumed': string;
|
|
173
|
+
'message.turnUsage.model': string;
|
|
174
|
+
'message.turnUsage.cacheHit': string;
|
|
175
|
+
'message.turnUsage.input': string;
|
|
176
|
+
'message.turnUsage.cacheRead': string;
|
|
177
|
+
'message.turnUsage.cacheWrite': string;
|
|
178
|
+
'message.turnUsage.output': string;
|
|
179
|
+
'message.turnUsage.reasoning': string;
|
|
180
|
+
'message.turnUsage.count': string;
|
|
181
|
+
'duration.secondUnit': string;
|
|
182
|
+
'duration.minuteUnit': string;
|
|
183
|
+
'duration.hourUnit': string;
|
|
184
|
+
'command.running': string;
|
|
185
|
+
'command.failed': string;
|
|
186
|
+
'command.done': string;
|
|
187
|
+
'command.title': string;
|
|
188
|
+
'row.running': string;
|
|
189
|
+
'row.failed': string;
|
|
190
|
+
'json.truncated': string;
|
|
191
|
+
'clock.md': string;
|
|
192
|
+
'clock.ymd': string;
|
|
193
|
+
};
|
|
194
|
+
/** Chat dictionary key union. */
|
|
195
|
+
export type ChatKey = keyof typeof zh;
|
|
196
|
+
/** English dictionary, checked against the Chinese key set. */
|
|
197
|
+
export declare const en: {
|
|
198
|
+
'view.chat': string;
|
|
199
|
+
'image.open': string;
|
|
200
|
+
'image.loading': string;
|
|
201
|
+
'image.failed': string;
|
|
202
|
+
'image.dialog': string;
|
|
203
|
+
'image.close': string;
|
|
204
|
+
'number.groupSeparator': string;
|
|
205
|
+
'duration.compactSeconds': string;
|
|
206
|
+
'duration.compactMinutes': string;
|
|
207
|
+
'duration.milliseconds': string;
|
|
208
|
+
'stats.counts': string;
|
|
209
|
+
'stats.cacheHit': string;
|
|
210
|
+
'stats.dialog.title': string;
|
|
211
|
+
'stats.dialog.usageTitle': string;
|
|
212
|
+
'stats.dialog.llmTime': string;
|
|
213
|
+
'stats.dialog.toolTime': string;
|
|
214
|
+
'stats.dialog.ttft': string;
|
|
215
|
+
'stats.dialog.speed': string;
|
|
216
|
+
'chat.loadingHistory': string;
|
|
217
|
+
'chat.loadError': string;
|
|
218
|
+
'chat.loadOlder': string;
|
|
219
|
+
'chat.toBottom': string;
|
|
220
|
+
'chat.running': string;
|
|
221
|
+
'chat.runningFor': string;
|
|
222
|
+
'chat.turnNavigation.label': string;
|
|
223
|
+
'chat.turnNavigation.jump': string;
|
|
224
|
+
'chat.turnNavigation.jumpLoad': string;
|
|
225
|
+
'chat.turnNavigation.turn': string;
|
|
226
|
+
'settings.transcript.title': string;
|
|
227
|
+
'settings.transcript.description': string;
|
|
228
|
+
'settings.transcript.compact': string;
|
|
229
|
+
'settings.transcript.standard': string;
|
|
230
|
+
'settings.transcript.detailed': string;
|
|
231
|
+
'settings.transcript.verbose': string;
|
|
232
|
+
'settings.performance.title': string;
|
|
233
|
+
'settings.performance.description': string;
|
|
234
|
+
'settings.performance.compact': string;
|
|
235
|
+
'settings.performance.detailed': string;
|
|
236
|
+
'settings.links.title': string;
|
|
237
|
+
'settings.links.description': string;
|
|
238
|
+
'settings.links.sidebar': string;
|
|
239
|
+
'settings.links.newTab': string;
|
|
240
|
+
'settings.collapse.title': string;
|
|
241
|
+
'settings.collapse.description': string;
|
|
242
|
+
'settings.collapse.completion': string;
|
|
243
|
+
'settings.collapse.nextInput': string;
|
|
244
|
+
'fileOpen.title': string;
|
|
245
|
+
'fileOpen.unknown': string;
|
|
246
|
+
'message.extraBlock': string;
|
|
247
|
+
'message.systemPrompt': string;
|
|
248
|
+
'message.systemPromptUpdate': string;
|
|
249
|
+
'message.contextInjection': string;
|
|
250
|
+
'message.toolAdded': string;
|
|
251
|
+
'message.toolRemoved': string;
|
|
252
|
+
'message.toolsAdded': string;
|
|
253
|
+
'message.toolsAddedCount': string;
|
|
254
|
+
'message.toolsChanged': string;
|
|
255
|
+
'message.toolsRemoved': string;
|
|
256
|
+
'message.toolsRemovedCount': string;
|
|
257
|
+
'message.toolsUpdated': string;
|
|
258
|
+
'message.contextRecall': string;
|
|
259
|
+
'message.referenceSummary': string;
|
|
260
|
+
'message.referenceSeparator': string;
|
|
261
|
+
'message.context.instructions.loaded': string;
|
|
262
|
+
'message.context.instructions.added': string;
|
|
263
|
+
'message.context.instructions.updated': string;
|
|
264
|
+
'message.context.instructions.removed': string;
|
|
265
|
+
'message.context.catalog.replaced': string;
|
|
266
|
+
'message.context.catalog.more': string;
|
|
267
|
+
'message.context.snapshot.supersedes': string;
|
|
268
|
+
'message.context.relay.from': string;
|
|
269
|
+
'message.context.recall.counts': string;
|
|
270
|
+
'message.context.recall.truncated': string;
|
|
271
|
+
'message.compaction': string;
|
|
272
|
+
'message.compaction.running': string;
|
|
273
|
+
'message.compaction.completed': string;
|
|
274
|
+
'message.compaction.expand': string;
|
|
275
|
+
'message.compaction.unavailable': string;
|
|
276
|
+
'message.compaction.commandTitle': string;
|
|
277
|
+
'message.think': string;
|
|
278
|
+
'message.unknownSurface': string;
|
|
279
|
+
'message.unknownBlock': string;
|
|
280
|
+
'message.turnProcess.worked': string;
|
|
281
|
+
'message.turnProcess.took': string;
|
|
282
|
+
'message.turnProcess.failed': string;
|
|
283
|
+
'message.turnProcess.toolCalls.one': string;
|
|
284
|
+
'message.turnProcess.toolCalls.other': string;
|
|
285
|
+
'message.turnProcess.messages.one': string;
|
|
286
|
+
'message.turnProcess.messages.other': string;
|
|
287
|
+
'message.turnProcess.subagents.one': string;
|
|
288
|
+
'message.turnProcess.subagents.other': string;
|
|
289
|
+
'message.turnProcess.thoughtForAWhile': string;
|
|
290
|
+
'message.turnProcess.separator': string;
|
|
291
|
+
'message.stepProcess.thinking': string;
|
|
292
|
+
'message.stepProcess.read': string;
|
|
293
|
+
'message.stepProcess.readImage': string;
|
|
294
|
+
'message.stepProcess.write': string;
|
|
295
|
+
'message.stepProcess.search': string;
|
|
296
|
+
'message.stepProcess.edit': string;
|
|
297
|
+
'message.stepProcess.commands': string;
|
|
298
|
+
'message.stepProcess.code': string;
|
|
299
|
+
'message.stepProcess.webSearch': string;
|
|
300
|
+
'message.stepProcess.webFetch': string;
|
|
301
|
+
'message.stepProcess.subagents': string;
|
|
302
|
+
'message.stepProcess.plan': string;
|
|
303
|
+
'message.stepProcess.questions': string;
|
|
304
|
+
'message.stepProcess.tools': string;
|
|
305
|
+
'message.stepProcess.prepare.read': string;
|
|
306
|
+
'message.stepProcess.prepare.readImage': string;
|
|
307
|
+
'message.stepProcess.prepare.write': string;
|
|
308
|
+
'message.stepProcess.prepare.search': string;
|
|
309
|
+
'message.stepProcess.prepare.edit': string;
|
|
310
|
+
'message.stepProcess.prepare.commands': string;
|
|
311
|
+
'message.stepProcess.prepare.code': string;
|
|
312
|
+
'message.stepProcess.prepare.webSearch': string;
|
|
313
|
+
'message.stepProcess.prepare.webFetch': string;
|
|
314
|
+
'message.stepProcess.prepare.subagents': string;
|
|
315
|
+
'message.stepProcess.prepare.plan': string;
|
|
316
|
+
'message.stepProcess.prepare.questions': string;
|
|
317
|
+
'message.stepProcess.prepare.tools': string;
|
|
318
|
+
'message.stepProcess.done.thinking': string;
|
|
319
|
+
'message.stepProcess.done.read': string;
|
|
320
|
+
'message.stepProcess.done.readImage': string;
|
|
321
|
+
'message.stepProcess.done.write': string;
|
|
322
|
+
'message.stepProcess.done.search': string;
|
|
323
|
+
'message.stepProcess.done.edit': string;
|
|
324
|
+
'message.stepProcess.done.commands': string;
|
|
325
|
+
'message.stepProcess.done.code': string;
|
|
326
|
+
'message.stepProcess.done.webSearch': string;
|
|
327
|
+
'message.stepProcess.done.webFetch': string;
|
|
328
|
+
'message.stepProcess.done.subagents': string;
|
|
329
|
+
'message.stepProcess.done.plan': string;
|
|
330
|
+
'message.stepProcess.done.questions': string;
|
|
331
|
+
'message.stepProcess.done.tools': string;
|
|
332
|
+
'message.stepProcess.joinTwo': string;
|
|
333
|
+
'message.stepProcess.comma': string;
|
|
334
|
+
'message.stepProcess.sharedPrefix': string;
|
|
335
|
+
'message.stepProcess.more': string;
|
|
336
|
+
'message.trigger.request': string;
|
|
337
|
+
'message.trigger.goal': string;
|
|
338
|
+
'message.trigger.agent': string;
|
|
339
|
+
'message.trigger.team': string;
|
|
340
|
+
'message.trigger.subagent': string;
|
|
341
|
+
'message.trigger.github': string;
|
|
342
|
+
'message.trigger.webhook': string;
|
|
343
|
+
'message.trigger.schedule': string;
|
|
344
|
+
'message.trigger.job': string;
|
|
345
|
+
'message.trigger.plugin': string;
|
|
346
|
+
'message.trigger.explanation': string;
|
|
347
|
+
'message.stopped': string;
|
|
348
|
+
'message.branch': string;
|
|
349
|
+
'message.branchUnavailable': string;
|
|
350
|
+
'message.edit': string;
|
|
351
|
+
'message.retry.active': string;
|
|
352
|
+
'message.retry.cancelled': string;
|
|
353
|
+
'message.retry.started': string;
|
|
354
|
+
'message.retry.scheduled': string;
|
|
355
|
+
'message.retry.status': string;
|
|
356
|
+
'message.retry.delay': string;
|
|
357
|
+
'message.retry.failure': string;
|
|
358
|
+
'message.failure.auth': string;
|
|
359
|
+
'message.turnError': string;
|
|
360
|
+
'message.maxTokens': string;
|
|
361
|
+
'message.maxTokens.hint': string;
|
|
362
|
+
'message.tokensPerSecond': string;
|
|
363
|
+
'message.turnUsage.title': string;
|
|
364
|
+
'message.turnUsage.consumed': string;
|
|
365
|
+
'message.turnUsage.model': string;
|
|
366
|
+
'message.turnUsage.cacheHit': string;
|
|
367
|
+
'message.turnUsage.input': string;
|
|
368
|
+
'message.turnUsage.cacheRead': string;
|
|
369
|
+
'message.turnUsage.cacheWrite': string;
|
|
370
|
+
'message.turnUsage.output': string;
|
|
371
|
+
'message.turnUsage.reasoning': string;
|
|
372
|
+
'message.turnUsage.count': string;
|
|
373
|
+
'duration.secondUnit': string;
|
|
374
|
+
'duration.minuteUnit': string;
|
|
375
|
+
'duration.hourUnit': string;
|
|
376
|
+
'command.running': string;
|
|
377
|
+
'command.failed': string;
|
|
378
|
+
'command.done': string;
|
|
379
|
+
'command.title': string;
|
|
380
|
+
'row.running': string;
|
|
381
|
+
'row.failed': string;
|
|
382
|
+
'json.truncated': string;
|
|
383
|
+
'clock.md': string;
|
|
384
|
+
'clock.ymd': string;
|
|
385
|
+
};
|
|
386
|
+
//# 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,37 @@
|
|
|
1
|
+
/** Chat presentation derived from Host-backed detail and in-memory collapse timing. */
|
|
2
|
+
import type { ObservableSnapshot } from '@qilin-agent/client-store';
|
|
3
|
+
import type { TranscriptViewMode } from '../chat-settings.ts';
|
|
4
|
+
/** Available points when a completed Turn returns to its historical presentation. */
|
|
5
|
+
export declare const COLLAPSE_TIMINGS: readonly ["completion", "next-input"];
|
|
6
|
+
/** When a completed Turn returns to its historical presentation. */
|
|
7
|
+
export type CollapseTiming = typeof COLLAPSE_TIMINGS[number];
|
|
8
|
+
/** Presentation capabilities that one work-details mode enables. */
|
|
9
|
+
export interface ChatPresentationPolicy {
|
|
10
|
+
/** Preference identity for layout resets and diagnostics; renderers select the capabilities below. */
|
|
11
|
+
readonly mode: TranscriptViewMode;
|
|
12
|
+
/** Browser-local experiment; completion retains the default immediate folding and scrolling. */
|
|
13
|
+
readonly collapseTiming: CollapseTiming;
|
|
14
|
+
/** Whether a normally completed Turn folds its process rows behind the whole-Turn control. */
|
|
15
|
+
readonly foldCompletedTurns: boolean;
|
|
16
|
+
/** Collapsible group headers for all Turns, historical Turns only, or no Turns. */
|
|
17
|
+
readonly stepGrouping: 'collapsed' | 'history' | 'none';
|
|
18
|
+
/** Show the running command, path, query, or reasoning detail in group titles. */
|
|
19
|
+
readonly liveProcessDetail: boolean;
|
|
20
|
+
/** Whether a settled reasoning row previews its first line beside the Think title. */
|
|
21
|
+
readonly settledReasoningPreview: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Resolve a stable policy for one detail mode and collapse timing.
|
|
25
|
+
* @param mode - persisted work-details mode.
|
|
26
|
+
* @param collapseTiming - in-memory timing; defaults to immediate completion folding.
|
|
27
|
+
* @returns the same policy object for the same pair of choices.
|
|
28
|
+
*/
|
|
29
|
+
export declare function presentationPolicyFor(mode: TranscriptViewMode, collapseTiming?: CollapseTiming): ChatPresentationPolicy;
|
|
30
|
+
/**
|
|
31
|
+
* Combine Host-backed detail and in-memory timing without owning subscriptions.
|
|
32
|
+
* @param mode - live work-details mode.
|
|
33
|
+
* @param collapseTiming - live, in-memory collapse timing.
|
|
34
|
+
* @returns observable policy whose subscriptions follow both preferences.
|
|
35
|
+
*/
|
|
36
|
+
export declare function derivePresentationPolicy(mode: ObservableSnapshot<TranscriptViewMode>, collapseTiming: ObservableSnapshot<CollapseTiming>): ObservableSnapshot<ChatPresentationPolicy>;
|
|
37
|
+
//# 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,27 @@
|
|
|
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
|
+
import type { CollapseTiming } from '../presentation-policy.ts';
|
|
6
|
+
/** Registration-side work-details preference face. */
|
|
7
|
+
export interface TranscriptViewRowInjected {
|
|
8
|
+
hooks: {
|
|
9
|
+
/** Persisted work-details preference bound as useTranscriptView. */
|
|
10
|
+
transcriptView: SnapshotStore<TranscriptViewMode>;
|
|
11
|
+
/** Browser-local timing bound as useCollapseTiming. */
|
|
12
|
+
collapseTiming: SnapshotStore<CollapseTiming>;
|
|
13
|
+
};
|
|
14
|
+
/** Change the work-details presentation. */
|
|
15
|
+
setTranscriptView: (mode: TranscriptViewMode) => void;
|
|
16
|
+
/** Save collapse timing in this browser without changing Host settings. */
|
|
17
|
+
setCollapseTiming: (timing: CollapseTiming) => void;
|
|
18
|
+
}
|
|
19
|
+
/** Full Settings-row props. */
|
|
20
|
+
export type TranscriptViewRowProps = PropsRuntime<'settings.general.item'> & PropsLocale<'chat'> & InjectFace<TranscriptViewRowInjected>;
|
|
21
|
+
/**
|
|
22
|
+
* Render work-details and browser-local collapse-timing selectors.
|
|
23
|
+
* @param props - composed Settings slot props.
|
|
24
|
+
* @returns the preference row.
|
|
25
|
+
*/
|
|
26
|
+
export declare function TranscriptViewRow({ useTranscriptView, setTranscriptView, useCollapseTiming, setCollapseTiming, t, }: TranscriptViewRowProps): import("react").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=TranscriptViewRow.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
import type { TurnProcessSpec } from './contract/turn-process.ts';
|
|
5
|
+
type ChatActions = {
|
|
6
|
+
setTurnProcessOpen: (draft: ChatStoreState, turn: number, answerStep: number, open: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Resolve the manual disclosure choice for one Turn.
|
|
10
|
+
* @param state - Chat store snapshot.
|
|
11
|
+
* @param turn - owning Turn.
|
|
12
|
+
* @returns the Turn's stored entry, when present.
|
|
13
|
+
*/
|
|
14
|
+
export declare function storedTurnProcessEntry(state: Readonly<ChatStoreState>, turn: number): Readonly<TurnProcessViewEntry> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a foldable Turn's process is open: the reader's choice for the current answer generation
|
|
17
|
+
* wins; otherwise the latest completed Turn stays open until the next input, and older Turns fold.
|
|
18
|
+
* @param state - Chat store snapshot.
|
|
19
|
+
* @param spec - the Turn's process specification.
|
|
20
|
+
* @param defaultOpen - whether this Turn is exempt from automatic folding.
|
|
21
|
+
* @returns the effective open state.
|
|
22
|
+
*/
|
|
23
|
+
export declare function turnProcessOpen(state: Readonly<ChatStoreState>, spec: Pick<TurnProcessSpec, 'turn' | 'answerStep'>, defaultOpen: boolean): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Create the Chat view store handle.
|
|
26
|
+
* @returns a handle instantiated once per rendered Session scope.
|
|
27
|
+
*/
|
|
28
|
+
export declare function createChatStore(): EngineStoreHandle<ChatStoreState, ChatActions>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=stores.d.ts.map
|