@athree/runner-proto 2.0.0 → 2.1.0

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.
Files changed (59) hide show
  1. package/out/main/domains/BrowserDomain.d.ts +37 -0
  2. package/{src/main/domains/BrowserDomain.ts → out/main/domains/BrowserDomain.js} +2 -52
  3. package/out/main/domains/BrowserDomain.js.map +1 -0
  4. package/out/main/domains/ChatDomain.d.ts +17 -0
  5. package/{src/main/domains/MessageDomain.ts → out/main/domains/ChatDomain.js} +10 -31
  6. package/out/main/domains/ChatDomain.js.map +1 -0
  7. package/out/main/domains/DebugDomain.d.ts +13 -0
  8. package/out/main/domains/DebugDomain.js +25 -0
  9. package/out/main/domains/DebugDomain.js.map +1 -0
  10. package/out/main/domains/EvalDomain.d.ts +11 -0
  11. package/out/main/domains/EvalDomain.js +18 -0
  12. package/out/main/domains/EvalDomain.js.map +1 -0
  13. package/out/main/domains/WorkflowDomain.d.ts +9 -0
  14. package/out/main/domains/WorkflowDomain.js +22 -0
  15. package/out/main/domains/WorkflowDomain.js.map +1 -0
  16. package/{src/main/index.ts → out/main/index.d.ts} +6 -2
  17. package/out/main/index.js +18 -0
  18. package/out/main/index.js.map +1 -0
  19. package/out/main/protocol.d.ts +14 -0
  20. package/out/main/protocol.js +14 -0
  21. package/out/main/protocol.js.map +1 -0
  22. package/out/main/schema/DebugInstanceData.d.ts +6 -0
  23. package/out/main/schema/DebugInstanceData.js +13 -0
  24. package/out/main/schema/DebugInstanceData.js.map +1 -0
  25. package/out/main/schema/DebugInstanceUpdate.d.ts +7 -0
  26. package/out/main/schema/DebugInstanceUpdate.js +10 -0
  27. package/out/main/schema/DebugInstanceUpdate.js.map +1 -0
  28. package/out/main/schema/EvaluateRequest.d.ts +6 -0
  29. package/{src/main/schema/EvaluateRequest.ts → out/main/schema/EvaluateRequest.js} +2 -7
  30. package/out/main/schema/EvaluateRequest.js.map +1 -0
  31. package/out/main/schema/EvaluateResponse.d.ts +9 -0
  32. package/{src/main/schema/EvaluateResponse.ts → out/main/schema/EvaluateResponse.js} +2 -10
  33. package/out/main/schema/EvaluateResponse.js.map +1 -0
  34. package/out/main/schema/KeyboardEventRequest.d.ts +9 -0
  35. package/{src/main/schema/KeyboardEventRequest.ts → out/main/schema/KeyboardEventRequest.js} +2 -10
  36. package/out/main/schema/KeyboardEventRequest.js.map +1 -0
  37. package/out/main/schema/MessageEvent.d.ts +8 -0
  38. package/out/main/schema/MessageEvent.js +2 -0
  39. package/out/main/schema/MessageEvent.js.map +1 -0
  40. package/out/main/schema/MouseEventRequest.d.ts +13 -0
  41. package/{src/main/schema/MouseEventRequest.ts → out/main/schema/MouseEventRequest.js} +2 -14
  42. package/out/main/schema/MouseEventRequest.js.map +1 -0
  43. package/out/main/schema/PageMetadata.d.ts +10 -0
  44. package/{src/main/schema/PageMetadata.ts → out/main/schema/PageMetadata.js} +2 -11
  45. package/out/main/schema/PageMetadata.js.map +1 -0
  46. package/out/main/schema/ScreencastFrame.d.ts +8 -0
  47. package/{src/main/schema/ScreencastFrame.ts → out/main/schema/ScreencastFrame.js} +2 -9
  48. package/out/main/schema/ScreencastFrame.js.map +1 -0
  49. package/out/main/schema/WorkflowInfo.d.ts +7 -0
  50. package/{src/main/schema/WorkflowInfo.ts → out/main/schema/WorkflowInfo.js} +2 -8
  51. package/out/main/schema/WorkflowInfo.js.map +1 -0
  52. package/out/main/schema/WorkflowMessage.d.ts +11 -0
  53. package/{src/main/schema/WorkflowMessage.ts → out/main/schema/WorkflowMessage.js} +2 -12
  54. package/out/main/schema/WorkflowMessage.js.map +1 -0
  55. package/package.json +9 -1
  56. package/src/main/domains/EvalDomain.ts +0 -30
  57. package/src/main/domains/StateDomain.ts +0 -75
  58. package/src/main/protocol.ts +0 -20
  59. package/tsconfig.json +0 -8
