@getmagical/cli 0.2.0 → 0.2.2
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/dist/index.js +784 -597
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,545 +35,545 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
35
|
mod
|
|
36
36
|
));
|
|
37
37
|
|
|
38
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
38
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/primitive/index.js
|
|
39
39
|
var require_primitive = __commonJS({
|
|
40
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
40
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/primitive/index.js"(exports) {
|
|
41
41
|
"use strict";
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
46
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/built-in/index.js
|
|
47
47
|
var require_built_in = __commonJS({
|
|
48
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
48
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/built-in/index.js"(exports) {
|
|
49
49
|
"use strict";
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
54
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/key-of-base/index.js
|
|
55
55
|
var require_key_of_base = __commonJS({
|
|
56
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
56
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/key-of-base/index.js"(exports) {
|
|
57
57
|
"use strict";
|
|
58
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
62
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-exclude/index.js
|
|
63
63
|
var require_strict_exclude = __commonJS({
|
|
64
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
64
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-exclude/index.js"(exports) {
|
|
65
65
|
"use strict";
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
70
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-extract/index.js
|
|
71
71
|
var require_strict_extract = __commonJS({
|
|
72
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
72
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-extract/index.js"(exports) {
|
|
73
73
|
"use strict";
|
|
74
74
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
78
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-omit/index.js
|
|
79
79
|
var require_strict_omit = __commonJS({
|
|
80
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
80
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-omit/index.js"(exports) {
|
|
81
81
|
"use strict";
|
|
82
82
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
86
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/writable/index.js
|
|
87
87
|
var require_writable = __commonJS({
|
|
88
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
88
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/writable/index.js"(exports) {
|
|
89
89
|
"use strict";
|
|
90
90
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
94
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/async-or-sync/index.js
|
|
95
95
|
var require_async_or_sync = __commonJS({
|
|
96
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
96
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/async-or-sync/index.js"(exports) {
|
|
97
97
|
"use strict";
|
|
98
98
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
102
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/async-or-sync-type/index.js
|
|
103
103
|
var require_async_or_sync_type = __commonJS({
|
|
104
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
104
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/async-or-sync-type/index.js"(exports) {
|
|
105
105
|
"use strict";
|
|
106
106
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
110
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/dictionary/index.js
|
|
111
111
|
var require_dictionary = __commonJS({
|
|
112
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
112
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/dictionary/index.js"(exports) {
|
|
113
113
|
"use strict";
|
|
114
114
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
|
|
118
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
118
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/dictionary-values/index.js
|
|
119
119
|
var require_dictionary_values = __commonJS({
|
|
120
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
120
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/dictionary-values/index.js"(exports) {
|
|
121
121
|
"use strict";
|
|
122
122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
126
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/merge/index.js
|
|
127
127
|
var require_merge = __commonJS({
|
|
128
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
128
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/merge/index.js"(exports) {
|
|
129
129
|
"use strict";
|
|
130
130
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
134
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/merge-n/index.js
|
|
135
135
|
var require_merge_n = __commonJS({
|
|
136
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
136
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/merge-n/index.js"(exports) {
|
|
137
137
|
"use strict";
|
|
138
138
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
142
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/newable/index.js
|
|
143
143
|
var require_newable = __commonJS({
|
|
144
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
144
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/newable/index.js"(exports) {
|
|
145
145
|
"use strict";
|
|
146
146
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
|
|
150
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
150
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/non-never/index.js
|
|
151
151
|
var require_non_never = __commonJS({
|
|
152
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
152
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/non-never/index.js"(exports) {
|
|
153
153
|
"use strict";
|
|
154
154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
158
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/omit-properties/index.js
|
|
159
159
|
var require_omit_properties = __commonJS({
|
|
160
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
160
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/omit-properties/index.js"(exports) {
|
|
161
161
|
"use strict";
|
|
162
162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
166
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/opaque/index.js
|
|
167
167
|
var require_opaque = __commonJS({
|
|
168
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
168
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/opaque/index.js"(exports) {
|
|
169
169
|
"use strict";
|
|
170
170
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
|
|
174
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
174
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/path-value/index.js
|
|
175
175
|
var require_path_value = __commonJS({
|
|
176
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
176
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/path-value/index.js"(exports) {
|
|
177
177
|
"use strict";
|
|
178
178
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
182
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/paths/index.js
|
|
183
183
|
var require_paths = __commonJS({
|
|
184
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
184
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/paths/index.js"(exports) {
|
|
185
185
|
"use strict";
|
|
186
186
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
190
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/pick-properties/index.js
|
|
191
191
|
var require_pick_properties = __commonJS({
|
|
192
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
192
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/pick-properties/index.js"(exports) {
|
|
193
193
|
"use strict";
|
|
194
194
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
|
|
198
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
198
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/prettify/index.js
|
|
199
199
|
var require_prettify = __commonJS({
|
|
200
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
200
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/prettify/index.js"(exports) {
|
|
201
201
|
"use strict";
|
|
202
202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
206
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/safe-dictionary/index.js
|
|
207
207
|
var require_safe_dictionary = __commonJS({
|
|
208
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
208
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/safe-dictionary/index.js"(exports) {
|
|
209
209
|
"use strict";
|
|
210
210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
|
|
214
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
214
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/union-to-intersection/index.js
|
|
215
215
|
var require_union_to_intersection = __commonJS({
|
|
216
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
216
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/union-to-intersection/index.js"(exports) {
|
|
217
217
|
"use strict";
|
|
218
218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
|
|
222
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
222
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/value-of/index.js
|
|
223
223
|
var require_value_of = __commonJS({
|
|
224
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
224
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/value-of/index.js"(exports) {
|
|
225
225
|
"use strict";
|
|
226
226
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
|
|
230
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
230
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/xor/index.js
|
|
231
231
|
var require_xor = __commonJS({
|
|
232
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
232
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/xor/index.js"(exports) {
|
|
233
233
|
"use strict";
|
|
234
234
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
237
|
|
|
238
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
238
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-optional/index.js
|
|
239
239
|
var require_mark_optional = __commonJS({
|
|
240
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
240
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-optional/index.js"(exports) {
|
|
241
241
|
"use strict";
|
|
242
242
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
|
|
246
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
246
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-readonly/index.js
|
|
247
247
|
var require_mark_readonly = __commonJS({
|
|
248
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
248
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-readonly/index.js"(exports) {
|
|
249
249
|
"use strict";
|
|
250
250
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
|
|
254
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
254
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-required/index.js
|
|
255
255
|
var require_mark_required = __commonJS({
|
|
256
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
256
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-required/index.js"(exports) {
|
|
257
257
|
"use strict";
|
|
258
258
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
261
|
|
|
262
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
262
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-writable/index.js
|
|
263
263
|
var require_mark_writable = __commonJS({
|
|
264
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
264
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/mark-writable/index.js"(exports) {
|
|
265
265
|
"use strict";
|
|
266
266
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
|
|
270
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
270
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/buildable/index.js
|
|
271
271
|
var require_buildable = __commonJS({
|
|
272
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
272
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/buildable/index.js"(exports) {
|
|
273
273
|
"use strict";
|
|
274
274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
278
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-mark-optional/index.js
|
|
279
279
|
var require_deep_mark_optional = __commonJS({
|
|
280
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
280
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-mark-optional/index.js"(exports) {
|
|
281
281
|
"use strict";
|
|
282
282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
|
|
286
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
286
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-mark-required/index.js
|
|
287
287
|
var require_deep_mark_required = __commonJS({
|
|
288
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
288
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-mark-required/index.js"(exports) {
|
|
289
289
|
"use strict";
|
|
290
290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
293
|
|
|
294
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
294
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-non-nullable/index.js
|
|
295
295
|
var require_deep_non_nullable = __commonJS({
|
|
296
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
296
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-non-nullable/index.js"(exports) {
|
|
297
297
|
"use strict";
|
|
298
298
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
299
299
|
}
|
|
300
300
|
});
|
|
301
301
|
|
|
302
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
302
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-nullable/index.js
|
|
303
303
|
var require_deep_nullable = __commonJS({
|
|
304
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
304
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-nullable/index.js"(exports) {
|
|
305
305
|
"use strict";
|
|
306
306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
|
|
310
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
310
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-omit/index.js
|
|
311
311
|
var require_deep_omit = __commonJS({
|
|
312
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
312
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-omit/index.js"(exports) {
|
|
313
313
|
"use strict";
|
|
314
314
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
318
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-partial/index.js
|
|
319
319
|
var require_deep_partial = __commonJS({
|
|
320
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
320
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-partial/index.js"(exports) {
|
|
321
321
|
"use strict";
|
|
322
322
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
325
|
|
|
326
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
326
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-pick/index.js
|
|
327
327
|
var require_deep_pick = __commonJS({
|
|
328
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
328
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-pick/index.js"(exports) {
|
|
329
329
|
"use strict";
|
|
330
330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
|
|
334
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
334
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-readonly/index.js
|
|
335
335
|
var require_deep_readonly = __commonJS({
|
|
336
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
336
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-readonly/index.js"(exports) {
|
|
337
337
|
"use strict";
|
|
338
338
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
341
|
|
|
342
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
342
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-required/index.js
|
|
343
343
|
var require_deep_required = __commonJS({
|
|
344
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
344
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-required/index.js"(exports) {
|
|
345
345
|
"use strict";
|
|
346
346
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
|
|
350
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
350
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-undefinable/index.js
|
|
351
351
|
var require_deep_undefinable = __commonJS({
|
|
352
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
352
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-undefinable/index.js"(exports) {
|
|
353
353
|
"use strict";
|
|
354
354
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
358
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-writable/index.js
|
|
359
359
|
var require_deep_writable = __commonJS({
|
|
360
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
360
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-writable/index.js"(exports) {
|
|
361
361
|
"use strict";
|
|
362
362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
|
|
366
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
366
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-deep-omit/index.js
|
|
367
367
|
var require_strict_deep_omit = __commonJS({
|
|
368
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
368
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-deep-omit/index.js"(exports) {
|
|
369
369
|
"use strict";
|
|
370
370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
371
371
|
}
|
|
372
372
|
});
|
|
373
373
|
|
|
374
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
374
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-deep-pick/index.js
|
|
375
375
|
var require_strict_deep_pick = __commonJS({
|
|
376
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
376
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/strict-deep-pick/index.js"(exports) {
|
|
377
377
|
"use strict";
|
|
378
378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
|
|
382
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
382
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/optional-keys/index.js
|
|
383
383
|
var require_optional_keys = __commonJS({
|
|
384
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
384
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/optional-keys/index.js"(exports) {
|
|
385
385
|
"use strict";
|
|
386
386
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
|
|
390
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
390
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/pick-keys/index.js
|
|
391
391
|
var require_pick_keys = __commonJS({
|
|
392
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
392
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/pick-keys/index.js"(exports) {
|
|
393
393
|
"use strict";
|
|
394
394
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
|
|
398
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
398
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/readonly-keys/index.js
|
|
399
399
|
var require_readonly_keys = __commonJS({
|
|
400
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
400
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/readonly-keys/index.js"(exports) {
|
|
401
401
|
"use strict";
|
|
402
402
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
|
|
406
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
406
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/required-keys/index.js
|
|
407
407
|
var require_required_keys = __commonJS({
|
|
408
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
408
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/required-keys/index.js"(exports) {
|
|
409
409
|
"use strict";
|
|
410
410
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
413
|
|
|
414
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
414
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/writable-keys/index.js
|
|
415
415
|
var require_writable_keys = __commonJS({
|
|
416
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
416
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/writable-keys/index.js"(exports) {
|
|
417
417
|
"use strict";
|
|
418
418
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
|
|
422
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
422
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/exact/index.js
|
|
423
423
|
var require_exact = __commonJS({
|
|
424
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
424
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/exact/index.js"(exports) {
|
|
425
425
|
"use strict";
|
|
426
426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
|
|
430
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
430
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-any/index.js
|
|
431
431
|
var require_is_any = __commonJS({
|
|
432
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
432
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-any/index.js"(exports) {
|
|
433
433
|
"use strict";
|
|
434
434
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
|
|
438
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
438
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-never/index.js
|
|
439
439
|
var require_is_never = __commonJS({
|
|
440
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
440
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-never/index.js"(exports) {
|
|
441
441
|
"use strict";
|
|
442
442
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
443
443
|
}
|
|
444
444
|
});
|
|
445
445
|
|
|
446
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
446
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-unknown/index.js
|
|
447
447
|
var require_is_unknown = __commonJS({
|
|
448
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
448
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-unknown/index.js"(exports) {
|
|
449
449
|
"use strict";
|
|
450
450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
453
|
|
|
454
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
454
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-tuple/index.js
|
|
455
455
|
var require_is_tuple = __commonJS({
|
|
456
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
456
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/is-tuple/index.js"(exports) {
|
|
457
457
|
"use strict";
|
|
458
458
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
461
|
|
|
462
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
462
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/non-empty-object/index.js
|
|
463
463
|
var require_non_empty_object = __commonJS({
|
|
464
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
464
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/non-empty-object/index.js"(exports) {
|
|
465
465
|
"use strict";
|
|
466
466
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
469
|
|
|
470
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
470
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/any-array/index.js
|
|
471
471
|
var require_any_array = __commonJS({
|
|
472
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
472
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/any-array/index.js"(exports) {
|
|
473
473
|
"use strict";
|
|
474
474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
475
475
|
}
|
|
476
476
|
});
|
|
477
477
|
|
|
478
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
478
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/array-or-single/index.js
|
|
479
479
|
var require_array_or_single = __commonJS({
|
|
480
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
480
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/array-or-single/index.js"(exports) {
|
|
481
481
|
"use strict";
|
|
482
482
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
483
483
|
}
|
|
484
484
|
});
|
|
485
485
|
|
|
486
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
486
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/element-of/index.js
|
|
487
487
|
var require_element_of = __commonJS({
|
|
488
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
488
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/element-of/index.js"(exports) {
|
|
489
489
|
"use strict";
|
|
490
490
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
493
|
|
|
494
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
494
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/head/index.js
|
|
495
495
|
var require_head = __commonJS({
|
|
496
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
496
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/head/index.js"(exports) {
|
|
497
497
|
"use strict";
|
|
498
498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
501
|
|
|
502
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
502
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/non-empty-array/index.js
|
|
503
503
|
var require_non_empty_array = __commonJS({
|
|
504
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
504
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/non-empty-array/index.js"(exports) {
|
|
505
505
|
"use strict";
|
|
506
506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
|
|
510
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
510
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/readonly-array-or-single/index.js
|
|
511
511
|
var require_readonly_array_or_single = __commonJS({
|
|
512
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
512
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/readonly-array-or-single/index.js"(exports) {
|
|
513
513
|
"use strict";
|
|
514
514
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
515
515
|
}
|
|
516
516
|
});
|
|
517
517
|
|
|
518
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
518
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/tail/index.js
|
|
519
519
|
var require_tail = __commonJS({
|
|
520
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
520
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/tail/index.js"(exports) {
|
|
521
521
|
"use strict";
|
|
522
522
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
|
|
526
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
526
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/tuple/index.js
|
|
527
527
|
var require_tuple = __commonJS({
|
|
528
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
528
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/tuple/index.js"(exports) {
|
|
529
529
|
"use strict";
|
|
530
530
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
531
531
|
}
|
|
532
532
|
});
|
|
533
533
|
|
|
534
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
534
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/camel-case/index.js
|
|
535
535
|
var require_camel_case = __commonJS({
|
|
536
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
536
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/camel-case/index.js"(exports) {
|
|
537
537
|
"use strict";
|
|
538
538
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
539
539
|
}
|
|
540
540
|
});
|
|
541
541
|
|
|
542
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
542
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-camel-case-properties/index.js
|
|
543
543
|
var require_deep_camel_case_properties = __commonJS({
|
|
544
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
544
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/deep-camel-case-properties/index.js"(exports) {
|
|
545
545
|
"use strict";
|
|
546
546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
547
547
|
}
|
|
548
548
|
});
|
|
549
549
|
|
|
550
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
550
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/any-function/index.js
|
|
551
551
|
var require_any_function = __commonJS({
|
|
552
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
552
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/any-function/index.js"(exports) {
|
|
553
553
|
"use strict";
|
|
554
554
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
555
555
|
}
|
|
556
556
|
});
|
|
557
557
|
|
|
558
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
558
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/predicate-function/index.js
|
|
559
559
|
var require_predicate_function = __commonJS({
|
|
560
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
560
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/predicate-function/index.js"(exports) {
|
|
561
561
|
"use strict";
|
|
562
562
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
563
563
|
}
|
|
564
564
|
});
|
|
565
565
|
|
|
566
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
566
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/predicate-type/index.js
|
|
567
567
|
var require_predicate_type = __commonJS({
|
|
568
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
568
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/predicate-type/index.js"(exports) {
|
|
569
569
|
"use strict";
|
|
570
570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
573
|
|
|
574
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
574
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/unreachable-case-error/index.js
|
|
575
575
|
var require_unreachable_case_error = __commonJS({
|
|
576
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
576
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/unreachable-case-error/index.js"(exports) {
|
|
577
577
|
"use strict";
|
|
578
578
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
579
579
|
exports.UnreachableCaseError = void 0;
|
|
@@ -586,9 +586,9 @@ var require_unreachable_case_error = __commonJS({
|
|
|
586
586
|
}
|
|
587
587
|
});
|
|
588
588
|
|
|
589
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
589
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/assert/index.js
|
|
590
590
|
var require_assert = __commonJS({
|
|
591
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
591
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/assert/index.js"(exports) {
|
|
592
592
|
"use strict";
|
|
593
593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
594
594
|
exports.assert = void 0;
|
|
@@ -601,9 +601,9 @@ var require_assert = __commonJS({
|
|
|
601
601
|
}
|
|
602
602
|
});
|
|
603
603
|
|
|
604
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
604
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/create-factory-with-constraint/index.js
|
|
605
605
|
var require_create_factory_with_constraint = __commonJS({
|
|
606
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
606
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/create-factory-with-constraint/index.js"(exports) {
|
|
607
607
|
"use strict";
|
|
608
608
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
609
609
|
exports.createFactoryWithConstraint = void 0;
|
|
@@ -612,9 +612,9 @@ var require_create_factory_with_constraint = __commonJS({
|
|
|
612
612
|
}
|
|
613
613
|
});
|
|
614
614
|
|
|
615
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
615
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/is-exact/index.js
|
|
616
616
|
var require_is_exact = __commonJS({
|
|
617
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
617
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/is-exact/index.js"(exports) {
|
|
618
618
|
"use strict";
|
|
619
619
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
620
620
|
exports.isExact = void 0;
|
|
@@ -623,9 +623,9 @@ var require_is_exact = __commonJS({
|
|
|
623
623
|
}
|
|
624
624
|
});
|
|
625
625
|
|
|
626
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
626
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/noop/index.js
|
|
627
627
|
var require_noop = __commonJS({
|
|
628
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
628
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/functions/noop/index.js"(exports) {
|
|
629
629
|
"use strict";
|
|
630
630
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
631
631
|
exports.noop = void 0;
|
|
@@ -635,17 +635,17 @@ var require_noop = __commonJS({
|
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
637
|
|
|
638
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
638
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/awaited/index.js
|
|
639
639
|
var require_awaited = __commonJS({
|
|
640
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
640
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/awaited/index.js"(exports) {
|
|
641
641
|
"use strict";
|
|
642
642
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
645
|
|
|
646
|
-
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
646
|
+
// ../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/index.js
|
|
647
647
|
var require_dist = __commonJS({
|
|
648
|
-
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@
|
|
648
|
+
"../../node_modules/.pnpm/ts-essentials@10.1.1_typescript@7.0.2/node_modules/ts-essentials/dist/index.js"(exports) {
|
|
649
649
|
"use strict";
|
|
650
650
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
651
651
|
if (k2 === void 0) k2 = k;
|
|
@@ -7174,7 +7174,20 @@ function resolveApiMessage({ appError, statusCode }) {
|
|
|
7174
7174
|
}
|
|
7175
7175
|
return getStatusMessage(statusCode);
|
|
7176
7176
|
}
|
|
7177
|
+
function getExplicitUserFacingCode(details) {
|
|
7178
|
+
if (typeof details !== "object" || details === null || !("userFacingCode" in details) || typeof details.userFacingCode !== "string") {
|
|
7179
|
+
return void 0;
|
|
7180
|
+
}
|
|
7181
|
+
return details.userFacingCode;
|
|
7182
|
+
}
|
|
7177
7183
|
function resolveApiErrorCode({ appError, statusCode }) {
|
|
7184
|
+
const userFacingCode = getExplicitUserFacingCode(appError.details);
|
|
7185
|
+
if (typeof userFacingCode === "string" && userFacingCode.trim().length > 0) {
|
|
7186
|
+
return normalizeUserFacingErrorCode({
|
|
7187
|
+
type: userFacingCode,
|
|
7188
|
+
fallbackCode: getFallbackErrorCode(statusCode)
|
|
7189
|
+
});
|
|
7190
|
+
}
|
|
7178
7191
|
if (!shouldExposeMessage({ appError, statusCode })) {
|
|
7179
7192
|
return getFallbackErrorCode(statusCode);
|
|
7180
7193
|
}
|
|
@@ -12409,6 +12422,45 @@ var reportStopDataSchema = z11.object({
|
|
|
12409
12422
|
output: z11.string().optional().describe('Put the user-requested result content here when asked to return it with reportStop. This is for unstructured results only; do not include statuses ("success", "fail") and do not place results in metadata.reasoning. If the user did not request return content, omit this field.')
|
|
12410
12423
|
});
|
|
12411
12424
|
|
|
12425
|
+
// ../common/dist/src/utils/automation-store-path.util.js
|
|
12426
|
+
var AUTOMATION_STORE_ROOT_PATH = "store";
|
|
12427
|
+
var relativeStorePathRegex = /^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*)*$/u;
|
|
12428
|
+
function normalizeStoreMutationPath(path7) {
|
|
12429
|
+
const trimmedPath = path7.trim();
|
|
12430
|
+
const rootPrefix = `${AUTOMATION_STORE_ROOT_PATH}.`;
|
|
12431
|
+
const relativePath = trimmedPath.startsWith(rootPrefix) ? trimmedPath.slice(rootPrefix.length) : trimmedPath;
|
|
12432
|
+
if (!relativeStorePathRegex.test(relativePath)) {
|
|
12433
|
+
return Err({
|
|
12434
|
+
type: "invalid-automation-store-path",
|
|
12435
|
+
path: path7,
|
|
12436
|
+
categories: ["customer_usage"],
|
|
12437
|
+
statusCode: 400,
|
|
12438
|
+
nonRetryable: true,
|
|
12439
|
+
message: `Automation store path "${path7}" is invalid.`,
|
|
12440
|
+
suggestedAction: "Use a dot path relative to the automation store, such as patient.name or provider.clinic."
|
|
12441
|
+
});
|
|
12442
|
+
}
|
|
12443
|
+
return Ok(relativePath);
|
|
12444
|
+
}
|
|
12445
|
+
|
|
12446
|
+
// ../common/dist/src/utils/automation-store-mutation-path.util.js
|
|
12447
|
+
function findAutomationStorePathOverlap(paths) {
|
|
12448
|
+
const canonicalPaths = [
|
|
12449
|
+
...new Set(paths.map(getCanonicalAutomationStoreMutationPath))
|
|
12450
|
+
].toSorted((left, right) => (left === AUTOMATION_STORE_ROOT_PATH ? 0 : left.split(".").length) - (right === AUTOMATION_STORE_ROOT_PATH ? 0 : right.split(".").length));
|
|
12451
|
+
for (const [index, ancestorPath] of canonicalPaths.entries()) {
|
|
12452
|
+
const descendantPath = canonicalPaths.slice(index + 1).find((path7) => ancestorPath === AUTOMATION_STORE_ROOT_PATH || path7.startsWith(`${ancestorPath}.`));
|
|
12453
|
+
if (descendantPath !== void 0) {
|
|
12454
|
+
return { ancestorPath, descendantPath };
|
|
12455
|
+
}
|
|
12456
|
+
}
|
|
12457
|
+
return void 0;
|
|
12458
|
+
}
|
|
12459
|
+
function getCanonicalAutomationStoreMutationPath(path7) {
|
|
12460
|
+
const normalizedPath = normalizeStoreMutationPath(path7);
|
|
12461
|
+
return normalizedPath._tag === "Ok" ? normalizedPath.value : path7.trim();
|
|
12462
|
+
}
|
|
12463
|
+
|
|
12412
12464
|
// ../common/dist/src/constants/tool-declarations.js
|
|
12413
12465
|
var COMMON_PARAMETERS_KEY = "metadata";
|
|
12414
12466
|
var COMMON_PARAMETERS_DESCRIPTION = `REQUIRED metadata object that must be provided with every tool call. This object contains context and tracking information that helps monitor agent progress and decision-making. MUST be provided as a JSON object (not a string) under the 'metadata' parameter for all tool calls.`;
|
|
@@ -12475,7 +12527,8 @@ var baseToolDeclarations = {
|
|
|
12475
12527
|
parameters: z12.object({
|
|
12476
12528
|
[COMMON_PARAMETERS_KEY]: DEFAULT_COMMON_PARAMETERS,
|
|
12477
12529
|
marker: markerSchema("The marker to click on the page to initiate the download"),
|
|
12478
|
-
clickType: z12.enum(["LEFT", "RIGHT", "MIDDLE", "DOUBLE", "TRIPLE"]).describe("The type of click to perform")
|
|
12530
|
+
clickType: z12.enum(["LEFT", "RIGHT", "MIDDLE", "DOUBLE", "TRIPLE"]).describe("The type of click to perform"),
|
|
12531
|
+
extension: z12.string().min(1).optional().describe("The extension of the downloaded document")
|
|
12479
12532
|
})
|
|
12480
12533
|
},
|
|
12481
12534
|
downloadNextDocumentRequest: {
|
|
@@ -12610,12 +12663,13 @@ var baseToolDeclarations = {
|
|
|
12610
12663
|
},
|
|
12611
12664
|
updateStoreValues: {
|
|
12612
12665
|
id: "updateStoreValues",
|
|
12613
|
-
description: "Update values in the automation store.
|
|
12666
|
+
description: "Update values in the automation store. Set scalar leaf paths, append one item or a list of items to array paths, replace complete arrays, and clear scalar or array paths in a single mutation.",
|
|
12614
12667
|
parameters: z12.object({
|
|
12615
12668
|
[COMMON_PARAMETERS_KEY]: DEFAULT_COMMON_PARAMETERS,
|
|
12616
12669
|
updates: z12.array(z12.object({
|
|
12617
|
-
path: z12.string().min(1).describe("Scalar leaf path to set or array path to append to, such as patient.name or documents."),
|
|
12618
|
-
|
|
12670
|
+
path: z12.string().min(1).describe("Scalar leaf path to set or array path to append to or replace, such as patient.name or documents."),
|
|
12671
|
+
arrayMode: z12.enum(["append", "appendList", "replace"]).optional().describe("Array mutation behavior. Omit or use append to add one item, use appendList to add every item in the supplied list, or use replace to set the complete array. Do not use this for scalar paths."),
|
|
12672
|
+
value: z12.json().describe("Concrete JSON value for this update. Scalar paths receive this value. Array append updates receive one item, appendList updates receive a list of items, and replacements receive the complete list.")
|
|
12619
12673
|
})).optional().describe("Store values to update. Omit or pass an empty array when only clearing values."),
|
|
12620
12674
|
clears: z12.array(z12.string().min(1)).optional().describe("Scalar leaf or array store paths to clear. Clearing an array writes an empty list. Omit or pass an empty array when only updating values.")
|
|
12621
12675
|
}).superRefine((value, context) => {
|
|
@@ -12628,15 +12682,34 @@ var baseToolDeclarations = {
|
|
|
12628
12682
|
path: []
|
|
12629
12683
|
});
|
|
12630
12684
|
}
|
|
12631
|
-
const
|
|
12632
|
-
const
|
|
12633
|
-
|
|
12685
|
+
const canonicalUpdatePaths = updates.map(({ path: path7 }) => getCanonicalAutomationStoreMutationPath(path7));
|
|
12686
|
+
const canonicalClearPathSet = new Set(clears.map(getCanonicalAutomationStoreMutationPath));
|
|
12687
|
+
const conflictedUpdatePath = canonicalUpdatePaths.find((path7) => canonicalClearPathSet.has(path7));
|
|
12688
|
+
if (conflictedUpdatePath !== void 0) {
|
|
12634
12689
|
context.addIssue({
|
|
12635
12690
|
code: "custom",
|
|
12636
12691
|
message: "Choose Update or Clear for each automation store value, not both.",
|
|
12637
12692
|
path: ["updates"]
|
|
12638
12693
|
});
|
|
12639
12694
|
}
|
|
12695
|
+
if (new Set(canonicalUpdatePaths).size !== canonicalUpdatePaths.length) {
|
|
12696
|
+
context.addIssue({
|
|
12697
|
+
code: "custom",
|
|
12698
|
+
message: "Choose each automation store value at most once in Updates.",
|
|
12699
|
+
path: ["updates"]
|
|
12700
|
+
});
|
|
12701
|
+
}
|
|
12702
|
+
const overlappingPaths = findAutomationStorePathOverlap([
|
|
12703
|
+
...canonicalUpdatePaths,
|
|
12704
|
+
...canonicalClearPathSet
|
|
12705
|
+
]);
|
|
12706
|
+
if (overlappingPaths !== void 0) {
|
|
12707
|
+
context.addIssue({
|
|
12708
|
+
code: "custom",
|
|
12709
|
+
message: `Store paths "${overlappingPaths.ancestorPath}" and "${overlappingPaths.descendantPath}" cannot both be changed in one command.`,
|
|
12710
|
+
path: ["updates"]
|
|
12711
|
+
});
|
|
12712
|
+
}
|
|
12640
12713
|
})
|
|
12641
12714
|
},
|
|
12642
12715
|
scroll: {
|
|
@@ -12925,6 +12998,13 @@ var baseToolDeclarations = {
|
|
|
12925
12998
|
[COMMON_PARAMETERS_KEY]: DEFAULT_COMMON_PARAMETERS
|
|
12926
12999
|
})
|
|
12927
13000
|
},
|
|
13001
|
+
generateDownloadLink: {
|
|
13002
|
+
id: "generateDownloadLink",
|
|
13003
|
+
description: "This object is deprecated, only adding here to satisfy the DB type check",
|
|
13004
|
+
parameters: z12.object({
|
|
13005
|
+
[COMMON_PARAMETERS_KEY]: DEFAULT_COMMON_PARAMETERS
|
|
13006
|
+
})
|
|
13007
|
+
},
|
|
12928
13008
|
fillCredentialsAndSubmit: {
|
|
12929
13009
|
id: "fillCredentialsAndSubmit",
|
|
12930
13010
|
description: "This object is deprecated, only adding here to satisfy the DB type check",
|
|
@@ -13047,7 +13127,7 @@ var SOM_LEGEND_HTML_ATTRIBUTES = [
|
|
|
13047
13127
|
];
|
|
13048
13128
|
|
|
13049
13129
|
// ../common/dist/src/zod-schemas/agent-config.schema.js
|
|
13050
|
-
import { z as
|
|
13130
|
+
import { z as z19 } from "zod";
|
|
13051
13131
|
|
|
13052
13132
|
// ../common/dist/src/commands/commands-registry/special.commands.js
|
|
13053
13133
|
import { z as z13 } from "zod";
|
|
@@ -13356,7 +13436,13 @@ function isValidApiFormUrlEncodedBody({ bodyType, body }) {
|
|
|
13356
13436
|
}
|
|
13357
13437
|
|
|
13358
13438
|
// ../common/dist/src/zod-schemas/api-tool.schema.js
|
|
13439
|
+
import { z as z16 } from "zod";
|
|
13440
|
+
|
|
13441
|
+
// ../common/dist/src/zod-schemas/output-store-binding.schema.js
|
|
13359
13442
|
import { z as z15 } from "zod";
|
|
13443
|
+
var outputStorePathSchema = z15.string().regex(/^store\.[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*)*$/u, "Data Store destination must be a fully qualified path such as store.patient.name.");
|
|
13444
|
+
|
|
13445
|
+
// ../common/dist/src/zod-schemas/api-tool.schema.js
|
|
13360
13446
|
var methodsWithBody = new Set(ApiMethodsWithBody);
|
|
13361
13447
|
var SECONDS_PER_DAY = 24 * 60 * 60;
|
|
13362
13448
|
function getStaticHttpsBaseUrl(value) {
|
|
@@ -13371,11 +13457,11 @@ function getStaticHttpsBaseUrl(value) {
|
|
|
13371
13457
|
const isStaticHttpsBaseUrl = url.protocol === "https:" && url.username === "" && url.password === "" && url.search === "" && url.hash === "";
|
|
13372
13458
|
return isStaticHttpsBaseUrl ? url : void 0;
|
|
13373
13459
|
}
|
|
13374
|
-
var nangoBaseUrlOverrideSchema =
|
|
13460
|
+
var nangoBaseUrlOverrideSchema = z16.string().trim().superRefine((value, ctx) => {
|
|
13375
13461
|
const baseUrl = getStaticHttpsBaseUrl(value);
|
|
13376
13462
|
if (baseUrl === void 0) {
|
|
13377
13463
|
ctx.addIssue({
|
|
13378
|
-
code:
|
|
13464
|
+
code: z16.ZodIssueCode.custom,
|
|
13379
13465
|
message: "Base URL override must be a static HTTPS URL without credentials, query parameters, fragments, or template placeholders"
|
|
13380
13466
|
});
|
|
13381
13467
|
}
|
|
@@ -13386,30 +13472,67 @@ var defaultApiResponseCacheConfig = {
|
|
|
13386
13472
|
enabled: false,
|
|
13387
13473
|
ttl: API_RESPONSE_CACHE_DEFAULT_TTL_SECONDS
|
|
13388
13474
|
};
|
|
13389
|
-
var apiResponseCacheConfigObjectSchema =
|
|
13390
|
-
enabled:
|
|
13391
|
-
ttl:
|
|
13475
|
+
var apiResponseCacheConfigObjectSchema = z16.object({
|
|
13476
|
+
enabled: z16.boolean().default(defaultApiResponseCacheConfig.enabled).describe("Whether API response caching is enabled for this request."),
|
|
13477
|
+
ttl: z16.number().int().positive().default(defaultApiResponseCacheConfig.ttl).describe("Time-to-live for cached successful API responses, measured in seconds.")
|
|
13392
13478
|
});
|
|
13393
13479
|
var apiResponseCacheConfigSchema = apiResponseCacheConfigObjectSchema.optional().describe("Response cache configuration. Successful API responses can be reused across runs for identical rendered requests, with TTL measured in seconds.");
|
|
13394
|
-
var
|
|
13395
|
-
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
|
|
13399
|
-
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13480
|
+
var apiOutputStorePathSchema = outputStorePathSchema.describe("Fully qualified Data Store path that receives the selected value.");
|
|
13481
|
+
var apiOutputStoreBindingShape = {
|
|
13482
|
+
jmesPath: z16.string().trim().min(1, "JMESPath is required. Use @ to select the entire response.").describe("JMESPath expression evaluated against the raw API response. Use @ to select the entire response."),
|
|
13483
|
+
storePath: apiOutputStorePathSchema,
|
|
13484
|
+
arrayMode: z16.enum(["append", "appendList", "replace"]).optional().describe("Required for newly authored array destinations: append adds exactly one item, appendList adds multiple items, and replace sets the complete list. Omit for scalar destinations. Legacy omitted array modes still append at runtime.")
|
|
13485
|
+
};
|
|
13486
|
+
var apiOutputStoreBindingObjectSchema = z16.object(apiOutputStoreBindingShape);
|
|
13487
|
+
var apiOutputStoreBindingAuthoringSchema = z16.object(apiOutputStoreBindingShape).strict();
|
|
13488
|
+
var legacyApiOutputStoreBindingObjectSchema = z16.object({
|
|
13489
|
+
sourcePath: z16.literal("$"),
|
|
13490
|
+
storePath: apiOutputStorePathSchema,
|
|
13491
|
+
arrayMode: z16.enum(["append", "appendList", "replace"]).optional()
|
|
13492
|
+
});
|
|
13493
|
+
var apiOutputStoreBindingSchema = z16.union([
|
|
13494
|
+
apiOutputStoreBindingObjectSchema,
|
|
13495
|
+
legacyApiOutputStoreBindingObjectSchema
|
|
13496
|
+
]).transform((binding) => "jmesPath" in binding ? binding : {
|
|
13497
|
+
jmesPath: "@",
|
|
13498
|
+
storePath: binding.storePath,
|
|
13499
|
+
...binding.arrayMode === void 0 ? {} : { arrayMode: binding.arrayMode }
|
|
13500
|
+
});
|
|
13501
|
+
function validateUniqueApiOutputStoreBindingPaths(bindings, ctx) {
|
|
13502
|
+
const storePaths = /* @__PURE__ */ new Set();
|
|
13503
|
+
for (const [index, { storePath }] of bindings.entries()) {
|
|
13504
|
+
if (storePaths.has(storePath)) {
|
|
13505
|
+
ctx.addIssue({
|
|
13506
|
+
code: z16.ZodIssueCode.custom,
|
|
13507
|
+
path: [index, "storePath"],
|
|
13508
|
+
message: `Data Store destination "${storePath}" can only be written once by this node.`
|
|
13509
|
+
});
|
|
13510
|
+
}
|
|
13511
|
+
storePaths.add(storePath);
|
|
13512
|
+
}
|
|
13513
|
+
}
|
|
13514
|
+
var apiOutputStoreBindingsAuthoringSchema = z16.array(apiOutputStoreBindingAuthoringSchema).superRefine(validateUniqueApiOutputStoreBindingPaths).describe("Public authoring mappings from independently selected raw API response values to Data Store destinations.");
|
|
13515
|
+
var apiOutputStoreBindingsSchema = z16.array(apiOutputStoreBindingSchema).superRefine(validateUniqueApiOutputStoreBindingPaths).describe("Optional mappings from independently selected raw API response values to Data Store destinations.");
|
|
13516
|
+
var apiToolSchema = z16.object({
|
|
13517
|
+
name: z16.string().describe("Unique name for the API tool."),
|
|
13518
|
+
description: z16.string().describe("Description of what the API tool does. Shown to the agent to help it decide when to use this tool."),
|
|
13519
|
+
inputSchema: z16.custom().optional().describe("JSON schema (in serialized Zod format) defining the input parameters for the API call."),
|
|
13520
|
+
authInputs: z16.array(z16.object({
|
|
13521
|
+
key: z16.string().describe("Parameter key where the auth value will be injected."),
|
|
13522
|
+
value: z16.object({
|
|
13523
|
+
authId: z16.string().describe("ID of the authentication credential to use."),
|
|
13524
|
+
factor: z16.enum(IdentifierTypes).optional().describe("Type of authentication factor.")
|
|
13403
13525
|
})
|
|
13404
13526
|
})).optional().describe("Authentication inputs to inject into the API call. Maps parameter keys to saved credentials."),
|
|
13405
|
-
type:
|
|
13406
|
-
url:
|
|
13527
|
+
type: z16.enum(["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]).describe("HTTP method for the API call."),
|
|
13528
|
+
url: z16.string().describe("URL template for the API endpoint. Can include placeholders like {paramName} for dynamic values."),
|
|
13407
13529
|
baseUrlOverride: nangoBaseUrlOverrideSchema.optional().describe("Optional static base URL override for Nango-backed requests when the endpoint uses a base URL different from the provider default."),
|
|
13408
|
-
headers:
|
|
13409
|
-
queryParams:
|
|
13410
|
-
body:
|
|
13411
|
-
bodyType:
|
|
13412
|
-
outputJmesPath:
|
|
13530
|
+
headers: z16.record(z16.string(), z16.string()).optional().describe("HTTP headers to include in the request. Values can include placeholders."),
|
|
13531
|
+
queryParams: z16.record(z16.string(), z16.string()).optional().describe("Query parameters to include in the URL. Values can include placeholders."),
|
|
13532
|
+
body: z16.unknown().optional().describe("Request body template. Can include placeholders for dynamic values."),
|
|
13533
|
+
bodyType: z16.enum(ApiRequestBodyTypes).optional().describe("Request body encoding mode. Defaults to JSON when omitted. Use multipartFormData for typed form-data fields and formUrlEncoded for application/x-www-form-urlencoded payloads."),
|
|
13534
|
+
outputJmesPath: z16.string().optional().describe("JMESPath expression to extract specific data from the API response before returning it to the agent."),
|
|
13535
|
+
outputStoreBindings: apiOutputStoreBindingsSchema.optional(),
|
|
13413
13536
|
cacheResponse: apiResponseCacheConfigSchema
|
|
13414
13537
|
}).refine((data) => !(data.bodyType !== void 0 && !methodsWithBody.has(data.type)), {
|
|
13415
13538
|
message: "Body type is not supported for this method",
|
|
@@ -13429,48 +13552,48 @@ var apiToolSchema = z15.object({
|
|
|
13429
13552
|
}).describe("Custom API tool definition. Allows agents to make HTTP requests to external APIs.");
|
|
13430
13553
|
|
|
13431
13554
|
// ../common/dist/src/zod-schemas/run-limitation.schema.js
|
|
13432
|
-
import { z as
|
|
13555
|
+
import { z as z17 } from "zod";
|
|
13433
13556
|
var MAX_BROWSER_SESSION_DURATION_SECONDS = 6 * 60 * 60;
|
|
13434
13557
|
var BROWSER_TERMINATION_BUFFER_SECONDS = 60;
|
|
13435
13558
|
var MAX_AUTOMATION_DURATION_SECONDS = MAX_BROWSER_SESSION_DURATION_SECONDS - BROWSER_TERMINATION_BUFFER_SECONDS;
|
|
13436
13559
|
var MAX_AUTOMATION_TOOL_CALLS = 500;
|
|
13437
13560
|
var MAX_AGENT_TOOL_CALLS = 50;
|
|
13438
|
-
var maxDurationSecondsSchema =
|
|
13439
|
-
var baseRunLimitationSchema =
|
|
13561
|
+
var maxDurationSecondsSchema = z17.number().min(1).max(MAX_AUTOMATION_DURATION_SECONDS).optional().default(MAX_AUTOMATION_DURATION_SECONDS).describe("Maximum execution duration in seconds. The run will be terminated if it exceeds this limit.");
|
|
13562
|
+
var baseRunLimitationSchema = z17.object({
|
|
13440
13563
|
maxDurationSeconds: maxDurationSecondsSchema,
|
|
13441
|
-
maxToolCalls:
|
|
13442
|
-
allowedUrlRegexes:
|
|
13564
|
+
maxToolCalls: z17.number().optional().describe("Maximum number of tool calls allowed. The run will pause with MAX_TOOL_CALLS_REACHED when exceeded."),
|
|
13565
|
+
allowedUrlRegexes: z17.array(z17.string()).optional().describe("Array of regex patterns for URLs the agent is allowed to navigate to. If specified, navigation to non-matching URLs will be blocked.")
|
|
13443
13566
|
});
|
|
13444
13567
|
var automationRunLimitationSchema = baseRunLimitationSchema.extend({
|
|
13445
|
-
maxToolCalls:
|
|
13568
|
+
maxToolCalls: z17.number().optional().default(MAX_AUTOMATION_TOOL_CALLS).describe("Maximum number of tool calls allowed across all agents in the automation.")
|
|
13446
13569
|
}).optional().default({
|
|
13447
13570
|
maxDurationSeconds: MAX_AUTOMATION_DURATION_SECONDS,
|
|
13448
13571
|
maxToolCalls: MAX_AUTOMATION_TOOL_CALLS
|
|
13449
13572
|
}).describe("Resource limits for the automation run.");
|
|
13450
13573
|
var agentRunLimitationSchema = baseRunLimitationSchema.extend({
|
|
13451
|
-
maxToolCalls:
|
|
13574
|
+
maxToolCalls: z17.number().optional().default(MAX_AGENT_TOOL_CALLS).describe("Maximum number of tool calls allowed for this agent.")
|
|
13452
13575
|
}).optional().default({
|
|
13453
13576
|
maxDurationSeconds: MAX_AUTOMATION_DURATION_SECONDS,
|
|
13454
13577
|
maxToolCalls: MAX_AGENT_TOOL_CALLS
|
|
13455
13578
|
}).describe("Resource limits for the agent run.");
|
|
13456
13579
|
|
|
13457
13580
|
// ../common/dist/src/zod-schemas/voice-provider-options.schema.js
|
|
13458
|
-
import { z as
|
|
13459
|
-
var voiceParticipantSchema =
|
|
13460
|
-
number:
|
|
13461
|
-
name:
|
|
13462
|
-
countryCode:
|
|
13581
|
+
import { z as z18 } from "zod";
|
|
13582
|
+
var voiceParticipantSchema = z18.object({
|
|
13583
|
+
number: z18.string().min(1).optional().describe("Default phone number or endpoint to use for this call participant. Accepts a literal value or a Handlebars template with agent, shared, and context inputs."),
|
|
13584
|
+
name: z18.string().min(1).optional().describe("Display name to associate with this call participant."),
|
|
13585
|
+
countryCode: z18.enum(["US", "CA"]).optional().describe("Country context for local national phone numbers. US and CA numbers can be safely normalized to E.164 for providers that require it.")
|
|
13463
13586
|
}).describe("Default voice call participant settings.");
|
|
13464
|
-
var vapiVoiceProviderOptionsSchema =
|
|
13465
|
-
assistantId:
|
|
13466
|
-
assistant:
|
|
13467
|
-
assistantOverrides:
|
|
13587
|
+
var vapiVoiceProviderOptionsSchema = z18.object({
|
|
13588
|
+
assistantId: z18.string().min(1).optional().describe("Existing Vapi assistant ID to start or hand off the call to."),
|
|
13589
|
+
assistant: z18.record(z18.string(), z18.unknown()).optional().describe("Inline Vapi assistant definition used when an explicit assistantId is not provided."),
|
|
13590
|
+
assistantOverrides: z18.record(z18.string(), z18.unknown()).optional().describe("Runtime assistant override payload forwarded to Vapi when starting or handing off a call."),
|
|
13468
13591
|
caller: voiceParticipantSchema.optional().describe("Default caller settings for outbound calls."),
|
|
13469
13592
|
callee: voiceParticipantSchema.optional().describe("Default callee settings for outbound calls."),
|
|
13470
|
-
phoneNumberId:
|
|
13471
|
-
enableDtmf:
|
|
13593
|
+
phoneNumberId: z18.string().min(1).optional().describe("Vapi phone number ID used to originate outbound calls."),
|
|
13594
|
+
enableDtmf: z18.boolean().optional().describe("Whether the call should support DTMF input.")
|
|
13472
13595
|
}).describe("Configuration options specific to the Vapi voice provider.");
|
|
13473
|
-
var voiceProviderOptionsSchema =
|
|
13596
|
+
var voiceProviderOptionsSchema = z18.object({
|
|
13474
13597
|
vapi: vapiVoiceProviderOptionsSchema.optional().describe("Configuration options specific to the Vapi provider.")
|
|
13475
13598
|
}).describe("Provider-specific voice configuration options. Only the options for the selected voiceProvider are used.");
|
|
13476
13599
|
|
|
@@ -13482,50 +13605,50 @@ var NangoSupportedMethods = [
|
|
|
13482
13605
|
"PATCH",
|
|
13483
13606
|
"DELETE"
|
|
13484
13607
|
];
|
|
13485
|
-
var startingUrlSchema =
|
|
13608
|
+
var startingUrlSchema = z19.string().refine(isValidUrlOrHandlebarsTemplateString, {
|
|
13486
13609
|
message: "Starting URL must be a valid URL or Handlebars template"
|
|
13487
13610
|
}).optional();
|
|
13488
|
-
var browserSOMEnvironmentOptionsSchema =
|
|
13489
|
-
environment:
|
|
13490
|
-
maxMediaToIncludeInMemory:
|
|
13611
|
+
var browserSOMEnvironmentOptionsSchema = z19.object({
|
|
13612
|
+
environment: z19.literal("browser").describe("Browser environment using Set of Marks (SOM) for element identification."),
|
|
13613
|
+
maxMediaToIncludeInMemory: z19.number().min(1).optional().describe("Maximum number of screenshots/media items to keep in the agent memory context."),
|
|
13491
13614
|
somFilter: somFilterConfigSchema.optional().describe("Default SOM overlay filter to apply for each browser iteration until the somFilter tool sets or clears a session filter."),
|
|
13492
|
-
saveAuthCookiesAfterRun:
|
|
13493
|
-
suppressNativePrint:
|
|
13615
|
+
saveAuthCookiesAfterRun: z19.boolean().optional().describe("Whether to save authentication cookies after the run completes for reuse in future runs."),
|
|
13616
|
+
suppressNativePrint: z19.boolean().optional().describe("Suppress native window.print dialogs for the whole browser session while still recording print calls."),
|
|
13494
13617
|
startingUrl: startingUrlSchema.describe("Initial URL to navigate to when the agent starts. Accepts a valid URL or a Handlebars template with agent inputs. If not provided, uses the current URL of the browser; if this is the first agent, it will be a blank page."),
|
|
13495
|
-
browserProvider:
|
|
13618
|
+
browserProvider: z19.nativeEnum(BrowserProviderNames).default(BrowserProviderNames.browserbase).describe("Browser provider to use if this agent is the first in a run to create a browser."),
|
|
13496
13619
|
browserProviderOptions: browserProviderOptionsSchema.optional().describe("Provider-specific configuration options for the browser.")
|
|
13497
13620
|
}).describe("Browser environment configuration using Set of Marks (SOM) for element identification. This is the recommended browser mode for most use cases.");
|
|
13498
|
-
var browserCoordinatesEnvironmentOptionsSchema =
|
|
13499
|
-
environment:
|
|
13500
|
-
maxMediaToIncludeInMemory:
|
|
13501
|
-
saveAuthCookiesAfterRun:
|
|
13502
|
-
suppressNativePrint:
|
|
13621
|
+
var browserCoordinatesEnvironmentOptionsSchema = z19.object({
|
|
13622
|
+
environment: z19.literal("browserCoordinates").describe("Browser environment using coordinate-based interactions instead of SOM."),
|
|
13623
|
+
maxMediaToIncludeInMemory: z19.number().min(1).optional().describe("Maximum number of screenshots/media items to keep in the agent memory context."),
|
|
13624
|
+
saveAuthCookiesAfterRun: z19.boolean().optional().describe("Whether to save authentication cookies after the run completes for reuse in future runs."),
|
|
13625
|
+
suppressNativePrint: z19.boolean().optional().describe("Suppress native window.print dialogs for the whole browser session while still recording print calls."),
|
|
13503
13626
|
startingUrl: startingUrlSchema.describe("Initial URL to navigate to when the agent starts. Accepts a valid URL or a Handlebars template with agent inputs. If not provided, uses the current URL of the browser; if this is the first agent, it will be a blank page."),
|
|
13504
|
-
browserProvider:
|
|
13627
|
+
browserProvider: z19.nativeEnum(BrowserProviderNames).default(BrowserProviderNames.browserbase).describe("Browser provider to use if this agent is the first in a run to create a browser."),
|
|
13505
13628
|
browserProviderOptions: browserProviderOptionsSchema.optional().describe("Provider-specific configuration options for the browser.")
|
|
13506
13629
|
}).describe("Browser environment configuration using coordinate-based interactions. Use for scenarios where SOM-based identification is insufficient.");
|
|
13507
|
-
var guacamoleEnvironmentOptionsSchema =
|
|
13508
|
-
environment:
|
|
13509
|
-
browserProvider:
|
|
13630
|
+
var guacamoleEnvironmentOptionsSchema = z19.object({
|
|
13631
|
+
environment: z19.literal("desktop").describe("Desktop environment using Guacamole for remote desktop access."),
|
|
13632
|
+
browserProvider: z19.nativeEnum(BrowserProviderNames).default(BrowserProviderNames.browserbase).describe("Browser provider to use to connect to Guacamole."),
|
|
13510
13633
|
browserProviderOptions: browserProviderOptionsSchema.optional().describe("Provider-specific configuration options."),
|
|
13511
|
-
maxMediaToIncludeInMemory:
|
|
13634
|
+
maxMediaToIncludeInMemory: z19.number().min(1).optional().describe("Maximum number of screenshots/media items to keep in the agent memory context."),
|
|
13512
13635
|
startingUrl: startingUrlSchema.describe("Initial URL for the Guacamole connection. Accepts a valid URL or a Handlebars template with agent inputs."),
|
|
13513
|
-
useCopyPasteForTyping:
|
|
13636
|
+
useCopyPasteForTyping: z19.boolean().default(false).optional().describe("Use copy-paste instead of keystroke simulation for text input. Can improve reliability in some desktop applications.")
|
|
13514
13637
|
}).describe("Desktop environment configuration using Guacamole for remote desktop automation.");
|
|
13515
|
-
var desktopAppEnvironmentOptionsSchema =
|
|
13516
|
-
environment:
|
|
13517
|
-
maxMediaToIncludeInMemory:
|
|
13638
|
+
var desktopAppEnvironmentOptionsSchema = z19.object({
|
|
13639
|
+
environment: z19.literal("desktopApp").describe("Native application environment for mobile or desktop app automation."),
|
|
13640
|
+
maxMediaToIncludeInMemory: z19.number().min(1).optional().describe("Maximum number of screenshots/media items to keep in the agent memory context."),
|
|
13518
13641
|
viewport: viewportSizeSchema.optional().describe(`Target viewport dimensions for screenshots and coordinate-based actions. Defaults to ${BROWSER_DEFAULT_VIEWPORT.width}x${BROWSER_DEFAULT_VIEWPORT.height} when omitted.`)
|
|
13519
13642
|
}).describe("Native application environment configuration for automating mobile or desktop applications.");
|
|
13520
|
-
var minimalEnvironmentOptionsSchema =
|
|
13521
|
-
environment:
|
|
13643
|
+
var minimalEnvironmentOptionsSchema = z19.object({
|
|
13644
|
+
environment: z19.literal("minimal").describe("Minimal environment without browser or desktop capabilities. Use for non-UI agents.")
|
|
13522
13645
|
}).describe("Minimal environment configuration for agents that do not require browser or desktop access (e.g., API-only agents).");
|
|
13523
|
-
var voiceEnvironmentOptionsSchema =
|
|
13524
|
-
environment:
|
|
13525
|
-
voiceProvider:
|
|
13646
|
+
var voiceEnvironmentOptionsSchema = z19.object({
|
|
13647
|
+
environment: z19.literal("voice").describe("Hosted voice environment for live phone or audio conversations."),
|
|
13648
|
+
voiceProvider: z19.nativeEnum(VoiceProviderNames).default(VoiceProviderNames.vapi).describe("Voice provider to use if this agent is the first in a run to create or attach to a live call."),
|
|
13526
13649
|
voiceProviderOptions: voiceProviderOptionsSchema.optional().describe("Provider-specific configuration options for voice runtime.")
|
|
13527
13650
|
}).describe("Voice environment configuration for hosted conversational runtimes such as Vapi.");
|
|
13528
|
-
var environmentOptionsSchema =
|
|
13651
|
+
var environmentOptionsSchema = z19.discriminatedUnion("environment", [
|
|
13529
13652
|
browserSOMEnvironmentOptionsSchema,
|
|
13530
13653
|
browserCoordinatesEnvironmentOptionsSchema,
|
|
13531
13654
|
guacamoleEnvironmentOptionsSchema,
|
|
@@ -13536,7 +13659,7 @@ var environmentOptionsSchema = z18.discriminatedUnion("environment", [
|
|
|
13536
13659
|
var runSettingsBrowserSOMEnvironmentOptionsSchema = browserSOMEnvironmentOptionsSchema.omit({
|
|
13537
13660
|
somFilter: true
|
|
13538
13661
|
}).describe("Browser environment configuration using Set of Marks (SOM) for element identification. This is the recommended browser mode for most use cases.");
|
|
13539
|
-
var runSettingsEnvironmentOptionsSchema =
|
|
13662
|
+
var runSettingsEnvironmentOptionsSchema = z19.discriminatedUnion("environment", [
|
|
13540
13663
|
runSettingsBrowserSOMEnvironmentOptionsSchema,
|
|
13541
13664
|
browserCoordinatesEnvironmentOptionsSchema,
|
|
13542
13665
|
guacamoleEnvironmentOptionsSchema,
|
|
@@ -13552,14 +13675,14 @@ var environmentNames = [
|
|
|
13552
13675
|
"voice",
|
|
13553
13676
|
"minimal"
|
|
13554
13677
|
];
|
|
13555
|
-
var environmentNamesSchema =
|
|
13678
|
+
var environmentNamesSchema = z19.enum(environmentNames).describe("Available environment types: browser (SOM-based), browserCoordinates (coordinate-based), desktop (Guacamole), desktopApp, voice, or minimal.");
|
|
13556
13679
|
var DEFAULT_ENVIRONMENT_OPTION = environmentOptionsSchema.parse({
|
|
13557
13680
|
environment: "browser"
|
|
13558
13681
|
});
|
|
13559
|
-
var passkeyLeaseScopeSchema =
|
|
13560
|
-
var resourcePoolReferenceSchema =
|
|
13561
|
-
id:
|
|
13562
|
-
type:
|
|
13682
|
+
var passkeyLeaseScopeSchema = z19.enum(["session", "authStep"]).describe("Passkey lock lifetime. session holds the passkey lease for the browser session; authStep starts the lease before WebAuthn is armed for login and releases it after assertion so the passkey can be reused sooner.");
|
|
13683
|
+
var resourcePoolReferenceSchema = z19.object({
|
|
13684
|
+
id: z19.string().uuid().describe("Unique identifier of the resource pool."),
|
|
13685
|
+
type: z19.enum([
|
|
13563
13686
|
"commandGenerated",
|
|
13564
13687
|
"proxy",
|
|
13565
13688
|
"apiAuthentication",
|
|
@@ -13569,21 +13692,21 @@ var resourcePoolReferenceSchema = z18.object({
|
|
|
13569
13692
|
passkeyLeaseScope: passkeyLeaseScopeSchema.optional()
|
|
13570
13693
|
});
|
|
13571
13694
|
var MAX_RESOURCE_POOLS_PER_STARTING_AGENT = 8;
|
|
13572
|
-
var resourcePoolsSchema =
|
|
13573
|
-
var agentRunSettingsSchema =
|
|
13695
|
+
var resourcePoolsSchema = z19.array(resourcePoolReferenceSchema).max(MAX_RESOURCE_POOLS_PER_STARTING_AGENT, "Only eight resource pools per starting agent are currently supported").optional();
|
|
13696
|
+
var agentRunSettingsSchema = z19.object({
|
|
13574
13697
|
environmentOptions: runSettingsEnvironmentOptionsSchema.optional().describe("Canonical run-level browser/session settings used when this agent is selected as the run settings source. Agent-owned fields such as startingUrl and maxMediaToIncludeInMemory are intentionally ignored at runtime even if present here."),
|
|
13575
13698
|
resourcePools: resourcePoolsSchema.describe("Managed resource pools used when this agent is selected as the run settings source. These may be persisted on any agent even when that agent is not currently a top-level run settings source."),
|
|
13576
|
-
skipBrowserDebuggerPauses:
|
|
13699
|
+
skipBrowserDebuggerPauses: z19.boolean().optional().describe("Run-level browser session startup setting. When run settings mode is active, this value is snapshotted from runSettings and legacy agent-local values are ignored.")
|
|
13577
13700
|
});
|
|
13578
|
-
var remoteFileConnectionSchema =
|
|
13579
|
-
description:
|
|
13580
|
-
host:
|
|
13581
|
-
port:
|
|
13582
|
-
protocol:
|
|
13583
|
-
opItemId:
|
|
13584
|
-
opVaultId:
|
|
13701
|
+
var remoteFileConnectionSchema = z19.object({
|
|
13702
|
+
description: z19.string().describe("Human-readable description of this remote file connection."),
|
|
13703
|
+
host: z19.string().describe("Hostname or IP address of the remote server."),
|
|
13704
|
+
port: z19.number().describe("Port number for the connection (e.g., 22 for SFTP)."),
|
|
13705
|
+
protocol: z19.enum(["sftp"]).describe("Protocol to use for the connection. Currently only SFTP is supported."),
|
|
13706
|
+
opItemId: z19.string().describe("1Password item ID containing the credentials."),
|
|
13707
|
+
opVaultId: z19.string().describe("1Password vault ID containing the item.")
|
|
13585
13708
|
}).describe("Remote file connection configuration for SFTP access. Credentials are stored securely in 1Password.");
|
|
13586
|
-
var workflowIdReusePolicySchema =
|
|
13709
|
+
var workflowIdReusePolicySchema = z19.enum(["ALLOW_DUPLICATE", "ALLOW_DUPLICATE_FAILED_ONLY"]).describe("Controls Temporal workflow ID reuse. ALLOW_DUPLICATE allows rerunning with the same ID. ALLOW_DUPLICATE_FAILED_ONLY only allows reuse if the previous run failed.");
|
|
13587
13710
|
var codeLanguages = ["typescript"];
|
|
13588
13711
|
var windowsAbsolutePathPattern = /^[A-Za-z]:[\\/]/u;
|
|
13589
13712
|
function hasControlCharacter(value) {
|
|
@@ -13611,147 +13734,189 @@ function normalizeRepoPath(path7) {
|
|
|
13611
13734
|
return path7.replaceAll(/\/+$/gu, "");
|
|
13612
13735
|
}
|
|
13613
13736
|
var skillPathPattern = /^(?:skills\/.+|automations\/[^/]+\/skills\/.+|automations\/[^/]+\/agents\/[^/]+\/skills\/.+)$/u;
|
|
13614
|
-
var repoPathSchema =
|
|
13737
|
+
var repoPathSchema = z19.string().min(1).transform(normalizeRepoPath).refine(isNormalizedRepoPath, {
|
|
13615
13738
|
message: "Path must be a normalized repository-relative path."
|
|
13616
13739
|
});
|
|
13617
|
-
var knowledgeBasePluginPermissionSchema =
|
|
13740
|
+
var knowledgeBasePluginPermissionSchema = z19.object({
|
|
13618
13741
|
path: repoPathSchema.refine(getIsKnowledgeBaseAssetPathAllowed, {
|
|
13619
13742
|
message: "Knowledge Base paths must be under org, automation, or automation-agent assets."
|
|
13620
13743
|
}).describe("Repository path the knowledge base plugin can access."),
|
|
13621
|
-
access:
|
|
13744
|
+
access: z19.enum(["read", "write"]).describe("Access level for the path. Write access also grants reads.")
|
|
13622
13745
|
}).describe("Path-scoped permission for the knowledge base runtime plugin.");
|
|
13623
|
-
var knowledgeBaseConfigSchema =
|
|
13624
|
-
enabled:
|
|
13625
|
-
permissions:
|
|
13746
|
+
var knowledgeBaseConfigSchema = z19.object({
|
|
13747
|
+
enabled: z19.boolean().default(false).describe("Explicit rollout switch for the knowledge base runtime plugin."),
|
|
13748
|
+
permissions: z19.array(knowledgeBasePluginPermissionSchema).min(1).describe("Repository paths the knowledge base plugin can access. Write grants read and write access.")
|
|
13626
13749
|
}).describe("Configuration for the knowledge base runtime plugin.");
|
|
13627
|
-
var memoryConfigSchema =
|
|
13628
|
-
enabled:
|
|
13750
|
+
var memoryConfigSchema = z19.object({
|
|
13751
|
+
enabled: z19.boolean().default(false).describe("Explicit rollout switch for the memory runtime plugin.")
|
|
13629
13752
|
}).strict().describe("Configuration for the memory runtime plugin.");
|
|
13630
|
-
var skillsConfigSchema =
|
|
13631
|
-
enabled:
|
|
13632
|
-
registeredSkills:
|
|
13753
|
+
var skillsConfigSchema = z19.object({
|
|
13754
|
+
enabled: z19.boolean().default(false).describe("Explicit rollout switch for the skills runtime plugin."),
|
|
13755
|
+
registeredSkills: z19.array(repoPathSchema.refine((path7) => skillPathPattern.test(path7), {
|
|
13633
13756
|
message: "Skill paths must be under root, automation, or automation-agent skills."
|
|
13634
13757
|
})).default(() => []).describe("Repository skill root paths available to the skills plugin."),
|
|
13635
|
-
canEdit:
|
|
13758
|
+
canEdit: z19.boolean().default(false).describe("Allows the skills runtime plugin to edit repo skills under the root skills folder.")
|
|
13636
13759
|
}).describe("Configuration for the skills runtime plugin.");
|
|
13637
|
-
var agentPluginsConfigSchema =
|
|
13760
|
+
var agentPluginsConfigSchema = z19.object({
|
|
13638
13761
|
knowledgeBase: knowledgeBaseConfigSchema.optional().describe("Enables the knowledge base runtime plugin."),
|
|
13639
13762
|
memory: memoryConfigSchema.optional().describe("Enables the memory runtime plugin."),
|
|
13640
13763
|
skills: skillsConfigSchema.optional().describe("Enables the skills runtime plugin.")
|
|
13641
13764
|
}).optional().describe("Runtime plugins enabled for this agent. Plugin tools are not controlled by the built-in tools allow-list.");
|
|
13642
|
-
var baseAgentConfigFieldsSchema =
|
|
13643
|
-
apiTools:
|
|
13644
|
-
remoteFileConnections:
|
|
13765
|
+
var baseAgentConfigFieldsSchema = z19.object({
|
|
13766
|
+
apiTools: z19.array(apiToolSchema).optional().describe("Custom API tools available to this agent. Each tool defines an HTTP endpoint the agent can call."),
|
|
13767
|
+
remoteFileConnections: z19.array(remoteFileConnectionSchema).optional().describe("Remote file server connections for SFTP operations. Enables agents to read/write files on remote servers."),
|
|
13645
13768
|
resourcePools: resourcePoolsSchema.describe("Deprecated compatibility shadow of runSettings.resourcePools. Keep mirrored with runSettings.resourcePools during the migration. New runtime logic should prefer runSettings.resourcePools. Maximum 8 pools per starting agent."),
|
|
13646
|
-
tools:
|
|
13647
|
-
knowledgeBase:
|
|
13648
|
-
namespace:
|
|
13649
|
-
k:
|
|
13769
|
+
tools: z19.array(z19.enum(baseToolNames)).optional().default(() => []).describe("List of built-in tools enabled for this agent (e.g., click, clickFill, scroll, navigateTo). Note: reportStop is always included by default, callSpecializedAgent is included if the agent has child agents, and queueAgents is included if queueableAgentIds is configured. An empty array will still have these automatically included tools."),
|
|
13770
|
+
knowledgeBase: z19.object({
|
|
13771
|
+
namespace: z19.string().describe("Vector database namespace for knowledge retrieval."),
|
|
13772
|
+
k: z19.number().describe("Number of results to retrieve from the knowledge base per query.")
|
|
13650
13773
|
}).optional().describe("Knowledge base configuration for RAG (Retrieval-Augmented Generation). Enables the agent to query a vector database."),
|
|
13651
13774
|
plugins: agentPluginsConfigSchema,
|
|
13652
|
-
maxSessionMessages:
|
|
13775
|
+
maxSessionMessages: z19.number().optional().describe("Maximum number of messages to keep in the agent session memory. Older messages are pruned to stay within this limit."),
|
|
13653
13776
|
environmentOptions: environmentOptionsSchema.optional().default(DEFAULT_ENVIRONMENT_OPTION).describe("Environment configuration for the agent. Default is browser with SOM."),
|
|
13654
13777
|
runSettings: agentRunSettingsSchema.optional().describe("Run settings persisted on the agent and used when this agent is selected as the settings source for a run while the run-settings rollout is enabled. This is the canonical runtime source for resource pools during the migration. It intentionally mirrors a subset of agent config so settings survive topology changes and can be stored on any agent regardless of that agent's own execution environment. Writers may populate this before the rollout flag is enabled, but runtime snapshotting must keep using legacy fields while the flag is disabled."),
|
|
13655
|
-
skipBrowserDebuggerPauses:
|
|
13778
|
+
skipBrowserDebuggerPauses: z19.boolean().optional().describe("Legacy agent-local browser session startup setting. Used only when a run is in legacy config mode; canonical run settings mode reads runSettings.skipBrowserDebuggerPauses instead."),
|
|
13656
13779
|
limitations: agentRunLimitationSchema.describe("Resource limits for this agent, including maximum duration and tool call limits."),
|
|
13657
|
-
commonParametersSchema:
|
|
13658
|
-
idempotencySettings:
|
|
13659
|
-
include:
|
|
13660
|
-
exclude:
|
|
13780
|
+
commonParametersSchema: z19.custom().optional().describe("Custom schema defining metadata the agent must provide with every tool call. By default, agents provide reasoning and step information. If specified, this schema replaces the default metadata schema entirely."),
|
|
13781
|
+
idempotencySettings: z19.object({
|
|
13782
|
+
include: z19.array(z19.string()).optional().describe("Input field names to include in the idempotency key. If specified, only these fields are used."),
|
|
13783
|
+
exclude: z19.array(z19.string()).optional().describe("Input field names to exclude from the idempotency key. Ignored if include is specified."),
|
|
13661
13784
|
workflowIdReusePolicy: workflowIdReusePolicySchema.optional().default("ALLOW_DUPLICATE").describe("Policy for reusing Temporal workflow IDs.")
|
|
13662
13785
|
}).optional().describe("Idempotency settings for preventing duplicate runs. Controls which input fields contribute to the unique run identifier."),
|
|
13663
|
-
taskQueue:
|
|
13664
|
-
waitUponQueueing:
|
|
13665
|
-
queueableAgentIds:
|
|
13666
|
-
callableAgentIds:
|
|
13667
|
-
queuedAgentVariables:
|
|
13668
|
-
checkpoint:
|
|
13669
|
-
name:
|
|
13670
|
-
screenshot:
|
|
13786
|
+
taskQueue: z19.string().optional().describe("Temporal task queue name for this agent. If specified, queued child agents run on this queue instead of the parent queue."),
|
|
13787
|
+
waitUponQueueing: z19.boolean().optional().default(false).describe("If true, wait for queued child agents to complete before proceeding."),
|
|
13788
|
+
queueableAgentIds: z19.array(brandedStringValidator("agentId")).optional().default(() => []).describe("List of agent IDs that this agent can queue using the queueAgents tool. Enables the agent to run a new automation with a different agent as the starting point."),
|
|
13789
|
+
callableAgentIds: z19.array(brandedStringValidator("agentId")).optional().describe("List of external root agent IDs that this agent can call using the callSpecializedAgent tool. Same-automation callable agents continue to be configured by graph connections."),
|
|
13790
|
+
queuedAgentVariables: z19.record(brandedStringValidator("agentId"), z19.record(z19.string(), z19.unknown())).optional().describe("Static automation variable values to pass when this agent queues another automation by target agent ID."),
|
|
13791
|
+
checkpoint: z19.object({
|
|
13792
|
+
name: z19.string().describe("Name for the checkpoint, used for filtering and identification."),
|
|
13793
|
+
screenshot: z19.boolean().optional().default(false).describe("Whether to capture a screenshot when creating the checkpoint.")
|
|
13671
13794
|
}).optional().describe("Checkpoint configuration. When set, agent iterations are recorded as checkpoints for auditing and debugging."),
|
|
13672
|
-
systemPrompt:
|
|
13673
|
-
additionalSystemPrompt:
|
|
13795
|
+
systemPrompt: z19.string().optional().describe("Custom system prompt that replaces the default system prompt for this agent. Combined with automation-level and agent-level additionalSystemPrompt values."),
|
|
13796
|
+
additionalSystemPrompt: z19.string().optional().describe("Additional instructions appended to the system prompt for this agent. Combined with automation-level additionalSystemPrompt."),
|
|
13674
13797
|
// Backlinking metadata for imported agents
|
|
13675
|
-
importedFrom:
|
|
13798
|
+
importedFrom: z19.object({
|
|
13676
13799
|
automationId: brandedStringValidator("draftAutomationId").describe("ID of the source automation from which this agent was imported."),
|
|
13677
13800
|
originalAgentId: brandedStringValidator("agentId").describe("Original agent ID in the source automation.")
|
|
13678
13801
|
}).optional().describe("Metadata for agents imported from another automation. Used for traceability and updates."),
|
|
13679
|
-
ignoreUnstableSessionState:
|
|
13680
|
-
pointOfNoReturn:
|
|
13681
|
-
keyFields:
|
|
13802
|
+
ignoreUnstableSessionState: z19.boolean().optional().describe("When true, skips screenshot consistency checks before tool execution. Overrides the automation-level ignoreUnstableSessionState setting."),
|
|
13803
|
+
pointOfNoReturn: z19.object({
|
|
13804
|
+
keyFields: z19.array(z19.string().trim().min(1).refine((keyField) => parsePointOfNoReturnKeyFieldPath(keyField) !== void 0, "PONR key fields must start with input. or store. and use safe path segments")).min(1).describe("Paths resolved against the current node input or automation store into the work-item business key. A path that cannot be resolved fails closed.")
|
|
13682
13805
|
}).optional().describe("Marks this node as a point of no return. Once the work item identified by keyFields crosses this node, the node and everything downstream never auto-run again; recovery is override-only.")
|
|
13683
13806
|
}).superRefine((config, ctx) => {
|
|
13684
13807
|
if (config.resourcePools !== void 0 && config.runSettings?.resourcePools !== void 0 && !isDeepEqualAndSameType(config.resourcePools, config.runSettings.resourcePools)) {
|
|
13685
13808
|
ctx.addIssue({
|
|
13686
|
-
code:
|
|
13809
|
+
code: z19.ZodIssueCode.custom,
|
|
13687
13810
|
path: ["runSettings", "resourcePools"],
|
|
13688
13811
|
message: "runSettings.resourcePools must match resourcePools when both are provided"
|
|
13689
13812
|
});
|
|
13690
13813
|
}
|
|
13691
13814
|
});
|
|
13692
13815
|
var agenticAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
13693
|
-
type:
|
|
13816
|
+
type: z19.literal("agentic").describe("Agentic agent type - autonomous AI agent with tool calling capabilities."),
|
|
13694
13817
|
model: agentModelConfigSchema.describe("LLM model configuration for this agentic agent.")
|
|
13695
13818
|
}).describe("Agentic agent configuration. Uses an LLM to autonomously decide which tools to call to accomplish tasks.");
|
|
13696
13819
|
var codeAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
13697
|
-
type:
|
|
13698
|
-
language:
|
|
13820
|
+
type: z19.literal("code").describe("Code agent type - executes predefined code instead of LLM-driven decisions."),
|
|
13821
|
+
language: z19.enum(codeLanguages).default("typescript").describe("Programming language for the agent code. Currently only TypeScript is supported.")
|
|
13699
13822
|
}).describe("Code agent configuration. Executes predefined TypeScript code instead of using LLM-driven decision making.");
|
|
13823
|
+
var outputStoreSourcePathRegex = /^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*)*$/u;
|
|
13824
|
+
var outputStoreBindingSchema = z19.object({
|
|
13825
|
+
sourcePath: z19.string().refine((sourcePath) => sourcePath === "$" || outputStoreSourcePathRegex.test(sourcePath), 'Output source path must be "$" or a dot path such as patient.name.').describe("Dot path of the node output value to write."),
|
|
13826
|
+
storePath: outputStorePathSchema.describe("Fully qualified Data Store path that receives the output."),
|
|
13827
|
+
arrayMode: z19.enum(["append", "appendList", "replace"]).optional().describe("Required for newly authored array destinations: append adds exactly one item, appendList adds multiple items, and replace sets the complete list. Omit for scalar destinations. Legacy omitted array modes still append at runtime.")
|
|
13828
|
+
}).describe("Maps one node output value to one Data Store destination.");
|
|
13829
|
+
function validateUniqueOutputStoreBindings(bindings, ctx) {
|
|
13830
|
+
const sourcePaths = /* @__PURE__ */ new Set();
|
|
13831
|
+
const storePaths = /* @__PURE__ */ new Set();
|
|
13832
|
+
for (const [index, { sourcePath, storePath }] of bindings.entries()) {
|
|
13833
|
+
if (sourcePaths.has(sourcePath)) {
|
|
13834
|
+
ctx.addIssue({
|
|
13835
|
+
code: z19.ZodIssueCode.custom,
|
|
13836
|
+
path: [index, "sourcePath"],
|
|
13837
|
+
message: `Output source path "${sourcePath}" can only have one Data Store destination.`
|
|
13838
|
+
});
|
|
13839
|
+
}
|
|
13840
|
+
sourcePaths.add(sourcePath);
|
|
13841
|
+
if (storePaths.has(storePath)) {
|
|
13842
|
+
ctx.addIssue({
|
|
13843
|
+
code: z19.ZodIssueCode.custom,
|
|
13844
|
+
path: [index, "storePath"],
|
|
13845
|
+
message: `Data Store destination "${storePath}" can only be written once by this node.`
|
|
13846
|
+
});
|
|
13847
|
+
}
|
|
13848
|
+
storePaths.add(storePath);
|
|
13849
|
+
}
|
|
13850
|
+
}
|
|
13851
|
+
var extractOutputStoreBindingsSchema = z19.array(outputStoreBindingSchema).superRefine((bindings, ctx) => {
|
|
13852
|
+
validateUniqueOutputStoreBindings(bindings, ctx);
|
|
13853
|
+
for (const [index, { sourcePath }] of bindings.entries()) {
|
|
13854
|
+
if (sourcePath === "$") {
|
|
13855
|
+
ctx.addIssue({
|
|
13856
|
+
code: z19.ZodIssueCode.custom,
|
|
13857
|
+
path: [index, "sourcePath"],
|
|
13858
|
+
message: "Extract output bindings must use a declared output path."
|
|
13859
|
+
});
|
|
13860
|
+
}
|
|
13861
|
+
}
|
|
13862
|
+
}).describe("Optional mappings from declared Extract output fields to Data Store destinations.");
|
|
13700
13863
|
var extractAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
13701
|
-
type:
|
|
13702
|
-
model: agentModelConfigSchema.describe("LLM model configuration for this extract agent.")
|
|
13864
|
+
type: z19.literal("extract").describe("Extract agent type - specialized for structured data extraction."),
|
|
13865
|
+
model: agentModelConfigSchema.describe("LLM model configuration for this extract agent."),
|
|
13866
|
+
outputStoreBindings: extractOutputStoreBindingsSchema.optional()
|
|
13703
13867
|
}).describe("Extract agent configuration. Specialized for extracting structured data from files according to a defined output schema.");
|
|
13704
|
-
var OutcomePayloadSchema =
|
|
13705
|
-
id:
|
|
13706
|
-
input:
|
|
13707
|
-
preview:
|
|
13868
|
+
var OutcomePayloadSchema = z19.object({
|
|
13869
|
+
id: z19.string().min(1).describe("Unique identifier for the outcome."),
|
|
13870
|
+
input: z19.record(z19.string(), z19.unknown()).describe("Input data for the outcome. Maps parameter keys to values."),
|
|
13871
|
+
preview: z19.string().describe("Rendered text representation of the outcome.")
|
|
13708
13872
|
});
|
|
13709
13873
|
var branchAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
13710
|
-
type:
|
|
13711
|
-
model: agentModelConfigSchema.describe("LLM model configuration for this
|
|
13712
|
-
includeScreenshot:
|
|
13713
|
-
conditionsAndOutcomes:
|
|
13714
|
-
if:
|
|
13715
|
-
caseName:
|
|
13716
|
-
condition:
|
|
13717
|
-
outcome:
|
|
13718
|
-
})).min(1).describe("Conditions and outcomes for the
|
|
13719
|
-
else:
|
|
13720
|
-
}).describe("Conditions and outcomes for the
|
|
13721
|
-
}).describe("
|
|
13874
|
+
type: z19.literal("branch").describe("Decision agent type - makes decisions to route to different agents."),
|
|
13875
|
+
model: agentModelConfigSchema.describe("LLM model configuration for this decision agent."),
|
|
13876
|
+
includeScreenshot: z19.boolean().optional().describe("Whether to include the previous agent's screen state in this decision agent's decision context."),
|
|
13877
|
+
conditionsAndOutcomes: z19.object({
|
|
13878
|
+
if: z19.array(z19.object({
|
|
13879
|
+
caseName: z19.string().describe("Name of the condition case."),
|
|
13880
|
+
condition: z19.string().min(1).describe("Condition to evaluate."),
|
|
13881
|
+
outcome: z19.array(OutcomePayloadSchema).describe("Outcomes to return if the condition is met.")
|
|
13882
|
+
})).min(1).describe("Conditions and outcomes for the decision agent."),
|
|
13883
|
+
else: z19.array(OutcomePayloadSchema).min(1).describe("Outcomes to return if the condition is not met.")
|
|
13884
|
+
}).describe("Conditions and outcomes for the decision agent, including a fallback outcome.")
|
|
13885
|
+
}).describe("Decision agent configuration. Makes decisions about which agent to call next based on the current context.");
|
|
13722
13886
|
var draftBranchAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
13723
|
-
type:
|
|
13724
|
-
model: agentModelConfigSchema.describe("LLM model configuration for this
|
|
13725
|
-
includeScreenshot:
|
|
13726
|
-
conditionsAndOutcomes:
|
|
13727
|
-
if:
|
|
13728
|
-
caseName:
|
|
13729
|
-
condition:
|
|
13730
|
-
outcome:
|
|
13731
|
-
})).describe("Draft
|
|
13732
|
-
else:
|
|
13733
|
-
}).describe("Draft conditions and outcomes for the
|
|
13734
|
-
}).describe("
|
|
13887
|
+
type: z19.literal("branch").describe("Decision agent draft configuration. Allows incomplete conditions and outcomes while the agent is still being authored."),
|
|
13888
|
+
model: agentModelConfigSchema.describe("LLM model configuration for this decision agent."),
|
|
13889
|
+
includeScreenshot: z19.boolean().optional().describe("Whether to include the previous agent's screen state in this decision agent's decision context."),
|
|
13890
|
+
conditionsAndOutcomes: z19.object({
|
|
13891
|
+
if: z19.array(z19.object({
|
|
13892
|
+
caseName: z19.string().describe("Name of the condition case."),
|
|
13893
|
+
condition: z19.string().describe("Condition to evaluate. Draft saves may include an empty placeholder while the user is still editing."),
|
|
13894
|
+
outcome: z19.array(OutcomePayloadSchema).describe("Outcomes to return if the condition is met.")
|
|
13895
|
+
})).describe("Draft decision conditions and outcomes."),
|
|
13896
|
+
else: z19.array(OutcomePayloadSchema).describe("Draft fallback outcomes for the decision agent. May be empty while the decision agent is still being configured.")
|
|
13897
|
+
}).describe("Draft conditions and outcomes for the decision agent, including an optional fallback outcome while editing.")
|
|
13898
|
+
}).describe("Decision agent draft configuration. More permissive than the authored decision schema so incomplete decision agents can be saved.");
|
|
13735
13899
|
var METHODS_WITH_BODY = new Set(ApiMethodsWithBody);
|
|
13736
13900
|
var apiAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
13737
|
-
type:
|
|
13738
|
-
method:
|
|
13739
|
-
url:
|
|
13901
|
+
type: z19.literal("api").describe("API agent type - makes HTTP requests to external APIs."),
|
|
13902
|
+
method: z19.enum(NangoSupportedMethods).describe("HTTP method for the API request (GET, POST, PUT, PATCH, DELETE)."),
|
|
13903
|
+
url: z19.string().describe("URL for the API endpoint. Can include placeholders like {paramName} for dynamic values from inputs."),
|
|
13740
13904
|
baseUrlOverride: nangoBaseUrlOverrideSchema.optional().describe("Optional static base URL override for Nango-backed requests. Use when the request endpoint is hosted on a base URL different from the Nango provider default."),
|
|
13741
|
-
headers:
|
|
13742
|
-
queryParams:
|
|
13743
|
-
body:
|
|
13744
|
-
bodyType:
|
|
13745
|
-
outputJmesPath:
|
|
13905
|
+
headers: z19.array(z19.object({ key: z19.string(), value: z19.string() })).optional().describe("HTTP headers to include in the request. Values can include placeholders."),
|
|
13906
|
+
queryParams: z19.array(z19.object({ key: z19.string(), value: z19.string() })).optional().describe("Query parameters to append to the URL. Values can include placeholders."),
|
|
13907
|
+
body: z19.unknown().optional().describe("Request body for POST/PUT/PATCH requests. Can include placeholders for dynamic values."),
|
|
13908
|
+
bodyType: z19.enum(ApiRequestBodyTypes).optional().describe("Request body encoding mode. Defaults to JSON when omitted. Use multipartFormData for typed form-data fields and formUrlEncoded for application/x-www-form-urlencoded payloads."),
|
|
13909
|
+
outputJmesPath: z19.string().optional().describe("JMESPath expression to extract specific data from the API response before returning it."),
|
|
13910
|
+
outputStoreBindings: apiOutputStoreBindingsSchema.optional(),
|
|
13746
13911
|
cacheResponse: apiResponseCacheConfigSchema.describe("Response cache configuration for this API agent. TTL is measured in seconds."),
|
|
13747
|
-
authentication:
|
|
13748
|
-
|
|
13749
|
-
type:
|
|
13750
|
-
providerConfigKey:
|
|
13912
|
+
authentication: z19.discriminatedUnion("type", [
|
|
13913
|
+
z19.object({
|
|
13914
|
+
type: z19.literal("nangoConnection").describe("Authentication via Nango integration."),
|
|
13915
|
+
providerConfigKey: z19.string().describe('The provider config key for the integration (e.g., "github", "slack").'),
|
|
13751
13916
|
poolId: brandedStringValidator("resourcePoolId").optional().describe("ID of the resource pool containing authentication credentials.")
|
|
13752
13917
|
}),
|
|
13753
|
-
|
|
13754
|
-
type:
|
|
13918
|
+
z19.object({
|
|
13919
|
+
type: z19.literal("customHost").describe("Authentication via 1Password credentials for custom host."),
|
|
13755
13920
|
poolId: brandedStringValidator("resourcePoolId").optional().describe("ID of the resource pool containing 1Password authentication.")
|
|
13756
13921
|
})
|
|
13757
13922
|
]).optional().describe("Authentication configuration for the API request. Uses credentials from a resource pool.")
|
|
@@ -13778,10 +13943,10 @@ var apiAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
|
13778
13943
|
path: ["baseUrlOverride"]
|
|
13779
13944
|
}).describe("API agent configuration. Makes HTTP requests to external APIs without LLM decision making. Supports authentication via Nango connections.");
|
|
13780
13945
|
var specializedAgentConfigSchema = baseAgentConfigFieldsSchema.safeExtend({
|
|
13781
|
-
type:
|
|
13782
|
-
specializedAutomationId:
|
|
13946
|
+
type: z19.literal("specialized").describe("Specialized agent type - runs a published specialized automation."),
|
|
13947
|
+
specializedAutomationId: z19.string().min(1).describe("ID of the specialized automation to run.")
|
|
13783
13948
|
}).describe("Specialized agent configuration. Runs a specialized automation shared by another organization and returns its output.");
|
|
13784
|
-
var agentConfigSchemaUnion =
|
|
13949
|
+
var agentConfigSchemaUnion = z19.discriminatedUnion("type", [
|
|
13785
13950
|
agenticAgentConfigSchema,
|
|
13786
13951
|
codeAgentConfigSchema,
|
|
13787
13952
|
extractAgentConfigSchema,
|
|
@@ -13789,34 +13954,34 @@ var agentConfigSchemaUnion = z18.discriminatedUnion("type", [
|
|
|
13789
13954
|
apiAgentConfigSchema,
|
|
13790
13955
|
specializedAgentConfigSchema
|
|
13791
13956
|
]).describe("Agent configuration discriminated by type. Types: agentic (LLM-driven), code (predefined code), extract (data extraction), branch (routing decisions), api (HTTP requests), specialized (shared specialized automation).");
|
|
13792
|
-
var agentConfigSchema =
|
|
13957
|
+
var agentConfigSchema = z19.preprocess((data) => {
|
|
13793
13958
|
if (typeof data === "object" && data !== null && !("type" in data)) {
|
|
13794
13959
|
return { ...data, type: "agentic" };
|
|
13795
13960
|
}
|
|
13796
13961
|
return data;
|
|
13797
13962
|
}, agentConfigSchemaUnion).describe("Agent configuration. Defines the agent type, environment, available tools, model settings, and behavior options. If type is omitted, defaults to agentic.");
|
|
13798
|
-
var draftAgentConfigSchemaUnion =
|
|
13963
|
+
var draftAgentConfigSchemaUnion = z19.discriminatedUnion("type", [
|
|
13799
13964
|
agenticAgentConfigSchema,
|
|
13800
13965
|
codeAgentConfigSchema,
|
|
13801
13966
|
extractAgentConfigSchema,
|
|
13802
13967
|
draftBranchAgentConfigSchema,
|
|
13803
13968
|
apiAgentConfigSchema,
|
|
13804
13969
|
specializedAgentConfigSchema
|
|
13805
|
-
]).describe("Draft agent configuration discriminated by type. Uses a more permissive
|
|
13806
|
-
var draftAgentConfigSchema =
|
|
13970
|
+
]).describe("Draft agent configuration discriminated by type. Uses a more permissive decision schema so incomplete decision agents can be saved before publish-time validation.");
|
|
13971
|
+
var draftAgentConfigSchema = z19.preprocess((data) => {
|
|
13807
13972
|
if (typeof data === "object" && data !== null && !("type" in data)) {
|
|
13808
13973
|
return { ...data, type: "agentic" };
|
|
13809
13974
|
}
|
|
13810
13975
|
return data;
|
|
13811
|
-
}, draftAgentConfigSchemaUnion).describe("Draft agent configuration. Matches authored validation for most agent types, but allows incomplete
|
|
13976
|
+
}, draftAgentConfigSchemaUnion).describe("Draft agent configuration. Matches authored validation for most agent types, but allows incomplete decision agents during draft saves.");
|
|
13812
13977
|
var DEFAULT_AGENT_CONFIG = agentConfigSchema.parse({});
|
|
13813
13978
|
|
|
13814
13979
|
// ../common/dist/src/zod-schemas/automation-run-config.schema.js
|
|
13815
|
-
import { z as
|
|
13816
|
-
var automationRunResolvedRunSettingsSchema =
|
|
13980
|
+
import { z as z20 } from "zod";
|
|
13981
|
+
var automationRunResolvedRunSettingsSchema = z20.object({
|
|
13817
13982
|
environmentOptions: runSettingsEnvironmentOptionsSchema.describe("Canonical run-settings-owned environment settings snapshotted onto the automation run when it starts in runSettings mode. Agent-owned fields such as startingUrl and maxMediaToIncludeInMemory are intentionally ignored at runtime."),
|
|
13818
13983
|
resourcePools: resourcePoolsSchema.describe("Canonical run-settings-owned resource pools snapshotted onto the automation run when it starts in runSettings mode. Slot assignment and queue status use this only when resolvedRunSettingsSource is runSettings."),
|
|
13819
|
-
skipBrowserDebuggerPauses:
|
|
13984
|
+
skipBrowserDebuggerPauses: z20.boolean().optional().describe("Canonical run-settings-owned browser session startup setting snapshotted onto the automation run when it starts in runSettings mode.")
|
|
13820
13985
|
});
|
|
13821
13986
|
var CONSISTENCY_CHECK_COUNT_MAX = 50;
|
|
13822
13987
|
var NETWORK_TRAFFIC_CAPTURE_RECORD_MODES = [
|
|
@@ -13824,18 +13989,18 @@ var NETWORK_TRAFFIC_CAPTURE_RECORD_MODES = [
|
|
|
13824
13989
|
"explicit"
|
|
13825
13990
|
];
|
|
13826
13991
|
var DEFAULT_NETWORK_TRAFFIC_CAPTURE_RECORD_MODE = "implicit";
|
|
13827
|
-
var networkTrafficCaptureSchema =
|
|
13828
|
-
|
|
13829
|
-
mode:
|
|
13830
|
-
recordMode:
|
|
13992
|
+
var networkTrafficCaptureSchema = z20.discriminatedUnion("mode", [
|
|
13993
|
+
z20.object({
|
|
13994
|
+
mode: z20.literal("record"),
|
|
13995
|
+
recordMode: z20.enum(NETWORK_TRAFFIC_CAPTURE_RECORD_MODES).optional().default(DEFAULT_NETWORK_TRAFFIC_CAPTURE_RECORD_MODE).describe("Whether this recording was created implicitly by automation infrastructure or explicitly requested by the user. Explicit recordings are retained longer.")
|
|
13831
13996
|
}).describe("Record network traffic for this run. The recording ID is generated from the automation run ID."),
|
|
13832
|
-
|
|
13833
|
-
mode:
|
|
13834
|
-
recordingId:
|
|
13997
|
+
z20.object({
|
|
13998
|
+
mode: z20.literal("replay"),
|
|
13999
|
+
recordingId: z20.uuid().describe("Recording ID from a previous record run in the same organization.")
|
|
13835
14000
|
}).describe("Replay network traffic from a previous recording.")
|
|
13836
14001
|
]).describe("Optional network traffic capture mode for this run. Applies to browser provider traffic and supported agent tool HTTP traffic, including API tool calls and provider-authenticated helper requests.");
|
|
13837
|
-
var automationRunSlaTypeSchema =
|
|
13838
|
-
var automationRunSlaTimestampSchema =
|
|
14002
|
+
var automationRunSlaTypeSchema = z20.enum(["all"]);
|
|
14003
|
+
var automationRunSlaTimestampSchema = z20.iso.datetime();
|
|
13839
14004
|
function refineAutomationRunSlaTimestampOrder(sla, ctx) {
|
|
13840
14005
|
const startedAtMs = Date.parse(sla.startedAt);
|
|
13841
14006
|
const breachesAtMs = Date.parse(sla.breachesAt);
|
|
@@ -13865,43 +14030,57 @@ function refineAutomationRunSlaTimestampOrder(sla, ctx) {
|
|
|
13865
14030
|
});
|
|
13866
14031
|
}
|
|
13867
14032
|
}
|
|
13868
|
-
var automationRunSlaSchema =
|
|
14033
|
+
var automationRunSlaSchema = z20.object({
|
|
13869
14034
|
startedAt: automationRunSlaTimestampSchema.describe("ISO timestamp when SLA tracking started for this run."),
|
|
13870
14035
|
highRiskAt: automationRunSlaTimestampSchema.optional().describe("Optional ISO timestamp when this run should be considered at high risk of breaching its SLA."),
|
|
13871
14036
|
breachesAt: automationRunSlaTimestampSchema.describe("ISO timestamp when this run breaches its SLA."),
|
|
13872
14037
|
type: automationRunSlaTypeSchema.optional().default("all").describe("SLA policy type that applies to this automation run.")
|
|
13873
14038
|
}).superRefine(refineAutomationRunSlaTimestampOrder).describe("Optional service-level timing metadata for queueing and runtime consumers of this automation run.");
|
|
13874
|
-
var
|
|
13875
|
-
approvalMode:
|
|
13876
|
-
consistencyCheckCount:
|
|
13877
|
-
settingsSourceAgentId:
|
|
13878
|
-
startInTakeOverMode:
|
|
13879
|
-
captureActions:
|
|
13880
|
-
runDraftQueuedAgents:
|
|
13881
|
-
allowPointOfNoReturnOverride:
|
|
13882
|
-
pointOfNoReturnGateEnabled:
|
|
14039
|
+
var automationRunConfigBaseSchema = z20.object({
|
|
14040
|
+
approvalMode: z20.enum(["HUMAN_APPROVAL", "OFF"]).default("OFF"),
|
|
14041
|
+
consistencyCheckCount: z20.number().int().nonnegative().max(CONSISTENCY_CHECK_COUNT_MAX).nullable().default(null),
|
|
14042
|
+
settingsSourceAgentId: z20.uuid().nullable().optional().describe("Optional provenance/debug field recording which top-level agent supplied canonical run settings when the run started. Runtime consumers must not use this as a live pointer once resolvedRunSettingsSource has been decided."),
|
|
14043
|
+
startInTakeOverMode: z20.boolean().default(false).describe("When true, create and prepare the remote session, then pause until a human manually starts the agent."),
|
|
14044
|
+
captureActions: z20.boolean().default(false).describe("When true, attach an action recording while a draft run is paused in takeover mode."),
|
|
14045
|
+
runDraftQueuedAgents: z20.boolean().optional().describe("Draft-run-only option. When false, queue-agent actions in the draft run report success without starting downstream queued draft child runs. Omit or true preserves queueing."),
|
|
14046
|
+
allowPointOfNoReturnOverride: z20.boolean().optional().describe("Internal rerun authorization. When true, the rerun and its queued descendants may proceed past a point-of-no-return crossing owned by an earlier run."),
|
|
14047
|
+
pointOfNoReturnGateEnabled: z20.literal(true).optional().describe("Infrastructure-owned rollout marker. PONR is enforced only for run trees created after the gate rollout."),
|
|
13883
14048
|
sla: automationRunSlaSchema.optional(),
|
|
13884
14049
|
networkTrafficCapture: networkTrafficCaptureSchema.optional(),
|
|
13885
|
-
|
|
13886
|
-
|
|
14050
|
+
networkTrafficCaptureExplicitlyDisabled: z20.literal(true).optional().describe("Infrastructure-owned marker indicating that network traffic capture was explicitly disabled for this run. When present, runtime policy resolution must not enable capture."),
|
|
14051
|
+
implicitNetworkTrafficRecordingDecision: z20.object({
|
|
14052
|
+
enabled: z20.boolean()
|
|
13887
14053
|
}).optional().describe("Infrastructure-owned snapshot of the implicit network traffic recording flag decision. Runtime retries use this to avoid re-evaluating LaunchDarkly for the same run."),
|
|
13888
14054
|
resolvedRunSettings: automationRunResolvedRunSettingsSchema.optional().describe("Canonical run settings snapshotted onto the automation run at creation time. Present only for runSettings mode; legacyConfig mode intentionally resolves runtime settings from each current agent config instead of storing a misleading snapshot."),
|
|
13889
14055
|
queueResourcePools: resourcePoolsSchema.optional().describe("Canonical deduped resource-pool requirements snapshotted for queue and slot assignment. Present on new runs so assignment does not recompute requirements from mutable agent config."),
|
|
13890
14056
|
credentialVariableResourcePools: resourcePoolsSchema.optional().describe("Additional resource pools selected through credential-valued automation variables. These are additive queue requirements and do not change whether the run uses runSettings or legacyConfig as its runtime settings source."),
|
|
13891
|
-
resolvedRunSettingsSource:
|
|
14057
|
+
resolvedRunSettingsSource: z20.enum(["runSettings", "legacyConfig"]).optional().describe("Runtime mode decided at run creation. runSettings means resolvedRunSettings is canonical for browser/session/resource-pool behaviour; legacyConfig means runtime consumers must use current agent legacy config fields.")
|
|
13892
14058
|
});
|
|
13893
|
-
var
|
|
14059
|
+
var automationRunConfigSchema = automationRunConfigBaseSchema.superRefine((config, ctx) => {
|
|
14060
|
+
if (config.networkTrafficCaptureExplicitlyDisabled === true && config.networkTrafficCapture !== void 0) {
|
|
14061
|
+
ctx.addIssue({
|
|
14062
|
+
code: "custom",
|
|
14063
|
+
path: ["networkTrafficCapture"],
|
|
14064
|
+
message: "networkTrafficCapture cannot be configured when networkTrafficCaptureExplicitlyDisabled is true."
|
|
14065
|
+
});
|
|
14066
|
+
}
|
|
14067
|
+
});
|
|
14068
|
+
var automationRunStartConfigSchema = automationRunConfigBaseSchema.omit({
|
|
13894
14069
|
allowPointOfNoReturnOverride: true,
|
|
13895
14070
|
credentialVariableResourcePools: true,
|
|
13896
14071
|
implicitNetworkTrafficRecordingDecision: true,
|
|
14072
|
+
networkTrafficCapture: true,
|
|
14073
|
+
networkTrafficCaptureExplicitlyDisabled: true,
|
|
13897
14074
|
queueResourcePools: true,
|
|
13898
14075
|
resolvedRunSettings: true,
|
|
13899
14076
|
resolvedRunSettingsSource: true,
|
|
13900
14077
|
pointOfNoReturnGateEnabled: true
|
|
14078
|
+
}).extend({
|
|
14079
|
+
networkTrafficCapture: networkTrafficCaptureSchema.nullable().optional().describe("Network traffic capture preference for this run. Omit to apply the implicit recording policy, pass null to explicitly disable capture, or pass a record/replay config to explicitly enable capture.")
|
|
13901
14080
|
});
|
|
13902
14081
|
|
|
13903
14082
|
// ../mcp-registry/src/operation-specs.ts
|
|
13904
|
-
import { z as
|
|
14083
|
+
import { z as z21 } from "zod";
|
|
13905
14084
|
|
|
13906
14085
|
// ../mcp-registry/src/operation-spec.ts
|
|
13907
14086
|
function stripLeadingGraphqlComments(document) {
|
|
@@ -14005,7 +14184,7 @@ function jsonOption({
|
|
|
14005
14184
|
valueType: "json"
|
|
14006
14185
|
};
|
|
14007
14186
|
}
|
|
14008
|
-
var jsonObjectSchema =
|
|
14187
|
+
var jsonObjectSchema = z21.record(z21.string(), z21.unknown());
|
|
14009
14188
|
var agentBrowserProviderOptionsSelection = ` browserbase {
|
|
14010
14189
|
advancedStealth
|
|
14011
14190
|
contextId
|
|
@@ -14101,8 +14280,8 @@ var operationSpecs = [
|
|
|
14101
14280
|
createOperationSpec({
|
|
14102
14281
|
operationName: "GetAgents",
|
|
14103
14282
|
kind: "query",
|
|
14104
|
-
inputSchema:
|
|
14105
|
-
ids:
|
|
14283
|
+
inputSchema: z21.object({
|
|
14284
|
+
ids: z21.array(z21.string().min(1)).min(1)
|
|
14106
14285
|
}),
|
|
14107
14286
|
cli: {
|
|
14108
14287
|
name: "get-agents",
|
|
@@ -14141,6 +14320,7 @@ query GetAgents($ids: [ID!]!) {
|
|
|
14141
14320
|
model
|
|
14142
14321
|
tools
|
|
14143
14322
|
maxSessionMessages
|
|
14323
|
+
outputStoreBindings
|
|
14144
14324
|
${agentEnvironmentOptionsSelection}
|
|
14145
14325
|
${agentLimitationsSelection}
|
|
14146
14326
|
commonParametersSchema
|
|
@@ -14162,9 +14342,9 @@ ${agentLimitationsSelection}
|
|
|
14162
14342
|
createOperationSpec({
|
|
14163
14343
|
operationName: "GetAgentVersion",
|
|
14164
14344
|
kind: "query",
|
|
14165
|
-
inputSchema:
|
|
14166
|
-
agentId:
|
|
14167
|
-
versionId:
|
|
14345
|
+
inputSchema: z21.object({
|
|
14346
|
+
agentId: z21.string().min(1),
|
|
14347
|
+
versionId: z21.string().min(1)
|
|
14168
14348
|
}),
|
|
14169
14349
|
cli: {
|
|
14170
14350
|
name: "get-agent-version",
|
|
@@ -14209,6 +14389,7 @@ query GetAgentVersion($agentId: ID!, $versionId: ID!) {
|
|
|
14209
14389
|
model
|
|
14210
14390
|
tools
|
|
14211
14391
|
maxSessionMessages
|
|
14392
|
+
outputStoreBindings
|
|
14212
14393
|
${agentEnvironmentOptionsSelection}
|
|
14213
14394
|
${agentLimitationsSelection}
|
|
14214
14395
|
commonParametersSchema
|
|
@@ -14226,8 +14407,8 @@ ${agentLimitationsSelection}
|
|
|
14226
14407
|
createOperationSpec({
|
|
14227
14408
|
operationName: "GetAgentVersions",
|
|
14228
14409
|
kind: "query",
|
|
14229
|
-
inputSchema:
|
|
14230
|
-
agentId:
|
|
14410
|
+
inputSchema: z21.object({
|
|
14411
|
+
agentId: z21.string().min(1)
|
|
14231
14412
|
}),
|
|
14232
14413
|
cli: {
|
|
14233
14414
|
name: "get-agent-versions",
|
|
@@ -14261,10 +14442,10 @@ query GetAgentVersions($agentId: ID!) {
|
|
|
14261
14442
|
createOperationSpec({
|
|
14262
14443
|
operationName: "DiffAgentVersion",
|
|
14263
14444
|
kind: "query",
|
|
14264
|
-
inputSchema:
|
|
14265
|
-
agentId:
|
|
14266
|
-
versionId:
|
|
14267
|
-
compareVersionId:
|
|
14445
|
+
inputSchema: z21.object({
|
|
14446
|
+
agentId: z21.string().min(1),
|
|
14447
|
+
versionId: z21.string().min(1),
|
|
14448
|
+
compareVersionId: z21.string().min(1).optional()
|
|
14268
14449
|
}),
|
|
14269
14450
|
cli: {
|
|
14270
14451
|
name: "diff-agent-version",
|
|
@@ -14318,8 +14499,8 @@ query DiffAgentVersion(
|
|
|
14318
14499
|
createOperationSpec({
|
|
14319
14500
|
operationName: "GetAgentRun",
|
|
14320
14501
|
kind: "query",
|
|
14321
|
-
inputSchema:
|
|
14322
|
-
id:
|
|
14502
|
+
inputSchema: z21.object({
|
|
14503
|
+
id: z21.string().min(1)
|
|
14323
14504
|
}),
|
|
14324
14505
|
cli: {
|
|
14325
14506
|
name: "get-agent-run",
|
|
@@ -14355,8 +14536,8 @@ query GetAgentRun($id: ID!) {
|
|
|
14355
14536
|
createOperationSpec({
|
|
14356
14537
|
operationName: "GetAutomationAgents",
|
|
14357
14538
|
kind: "query",
|
|
14358
|
-
inputSchema:
|
|
14359
|
-
ids:
|
|
14539
|
+
inputSchema: z21.object({
|
|
14540
|
+
ids: z21.array(z21.string().min(1)).min(1)
|
|
14360
14541
|
}),
|
|
14361
14542
|
cli: {
|
|
14362
14543
|
name: "get-automation-agents",
|
|
@@ -14399,8 +14580,8 @@ query GetAutomationAgents($ids: [ID!]!) {
|
|
|
14399
14580
|
createOperationSpec({
|
|
14400
14581
|
operationName: "GetAutomationDiffFromPublished",
|
|
14401
14582
|
kind: "query",
|
|
14402
|
-
inputSchema:
|
|
14403
|
-
automationId:
|
|
14583
|
+
inputSchema: z21.object({
|
|
14584
|
+
automationId: z21.string().min(1)
|
|
14404
14585
|
}),
|
|
14405
14586
|
cli: {
|
|
14406
14587
|
name: "get-automation-diff-from-published",
|
|
@@ -14433,9 +14614,9 @@ query GetAutomationDiffFromPublished($automationId: ID!) {
|
|
|
14433
14614
|
createOperationSpec({
|
|
14434
14615
|
operationName: "GetAutomationDiffVersions",
|
|
14435
14616
|
kind: "query",
|
|
14436
|
-
inputSchema:
|
|
14437
|
-
baseVersionId:
|
|
14438
|
-
targetVersionId:
|
|
14617
|
+
inputSchema: z21.object({
|
|
14618
|
+
baseVersionId: z21.string().min(1),
|
|
14619
|
+
targetVersionId: z21.string().min(1)
|
|
14439
14620
|
}),
|
|
14440
14621
|
cli: {
|
|
14441
14622
|
name: "get-automation-diff-versions",
|
|
@@ -14476,10 +14657,10 @@ query GetAutomationDiffVersions($baseVersionId: ID!, $targetVersionId: ID!) {
|
|
|
14476
14657
|
createOperationSpec({
|
|
14477
14658
|
operationName: "GetAutomationVersionJson",
|
|
14478
14659
|
kind: "query",
|
|
14479
|
-
inputSchema:
|
|
14480
|
-
versionId:
|
|
14481
|
-
paths:
|
|
14482
|
-
format:
|
|
14660
|
+
inputSchema: z21.object({
|
|
14661
|
+
versionId: z21.string().min(1),
|
|
14662
|
+
paths: z21.array(z21.string().min(1)).optional(),
|
|
14663
|
+
format: z21.enum(["normalized", "full", "export"]).optional()
|
|
14483
14664
|
}),
|
|
14484
14665
|
cli: {
|
|
14485
14666
|
name: "get-automation-version-json",
|
|
@@ -14514,8 +14695,8 @@ query GetAutomationVersionJson($versionId: ID!, $paths: [String!], $format: Stri
|
|
|
14514
14695
|
createOperationSpec({
|
|
14515
14696
|
operationName: "GetAutomationVersionJsonSkeleton",
|
|
14516
14697
|
kind: "query",
|
|
14517
|
-
inputSchema:
|
|
14518
|
-
versionId:
|
|
14698
|
+
inputSchema: z21.object({
|
|
14699
|
+
versionId: z21.string().min(1)
|
|
14519
14700
|
}),
|
|
14520
14701
|
cli: {
|
|
14521
14702
|
name: "get-automation-version-json-skeleton",
|
|
@@ -14540,8 +14721,8 @@ query GetAutomationVersionJsonSkeleton($versionId: ID!) {
|
|
|
14540
14721
|
createOperationSpec({
|
|
14541
14722
|
operationName: "GetAutomationRun",
|
|
14542
14723
|
kind: "query",
|
|
14543
|
-
inputSchema:
|
|
14544
|
-
id:
|
|
14724
|
+
inputSchema: z21.object({
|
|
14725
|
+
id: z21.string().min(1)
|
|
14545
14726
|
}),
|
|
14546
14727
|
cli: {
|
|
14547
14728
|
name: "get-automation-run",
|
|
@@ -14581,8 +14762,8 @@ query GetAutomationRun($id: ID!) {
|
|
|
14581
14762
|
createOperationSpec({
|
|
14582
14763
|
operationName: "GetAutomationRunAgentRuns",
|
|
14583
14764
|
kind: "query",
|
|
14584
|
-
inputSchema:
|
|
14585
|
-
automationRunId:
|
|
14765
|
+
inputSchema: z21.object({
|
|
14766
|
+
automationRunId: z21.string().min(1)
|
|
14586
14767
|
}),
|
|
14587
14768
|
cli: {
|
|
14588
14769
|
name: "get-automation-run-agent-runs",
|
|
@@ -14618,11 +14799,11 @@ query GetAutomationRunAgentRuns($automationRunId: ID!) {
|
|
|
14618
14799
|
createOperationSpec({
|
|
14619
14800
|
operationName: "GetAutomationRunIterations",
|
|
14620
14801
|
kind: "query",
|
|
14621
|
-
inputSchema:
|
|
14622
|
-
automationRunId:
|
|
14623
|
-
agentRunId:
|
|
14624
|
-
limit:
|
|
14625
|
-
reverse:
|
|
14802
|
+
inputSchema: z21.object({
|
|
14803
|
+
automationRunId: z21.string().min(1),
|
|
14804
|
+
agentRunId: z21.string().min(1).optional(),
|
|
14805
|
+
limit: z21.number().int().positive().optional(),
|
|
14806
|
+
reverse: z21.boolean().optional()
|
|
14626
14807
|
}),
|
|
14627
14808
|
cli: {
|
|
14628
14809
|
name: "get-automation-run-iterations",
|
|
@@ -14691,14 +14872,14 @@ query GetAutomationRunIterations(
|
|
|
14691
14872
|
createOperationSpec({
|
|
14692
14873
|
operationName: "GetAutomationRuns",
|
|
14693
14874
|
kind: "query",
|
|
14694
|
-
inputSchema:
|
|
14695
|
-
automationId:
|
|
14696
|
-
from:
|
|
14697
|
-
status:
|
|
14698
|
-
invocationType:
|
|
14699
|
-
limit:
|
|
14700
|
-
page:
|
|
14701
|
-
to:
|
|
14875
|
+
inputSchema: z21.object({
|
|
14876
|
+
automationId: z21.string().min(1).optional(),
|
|
14877
|
+
from: z21.string().min(1).optional(),
|
|
14878
|
+
status: z21.array(z21.string().min(1)).optional(),
|
|
14879
|
+
invocationType: z21.array(z21.string().min(1)).optional(),
|
|
14880
|
+
limit: z21.number().int().positive().optional(),
|
|
14881
|
+
page: z21.number().int().nonnegative().optional(),
|
|
14882
|
+
to: z21.string().min(1).optional()
|
|
14702
14883
|
}),
|
|
14703
14884
|
cli: {
|
|
14704
14885
|
name: "get-automation-runs",
|
|
@@ -14780,8 +14961,8 @@ query GetAutomationRuns(
|
|
|
14780
14961
|
createOperationSpec({
|
|
14781
14962
|
operationName: "ListAutomations",
|
|
14782
14963
|
kind: "query",
|
|
14783
|
-
inputSchema:
|
|
14784
|
-
limit:
|
|
14964
|
+
inputSchema: z21.object({
|
|
14965
|
+
limit: z21.number().positive().optional(),
|
|
14785
14966
|
order: jsonObjectSchema.optional(),
|
|
14786
14967
|
where: jsonObjectSchema.optional()
|
|
14787
14968
|
}),
|
|
@@ -14832,8 +15013,8 @@ query ListAutomations(
|
|
|
14832
15013
|
createOperationSpec({
|
|
14833
15014
|
operationName: "GetAutomations",
|
|
14834
15015
|
kind: "query",
|
|
14835
|
-
inputSchema:
|
|
14836
|
-
ids:
|
|
15016
|
+
inputSchema: z21.object({
|
|
15017
|
+
ids: z21.array(z21.string().min(1)).min(1)
|
|
14837
15018
|
}),
|
|
14838
15019
|
cli: {
|
|
14839
15020
|
name: "get-automations",
|
|
@@ -14881,8 +15062,8 @@ query GetAutomations($ids: [ID!]!) {
|
|
|
14881
15062
|
createOperationSpec({
|
|
14882
15063
|
operationName: "GetAvailableCommands",
|
|
14883
15064
|
kind: "query",
|
|
14884
|
-
inputSchema:
|
|
14885
|
-
env:
|
|
15065
|
+
inputSchema: z21.object({
|
|
15066
|
+
env: z21.string().min(1)
|
|
14886
15067
|
}),
|
|
14887
15068
|
cli: {
|
|
14888
15069
|
name: "get-available-commands",
|
|
@@ -14912,8 +15093,8 @@ query GetAvailableCommands($env: AvailableCommandsEnv!) {
|
|
|
14912
15093
|
createOperationSpec({
|
|
14913
15094
|
operationName: "GetAvailableModels",
|
|
14914
15095
|
kind: "query",
|
|
14915
|
-
inputSchema:
|
|
14916
|
-
agentId:
|
|
15096
|
+
inputSchema: z21.object({
|
|
15097
|
+
agentId: z21.string().min(1)
|
|
14917
15098
|
}),
|
|
14918
15099
|
cli: {
|
|
14919
15100
|
name: "get-available-models",
|
|
@@ -14957,9 +15138,9 @@ query GetAvailableModels($agentId: String!) {
|
|
|
14957
15138
|
createOperationSpec({
|
|
14958
15139
|
operationName: "GetAvailableTools",
|
|
14959
15140
|
kind: "query",
|
|
14960
|
-
inputSchema:
|
|
14961
|
-
env:
|
|
14962
|
-
automationId:
|
|
15141
|
+
inputSchema: z21.object({
|
|
15142
|
+
env: z21.string().min(1),
|
|
15143
|
+
automationId: z21.string().min(1).optional()
|
|
14963
15144
|
}),
|
|
14964
15145
|
cli: {
|
|
14965
15146
|
name: "get-available-tools",
|
|
@@ -14993,8 +15174,8 @@ query GetAvailableTools($env: AvailableCommandsEnv!, $automationId: String) {
|
|
|
14993
15174
|
createOperationSpec({
|
|
14994
15175
|
operationName: "GetFeatureFlagsContext",
|
|
14995
15176
|
kind: "query",
|
|
14996
|
-
inputSchema:
|
|
14997
|
-
flagKeys:
|
|
15177
|
+
inputSchema: z21.object({
|
|
15178
|
+
flagKeys: z21.array(z21.string().min(1)).min(1).max(100).optional()
|
|
14998
15179
|
}),
|
|
14999
15180
|
cli: {
|
|
15000
15181
|
name: "get-feature-flags-context",
|
|
@@ -15031,7 +15212,7 @@ query GetFeatureFlagsContext($flagKeys: [String!]) {
|
|
|
15031
15212
|
createOperationSpec({
|
|
15032
15213
|
operationName: "GetAutomationWorkbenchCredentials",
|
|
15033
15214
|
kind: "query",
|
|
15034
|
-
inputSchema:
|
|
15215
|
+
inputSchema: z21.object({}),
|
|
15035
15216
|
cli: {
|
|
15036
15217
|
name: "get-automation-workbench-credentials",
|
|
15037
15218
|
path: ["workbench", "credentials"],
|
|
@@ -15056,8 +15237,8 @@ query GetAutomationWorkbenchCredentials {
|
|
|
15056
15237
|
createOperationSpec({
|
|
15057
15238
|
operationName: "GetAutomationWorkbenchDiagnostics",
|
|
15058
15239
|
kind: "query",
|
|
15059
|
-
inputSchema:
|
|
15060
|
-
draftAutomationId:
|
|
15240
|
+
inputSchema: z21.object({
|
|
15241
|
+
draftAutomationId: z21.string().min(1)
|
|
15061
15242
|
}),
|
|
15062
15243
|
cli: {
|
|
15063
15244
|
name: "get-automation-workbench-diagnostics",
|
|
@@ -15122,11 +15303,11 @@ query GetAutomationWorkbenchDiagnostics($draftAutomationId: ID!) {
|
|
|
15122
15303
|
createOperationSpec({
|
|
15123
15304
|
operationName: "GetAutomationWorkbenchRunTrace",
|
|
15124
15305
|
kind: "query",
|
|
15125
|
-
inputSchema:
|
|
15126
|
-
automationRunId:
|
|
15127
|
-
agentRunId:
|
|
15128
|
-
limit:
|
|
15129
|
-
reverse:
|
|
15306
|
+
inputSchema: z21.object({
|
|
15307
|
+
automationRunId: z21.string().min(1),
|
|
15308
|
+
agentRunId: z21.string().min(1).optional(),
|
|
15309
|
+
limit: z21.number().int().positive().optional(),
|
|
15310
|
+
reverse: z21.boolean().optional()
|
|
15130
15311
|
}),
|
|
15131
15312
|
cli: {
|
|
15132
15313
|
name: "get-automation-workbench-run-trace",
|
|
@@ -15258,13 +15439,13 @@ query GetAutomationWorkbenchRunTrace(
|
|
|
15258
15439
|
createOperationSpec({
|
|
15259
15440
|
operationName: "GetAutomationWorkbenchAwaitRunCompletion",
|
|
15260
15441
|
kind: "query",
|
|
15261
|
-
inputSchema:
|
|
15262
|
-
automationRunId:
|
|
15263
|
-
timeoutMs:
|
|
15264
|
-
sinceSequence:
|
|
15265
|
-
agentRunId:
|
|
15266
|
-
limit:
|
|
15267
|
-
reverse:
|
|
15442
|
+
inputSchema: z21.object({
|
|
15443
|
+
automationRunId: z21.string().min(1),
|
|
15444
|
+
timeoutMs: z21.number().int().min(1e3).max(6e4).optional(),
|
|
15445
|
+
sinceSequence: z21.number().int().min(0).optional(),
|
|
15446
|
+
agentRunId: z21.string().min(1).optional(),
|
|
15447
|
+
limit: z21.number().int().positive().optional(),
|
|
15448
|
+
reverse: z21.boolean().optional()
|
|
15268
15449
|
}),
|
|
15269
15450
|
cli: {
|
|
15270
15451
|
name: "await-automation-workbench-run-completion",
|
|
@@ -15418,11 +15599,11 @@ query GetAutomationWorkbenchAwaitRunCompletion(
|
|
|
15418
15599
|
createOperationSpec({
|
|
15419
15600
|
operationName: "GetAutomationWorkbenchSchemaSuggestions",
|
|
15420
15601
|
kind: "query",
|
|
15421
|
-
inputSchema:
|
|
15422
|
-
automationRunId:
|
|
15423
|
-
draftAutomationId:
|
|
15424
|
-
minConfidence:
|
|
15425
|
-
includeSensitive:
|
|
15602
|
+
inputSchema: z21.object({
|
|
15603
|
+
automationRunId: z21.string().min(1),
|
|
15604
|
+
draftAutomationId: z21.string().min(1).optional(),
|
|
15605
|
+
minConfidence: z21.number().min(0).max(1).optional(),
|
|
15606
|
+
includeSensitive: z21.boolean().optional()
|
|
15426
15607
|
}),
|
|
15427
15608
|
cli: {
|
|
15428
15609
|
name: "get-automation-workbench-schema-suggestions",
|
|
@@ -15490,7 +15671,7 @@ query GetAutomationWorkbenchSchemaSuggestions(
|
|
|
15490
15671
|
createOperationSpec({
|
|
15491
15672
|
operationName: "CreateAutomation",
|
|
15492
15673
|
kind: "mutation",
|
|
15493
|
-
inputSchema:
|
|
15674
|
+
inputSchema: z21.object({
|
|
15494
15675
|
input: jsonObjectSchema
|
|
15495
15676
|
}),
|
|
15496
15677
|
cli: {
|
|
@@ -15527,7 +15708,7 @@ mutation CreateAutomation($input: CreateAutomationInput!) {
|
|
|
15527
15708
|
createOperationSpec({
|
|
15528
15709
|
operationName: "GetGraphqlSchema",
|
|
15529
15710
|
kind: "query",
|
|
15530
|
-
inputSchema:
|
|
15711
|
+
inputSchema: z21.object({}),
|
|
15531
15712
|
cli: {
|
|
15532
15713
|
name: "get-graphql-schema",
|
|
15533
15714
|
path: ["graphql", "schema"],
|
|
@@ -15548,8 +15729,8 @@ query GetGraphqlSchema {
|
|
|
15548
15729
|
createOperationSpec({
|
|
15549
15730
|
operationName: "PauseAutomationRun",
|
|
15550
15731
|
kind: "mutation",
|
|
15551
|
-
inputSchema:
|
|
15552
|
-
automationRunId:
|
|
15732
|
+
inputSchema: z21.object({
|
|
15733
|
+
automationRunId: z21.string().min(1)
|
|
15553
15734
|
}),
|
|
15554
15735
|
cli: {
|
|
15555
15736
|
name: "pause-automation-run",
|
|
@@ -15574,11 +15755,11 @@ mutation PauseAutomationRun($automationRunId: ID!) {
|
|
|
15574
15755
|
createOperationSpec({
|
|
15575
15756
|
operationName: "RerunAutomation",
|
|
15576
15757
|
kind: "mutation",
|
|
15577
|
-
inputSchema:
|
|
15578
|
-
automationRunId:
|
|
15579
|
-
additionalPrompt:
|
|
15580
|
-
idempotencyKey:
|
|
15581
|
-
allowPointOfNoReturnOverride:
|
|
15758
|
+
inputSchema: z21.object({
|
|
15759
|
+
automationRunId: z21.string().min(1),
|
|
15760
|
+
additionalPrompt: z21.string().min(1).optional(),
|
|
15761
|
+
idempotencyKey: z21.string().min(1),
|
|
15762
|
+
allowPointOfNoReturnOverride: z21.boolean().optional()
|
|
15582
15763
|
}),
|
|
15583
15764
|
cli: {
|
|
15584
15765
|
name: "rerun-automation",
|
|
@@ -15633,9 +15814,9 @@ mutation RerunAutomation(
|
|
|
15633
15814
|
createOperationSpec({
|
|
15634
15815
|
operationName: "ResumeAutomationRun",
|
|
15635
15816
|
kind: "mutation",
|
|
15636
|
-
inputSchema:
|
|
15637
|
-
automationRunId:
|
|
15638
|
-
message:
|
|
15817
|
+
inputSchema: z21.object({
|
|
15818
|
+
automationRunId: z21.string().min(1),
|
|
15819
|
+
message: z21.string().min(1).optional()
|
|
15639
15820
|
}),
|
|
15640
15821
|
cli: {
|
|
15641
15822
|
name: "resume-automation-run",
|
|
@@ -15665,15 +15846,15 @@ mutation ResumeAutomationRun($automationRunId: ID!, $message: String) {
|
|
|
15665
15846
|
createOperationSpec({
|
|
15666
15847
|
operationName: "RunDraftAutomation",
|
|
15667
15848
|
kind: "mutation",
|
|
15668
|
-
inputSchema:
|
|
15669
|
-
draftAutomationId:
|
|
15670
|
-
agentId:
|
|
15671
|
-
idempotencyKey:
|
|
15672
|
-
input:
|
|
15673
|
-
initialStore:
|
|
15849
|
+
inputSchema: z21.object({
|
|
15850
|
+
draftAutomationId: z21.string().min(1),
|
|
15851
|
+
agentId: z21.string().min(1),
|
|
15852
|
+
idempotencyKey: z21.string().min(1),
|
|
15853
|
+
input: z21.unknown().optional(),
|
|
15854
|
+
initialStore: z21.record(z21.string(), z21.unknown()).optional(),
|
|
15674
15855
|
config: automationRunStartConfigSchema.partial().passthrough().optional(),
|
|
15675
|
-
additionalPrompt:
|
|
15676
|
-
consistencyCheckCount:
|
|
15856
|
+
additionalPrompt: z21.string().min(1).optional(),
|
|
15857
|
+
consistencyCheckCount: z21.number().int().optional()
|
|
15677
15858
|
}),
|
|
15678
15859
|
cli: {
|
|
15679
15860
|
name: "run-draft-automation",
|
|
@@ -15758,8 +15939,8 @@ mutation RunDraftAutomation(
|
|
|
15758
15939
|
createOperationSpec({
|
|
15759
15940
|
operationName: "StopAutomationRun",
|
|
15760
15941
|
kind: "mutation",
|
|
15761
|
-
inputSchema:
|
|
15762
|
-
automationRunId:
|
|
15942
|
+
inputSchema: z21.object({
|
|
15943
|
+
automationRunId: z21.string().min(1)
|
|
15763
15944
|
}),
|
|
15764
15945
|
cli: {
|
|
15765
15946
|
name: "stop-automation-run",
|
|
@@ -15784,10 +15965,10 @@ mutation StopAutomationRun($automationRunId: ID!) {
|
|
|
15784
15965
|
createOperationSpec({
|
|
15785
15966
|
operationName: "PreviewAutomationPatch",
|
|
15786
15967
|
kind: "mutation",
|
|
15787
|
-
inputSchema:
|
|
15788
|
-
draftAutomationId:
|
|
15789
|
-
expectedLastSavedAt:
|
|
15790
|
-
operations:
|
|
15968
|
+
inputSchema: z21.object({
|
|
15969
|
+
draftAutomationId: z21.string().min(1),
|
|
15970
|
+
expectedLastSavedAt: z21.string().optional(),
|
|
15971
|
+
operations: z21.array(z21.unknown()).min(1)
|
|
15791
15972
|
}),
|
|
15792
15973
|
cli: {
|
|
15793
15974
|
name: "preview-automation-patch",
|
|
@@ -15896,9 +16077,9 @@ mutation PreviewAutomationPatch(
|
|
|
15896
16077
|
createOperationSpec({
|
|
15897
16078
|
operationName: "ApplyAutomationPatch",
|
|
15898
16079
|
kind: "mutation",
|
|
15899
|
-
inputSchema:
|
|
15900
|
-
draftAutomationId:
|
|
15901
|
-
operations:
|
|
16080
|
+
inputSchema: z21.object({
|
|
16081
|
+
draftAutomationId: z21.string().min(1),
|
|
16082
|
+
operations: z21.array(z21.unknown()).min(1)
|
|
15902
16083
|
}),
|
|
15903
16084
|
cli: {
|
|
15904
16085
|
name: "apply-automation-patch",
|
|
@@ -16014,8 +16195,8 @@ mutation ApplyAutomationPatch(
|
|
|
16014
16195
|
createOperationSpec({
|
|
16015
16196
|
operationName: "UpdateAutomationById",
|
|
16016
16197
|
kind: "mutation",
|
|
16017
|
-
inputSchema:
|
|
16018
|
-
id:
|
|
16198
|
+
inputSchema: z21.object({
|
|
16199
|
+
id: z21.string().min(1),
|
|
16019
16200
|
input: jsonObjectSchema
|
|
16020
16201
|
}),
|
|
16021
16202
|
cli: {
|
|
@@ -16033,7 +16214,7 @@ mutation ApplyAutomationPatch(
|
|
|
16033
16214
|
jsonOption({
|
|
16034
16215
|
inputKey: "input",
|
|
16035
16216
|
flagName: "input-json",
|
|
16036
|
-
description: "UpdateAutomationInput payload. Must include baseVersionId from a fresh
|
|
16217
|
+
description: "UpdateAutomationInput payload. Must include baseVersionId from a fresh read. Store schema writes are additive under config.storeSchema; use removeStoreSchemaPaths for explicit deletion or replaceStoreSchema for exact replacement.",
|
|
16037
16218
|
required: true
|
|
16038
16219
|
})
|
|
16039
16220
|
]
|
|
@@ -16042,6 +16223,8 @@ mutation ApplyAutomationPatch(
|
|
|
16042
16223
|
document: `# Mutation to update an automation
|
|
16043
16224
|
# Before calling, fetch the automation and agents again. Pass the fetched draftVersionId as input.baseVersionId.
|
|
16044
16225
|
# If this mutation returns a draft-automation-version-conflict, discard the generated update, refetch the automation and agents, inspect what changed, then regenerate the update on top of the latest version.
|
|
16226
|
+
# config.storeSchema remains additive. Use removeStoreSchemaPaths to delete named properties (and combine it with config.storeSchema for an atomic rename), or replaceStoreSchema for an exact replacement. replaceStoreSchema cannot be combined with either of those fields.
|
|
16227
|
+
# Destructive Store schema changes are rejected when the final agent set still references a removed property. Rewrite those agent references in the same update or leave the property in place.
|
|
16045
16228
|
# Returns only id and lastSavedAt for MCP tool simplicity
|
|
16046
16229
|
mutation UpdateAutomationById($id: ID!, $input: UpdateAutomationInput!) {
|
|
16047
16230
|
updateAutomation(id: $id, input: $input) {
|
|
@@ -16056,58 +16239,82 @@ mutation UpdateAutomationById($id: ID!, $input: UpdateAutomationInput!) {
|
|
|
16056
16239
|
import { Command as Command2, InvalidArgumentError as InvalidArgumentError2, Option as Option2 } from "commander";
|
|
16057
16240
|
|
|
16058
16241
|
// src/api.ts
|
|
16059
|
-
import { z as
|
|
16242
|
+
import { z as z23 } from "zod";
|
|
16243
|
+
|
|
16244
|
+
// src/version.ts
|
|
16245
|
+
import fs from "node:fs";
|
|
16246
|
+
import path from "node:path";
|
|
16247
|
+
import { fileURLToPath } from "node:url";
|
|
16248
|
+
var packageManifestPath = path.resolve(
|
|
16249
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
16250
|
+
"../package.json"
|
|
16251
|
+
);
|
|
16252
|
+
var packageManifestResult = safeJsonParse(
|
|
16253
|
+
fs.readFileSync(packageManifestPath, "utf8")
|
|
16254
|
+
);
|
|
16255
|
+
if (isErr(packageManifestResult)) {
|
|
16256
|
+
throw new Error(`Failed to parse ${packageManifestPath}.`, {
|
|
16257
|
+
cause: packageManifestResult.error.cause
|
|
16258
|
+
});
|
|
16259
|
+
}
|
|
16260
|
+
var cliPackageVersion = packageManifestResult.value.version;
|
|
16261
|
+
if (typeof cliPackageVersion !== "string" || cliPackageVersion.length === 0) {
|
|
16262
|
+
throw new Error(`Expected a version in ${packageManifestPath}.`);
|
|
16263
|
+
}
|
|
16264
|
+
var CLI_VERSION = cliPackageVersion;
|
|
16265
|
+
|
|
16266
|
+
// src/api.ts
|
|
16060
16267
|
var OTTO_AUTHORIZATION_HEADER_NAME = "X-Otto-Authorization";
|
|
16061
16268
|
var OTTO_AUTHORIZATION_ISSUER = "magical:otto";
|
|
16062
|
-
var workosOrganizationsResponseSchema =
|
|
16063
|
-
organizations:
|
|
16064
|
-
|
|
16065
|
-
id:
|
|
16066
|
-
name:
|
|
16067
|
-
primaryDomain:
|
|
16269
|
+
var workosOrganizationsResponseSchema = z23.object({
|
|
16270
|
+
organizations: z23.array(
|
|
16271
|
+
z23.object({
|
|
16272
|
+
id: z23.string().min(1),
|
|
16273
|
+
name: z23.string().min(1),
|
|
16274
|
+
primaryDomain: z23.string().nullable().optional()
|
|
16068
16275
|
})
|
|
16069
16276
|
),
|
|
16070
|
-
success:
|
|
16277
|
+
success: z23.boolean()
|
|
16071
16278
|
});
|
|
16072
|
-
var workosUserSchema =
|
|
16073
|
-
email:
|
|
16074
|
-
id:
|
|
16279
|
+
var workosUserSchema = z23.object({
|
|
16280
|
+
email: z23.string().nullable(),
|
|
16281
|
+
id: z23.string().min(1)
|
|
16075
16282
|
});
|
|
16076
|
-
var nangoIntegrationWireSchema =
|
|
16283
|
+
var nangoIntegrationWireSchema = z23.object({
|
|
16077
16284
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- mirrors Nango REST payload
|
|
16078
|
-
unique_key:
|
|
16285
|
+
unique_key: z23.string().min(1)
|
|
16079
16286
|
}).passthrough().transform((data) => ({
|
|
16080
16287
|
...data,
|
|
16081
16288
|
uniqueKey: data.unique_key
|
|
16082
16289
|
}));
|
|
16083
|
-
var nangoIntegrationsResponseSchema =
|
|
16084
|
-
var organizationAuthenticationSchema =
|
|
16085
|
-
id:
|
|
16086
|
-
type:
|
|
16087
|
-
connectionId:
|
|
16088
|
-
providerConfigKey:
|
|
16089
|
-
description:
|
|
16090
|
-
hostname:
|
|
16290
|
+
var nangoIntegrationsResponseSchema = z23.array(nangoIntegrationWireSchema);
|
|
16291
|
+
var organizationAuthenticationSchema = z23.object({
|
|
16292
|
+
id: z23.string().min(1),
|
|
16293
|
+
type: z23.string().min(1),
|
|
16294
|
+
connectionId: z23.string().nullable().optional(),
|
|
16295
|
+
providerConfigKey: z23.string().nullable().optional(),
|
|
16296
|
+
description: z23.string().nullable().optional(),
|
|
16297
|
+
hostname: z23.string().nullable().optional()
|
|
16091
16298
|
}).passthrough();
|
|
16092
|
-
var organizationAuthenticationsResponseSchema =
|
|
16093
|
-
authentications:
|
|
16094
|
-
success:
|
|
16299
|
+
var organizationAuthenticationsResponseSchema = z23.object({
|
|
16300
|
+
authentications: z23.array(organizationAuthenticationSchema),
|
|
16301
|
+
success: z23.boolean()
|
|
16095
16302
|
});
|
|
16096
|
-
var graphQlResponseSchema =
|
|
16097
|
-
data:
|
|
16098
|
-
errors:
|
|
16099
|
-
|
|
16100
|
-
message:
|
|
16303
|
+
var graphQlResponseSchema = z23.object({
|
|
16304
|
+
data: z23.record(z23.string(), z23.unknown()).optional(),
|
|
16305
|
+
errors: z23.array(
|
|
16306
|
+
z23.object({
|
|
16307
|
+
message: z23.string().min(1)
|
|
16101
16308
|
})
|
|
16102
16309
|
).optional()
|
|
16103
16310
|
});
|
|
16104
|
-
var apiErrorResponseSchema =
|
|
16105
|
-
errors:
|
|
16106
|
-
|
|
16107
|
-
message:
|
|
16311
|
+
var apiErrorResponseSchema = z23.object({
|
|
16312
|
+
errors: z23.array(
|
|
16313
|
+
z23.object({
|
|
16314
|
+
message: z23.string().min(1)
|
|
16108
16315
|
})
|
|
16109
16316
|
).optional(),
|
|
16110
|
-
message:
|
|
16317
|
+
message: z23.string().min(1).optional()
|
|
16111
16318
|
});
|
|
16112
16319
|
function getApiErrorDetail(responseBody) {
|
|
16113
16320
|
const parsedResponse = apiErrorResponseSchema.safeParse(responseBody);
|
|
@@ -16191,6 +16398,8 @@ function createMagicalApiClient({
|
|
|
16191
16398
|
...impersonatedOrganizationId ? { impersonatedOrganizationId } : {},
|
|
16192
16399
|
...organizationId ? { organizationId } : {}
|
|
16193
16400
|
});
|
|
16401
|
+
headers.set("x-magical-client", "mgcl");
|
|
16402
|
+
headers.set("x-magical-client-version", CLI_VERSION);
|
|
16194
16403
|
const response = await fetchFn(url, {
|
|
16195
16404
|
...init,
|
|
16196
16405
|
headers
|
|
@@ -16336,7 +16545,7 @@ function createMagicalApiClient({
|
|
|
16336
16545
|
|
|
16337
16546
|
// src/config.ts
|
|
16338
16547
|
import os from "node:os";
|
|
16339
|
-
import
|
|
16548
|
+
import path2 from "node:path";
|
|
16340
16549
|
var DEFAULT_MAGICAL_API_URL = "https://api-agt.getmagical.io";
|
|
16341
16550
|
var DEFAULT_WORKOS_API_URL = "https://api.workos.com";
|
|
16342
16551
|
var DEFAULT_WORKOS_CLIENT_ID = "client_01JJZ6XJ1RF248P20WF63M4VAM";
|
|
@@ -16355,33 +16564,33 @@ function resolvePlatformConfigDirectory() {
|
|
|
16355
16564
|
return customConfigDirectory;
|
|
16356
16565
|
}
|
|
16357
16566
|
if (process.platform === "darwin") {
|
|
16358
|
-
return
|
|
16567
|
+
return path2.join(os.homedir(), "Library", "Application Support");
|
|
16359
16568
|
}
|
|
16360
16569
|
if (process.platform === "win32") {
|
|
16361
16570
|
const appDataDirectory = process.env["APPDATA"];
|
|
16362
|
-
return appDataDirectory ??
|
|
16571
|
+
return appDataDirectory ?? path2.join(os.homedir(), "AppData", "Roaming");
|
|
16363
16572
|
}
|
|
16364
|
-
return process.env["XDG_CONFIG_HOME"] ??
|
|
16573
|
+
return process.env["XDG_CONFIG_HOME"] ?? path2.join(os.homedir(), ".config");
|
|
16365
16574
|
}
|
|
16366
16575
|
function resolveRefreshTokenStoreKind() {
|
|
16367
16576
|
return process.env["MAGICAL_CLI_REFRESH_TOKEN_STORE"] === "file" ? "file" : "keytar";
|
|
16368
16577
|
}
|
|
16369
16578
|
function getRuntimeConfig() {
|
|
16370
|
-
const configDirectory =
|
|
16579
|
+
const configDirectory = path2.join(
|
|
16371
16580
|
resolvePlatformConfigDirectory(),
|
|
16372
16581
|
CLI_CONFIG_DIRECTORY_NAME
|
|
16373
16582
|
);
|
|
16374
16583
|
return {
|
|
16375
|
-
accessTokenFilePath:
|
|
16584
|
+
accessTokenFilePath: path2.join(configDirectory, CLI_ACCESS_TOKEN_FILE_NAME),
|
|
16376
16585
|
cliDistTag: process.env["MAGICAL_CLI_DIST_TAG"] ?? DEFAULT_CLI_DIST_TAG,
|
|
16377
16586
|
magicalApiUrl: DEFAULT_MAGICAL_API_URL,
|
|
16378
16587
|
npmRegistryUrl: process.env["MAGICAL_CLI_NPM_REGISTRY_URL"] ?? DEFAULT_CLI_NPM_REGISTRY_URL,
|
|
16379
|
-
refreshTokenFilePath:
|
|
16588
|
+
refreshTokenFilePath: path2.join(
|
|
16380
16589
|
configDirectory,
|
|
16381
16590
|
CLI_REFRESH_TOKEN_FILE_NAME
|
|
16382
16591
|
),
|
|
16383
16592
|
refreshTokenStoreKind: resolveRefreshTokenStoreKind(),
|
|
16384
|
-
stateFilePath:
|
|
16593
|
+
stateFilePath: path2.join(configDirectory, CLI_STATE_FILE_NAME),
|
|
16385
16594
|
workosApiUrl: DEFAULT_WORKOS_API_URL,
|
|
16386
16595
|
workosClientId: DEFAULT_WORKOS_CLIENT_ID,
|
|
16387
16596
|
keychainServiceName: DEFAULT_KEYCHAIN_SERVICE_NAME
|
|
@@ -16393,11 +16602,11 @@ function requireWorkosClientId(config) {
|
|
|
16393
16602
|
|
|
16394
16603
|
// src/settings.ts
|
|
16395
16604
|
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
16396
|
-
import
|
|
16397
|
-
import { z as
|
|
16398
|
-
var cliSettingsSchema =
|
|
16399
|
-
env:
|
|
16400
|
-
baseUrl:
|
|
16605
|
+
import path3 from "node:path";
|
|
16606
|
+
import { z as z24 } from "zod";
|
|
16607
|
+
var cliSettingsSchema = z24.object({
|
|
16608
|
+
env: z24.object({
|
|
16609
|
+
baseUrl: z24.url().optional()
|
|
16401
16610
|
}).default({})
|
|
16402
16611
|
});
|
|
16403
16612
|
function createEmptyCliSettings() {
|
|
@@ -16409,7 +16618,7 @@ function hasCliSettingsOverrides(settings) {
|
|
|
16409
16618
|
return settings.env.baseUrl !== void 0;
|
|
16410
16619
|
}
|
|
16411
16620
|
function resolveSettingsFilePath(stateFilePath) {
|
|
16412
|
-
return
|
|
16621
|
+
return path3.join(path3.dirname(stateFilePath), CLI_SETTINGS_FILE_NAME);
|
|
16413
16622
|
}
|
|
16414
16623
|
function resolveConfiguredApiBaseUrl({
|
|
16415
16624
|
defaultApiBaseUrl,
|
|
@@ -16454,7 +16663,7 @@ function createFileSettingsStore(stateFilePath) {
|
|
|
16454
16663
|
await rm(settingsFilePath, { force: true });
|
|
16455
16664
|
return;
|
|
16456
16665
|
}
|
|
16457
|
-
await mkdir(
|
|
16666
|
+
await mkdir(path3.dirname(settingsFilePath), { recursive: true });
|
|
16458
16667
|
await writeFile(
|
|
16459
16668
|
settingsFilePath,
|
|
16460
16669
|
`${JSON.stringify(settings, null, 2)}
|
|
@@ -16736,9 +16945,9 @@ function isExpiredAccessTokenClaims(claims) {
|
|
|
16736
16945
|
|
|
16737
16946
|
// src/self-update.ts
|
|
16738
16947
|
import { spawn as spawn2 } from "node:child_process";
|
|
16739
|
-
import
|
|
16740
|
-
import
|
|
16741
|
-
import { fileURLToPath } from "node:url";
|
|
16948
|
+
import fs2 from "node:fs";
|
|
16949
|
+
import path4 from "node:path";
|
|
16950
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
16742
16951
|
var CLI_PACKAGE_NAME = "@getmagical/cli";
|
|
16743
16952
|
var DEFAULT_CLI_DIST_TAG2 = "latest";
|
|
16744
16953
|
var DEFAULT_NPM_REGISTRY_URL = "https://registry.npmjs.org/";
|
|
@@ -16748,9 +16957,9 @@ function resolveInstalledPackageRoot({
|
|
|
16748
16957
|
packageName
|
|
16749
16958
|
}) {
|
|
16750
16959
|
const packagePathSegments = packageName.split("/");
|
|
16751
|
-
let currentPath =
|
|
16960
|
+
let currentPath = path4.dirname(entryFilePath);
|
|
16752
16961
|
for (; ; ) {
|
|
16753
|
-
const currentPathSegments = currentPath.split(
|
|
16962
|
+
const currentPathSegments = currentPath.split(path4.sep).filter(Boolean);
|
|
16754
16963
|
const currentPackageSegments = currentPathSegments.slice(
|
|
16755
16964
|
-packagePathSegments.length
|
|
16756
16965
|
);
|
|
@@ -16759,7 +16968,7 @@ function resolveInstalledPackageRoot({
|
|
|
16759
16968
|
)) {
|
|
16760
16969
|
return currentPath;
|
|
16761
16970
|
}
|
|
16762
|
-
const parentPath =
|
|
16971
|
+
const parentPath = path4.dirname(currentPath);
|
|
16763
16972
|
if (parentPath === currentPath) {
|
|
16764
16973
|
return null;
|
|
16765
16974
|
}
|
|
@@ -16769,14 +16978,14 @@ function resolveInstalledPackageRoot({
|
|
|
16769
16978
|
function resolveInstallPrefixFromPackageRoot(packageRootPath) {
|
|
16770
16979
|
let currentPath = packageRootPath;
|
|
16771
16980
|
for (; ; ) {
|
|
16772
|
-
if (
|
|
16773
|
-
const nodeModulesParentPath =
|
|
16774
|
-
if (
|
|
16775
|
-
return
|
|
16981
|
+
if (path4.basename(currentPath) === "node_modules") {
|
|
16982
|
+
const nodeModulesParentPath = path4.dirname(currentPath);
|
|
16983
|
+
if (path4.basename(nodeModulesParentPath) === "lib") {
|
|
16984
|
+
return path4.dirname(nodeModulesParentPath);
|
|
16776
16985
|
}
|
|
16777
16986
|
return nodeModulesParentPath;
|
|
16778
16987
|
}
|
|
16779
|
-
const parentPath =
|
|
16988
|
+
const parentPath = path4.dirname(currentPath);
|
|
16780
16989
|
if (parentPath === currentPath) {
|
|
16781
16990
|
return null;
|
|
16782
16991
|
}
|
|
@@ -16793,13 +17002,13 @@ function resolveManagedNpmCommand(installPrefix) {
|
|
|
16793
17002
|
if (process.platform === "win32") {
|
|
16794
17003
|
return null;
|
|
16795
17004
|
}
|
|
16796
|
-
const managedNodeExecutable =
|
|
17005
|
+
const managedNodeExecutable = path4.join(
|
|
16797
17006
|
installPrefix,
|
|
16798
17007
|
MANAGED_NODE_SUBPATH,
|
|
16799
17008
|
"bin",
|
|
16800
17009
|
"node"
|
|
16801
17010
|
);
|
|
16802
|
-
const managedNpmCli =
|
|
17011
|
+
const managedNpmCli = path4.join(
|
|
16803
17012
|
installPrefix,
|
|
16804
17013
|
MANAGED_NODE_SUBPATH,
|
|
16805
17014
|
"lib",
|
|
@@ -16808,7 +17017,7 @@ function resolveManagedNpmCommand(installPrefix) {
|
|
|
16808
17017
|
"bin",
|
|
16809
17018
|
"npm-cli.js"
|
|
16810
17019
|
);
|
|
16811
|
-
if (!
|
|
17020
|
+
if (!fs2.existsSync(managedNodeExecutable) || !fs2.existsSync(managedNpmCli)) {
|
|
16812
17021
|
return null;
|
|
16813
17022
|
}
|
|
16814
17023
|
return {
|
|
@@ -16870,7 +17079,7 @@ async function installPublishedCli({
|
|
|
16870
17079
|
}
|
|
16871
17080
|
async function selfUpdateInstalledCli({
|
|
16872
17081
|
distTag = DEFAULT_CLI_DIST_TAG2,
|
|
16873
|
-
entryFilePath =
|
|
17082
|
+
entryFilePath = fileURLToPath2(import.meta.url),
|
|
16874
17083
|
packageName = CLI_PACKAGE_NAME,
|
|
16875
17084
|
registryUrl = DEFAULT_NPM_REGISTRY_URL
|
|
16876
17085
|
} = {}) {
|
|
@@ -16998,25 +17207,25 @@ ${formatExamples("Examples", [
|
|
|
16998
17207
|
|
|
16999
17208
|
// src/state.ts
|
|
17000
17209
|
import { mkdir as mkdir2, readFile as readFile3, rm as rm3, writeFile as writeFile2 } from "node:fs/promises";
|
|
17001
|
-
import
|
|
17002
|
-
import { z as
|
|
17003
|
-
var cliAccountSchema =
|
|
17004
|
-
clientId:
|
|
17005
|
-
email:
|
|
17006
|
-
userId:
|
|
17210
|
+
import path5 from "node:path";
|
|
17211
|
+
import { z as z25 } from "zod";
|
|
17212
|
+
var cliAccountSchema = z25.object({
|
|
17213
|
+
clientId: z25.string().min(1),
|
|
17214
|
+
email: z25.string().nullable(),
|
|
17215
|
+
userId: z25.string().min(1)
|
|
17007
17216
|
});
|
|
17008
|
-
var cliOrganizationSchema =
|
|
17009
|
-
id:
|
|
17010
|
-
name:
|
|
17011
|
-
primaryDomain:
|
|
17217
|
+
var cliOrganizationSchema = z25.object({
|
|
17218
|
+
id: z25.string().min(1),
|
|
17219
|
+
name: z25.string().min(1),
|
|
17220
|
+
primaryDomain: z25.string().nullable().default(null)
|
|
17012
17221
|
});
|
|
17013
|
-
var cliStateSchema =
|
|
17222
|
+
var cliStateSchema = z25.object({
|
|
17014
17223
|
account: cliAccountSchema,
|
|
17015
|
-
defaultOrgId:
|
|
17016
|
-
lastUsedOrgId:
|
|
17017
|
-
organizations:
|
|
17224
|
+
defaultOrgId: z25.string().nullable(),
|
|
17225
|
+
lastUsedOrgId: z25.string().nullable(),
|
|
17226
|
+
organizations: z25.array(cliOrganizationSchema)
|
|
17018
17227
|
});
|
|
17019
|
-
var refreshTokenFileSchema =
|
|
17228
|
+
var refreshTokenFileSchema = z25.record(z25.string(), z25.string());
|
|
17020
17229
|
function createFileStateStore(stateFilePath) {
|
|
17021
17230
|
return {
|
|
17022
17231
|
async clear() {
|
|
@@ -17041,7 +17250,7 @@ function createFileStateStore(stateFilePath) {
|
|
|
17041
17250
|
}
|
|
17042
17251
|
},
|
|
17043
17252
|
async save(state) {
|
|
17044
|
-
await mkdir2(
|
|
17253
|
+
await mkdir2(path5.dirname(stateFilePath), { recursive: true });
|
|
17045
17254
|
await writeFile2(stateFilePath, `${JSON.stringify(state, null, 2)}
|
|
17046
17255
|
`);
|
|
17047
17256
|
}
|
|
@@ -17069,7 +17278,7 @@ function createFileRefreshTokenStore(refreshTokenFilePath) {
|
|
|
17069
17278
|
}
|
|
17070
17279
|
}
|
|
17071
17280
|
async function saveRefreshTokens(refreshTokens) {
|
|
17072
|
-
await mkdir2(
|
|
17281
|
+
await mkdir2(path5.dirname(refreshTokenFilePath), { recursive: true });
|
|
17073
17282
|
await writeFile2(
|
|
17074
17283
|
refreshTokenFilePath,
|
|
17075
17284
|
`${JSON.stringify(refreshTokens, null, 2)}
|
|
@@ -17106,60 +17315,38 @@ function buildRefreshTokenKey(account) {
|
|
|
17106
17315
|
return `${account.clientId}:${account.userId}`;
|
|
17107
17316
|
}
|
|
17108
17317
|
|
|
17109
|
-
// src/version.ts
|
|
17110
|
-
import fs2 from "node:fs";
|
|
17111
|
-
import path5 from "node:path";
|
|
17112
|
-
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
17113
|
-
var packageManifestPath = path5.resolve(
|
|
17114
|
-
path5.dirname(fileURLToPath2(import.meta.url)),
|
|
17115
|
-
"../package.json"
|
|
17116
|
-
);
|
|
17117
|
-
var packageManifestResult = safeJsonParse(
|
|
17118
|
-
fs2.readFileSync(packageManifestPath, "utf8")
|
|
17119
|
-
);
|
|
17120
|
-
if (isErr(packageManifestResult)) {
|
|
17121
|
-
throw new Error(`Failed to parse ${packageManifestPath}.`, {
|
|
17122
|
-
cause: packageManifestResult.error.cause
|
|
17123
|
-
});
|
|
17124
|
-
}
|
|
17125
|
-
var cliPackageVersion = packageManifestResult.value.version;
|
|
17126
|
-
if (typeof cliPackageVersion !== "string" || cliPackageVersion.length === 0) {
|
|
17127
|
-
throw new Error(`Expected a version in ${packageManifestPath}.`);
|
|
17128
|
-
}
|
|
17129
|
-
var CLI_VERSION = cliPackageVersion;
|
|
17130
|
-
|
|
17131
17318
|
// src/workos-auth.ts
|
|
17132
|
-
import { z as
|
|
17319
|
+
import { z as z26 } from "zod";
|
|
17133
17320
|
var DEFAULT_DEVICE_POLL_INTERVAL_SECONDS = 5;
|
|
17134
17321
|
function buildFormHeaders() {
|
|
17135
17322
|
const headers = new Headers();
|
|
17136
17323
|
headers.set("content-type", "application/x-www-form-urlencoded");
|
|
17137
17324
|
return headers;
|
|
17138
17325
|
}
|
|
17139
|
-
var deviceAuthorizationSchema =
|
|
17140
|
-
device_code:
|
|
17141
|
-
expires_in:
|
|
17142
|
-
interval:
|
|
17143
|
-
user_code:
|
|
17144
|
-
verification_uri:
|
|
17145
|
-
verification_uri_complete:
|
|
17326
|
+
var deviceAuthorizationSchema = z26.object({
|
|
17327
|
+
device_code: z26.string().min(1),
|
|
17328
|
+
expires_in: z26.number().int().positive().optional(),
|
|
17329
|
+
interval: z26.number().int().positive().optional(),
|
|
17330
|
+
user_code: z26.string().min(1),
|
|
17331
|
+
verification_uri: z26.url(),
|
|
17332
|
+
verification_uri_complete: z26.url().optional()
|
|
17146
17333
|
});
|
|
17147
|
-
var tokenResponseSchema =
|
|
17148
|
-
access_token:
|
|
17149
|
-
expires_in:
|
|
17150
|
-
refresh_token:
|
|
17151
|
-
token_type:
|
|
17334
|
+
var tokenResponseSchema = z26.object({
|
|
17335
|
+
access_token: z26.string().min(1),
|
|
17336
|
+
expires_in: z26.number().int().positive().optional(),
|
|
17337
|
+
refresh_token: z26.string().min(1),
|
|
17338
|
+
token_type: z26.string().optional()
|
|
17152
17339
|
});
|
|
17153
|
-
var tokenErrorSchema =
|
|
17154
|
-
error:
|
|
17155
|
-
error_description:
|
|
17340
|
+
var tokenErrorSchema = z26.object({
|
|
17341
|
+
error: z26.string().min(1),
|
|
17342
|
+
error_description: z26.string().optional()
|
|
17156
17343
|
});
|
|
17157
|
-
var accessTokenClaimsSchema =
|
|
17158
|
-
exp:
|
|
17159
|
-
iss:
|
|
17160
|
-
org_id:
|
|
17161
|
-
sid:
|
|
17162
|
-
sub:
|
|
17344
|
+
var accessTokenClaimsSchema = z26.object({
|
|
17345
|
+
exp: z26.number().int().positive().optional(),
|
|
17346
|
+
iss: z26.string().min(1).optional(),
|
|
17347
|
+
org_id: z26.string().min(1).optional(),
|
|
17348
|
+
sid: z26.string().min(1).optional(),
|
|
17349
|
+
sub: z26.string().min(1)
|
|
17163
17350
|
});
|
|
17164
17351
|
function createWorkosAuthClient({
|
|
17165
17352
|
fetchFn = fetch,
|