@athree/runner-proto 4.0.0-wip.9 → 4.0.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.
- package/out/main/domains/StageDomain.d.ts +16 -0
- package/out/main/domains/StageDomain.js +42 -0
- package/out/main/domains/StageDomain.js.map +1 -0
- package/out/main/domains/ThreadDomain.d.ts +37 -0
- package/out/main/domains/ThreadDomain.js +75 -0
- package/out/main/domains/ThreadDomain.js.map +1 -0
- package/out/main/domains/WorkflowDomain.d.ts +28 -9
- package/out/main/domains/WorkflowDomain.js +50 -17
- package/out/main/domains/WorkflowDomain.js.map +1 -1
- package/out/main/index.d.ts +18 -3
- package/out/main/index.js +18 -3
- package/out/main/index.js.map +1 -1
- package/out/main/protocol.d.ts +4 -2
- package/out/main/protocol.js +4 -2
- package/out/main/protocol.js.map +1 -1
- package/out/main/schema/AddMessageSpec.d.ts +12 -0
- package/out/main/schema/AddMessageSpec.js +26 -0
- package/out/main/schema/AddMessageSpec.js.map +1 -0
- package/out/main/schema/AgentInfo.d.ts +8 -0
- package/out/main/schema/AgentInfo.js +11 -0
- package/out/main/schema/AgentInfo.js.map +1 -0
- package/out/main/schema/AgentToolCall.d.ts +11 -0
- package/out/main/schema/AgentToolCall.js +14 -0
- package/out/main/schema/AgentToolCall.js.map +1 -0
- package/out/main/schema/BrowserEvent.d.ts +10 -0
- package/out/main/schema/BrowserEvent.js +18 -0
- package/out/main/schema/BrowserEvent.js.map +1 -0
- package/out/main/schema/BrowserEventType.d.ts +9 -0
- package/out/main/schema/BrowserEventType.js +14 -0
- package/out/main/schema/BrowserEventType.js.map +1 -0
- package/out/main/schema/CreateThreadSpec.d.ts +7 -0
- package/out/main/schema/CreateThreadSpec.js +10 -0
- package/out/main/schema/CreateThreadSpec.js.map +1 -0
- package/out/main/schema/EvaluateResponse.d.ts +3 -0
- package/out/main/schema/EvaluateResponse.js +3 -0
- package/out/main/schema/EvaluateResponse.js.map +1 -1
- package/out/main/schema/LlmModel.d.ts +7 -0
- package/out/main/schema/LlmModel.js +10 -0
- package/out/main/schema/LlmModel.js.map +1 -0
- package/out/main/schema/MessageAttachment.d.ts +7 -0
- package/out/main/schema/MessageAttachment.js +12 -0
- package/out/main/schema/MessageAttachment.js.map +1 -0
- package/out/main/schema/MessageAttachmentType.d.ts +11 -0
- package/out/main/schema/MessageAttachmentType.js +55 -0
- package/out/main/schema/MessageAttachmentType.js.map +1 -0
- package/out/main/schema/MessageImage.d.ts +6 -0
- package/out/main/schema/MessageImage.js +9 -0
- package/out/main/schema/MessageImage.js.map +1 -0
- package/out/main/schema/ProjectLocation.d.ts +8 -0
- package/out/main/schema/ProjectLocation.js +15 -0
- package/out/main/schema/ProjectLocation.js.map +1 -0
- package/out/main/schema/PromptContent.d.ts +7 -0
- package/out/main/schema/PromptContent.js +14 -0
- package/out/main/schema/PromptContent.js.map +1 -0
- package/out/main/schema/SkillDescriptor.d.ts +8 -0
- package/out/main/schema/SkillDescriptor.js +11 -0
- package/out/main/schema/SkillDescriptor.js.map +1 -0
- package/out/main/schema/StageInfo.d.ts +0 -2
- package/out/main/schema/StageInfo.js +0 -2
- package/out/main/schema/StageInfo.js.map +1 -1
- package/out/main/schema/StateUpdate.d.ts +2 -1
- package/out/main/schema/StateUpdate.js +2 -1
- package/out/main/schema/StateUpdate.js.map +1 -1
- package/out/main/schema/Thread.d.ts +17 -0
- package/out/main/schema/Thread.js +32 -0
- package/out/main/schema/Thread.js.map +1 -0
- package/out/main/schema/ThreadMessage.d.ts +19 -0
- package/out/main/schema/ThreadMessage.js +37 -0
- package/out/main/schema/ThreadMessage.js.map +1 -0
- package/out/main/schema/UserQuestion.d.ts +11 -0
- package/out/main/schema/UserQuestion.js +20 -0
- package/out/main/schema/UserQuestion.js.map +1 -0
- package/package.json +1 -1
- package/out/main/domains/ChatDomain.d.ts +0 -17
- package/out/main/domains/ChatDomain.js +0 -43
- package/out/main/domains/ChatDomain.js.map +0 -1
- package/out/main/schema/MessageEvent.d.ts +0 -8
- package/out/main/schema/MessageEvent.js +0 -2
- package/out/main/schema/MessageEvent.js.map +0 -1
- package/out/main/schema/WorkflowMessage.d.ts +0 -11
- package/out/main/schema/WorkflowMessage.js +0 -14
- package/out/main/schema/WorkflowMessage.js.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
+
import { StageInfo } from '../schema/StageInfo.js';
|
|
3
|
+
export interface StageDomain {
|
|
4
|
+
listStages(req: {}): Promise<{
|
|
5
|
+
stages: StageInfo[];
|
|
6
|
+
}>;
|
|
7
|
+
runStage(req: {
|
|
8
|
+
stageId: string;
|
|
9
|
+
}): Promise<{}>;
|
|
10
|
+
matchStages(req: {}): Promise<{
|
|
11
|
+
stages: StageInfo[];
|
|
12
|
+
}>;
|
|
13
|
+
runAll(req: {}): Promise<{}>;
|
|
14
|
+
pause(req: {}): Promise<{}>;
|
|
15
|
+
}
|
|
16
|
+
export declare const StageDomain: DomainDef<StageDomain>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { StageInfoSchema } from '../schema/StageInfo.js';
|
|
2
|
+
export const StageDomain = {
|
|
3
|
+
name: 'Stage',
|
|
4
|
+
methods: {
|
|
5
|
+
listStages: {
|
|
6
|
+
type: 'query',
|
|
7
|
+
params: {},
|
|
8
|
+
returns: {
|
|
9
|
+
stages: { type: 'array', items: StageInfoSchema.schema },
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
runStage: {
|
|
13
|
+
type: 'command',
|
|
14
|
+
params: {
|
|
15
|
+
stageId: { type: 'string' },
|
|
16
|
+
},
|
|
17
|
+
returns: {},
|
|
18
|
+
},
|
|
19
|
+
matchStages: {
|
|
20
|
+
type: 'command',
|
|
21
|
+
params: {},
|
|
22
|
+
returns: {
|
|
23
|
+
stages: {
|
|
24
|
+
type: 'array',
|
|
25
|
+
items: StageInfoSchema.schema
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
runAll: {
|
|
30
|
+
type: 'command',
|
|
31
|
+
params: {},
|
|
32
|
+
returns: {},
|
|
33
|
+
},
|
|
34
|
+
pause: {
|
|
35
|
+
type: 'command',
|
|
36
|
+
params: {},
|
|
37
|
+
returns: {},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
events: {},
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=StageDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StageDomain.js","sourceRoot":"","sources":["../../../src/main/domains/StageDomain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAsBpE,MAAM,CAAC,MAAM,WAAW,GAA2B;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACL,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,MAAM,EAAE;aAC3D;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;YACD,OAAO,EAAE,EAAE;SACd;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,MAAM,EAAE;oBACJ,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,eAAe,CAAC,MAAM;iBAChC;aACJ;SACJ;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;SACd;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;SACd;KACJ;IACD,MAAM,EAAE,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
+
import { AgentInfo } from '../schema/AgentInfo.js';
|
|
3
|
+
import { CreateThreadSpec } from '../schema/CreateThreadSpec.js';
|
|
4
|
+
import { LlmModel } from '../schema/LlmModel.js';
|
|
5
|
+
import { MessageAttachment } from '../schema/MessageAttachment.js';
|
|
6
|
+
export interface ThreadDomain {
|
|
7
|
+
listAgents(req: {}): Promise<{
|
|
8
|
+
agents: AgentInfo[];
|
|
9
|
+
}>;
|
|
10
|
+
createThread(req: {
|
|
11
|
+
spec: CreateThreadSpec;
|
|
12
|
+
}): Promise<{
|
|
13
|
+
threadId: string;
|
|
14
|
+
}>;
|
|
15
|
+
getAvailableModels(req: {}): Promise<{
|
|
16
|
+
models: LlmModel[];
|
|
17
|
+
}>;
|
|
18
|
+
runThread(req: {
|
|
19
|
+
threadId: string;
|
|
20
|
+
model?: string;
|
|
21
|
+
}): Promise<{}>;
|
|
22
|
+
pauseThread(req: {
|
|
23
|
+
threadId: string;
|
|
24
|
+
}): Promise<{}>;
|
|
25
|
+
addMessage(req: {
|
|
26
|
+
threadId: string;
|
|
27
|
+
role: 'user' | 'system' | 'assistant';
|
|
28
|
+
content: string;
|
|
29
|
+
attachments?: MessageAttachment[];
|
|
30
|
+
}): Promise<{}>;
|
|
31
|
+
answerQuestion(req: {
|
|
32
|
+
threadId: string;
|
|
33
|
+
questionId: string;
|
|
34
|
+
answers: string[];
|
|
35
|
+
}): Promise<{}>;
|
|
36
|
+
}
|
|
37
|
+
export declare const ThreadDomain: DomainDef<ThreadDomain>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AgentInfoSchema } from '../schema/AgentInfo.js';
|
|
2
|
+
import { CreateThreadSpecSchema } from '../schema/CreateThreadSpec.js';
|
|
3
|
+
import { LlmModelSchema } from '../schema/LlmModel.js';
|
|
4
|
+
import { MessageAttachmentSchema } from '../schema/MessageAttachment.js';
|
|
5
|
+
export const ThreadDomain = {
|
|
6
|
+
name: 'Thread',
|
|
7
|
+
methods: {
|
|
8
|
+
listAgents: {
|
|
9
|
+
type: 'query',
|
|
10
|
+
params: {},
|
|
11
|
+
returns: {
|
|
12
|
+
agents: { type: 'array', items: AgentInfoSchema.schema },
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
createThread: {
|
|
16
|
+
type: 'command',
|
|
17
|
+
params: {
|
|
18
|
+
spec: CreateThreadSpecSchema.schema,
|
|
19
|
+
},
|
|
20
|
+
returns: {
|
|
21
|
+
threadId: { type: 'string' },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
getAvailableModels: {
|
|
25
|
+
type: 'query',
|
|
26
|
+
params: {},
|
|
27
|
+
returns: {
|
|
28
|
+
models: { type: 'array', items: LlmModelSchema.schema },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
runThread: {
|
|
32
|
+
type: 'command',
|
|
33
|
+
params: {
|
|
34
|
+
threadId: { type: 'string' },
|
|
35
|
+
model: { type: 'string', optional: true },
|
|
36
|
+
},
|
|
37
|
+
returns: {},
|
|
38
|
+
},
|
|
39
|
+
pauseThread: {
|
|
40
|
+
type: 'command',
|
|
41
|
+
params: {
|
|
42
|
+
threadId: { type: 'string' },
|
|
43
|
+
},
|
|
44
|
+
returns: {},
|
|
45
|
+
},
|
|
46
|
+
addMessage: {
|
|
47
|
+
type: 'command',
|
|
48
|
+
params: {
|
|
49
|
+
threadId: { type: 'string' },
|
|
50
|
+
role: { type: 'string', enum: ['user', 'system', 'assistant'] },
|
|
51
|
+
content: { type: 'string' },
|
|
52
|
+
attachments: {
|
|
53
|
+
type: 'array',
|
|
54
|
+
items: MessageAttachmentSchema.schema,
|
|
55
|
+
optional: true,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
returns: {},
|
|
59
|
+
},
|
|
60
|
+
answerQuestion: {
|
|
61
|
+
type: 'command',
|
|
62
|
+
params: {
|
|
63
|
+
threadId: { type: 'string' },
|
|
64
|
+
questionId: { type: 'string' },
|
|
65
|
+
answers: {
|
|
66
|
+
type: 'array',
|
|
67
|
+
items: { type: 'string' },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
returns: {},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
events: {}
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=ThreadDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreadDomain.js","sourceRoot":"","sources":["../../../src/main/domains/ThreadDomain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAoB,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAY,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAqB,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAmC5F,MAAM,CAAC,MAAM,YAAY,GAA4B;IACjD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACL,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,MAAM,EAAE;aAC3D;SACJ;QACD,YAAY,EAAE;YACV,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,IAAI,EAAE,sBAAsB,CAAC,MAAM;aACtC;YACD,OAAO,EAAE;gBACL,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC/B;SACJ;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,MAAM,EAAE;aAC1D;SACJ;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;aAC5C;YACD,OAAO,EAAE,EAAE;SACd;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC/B;YACD,OAAO,EAAE,EAAE;SACd;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE;gBAC/D,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,WAAW,EAAE;oBACT,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,uBAAuB,CAAC,MAAM;oBACrC,QAAQ,EAAE,IAAI;iBACjB;aACJ;YACD,OAAO,EAAE,EAAE;SACd;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC9B,OAAO,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC5B;aACJ;YACD,OAAO,EAAE,EAAE;SACd;KACJ;IACD,MAAM,EAAE,EAAE;CACb,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DomainDef } from '@nodescript/protocomm';
|
|
2
|
-
import {
|
|
2
|
+
import { Event } from 'nanoevent';
|
|
3
|
+
import { ProjectLocation } from '../schema/ProjectLocation.js';
|
|
3
4
|
import { WorkflowInfo } from '../schema/WorkflowInfo.js';
|
|
4
5
|
export interface WorkflowDomain {
|
|
5
6
|
loadWorkflow(req: {
|
|
@@ -10,16 +11,34 @@ export interface WorkflowDomain {
|
|
|
10
11
|
getWorkflowInfo(req: {}): Promise<{
|
|
11
12
|
workflowInfo: WorkflowInfo;
|
|
12
13
|
}>;
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
listSites(req: {}): Promise<{
|
|
15
|
+
sites: string[];
|
|
15
16
|
}>;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
setSite(req: {
|
|
18
|
+
site: string;
|
|
18
19
|
}): Promise<{}>;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
createNewSite(req: {
|
|
21
|
+
site: string;
|
|
22
|
+
}): Promise<{
|
|
23
|
+
site: string;
|
|
24
|
+
}>;
|
|
25
|
+
listProjectLocations(req: {}): Promise<{
|
|
26
|
+
locations: ProjectLocation[];
|
|
27
|
+
}>;
|
|
28
|
+
listProjectFiles(req: {}): Promise<{
|
|
29
|
+
files: string[];
|
|
30
|
+
}>;
|
|
31
|
+
readProjectFile(req: {
|
|
32
|
+
filePath: string;
|
|
33
|
+
}): Promise<{
|
|
34
|
+
content: string;
|
|
35
|
+
}>;
|
|
36
|
+
writeProjectFile(req: {
|
|
37
|
+
filePath: string;
|
|
38
|
+
content: string;
|
|
39
|
+
}): Promise<{}>;
|
|
40
|
+
filesChanged: Event<{
|
|
41
|
+
files: string[];
|
|
21
42
|
}>;
|
|
22
|
-
runAll(req: {}): Promise<{}>;
|
|
23
|
-
stop(req: {}): Promise<{}>;
|
|
24
43
|
}
|
|
25
44
|
export declare const WorkflowDomain: DomainDef<WorkflowDomain>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectLocationSchema } from '../schema/ProjectLocation.js';
|
|
2
2
|
import { WorkflowInfoSchema } from '../schema/WorkflowInfo.js';
|
|
3
3
|
export const WorkflowDomain = {
|
|
4
4
|
name: 'Workflow',
|
|
@@ -19,43 +19,76 @@ export const WorkflowDomain = {
|
|
|
19
19
|
workflowInfo: WorkflowInfoSchema.schema,
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
listSites: {
|
|
23
23
|
type: 'query',
|
|
24
|
-
params: {
|
|
25
|
-
all: { type: 'boolean', optional: true },
|
|
26
|
-
},
|
|
24
|
+
params: {},
|
|
27
25
|
returns: {
|
|
28
|
-
|
|
26
|
+
sites: { type: 'array', items: { type: 'string' } },
|
|
29
27
|
},
|
|
30
28
|
},
|
|
31
|
-
|
|
29
|
+
setSite: {
|
|
32
30
|
type: 'command',
|
|
33
31
|
params: {
|
|
34
|
-
|
|
32
|
+
site: { type: 'string' },
|
|
35
33
|
},
|
|
36
34
|
returns: {},
|
|
37
35
|
},
|
|
38
|
-
|
|
36
|
+
createNewSite: {
|
|
39
37
|
type: 'command',
|
|
38
|
+
params: {
|
|
39
|
+
site: { type: 'string' },
|
|
40
|
+
},
|
|
41
|
+
returns: {
|
|
42
|
+
site: { type: 'string' },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
listProjectLocations: {
|
|
46
|
+
type: 'query',
|
|
40
47
|
params: {},
|
|
41
48
|
returns: {
|
|
42
|
-
|
|
49
|
+
locations: {
|
|
43
50
|
type: 'array',
|
|
44
|
-
items:
|
|
51
|
+
items: ProjectLocationSchema.schema,
|
|
45
52
|
},
|
|
46
53
|
},
|
|
47
54
|
},
|
|
48
|
-
|
|
49
|
-
type: '
|
|
55
|
+
listProjectFiles: {
|
|
56
|
+
type: 'query',
|
|
50
57
|
params: {},
|
|
51
|
-
returns: {
|
|
58
|
+
returns: {
|
|
59
|
+
files: {
|
|
60
|
+
type: 'array',
|
|
61
|
+
items: { type: 'string' },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
52
64
|
},
|
|
53
|
-
|
|
65
|
+
readProjectFile: {
|
|
66
|
+
type: 'query',
|
|
67
|
+
params: {
|
|
68
|
+
filePath: { type: 'string' },
|
|
69
|
+
},
|
|
70
|
+
returns: {
|
|
71
|
+
content: { type: 'string' },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
writeProjectFile: {
|
|
54
75
|
type: 'command',
|
|
55
|
-
params: {
|
|
76
|
+
params: {
|
|
77
|
+
filePath: { type: 'string' },
|
|
78
|
+
content: { type: 'string' },
|
|
79
|
+
},
|
|
56
80
|
returns: {},
|
|
57
81
|
},
|
|
58
82
|
},
|
|
59
|
-
events: {
|
|
83
|
+
events: {
|
|
84
|
+
filesChanged: {
|
|
85
|
+
params: {
|
|
86
|
+
files: {
|
|
87
|
+
type: 'array',
|
|
88
|
+
items: { type: 'string' },
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
60
93
|
};
|
|
61
94
|
//# sourceMappingURL=WorkflowDomain.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowDomain.js","sourceRoot":"","sources":["../../../src/main/domains/WorkflowDomain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkflowDomain.js","sourceRoot":"","sources":["../../../src/main/domains/WorkflowDomain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAgB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAqD7E,MAAM,CAAC,MAAM,cAAc,GAA8B;IACrD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE;QACL,YAAY,EAAE;YACV,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACjC;YACD,OAAO,EAAE;gBACL,YAAY,EAAE,kBAAkB,CAAC,MAAM;aAC1C;SACJ;QACD,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,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;aACtD;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC3B;YACD,OAAO,EAAE,EAAE;SACd;QACD,aAAa,EAAE;YACX,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC3B;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC3B;SACJ;QACD,oBAAoB,EAAE;YAClB,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,SAAS,EAAE;oBACP,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,qBAAqB,CAAC,MAAM;iBACtC;aACJ;SACJ;QACD,gBAAgB,EAAE;YACd,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,EAAE;YACV,OAAO,EAAE;gBACL,KAAK,EAAE;oBACH,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC5B;aACJ;SACJ;QACD,eAAe,EAAE;YACb,IAAI,EAAE,OAAO;YACb,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC/B;YACD,OAAO,EAAE;gBACL,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;SACJ;QACD,gBAAgB,EAAE;YACd,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;YACD,OAAO,EAAE,EAAE;SACd;KACJ;IACD,MAAM,EAAE;QACJ,YAAY,EAAE;YACV,MAAM,EAAE;gBACJ,KAAK,EAAE;oBACH,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC5B;aACJ;SACJ;KACJ;CACJ,CAAC"}
|
package/out/main/index.d.ts
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
export * from './domains/BrowserDomain.js';
|
|
2
|
-
export * from './domains/ChatDomain.js';
|
|
3
2
|
export * from './domains/EvalDomain.js';
|
|
3
|
+
export * from './domains/StageDomain.js';
|
|
4
4
|
export * from './domains/StateDomain.js';
|
|
5
|
+
export * from './domains/ThreadDomain.js';
|
|
5
6
|
export * from './domains/WorkflowDomain.js';
|
|
6
7
|
export * from './protocol.js';
|
|
8
|
+
export * from './schema/AddMessageSpec.js';
|
|
9
|
+
export * from './schema/AgentInfo.js';
|
|
10
|
+
export * from './schema/AgentToolCall.js';
|
|
11
|
+
export * from './schema/BrowserEvent.js';
|
|
12
|
+
export * from './schema/BrowserEventType.js';
|
|
13
|
+
export * from './schema/CreateThreadSpec.js';
|
|
7
14
|
export * from './schema/EvaluateRequest.js';
|
|
8
15
|
export * from './schema/EvaluateResponse.js';
|
|
9
16
|
export * from './schema/KeyboardEventRequest.js';
|
|
10
|
-
export * from './schema/
|
|
17
|
+
export * from './schema/LlmModel.js';
|
|
18
|
+
export * from './schema/MessageAttachment.js';
|
|
19
|
+
export * from './schema/MessageAttachmentType.js';
|
|
20
|
+
export * from './schema/MessageImage.js';
|
|
11
21
|
export * from './schema/MouseEventRequest.js';
|
|
12
22
|
export * from './schema/PageMetadata.js';
|
|
23
|
+
export * from './schema/ProjectLocation.js';
|
|
24
|
+
export * from './schema/PromptContent.js';
|
|
13
25
|
export * from './schema/ScreencastFrame.js';
|
|
26
|
+
export * from './schema/SkillDescriptor.js';
|
|
14
27
|
export * from './schema/StageInfo.js';
|
|
15
28
|
export * from './schema/StateData.js';
|
|
16
29
|
export * from './schema/StateUpdate.js';
|
|
30
|
+
export * from './schema/Thread.js';
|
|
31
|
+
export * from './schema/ThreadMessage.js';
|
|
32
|
+
export * from './schema/UserQuestion.js';
|
|
17
33
|
export * from './schema/WorkflowInfo.js';
|
|
18
|
-
export * from './schema/WorkflowMessage.js';
|
package/out/main/index.js
CHANGED
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
export * from './domains/BrowserDomain.js';
|
|
2
|
-
export * from './domains/ChatDomain.js';
|
|
3
2
|
export * from './domains/EvalDomain.js';
|
|
3
|
+
export * from './domains/StageDomain.js';
|
|
4
4
|
export * from './domains/StateDomain.js';
|
|
5
|
+
export * from './domains/ThreadDomain.js';
|
|
5
6
|
export * from './domains/WorkflowDomain.js';
|
|
6
7
|
export * from './protocol.js';
|
|
8
|
+
export * from './schema/AddMessageSpec.js';
|
|
9
|
+
export * from './schema/AgentInfo.js';
|
|
10
|
+
export * from './schema/AgentToolCall.js';
|
|
11
|
+
export * from './schema/BrowserEvent.js';
|
|
12
|
+
export * from './schema/BrowserEventType.js';
|
|
13
|
+
export * from './schema/CreateThreadSpec.js';
|
|
7
14
|
export * from './schema/EvaluateRequest.js';
|
|
8
15
|
export * from './schema/EvaluateResponse.js';
|
|
9
16
|
export * from './schema/KeyboardEventRequest.js';
|
|
10
|
-
export * from './schema/
|
|
17
|
+
export * from './schema/LlmModel.js';
|
|
18
|
+
export * from './schema/MessageAttachment.js';
|
|
19
|
+
export * from './schema/MessageAttachmentType.js';
|
|
20
|
+
export * from './schema/MessageImage.js';
|
|
11
21
|
export * from './schema/MouseEventRequest.js';
|
|
12
22
|
export * from './schema/PageMetadata.js';
|
|
23
|
+
export * from './schema/ProjectLocation.js';
|
|
24
|
+
export * from './schema/PromptContent.js';
|
|
13
25
|
export * from './schema/ScreencastFrame.js';
|
|
26
|
+
export * from './schema/SkillDescriptor.js';
|
|
14
27
|
export * from './schema/StageInfo.js';
|
|
15
28
|
export * from './schema/StateData.js';
|
|
16
29
|
export * from './schema/StateUpdate.js';
|
|
30
|
+
export * from './schema/Thread.js';
|
|
31
|
+
export * from './schema/ThreadMessage.js';
|
|
32
|
+
export * from './schema/UserQuestion.js';
|
|
17
33
|
export * from './schema/WorkflowInfo.js';
|
|
18
|
-
export * from './schema/WorkflowMessage.js';
|
|
19
34
|
//# sourceMappingURL=index.js.map
|
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,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
package/out/main/protocol.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ProtocolIndex } from '@nodescript/protocomm';
|
|
2
2
|
import { BrowserDomain } from './domains/BrowserDomain.js';
|
|
3
|
-
import { ChatDomain } from './domains/ChatDomain.js';
|
|
4
3
|
import { EvalDomain } from './domains/EvalDomain.js';
|
|
4
|
+
import { StageDomain } from './domains/StageDomain.js';
|
|
5
5
|
import { StateDomain } from './domains/StateDomain.js';
|
|
6
|
+
import { ThreadDomain } from './domains/ThreadDomain.js';
|
|
6
7
|
import { WorkflowDomain } from './domains/WorkflowDomain.js';
|
|
7
8
|
export interface RunnerProtocol {
|
|
8
9
|
Browser: BrowserDomain;
|
|
9
|
-
|
|
10
|
+
Thread: ThreadDomain;
|
|
10
11
|
State: StateDomain;
|
|
12
|
+
Stage: StageDomain;
|
|
11
13
|
Eval: EvalDomain;
|
|
12
14
|
Workflow: WorkflowDomain;
|
|
13
15
|
}
|
package/out/main/protocol.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ProtocolIndex } from '@nodescript/protocomm';
|
|
2
2
|
import { BrowserDomain } from './domains/BrowserDomain.js';
|
|
3
|
-
import { ChatDomain } from './domains/ChatDomain.js';
|
|
4
3
|
import { EvalDomain } from './domains/EvalDomain.js';
|
|
4
|
+
import { StageDomain } from './domains/StageDomain.js';
|
|
5
5
|
import { StateDomain } from './domains/StateDomain.js';
|
|
6
|
+
import { ThreadDomain } from './domains/ThreadDomain.js';
|
|
6
7
|
import { WorkflowDomain } from './domains/WorkflowDomain.js';
|
|
7
8
|
export const runnerProtocol = new ProtocolIndex({
|
|
8
9
|
Browser: BrowserDomain,
|
|
9
|
-
|
|
10
|
+
Thread: ThreadDomain,
|
|
10
11
|
State: StateDomain,
|
|
12
|
+
Stage: StageDomain,
|
|
11
13
|
Eval: EvalDomain,
|
|
12
14
|
Workflow: WorkflowDomain,
|
|
13
15
|
});
|
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,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAW7D,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,aAAa,CAAiB;IAC5D,OAAO,EAAE,aAAa;IACtB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
import { MessageAttachment } from './MessageAttachment.js';
|
|
3
|
+
import { MessageImage } from './MessageImage.js';
|
|
4
|
+
export interface AddMessageSpec {
|
|
5
|
+
role: 'system' | 'user' | 'assistant';
|
|
6
|
+
content: string;
|
|
7
|
+
isGenerated?: boolean;
|
|
8
|
+
attachments?: MessageAttachment[];
|
|
9
|
+
data?: any;
|
|
10
|
+
images?: MessageImage[];
|
|
11
|
+
}
|
|
12
|
+
export declare const AddMessageSpecSchema: Schema<AddMessageSpec>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
import { MessageAttachmentSchema } from './MessageAttachment.js';
|
|
3
|
+
import { MessageImageSchema } from './MessageImage.js';
|
|
4
|
+
export const AddMessageSpecSchema = new Schema({
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
role: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
enum: ['system', 'user', 'assistant'],
|
|
10
|
+
},
|
|
11
|
+
content: { type: 'string' },
|
|
12
|
+
isGenerated: { type: 'boolean', optional: true },
|
|
13
|
+
attachments: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
items: MessageAttachmentSchema.schema,
|
|
16
|
+
optional: true,
|
|
17
|
+
},
|
|
18
|
+
data: { type: 'any', optional: true },
|
|
19
|
+
images: {
|
|
20
|
+
type: 'array',
|
|
21
|
+
items: MessageImageSchema.schema,
|
|
22
|
+
optional: true,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=AddMessageSpec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddMessageSpec.js","sourceRoot":"","sources":["../../../src/main/schema/AddMessageSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAqB,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAgB,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAWrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,MAAM,CAAiB;IAC3D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC;SACxC;QACD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAChD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,uBAAuB,CAAC,MAAM;YACrC,QAAQ,EAAE,IAAI;SACjB;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACrC,MAAM,EAAE;YACJ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,kBAAkB,CAAC,MAAM;YAChC,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
export const AgentInfoSchema = new Schema({
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
id: { type: 'string' },
|
|
6
|
+
title: { type: 'string' },
|
|
7
|
+
icon: { type: 'string', optional: true },
|
|
8
|
+
description: { type: 'string', optional: true },
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=AgentInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentInfo.js","sourceRoot":"","sources":["../../../src/main/schema/AgentInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,MAAM,CAAY;IACjD,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,QAAQ,EAAE,IAAI,EAAE;QACxC,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 AgentToolCall {
|
|
3
|
+
id: string;
|
|
4
|
+
toolCallId: string;
|
|
5
|
+
toolName: string;
|
|
6
|
+
args: any;
|
|
7
|
+
result?: any;
|
|
8
|
+
error?: any;
|
|
9
|
+
providerMetadata?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const AgentToolCallSchema: Schema<AgentToolCall>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
export const AgentToolCallSchema = new Schema({
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
id: { type: 'string' },
|
|
6
|
+
toolCallId: { type: 'string' },
|
|
7
|
+
toolName: { type: 'string' },
|
|
8
|
+
args: { type: 'any' },
|
|
9
|
+
result: { type: 'any', optional: true },
|
|
10
|
+
error: { type: 'any', optional: true },
|
|
11
|
+
providerMetadata: { type: 'any', optional: true },
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=AgentToolCall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentToolCall.js","sourceRoot":"","sources":["../../../src/main/schema/AgentToolCall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAYlC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,MAAM,CAAgB;IACzD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;QACrB,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACvC,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtC,gBAAgB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;KACpD;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
import { BrowserEventType } from './BrowserEventType.js';
|
|
3
|
+
export interface BrowserEvent {
|
|
4
|
+
id: number;
|
|
5
|
+
type: BrowserEventType;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
message: string;
|
|
8
|
+
data?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare const BrowserEventSchema: Schema<BrowserEvent>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
import { BrowserEventType } from './BrowserEventType.js';
|
|
3
|
+
export const BrowserEventSchema = new Schema({
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
id: { type: 'number' },
|
|
7
|
+
type: { type: 'string', enum: Object.values(BrowserEventType) },
|
|
8
|
+
timestamp: { type: 'number' },
|
|
9
|
+
message: { type: 'string' },
|
|
10
|
+
data: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
optional: true,
|
|
13
|
+
properties: {},
|
|
14
|
+
additionalProperties: { type: 'any' },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=BrowserEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserEvent.js","sourceRoot":"","sources":["../../../src/main/schema/BrowserEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAUzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAe;IACvD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE;QAC/D,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;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 declare enum BrowserEventType {
|
|
3
|
+
PageLoad = "page_load",
|
|
4
|
+
PageNavigateStart = "page_navigate_start",
|
|
5
|
+
PageDomContentLoad = "page_domcontentload",
|
|
6
|
+
ToolEvent = "tool_event",
|
|
7
|
+
PageDomStable = "page_dom_stable"
|
|
8
|
+
}
|
|
9
|
+
export declare const BrowserEventTypeSchema: Schema<BrowserEventType>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Schema } from 'airtight';
|
|
2
|
+
export var BrowserEventType;
|
|
3
|
+
(function (BrowserEventType) {
|
|
4
|
+
BrowserEventType["PageLoad"] = "page_load";
|
|
5
|
+
BrowserEventType["PageNavigateStart"] = "page_navigate_start";
|
|
6
|
+
BrowserEventType["PageDomContentLoad"] = "page_domcontentload";
|
|
7
|
+
BrowserEventType["ToolEvent"] = "tool_event";
|
|
8
|
+
BrowserEventType["PageDomStable"] = "page_dom_stable";
|
|
9
|
+
})(BrowserEventType || (BrowserEventType = {}));
|
|
10
|
+
export const BrowserEventTypeSchema = new Schema({
|
|
11
|
+
type: 'string',
|
|
12
|
+
enum: Object.values(BrowserEventType),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=BrowserEventType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserEventType.js","sourceRoot":"","sources":["../../../src/main/schema/BrowserEventType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,0CAAsB,CAAA;IACtB,6DAAyC,CAAA;IACzC,8DAA0C,CAAA;IAC1C,4CAAwB,CAAA;IACxB,qDAAiC,CAAA;AACrC,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAmB;IAC/D,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;CACxC,CAAC,CAAC"}
|