@yumiai/chat-widget 0.1.2 → 0.2.1
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 +100 -0
- package/README.md +119 -22
- package/dist/ExcelCore-DJOIVQMI.js +11 -0
- package/dist/ExcelCore-DJOIVQMI.js.map +1 -0
- package/dist/ExcelViewer-3YLLYYIQ.js +65 -0
- package/dist/ExcelViewer-3YLLYYIQ.js.map +1 -0
- package/dist/GerberViewerA2UI-7CNT7HX4.css +693 -0
- package/dist/GerberViewerA2UI-7CNT7HX4.css.map +1 -0
- package/dist/GerberViewerA2UI-X5FWAD5M.js +57 -0
- package/dist/GerberViewerA2UI-X5FWAD5M.js.map +1 -0
- package/dist/GraphStatsLegend-D5bPeXB_.d.cts +607 -0
- package/dist/GraphStatsLegend-D5bPeXB_.d.ts +607 -0
- package/dist/JsonRenderStandalone-EIZM62JU.js +18 -0
- package/dist/JsonRenderStandalone-EIZM62JU.js.map +1 -0
- package/dist/JsonRenderStandalone-POB4Q3N3.css +2384 -0
- package/dist/JsonRenderStandalone-POB4Q3N3.css.map +1 -0
- package/dist/JsonRenderStandalone-UsTcST4G.d.cts +23 -0
- package/dist/JsonRenderStandalone-UsTcST4G.d.ts +23 -0
- package/dist/KicadViewer-GV6ZC4AQ.js +124 -0
- package/dist/KicadViewer-GV6ZC4AQ.js.map +1 -0
- package/dist/KicadViewerCore-U7BWZHKJ.js +11 -0
- package/dist/KicadViewerCore-U7BWZHKJ.js.map +1 -0
- package/dist/PdfViewer-CHPDRK46.js +51 -0
- package/dist/PdfViewer-CHPDRK46.js.map +1 -0
- package/dist/PdfViewer-LPYGQETK.css +1899 -0
- package/dist/PdfViewer-LPYGQETK.css.map +1 -0
- package/dist/PdfViewerCore-HJPEHSRA.js +364 -0
- package/dist/PdfViewerCore-HJPEHSRA.js.map +1 -0
- package/dist/PowerPointCore-FPDR2BL4.js +11 -0
- package/dist/PowerPointCore-FPDR2BL4.js.map +1 -0
- package/dist/PowerPointViewer-LQTO6UCU.js +61 -0
- package/dist/PowerPointViewer-LQTO6UCU.js.map +1 -0
- package/dist/StepViewerCore-7W3L3R4E.js +285 -0
- package/dist/StepViewerCore-7W3L3R4E.js.map +1 -0
- package/dist/ThreeViewerCore-N3QJD5QI.js +161 -0
- package/dist/ThreeViewerCore-N3QJD5QI.js.map +1 -0
- package/dist/WordCore-JKSXK2XD.js +11 -0
- package/dist/WordCore-JKSXK2XD.js.map +1 -0
- package/dist/WordViewer-ZHCQMHOH.js +61 -0
- package/dist/WordViewer-ZHCQMHOH.js.map +1 -0
- package/dist/chunk-2SKA3F5U.js +88 -0
- package/dist/chunk-2SKA3F5U.js.map +1 -0
- package/dist/chunk-2UC7YLVX.js +318 -0
- package/dist/chunk-2UC7YLVX.js.map +1 -0
- package/dist/chunk-3R6T3LBR.js +24 -0
- package/dist/chunk-3R6T3LBR.js.map +1 -0
- package/dist/chunk-56WRZM3R.js +398 -0
- package/dist/chunk-56WRZM3R.js.map +1 -0
- package/dist/chunk-7A4FY6FK.js +10226 -0
- package/dist/chunk-7A4FY6FK.js.map +1 -0
- package/dist/chunk-7D4SUZUM.js +38 -0
- package/dist/chunk-7D4SUZUM.js.map +1 -0
- package/dist/chunk-7S67DOHQ.js +436 -0
- package/dist/chunk-7S67DOHQ.js.map +1 -0
- package/dist/chunk-CFKGNAJM.js +14013 -0
- package/dist/chunk-CFKGNAJM.js.map +1 -0
- package/dist/chunk-GAMA3VA7.js +99 -0
- package/dist/chunk-GAMA3VA7.js.map +1 -0
- package/dist/chunk-GYXTSY22.js +639 -0
- package/dist/chunk-GYXTSY22.js.map +1 -0
- package/dist/chunk-K4KGNVL5.js +77 -0
- package/dist/chunk-K4KGNVL5.js.map +1 -0
- package/dist/chunk-KQV7IKET.js +1621 -0
- package/dist/chunk-KQV7IKET.js.map +1 -0
- package/dist/chunk-O3NXUM6C.js +1871 -0
- package/dist/chunk-O3NXUM6C.js.map +1 -0
- package/dist/chunk-PZXSASDY.js +83 -0
- package/dist/chunk-PZXSASDY.js.map +1 -0
- package/dist/chunk-QLVPIM6R.js +595 -0
- package/dist/chunk-QLVPIM6R.js.map +1 -0
- package/dist/chunk-VXJWGLZ7.js +21 -0
- package/dist/chunk-VXJWGLZ7.js.map +1 -0
- package/dist/chunk-XQ562W7I.js +116 -0
- package/dist/chunk-XQ562W7I.js.map +1 -0
- package/dist/components/JsonRender/standalone.cjs +39368 -0
- package/dist/components/JsonRender/standalone.cjs.map +1 -0
- package/dist/components/JsonRender/standalone.css +2384 -0
- package/dist/components/JsonRender/standalone.css.map +1 -0
- package/dist/components/JsonRender/standalone.d.cts +16 -0
- package/dist/components/JsonRender/standalone.d.ts +16 -0
- package/dist/components/JsonRender/standalone.js +38 -0
- package/dist/components/JsonRender/standalone.js.map +1 -0
- package/dist/gerber-2d-entry-OQ4SQRBY.js +3950 -0
- package/dist/gerber-2d-entry-OQ4SQRBY.js.map +1 -0
- package/dist/gerber-3d-entry-DEHDBOO2.js +3679 -0
- package/dist/gerber-3d-entry-DEHDBOO2.js.map +1 -0
- package/dist/gerber-simulation-entry-EBDX72XE.js +1801 -0
- package/dist/gerber-simulation-entry-EBDX72XE.js.map +1 -0
- package/dist/index.cjs +60113 -2970
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +11342 -1708
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +3275 -77
- package/dist/index.d.ts +3275 -77
- package/dist/index.js +18078 -2540
- package/dist/index.js.map +1 -1
- package/dist/provenance/index.cjs +2248 -0
- package/dist/provenance/index.cjs.map +1 -0
- package/dist/provenance/index.css +52 -0
- package/dist/provenance/index.css.map +1 -0
- package/dist/provenance/index.d.cts +12 -0
- package/dist/provenance/index.d.ts +12 -0
- package/dist/provenance/index.js +27 -0
- package/dist/provenance/index.js.map +1 -0
- package/dist/resolveToArrayBuffer-AQIDZHSQ.js +23 -0
- package/dist/resolveToArrayBuffer-AQIDZHSQ.js.map +1 -0
- package/package.json +98 -17
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* JETP-025: Provenance Graph Type Definitions
|
|
5
|
+
*
|
|
6
|
+
* Aligned with backend Pydantic models in jetagents/site/graph/graph_models.py.
|
|
7
|
+
* Protocol reference: doc/proposals/JETP-025/00_shared/01_protocol.md
|
|
8
|
+
*/
|
|
9
|
+
type NodeType = 'agent' | 'action' | 'file' | 'task' | 'reasoning';
|
|
10
|
+
interface GraphNode {
|
|
11
|
+
id: string;
|
|
12
|
+
type: NodeType;
|
|
13
|
+
label: string;
|
|
14
|
+
timestamp: number;
|
|
15
|
+
metadata: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
interface AgentNode extends GraphNode {
|
|
18
|
+
type: 'agent';
|
|
19
|
+
agent_id: string;
|
|
20
|
+
agent_instance_id: number;
|
|
21
|
+
agent_name: string;
|
|
22
|
+
level: number;
|
|
23
|
+
parent_agent_instance_id: number | null;
|
|
24
|
+
status?: 'running' | 'completed' | 'error';
|
|
25
|
+
}
|
|
26
|
+
interface ActionNode extends GraphNode {
|
|
27
|
+
type: 'action';
|
|
28
|
+
tool_name: string;
|
|
29
|
+
tool_call_id: string;
|
|
30
|
+
task_purpose: string;
|
|
31
|
+
agent_instance_id: number;
|
|
32
|
+
status: 'running' | 'success' | 'error';
|
|
33
|
+
duration_ms: number | null;
|
|
34
|
+
}
|
|
35
|
+
interface FileNode extends GraphNode {
|
|
36
|
+
type: 'file';
|
|
37
|
+
file_id: string;
|
|
38
|
+
file_name: string;
|
|
39
|
+
git_path: string;
|
|
40
|
+
operation: 'create' | 'update' | 'delete' | 'external' | 'referenced';
|
|
41
|
+
agent_instance_id: number;
|
|
42
|
+
tool_call_id: string | null;
|
|
43
|
+
task_purpose: string | null;
|
|
44
|
+
}
|
|
45
|
+
interface TaskNode extends GraphNode {
|
|
46
|
+
type: 'task';
|
|
47
|
+
task_id: string;
|
|
48
|
+
description: string;
|
|
49
|
+
status: 'pending' | 'in_progress' | 'completed' | 'blocked';
|
|
50
|
+
}
|
|
51
|
+
interface ReasoningNode extends GraphNode {
|
|
52
|
+
type: 'reasoning';
|
|
53
|
+
agent_instance_id: number;
|
|
54
|
+
model: string;
|
|
55
|
+
content_preview: string;
|
|
56
|
+
token_count: number | null;
|
|
57
|
+
duration_ms: number | null;
|
|
58
|
+
status?: 'thinking' | 'completed';
|
|
59
|
+
turn_id?: number;
|
|
60
|
+
}
|
|
61
|
+
type ProvenanceNode = AgentNode | ActionNode | FileNode | TaskNode | ReasoningNode;
|
|
62
|
+
type EdgeType = 'spawns' | 'executes' | 'produces' | 'modifies' | 'deletes' | 'thinks' | 'triggers' | 'informs' | 'references';
|
|
63
|
+
interface GraphEdge {
|
|
64
|
+
source: string;
|
|
65
|
+
target: string;
|
|
66
|
+
type: EdgeType;
|
|
67
|
+
label?: string;
|
|
68
|
+
timestamp: number;
|
|
69
|
+
metadata?: Record<string, unknown>;
|
|
70
|
+
}
|
|
71
|
+
interface GraphStats {
|
|
72
|
+
agent_count: number;
|
|
73
|
+
action_count: number;
|
|
74
|
+
file_count: number;
|
|
75
|
+
task_count: number;
|
|
76
|
+
reasoning_count: number;
|
|
77
|
+
max_depth: number;
|
|
78
|
+
}
|
|
79
|
+
interface NodeSet {
|
|
80
|
+
agents: AgentNode[];
|
|
81
|
+
actions: ActionNode[];
|
|
82
|
+
files: FileNode[];
|
|
83
|
+
tasks: TaskNode[];
|
|
84
|
+
reasonings: ReasoningNode[];
|
|
85
|
+
}
|
|
86
|
+
interface ProvenanceGraphSnapshot {
|
|
87
|
+
session_id: number;
|
|
88
|
+
generated_at: number;
|
|
89
|
+
node_count: number;
|
|
90
|
+
edge_count: number;
|
|
91
|
+
max_turn_id: number | null;
|
|
92
|
+
nodes: NodeSet;
|
|
93
|
+
edges: GraphEdge[];
|
|
94
|
+
stats: GraphStats;
|
|
95
|
+
}
|
|
96
|
+
interface GraphSSEPayload {
|
|
97
|
+
notification_type?: string;
|
|
98
|
+
agent_instance_id?: number;
|
|
99
|
+
callee_instance_id?: number;
|
|
100
|
+
caller_instance_id?: number;
|
|
101
|
+
agent_id?: string;
|
|
102
|
+
agent_name?: string;
|
|
103
|
+
level?: number;
|
|
104
|
+
tool_name?: string;
|
|
105
|
+
tool_call_id?: string;
|
|
106
|
+
task_purpose?: string;
|
|
107
|
+
tool_status?: string;
|
|
108
|
+
timestamp?: string | number;
|
|
109
|
+
ext?: Record<string, unknown>;
|
|
110
|
+
content?: unknown[];
|
|
111
|
+
}
|
|
112
|
+
interface GraphFilter {
|
|
113
|
+
agentInstanceIds?: number[];
|
|
114
|
+
visibleTypes?: NodeType[];
|
|
115
|
+
depth?: number;
|
|
116
|
+
taskIds?: string[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
interface ChatWidgetMessages {
|
|
120
|
+
'header.title': string;
|
|
121
|
+
'header.icon': string;
|
|
122
|
+
'status.connecting': string;
|
|
123
|
+
'status.running': string;
|
|
124
|
+
'status.compressing': string;
|
|
125
|
+
'status.error': string;
|
|
126
|
+
'status.idle': string;
|
|
127
|
+
'empty.waiting': string;
|
|
128
|
+
'empty.icon': string;
|
|
129
|
+
'round.separator': string;
|
|
130
|
+
'round.status.running': string;
|
|
131
|
+
'round.status.completed': string;
|
|
132
|
+
'round.status.error': string;
|
|
133
|
+
'round.noMessage': string;
|
|
134
|
+
'footer.attribution': string;
|
|
135
|
+
'selection.ask': string;
|
|
136
|
+
'viewer.loading': string;
|
|
137
|
+
'viewer.error': string;
|
|
138
|
+
'viewer.back': string;
|
|
139
|
+
'viewer.defaultTitle': string;
|
|
140
|
+
'viewer.copyFull': string;
|
|
141
|
+
'viewer.copyFullTitle': string;
|
|
142
|
+
'viewer.referenceFile': string;
|
|
143
|
+
'viewer.referenceFileTitle': string;
|
|
144
|
+
'viewer.referencePage': string;
|
|
145
|
+
'viewer.referencePageTitle': string;
|
|
146
|
+
'viewer.download': string;
|
|
147
|
+
'viewer.fullscreen': string;
|
|
148
|
+
'viewer.fullscreenExit': string;
|
|
149
|
+
'viewer.close': string;
|
|
150
|
+
'viewer.unknownType': string;
|
|
151
|
+
'viewer.iframeHint': string;
|
|
152
|
+
'viewer.copySnippet': string;
|
|
153
|
+
'viewer.loadingPdf': string;
|
|
154
|
+
'viewer.pdfPages': string;
|
|
155
|
+
'viewer.loadingKicad': string;
|
|
156
|
+
'viewer.loading3d': string;
|
|
157
|
+
'viewer.loadingStep': string;
|
|
158
|
+
'viewer.3d.wireframe': string;
|
|
159
|
+
'viewer.3d.resetView': string;
|
|
160
|
+
'viewer.gerberTitle': string;
|
|
161
|
+
'viewer.gerberBlobWarning': string;
|
|
162
|
+
'viewer.gerberNoHttpUrl': string;
|
|
163
|
+
'viewer.pdfPreview': string;
|
|
164
|
+
'viewer.htmlPreview': string;
|
|
165
|
+
'viewer.htmlProjectLoading': string;
|
|
166
|
+
'viewer.htmlProjectNoEntry': string;
|
|
167
|
+
'viewer.htmlProjectSizeLimit': string;
|
|
168
|
+
'viewer.htmlStrategyForcedInlineWarning': string;
|
|
169
|
+
'viewer.htmlStrategyFallbackCspWarning': string;
|
|
170
|
+
'viewer.copyFullKicadTitle': string;
|
|
171
|
+
'viewer.zoomIn': string;
|
|
172
|
+
'viewer.zoomOut': string;
|
|
173
|
+
'viewer.zoomReset': string;
|
|
174
|
+
'viewer.loadingWord': string;
|
|
175
|
+
'viewer.loadingExcel': string;
|
|
176
|
+
'viewer.loadingPowerPoint': string;
|
|
177
|
+
'viewer.pptPrev': string;
|
|
178
|
+
'viewer.pptNext': string;
|
|
179
|
+
'viewer.pptSlide': string;
|
|
180
|
+
'viewer.pptThumbnails': string;
|
|
181
|
+
'viewer.excelRows': string;
|
|
182
|
+
'viewer.excelColumns': string;
|
|
183
|
+
'childAgent.status.running': string;
|
|
184
|
+
'childAgent.status.completed': string;
|
|
185
|
+
'hitl.form.defaultTitle': string;
|
|
186
|
+
'hitl.wait.default': string;
|
|
187
|
+
'todo.completed.count': string;
|
|
188
|
+
'todo.blocked.count': string;
|
|
189
|
+
'todo.more': string;
|
|
190
|
+
'todo.header.done': string;
|
|
191
|
+
'tool.phase.generating': string;
|
|
192
|
+
'tool.phase.executing': string;
|
|
193
|
+
'tool.phase.complete': string;
|
|
194
|
+
'tool.phase.error': string;
|
|
195
|
+
'tool.executing': string;
|
|
196
|
+
'tool.mcp.running': string;
|
|
197
|
+
'tool.mcp.success': string;
|
|
198
|
+
'tool.mcp.error': string;
|
|
199
|
+
'form.placeholder.select': string;
|
|
200
|
+
'form.required.default': string;
|
|
201
|
+
'form.submit.submit': string;
|
|
202
|
+
'form.submit.submitting': string;
|
|
203
|
+
'form.requestId': string;
|
|
204
|
+
'pinned.label': string;
|
|
205
|
+
'plan.title': string;
|
|
206
|
+
'plan.step': string;
|
|
207
|
+
'thinking.inProgress': string;
|
|
208
|
+
'thinking.completed': string;
|
|
209
|
+
'split.unreadCount': string;
|
|
210
|
+
'split.askQuestion': string;
|
|
211
|
+
'split.exitFullscreen': string;
|
|
212
|
+
'context.inputPlaceholder': string;
|
|
213
|
+
'context.inputPlaceholderWithFile': string;
|
|
214
|
+
'context.send': string;
|
|
215
|
+
'context.removeReference': string;
|
|
216
|
+
'split.home': string;
|
|
217
|
+
'split.workspace': string;
|
|
218
|
+
'split.annotation': string;
|
|
219
|
+
'split.tabClose': string;
|
|
220
|
+
'split.tabNew': string;
|
|
221
|
+
'workspace.title': string;
|
|
222
|
+
'workspace.searchPlaceholder': string;
|
|
223
|
+
'workspace.empty': string;
|
|
224
|
+
'workspace.downloadAll': string;
|
|
225
|
+
'workspace.recent': string;
|
|
226
|
+
'workspace.open': string;
|
|
227
|
+
'workspace.openInNewTab': string;
|
|
228
|
+
'workspace.download': string;
|
|
229
|
+
'workspace.copyPath': string;
|
|
230
|
+
'workspace.expandAll': string;
|
|
231
|
+
'workspace.collapseAll': string;
|
|
232
|
+
'annotation.title': string;
|
|
233
|
+
'annotation.empty': string;
|
|
234
|
+
'annotation.fileLevelTitle': string;
|
|
235
|
+
'annotation.fileLevelPlaceholder': string;
|
|
236
|
+
'annotation.anchoredPlaceholder': string;
|
|
237
|
+
'annotation.inlineInputPlaceholder': string;
|
|
238
|
+
'annotation.replyPlaceholder': string;
|
|
239
|
+
'annotation.anchorLabel': string;
|
|
240
|
+
'annotation.close': string;
|
|
241
|
+
'annotation.fabLabel': string;
|
|
242
|
+
'annotation.fabHeader': string;
|
|
243
|
+
'annotation.messageCount': string;
|
|
244
|
+
'annotation.anchorInvalid': string;
|
|
245
|
+
'annotation.errorRetry': string;
|
|
246
|
+
'annotation.queuedHint': string;
|
|
247
|
+
'annotation.selectionLabel': string;
|
|
248
|
+
'agentControl.pause': string;
|
|
249
|
+
'agentControl.resume': string;
|
|
250
|
+
'agentControl.stop': string;
|
|
251
|
+
'agentControl.paused': string;
|
|
252
|
+
'agentControl.groupTitle': string;
|
|
253
|
+
'aria.fileNavigation': string;
|
|
254
|
+
'kicad.loadFailed': string;
|
|
255
|
+
'kicad.urlNotReady': string;
|
|
256
|
+
'kicad.loadingEngine': string;
|
|
257
|
+
'kicad.sidebarTitle': string;
|
|
258
|
+
'kicad.sidebarPcb': string;
|
|
259
|
+
'kicad.sidebarSch': string;
|
|
260
|
+
'kicad.sidebarGeneric': string;
|
|
261
|
+
'kicad.viewVisual': string;
|
|
262
|
+
'kicad.viewSource': string;
|
|
263
|
+
'provenance.filter.type.agent': string;
|
|
264
|
+
'provenance.filter.type.action': string;
|
|
265
|
+
'provenance.filter.type.file': string;
|
|
266
|
+
'provenance.filter.type.task': string;
|
|
267
|
+
'provenance.filter.type.reasoning': string;
|
|
268
|
+
'provenance.filter.depth': string;
|
|
269
|
+
'provenance.toolbar.zoomToFit': string;
|
|
270
|
+
'provenance.toolbar.resetCamera': string;
|
|
271
|
+
'provenance.toolbar.refresh': string;
|
|
272
|
+
'provenance.legend.reasoning': string;
|
|
273
|
+
'provenance.legend.action': string;
|
|
274
|
+
'provenance.legend.file': string;
|
|
275
|
+
'provenance.legend.task': string;
|
|
276
|
+
'provenance.legend.references': string;
|
|
277
|
+
'provenance.legend.edges': string;
|
|
278
|
+
'provenance.legend.depth': string;
|
|
279
|
+
'provenance.detail.title': string;
|
|
280
|
+
'provenance.detail.noSelection': string;
|
|
281
|
+
'provenance.detail.label.name': string;
|
|
282
|
+
'provenance.detail.label.id': string;
|
|
283
|
+
'provenance.detail.label.timestamp': string;
|
|
284
|
+
'provenance.detail.label.agentId': string;
|
|
285
|
+
'provenance.detail.label.instanceId': string;
|
|
286
|
+
'provenance.detail.label.level': string;
|
|
287
|
+
'provenance.detail.label.status': string;
|
|
288
|
+
'provenance.detail.label.tool': string;
|
|
289
|
+
'provenance.detail.label.purpose': string;
|
|
290
|
+
'provenance.detail.label.duration': string;
|
|
291
|
+
'provenance.detail.label.path': string;
|
|
292
|
+
'provenance.detail.label.operation': string;
|
|
293
|
+
'provenance.detail.label.taskId': string;
|
|
294
|
+
'provenance.detail.label.description': string;
|
|
295
|
+
'provenance.detail.label.model': string;
|
|
296
|
+
'provenance.detail.label.tokenCount': string;
|
|
297
|
+
'provenance.detail.label.reasoningPreview': string;
|
|
298
|
+
'provenance.detail.relatedEdges': string;
|
|
299
|
+
'provenance.page.noSessionHint': string;
|
|
300
|
+
'provenance.page.loading': string;
|
|
301
|
+
'provenance.page.emptyGraph': string;
|
|
302
|
+
'provenance.drawer.emptyGraph': string;
|
|
303
|
+
'provenance.graph.edgeType.references': string;
|
|
304
|
+
'toolResult.label': string;
|
|
305
|
+
'toolResult.expandAll': string;
|
|
306
|
+
'toolResult.searchSummary': string;
|
|
307
|
+
'toolResult.scrapeSummary': string;
|
|
308
|
+
'toolResult.more': string;
|
|
309
|
+
'plan.status.active': string;
|
|
310
|
+
'pinned.noMessage': string;
|
|
311
|
+
'viewer.fallback.unknownType': string;
|
|
312
|
+
'viewer.fallback.download': string;
|
|
313
|
+
'fileSize.B': string;
|
|
314
|
+
'fileSize.KB': string;
|
|
315
|
+
'fileSize.MB': string;
|
|
316
|
+
'thinking.title': string;
|
|
317
|
+
'thinking.step': string;
|
|
318
|
+
'viewer.stepHint': string;
|
|
319
|
+
'viewer.threeHint': string;
|
|
320
|
+
'reference.header': string;
|
|
321
|
+
'history.noMessage': string;
|
|
322
|
+
'agent.defaultName': string;
|
|
323
|
+
'error.unknown': string;
|
|
324
|
+
'locale': string;
|
|
325
|
+
'skill.inlineLabel': string;
|
|
326
|
+
'skill.empty': string;
|
|
327
|
+
'skill.searchPlaceholder': string;
|
|
328
|
+
'skill.removeLabel': string;
|
|
329
|
+
'skill.loading': string;
|
|
330
|
+
'skill.loadError': string;
|
|
331
|
+
'skill.loadMore': string;
|
|
332
|
+
'skill.selectorLabel': string;
|
|
333
|
+
'pool.idle': string;
|
|
334
|
+
'pool.collaborating': string;
|
|
335
|
+
/** JETP-083 WS3.7.7 follow-up: badge text when at least one agent is
|
|
336
|
+
* paused on a HIL response (no RUNNING agents). ``{{count}}`` = number
|
|
337
|
+
* of paused agents. */
|
|
338
|
+
'pool.awaiting': string;
|
|
339
|
+
'pool.title': string;
|
|
340
|
+
'pool.empty': string;
|
|
341
|
+
'pool.state.running': string;
|
|
342
|
+
/** JETP-083 WS3.7.7 follow-up: agent-row state label for an agent that
|
|
343
|
+
* is blocked inside ``_await_genui_blocking`` waiting on a human HIL
|
|
344
|
+
* reply. Distinguishes from ``running`` / ``completed`` / ``lost``;
|
|
345
|
+
* mapped from backend ``state="PAUSED"``. */
|
|
346
|
+
'pool.state.paused': string;
|
|
347
|
+
'pool.state.completed': string;
|
|
348
|
+
'pool.state.lost': string;
|
|
349
|
+
'pool.state.unknown': string;
|
|
350
|
+
'input.placeholder': string;
|
|
351
|
+
'input.placeholderLoading': string;
|
|
352
|
+
'discussion.title': string;
|
|
353
|
+
'discussion.empty': string;
|
|
354
|
+
'discussion.active': string;
|
|
355
|
+
'discussion.resolved': string;
|
|
356
|
+
'discussion.archived': string;
|
|
357
|
+
'round.foreign.label': string;
|
|
358
|
+
'round.foreign.unread': string;
|
|
359
|
+
'round.foreign.expand': string;
|
|
360
|
+
'sidebar.mainChat': string;
|
|
361
|
+
'sidebar.chat': string;
|
|
362
|
+
'sidebar.fileQA': string;
|
|
363
|
+
'sidebar.selectionQA': string;
|
|
364
|
+
'sessionList.title': string;
|
|
365
|
+
'sessionList.newSession': string;
|
|
366
|
+
'sessionList.logout': string;
|
|
367
|
+
'sessionList.loading': string;
|
|
368
|
+
'sessionList.empty': string;
|
|
369
|
+
'sessionList.unsupported': string;
|
|
370
|
+
'sessionList.untitled': string;
|
|
371
|
+
'sessionList.deleteTitle': string;
|
|
372
|
+
'sessionList.deleteConfirm': string;
|
|
373
|
+
'sessionList.prevPage': string;
|
|
374
|
+
'sessionList.nextPage': string;
|
|
375
|
+
'sessionList.pageInfo': string;
|
|
376
|
+
'modelPicker.menu.head': string;
|
|
377
|
+
'modelPicker.menu.aria': string;
|
|
378
|
+
'modelPicker.auto.title': string;
|
|
379
|
+
'modelPicker.auto.hint.knownChannel': string;
|
|
380
|
+
'modelPicker.auto.hint.knownBasename': string;
|
|
381
|
+
'modelPicker.auto.hint.fallback': string;
|
|
382
|
+
'modelPicker.row.hint.channelMulti': string;
|
|
383
|
+
'modelPicker.row.hint.channelSingle': string;
|
|
384
|
+
'modelPicker.row.hint.versionMulti': string;
|
|
385
|
+
'modelPicker.fallback.placeholder': string;
|
|
386
|
+
'modelPicker.inert.title': string;
|
|
387
|
+
'modelPicker.guestLocked.label': string;
|
|
388
|
+
'modelPicker.guestLocked.title': string;
|
|
389
|
+
'modelPicker.loadingList': string;
|
|
390
|
+
'modelPicker.trigger.title.stale': string;
|
|
391
|
+
'modelPicker.trigger.title.agentDefault.withChannel': string;
|
|
392
|
+
'modelPicker.trigger.title.agentDefault': string;
|
|
393
|
+
'modelPicker.trigger.title.current': string;
|
|
394
|
+
'modelPicker.row.title.pickDefault': string;
|
|
395
|
+
'modelPicker.row.title.pick': string;
|
|
396
|
+
'modelPicker.chip.aria': string;
|
|
397
|
+
'modelPicker.chip.title.available': string;
|
|
398
|
+
'modelPicker.chip.title.unavailable': string;
|
|
399
|
+
'jr.confirmDialog.cancel': string;
|
|
400
|
+
'jr.confirmDialog.confirm': string;
|
|
401
|
+
'jr.confirmDialog.loading': string;
|
|
402
|
+
}
|
|
403
|
+
type ChatWidgetLocale = 'zh-CN' | 'en-US';
|
|
404
|
+
declare function resolveMessages(locale?: ChatWidgetLocale, overrides?: Partial<ChatWidgetMessages>): ChatWidgetMessages;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* JETP-025: ProvenanceGraphDrawerContent
|
|
408
|
+
*
|
|
409
|
+
* Lightweight wrapper for embedding the provenance graph inside an antd Drawer.
|
|
410
|
+
* Reuses ProvenanceGraph3D + GraphStatsLegend + NodeDetailPanel.
|
|
411
|
+
*
|
|
412
|
+
* Supports real-time SSE updates via onProcessEventRef callback.
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
interface ProvenanceGraphDrawerContentProps {
|
|
416
|
+
sessionId: number;
|
|
417
|
+
onProcessEventRef?: React__default.MutableRefObject<((p: GraphSSEPayload) => void) | null>;
|
|
418
|
+
}
|
|
419
|
+
declare const ProvenanceGraphDrawerContent: React__default.FC<ProvenanceGraphDrawerContentProps>;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Provenance Graph API Client (SDK version)
|
|
423
|
+
*
|
|
424
|
+
* Delegates HTTP to the caller-supplied fetch function, decoupling from
|
|
425
|
+
* any specific Axios instance or auth mechanism.
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
interface FetchGraphOptions {
|
|
429
|
+
sessionId: number;
|
|
430
|
+
sinceTurnId?: number | null;
|
|
431
|
+
limit?: number;
|
|
432
|
+
}
|
|
433
|
+
type ProvenanceGraphFetcher = (sessionId: number, params?: {
|
|
434
|
+
since_turn_id?: number;
|
|
435
|
+
limit?: number;
|
|
436
|
+
}) => Promise<ProvenanceGraphSnapshot>;
|
|
437
|
+
declare function fetchProvenanceGraph(fetcher: ProvenanceGraphFetcher, opts: FetchGraphOptions): Promise<ProvenanceGraphSnapshot>;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* JETP-025: useProvenanceGraph Hook
|
|
441
|
+
*
|
|
442
|
+
* Manages the provenance graph lifecycle:
|
|
443
|
+
* 1. Fetches initial snapshot via REST
|
|
444
|
+
* 2. Accepts SSE events from parent to incrementally update
|
|
445
|
+
* 3. Handles reconnection by fetching delta via since_turn_id
|
|
446
|
+
* 4. Debounces re-renders for burst SSE events
|
|
447
|
+
*/
|
|
448
|
+
|
|
449
|
+
interface UseProvenanceGraphOptions {
|
|
450
|
+
sessionId: number | null;
|
|
451
|
+
/** Adapter-supplied fetcher; when absent, fetch is disabled */
|
|
452
|
+
fetcher?: ProvenanceGraphFetcher;
|
|
453
|
+
enabled?: boolean;
|
|
454
|
+
/** Auto-poll interval in ms. 0 disables. Default 3000. */
|
|
455
|
+
pollInterval?: number;
|
|
456
|
+
}
|
|
457
|
+
interface UseProvenanceGraphReturn {
|
|
458
|
+
graph: ProvenanceGraphSnapshot | null;
|
|
459
|
+
loading: boolean;
|
|
460
|
+
error: Error | null;
|
|
461
|
+
processEvent: (payload: GraphSSEPayload) => void;
|
|
462
|
+
refetch: () => void;
|
|
463
|
+
}
|
|
464
|
+
declare function useProvenanceGraph(opts: UseProvenanceGraphOptions): UseProvenanceGraphReturn;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* JETP-025: Client-side GraphBuilder
|
|
468
|
+
*
|
|
469
|
+
* Incrementally builds a provenance graph from SSE events.
|
|
470
|
+
* Maintains Maps for O(1) node lookup and deduplication.
|
|
471
|
+
*
|
|
472
|
+
* Handlers: agent_start, agent_end, mcp_start, mcp_end,
|
|
473
|
+
* artifact_result, plan_result, model_start, model_result, model_end
|
|
474
|
+
*/
|
|
475
|
+
|
|
476
|
+
declare class GraphBuilder {
|
|
477
|
+
private sessionId;
|
|
478
|
+
private agents;
|
|
479
|
+
private actions;
|
|
480
|
+
private files;
|
|
481
|
+
private tasks;
|
|
482
|
+
private reasonings;
|
|
483
|
+
private edges;
|
|
484
|
+
private edgeKeys;
|
|
485
|
+
private lastCompletedActions;
|
|
486
|
+
private readonly handlers;
|
|
487
|
+
/** Apply an SSE event. Returns true if the event was handled. */
|
|
488
|
+
applyEvent(payload: GraphSSEPayload): boolean;
|
|
489
|
+
/** Replace all state from a backend snapshot (initial load). */
|
|
490
|
+
replaceWithSnapshot(snapshot: ProvenanceGraphSnapshot): void;
|
|
491
|
+
/** Merge an incremental snapshot (reconnection). */
|
|
492
|
+
mergeSnapshot(snapshot: ProvenanceGraphSnapshot): void;
|
|
493
|
+
/** Produce an immutable snapshot for React state. */
|
|
494
|
+
getSnapshot(): ProvenanceGraphSnapshot;
|
|
495
|
+
private handleAgentStart;
|
|
496
|
+
private handleAgentEnd;
|
|
497
|
+
private handleMcpStart;
|
|
498
|
+
private handleMcpEnd;
|
|
499
|
+
private handleArtifactResult;
|
|
500
|
+
/** JETP-026: create references edges from xref scan result. */
|
|
501
|
+
private handleXrefScanResult;
|
|
502
|
+
private handlePlanResult;
|
|
503
|
+
private handleModelStart;
|
|
504
|
+
private handleModelResult;
|
|
505
|
+
private handleModelEnd;
|
|
506
|
+
private addEdge;
|
|
507
|
+
private edgeKey;
|
|
508
|
+
findLatestReasoning(agentInstanceId: number): ReasoningNode | null;
|
|
509
|
+
private parseTimestamp;
|
|
510
|
+
private extractString;
|
|
511
|
+
private extractNumber;
|
|
512
|
+
private extractArtifactData;
|
|
513
|
+
private normalizeOperation;
|
|
514
|
+
/** Merge placeholder file nodes into a real node, remapping all edges.
|
|
515
|
+
* Uses exact + stem matching (same ambiguity-safe logic as resolveFileByName). */
|
|
516
|
+
private absorbPlaceholders;
|
|
517
|
+
/** Match a file name/path against existing FileNodes by git_path or file_name.
|
|
518
|
+
* Pass 1 — exact match. Pass 2 — stem match (extension stripped) when
|
|
519
|
+
* *name* has no extension and exactly one non-placeholder candidate exists. */
|
|
520
|
+
private resolveFileByName;
|
|
521
|
+
/** Strip trailing extension: 'arch.md' → 'arch', 'a/b.txt' → 'a/b'. */
|
|
522
|
+
private static fileStem;
|
|
523
|
+
/** True when the trailing path component carries a dot-extension (ignores dotfiles). */
|
|
524
|
+
private static nameHasExtension;
|
|
525
|
+
private simpleHash;
|
|
526
|
+
private extractChecklist;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* JETP-025: ProvenanceGraph3D
|
|
531
|
+
*
|
|
532
|
+
* Core 3D graph visualization using react-force-graph-3d (Three.js).
|
|
533
|
+
* Renders agent/action/file/task/reasoning nodes as distinct 3D shapes
|
|
534
|
+
* with animated edges, selection dimming, and camera focus.
|
|
535
|
+
*/
|
|
536
|
+
|
|
537
|
+
interface ProvenanceGraph3DProps {
|
|
538
|
+
graph: ProvenanceGraphSnapshot;
|
|
539
|
+
width?: number;
|
|
540
|
+
height?: number;
|
|
541
|
+
selectedNodeId?: string | null;
|
|
542
|
+
onNodeClick?: (nodeId: string, nodeType: NodeType) => void;
|
|
543
|
+
onNodeHover?: (nodeId: string | null) => void;
|
|
544
|
+
onBackgroundClick?: () => void;
|
|
545
|
+
depthFilter?: number;
|
|
546
|
+
}
|
|
547
|
+
declare const ProvenanceGraph3D: React__default.NamedExoticComponent<ProvenanceGraph3DProps>;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* JETP-025: NodeDetailPanel
|
|
551
|
+
*
|
|
552
|
+
* Drawer panel showing detailed information about a selected graph node.
|
|
553
|
+
* Uses antd Drawer + Descriptions for consistent JetForge styling.
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
interface NodeDetailPanelProps {
|
|
557
|
+
open: boolean;
|
|
558
|
+
nodeId: string | null;
|
|
559
|
+
graph: ProvenanceGraphSnapshot;
|
|
560
|
+
onClose: () => void;
|
|
561
|
+
}
|
|
562
|
+
declare const NodeDetailPanel: React__default.NamedExoticComponent<NodeDetailPanelProps>;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* JETP-025: FilterBar
|
|
566
|
+
*
|
|
567
|
+
* Provides controls for filtering the provenance graph:
|
|
568
|
+
* - Node type toggle (multi-select)
|
|
569
|
+
* - Depth filter (N-hop from selected node)
|
|
570
|
+
*/
|
|
571
|
+
|
|
572
|
+
interface FilterBarProps {
|
|
573
|
+
visibleTypes: Set<NodeType>;
|
|
574
|
+
onVisibleTypesChange: (types: Set<NodeType>) => void;
|
|
575
|
+
depth: number;
|
|
576
|
+
onDepthChange: (depth: number) => void;
|
|
577
|
+
hasSelection: boolean;
|
|
578
|
+
}
|
|
579
|
+
declare const FilterBar: React__default.NamedExoticComponent<FilterBarProps>;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* JETP-025: GraphToolbar
|
|
583
|
+
*
|
|
584
|
+
* Floating toolbar with zoom-to-fit, reset camera, and refresh controls.
|
|
585
|
+
*/
|
|
586
|
+
|
|
587
|
+
interface GraphToolbarProps {
|
|
588
|
+
onZoomToFit: () => void;
|
|
589
|
+
onResetCamera: () => void;
|
|
590
|
+
onRefresh: () => void;
|
|
591
|
+
loading?: boolean;
|
|
592
|
+
}
|
|
593
|
+
declare const GraphToolbar: React__default.NamedExoticComponent<GraphToolbarProps>;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* JETP-025: GraphStatsLegend
|
|
597
|
+
*
|
|
598
|
+
* Floating legend showing node counts by type and edge total.
|
|
599
|
+
*/
|
|
600
|
+
|
|
601
|
+
interface GraphStatsLegendProps {
|
|
602
|
+
stats: GraphStats;
|
|
603
|
+
edgeCount: number;
|
|
604
|
+
}
|
|
605
|
+
declare const GraphStatsLegend: React__default.NamedExoticComponent<GraphStatsLegendProps>;
|
|
606
|
+
|
|
607
|
+
export { type ChatWidgetLocale as C, type EdgeType as E, type FetchGraphOptions as F, GraphBuilder as G, NodeDetailPanel as N, ProvenanceGraph3D as P, type ChatWidgetMessages as a, FilterBar as b, type GraphEdge as c, type GraphFilter as d, type GraphSSEPayload as e, GraphStatsLegend as f, GraphToolbar as g, type NodeType as h, ProvenanceGraphDrawerContent as i, type ProvenanceGraphFetcher as j, type ProvenanceGraphSnapshot as k, type ProvenanceNode as l, fetchProvenanceGraph as m, resolveMessages as r, useProvenanceGraph as u };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
JsonRenderStandalone
|
|
3
|
+
} from "./chunk-CFKGNAJM.js";
|
|
4
|
+
import "./chunk-2UC7YLVX.js";
|
|
5
|
+
import "./chunk-GYXTSY22.js";
|
|
6
|
+
import "./chunk-K4KGNVL5.js";
|
|
7
|
+
import "./chunk-56WRZM3R.js";
|
|
8
|
+
import "./chunk-PZXSASDY.js";
|
|
9
|
+
import "./chunk-VXJWGLZ7.js";
|
|
10
|
+
import "./chunk-2SKA3F5U.js";
|
|
11
|
+
import "./chunk-GAMA3VA7.js";
|
|
12
|
+
import "./chunk-7S67DOHQ.js";
|
|
13
|
+
import "./chunk-QLVPIM6R.js";
|
|
14
|
+
import "./chunk-7D4SUZUM.js";
|
|
15
|
+
export {
|
|
16
|
+
JsonRenderStandalone
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=JsonRenderStandalone-EIZM62JU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|