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