@@ -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
- import { DomainDef } from '@nodescript/protocomm';
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,17 @@
1
+ import { DomainDef } from '@nodescript/protocomm';
2
+ import { Event } from 'nanoevent';
3
+ import { MessageAddedEvent, MessageUpdatedEvent } from '../schema/MessageEvent.js';
4
+ import { WorkflowMessage } from '../schema/WorkflowMessage.js';
5
+ export interface ChatDomain {
6
+ getMessages(req: {}): Promise<{
7
+ messages: WorkflowMessage[];
8
+ }>;
9
+ clearMessages(req: {}): Promise<{}>;
10
+ messageAdded: Event<MessageAddedEvent>;
11
+ messageUpdated: Event<MessageUpdatedEvent>;
12
+ messagesCleared: Event<{}>;
13
+ statusUpdated: Event<{
14
+ status: string;
15
+ }>;
16
+ }
17
+ export declare const ChatDomain: DomainDef<ChatDomain>;
@@ -1,31 +1,6 @@
1
- import { DomainDef } from '@nodescript/protocomm';
2
- import { Event } from 'nanoevent';
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> = {
28
- name: 'Message',
1
+ import { WorkflowMessageSchema } from '../schema/WorkflowMessage.js';
2
+ export const ChatDomain = {
3
+ name: 'Chat',
29
4
  methods: {
30
5
  getMessages: {
31
6
  type: 'query',
@@ -39,9 +14,7 @@ export const MessageDomain: DomainDef<MessageDomain> = {
39
14
  },
40
15
  clearMessages: {
41
16
  type: 'command',
42
- params: {
43
- workflowId: { type: 'string' },
44
- },
17
+ params: {},
45
18
  returns: {},
46
19
  },
47
20
  },
@@ -60,5 +33,11 @@ export const MessageDomain: DomainDef<MessageDomain> = {
60
33
  messagesCleared: {
61
34
  params: {},
62
35
  },
36
+ statusUpdated: {
37
+ params: {
38
+ status: { type: 'string' },
39
+ },
40
+ },
63
41
  },
64
42
  };
43
+ //# sourceMappingURL=ChatDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatDomain.js","sourceRoot":"","sources":["../../../src/main/domains/ChatDomain.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAiBtF,MAAM,CAAC,MAAM,UAAU,GAA0B;IAC7C,IAAI,EAAE,MAAM;IACZ,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,EAAE;YACV,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;QACD,aAAa,EAAE;YACX,MAAM,EAAE;gBACJ,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC7B;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { DomainDef } from '@nodescript/protocomm';
2
+ import { Event } from 'nanoevent';
3
+ import { DebugInstanceData } from '../schema/DebugInstanceData.js';
4
+ import { DebugInstanceUpdate } from '../schema/DebugInstanceUpdate.js';
5
+ export interface DebugDomain {
6
+ getInstanceData(req: {}): Promise<{
7
+ instances: DebugInstanceData[];
8
+ }>;
9
+ instanceUpdated: Event<{
10
+ update: DebugInstanceUpdate;
11
+ }>;
12
+ }
13
+ export declare const DebugDomain: DomainDef<DebugDomain>;
@@ -0,0 +1,25 @@
1
+ import { DebugInstanceDataSchema } from '../schema/DebugInstanceData.js';
2
+ import { DebugInstanceUpdateSchema } from '../schema/DebugInstanceUpdate.js';
3
+ export const DebugDomain = {
4
+ name: 'Debug',
5
+ methods: {
6
+ getInstanceData: {
7
+ type: 'query',
8
+ params: {},
9
+ returns: {
10
+ instances: {
11
+ type: 'array',
12
+ items: DebugInstanceDataSchema.schema,
13
+ },
14
+ },
15
+ },
16
+ },
17
+ events: {
18
+ instanceUpdated: {
19
+ params: {
20
+ update: DebugInstanceUpdateSchema.schema,
21
+ },
22
+ },
23
+ },
24
+ };
25
+ //# sourceMappingURL=DebugDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugDomain.js","sourceRoot":"","sources":["../../../src/main/domains/DebugDomain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAuB,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAYlG,MAAM,CAAC,MAAM,WAAW,GAA2B;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACL,eAAe,EAAE;YACb,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,SAAS,EAAE;oBACP,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,uBAAuB,CAAC,MAAM;iBACxC;aACJ;SACJ;KACJ;IACD,MAAM,EAAE;QACJ,eAAe,EAAE;YACb,MAAM,EAAE;gBACJ,MAAM,EAAE,yBAAyB,CAAC,MAAM;aAC3C;SACJ;KACJ;CACJ,CAAC"}
@@ -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,9 @@
1
+ import { DomainDef } from '@nodescript/protocomm';
2
+ import { WorkflowInfo } from '../schema/WorkflowInfo.js';
3
+ export interface WorkflowDomain {
4
+ getWorkflowInfo(req: {}): Promise<{
5
+ workflowInfo: WorkflowInfo;
6
+ }>;
7
+ syncStart(req: {}): Promise<{}>;
8
+ }
9
+ export declare const WorkflowDomain: DomainDef<WorkflowDomain>;
@@ -0,0 +1,22 @@
1
+ import { WorkflowInfoSchema } from '../schema/WorkflowInfo.js';
2
+ export const WorkflowDomain = {
3
+ name: 'Workflow',
4
+ methods: {
5
+ getWorkflowInfo: {
6
+ type: 'query',
7
+ params: {},
8
+ returns: {
9
+ workflowInfo: WorkflowInfoSchema.schema,
10
+ },
11
+ },
12
+ syncStart: {
13
+ type: 'query',
14
+ params: {},
15
+ returns: {
16
+ workflowInfo: WorkflowInfoSchema.schema
17
+ },
18
+ },
19
+ },
20
+ events: {},
21
+ };
22
+ //# sourceMappingURL=WorkflowDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowDomain.js","sourceRoot":"","sources":["../../../src/main/domains/WorkflowDomain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAY7E,MAAM,CAAC,MAAM,cAAc,GAA8B;IACrD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE;QACL,eAAe,EAAE;YACb,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,YAAY,EAAE,kBAAkB,CAAC,MAAM;aAC1C;SACJ;QACD,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,YAAY,EAAE,kBAAkB,CAAC,MAAM;aAC1C;SACJ;KACJ;IACD,MAAM,EAAE,EAAE;CACb,CAAC"}
@@ -1,11 +1,15 @@
1
1
  export * from './domains/BrowserDomain.js';
2
+ export * from './domains/ChatDomain.js';
3
+ export * from './domains/DebugDomain.js';
2
4
  export * from './domains/EvalDomain.js';
3
- export * from './domains/MessageDomain.js';
4
- export * from './domains/StateDomain.js';
5
+ export * from './domains/WorkflowDomain.js';
5
6
  export * from './protocol.js';
7
+ export * from './schema/DebugInstanceData.js';
8
+ export * from './schema/DebugInstanceUpdate.js';
6
9
  export * from './schema/EvaluateRequest.js';
7
10
  export * from './schema/EvaluateResponse.js';
8
11
  export * from './schema/KeyboardEventRequest.js';
12
+ export * from './schema/MessageEvent.js';
9
13
  export * from './schema/MouseEventRequest.js';
10
14
  export * from './schema/PageMetadata.js';
11
15
  export * from './schema/ScreencastFrame.js';
@@ -0,0 +1,18 @@
1
+ export * from './domains/BrowserDomain.js';
2
+ export * from './domains/ChatDomain.js';
3
+ export * from './domains/DebugDomain.js';
4
+ export * from './domains/EvalDomain.js';
5
+ export * from './domains/WorkflowDomain.js';
6
+ export * from './protocol.js';
7
+ export * from './schema/DebugInstanceData.js';
8
+ export * from './schema/DebugInstanceUpdate.js';
9
+ export * from './schema/EvaluateRequest.js';
10
+ export * from './schema/EvaluateResponse.js';
11
+ export * from './schema/KeyboardEventRequest.js';
12
+ export * from './schema/MessageEvent.js';
13
+ export * from './schema/MouseEventRequest.js';
14
+ export * from './schema/PageMetadata.js';
15
+ export * from './schema/ScreencastFrame.js';
16
+ export * from './schema/WorkflowInfo.js';
17
+ export * from './schema/WorkflowMessage.js';
18
+ //# 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,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ProtocolIndex } from '@nodescript/protocomm';
2
+ import { BrowserDomain } from './domains/BrowserDomain.js';
3
+ import { ChatDomain } from './domains/ChatDomain.js';
4
+ import { DebugDomain } from './domains/DebugDomain.js';
5
+ import { EvalDomain } from './domains/EvalDomain.js';
6
+ import { WorkflowDomain } from './domains/WorkflowDomain.js';
7
+ export interface RunnerProtocol {
8
+ Browser: BrowserDomain;
9
+ Chat: ChatDomain;
10
+ Debug: DebugDomain;
11
+ Eval: EvalDomain;
12
+ Workflow: WorkflowDomain;
13
+ }
14
+ export declare const runnerProtocol: ProtocolIndex<RunnerProtocol>;
@@ -0,0 +1,14 @@
1
+ import { ProtocolIndex } from '@nodescript/protocomm';
2
+ import { BrowserDomain } from './domains/BrowserDomain.js';
3
+ import { ChatDomain } from './domains/ChatDomain.js';
4
+ import { DebugDomain } from './domains/DebugDomain.js';
5
+ import { EvalDomain } from './domains/EvalDomain.js';
6
+ import { WorkflowDomain } from './domains/WorkflowDomain.js';
7
+ export const runnerProtocol = new ProtocolIndex({
8
+ Browser: BrowserDomain,
9
+ Chat: ChatDomain,
10
+ Debug: DebugDomain,
11
+ Eval: EvalDomain,
12
+ Workflow: WorkflowDomain,
13
+ });
14
+ //# 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,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAU7D,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,aAAa,CAAiB;IAC5D,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;CAC3B,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Schema } from 'airtight';
2
+ export interface DebugInstanceData {
3
+ instanceName: string;
4
+ properties: Record<string, any>;
5
+ }
6
+ export declare const DebugInstanceDataSchema: Schema<DebugInstanceData>;
@@ -0,0 +1,13 @@
1
+ import { Schema } from 'airtight';
2
+ export const DebugInstanceDataSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ instanceName: { type: 'string' },
6
+ properties: {
7
+ type: 'object',
8
+ properties: {},
9
+ additionalProperties: { type: 'any' },
10
+ },
11
+ },
12
+ });
13
+ //# sourceMappingURL=DebugInstanceData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugInstanceData.js","sourceRoot":"","sources":["../../../src/main/schema/DebugInstanceData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,MAAM,CAAoB;IACjE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAChC,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;YACd,oBAAoB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SACxC;KACJ;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ export interface DebugInstanceUpdate {
3
+ instanceName: string;
4
+ propertyKey: string;
5
+ propertyValue: any;
6
+ }
7
+ export declare const DebugInstanceUpdateSchema: Schema<DebugInstanceUpdate>;
@@ -0,0 +1,10 @@
1
+ import { Schema } from 'airtight';
2
+ export const DebugInstanceUpdateSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ instanceName: { type: 'string' },
6
+ propertyKey: { type: 'string' },
7
+ propertyValue: { type: 'any' },
8
+ },
9
+ });
10
+ //# sourceMappingURL=DebugInstanceUpdate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugInstanceUpdate.js","sourceRoot":"","sources":["../../../src/main/schema/DebugInstanceUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,MAAM,CAAsB;IACrE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAChC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC/B,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;KACjC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Schema } from 'airtight';
2
+ export interface EvaluateRequest {
3
+ code: string;
4
+ args: Record<string, unknown>;
5
+ }
6
+ export declare const EvaluateRequestSchema: Schema<EvaluateRequest>;
@@ -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"}
@@ -0,0 +1,9 @@
1
+ import { Schema } from 'airtight';
2
+ export interface EvaluateResponse {
3
+ result?: any;
4
+ error?: {
5
+ name: string;
6
+ message: string;
7
+ };
8
+ }
9
+ export declare const EvaluateResponseSchema: Schema<EvaluateResponse>;
@@ -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,8 @@
1
+ import { WorkflowMessage } from './WorkflowMessage.js';
2
+ export interface MessageAddedEvent {
3
+ message: WorkflowMessage;
4
+ }
5
+ export interface MessageUpdatedEvent {
6
+ messageId: string;
7
+ content: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MessageEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageEvent.js","sourceRoot":"","sources":["../../../src/main/schema/MessageEvent.ts"],"names":[],"mappings":""}
@@ -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"}
@@ -0,0 +1,8 @@
1
+ import { Schema } from 'airtight';
2
+ export interface ScreencastFrame {
3
+ sessionId: number;
4
+ data: string;
5
+ width: number;
6
+ height: number;
7
+ }
8
+ export declare const ScreencastFrameSchema: Schema<ScreencastFrame>;
@@ -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"}
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ export interface WorkflowInfo {
3
+ workflowId: string;
4
+ title: string;
5
+ description?: string;
6
+ }
7
+ export declare const WorkflowInfoSchema: Schema<WorkflowInfo>;
@@ -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,12 +1,20 @@
1
1
  {
2
2
  "name": "@athree/runner-proto",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
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"
14
+ },
15
+ "peerDependencies": {
16
+ "@nodescript/protocomm": "^1.2.0",
17
+ "airtight": "^5.7.2",
18
+ "nanoevent": "^1.0.0"
11
19
  }
12
20
  }
