@athree/runner-proto 4.0.0-wip.1 → 4.0.0-wip.11

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 (80) hide show
  1. package/out/main/domains/AgentDomain.d.ts +36 -0
  2. package/out/main/domains/AgentDomain.js +72 -0
  3. package/out/main/domains/AgentDomain.js.map +1 -0
  4. package/out/main/domains/StageDomain.d.ts +23 -0
  5. package/out/main/domains/StageDomain.js +55 -0
  6. package/out/main/domains/StageDomain.js.map +1 -0
  7. package/out/main/domains/WorkflowDomain.js.map +1 -1
  8. package/out/main/index.d.ts +17 -3
  9. package/out/main/index.js +17 -3
  10. package/out/main/index.js.map +1 -1
  11. package/out/main/protocol.d.ts +4 -2
  12. package/out/main/protocol.js +4 -2
  13. package/out/main/protocol.js.map +1 -1
  14. package/out/main/schema/AddMessageSpec.d.ts +11 -0
  15. package/out/main/schema/AddMessageSpec.js +25 -0
  16. package/out/main/schema/AddMessageSpec.js.map +1 -0
  17. package/out/main/schema/AgentInfo.d.ts +7 -0
  18. package/out/main/schema/AgentInfo.js +10 -0
  19. package/out/main/schema/AgentInfo.js.map +1 -0
  20. package/out/main/schema/AgentMessage.d.ts +18 -0
  21. package/out/main/schema/AgentMessage.js +36 -0
  22. package/out/main/schema/AgentMessage.js.map +1 -0
  23. package/out/main/schema/AgentMessageAttachment.d.ts +7 -0
  24. package/out/main/schema/AgentMessageAttachment.js +12 -0
  25. package/out/main/schema/AgentMessageAttachment.js.map +1 -0
  26. package/out/main/schema/AgentMessageAttachmentType.d.ts +16 -0
  27. package/out/main/schema/AgentMessageAttachmentType.js +85 -0
  28. package/out/main/schema/AgentMessageAttachmentType.js.map +1 -0
  29. package/out/main/schema/AgentMessageImage.d.ts +6 -0
  30. package/out/main/schema/AgentMessageImage.js +9 -0
  31. package/out/main/schema/AgentMessageImage.js.map +1 -0
  32. package/out/main/schema/AgentThread.d.ts +16 -0
  33. package/out/main/schema/AgentThread.js +31 -0
  34. package/out/main/schema/AgentThread.js.map +1 -0
  35. package/out/main/schema/AgentToolCall.d.ts +11 -0
  36. package/out/main/schema/AgentToolCall.js +14 -0
  37. package/out/main/schema/AgentToolCall.js.map +1 -0
  38. package/out/main/schema/BrowserEvent.d.ts +10 -0
  39. package/out/main/schema/BrowserEvent.js +18 -0
  40. package/out/main/schema/BrowserEvent.js.map +1 -0
  41. package/out/main/schema/BrowserEventType.d.ts +9 -0
  42. package/out/main/schema/BrowserEventType.js +14 -0
  43. package/out/main/schema/BrowserEventType.js.map +1 -0
  44. package/out/main/schema/CreateThreadSpec.d.ts +7 -0
  45. package/out/main/schema/CreateThreadSpec.js +10 -0
  46. package/out/main/schema/CreateThreadSpec.js.map +1 -0
  47. package/out/main/schema/EvaluateResponse.d.ts +3 -0
  48. package/out/main/schema/EvaluateResponse.js +3 -0
  49. package/out/main/schema/EvaluateResponse.js.map +1 -1
  50. package/out/main/schema/ProjectLocation.d.ts +8 -0
  51. package/out/main/schema/ProjectLocation.js +11 -0
  52. package/out/main/schema/ProjectLocation.js.map +1 -0
  53. package/out/main/schema/StageInfo.d.ts +14 -0
  54. package/out/main/schema/StageInfo.js +21 -0
  55. package/out/main/schema/StageInfo.js.map +1 -0
  56. package/out/main/schema/StateUpdate.d.ts +2 -1
  57. package/out/main/schema/StateUpdate.js +2 -1
  58. package/out/main/schema/StateUpdate.js.map +1 -1
  59. package/out/main/schema/UserPrompt.d.ts +7 -0
  60. package/out/main/schema/UserPrompt.js +14 -0
  61. package/out/main/schema/UserPrompt.js.map +1 -0
  62. package/out/main/schema/UserQuestion.d.ts +11 -0
  63. package/out/main/schema/UserQuestion.js +20 -0
  64. package/out/main/schema/UserQuestion.js.map +1 -0
  65. package/package.json +1 -1
  66. package/out/main/domains/AutomationDomain.d.ts +0 -11
  67. package/out/main/domains/AutomationDomain.js +0 -25
  68. package/out/main/domains/AutomationDomain.js.map +0 -1
  69. package/out/main/domains/ChatDomain.d.ts +0 -17
  70. package/out/main/domains/ChatDomain.js +0 -43
  71. package/out/main/domains/ChatDomain.js.map +0 -1
  72. package/out/main/schema/MessageEvent.d.ts +0 -8
  73. package/out/main/schema/MessageEvent.js +0 -2
  74. package/out/main/schema/MessageEvent.js.map +0 -1
  75. package/out/main/schema/Stage.d.ts +0 -13
  76. package/out/main/schema/Stage.js +0 -16
  77. package/out/main/schema/Stage.js.map +0 -1
  78. package/out/main/schema/WorkflowMessage.d.ts +0 -11
  79. package/out/main/schema/WorkflowMessage.js +0 -14
  80. package/out/main/schema/WorkflowMessage.js.map +0 -1
