@athree/runner-proto 4.0.0-wip.9 → 4.0.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.
Files changed (82) hide show
  1. package/out/main/domains/StageDomain.d.ts +16 -0
  2. package/out/main/domains/StageDomain.js +42 -0
  3. package/out/main/domains/StageDomain.js.map +1 -0
  4. package/out/main/domains/ThreadDomain.d.ts +37 -0
  5. package/out/main/domains/ThreadDomain.js +75 -0
  6. package/out/main/domains/ThreadDomain.js.map +1 -0
  7. package/out/main/domains/WorkflowDomain.d.ts +28 -9
  8. package/out/main/domains/WorkflowDomain.js +50 -17
  9. package/out/main/domains/WorkflowDomain.js.map +1 -1
  10. package/out/main/index.d.ts +18 -3
  11. package/out/main/index.js +18 -3
  12. package/out/main/index.js.map +1 -1
  13. package/out/main/protocol.d.ts +4 -2
  14. package/out/main/protocol.js +4 -2
  15. package/out/main/protocol.js.map +1 -1
  16. package/out/main/schema/AddMessageSpec.d.ts +12 -0
  17. package/out/main/schema/AddMessageSpec.js +26 -0
  18. package/out/main/schema/AddMessageSpec.js.map +1 -0
  19. package/out/main/schema/AgentInfo.d.ts +8 -0
  20. package/out/main/schema/AgentInfo.js +11 -0
  21. package/out/main/schema/AgentInfo.js.map +1 -0
  22. package/out/main/schema/AgentToolCall.d.ts +11 -0
  23. package/out/main/schema/AgentToolCall.js +14 -0
  24. package/out/main/schema/AgentToolCall.js.map +1 -0
  25. package/out/main/schema/BrowserEvent.d.ts +10 -0
  26. package/out/main/schema/BrowserEvent.js +18 -0
  27. package/out/main/schema/BrowserEvent.js.map +1 -0
  28. package/out/main/schema/BrowserEventType.d.ts +9 -0
  29. package/out/main/schema/BrowserEventType.js +14 -0
  30. package/out/main/schema/BrowserEventType.js.map +1 -0
  31. package/out/main/schema/CreateThreadSpec.d.ts +7 -0
  32. package/out/main/schema/CreateThreadSpec.js +10 -0
  33. package/out/main/schema/CreateThreadSpec.js.map +1 -0
  34. package/out/main/schema/EvaluateResponse.d.ts +3 -0
  35. package/out/main/schema/EvaluateResponse.js +3 -0
  36. package/out/main/schema/EvaluateResponse.js.map +1 -1
  37. package/out/main/schema/LlmModel.d.ts +7 -0
  38. package/out/main/schema/LlmModel.js +10 -0
  39. package/out/main/schema/LlmModel.js.map +1 -0
  40. package/out/main/schema/MessageAttachment.d.ts +7 -0
  41. package/out/main/schema/MessageAttachment.js +12 -0
  42. package/out/main/schema/MessageAttachment.js.map +1 -0
  43. package/out/main/schema/MessageAttachmentType.d.ts +11 -0
  44. package/out/main/schema/MessageAttachmentType.js +55 -0
  45. package/out/main/schema/MessageAttachmentType.js.map +1 -0
  46. package/out/main/schema/MessageImage.d.ts +6 -0
  47. package/out/main/schema/MessageImage.js +9 -0
  48. package/out/main/schema/MessageImage.js.map +1 -0
  49. package/out/main/schema/ProjectLocation.d.ts +8 -0
  50. package/out/main/schema/ProjectLocation.js +15 -0
  51. package/out/main/schema/ProjectLocation.js.map +1 -0
  52. package/out/main/schema/PromptContent.d.ts +7 -0
  53. package/out/main/schema/PromptContent.js +14 -0
  54. package/out/main/schema/PromptContent.js.map +1 -0
  55. package/out/main/schema/SkillDescriptor.d.ts +8 -0
  56. package/out/main/schema/SkillDescriptor.js +11 -0
  57. package/out/main/schema/SkillDescriptor.js.map +1 -0
  58. package/out/main/schema/StageInfo.d.ts +0 -2
  59. package/out/main/schema/StageInfo.js +0 -2
  60. package/out/main/schema/StageInfo.js.map +1 -1
  61. package/out/main/schema/StateUpdate.d.ts +2 -1
  62. package/out/main/schema/StateUpdate.js +2 -1
  63. package/out/main/schema/StateUpdate.js.map +1 -1
  64. package/out/main/schema/Thread.d.ts +17 -0
  65. package/out/main/schema/Thread.js +32 -0
  66. package/out/main/schema/Thread.js.map +1 -0
  67. package/out/main/schema/ThreadMessage.d.ts +19 -0
  68. package/out/main/schema/ThreadMessage.js +37 -0
  69. package/out/main/schema/ThreadMessage.js.map +1 -0
  70. package/out/main/schema/UserQuestion.d.ts +11 -0
  71. package/out/main/schema/UserQuestion.js +20 -0
  72. package/out/main/schema/UserQuestion.js.map +1 -0
  73. package/package.json +1 -1
  74. package/out/main/domains/ChatDomain.d.ts +0 -17
  75. package/out/main/domains/ChatDomain.js +0 -43
  76. package/out/main/domains/ChatDomain.js.map +0 -1
  77. package/out/main/schema/MessageEvent.d.ts +0 -8
  78. package/out/main/schema/MessageEvent.js +0 -2
  79. package/out/main/schema/MessageEvent.js.map +0 -1
  80. package/out/main/schema/WorkflowMessage.d.ts +0 -11
  81. package/out/main/schema/WorkflowMessage.js +0 -14
  82. package/out/main/schema/WorkflowMessage.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ export interface CreateThreadSpec {
3
+ agentId: string;
4
+ title?: string;
5
+ parentThreadId?: string;
6
+ }
7
+ export declare const CreateThreadSpecSchema: Schema<CreateThreadSpec>;
@@ -0,0 +1,10 @@
1
+ import { Schema } from 'airtight';
2
+ export const CreateThreadSpecSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ agentId: { type: 'string' },
6
+ title: { type: 'string', optional: true },
7
+ parentThreadId: { type: 'string', optional: true },
8
+ },
9
+ });
10
+ //# sourceMappingURL=CreateThreadSpec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateThreadSpec.js","sourceRoot":"","sources":["../../../src/main/schema/CreateThreadSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAmB;IAC/D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KACrD;CACJ,CAAC,CAAC"}
@@ -4,6 +4,9 @@ export interface EvaluateResponse {
4
4
  error?: {
5
5
  name: string;
6
6
  message: string;
7
+ stack: string;
8
+ code?: unknown;
9
+ details?: unknown;
7
10
  };
8
11
  }