@@ -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
- };
@@ -1,75 +0,0 @@
1
- import { DomainDef } from '@nodescript/protocomm';
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> = {
27
- name: 'State',
28
- methods: {
29
- getState: {
30
- type: 'query',
31
- params: {},
32
- returns: {
33
- data: {
34
- type: 'object',
35
- properties: {},
36
- additionalProperties: {
37
- type: 'any',
38
- },
39
- },
40
- },
41
- },
42
- setStateData: {
43
- type: 'command',
44
- params: {
45
- key: {
46
- type: 'string',
47
- },
48
- value: {
49
- type: 'any',
50
- },
51
- },
52
- returns: {},
53
- },
54
- clearState: {
55
- type: 'command',
56
- params: {},
57
- returns: {},
58
- },
59
- },
60
- events: {
61
- stateCleared: {
62
- params: {},
63
- },
64
- stateUpdated: {
65
- params: {
66
- key: {
67
- type: 'string',
68
- },
69
- value: {
70
- type: 'any',
71
- },
72
- },
73
- },
74
- },
75
- };
@@ -1,20 +0,0 @@
1
- import { ProtocolIndex } from '@nodescript/protocomm';
2
-
3
- import { BrowserDomain } from './domains/BrowserDomain.js';
4
- import { EvalDomain } from './domains/EvalDomain.js';
5
- import { MessageDomain } from './domains/MessageDomain.js';
6
- import { StateDomain } from './domains/StateDomain.js';
7
-
8
- export interface RunnerProtocol {
9
- Browser: BrowserDomain;
10
- Eval: EvalDomain;
11
- State: StateDomain;
12
- Message: MessageDomain;
13
- }
14
-
15
- export const runnerProtocol = new ProtocolIndex<RunnerProtocol>({
16
- Browser: BrowserDomain,
17
- Eval: EvalDomain,
18
- State: StateDomain,
19
- Message: MessageDomain,
20
- });
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "./out",
5
- "rootDir": "./src"
6
- },
7
- "include": ["src"]
8
- }