@jay-framework/aiditor 0.16.2

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.
@@ -0,0 +1,445 @@
1
+ import * as _jay_framework_component from '@jay-framework/component';
2
+ import * as _jay_framework_fullstack_component from '@jay-framework/fullstack-component';
3
+ import { JayFile, PageProps } from '@jay-framework/fullstack-component';
4
+ import * as _jay_framework_dev_server from '@jay-framework/dev-server';
5
+ import { HTMLElementProxy, HTMLElementCollectionProxy } from '@jay-framework/runtime';
6
+
7
+ interface AiditorShellViewState {
8
+ headline: string
9
+ }
10
+
11
+ type AiditorShellSlowViewState = {};
12
+
13
+ type AiditorShellFastViewState = Pick<AiditorShellViewState, 'headline'>;
14
+
15
+ type AiditorShellInteractiveViewState = {};
16
+
17
+ interface AiditorShellRefs {}
18
+
19
+ /**
20
+ * One-shot bootstrap for AIditor in-host: Jay dev base URL = browser origin;
21
+ * project directory = server `process.cwd()` (Jay dev server working directory).
22
+ */
23
+ declare const getAiditorBootstrap: _jay_framework_fullstack_component.JayAction<{
24
+ origin: string;
25
+ }, {
26
+ projectDir: string;
27
+ httpBaseUrl: string;
28
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
29
+ origin: string;
30
+ }, {
31
+ projectDir: string;
32
+ httpBaseUrl: string;
33
+ }, []>;
34
+ declare const getProjectInfoAction: _jay_framework_fullstack_component.JayAction<{
35
+ jayDevUrl: string;
36
+ }, {
37
+ routes: _jay_framework_dev_server.RouteInfo[];
38
+ httpBaseUrl: string;
39
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
40
+ jayDevUrl: string;
41
+ }, {
42
+ routes: _jay_framework_dev_server.RouteInfo[];
43
+ httpBaseUrl: string;
44
+ }, [_jay_framework_dev_server.DevServerService]>;
45
+ declare const getPageParamsAction: _jay_framework_fullstack_component.JayStreamAction<{
46
+ route: string;
47
+ }, Record<string, string>[]> & _jay_framework_fullstack_component.JayStreamActionDefinition<{
48
+ route: string;
49
+ }, Record<string, string>[], [_jay_framework_dev_server.DevServerService]>;
50
+ declare const listFreezesAction: _jay_framework_fullstack_component.JayAction<{
51
+ route: string;
52
+ }, {
53
+ freezes: {
54
+ id: string;
55
+ name: string;
56
+ route: string;
57
+ createdAt: string;
58
+ }[];
59
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
60
+ route: string;
61
+ }, {
62
+ freezes: {
63
+ id: string;
64
+ name: string;
65
+ route: string;
66
+ createdAt: string;
67
+ }[];
68
+ }, [_jay_framework_dev_server.DevServerService]>;
69
+ declare const readFileAction: _jay_framework_fullstack_component.JayAction<{
70
+ filePath: string;
71
+ }, {
72
+ type: "image";
73
+ mime: string;
74
+ data: string;
75
+ filePath: string;
76
+ } | {
77
+ type: "text";
78
+ data: string;
79
+ filePath: string;
80
+ mime?: undefined;
81
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
82
+ filePath: string;
83
+ }, {
84
+ type: "image";
85
+ mime: string;
86
+ data: string;
87
+ filePath: string;
88
+ } | {
89
+ type: "text";
90
+ data: string;
91
+ filePath: string;
92
+ mime?: undefined;
93
+ }, []>;
94
+
95
+ interface SubmitTaskActionInput {
96
+ notes: string;
97
+ pageRoute?: string;
98
+ renderedUrl?: string;
99
+ visualTask?: string;
100
+ videoFramesOnly?: string;
101
+ screenshot_full?: JayFile;
102
+ screenshot_markers_only?: JayFile;
103
+ screenshot_clean?: JayFile;
104
+ video?: JayFile;
105
+ extraFiles?: Record<string, JayFile>;
106
+ }
107
+
108
+ interface SubmitTaskActionOutput {
109
+ type: string;
110
+ message?: string;
111
+ text?: string;
112
+ name?: string;
113
+ result?: string;
114
+ cost?: number;
115
+ duration?: number;
116
+ }
117
+
118
+ declare const submitTaskAction: _jay_framework_fullstack_component.JayStreamAction<SubmitTaskActionInput, SubmitTaskActionOutput> & _jay_framework_fullstack_component.JayStreamActionDefinition<SubmitTaskActionInput, SubmitTaskActionOutput, [_jay_framework_dev_server.DevServerService]>;
119
+
120
+ interface ChunkOfPageViewState {
121
+ text: string,
122
+ cssClass: string,
123
+ filePath: string,
124
+ toolName: string
125
+ }
126
+
127
+ interface PageSelectOptionOfPageViewState {
128
+ url: string,
129
+ label: string
130
+ }
131
+
132
+ interface PreviewPathOptionOfPageViewState {
133
+ path: string
134
+ }
135
+
136
+ interface VisualPointDisplayItemOfPageViewState {
137
+ id: string,
138
+ leftPct: number,
139
+ topPct: number,
140
+ indexLabel: string
141
+ }
142
+
143
+ interface VisualAreaDisplayItemOfPageViewState {
144
+ id: string,
145
+ leftPct: number,
146
+ topPct: number,
147
+ widthPct: number,
148
+ heightPct: number,
149
+ indexLabel: string
150
+ }
151
+
152
+ interface VisualArrowDisplayItemOfPageViewState {
153
+ id: string,
154
+ x1Pct: number,
155
+ y1Pct: number,
156
+ x2Pct: number,
157
+ y2Pct: number
158
+ }
159
+
160
+ interface VisualArrowPinItemOfPageViewState {
161
+ id: string,
162
+ leftPct: number,
163
+ topPct: number,
164
+ indexLabel: string
165
+ }
166
+
167
+ interface AttachmentChipOfVisualAnnotationRowOfPageViewState {
168
+ key: string,
169
+ name: string,
170
+ thumbUrl: string,
171
+ annotationId: string
172
+ }
173
+
174
+ interface VisualAnnotationRowOfPageViewState {
175
+ id: string,
176
+ kindLabel: string,
177
+ instruction: string,
178
+ runDisabled: boolean,
179
+ leftPct: number,
180
+ topPct: number,
181
+ popoverFlipX: boolean,
182
+ popoverFlipY: boolean,
183
+ attachmentChips: Array<AttachmentChipOfVisualAnnotationRowOfPageViewState>
184
+ }
185
+
186
+ interface AttachmentChipOfRecordingDraftUiOfPageViewState {
187
+ key: string,
188
+ name: string,
189
+ thumbUrl: string,
190
+ annotationId: string
191
+ }
192
+
193
+ interface RecordingDraftUiOfPageViewState {
194
+ id: string,
195
+ kindLabel: string,
196
+ instruction: string,
197
+ leftPct: number,
198
+ topPct: number,
199
+ popoverFlipX: boolean,
200
+ popoverFlipY: boolean,
201
+ attachmentChips: Array<AttachmentChipOfRecordingDraftUiOfPageViewState>
202
+ }
203
+
204
+ interface RecordingDraftAttachmentChipOfPageViewState {
205
+ key: string,
206
+ name: string,
207
+ thumbUrl: string,
208
+ annotationId: string
209
+ }
210
+
211
+ interface VideoPointDisplayItemOfPageViewState {
212
+ id: string,
213
+ leftPct: number,
214
+ topPct: number,
215
+ indexLabel: string
216
+ }
217
+
218
+ interface VideoAreaDisplayItemOfPageViewState {
219
+ id: string,
220
+ leftPct: number,
221
+ topPct: number,
222
+ widthPct: number,
223
+ heightPct: number,
224
+ indexLabel: string
225
+ }
226
+
227
+ interface VideoArrowDisplayItemOfPageViewState {
228
+ id: string,
229
+ x1Pct: number,
230
+ y1Pct: number,
231
+ x2Pct: number,
232
+ y2Pct: number
233
+ }
234
+
235
+ interface VideoArrowPinItemOfPageViewState {
236
+ id: string,
237
+ leftPct: number,
238
+ topPct: number,
239
+ indexLabel: string
240
+ }
241
+
242
+ interface AttachmentChipOfVideoAnnotationRowOfPageViewState {
243
+ key: string,
244
+ name: string,
245
+ thumbUrl: string,
246
+ annotationId: string
247
+ }
248
+
249
+ interface VideoAnnotationRowOfPageViewState {
250
+ id: string,
251
+ kindLabel: string,
252
+ instruction: string,
253
+ runDisabled: boolean,
254
+ leftPct: number,
255
+ topPct: number,
256
+ popoverFlipX: boolean,
257
+ popoverFlipY: boolean,
258
+ attachmentChips: Array<AttachmentChipOfVideoAnnotationRowOfPageViewState>
259
+ }
260
+
261
+ interface VideoTimelineMarkerOfPageViewState {
262
+ key: string,
263
+ timeSec: number,
264
+ leftPct: number,
265
+ label: string
266
+ }
267
+
268
+ interface PageViewState {
269
+ isBootstrapping: boolean,
270
+ showBootstrapError: boolean,
271
+ bootstrapErrorText: string,
272
+ canRetryBootstrap: boolean,
273
+ isMainVisible: boolean,
274
+ projectName: string,
275
+ notes: string,
276
+ hasImage: boolean,
277
+ isRunning: boolean,
278
+ chunks: Array<ChunkOfPageViewState>,
279
+ hasChunks: boolean,
280
+ outputEmpty: boolean,
281
+ pageSelectOptions: Array<PageSelectOptionOfPageViewState>,
282
+ selectedRouteSelectValue: string,
283
+ hasPages: boolean,
284
+ isPreviewMode: boolean,
285
+ previewUrlBar: string,
286
+ previewLoading: boolean,
287
+ paramsLoadingHint: string,
288
+ previewError: string,
289
+ showPathSelect: boolean,
290
+ previewPathOptions: Array<PreviewPathOptionOfPageViewState>,
291
+ selectedPreviewPath: string,
292
+ showPreviewIframe: boolean,
293
+ previewSrc: string,
294
+ showOutputChunks: boolean,
295
+ showOutputEmpty: boolean,
296
+ outputEmptyHint: string,
297
+ bottomPanelClass: string,
298
+ bottomPanelToggleGlyph: string,
299
+ showBottomPanelRunning: boolean,
300
+ showFilePreview: boolean,
301
+ filePreviewPath: string,
302
+ filePreviewContent: string,
303
+ filePreviewIsImage: boolean,
304
+ filePreviewImageSrc: string,
305
+ filePreviewLoading: boolean,
306
+ showVisualToolbar: boolean,
307
+ visualToolNoneOn: boolean,
308
+ visualToolPointOn: boolean,
309
+ visualToolAreaOn: boolean,
310
+ visualToolArrowOn: boolean,
311
+ visualPointDisplayItems: Array<VisualPointDisplayItemOfPageViewState>,
312
+ showVisualPointMarkers: boolean,
313
+ visualAreaDisplayItems: Array<VisualAreaDisplayItemOfPageViewState>,
314
+ showVisualAreaItems: boolean,
315
+ areaDraftLeftPct: number,
316
+ areaDraftTopPct: number,
317
+ areaDraftWidthPct: number,
318
+ areaDraftHeightPct: number,
319
+ showAreaDraftRect: boolean,
320
+ visualArrowDisplayItems: Array<VisualArrowDisplayItemOfPageViewState>,
321
+ visualArrowPinItems: Array<VisualArrowPinItemOfPageViewState>,
322
+ hasVisualArrowLines: boolean,
323
+ showArrowPending: boolean,
324
+ arrowPendingLeftPct: number,
325
+ arrowPendingTopPct: number,
326
+ visualAnnotationRows: Array<VisualAnnotationRowOfPageViewState>,
327
+ recordingDraftUi: RecordingDraftUiOfPageViewState,
328
+ recordingDraftAttachmentChips: Array<RecordingDraftAttachmentChipOfPageViewState>,
329
+ showRecordingDraftPopover: boolean,
330
+ showVisualAnnotationsPanel: boolean,
331
+ showVisualSubmitError: boolean,
332
+ visualSubmitError: string,
333
+ visualOverlayPointerNone: boolean,
334
+ showVideoRecordUi: boolean,
335
+ isVideoRecording: boolean,
336
+ videoRecordLabel: string,
337
+ videoRecordDisabled: boolean,
338
+ freezeDisabled: boolean,
339
+ showVideoReviewModal: boolean,
340
+ videoReviewPreparing: boolean,
341
+ videoReviewReady: boolean,
342
+ videoReviewError: boolean,
343
+ videoReviewErrorText: string,
344
+ videoReviewObjectUrl: string,
345
+ videoModalToolNoneOn: boolean,
346
+ videoModalToolPointOn: boolean,
347
+ videoModalToolAreaOn: boolean,
348
+ videoModalToolArrowOn: boolean,
349
+ videoPointDisplayItems: Array<VideoPointDisplayItemOfPageViewState>,
350
+ showVideoPointMarkers: boolean,
351
+ videoAreaDisplayItems: Array<VideoAreaDisplayItemOfPageViewState>,
352
+ showVideoAreaItems: boolean,
353
+ videoAreaDraftLeftPct: number,
354
+ videoAreaDraftTopPct: number,
355
+ videoAreaDraftWidthPct: number,
356
+ videoAreaDraftHeightPct: number,
357
+ showVideoAreaDraftRect: boolean,
358
+ videoArrowDisplayItems: Array<VideoArrowDisplayItemOfPageViewState>,
359
+ videoArrowPinItems: Array<VideoArrowPinItemOfPageViewState>,
360
+ hasVideoArrowLines: boolean,
361
+ showVideoArrowPending: boolean,
362
+ videoArrowPendingLeftPct: number,
363
+ videoArrowPendingTopPct: number,
364
+ videoAnnotationRows: Array<VideoAnnotationRowOfPageViewState>,
365
+ showVideoAnnotationsPanel: boolean,
366
+ videoModalOverlayPointerNone: boolean,
367
+ videoSubmitError: string,
368
+ showVideoSubmitError: boolean,
369
+ videoSubmitProgress: string,
370
+ showVideoSubmitProgress: boolean,
371
+ videoTimelineMarkers: Array<VideoTimelineMarkerOfPageViewState>,
372
+ showVideoAnnotationPopoversAtPlayhead: boolean,
373
+ videoTimeLabel: string,
374
+ videoSendDisabled: boolean,
375
+ videoPlayPauseGlyph: string,
376
+ breakpointDesktopOn: boolean,
377
+ breakpointTabletOn: boolean,
378
+ breakpointMobileOn: boolean
379
+ }
380
+
381
+
382
+ interface PageElementRefs {
383
+ retryBootstrapBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
384
+ pageRouteSelect: HTMLElementProxy<PageViewState, HTMLSelectElement>,
385
+ previewPathSelect: HTMLElementProxy<PageViewState, HTMLSelectElement>,
386
+ breakpointDesktopBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
387
+ breakpointTabletBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
388
+ breakpointMobileBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
389
+ visualToolNoneBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
390
+ visualToolPointBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
391
+ visualToolAreaBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
392
+ visualToolArrowBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
393
+ videoRecordBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
394
+ freezeBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
395
+ visualAttachFileInput: HTMLElementProxy<PageViewState, HTMLInputElement>,
396
+ previewIframe: HTMLElementProxy<PageViewState, HTMLIFrameElement>,
397
+ visualOverlay: HTMLElementProxy<PageViewState, HTMLDivElement>,
398
+ recordingDraftPopover: HTMLElementProxy<PageViewState, HTMLDivElement>,
399
+ previewCaptureRoot: HTMLElementProxy<PageViewState, HTMLDivElement>,
400
+ bottomPanelResize: HTMLElementProxy<PageViewState, HTMLDivElement>,
401
+ bottomPanelClearBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
402
+ bottomPanelToggleBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
403
+ bottomPanelHeader: HTMLElementProxy<PageViewState, HTMLDivElement>,
404
+ outputScroll: HTMLElementProxy<PageViewState, HTMLDivElement>,
405
+ filePreviewCloseBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
406
+ filePreviewBackdrop: HTMLElementProxy<PageViewState, HTMLDivElement>,
407
+ videoReviewCloseBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
408
+ videoModalToolNoneBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
409
+ videoModalToolPointBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
410
+ videoModalToolAreaBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
411
+ videoModalToolArrowBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
412
+ videoReviewAttachFileInput: HTMLElementProxy<PageViewState, HTMLInputElement>,
413
+ videoReviewPlayer: HTMLElementProxy<PageViewState, HTMLVideoElement>,
414
+ videoReviewOverlay: HTMLElementProxy<PageViewState, HTMLDivElement>,
415
+ videoReviewCaptureRoot: HTMLElementProxy<PageViewState, HTMLDivElement>,
416
+ videoPlayPauseBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
417
+ videoTimeline: HTMLElementProxy<PageViewState, HTMLInputElement>,
418
+ videoReviewTimelineWrap: HTMLElementProxy<PageViewState, HTMLDivElement>,
419
+ videoReviewDiscardBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
420
+ videoReviewSendBtn: HTMLElementProxy<PageViewState, HTMLButtonElement>,
421
+ videoReviewBackdrop: HTMLElementProxy<PageViewState, HTMLDivElement>,
422
+ visualAnnotationRows: {
423
+ annotationRow: HTMLElementCollectionProxy<VisualAnnotationRowOfPageViewState, HTMLDivElement>
424
+ },
425
+ videoAnnotationRows: {
426
+ videoAnnotationRow: HTMLElementCollectionProxy<VideoAnnotationRowOfPageViewState, HTMLDivElement>
427
+ }
428
+ }
429
+
430
+ type PageSlowViewState = {};
431
+
432
+ declare const page: _jay_framework_fullstack_component.JayStackComponentDefinition<PageElementRefs, PageSlowViewState, PageViewState, PageViewState, [], [], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, PageViewState>>;
433
+
434
+ interface AiditorShellCarry {
435
+ headline: string;
436
+ }
437
+ declare const aiditorShell: _jay_framework_fullstack_component.JayStackComponentDefinition<AiditorShellRefs, AiditorShellSlowViewState, AiditorShellFastViewState, AiditorShellInteractiveViewState, [AiditorShellCarry], [_jay_framework_fullstack_component.Signals<AiditorShellFastViewState>, AiditorShellCarry], {}, {}, _jay_framework_component.JayComponentCore<{}, AiditorShellInteractiveViewState>> & {
438
+ withClientDefaults(fn: (props: {}) => {
439
+ viewState: AiditorShellFastViewState;
440
+ carryForward?: any;
441
+ }): _jay_framework_fullstack_component.JayStackComponentDefinition<AiditorShellRefs, AiditorShellSlowViewState, AiditorShellFastViewState, AiditorShellInteractiveViewState, [AiditorShellCarry], [_jay_framework_fullstack_component.Signals<AiditorShellFastViewState>, AiditorShellCarry], {}, {}, _jay_framework_component.JayComponentCore<{}, AiditorShellInteractiveViewState>> & /*elided*/ any;
442
+ withInteractive(comp: _jay_framework_component.ComponentConstructor<{}, AiditorShellRefs, AiditorShellInteractiveViewState, [_jay_framework_fullstack_component.Signals<AiditorShellFastViewState>, AiditorShellCarry], _jay_framework_component.JayComponentCore<{}, AiditorShellInteractiveViewState>>): _jay_framework_fullstack_component.JayStackComponentDefinition<AiditorShellRefs, AiditorShellSlowViewState, AiditorShellFastViewState, AiditorShellInteractiveViewState, [AiditorShellCarry], [_jay_framework_fullstack_component.Signals<AiditorShellFastViewState>, AiditorShellCarry], {}, {}, _jay_framework_component.JayComponentCore<{}, AiditorShellInteractiveViewState>>;
443
+ };
444
+
445
+ export { page as aiditorPage, aiditorShell, getAiditorBootstrap, getPageParamsAction, getProjectInfoAction, listFreezesAction, readFileAction, submitTaskAction };