@mastra/agent-builder 1.0.10 → 1.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,KAAK,EAAE,iBAAiB,CAAC;IACzB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,yDAAyD;IACzD,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,YAAY,CAAC,EAAE;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,WAAW;IACX,IAAI,CAAC,EAAE,UAAU,GAAG,aAAa,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,CAAC;CAChD;AAED;;GAEG;AACH,M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AAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAIhC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAI7B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC"}
@@ -2,138 +2,66 @@ import { z } from 'zod';
2
2
  export declare const TaskSchema: z.ZodArray<z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  content: z.ZodString;
5
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
6
- priority: z.ZodEnum<["high", "medium", "low"]>;
7
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5
+ status: z.ZodDefault<z.ZodEnum<{
6
+ pending: "pending";
7
+ in_progress: "in_progress";
8
+ completed: "completed";
9
+ blocked: "blocked";
10
+ }>>;
11
+ priority: z.ZodEnum<{
12
+ high: "high";
13
+ medium: "medium";
14
+ low: "low";
15
+ }>;
16
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
17
  notes: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- status: "pending" | "in_progress" | "completed" | "blocked";
11
- id: string;
12
- content: string;
13
- priority: "high" | "medium" | "low";
14
- notes: string;
15
- dependencies?: string[] | undefined;
16
- }, {
17
- id: string;
18
- content: string;
19
- priority: "high" | "medium" | "low";
20
- notes: string;
21
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
22
- dependencies?: string[] | undefined;
23
- }>, "many">;
18
+ }, z.core.$strip>>;
24
19
  export declare const QuestionSchema: z.ZodArray<z.ZodObject<{
25
20
  id: z.ZodString;
26
21
  question: z.ZodString;
27
- type: z.ZodEnum<["choice", "text", "boolean"]>;
28
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
+ type: z.ZodEnum<{
23
+ boolean: "boolean";
24
+ text: "text";
25
+ choice: "choice";
26
+ }>;
27
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
28
  context: z.ZodOptional<z.ZodString>;
30
- }, "strip", z.ZodTypeAny, {
31
- type: "boolean" | "text" | "choice";
32
- id: string;
33
- question: string;
34
- options?: string[] | undefined;
35
- context?: string | undefined;
36
- }, {
37
- type: "boolean" | "text" | "choice";
38
- id: string;
39
- question: string;
40
- options?: string[] | undefined;
41
- context?: string | undefined;
42
- }>, "many">;
29
+ }, z.core.$strip>>;
43
30
  export declare const PlanningIterationResultSchema: z.ZodObject<{
44
31
  success: z.ZodBoolean;
45
32
  tasks: z.ZodArray<z.ZodObject<{
46
33
  id: z.ZodString;
47
34
  content: z.ZodString;
48
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
49
- priority: z.ZodEnum<["high", "medium", "low"]>;
50
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ status: z.ZodDefault<z.ZodEnum<{
36
+ pending: "pending";
37
+ in_progress: "in_progress";
38
+ completed: "completed";
39
+ blocked: "blocked";
40
+ }>>;
41
+ priority: z.ZodEnum<{
42
+ high: "high";
43
+ medium: "medium";
44
+ low: "low";
45
+ }>;
46
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
47
  notes: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- status: "pending" | "in_progress" | "completed" | "blocked";
54
- id: string;
55
- content: string;
56
- priority: "high" | "medium" | "low";
57
- notes: string;
58
- dependencies?: string[] | undefined;
59
- }, {
60
- id: string;
61
- content: string;
62
- priority: "high" | "medium" | "low";
63
- notes: string;
64
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
65
- dependencies?: string[] | undefined;
66
- }>, "many">;
48
+ }, z.core.$strip>>;
67
49
  questions: z.ZodArray<z.ZodObject<{
68
50
  id: z.ZodString;
69
51
  question: z.ZodString;
70
- type: z.ZodEnum<["choice", "text", "boolean"]>;
71
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
+ type: z.ZodEnum<{
53
+ boolean: "boolean";
54
+ text: "text";
55
+ choice: "choice";
56
+ }>;
57
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
58
  context: z.ZodOptional<z.ZodString>;
73
- }, "strip", z.ZodTypeAny, {
74
- type: "boolean" | "text" | "choice";
75
- id: string;
76
- question: string;
77
- options?: string[] | undefined;
78
- context?: string | undefined;
79
- }, {
80
- type: "boolean" | "text" | "choice";
81
- id: string;
82
- question: string;
83
- options?: string[] | undefined;
84
- context?: string | undefined;
85
- }>, "many">;
59
+ }, z.core.$strip>>;
86
60
  reasoning: z.ZodString;
87
61
  planComplete: z.ZodBoolean;
88
62
  message: z.ZodString;
89
63
  error: z.ZodOptional<z.ZodString>;
90
- allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
64
+ allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny>>;
91
65
  allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
92
- }, "strip", z.ZodTypeAny, {
93
- message: string;
94
- success: boolean;
95
- reasoning: string;
96
- tasks: {
97
- status: "pending" | "in_progress" | "completed" | "blocked";
98
- id: string;
99
- content: string;
100
- priority: "high" | "medium" | "low";
101
- notes: string;
102
- dependencies?: string[] | undefined;
103
- }[];
104
- questions: {
105
- type: "boolean" | "text" | "choice";
106
- id: string;
107
- question: string;
108
- options?: string[] | undefined;
109
- context?: string | undefined;
110
- }[];
111
- planComplete: boolean;
112
- error?: string | undefined;
113
- allPreviousQuestions?: any[] | undefined;
114
- allPreviousAnswers?: Record<string, string> | undefined;
115
- }, {
116
- message: string;
117
- success: boolean;
118
- reasoning: string;
119
- tasks: {
120
- id: string;
121
- content: string;
122
- priority: "high" | "medium" | "low";
123
- notes: string;
124
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
125
- dependencies?: string[] | undefined;
126
- }[];
127
- questions: {
128
- type: "boolean" | "text" | "choice";
129
- id: string;
130
- question: string;
131
- options?: string[] | undefined;
132
- context?: string | undefined;
133
- }[];
134
- planComplete: boolean;
135
- error?: string | undefined;
136
- allPreviousQuestions?: any[] | undefined;
137
- allPreviousAnswers?: Record<string, string> | undefined;
138
- }>;
66
+ }, z.core.$strip>;
139
67
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/workflows/shared/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;WAStB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;WAQ1B,CAAC;AACF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/workflows/shared/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;kBAStB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;kBAQ1B,CAAC;AACF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUxC,CAAC"}