9
12
  export declare const EvaluateResponseSchema: Schema<EvaluateResponse>;
@@ -11,6 +11,9 @@ export const EvaluateResponseSchema = new Schema({
11
11
  properties: {
12
12
  name: { type: 'string' },
13
13
  message: { type: 'string' },
14
+ stack: { type: 'string' },
15
+ code: { type: 'any', optional: true },
16
+ details: { type: 'any', optional: true },
14
17
  },
15
18
  optional: true,
16
19
  },
@@ -1 +1 @@
1
- {"version":3,"file":"EvaluateResponse.js","sourceRoot":"","sources":["../../../src/main/schema/EvaluateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUlC,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAmB;IAC/D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;YACD,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"EvaluateResponse.js","sourceRoot":"","sources":["../../../src/main/schema/EvaluateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAalC,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAmB;IAC/D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;gBACrC,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;aAC3C;YACD,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ export interface LlmModel {
3
+ provider: string;
4
+ model: string;
5
+ disabled: boolean;
6
+ }
7
+ export declare const LlmModelSchema: Schema<LlmModel>;
@@ -0,0 +1,10 @@
1
+ import { Schema } from 'airtight';
2
+ export const LlmModelSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ provider: { type: 'string' },
6
+ model: { type: 'string' },
7
+ disabled: { type: 'boolean' },
8
+ },
9
+ });
10
+ //# sourceMappingURL=LlmModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LlmModel.js","sourceRoot":"","sources":["../../../src/main/schema/LlmModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,MAAM,CAAW;IAC/C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAChC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ import { MessageAttachmentType } from './MessageAttachmentType.js';
3
+ export interface MessageAttachment {
4
+ type: MessageAttachmentType;
5
+ key?: string;
6
+ }
7
+ export declare const MessageAttachmentSchema: Schema<MessageAttachment>;
@@ -0,0 +1,12 @@
1
+ import { Schema } from 'airtight';
2
+ import { MessageAttachmentTypeSchema } from './MessageAttachmentType.js';
3
+ export const MessageAttachmentSchema = new Schema({
4
+ type: 'object',
5
+ properties: {
6
+ type: {
7
+ ...MessageAttachmentTypeSchema.schema,
8
+ },
9
+ key: { type: 'string', optional: true },
10
+ },
11
+ });
12
+ //# sourceMappingURL=MessageAttachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageAttachment.js","sourceRoot":"","sources":["../../../src/main/schema/MessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAyB,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAOhG,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,MAAM,CAAoB;IACjE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,GAAG,2BAA2B,CAAC,MAAM;SACxC;QACD,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC1C;CACJ,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Schema } from 'airtight';
2
+ export declare enum MessageAttachmentType {
3
+ CurrentDate = "current-date",
4
+ File = "file",
5
+ Inputs = "inputs",
6
+ InputsSchema = "inputs-schema",
7
+ OutputsSchema = "outputs-schema",
8
+ PageSnapshot = "page-snapshot",
9
+ PageScreenshot = "page-screenshot"
10
+ }
11
+ export declare const MessageAttachmentTypeSchema: Schema<MessageAttachmentType>;
@@ -0,0 +1,55 @@
1
+ import { Schema } from 'airtight';
2
+ export var MessageAttachmentType;
3
+ (function (MessageAttachmentType) {
4
+ MessageAttachmentType["CurrentDate"] = "current-date";
5
+ MessageAttachmentType["File"] = "file";
6
+ MessageAttachmentType["Inputs"] = "inputs";
7
+ MessageAttachmentType["InputsSchema"] = "inputs-schema";
8
+ MessageAttachmentType["OutputsSchema"] = "outputs-schema";
9
+ MessageAttachmentType["PageSnapshot"] = "page-snapshot";
10
+ MessageAttachmentType["PageScreenshot"] = "page-screenshot";
11
+ })(MessageAttachmentType || (MessageAttachmentType = {}));
12
+ export const MessageAttachmentTypeSchema = new Schema({
13
+ type: 'string',
14
+ enum: Object.values(MessageAttachmentType),
15
+ metadata: {
16
+ options: [
17
+ {
18
+ type: 'current-date',
19
+ title: 'Current date',
20
+ description: 'The current date in YYYY-MM-DD format',
21
+ },
22
+ {
23
+ type: 'file',
24
+ title: 'File: {{key}}',
25
+ description: 'Include a text file from an allowed project location',
26
+ },
27
+ {
28
+ type: 'inputs',
29
+ title: 'Inputs',
30
+ description: 'JSON representation of ctx.inputs',
31
+ },
32
+ {
33
+ type: 'inputs-schema',
34
+ title: 'Inputs schema',
35
+ description: 'The JSON schema for ctx.inputs',
36
+ },
37
+ {
38
+ type: 'outputs-schema',
39
+ title: 'Outputs schema',
40
+ description: 'The JSON schema for ctx.outputs',
41
+ },
42
+ {
43
+ type: 'page-snapshot',
44
+ title: 'Page HTML snapshot',
45
+ description: 'The simplified DOM snapshot of the current page',
46
+ },
47
+ {
48
+ type: 'page-screenshot',
49
+ title: 'Page screenshot',
50
+ description: 'The screenshot of the current page',
51
+ },
52
+ ]
53
+ }
54
+ });
55
+ //# sourceMappingURL=MessageAttachmentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageAttachmentType.js","sourceRoot":"","sources":["../../../src/main/schema/MessageAttachmentType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAN,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC7B,qDAA4B,CAAA;IAC5B,sCAAa,CAAA;IACb,0CAAiB,CAAA;IACjB,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,uDAA8B,CAAA;IAC9B,2DAAkC,CAAA;AACtC,CAAC,EARW,qBAAqB,KAArB,qBAAqB,QAQhC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,MAAM,CAAwB;IACzE,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAC1C,QAAQ,EAAE;QACN,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,uCAAuC;aACvD;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,sDAAsD;aACtE;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mCAAmC;aACnD;YACD;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,gCAAgC;aAChD;YACD;gBACI,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,iCAAiC;aACjD;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 MessageImage {
3
+ mimeType: string;
4
+ data: string;
5
+ }
6
+ export declare const MessageImageSchema: Schema<MessageImage>;
@@ -0,0 +1,9 @@
1
+ import { Schema } from 'airtight';
2
+ export const MessageImageSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ mimeType: { type: 'string' },
6
+ data: { type: 'string' },
7
+ },
8
+ });
9
+ //# sourceMappingURL=MessageImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageImage.js","sourceRoot":"","sources":["../../../src/main/schema/MessageImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOlC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAe;IACvD,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,8 @@
1
+ import { Schema } from 'airtight';
2
+ export interface ProjectLocation {
3
+ dir: string;
4
+ patterns?: string[];
5
+ writable: boolean;
6
+ description: string;
7
+ }
8
+ export declare const ProjectLocationSchema: Schema<ProjectLocation>;
@@ -0,0 +1,15 @@
1
+ import { Schema } from 'airtight';
2
+ export const ProjectLocationSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ dir: { type: 'string' },
6
+ patterns: {
7
+ type: 'array',
8
+ optional: true,
9
+ items: { type: 'string' },
10
+ },
11
+ writable: { type: 'boolean' },
12
+ description: { type: 'string' },
13
+ },
14
+ });
15
+ //# sourceMappingURL=ProjectLocation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectLocation.js","sourceRoot":"","sources":["../../../src/main/schema/ProjectLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,MAAM,CAAkB;IAC7D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;QACD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC7B,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAClC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Schema } from 'airtight';
2
+ import { MessageAttachment } from './MessageAttachment.js';
3
+ export interface PromptContent {
4
+ content: string;
5
+ attachments?: MessageAttachment[];
6
+ }
7
+ export declare const PromptContentSchema: Schema<PromptContent>;
@@ -0,0 +1,14 @@
1
+ import { Schema } from 'airtight';
2
+ import { MessageAttachmentSchema } from './MessageAttachment.js';
3
+ export const PromptContentSchema = new Schema({
4
+ type: 'object',
5
+ properties: {
6
+ content: { type: 'string' },
7
+ attachments: {
8
+ type: 'array',
9
+ items: MessageAttachmentSchema.schema,
10
+ optional: true,
11
+ },
12
+ },
13
+ });
14
+ //# sourceMappingURL=PromptContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromptContent.js","sourceRoot":"","sources":["../../../src/main/schema/PromptContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAqB,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAOpF,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,MAAM,CAAgB;IACzD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,uBAAuB,CAAC,MAAM;YACrC,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Schema } from 'airtight';
2
+ export interface SkillDescriptor {
3
+ name: string;
4
+ description: string;
5
+ content: string;
6
+ absolutePath: string;
7
+ }
8
+ export declare const SkillDescriptorSchema: Schema<SkillDescriptor>;
@@ -0,0 +1,11 @@
1
+ import { Schema } from 'airtight';
2
+ export const SkillDescriptorSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ name: { type: 'string' },
6
+ description: { type: 'string' },
7
+ content: { type: 'string' },
8
+ absolutePath: { type: 'string' },
9
+ },
10
+ });
11
+ //# sourceMappingURL=SkillDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkillDescriptor.js","sourceRoot":"","sources":["../../../src/main/schema/SkillDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,MAAM,CAAkB;IAC7D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC/B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACnC;CACJ,CAAC,CAAC"}
@@ -3,10 +3,8 @@ export interface StageInfo {
3
3
  id: string;
4
4
  key: string;
5
5
  title: string;
6
- namespace: string;
7
6
  modulePath: string;
8
7
  description?: string;
9
- initial?: boolean;
10
8
  success?: boolean;
11
9
  repeatable?: boolean;
12
10
  dependsOn?: string[];
@@ -5,10 +5,8 @@ export const StageInfoSchema = new Schema({
5
5
  id: { type: 'string' },
6
6
  key: { type: 'string' },
7
7
  title: { type: 'string' },
8
- namespace: { type: 'string' },
9
8
  modulePath: { type: 'string' },
10
9
  description: { type: 'string', optional: true },
11
- initial: { type: 'boolean', optional: true },
12
10
  success: { type: 'boolean', optional: true },
13
11
  repeatable: { type: 'boolean', optional: true },
14
12
  dependsOn: {
@@ -1 +1 @@
1
- {"version":3,"file":"StageInfo.js","sourceRoot":"","sources":["../../../src/main/schema/StageInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAelC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,MAAM,CAAY;IACjD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/C,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/C,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"StageInfo.js","sourceRoot":"","sources":["../../../src/main/schema/StageInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAalC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,MAAM,CAAY;IACjD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/C,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/C,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC,CAAC"}
@@ -2,6 +2,7 @@ import { Schema } from 'airtight';
2
2
  export interface StateUpdate {
3
3
  instanceName: string;
4
4
  propertyKey: string;
5
- propertyValue: any;
5
+ path: string;
6
+ value: any;
6
7
  }
7
8
  export declare const StateUpdateSchema: Schema<StateUpdate>;
@@ -4,7 +4,8 @@ export const StateUpdateSchema = new Schema({
4
4
  properties: {
5
5
  instanceName: { type: 'string' },
6
6
  propertyKey: { type: 'string' },
7
- propertyValue: { type: 'any' },
7
+ path: { type: 'string' },
8
+ value: { type: 'any' },
8
9
  },
9
10
  });
10
11
  //# sourceMappingURL=StateUpdate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StateUpdate.js","sourceRoot":"","sources":["../../../src/main/schema/StateUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,MAAM,CAAc;IACrD,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"}
1
+ {"version":3,"file":"StateUpdate.js","sourceRoot":"","sources":["../../../src/main/schema/StateUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,MAAM,CAAc;IACrD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAChC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC/B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;KACzB;CACJ,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { Schema } from 'airtight';
2
+ import { ThreadMessage } from './ThreadMessage.js';
3
+ import { UserQuestion } from './UserQuestion.js';
4
+ export interface Thread {
5
+ id: string;
6
+ agentId: string;
7
+ parentThreadId?: string;
8
+ model: string;
9
+ title?: string;
10
+ status: 'paused' | 'running' | 'finished' | 'failed';
11
+ messages: ThreadMessage[];
12
+ pendingQuestions: UserQuestion[];
13
+ answeredQuestions: UserQuestion[];
14
+ error?: any;
15
+ rawError?: any;
16
+ }
17
+ export declare const ThreadSchema: Schema<Thread>;
@@ -0,0 +1,32 @@
1
+ import { Schema } from 'airtight';
2
+ import { ThreadMessageSchema } from './ThreadMessage.js';
3
+ import { UserQuestionSchema } from './UserQuestion.js';
4
+ export const ThreadSchema = new Schema({
5
+ type: 'object',
6
+ properties: {
7
+ id: { type: 'string' },
8
+ agentId: { type: 'string' },
9
+ parentThreadId: { type: 'string', optional: true },
10
+ model: { type: 'string' },
11
+ title: { type: 'string', optional: true },
12
+ status: {
13
+ type: 'string',
14
+ enum: ['paused', 'running', 'finished', 'failed'],
15
+ },
16
+ messages: {
17
+ type: 'array',
18
+ items: ThreadMessageSchema.schema,
19
+ },
20
+ pendingQuestions: {
21
+ type: 'array',
22
+ items: UserQuestionSchema.schema,
23
+ },
24
+ answeredQuestions: {
25
+ type: 'array',
26
+ items: UserQuestionSchema.schema,
27
+ },
28
+ error: { type: 'any', optional: true },
29
+ rawError: { type: 'any', optional: true },
30
+ },
31
+ });
32
+ //# sourceMappingURL=Thread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Thread.js","sourceRoot":"","sources":["../../../src/main/schema/Thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAiB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAgB,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAgBrE,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,MAAM,CAAS;IAC3C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAClD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC;SACpD;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,mBAAmB,CAAC,MAAM;SACpC;QACD,gBAAgB,EAAE;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,kBAAkB,CAAC,MAAM;SACnC;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,kBAAkB,CAAC,MAAM;SACnC;QACD,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtC,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC5C;CACJ,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentToolCall } from './AgentToolCall.js';
3
+ import { MessageAttachment } from './MessageAttachment.js';
4
+ import { MessageImage } from './MessageImage.js';
5
+ export interface ThreadMessage {
6
+ id: string;
7
+ role: 'system' | 'user' | 'assistant';
8
+ content: string;
9
+ reasoning: string;
10
+ isGenerated?: boolean;
11
+ providerMetadata?: any;
12
+ data?: any;
13
+ images?: MessageImage[];
14
+ toolCalls?: AgentToolCall[];
15
+ attachments?: MessageAttachment[];
16
+ excluded?: boolean;
17
+ timestamp: number;
18
+ }
19
+ export declare const ThreadMessageSchema: Schema<ThreadMessage>;
@@ -0,0 +1,37 @@
1
+ import { Schema } from 'airtight';
2
+ import { AgentToolCallSchema } from './AgentToolCall.js';
3
+ import { MessageAttachmentSchema } from './MessageAttachment.js';
4
+ import { MessageImageSchema } from './MessageImage.js';
5
+ export const ThreadMessageSchema = 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
+ isGenerated: { type: 'boolean', optional: true },
16
+ providerMetadata: { type: 'any', optional: true },
17
+ data: { type: 'any', optional: true },
18
+ images: {
19
+ type: 'array',
20
+ items: MessageImageSchema.schema,
21
+ optional: true,
22
+ },
23
+ toolCalls: {
24
+ type: 'array',
25
+ items: AgentToolCallSchema.schema,
26
+ optional: true,
27
+ },
28
+ attachments: {
29
+ type: 'array',
30
+ items: MessageAttachmentSchema.schema,
31
+ optional: true,
32
+ },
33
+ excluded: { type: 'boolean', optional: true },
34
+ timestamp: { type: 'number' },
35
+ },
36
+ });
37
+ //# sourceMappingURL=ThreadMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThreadMessage.js","sourceRoot":"","sources":["../../../src/main/schema/ThreadMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAiB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAqB,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAgB,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAiBrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,MAAM,CAAgB;IACzD,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,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAChD,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,kBAAkB,CAAC,MAAM;YAChC,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,uBAAuB,CAAC,MAAM;YACrC,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,11 @@
1
+ import { Schema } from 'airtight';
2
+ export interface UserQuestion {
3
+ id: string;
4
+ title: string;
5
+ question: string;
6
+ options: string[];
7
+ allowOther: boolean;
8
+ multiSelect: boolean;
9
+ answers: string[];
10
+ }
11
+ export declare const UserQuestionSchema: Schema<UserQuestion>;
@@ -0,0 +1,20 @@
1
+ import { Schema } from 'airtight';
2
+ export const UserQuestionSchema = new Schema({
3
+ type: 'object',
4
+ properties: {
5
+ id: { type: 'string' },
6
+ title: { type: 'string' },
7
+ question: { type: 'string' },
8
+ options: {
9
+ type: 'array',
10
+ items: { type: 'string' },
11
+ },
12
+ allowOther: { type: 'boolean' },
13
+ multiSelect: { type: 'boolean' },
14
+ answers: {
15
+ type: 'array',
16
+ items: { type: 'string' },
17
+ },
18
+ },
19
+ });
20
+ //# sourceMappingURL=UserQuestion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserQuestion.js","sourceRoot":"","sources":["../../../src/main/schema/UserQuestion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAYlC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAe;IACvD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;QACD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC/B,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAChC,OAAO,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC5B;KACJ;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athree/runner-proto",
3
- "version": "4.0.0-wip.9",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1,17 +0,0 @@
1
- import { DomainDef } from '@nodescript/protocomm';
2
- import { Event } from 'nanoevent';
3
- import { MessageAddedEvent, MessageUpdatedEvent } from '../schema/MessageEvent.js';
4
- import { WorkflowMessage } from '../schema/WorkflowMessage.js';
5
- export interface ChatDomain {
6
- getMessages(req: {}): Promise<{
7
- messages: WorkflowMessage[];
8
- }>;
9
- clearMessages(req: {}): Promise<{}>;
10
- messageAdded: Event<MessageAddedEvent>;
11
- messageUpdated: Event<MessageUpdatedEvent>;
12
- messagesCleared: Event<{}>;
13
- statusUpdated: Event<{
14
- status: string;
15
- }>;
16
- }
17
- export declare const ChatDomain: DomainDef<ChatDomain>;
@@ -1,43 +0,0 @@
1
- import { WorkflowMessageSchema } from '../schema/WorkflowMessage.js';
2
- export const ChatDomain = {
3
- name: 'Chat',
4
- methods: {
5
- getMessages: {
6
- type: 'query',
7
- params: {},
8
- returns: {
9
- messages: {
10
- type: 'array',
11
- items: WorkflowMessageSchema.schema,
12
- },
13
- },
14
- },
15
- clearMessages: {
16
- type: 'command',
17
- params: {},
18
- returns: {},
19
- },
20
- },
21
- events: {
22
- messageAdded: {
23
- params: {
24
- message: WorkflowMessageSchema.schema,
25
- },
26
- },
27
- messageUpdated: {
28
- params: {
29
- messageId: { type: 'string' },
30
- content: { type: 'string' },
31
- },
32
- },
33
- messagesCleared: {
34
- params: {},
35
- },
36
- statusUpdated: {
37
- params: {
38
- status: { type: 'string' },
39
- },
40
- },
41
- },
42
- };
43
- //# sourceMappingURL=ChatDomain.js.map
@@ -1 +0,0 @@
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"}
@@ -1,8 +0,0 @@
1
- import { WorkflowMessage } from './WorkflowMessage.js';
2
- export interface MessageAddedEvent {
3
- message: WorkflowMessage;
4
- }
5
- export interface MessageUpdatedEvent {
6
- messageId: string;
7
- content: string;
8
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=MessageEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageEvent.js","sourceRoot":"","sources":["../../../src/main/schema/MessageEvent.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { Schema } from 'airtight';
2
- export interface WorkflowMessage {
3
- messageId?: string;
4
- title?: string;
5
- icon?: string;
6
- content: string;
7
- data?: any;
8
- code?: string;
9
- timestamp?: number;
10
- }
11
- export declare const WorkflowMessageSchema: Schema<WorkflowMessage>;
@@ -1,14 +0,0 @@
1
- import { Schema } from 'airtight';
2
- export const WorkflowMessageSchema = new Schema({
3
- type: 'object',
4
- properties: {
5
- messageId: { type: 'string', optional: true },
6
- title: { type: 'string', optional: true },
7
- icon: { type: 'string', optional: true },
8
- content: { type: 'string' },
9
- data: { type: 'any', optional: true },
10
- code: { type: 'string', optional: true },
11
- timestamp: { type: 'number', optional: true },
12
- },
13
- });
14
- //# sourceMappingURL=WorkflowMessage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowMessage.js","sourceRoot":"","sources":["../../../src/main/schema/WorkflowMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAYlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,MAAM,CAAkB;IAC7D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7C,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACrC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAChD;CACJ,CAAC,CAAC"}