@@ -0,0 +1,36 @@
1
+ import { DomainDef } from '@nodescript/protocomm';
2
+ import { Event } from 'nanoevent';
3
+ import { AgentInfo } from '../schema/AgentInfo.js';
4
+ import { AgentMessageAttachment } from '../schema/AgentMessageAttachment.js';
5
+ import { CreateThreadSpec } from '../schema/CreateThreadSpec.js';
6
+ import { UserPrompt } from '../schema/UserPrompt.js';
7
+ export interface AgentDomain {
8
+ listAgents(req: {}): Promise<{
9
+ agents: AgentInfo[];
10
+ }>;
11
+ createThread(req: {
12
+ spec: CreateThreadSpec;
13
+ }): Promise<{
14
+ threadId: string;
15
+ initialPrompt?: UserPrompt;
16
+ }>;
17
+ runThread(req: {
18
+ threadId: string;
19
+ }): Promise<{}>;
20
+ pauseThread(req: {
21
+ threadId: string;
22
+ }): Promise<{}>;
23
+ addMessage(req: {
24
+ threadId: string;
25
+ role: 'user' | 'system' | 'assistant';
26
+ content: string;
27
+ attachments?: AgentMessageAttachment[];
28
+ }): Promise<{}>;
29
+ answerQuestion(req: {
30
+ threadId: string;
31
+ questionId: string;
32
+ answers: string[];
33
+ }): Promise<{}>;
34
+ agentsChanged: Event<{}>;
35
+ }
36
+ export declare const AgentDomain: DomainDef<AgentDomain>;
@@ -0,0 +1,72 @@
1
+ import { AgentInfoSchema } from '../schema/AgentInfo.js';
2
+ import { AgentMessageAttachmentSchema } from '../schema/AgentMessageAttachment.js';
3
+ import { CreateThreadSpecSchema } from '../schema/CreateThreadSpec.js';
4
+ import { UserPromptSchema } from '../schema/UserPrompt.js';
5
+ export const AgentDomain = {
6
+ name: 'Agent',
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
+ initialPrompt: { ...UserPromptSchema.schema, optional: true },
23
+ },
24
+ },
25
+ runThread: {
26
+ type: 'command',
27
+ params: {
28
+ threadId: { type: 'string' },
29
+ },
30
+ returns: {},
31
+ },
32
+ pauseThread: {
33
+ type: 'command',
34
+ params: {
35
+ threadId: { type: 'string' },
36
+ },
37
+ returns: {},
38
+ },
39
+ addMessage: {
40
+ type: 'command',
41
+ params: {
42
+ threadId: { type: 'string' },
43
+ role: { type: 'string', enum: ['user', 'system', 'assistant'] },
44
+ content: { type: 'string' },
45
+ attachments: {
46
+ type: 'array',
47
+ items: AgentMessageAttachmentSchema.schema,
48
+ optional: true,
49
+ },
50
+ },
51
+ returns: {},
52
+ },
53
+ answerQuestion: {
54
+ type: 'command',
55
+ params: {
56
+ threadId: { type: 'string' },
57
+ questionId: { type: 'string' },
58
+ answers: {
59
+ type: 'array',
60
+ items: { type: 'string' },
61
+ },
62
+ },
63
+ returns: {},
64
+ },
65
+ },
66
+ events: {
67
+ agentsChanged: {
68
+ params: {},
69
+ },
70
+ },
71
+ };
72
+ //# sourceMappingURL=AgentDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentDomain.js","sourceRoot":"","sources":["../../../src/main/domains/AgentDomain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAA0B,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,EAAoB,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAc,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAkCvE,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,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;gBAC5B,aAAa,EAAE,EAAE,GAAG,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;aAChE;SACJ;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC/B;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,4BAA4B,CAAC,MAAM;oBAC1C,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;QACJ,aAAa,EAAE;YACX,MAAM,EAAE,EAAE;SACb;KACJ;CACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { DomainDef } from '@nodescript/protocomm';
2
+ import { Event } from 'nanoevent';
3
+ import { StageInfo } from '../schema/StageInfo.js';
4
+ export interface StageDomain {
5
+ listStages(req: {
6
+ site?: string;
7
+ }): Promise<{
8
+ stages: StageInfo[];
9
+ }>;
10
+ listSites(req: {}): Promise<{
11
+ sites: string[];
12
+ }>;
13
+ runStage(req: {
14
+ stageId: string;
15
+ }): Promise<{}>;
16
+ matchStages(req: {}): Promise<{
17
+ stages: StageInfo[];
18
+ }>;
19
+ runAll(req: {}): Promise<{}>;
20
+ pause(req: {}): Promise<{}>;
21
+ stagesChanged: Event<{}>;
22
+ }
23
+ export declare const StageDomain: DomainDef<StageDomain>;
@@ -0,0 +1,55 @@
1
+ import { StageInfoSchema } from '../schema/StageInfo.js';
2
+ export const StageDomain = {
3
+ name: 'Stage',
4
+ methods: {
5
+ listStages: {
6
+ type: 'query',
7
+ params: {
8
+ site: { type: 'string', optional: true },
9
+ },
10
+ returns: {
11
+ stages: { type: 'array', items: StageInfoSchema.schema },
12
+ },
13
+ },
14
+ listSites: {
15
+ type: 'query',
16
+ params: {},
17
+ returns: {
18
+ sites: { type: 'array', items: { type: 'string' } },
19
+ },
20
+ },
21
+ runStage: {
22
+ type: 'command',
23
+ params: {
24
+ stageId: { type: 'string' },
25
+ },
26
+ returns: {},
27
+ },
28
+ matchStages: {
29
+ type: 'command',
30
+ params: {},
31
+ returns: {
32
+ stages: {
33
+ type: 'array',
34
+ items: StageInfoSchema.schema
35
+ },
36
+ },
37
+ },
38
+ runAll: {
39
+ type: 'command',
40
+ params: {},
41
+ returns: {},
42
+ },
43
+ pause: {
44
+ type: 'command',
45
+ params: {},
46
+ returns: {},
47
+ },
48
+ },
49
+ events: {
50
+ stagesChanged: {
51
+ params: {},
52
+ },
53
+ },
54
+ };
55
+ //# sourceMappingURL=StageDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageDomain.js","sourceRoot":"","sources":["../../../src/main/domains/StageDomain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,eAAe,EAAE,MAAM,wBAAwB,CAAC;AA8BpE,MAAM,CAAC,MAAM,WAAW,GAA2B;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACL,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,MAAM,EAAE;gBACJ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;aAC3C;YACD,OAAO,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,MAAM,EAAE;aAC3D;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,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;QACJ,aAAa,EAAE;YACX,MAAM,EAAE,EAAE;SACb;KACJ;CACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WorkflowDomain.js","sourceRoot":"","sources":["../../../src/main/domains/WorkflowDomain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAe7E,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;KACJ;IACD,MAAM,EAAE,EAAE;CACb,CAAC"}
1
+ {"version":3,"file":"WorkflowDomain.js","sourceRoot":"","sources":["../../../src/main/domains/WorkflowDomain.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAgB7E,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;KACJ;IACD,MAAM,EAAE,EAAE;CACb,CAAC"}
@@ -1,17 +1,31 @@
1
+ export * from './domains/AgentDomain.js';
1
2
  export * from './domains/BrowserDomain.js';
2
- export * from './domains/ChatDomain.js';
3
3
  export * from './domains/EvalDomain.js';
4
+ export * from './domains/StageDomain.js';
4
5
  export * from './domains/StateDomain.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/AgentMessage.js';
11
+ export * from './schema/AgentMessageAttachment.js';
12
+ export * from './schema/AgentMessageAttachmentType.js';
13
+ export * from './schema/AgentMessageImage.js';
14
+ export * from './schema/AgentThread.js';
15
+ export * from './schema/AgentToolCall.js';
16
+ export * from './schema/BrowserEvent.js';
17
+ export * from './schema/BrowserEventType.js';
18
+ export * from './schema/CreateThreadSpec.js';
7
19
  export * from './schema/EvaluateRequest.js';
8
20
  export * from './schema/EvaluateResponse.js';
9
21
  export * from './schema/KeyboardEventRequest.js';
10
- export * from './schema/MessageEvent.js';
11
22
  export * from './schema/MouseEventRequest.js';
12
23
  export * from './schema/PageMetadata.js';
24
+ export * from './schema/ProjectLocation.js';
13
25
  export * from './schema/ScreencastFrame.js';
26
+ export * from './schema/StageInfo.js';
14
27
  export * from './schema/StateData.js';
15
28
  export * from './schema/StateUpdate.js';
29
+ export * from './schema/UserPrompt.js';
30
+ export * from './schema/UserQuestion.js';
16
31
  export * from './schema/WorkflowInfo.js';
17
- export * from './schema/WorkflowMessage.js';
package/out/main/index.js CHANGED
@@ -1,18 +1,32 @@
1
+ export * from './domains/AgentDomain.js';
1
2
  export * from './domains/BrowserDomain.js';
2
- export * from './domains/ChatDomain.js';
3
3
  export * from './domains/EvalDomain.js';
4
+ export * from './domains/StageDomain.js';
4
5
  export * from './domains/StateDomain.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/AgentMessage.js';
11
+ export * from './schema/AgentMessageAttachment.js';
12
+ export * from './schema/AgentMessageAttachmentType.js';
13
+ export * from './schema/AgentMessageImage.js';
14
+ export * from './schema/AgentThread.js';
15
+ export * from './schema/AgentToolCall.js';
16
+ export * from './schema/BrowserEvent.js';
17
+ export * from './schema/BrowserEventType.js';
18
+ export * from './schema/CreateThreadSpec.js';
7
19
  export * from './schema/EvaluateRequest.js';
8
20
  export * from './schema/EvaluateResponse.js';
9
21
  export * from './schema/KeyboardEventRequest.js';
10
- export * from './schema/MessageEvent.js';
11
22
  export * from './schema/MouseEventRequest.js';
12
23
  export * from './schema/PageMetadata.js';
24
+ export * from './schema/ProjectLocation.js';
13
25
  export * from './schema/ScreencastFrame.js';
26
+ export * from './schema/StageInfo.js';
14
27
  export * from './schema/StateData.js';
15
28
  export * from './schema/StateUpdate.js';
29
+ export * from './schema/UserPrompt.js';
30
+ export * from './schema/UserQuestion.js';
16
31
  export * from './schema/WorkflowInfo.js';
17
- export * from './schema/WorkflowMessage.js';
18
32
  //# 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,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,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,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,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,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
@@ -1,13 +1,15 @@
1
1
  import { ProtocolIndex } from '@nodescript/protocomm';
2
+ import { AgentDomain } from './domains/AgentDomain.js';
2
3
  import { BrowserDomain } from './domains/BrowserDomain.js';
3
- import { ChatDomain } from './domains/ChatDomain.js';
4
4
  import { EvalDomain } from './domains/EvalDomain.js';
5
+ import { StageDomain } from './domains/StageDomain.js';
5
6
  import { StateDomain } from './domains/StateDomain.js';
6
7
  import { WorkflowDomain } from './domains/WorkflowDomain.js';
7
8
  export interface RunnerProtocol {
8
9
  Browser: BrowserDomain;
9
- Chat: ChatDomain;
10
+ Agent: AgentDomain;
10
11
  State: StateDomain;
12
+ Stage: StageDomain;
11
13
  Eval: EvalDomain;
12
14
  Workflow: WorkflowDomain;
13
15
  }
@@ -1,13 +1,15 @@
1
1
  import { ProtocolIndex } from '@nodescript/protocomm';
2
+ import { AgentDomain } from './domains/AgentDomain.js';
2
3
  import { BrowserDomain } from './domains/BrowserDomain.js';
3
- import { ChatDomain } from './domains/ChatDomain.js';
4
4
  import { EvalDomain } from './domains/EvalDomain.js';
5
+ import { StageDomain } from './domains/StageDomain.js';
5
6
  import { StateDomain } from './domains/StateDomain.js';
6
7
  import { WorkflowDomain } from './domains/WorkflowDomain.js';
7
8
  export const runnerProtocol = new ProtocolIndex({
8
9
  Browser: BrowserDomain,
9
- Chat: ChatDomain,
10
+ Agent: AgentDomain,
10
11
  State: StateDomain,
12
+ Stage: StageDomain,
11
13
  Eval: EvalDomain,
12
14
  Workflow: WorkflowDomain,
13
15
  });
@@ -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,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,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,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,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,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAW7D,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,aAAa,CAAiB;IAC5D,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;CAC3B,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentMessageAttachment } from './AgentMessageAttachment.js';
3
+ import { AgentMessageImage } from './AgentMessageImage.js';
4
+ export interface AddMessageSpec {
5
+ role: 'system' | 'user' | 'assistant';
6
+ content: string;
7
+ attachments?: AgentMessageAttachment[];
8
+ data?: any;
9
+ images?: AgentMessageImage[];
10
+ }
11
+ export declare const AddMessageSpecSchema: Schema<AddMessageSpec>;
@@ -0,0 +1,25 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentMessageAttachmentSchema } from './AgentMessageAttachment.js';
3
+ import { AgentMessageImageSchema } from './AgentMessageImage.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
+ attachments: {
13
+ type: 'array',
14
+ items: AgentMessageAttachmentSchema.schema,
15
+ optional: true,
16
+ },
17
+ data: { type: 'any', optional: true },
18
+ images: {
19
+ type: 'array',
20
+ items: AgentMessageImageSchema.schema,
21
+ optional: true,
22
+ },
23
+ },
24
+ });
25
+ //# 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,EAA0B,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,EAAqB,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAUpF,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;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,4BAA4B,CAAC,MAAM;YAC1C,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,uBAAuB,CAAC,MAAM;YACrC,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ export interface AgentInfo {
3
+ id: string;
4
+ title: string;
5
+ description?: string;
6
+ }
7
+ export declare const AgentInfoSchema: Schema<AgentInfo>;
@@ -0,0 +1,10 @@
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
+ description: { type: 'string', optional: true },
8
+ },
9
+ });
10
+ //# 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;AAQlC,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,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAClD;CACJ,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentMessageAttachment } from './AgentMessageAttachment.js';
3
+ import { AgentMessageImage } from './AgentMessageImage.js';
4
+ import { AgentToolCall } from './AgentToolCall.js';
5
+ export interface AgentMessage {
6
+ id: string;
7
+ role: 'system' | 'user' | 'assistant';
8
+ content: string;
9
+ reasoning: string;
10
+ providerMetadata?: any;
11
+ data?: any;
12
+ images?: AgentMessageImage[];
13
+ toolCalls?: AgentToolCall[];
14
+ attachments?: AgentMessageAttachment[];
15
+ excluded?: boolean;
16
+ timestamp: number;
17
+ }
18
+ export declare const AgentMessageSchema: Schema<AgentMessage>;
@@ -0,0 +1,36 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentMessageAttachmentSchema } from './AgentMessageAttachment.js';
3
+ import { AgentMessageImageSchema } from './AgentMessageImage.js';
4
+ import { AgentToolCallSchema } from './AgentToolCall.js';
5
+ export const AgentMessageSchema = new Schema({
6
+ type: 'object',
7
+ properties: {
8
+ id: { type: 'string' },
9
+ role: {
10
+ type: 'string',
11
+ enum: ['system', 'user', 'assistant'],
12
+ },
13
+ content: { type: 'string' },
14
+ reasoning: { type: 'string' },
15
+ providerMetadata: { type: 'any', optional: true },
16
+ data: { type: 'any', optional: true },
17
+ images: {
18
+ type: 'array',
19
+ items: AgentMessageImageSchema.schema,
20
+ optional: true,
21
+ },
22
+ toolCalls: {
23
+ type: 'array',
24
+ items: AgentToolCallSchema.schema,
25
+ optional: true,
26
+ },
27
+ attachments: {
28
+ type: 'array',
29
+ items: AgentMessageAttachmentSchema.schema,
30
+ optional: true,
31
+ },
32
+ excluded: { type: 'boolean', optional: true },
33
+ timestamp: { type: 'number' },
34
+ },
35
+ });
36
+ //# sourceMappingURL=AgentMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentMessage.js","sourceRoot":"","sources":["../../../src/main/schema/AgentMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAA0B,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,EAAqB,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAiB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAgBxE,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;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC;SACxC;QACD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,gBAAgB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACjD,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACrC,MAAM,EAAE;YACJ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,uBAAuB,CAAC,MAAM;YACrC,QAAQ,EAAE,IAAI;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,mBAAmB,CAAC,MAAM;YACjC,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,4BAA4B,CAAC,MAAM;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7C,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAChC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentMessageAttachmentType } from './AgentMessageAttachmentType.js';
3
+ export interface AgentMessageAttachment {
4
+ type: AgentMessageAttachmentType;
5
+ key?: string;
6
+ }
7
+ export declare const AgentMessageAttachmentSchema: Schema<AgentMessageAttachment>;
@@ -0,0 +1,12 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentMessageAttachmentTypeSchema } from './AgentMessageAttachmentType.js';
3
+ export const AgentMessageAttachmentSchema = new Schema({
4
+ type: 'object',
5
+ properties: {
6
+ type: {
7
+ ...AgentMessageAttachmentTypeSchema.schema,
8
+ },
9
+ key: { type: 'string', optional: true },
10
+ },
11
+ });
12
+ //# sourceMappingURL=AgentMessageAttachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentMessageAttachment.js","sourceRoot":"","sources":["../../../src/main/schema/AgentMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAA8B,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAO/G,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,MAAM,CAAyB;IAC3E,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,GAAG,gCAAgC,CAAC,MAAM;SAC7C;QACD,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC1C;CACJ,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { Schema } from 'airtight';
2
+ export declare enum AgentMessageAttachmentType {
3
+ CurrentStage = "current-stage",
4
+ CurrentDate = "current-date",
5
+ Mission = "mission",
6
+ InputsSchema = "inputs-schema",
7
+ InputsSample = "inputs-sample",
8
+ OutputsSchema = "outputs-schema",
9
+ CtxInput = "ctx-input",
10
+ CtxOutput = "ctx-output",
11
+ CtxState = "ctx-state",
12
+ Playbook = "playbook",
13
+ PageSnapshot = "page-snapshot",
14
+ PageScreenshot = "page-screenshot"
15
+ }
16
+ export declare const AgentMessageAttachmentTypeSchema: Schema<AgentMessageAttachmentType>;
@@ -0,0 +1,85 @@
1
+ import { Schema } from 'airtight';
2
+ export var AgentMessageAttachmentType;
3
+ (function (AgentMessageAttachmentType) {
4
+ AgentMessageAttachmentType["CurrentStage"] = "current-stage";
5
+ AgentMessageAttachmentType["CurrentDate"] = "current-date";
6
+ AgentMessageAttachmentType["Mission"] = "mission";
7
+ AgentMessageAttachmentType["InputsSchema"] = "inputs-schema";
8
+ AgentMessageAttachmentType["InputsSample"] = "inputs-sample";
9
+ AgentMessageAttachmentType["OutputsSchema"] = "outputs-schema";
10
+ AgentMessageAttachmentType["CtxInput"] = "ctx-input";
11
+ AgentMessageAttachmentType["CtxOutput"] = "ctx-output";
12
+ AgentMessageAttachmentType["CtxState"] = "ctx-state";
13
+ AgentMessageAttachmentType["Playbook"] = "playbook";
14
+ AgentMessageAttachmentType["PageSnapshot"] = "page-snapshot";
15
+ AgentMessageAttachmentType["PageScreenshot"] = "page-screenshot";
16
+ })(AgentMessageAttachmentType || (AgentMessageAttachmentType = {}));
17
+ export const AgentMessageAttachmentTypeSchema = new Schema({
18
+ type: 'string',
19
+ enum: Object.values(AgentMessageAttachmentType),
20
+ metadata: {
21
+ options: [
22
+ {
23
+ type: 'current-stage',
24
+ title: 'Current stage',
25
+ description: 'The current stage of the workflow',
26
+ },
27
+ {
28
+ type: 'current-date',
29
+ title: 'Current date',
30
+ description: 'The current date in YYYY-MM-DD format',
31
+ },
32
+ {
33
+ type: 'mission',
34
+ title: 'Mission',
35
+ description: 'The mission of the workflow',
36
+ },
37
+ {
38
+ type: 'inputs-schema',
39
+ title: 'Inputs schema',
40
+ description: 'The JSON schema for ctx.inputs',
41
+ },
42
+ {
43
+ type: 'inputs-sample',
44
+ title: 'Inputs sample',
45
+ description: 'JSON representation of ctx.inputs',
46
+ },
47
+ {
48
+ type: 'outputs-schema',
49
+ title: 'Outputs schema',
50
+ description: 'The JSON schema for ctx.outputs',
51
+ },
52
+ {
53
+ type: 'ctx-input',
54
+ title: 'Input',
55
+ description: 'The value of spectx.inputs.{{key}}',
56
+ },
57
+ {
58
+ type: 'ctx-output',
59
+ title: 'Output',
60
+ description: 'The value of ctx.outputs.{{key}}',
61
+ },
62
+ {
63
+ type: 'ctx-state',
64
+ title: 'State',
65
+ description: 'The value of ctx.state.{{key}}',
66
+ },
67
+ {
68
+ type: 'playbook',
69
+ title: 'Playbook',
70
+ description: 'The playbook for current site',
71
+ },
72
+ {
73
+ type: 'page-snapshot',
74
+ title: 'Page HTML snapshot',
75
+ description: 'The simplified DOM snapshot of the current page',
76
+ },
77
+ {
78
+ type: 'page-screenshot',
79
+ title: 'Page screenshot',
80
+ description: 'The screenshot of the current page',
81
+ },
82
+ ]
83
+ }
84
+ });
85
+ //# sourceMappingURL=AgentMessageAttachmentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentMessageAttachmentType.js","sourceRoot":"","sources":["../../../src/main/schema/AgentMessageAttachmentType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAN,IAAY,0BAaX;AAbD,WAAY,0BAA0B;IAClC,4DAA8B,CAAA;IAC9B,0DAA4B,CAAA;IAC5B,iDAAmB,CAAA;IACnB,4DAA8B,CAAA;IAC9B,4DAA8B,CAAA;IAC9B,8DAAgC,CAAA;IAChC,oDAAsB,CAAA;IACtB,sDAAwB,CAAA;IACxB,oDAAsB,CAAA;IACtB,mDAAqB,CAAA;IACrB,4DAA8B,CAAA;IAC9B,gEAAkC,CAAA;AACtC,CAAC,EAbW,0BAA0B,KAA1B,0BAA0B,QAarC;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,MAAM,CAA6B;IACnF,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC;IAC/C,QAAQ,EAAE;QACN,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,mCAAmC;aACnD;YACD;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,uCAAuC;aACvD;YACD;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,6BAA6B;aAC7C;YACD;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,gCAAgC;aAChD;YACD;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,mCAAmC;aACnD;YACD;gBACI,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,iCAAiC;aACjD;YACD;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,oCAAoC;aACpD;YACD;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;aAClD;YACD;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,gCAAgC;aAChD;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,+BAA+B;aAC/C;YACD;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,iDAAiD;aACjE;YACD;gBACI,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,oCAAoC;aACpD;SACJ;KACJ;CACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Schema } from 'airtight';
2
+ export interface AgentMessageImage {
3
+ mimeType: string;
4
+ data: string;
5
+ }
6
+ export declare const AgentMessageImageSchema: Schema<AgentMessageImage>;
@@ -0,0 +1,9 @@
1
+ import { Schema } from 'airtight';
2
+ export const AgentMessageImageSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ mimeType: { type: 'string' },
6
+ data: { type: 'string' },
7
+ },
8
+ });
9
+ //# sourceMappingURL=AgentMessageImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentMessageImage.js","sourceRoot":"","sources":["../../../src/main/schema/AgentMessageImage.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,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC3B;CACJ,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentMessage } from './AgentMessage.js';
3
+ import { UserQuestion } from './UserQuestion.js';
4
+ export interface AgentThread {
5
+ id: string;
6
+ agentId: string;
7
+ parentThreadId?: string;
8
+ title?: string;
9
+ status: 'paused' | 'running' | 'finished' | 'failed';
10
+ messages: AgentMessage[];
11
+ pendingQuestions: UserQuestion[];
12
+ answeredQuestions: UserQuestion[];
13
+ error?: any;
14
+ rawError?: any;
15
+ }
16
+ export declare const AgentThreadSchema: Schema<AgentThread>;