@athree/runner-proto 3.2.4 → 3.3.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.
@@ -0,0 +1,13 @@
1
+ import { DomainDef } from '@nodescript/protocomm';
2
+ import { Stage } from '../schema/Stage.js';
3
+ export interface AutomationDomain {
4
+ getStages(req: {}): Promise<{
5
+ stages: Stage[];
6
+ }>;
7
+ executeStage(req: {
8
+ stageKey: string;
9
+ }): Promise<{
10
+ error?: any;
11
+ }>;
12
+ }
13
+ export declare const AutomationDomain: DomainDef<AutomationDomain>;
@@ -0,0 +1,27 @@
1
+ import { StageSchema } from '../schema/Stage.js';
2
+ export const AutomationDomain = {
3
+ name: 'Automation',
4
+ methods: {
5
+ getStages: {
6
+ type: 'query',
7
+ params: {},
8
+ returns: {
9
+ stages: {
10
+ type: 'array',
11
+ items: StageSchema.schema,
12
+ },
13
+ },
14
+ },
15
+ executeStage: {
16
+ type: 'command',
17
+ params: {
18
+ stageKey: { type: 'string' },
19
+ },
20
+ returns: {
21
+ error: { type: 'any', nullable: true },
22
+ },
23
+ }
24
+ },
25
+ events: {}
26
+ };
27
+ //# sourceMappingURL=AutomationDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationDomain.js","sourceRoot":"","sources":["../../../src/main/domains/AutomationDomain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAgBxD,MAAM,CAAC,MAAM,gBAAgB,GAAgC;IACzD,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE;QACL,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,MAAM,EAAE;oBACJ,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,WAAW,CAAC,MAAM;iBAC5B;aACJ;SACJ;QACD,YAAY,EAAE;YACV,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC/B;YACD,OAAO,EAAE;gBACL,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;aACzC;SACJ;KACJ;IACD,MAAM,EAAE,EAAE;CACb,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './domains/AutomationDomain.js';
1
2
  export * from './domains/BrowserDomain.js';
2
3
  export * from './domains/ChatDomain.js';
3
4
  export * from './domains/DebugDomain.js';
@@ -13,5 +14,6 @@ export * from './schema/MessageEvent.js';
13
14
  export * from './schema/MouseEventRequest.js';
14
15
  export * from './schema/PageMetadata.js';
15
16
  export * from './schema/ScreencastFrame.js';
17
+ export * from './schema/Stage.js';
16
18
  export * from './schema/WorkflowInfo.js';
17
19
  export * from './schema/WorkflowMessage.js';
package/out/main/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './domains/AutomationDomain.js';
1
2
  export * from './domains/BrowserDomain.js';
2
3
  export * from './domains/ChatDomain.js';
3
4
  export * from './domains/DebugDomain.js';
@@ -13,6 +14,7 @@ export * from './schema/MessageEvent.js';
13
14
  export * from './schema/MouseEventRequest.js';
14
15
  export * from './schema/PageMetadata.js';
15
16
  export * from './schema/ScreencastFrame.js';
17
+ export * from './schema/Stage.js';
16
18
  export * from './schema/WorkflowInfo.js';
17
19
  export * from './schema/WorkflowMessage.js';
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,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,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import { ProtocolIndex } from '@nodescript/protocomm';
2
+ import { AutomationDomain } from './domains/AutomationDomain.js';
2
3
  import { BrowserDomain } from './domains/BrowserDomain.js';
3
4
  import { ChatDomain } from './domains/ChatDomain.js';
4
5
  import { DebugDomain } from './domains/DebugDomain.js';
5
6
  import { EvalDomain } from './domains/EvalDomain.js';
6
7
  import { WorkflowDomain } from './domains/WorkflowDomain.js';
7
8
  export interface RunnerProtocol {
9
+ Automation: AutomationDomain;
8
10
  Browser: BrowserDomain;
9
11
  Chat: ChatDomain;
10
12
  Debug: DebugDomain;
@@ -1,10 +1,12 @@
1
1
  import { ProtocolIndex } from '@nodescript/protocomm';
2
+ import { AutomationDomain } from './domains/AutomationDomain.js';
2
3
  import { BrowserDomain } from './domains/BrowserDomain.js';
3
4
  import { ChatDomain } from './domains/ChatDomain.js';
4
5
  import { DebugDomain } from './domains/DebugDomain.js';
5
6
  import { EvalDomain } from './domains/EvalDomain.js';
6
7
  import { WorkflowDomain } from './domains/WorkflowDomain.js';
7
8
  export const runnerProtocol = new ProtocolIndex({
9
+ Automation: AutomationDomain,
8
10
  Browser: BrowserDomain,
9
11
  Chat: ChatDomain,
10
12
  Debug: DebugDomain,
@@ -1 +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"}
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,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,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;AAW7D,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,aAAa,CAAiB;IAC5D,UAAU,EAAE,gBAAgB;IAC5B,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,13 @@
1
+ import { Schema } from 'airtight';
2
+ export interface Stage {
3
+ initial: boolean;
4
+ overlay: boolean;
5
+ final?: 'success' | 'failure' | null;
6
+ key: string;
7
+ title: string;
8
+ matchCode: string;
9
+ executionCode: string;
10
+ verifyCode?: string | null;
11
+ matchOnce: boolean;
12
+ }
13
+ export declare const StageSchema: Schema<Stage>;
@@ -0,0 +1,16 @@
1
+ import { Schema } from 'airtight';
2
+ export const StageSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ initial: { type: 'boolean' },
6
+ overlay: { type: 'boolean' },
7
+ final: { type: 'string', nullable: true, optional: true },
8
+ key: { type: 'string' },
9
+ title: { type: 'string' },
10
+ matchCode: { type: 'string' },
11
+ executionCode: { type: 'string' },
12
+ verifyCode: { type: 'string', nullable: true, optional: true },
13
+ matchOnce: { type: 'boolean' },
14
+ },
15
+ });
16
+ //# sourceMappingURL=Stage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stage.js","sourceRoot":"","sources":["../../../src/main/schema/Stage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAclC,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,MAAM,CAAQ;IACzC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC5B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzD,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC9D,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KACjC;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athree/runner-proto",
3
- "version": "3.2.4",
3
+ "version": "3.3.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {