@athree/runner-proto 2.0.1 → 2.1.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/{MessageDomain.d.ts → ChatDomain.d.ts} +8 -9
- package/out/main/domains/{MessageDomain.js → ChatDomain.js} +9 -6
- package/out/main/domains/ChatDomain.js.map +1 -0
- package/out/main/domains/DebugDomain.d.ts +13 -0
- package/out/main/domains/DebugDomain.js +25 -0
- package/out/main/domains/DebugDomain.js.map +1 -0
- package/out/main/domains/WorkflowDomain.d.ts +9 -0
- package/out/main/domains/WorkflowDomain.js +22 -0
- package/out/main/domains/WorkflowDomain.js.map +1 -0
- package/out/main/index.d.ts +6 -2
- package/out/main/index.js +6 -2
- package/out/main/index.js.map +1 -1
- package/out/main/protocol.d.ts +6 -4
- package/out/main/protocol.js +6 -4
- package/out/main/protocol.js.map +1 -1
- package/out/main/schema/DebugInstanceData.d.ts +6 -0
- package/out/main/schema/DebugInstanceData.js +13 -0
- package/out/main/schema/DebugInstanceData.js.map +1 -0
- package/out/main/schema/DebugInstanceUpdate.d.ts +7 -0
- package/out/main/schema/DebugInstanceUpdate.js +10 -0
- package/out/main/schema/DebugInstanceUpdate.js.map +1 -0
- package/out/main/schema/EvaluateResponse.d.ts +1 -1
- package/out/main/schema/MessageEvent.d.ts +8 -0
- package/out/main/schema/MessageEvent.js +2 -0
- package/out/main/schema/MessageEvent.js.map +1 -0
- package/package.json +6 -1
- package/out/main/domains/MessageDomain.js.map +0 -1
- package/out/main/domains/StateDomain.d.ts +0 -18
- package/out/main/domains/StateDomain.js +0 -51
- package/out/main/domains/StateDomain.js.map +0 -1
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { DomainDef } from '@nodescript/protocomm';
|
|
2
2
|
import { Event } from 'nanoevent';
|
|
3
|
+
import { MessageAddedEvent, MessageUpdatedEvent } from '../schema/MessageEvent.js';
|
|
3
4
|
import { WorkflowMessage } from '../schema/WorkflowMessage.js';
|
|
4
|
-
export interface
|
|
5
|
+
export interface ChatDomain {
|
|
5
6
|
getMessages(req: {}): Promise<{
|
|
6
7
|
messages: WorkflowMessage[];
|
|
7
8
|
}>;
|
|
8
9
|
clearMessages(req: {}): Promise<{}>;
|
|
9
|
-
messageAdded: Event<
|
|
10
|
-
|
|
11
|
-
}>;
|
|
12
|
-
messageUpdated: Event<{
|
|
13
|
-
messageId: string;
|
|
14
|
-
content: string;
|
|
15
|
-
}>;
|
|
10
|
+
messageAdded: Event<MessageAddedEvent>;
|
|
11
|
+
messageUpdated: Event<MessageUpdatedEvent>;
|
|
16
12
|
messagesCleared: Event<{}>;
|
|
13
|
+
statusUpdated: Event<{
|
|
14
|
+
status: string;
|
|
15
|
+
}>;
|
|
17
16
|
}
|
|
18
|
-
export declare const
|
|
17
|
+
export declare const ChatDomain: DomainDef<ChatDomain>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkflowMessageSchema } from '../schema/WorkflowMessage.js';
|
|
2
|
-
export const
|
|
3
|
-
name: '
|
|
2
|
+
export const ChatDomain = {
|
|
3
|
+
name: 'Chat',
|
|
4
4
|
methods: {
|
|
5
5
|
getMessages: {
|
|
6
6
|
type: 'query',
|
|
@@ -14,9 +14,7 @@ export const MessageDomain = {
|
|
|
14
14
|
},
|
|
15
15
|
clearMessages: {
|
|
16
16
|
type: 'command',
|
|
17
|
-
params: {
|
|
18
|
-
workflowId: { type: 'string' },
|
|
19
|
-
},
|
|
17
|
+
params: {},
|
|
20
18
|
returns: {},
|
|
21
19
|
},
|
|
22
20
|
},
|
|
@@ -35,6 +33,11 @@ export const MessageDomain = {
|
|
|
35
33
|
messagesCleared: {
|
|
36
34
|
params: {},
|
|
37
35
|
},
|
|
36
|
+
statusUpdated: {
|
|
37
|
+
params: {
|
|
38
|
+
status: { type: 'string' },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
38
41
|
},
|
|
39
42
|
};
|
|
40
|
-
//# sourceMappingURL=
|
|
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,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"}
|
package/out/main/index.d.ts
CHANGED
|
@@ -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/
|
|
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';
|
package/out/main/index.js
CHANGED
|
@@ -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/
|
|
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';
|
package/out/main/index.js.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/out/main/protocol.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ProtocolIndex } from '@nodescript/protocomm';
|
|
2
2
|
import { BrowserDomain } from './domains/BrowserDomain.js';
|
|
3
|
+
import { ChatDomain } from './domains/ChatDomain.js';
|
|
4
|
+
import { DebugDomain } from './domains/DebugDomain.js';
|
|
3
5
|
import { EvalDomain } from './domains/EvalDomain.js';
|
|
4
|
-
import {
|
|
5
|
-
import { StateDomain } from './domains/StateDomain.js';
|
|
6
|
+
import { WorkflowDomain } from './domains/WorkflowDomain.js';
|
|
6
7
|
export interface RunnerProtocol {
|
|
7
8
|
Browser: BrowserDomain;
|
|
9
|
+
Chat: ChatDomain;
|
|
10
|
+
Debug: DebugDomain;
|
|
8
11
|
Eval: EvalDomain;
|
|
9
|
-
|
|
10
|
-
Message: MessageDomain;
|
|
12
|
+
Workflow: WorkflowDomain;
|
|
11
13
|
}
|
|
12
14
|
export declare const runnerProtocol: ProtocolIndex<RunnerProtocol>;
|
package/out/main/protocol.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ProtocolIndex } from '@nodescript/protocomm';
|
|
2
2
|
import { BrowserDomain } from './domains/BrowserDomain.js';
|
|
3
|
+
import { ChatDomain } from './domains/ChatDomain.js';
|
|
4
|
+
import { DebugDomain } from './domains/DebugDomain.js';
|
|
3
5
|
import { EvalDomain } from './domains/EvalDomain.js';
|
|
4
|
-
import {
|
|
5
|
-
import { StateDomain } from './domains/StateDomain.js';
|
|
6
|
+
import { WorkflowDomain } from './domains/WorkflowDomain.js';
|
|
6
7
|
export const runnerProtocol = new ProtocolIndex({
|
|
7
8
|
Browser: BrowserDomain,
|
|
9
|
+
Chat: ChatDomain,
|
|
10
|
+
Debug: DebugDomain,
|
|
8
11
|
Eval: EvalDomain,
|
|
9
|
-
|
|
10
|
-
Message: MessageDomain,
|
|
12
|
+
Workflow: WorkflowDomain,
|
|
11
13
|
});
|
|
12
14
|
//# sourceMappingURL=protocol.js.map
|
package/out/main/protocol.js.map
CHANGED
|
@@ -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,
|
|
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,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,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 @@
|
|
|
1
|
+
{"version":3,"file":"MessageEvent.js","sourceRoot":"","sources":["../../../src/main/schema/MessageEvent.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athree/runner-proto",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -11,5 +11,10 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
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"
|
|
14
19
|
}
|
|
15
20
|
}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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,51 +0,0 @@
|
|
|
1
|
-
export const StateDomain = {
|
|
2
|
-
name: 'State',
|
|
3
|
-
methods: {
|
|
4
|
-
getState: {
|
|
5
|
-
type: 'query',
|
|
6
|
-
params: {},
|
|
7
|
-
returns: {
|
|
8
|
-
data: {
|
|
9
|
-
type: 'object',
|
|
10
|
-
properties: {},
|
|
11
|
-
additionalProperties: {
|
|
12
|
-
type: 'any',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
setStateData: {
|
|
18
|
-
type: 'command',
|
|
19
|
-
params: {
|
|
20
|
-
key: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
},
|
|
23
|
-
value: {
|
|
24
|
-
type: 'any',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
returns: {},
|
|
28
|
-
},
|
|
29
|
-
clearState: {
|
|
30
|
-
type: 'command',
|
|
31
|
-
params: {},
|
|
32
|
-
returns: {},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
events: {
|
|
36
|
-
stateCleared: {
|
|
37
|
-
params: {},
|
|
38
|
-
},
|
|
39
|
-
stateUpdated: {
|
|
40
|
-
params: {
|
|
41
|
-
key: {
|
|
42
|
-
type: 'string',
|
|
43
|
-
},
|
|
44
|
-
value: {
|
|
45
|
-
type: 'any',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=StateDomain.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|