@athree/runner-proto 2.0.0 → 2.0.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/out/main/domains/BrowserDomain.d.ts +37 -0
- package/{src/main/domains/BrowserDomain.ts → out/main/domains/BrowserDomain.js} +2 -52
- package/out/main/domains/BrowserDomain.js.map +1 -0
- package/out/main/domains/EvalDomain.d.ts +11 -0
- package/out/main/domains/EvalDomain.js +18 -0
- package/out/main/domains/EvalDomain.js.map +1 -0
- package/out/main/domains/MessageDomain.d.ts +18 -0
- package/{src/main/domains/MessageDomain.ts → out/main/domains/MessageDomain.js} +3 -27
- package/out/main/domains/MessageDomain.js.map +1 -0
- package/out/main/domains/StateDomain.d.ts +18 -0
- package/{src/main/domains/StateDomain.ts → out/main/domains/StateDomain.js} +2 -26
- package/out/main/domains/StateDomain.js.map +1 -0
- package/out/main/index.js +14 -0
- package/out/main/index.js.map +1 -0
- package/{src/main/protocol.ts → out/main/protocol.d.ts} +1 -9
- package/out/main/protocol.js +12 -0
- package/out/main/protocol.js.map +1 -0
- package/out/main/schema/EvaluateRequest.d.ts +6 -0
- package/{src/main/schema/EvaluateRequest.ts → out/main/schema/EvaluateRequest.js} +2 -7
- package/out/main/schema/EvaluateRequest.js.map +1 -0
- package/out/main/schema/EvaluateResponse.d.ts +9 -0
- package/{src/main/schema/EvaluateResponse.ts → out/main/schema/EvaluateResponse.js} +2 -10
- package/out/main/schema/EvaluateResponse.js.map +1 -0
- package/out/main/schema/KeyboardEventRequest.d.ts +9 -0
- package/{src/main/schema/KeyboardEventRequest.ts → out/main/schema/KeyboardEventRequest.js} +2 -10
- package/out/main/schema/KeyboardEventRequest.js.map +1 -0
- package/out/main/schema/MouseEventRequest.d.ts +13 -0
- package/{src/main/schema/MouseEventRequest.ts → out/main/schema/MouseEventRequest.js} +2 -14
- package/out/main/schema/MouseEventRequest.js.map +1 -0
- package/out/main/schema/PageMetadata.d.ts +10 -0
- package/{src/main/schema/PageMetadata.ts → out/main/schema/PageMetadata.js} +2 -11
- package/out/main/schema/PageMetadata.js.map +1 -0
- package/out/main/schema/ScreencastFrame.d.ts +8 -0
- package/{src/main/schema/ScreencastFrame.ts → out/main/schema/ScreencastFrame.js} +2 -9
- package/out/main/schema/ScreencastFrame.js.map +1 -0
- package/out/main/schema/WorkflowInfo.d.ts +7 -0
- package/{src/main/schema/WorkflowInfo.ts → out/main/schema/WorkflowInfo.js} +2 -8
- package/out/main/schema/WorkflowInfo.js.map +1 -0
- package/out/main/schema/WorkflowMessage.d.ts +11 -0
- package/{src/main/schema/WorkflowMessage.ts → out/main/schema/WorkflowMessage.js} +2 -12
- package/out/main/schema/WorkflowMessage.js.map +1 -0
- package/package.json +4 -1
- package/src/main/domains/EvalDomain.ts +0 -30
- package/tsconfig.json +0 -8
- /package/{src/main/index.ts → out/main/index.d.ts} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
+
import { Event } from 'nanoevent';
|
|
3
|
+
import { KeyboardEventRequest } from '../schema/KeyboardEventRequest.js';
|
|
4
|
+
import { MouseEventRequest } from '../schema/MouseEventRequest.js';
|
|
5
|
+
import { ScreencastFrame } from '../schema/ScreencastFrame.js';
|
|
6
|
+
export interface BrowserDomain {
|
|
7
|
+
getUrl(req: {}): Promise<{
|
|
8
|
+
url: string;
|
|
9
|
+
}>;
|
|
10
|
+
goto(req: {
|
|
11
|
+
url: string;
|
|
12
|
+
waitUntil?: 'load' | 'domcontentloaded' | 'networkidle';
|
|
13
|
+
}): Promise<{}>;
|
|
14
|
+
sendCdpCommand(req: {
|
|
15
|
+
command: string;
|
|
16
|
+
params: any;
|
|
17
|
+
}): Promise<{
|
|
18
|
+
result: any;
|
|
19
|
+
}>;
|
|
20
|
+
startScreencast(req: {}): Promise<{}>;
|
|
21
|
+
stopScreencast(req: {}): Promise<{}>;
|
|
22
|
+
dispatchMouseEvent(req: MouseEventRequest): Promise<{}>;
|
|
23
|
+
dispatchKeyboardEvent(req: KeyboardEventRequest): Promise<{}>;
|
|
24
|
+
getViewportSize(req: {}): Promise<{
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
}>;
|
|
28
|
+
setViewportSize(req: {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
}): Promise<{}>;
|
|
32
|
+
urlChanged: Event<{
|
|
33
|
+
url: string;
|
|
34
|
+
}>;
|
|
35
|
+
screencastFrame: Event<ScreencastFrame>;
|
|
36
|
+
}
|
|
37
|
+
export declare const BrowserDomain: DomainDef<BrowserDomain>;
|
|
@@ -1,55 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Event } from 'nanoevent';
|
|
3
|
-
|
|
4
|
-
import { KeyboardEventRequest } from '../schema/KeyboardEventRequest.js';
|
|
5
|
-
import { MouseEventRequest } from '../schema/MouseEventRequest.js';
|
|
6
|
-
import { ScreencastFrame } from '../schema/ScreencastFrame.js';
|
|
7
|
-
|
|
8
|
-
export interface BrowserDomain {
|
|
9
|
-
|
|
10
|
-
getUrl(req: {}): Promise<{
|
|
11
|
-
url: string;
|
|
12
|
-
}>;
|
|
13
|
-
|
|
14
|
-
goto(req: {
|
|
15
|
-
url: string;
|
|
16
|
-
waitUntil?: 'load' | 'domcontentloaded' | 'networkidle';
|
|
17
|
-
}): Promise<{}>;
|
|
18
|
-
|
|
19
|
-
sendCdpCommand(req: {
|
|
20
|
-
command: string;
|
|
21
|
-
params: any;
|
|
22
|
-
}): Promise<{
|
|
23
|
-
result: any;
|
|
24
|
-
}>;
|
|
25
|
-
|
|
26
|
-
startScreencast(req: {}): Promise<{}>;
|
|
27
|
-
|
|
28
|
-
stopScreencast(req: {}): Promise<{}>;
|
|
29
|
-
|
|
30
|
-
dispatchMouseEvent(req: MouseEventRequest): Promise<{}>;
|
|
31
|
-
|
|
32
|
-
dispatchKeyboardEvent(req: KeyboardEventRequest): Promise<{}>;
|
|
33
|
-
|
|
34
|
-
getViewportSize(req: {}): Promise<{
|
|
35
|
-
width: number;
|
|
36
|
-
height: number;
|
|
37
|
-
}>;
|
|
38
|
-
|
|
39
|
-
setViewportSize(req: {
|
|
40
|
-
width: number;
|
|
41
|
-
height: number;
|
|
42
|
-
}): Promise<{}>;
|
|
43
|
-
|
|
44
|
-
urlChanged: Event<{
|
|
45
|
-
url: string;
|
|
46
|
-
}>;
|
|
47
|
-
|
|
48
|
-
screencastFrame: Event<ScreencastFrame>;
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const BrowserDomain: DomainDef<BrowserDomain> = {
|
|
1
|
+
export const BrowserDomain = {
|
|
53
2
|
name: 'Browser',
|
|
54
3
|
methods: {
|
|
55
4
|
getUrl: {
|
|
@@ -164,3 +113,4 @@ export const BrowserDomain: DomainDef<BrowserDomain> = {
|
|
|
164
113
|
},
|
|
165
114
|
},
|
|
166
115
|
};
|
|
116
|
+
//# sourceMappingURL=BrowserDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserDomain.js","sourceRoot":"","sources":["../../../src/main/domains/BrowserDomain.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
+
import { EvaluateRequest } from '../schema/EvaluateRequest.js';
|
|
3
|
+
import { EvaluateResponse } from '../schema/EvaluateResponse.js';
|
|
4
|
+
export interface EvalDomain {
|
|
5
|
+
evaluate(req: {
|
|
6
|
+
request: EvaluateRequest;
|
|
7
|
+
}): Promise<{
|
|
8
|
+
response: EvaluateResponse;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
export declare const EvalDomain: DomainDef<EvalDomain>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EvaluateRequestSchema } from '../schema/EvaluateRequest.js';
|
|
2
|
+
import { EvaluateResponseSchema } from '../schema/EvaluateResponse.js';
|
|
3
|
+
export const EvalDomain = {
|
|
4
|
+
name: 'Eval',
|
|
5
|
+
methods: {
|
|
6
|
+
evaluate: {
|
|
7
|
+
type: 'command',
|
|
8
|
+
params: {
|
|
9
|
+
request: EvaluateRequestSchema.schema,
|
|
10
|
+
},
|
|
11
|
+
returns: {
|
|
12
|
+
response: EvaluateResponseSchema.schema,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
events: {},
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=EvalDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvalDomain.js","sourceRoot":"","sources":["../../../src/main/domains/EvalDomain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAoB,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAYzF,MAAM,CAAC,MAAM,UAAU,GAA0B;IAC7C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE;QACL,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,OAAO,EAAE,qBAAqB,CAAC,MAAM;aACxC;YACD,OAAO,EAAE;gBACL,QAAQ,EAAE,sBAAsB,CAAC,MAAM;aAC1C;SACJ;KACJ;IACD,MAAM,EAAE,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
+
import { Event } from 'nanoevent';
|
|
3
|
+
import { WorkflowMessage } from '../schema/WorkflowMessage.js';
|
|
4
|
+
export interface MessageDomain {
|
|
5
|
+
getMessages(req: {}): Promise<{
|
|
6
|
+
messages: WorkflowMessage[];
|
|
7
|
+
}>;
|
|
8
|
+
clearMessages(req: {}): Promise<{}>;
|
|
9
|
+
messageAdded: Event<{
|
|
10
|
+
message: WorkflowMessage;
|
|
11
|
+
}>;
|
|
12
|
+
messageUpdated: Event<{
|
|
13
|
+
messageId: string;
|
|
14
|
+
content: string;
|
|
15
|
+
}>;
|
|
16
|
+
messagesCleared: Event<{}>;
|
|
17
|
+
}
|
|
18
|
+
export declare const MessageDomain: DomainDef<MessageDomain>;
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { WorkflowMessage, WorkflowMessageSchema } from '../schema/WorkflowMessage.js';
|
|
5
|
-
|
|
6
|
-
export interface MessageDomain {
|
|
7
|
-
|
|
8
|
-
getMessages(req: {}): Promise<{
|
|
9
|
-
messages: WorkflowMessage[];
|
|
10
|
-
}>;
|
|
11
|
-
|
|
12
|
-
clearMessages(req: {}): Promise<{}>;
|
|
13
|
-
|
|
14
|
-
messageAdded: Event<{
|
|
15
|
-
message: WorkflowMessage;
|
|
16
|
-
}>;
|
|
17
|
-
|
|
18
|
-
messageUpdated: Event<{
|
|
19
|
-
messageId: string;
|
|
20
|
-
content: string;
|
|
21
|
-
}>;
|
|
22
|
-
|
|
23
|
-
messagesCleared: Event<{}>;
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const MessageDomain: DomainDef<MessageDomain> = {
|
|
1
|
+
import { WorkflowMessageSchema } from '../schema/WorkflowMessage.js';
|
|
2
|
+
export const MessageDomain = {
|
|
28
3
|
name: 'Message',
|
|
29
4
|
methods: {
|
|
30
5
|
getMessages: {
|
|
@@ -62,3 +37,4 @@ export const MessageDomain: DomainDef<MessageDomain> = {
|
|
|
62
37
|
},
|
|
63
38
|
},
|
|
64
39
|
};
|
|
40
|
+
//# sourceMappingURL=MessageDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageDomain.js","sourceRoot":"","sources":["../../../src/main/domains/MessageDomain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAuBtF,MAAM,CAAC,MAAM,aAAa,GAA6B;IACnD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE;QACL,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,QAAQ,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,qBAAqB,CAAC,MAAM;iBACtC;aACJ;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACjC;YACD,OAAO,EAAE,EAAE;SACd;KACJ;IACD,MAAM,EAAE;QACJ,YAAY,EAAE;YACV,MAAM,EAAE;gBACJ,OAAO,EAAE,qBAAqB,CAAC,MAAM;aACxC;SACJ;QACD,cAAc,EAAE;YACZ,MAAM,EAAE;gBACJ,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;SACJ;QACD,eAAe,EAAE;YACb,MAAM,EAAE,EAAE;SACb;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
+
import { Event } from 'nanoevent';
|
|
3
|
+
export interface StateDomain {
|
|
4
|
+
getState(req: {}): Promise<{
|
|
5
|
+
data: Record<string, any>;
|
|
6
|
+
}>;
|
|
7
|
+
setStateData(req: {
|
|
8
|
+
key: string;
|
|
9
|
+
value: any;
|
|
10
|
+
}): Promise<{}>;
|
|
11
|
+
clearState(req: {}): Promise<{}>;
|
|
12
|
+
stateCleared: Event<{}>;
|
|
13
|
+
stateUpdated: Event<{
|
|
14
|
+
key: string;
|
|
15
|
+
value: any;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export declare const StateDomain: DomainDef<StateDomain>;
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Event } from 'nanoevent';
|
|
3
|
-
|
|
4
|
-
export interface StateDomain {
|
|
5
|
-
|
|
6
|
-
getState(req: {}): Promise<{
|
|
7
|
-
data: Record<string, any>;
|
|
8
|
-
}>;
|
|
9
|
-
|
|
10
|
-
setStateData(req: {
|
|
11
|
-
key: string;
|
|
12
|
-
value: any;
|
|
13
|
-
}): Promise<{}>;
|
|
14
|
-
|
|
15
|
-
clearState(req: {}): Promise<{}>;
|
|
16
|
-
|
|
17
|
-
stateCleared: Event<{}>;
|
|
18
|
-
|
|
19
|
-
stateUpdated: Event<{
|
|
20
|
-
key: string;
|
|
21
|
-
value: any;
|
|
22
|
-
}>;
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const StateDomain: DomainDef<StateDomain> = {
|
|
1
|
+
export const StateDomain = {
|
|
27
2
|
name: 'State',
|
|
28
3
|
methods: {
|
|
29
4
|
getState: {
|
|
@@ -73,3 +48,4 @@ export const StateDomain: DomainDef<StateDomain> = {
|
|
|
73
48
|
},
|
|
74
49
|
},
|
|
75
50
|
};
|
|
51
|
+
//# sourceMappingURL=StateDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateDomain.js","sourceRoot":"","sources":["../../../src/main/domains/StateDomain.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAC,MAAM,WAAW,GAA2B;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACL,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,IAAI,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE,EAAE;oBACd,oBAAoB,EAAE;wBAClB,IAAI,EAAE,KAAK;qBACd;iBACJ;aACJ;SACJ;QACD,YAAY,EAAE;YACV,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,GAAG,EAAE;oBACD,IAAI,EAAE,QAAQ;iBACjB;gBACD,KAAK,EAAE;oBACH,IAAI,EAAE,KAAK;iBACd;aACJ;YACD,OAAO,EAAE,EAAE;SACd;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;SACd;KACJ;IACD,MAAM,EAAE;QACJ,YAAY,EAAE;YACV,MAAM,EAAE,EAAE;SACb;QACD,YAAY,EAAE;YACV,MAAM,EAAE;gBACJ,GAAG,EAAE;oBACD,IAAI,EAAE,QAAQ;iBACjB;gBACD,KAAK,EAAE;oBACH,IAAI,EAAE,KAAK;iBACd;aACJ;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './domains/BrowserDomain.js';
|
|
2
|
+
export * from './domains/EvalDomain.js';
|
|
3
|
+
export * from './domains/MessageDomain.js';
|
|
4
|
+
export * from './domains/StateDomain.js';
|
|
5
|
+
export * from './protocol.js';
|
|
6
|
+
export * from './schema/EvaluateRequest.js';
|
|
7
|
+
export * from './schema/EvaluateResponse.js';
|
|
8
|
+
export * from './schema/KeyboardEventRequest.js';
|
|
9
|
+
export * from './schema/MouseEventRequest.js';
|
|
10
|
+
export * from './schema/PageMetadata.js';
|
|
11
|
+
export * from './schema/ScreencastFrame.js';
|
|
12
|
+
export * from './schema/WorkflowInfo.js';
|
|
13
|
+
export * from './schema/WorkflowMessage.js';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { ProtocolIndex } from '@nodescript/protocomm';
|
|
2
|
-
|
|
3
2
|
import { BrowserDomain } from './domains/BrowserDomain.js';
|
|
4
3
|
import { EvalDomain } from './domains/EvalDomain.js';
|
|
5
4
|
import { MessageDomain } from './domains/MessageDomain.js';
|
|
6
5
|
import { StateDomain } from './domains/StateDomain.js';
|
|
7
|
-
|
|
8
6
|
export interface RunnerProtocol {
|
|
9
7
|
Browser: BrowserDomain;
|
|
10
8
|
Eval: EvalDomain;
|
|
11
9
|
State: StateDomain;
|
|
12
10
|
Message: MessageDomain;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
export const runnerProtocol = new ProtocolIndex<RunnerProtocol>({
|
|
16
|
-
Browser: BrowserDomain,
|
|
17
|
-
Eval: EvalDomain,
|
|
18
|
-
State: StateDomain,
|
|
19
|
-
Message: MessageDomain,
|
|
20
|
-
});
|
|
12
|
+
export declare const runnerProtocol: ProtocolIndex<RunnerProtocol>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProtocolIndex } from '@nodescript/protocomm';
|
|
2
|
+
import { BrowserDomain } from './domains/BrowserDomain.js';
|
|
3
|
+
import { EvalDomain } from './domains/EvalDomain.js';
|
|
4
|
+
import { MessageDomain } from './domains/MessageDomain.js';
|
|
5
|
+
import { StateDomain } from './domains/StateDomain.js';
|
|
6
|
+
export const runnerProtocol = new ProtocolIndex({
|
|
7
|
+
Browser: BrowserDomain,
|
|
8
|
+
Eval: EvalDomain,
|
|
9
|
+
State: StateDomain,
|
|
10
|
+
Message: MessageDomain,
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../src/main/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AASvD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,aAAa,CAAiB;IAC5D,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,aAAa;CACzB,CAAC,CAAC"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface EvaluateRequest {
|
|
4
|
-
code: string;
|
|
5
|
-
args: Record<string, unknown>;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const EvaluateRequestSchema = new Schema<EvaluateRequest>({
|
|
2
|
+
export const EvaluateRequestSchema = new Schema({
|
|
9
3
|
type: 'object',
|
|
10
4
|
properties: {
|
|
11
5
|
code: { type: 'string' },
|
|
@@ -16,3 +10,4 @@ export const EvaluateRequestSchema = new Schema<EvaluateRequest>({
|
|
|
16
10
|
},
|
|
17
11
|
},
|
|
18
12
|
});
|
|
13
|
+
//# sourceMappingURL=EvaluateRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvaluateRequest.js","sourceRoot":"","sources":["../../../src/main/schema/EvaluateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,MAAM,CAAkB;IAC7D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;YACd,oBAAoB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SACxC;KACJ;CACJ,CAAC,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface EvaluateResponse {
|
|
4
|
-
result?: unknown;
|
|
5
|
-
error?: {
|
|
6
|
-
name: string;
|
|
7
|
-
message: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const EvaluateResponseSchema = new Schema<EvaluateResponse>({
|
|
2
|
+
export const EvaluateResponseSchema = new Schema({
|
|
12
3
|
type: 'object',
|
|
13
4
|
properties: {
|
|
14
5
|
result: {
|
|
@@ -25,3 +16,4 @@ export const EvaluateResponseSchema = new Schema<EvaluateResponse>({
|
|
|
25
16
|
},
|
|
26
17
|
},
|
|
27
18
|
});
|
|
19
|
+
//# sourceMappingURL=EvaluateResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvaluateResponse.js","sourceRoot":"","sources":["../../../src/main/schema/EvaluateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUlC,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAmB;IAC/D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;YACD,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
export interface KeyboardEventRequest {
|
|
3
|
+
type: 'keydown' | 'keyup' | 'keypress';
|
|
4
|
+
key?: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
modifiers?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const KeyboardEventRequestSchema: Schema<KeyboardEventRequest>;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface KeyboardEventRequest {
|
|
4
|
-
type: 'keydown' | 'keyup' | 'keypress';
|
|
5
|
-
key?: string;
|
|
6
|
-
code?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
modifiers?: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const KeyboardEventRequestSchema = new Schema<KeyboardEventRequest>({
|
|
2
|
+
export const KeyboardEventRequestSchema = new Schema({
|
|
12
3
|
type: 'object',
|
|
13
4
|
properties: {
|
|
14
5
|
type: {
|
|
@@ -21,3 +12,4 @@ export const KeyboardEventRequestSchema = new Schema<KeyboardEventRequest>({
|
|
|
21
12
|
modifiers: { type: 'number', optional: true },
|
|
22
13
|
},
|
|
23
14
|
});
|
|
15
|
+
//# sourceMappingURL=KeyboardEventRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardEventRequest.js","sourceRoot":"","sources":["../../../src/main/schema/KeyboardEventRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUlC,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,MAAM,CAAuB;IACvE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;SACzC;QACD,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACvC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAChD;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
export interface MouseEventRequest {
|
|
3
|
+
type: 'mousedown' | 'mouseup' | 'mousemove' | 'wheel';
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
button?: 'left' | 'right' | 'middle';
|
|
7
|
+
buttons?: number;
|
|
8
|
+
clickCount?: number;
|
|
9
|
+
deltaX?: number;
|
|
10
|
+
deltaY?: number;
|
|
11
|
+
modifiers?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const MouseEventRequestSchema: Schema<MouseEventRequest>;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface MouseEventRequest {
|
|
4
|
-
type: 'mousedown' | 'mouseup' | 'mousemove' | 'wheel';
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
button?: 'left' | 'right' | 'middle';
|
|
8
|
-
buttons?: number;
|
|
9
|
-
clickCount?: number;
|
|
10
|
-
deltaX?: number;
|
|
11
|
-
deltaY?: number;
|
|
12
|
-
modifiers?: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const MouseEventRequestSchema = new Schema<MouseEventRequest>({
|
|
2
|
+
export const MouseEventRequestSchema = new Schema({
|
|
16
3
|
type: 'object',
|
|
17
4
|
properties: {
|
|
18
5
|
type: {
|
|
@@ -33,3 +20,4 @@ export const MouseEventRequestSchema = new Schema<MouseEventRequest>({
|
|
|
33
20
|
modifiers: { type: 'number', optional: true },
|
|
34
21
|
},
|
|
35
22
|
});
|
|
23
|
+
//# sourceMappingURL=MouseEventRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MouseEventRequest.js","sourceRoot":"","sources":["../../../src/main/schema/MouseEventRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAclC,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,MAAM,CAAoB;IACjE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC;SACvD;QACD,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;YACjC,QAAQ,EAAE,IAAI;SACjB;QACD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3C,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC9C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1C,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAChD;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
export interface PageMetadata {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
type: 'page' | 'iframe';
|
|
6
|
+
url: string;
|
|
7
|
+
devtoolsFrontendUrl: string;
|
|
8
|
+
webSocketDebuggerUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PageMetadataSchema: Schema<PageMetadata>;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface PageMetadata {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
type: 'page' | 'iframe';
|
|
7
|
-
url: string;
|
|
8
|
-
devtoolsFrontendUrl: string;
|
|
9
|
-
webSocketDebuggerUrl: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const PageMetadataSchema = new Schema<PageMetadata>({
|
|
2
|
+
export const PageMetadataSchema = new Schema({
|
|
13
3
|
type: 'object',
|
|
14
4
|
properties: {
|
|
15
5
|
id: { type: 'string' },
|
|
@@ -20,3 +10,4 @@ export const PageMetadataSchema = new Schema<PageMetadata>({
|
|
|
20
10
|
webSocketDebuggerUrl: { type: 'string' },
|
|
21
11
|
},
|
|
22
12
|
});
|
|
13
|
+
//# sourceMappingURL=PageMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageMetadata.js","sourceRoot":"","sources":["../../../src/main/schema/PageMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAWlC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAe;IACvD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE;QAClD,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvC,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC3C;CACJ,CAAC,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface ScreencastFrame {
|
|
4
|
-
sessionId: number;
|
|
5
|
-
data: string;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const ScreencastFrameSchema = new Schema<ScreencastFrame>({
|
|
2
|
+
export const ScreencastFrameSchema = new Schema({
|
|
11
3
|
type: 'object',
|
|
12
4
|
properties: {
|
|
13
5
|
sessionId: { type: 'number' },
|
|
@@ -16,3 +8,4 @@ export const ScreencastFrameSchema = new Schema<ScreencastFrame>({
|
|
|
16
8
|
height: { type: 'number' },
|
|
17
9
|
},
|
|
18
10
|
});
|
|
11
|
+
//# sourceMappingURL=ScreencastFrame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreencastFrame.js","sourceRoot":"","sources":["../../../src/main/schema/ScreencastFrame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,MAAM,CAAkB;IAC7D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC7B;CACJ,CAAC,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface WorkflowInfo {
|
|
4
|
-
workflowId: string;
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const WorkflowInfoSchema = new Schema<WorkflowInfo>({
|
|
2
|
+
export const WorkflowInfoSchema = new Schema({
|
|
10
3
|
type: 'object',
|
|
11
4
|
properties: {
|
|
12
5
|
workflowId: { type: 'string' },
|
|
@@ -14,3 +7,4 @@ export const WorkflowInfoSchema = new Schema<WorkflowInfo>({
|
|
|
14
7
|
description: { type: 'string', optional: true },
|
|
15
8
|
},
|
|
16
9
|
});
|
|
10
|
+
//# sourceMappingURL=WorkflowInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowInfo.js","sourceRoot":"","sources":["../../../src/main/schema/WorkflowInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAe;IACvD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAClD;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
export interface WorkflowMessage {
|
|
3
|
+
messageId?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
content: string;
|
|
7
|
+
data?: any;
|
|
8
|
+
code?: string;
|
|
9
|
+
timestamp?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const WorkflowMessageSchema: Schema<WorkflowMessage>;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'airtight';
|
|
2
|
-
|
|
3
|
-
export interface WorkflowMessage {
|
|
4
|
-
messageId?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
content: string;
|
|
8
|
-
data?: any;
|
|
9
|
-
code?: string;
|
|
10
|
-
timestamp?: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const WorkflowMessageSchema = new Schema<WorkflowMessage>({
|
|
2
|
+
export const WorkflowMessageSchema = new Schema({
|
|
14
3
|
type: 'object',
|
|
15
4
|
properties: {
|
|
16
5
|
messageId: { type: 'string', optional: true },
|
|
@@ -22,3 +11,4 @@ export const WorkflowMessageSchema = new Schema<WorkflowMessage>({
|
|
|
22
11
|
timestamp: { type: 'number', optional: true },
|
|
23
12
|
},
|
|
24
13
|
});
|
|
14
|
+
//# sourceMappingURL=WorkflowMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowMessage.js","sourceRoot":"","sources":["../../../src/main/schema/WorkflowMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAYlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,MAAM,CAAkB;IAC7D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7C,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACrC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAChD;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athree/runner-proto",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./out/main/index.js"
|
|
8
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"out"
|
|
11
|
+
],
|
|
9
12
|
"scripts": {
|
|
10
13
|
"clean": "rm -rf out/ *.tsbuildinfo"
|
|
11
14
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
-
|
|
3
|
-
import { EvaluateRequest, EvaluateRequestSchema } from '../schema/EvaluateRequest.js';
|
|
4
|
-
import { EvaluateResponse, EvaluateResponseSchema } from '../schema/EvaluateResponse.js';
|
|
5
|
-
|
|
6
|
-
export interface EvalDomain {
|
|
7
|
-
|
|
8
|
-
evaluate(req: {
|
|
9
|
-
request: EvaluateRequest;
|
|
10
|
-
}): Promise<{
|
|
11
|
-
response: EvaluateResponse;
|
|
12
|
-
}>;
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const EvalDomain: DomainDef<EvalDomain> = {
|
|
17
|
-
name: 'Eval',
|
|
18
|
-
methods: {
|
|
19
|
-
evaluate: {
|
|
20
|
-
type: 'command',
|
|
21
|
-
params: {
|
|
22
|
-
request: EvaluateRequestSchema.schema,
|
|
23
|
-
},
|
|
24
|
-
returns: {
|
|
25
|
-
response: EvaluateResponseSchema.schema,
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
events: {},
|
|
30
|
-
};
|
package/tsconfig.json
DELETED
|
File without changes
|