@mastra/deployer-vercel 0.0.1-alpha.12 → 0.0.1-alpha.14
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/CHANGELOG.md +16 -0
- package/package.json +3 -3
- package/dist/deployer-vercel.cjs.development.js +0 -588
- package/dist/deployer-vercel.cjs.development.js.map +0 -1
- package/dist/deployer-vercel.cjs.production.min.js +0 -2
- package/dist/deployer-vercel.cjs.production.min.js.map +0 -1
- package/dist/deployer-vercel.esm.js +0 -565
- package/dist/deployer-vercel.esm.js.map +0 -1
- package/dist/index.d.ts +0 -25
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/deployer-vercel
|
|
2
2
|
|
|
3
|
+
## 0.0.1-alpha.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [dd6d87f]
|
|
8
|
+
- Updated dependencies [04434b6]
|
|
9
|
+
- @mastra/core@0.1.27-alpha.70
|
|
10
|
+
- @mastra/deployer@0.0.1-alpha.10
|
|
11
|
+
|
|
12
|
+
## 0.0.1-alpha.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [9066f95]
|
|
17
|
+
- @mastra/deployer@0.0.1-alpha.9
|
|
18
|
+
|
|
3
19
|
## 0.0.1-alpha.12
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-vercel",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"author": "",
|
|
24
24
|
"license": "ISC",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@mastra/core": "0.1.27-alpha.
|
|
27
|
-
"@mastra/deployer": "0.0.1-alpha.
|
|
26
|
+
"@mastra/core": "0.1.27-alpha.70",
|
|
27
|
+
"@mastra/deployer": "0.0.1-alpha.10"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/preset-env": "^7.26.0",
|
|
@@ -1,588 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var core = require('@mastra/core');
|
|
6
|
-
var child_process = require('child_process');
|
|
7
|
-
var fs = require('fs');
|
|
8
|
-
var path = require('path');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return n;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var child_process__namespace = /*#__PURE__*/_interopNamespaceDefault(child_process);
|
|
28
|
-
|
|
29
|
-
function _arrayLikeToArray(r, a) {
|
|
30
|
-
(null == a || a > r.length) && (a = r.length);
|
|
31
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
32
|
-
return n;
|
|
33
|
-
}
|
|
34
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
35
|
-
try {
|
|
36
|
-
var i = n[a](c),
|
|
37
|
-
u = i.value;
|
|
38
|
-
} catch (n) {
|
|
39
|
-
return void e(n);
|
|
40
|
-
}
|
|
41
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
42
|
-
}
|
|
43
|
-
function _asyncToGenerator(n) {
|
|
44
|
-
return function () {
|
|
45
|
-
var t = this,
|
|
46
|
-
e = arguments;
|
|
47
|
-
return new Promise(function (r, o) {
|
|
48
|
-
var a = n.apply(t, e);
|
|
49
|
-
function _next(n) {
|
|
50
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
51
|
-
}
|
|
52
|
-
function _throw(n) {
|
|
53
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
54
|
-
}
|
|
55
|
-
_next(void 0);
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function _createForOfIteratorHelperLoose(r, e) {
|
|
60
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
61
|
-
if (t) return (t = t.call(r)).next.bind(t);
|
|
62
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
63
|
-
t && (r = t);
|
|
64
|
-
var o = 0;
|
|
65
|
-
return function () {
|
|
66
|
-
return o >= r.length ? {
|
|
67
|
-
done: !0
|
|
68
|
-
} : {
|
|
69
|
-
done: !1,
|
|
70
|
-
value: r[o++]
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
75
|
-
}
|
|
76
|
-
function _extends() {
|
|
77
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
78
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
79
|
-
var t = arguments[e];
|
|
80
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
81
|
-
}
|
|
82
|
-
return n;
|
|
83
|
-
}, _extends.apply(null, arguments);
|
|
84
|
-
}
|
|
85
|
-
function _inheritsLoose(t, o) {
|
|
86
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
87
|
-
}
|
|
88
|
-
function _regeneratorRuntime() {
|
|
89
|
-
_regeneratorRuntime = function () {
|
|
90
|
-
return e;
|
|
91
|
-
};
|
|
92
|
-
var t,
|
|
93
|
-
e = {},
|
|
94
|
-
r = Object.prototype,
|
|
95
|
-
n = r.hasOwnProperty,
|
|
96
|
-
o = Object.defineProperty || function (t, e, r) {
|
|
97
|
-
t[e] = r.value;
|
|
98
|
-
},
|
|
99
|
-
i = "function" == typeof Symbol ? Symbol : {},
|
|
100
|
-
a = i.iterator || "@@iterator",
|
|
101
|
-
c = i.asyncIterator || "@@asyncIterator",
|
|
102
|
-
u = i.toStringTag || "@@toStringTag";
|
|
103
|
-
function define(t, e, r) {
|
|
104
|
-
return Object.defineProperty(t, e, {
|
|
105
|
-
value: r,
|
|
106
|
-
enumerable: !0,
|
|
107
|
-
configurable: !0,
|
|
108
|
-
writable: !0
|
|
109
|
-
}), t[e];
|
|
110
|
-
}
|
|
111
|
-
try {
|
|
112
|
-
define({}, "");
|
|
113
|
-
} catch (t) {
|
|
114
|
-
define = function (t, e, r) {
|
|
115
|
-
return t[e] = r;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
function wrap(t, e, r, n) {
|
|
119
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
120
|
-
a = Object.create(i.prototype),
|
|
121
|
-
c = new Context(n || []);
|
|
122
|
-
return o(a, "_invoke", {
|
|
123
|
-
value: makeInvokeMethod(t, r, c)
|
|
124
|
-
}), a;
|
|
125
|
-
}
|
|
126
|
-
function tryCatch(t, e, r) {
|
|
127
|
-
try {
|
|
128
|
-
return {
|
|
129
|
-
type: "normal",
|
|
130
|
-
arg: t.call(e, r)
|
|
131
|
-
};
|
|
132
|
-
} catch (t) {
|
|
133
|
-
return {
|
|
134
|
-
type: "throw",
|
|
135
|
-
arg: t
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
e.wrap = wrap;
|
|
140
|
-
var h = "suspendedStart",
|
|
141
|
-
l = "suspendedYield",
|
|
142
|
-
f = "executing",
|
|
143
|
-
s = "completed",
|
|
144
|
-
y = {};
|
|
145
|
-
function Generator() {}
|
|
146
|
-
function GeneratorFunction() {}
|
|
147
|
-
function GeneratorFunctionPrototype() {}
|
|
148
|
-
var p = {};
|
|
149
|
-
define(p, a, function () {
|
|
150
|
-
return this;
|
|
151
|
-
});
|
|
152
|
-
var d = Object.getPrototypeOf,
|
|
153
|
-
v = d && d(d(values([])));
|
|
154
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
155
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
156
|
-
function defineIteratorMethods(t) {
|
|
157
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
158
|
-
define(t, e, function (t) {
|
|
159
|
-
return this._invoke(e, t);
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
function AsyncIterator(t, e) {
|
|
164
|
-
function invoke(r, o, i, a) {
|
|
165
|
-
var c = tryCatch(t[r], t, o);
|
|
166
|
-
if ("throw" !== c.type) {
|
|
167
|
-
var u = c.arg,
|
|
168
|
-
h = u.value;
|
|
169
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
170
|
-
invoke("next", t, i, a);
|
|
171
|
-
}, function (t) {
|
|
172
|
-
invoke("throw", t, i, a);
|
|
173
|
-
}) : e.resolve(h).then(function (t) {
|
|
174
|
-
u.value = t, i(u);
|
|
175
|
-
}, function (t) {
|
|
176
|
-
return invoke("throw", t, i, a);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
a(c.arg);
|
|
180
|
-
}
|
|
181
|
-
var r;
|
|
182
|
-
o(this, "_invoke", {
|
|
183
|
-
value: function (t, n) {
|
|
184
|
-
function callInvokeWithMethodAndArg() {
|
|
185
|
-
return new e(function (e, r) {
|
|
186
|
-
invoke(t, n, e, r);
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
function makeInvokeMethod(e, r, n) {
|
|
194
|
-
var o = h;
|
|
195
|
-
return function (i, a) {
|
|
196
|
-
if (o === f) throw Error("Generator is already running");
|
|
197
|
-
if (o === s) {
|
|
198
|
-
if ("throw" === i) throw a;
|
|
199
|
-
return {
|
|
200
|
-
value: t,
|
|
201
|
-
done: !0
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
for (n.method = i, n.arg = a;;) {
|
|
205
|
-
var c = n.delegate;
|
|
206
|
-
if (c) {
|
|
207
|
-
var u = maybeInvokeDelegate(c, n);
|
|
208
|
-
if (u) {
|
|
209
|
-
if (u === y) continue;
|
|
210
|
-
return u;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
214
|
-
if (o === h) throw o = s, n.arg;
|
|
215
|
-
n.dispatchException(n.arg);
|
|
216
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
217
|
-
o = f;
|
|
218
|
-
var p = tryCatch(e, r, n);
|
|
219
|
-
if ("normal" === p.type) {
|
|
220
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
221
|
-
return {
|
|
222
|
-
value: p.arg,
|
|
223
|
-
done: n.done
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
function maybeInvokeDelegate(e, r) {
|
|
231
|
-
var n = r.method,
|
|
232
|
-
o = e.iterator[n];
|
|
233
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
234
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
235
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
236
|
-
var a = i.arg;
|
|
237
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
238
|
-
}
|
|
239
|
-
function pushTryEntry(t) {
|
|
240
|
-
var e = {
|
|
241
|
-
tryLoc: t[0]
|
|
242
|
-
};
|
|
243
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
244
|
-
}
|
|
245
|
-
function resetTryEntry(t) {
|
|
246
|
-
var e = t.completion || {};
|
|
247
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
248
|
-
}
|
|
249
|
-
function Context(t) {
|
|
250
|
-
this.tryEntries = [{
|
|
251
|
-
tryLoc: "root"
|
|
252
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
253
|
-
}
|
|
254
|
-
function values(e) {
|
|
255
|
-
if (e || "" === e) {
|
|
256
|
-
var r = e[a];
|
|
257
|
-
if (r) return r.call(e);
|
|
258
|
-
if ("function" == typeof e.next) return e;
|
|
259
|
-
if (!isNaN(e.length)) {
|
|
260
|
-
var o = -1,
|
|
261
|
-
i = function next() {
|
|
262
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
263
|
-
return next.value = t, next.done = !0, next;
|
|
264
|
-
};
|
|
265
|
-
return i.next = i;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
269
|
-
}
|
|
270
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
271
|
-
value: GeneratorFunctionPrototype,
|
|
272
|
-
configurable: !0
|
|
273
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
274
|
-
value: GeneratorFunction,
|
|
275
|
-
configurable: !0
|
|
276
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
277
|
-
var e = "function" == typeof t && t.constructor;
|
|
278
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
279
|
-
}, e.mark = function (t) {
|
|
280
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
281
|
-
}, e.awrap = function (t) {
|
|
282
|
-
return {
|
|
283
|
-
__await: t
|
|
284
|
-
};
|
|
285
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
286
|
-
return this;
|
|
287
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
288
|
-
void 0 === i && (i = Promise);
|
|
289
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
290
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
291
|
-
return t.done ? t.value : a.next();
|
|
292
|
-
});
|
|
293
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
294
|
-
return this;
|
|
295
|
-
}), define(g, "toString", function () {
|
|
296
|
-
return "[object Generator]";
|
|
297
|
-
}), e.keys = function (t) {
|
|
298
|
-
var e = Object(t),
|
|
299
|
-
r = [];
|
|
300
|
-
for (var n in e) r.push(n);
|
|
301
|
-
return r.reverse(), function next() {
|
|
302
|
-
for (; r.length;) {
|
|
303
|
-
var t = r.pop();
|
|
304
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
305
|
-
}
|
|
306
|
-
return next.done = !0, next;
|
|
307
|
-
};
|
|
308
|
-
}, e.values = values, Context.prototype = {
|
|
309
|
-
constructor: Context,
|
|
310
|
-
reset: function (e) {
|
|
311
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
312
|
-
},
|
|
313
|
-
stop: function () {
|
|
314
|
-
this.done = !0;
|
|
315
|
-
var t = this.tryEntries[0].completion;
|
|
316
|
-
if ("throw" === t.type) throw t.arg;
|
|
317
|
-
return this.rval;
|
|
318
|
-
},
|
|
319
|
-
dispatchException: function (e) {
|
|
320
|
-
if (this.done) throw e;
|
|
321
|
-
var r = this;
|
|
322
|
-
function handle(n, o) {
|
|
323
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
324
|
-
}
|
|
325
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
326
|
-
var i = this.tryEntries[o],
|
|
327
|
-
a = i.completion;
|
|
328
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
329
|
-
if (i.tryLoc <= this.prev) {
|
|
330
|
-
var c = n.call(i, "catchLoc"),
|
|
331
|
-
u = n.call(i, "finallyLoc");
|
|
332
|
-
if (c && u) {
|
|
333
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
334
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
335
|
-
} else if (c) {
|
|
336
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
337
|
-
} else {
|
|
338
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
339
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
abrupt: function (t, e) {
|
|
345
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
346
|
-
var o = this.tryEntries[r];
|
|
347
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
348
|
-
var i = o;
|
|
349
|
-
break;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
353
|
-
var a = i ? i.completion : {};
|
|
354
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
355
|
-
},
|
|
356
|
-
complete: function (t, e) {
|
|
357
|
-
if ("throw" === t.type) throw t.arg;
|
|
358
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
359
|
-
},
|
|
360
|
-
finish: function (t) {
|
|
361
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
362
|
-
var r = this.tryEntries[e];
|
|
363
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
catch: function (t) {
|
|
367
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
368
|
-
var r = this.tryEntries[e];
|
|
369
|
-
if (r.tryLoc === t) {
|
|
370
|
-
var n = r.completion;
|
|
371
|
-
if ("throw" === n.type) {
|
|
372
|
-
var o = n.arg;
|
|
373
|
-
resetTryEntry(r);
|
|
374
|
-
}
|
|
375
|
-
return o;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
throw Error("illegal catch attempt");
|
|
379
|
-
},
|
|
380
|
-
delegateYield: function (e, r, n) {
|
|
381
|
-
return this.delegate = {
|
|
382
|
-
iterator: values(e),
|
|
383
|
-
resultName: r,
|
|
384
|
-
nextLoc: n
|
|
385
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
386
|
-
}
|
|
387
|
-
}, e;
|
|
388
|
-
}
|
|
389
|
-
function _setPrototypeOf(t, e) {
|
|
390
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
391
|
-
return t.__proto__ = e, t;
|
|
392
|
-
}, _setPrototypeOf(t, e);
|
|
393
|
-
}
|
|
394
|
-
function _unsupportedIterableToArray(r, a) {
|
|
395
|
-
if (r) {
|
|
396
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
397
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
398
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
var VercelDeployer = /*#__PURE__*/function (_MastraDeployer) {
|
|
403
|
-
function VercelDeployer(_ref) {
|
|
404
|
-
var scope = _ref.scope,
|
|
405
|
-
env = _ref.env,
|
|
406
|
-
projectName = _ref.projectName;
|
|
407
|
-
return _MastraDeployer.call(this, {
|
|
408
|
-
scope: scope,
|
|
409
|
-
env: env,
|
|
410
|
-
projectName: projectName
|
|
411
|
-
}) || this;
|
|
412
|
-
}
|
|
413
|
-
_inheritsLoose(VercelDeployer, _MastraDeployer);
|
|
414
|
-
var _proto = VercelDeployer.prototype;
|
|
415
|
-
_proto.writeFiles = function writeFiles(_ref2) {
|
|
416
|
-
var dir = _ref2.dir;
|
|
417
|
-
this.writeIndex({
|
|
418
|
-
dir: dir
|
|
419
|
-
});
|
|
420
|
-
fs.writeFileSync(path.join(dir, 'vercel.json'), JSON.stringify({
|
|
421
|
-
version: 2,
|
|
422
|
-
installCommand: 'npm install --omit=dev',
|
|
423
|
-
builds: [{
|
|
424
|
-
src: 'index.mjs',
|
|
425
|
-
use: '@vercel/node',
|
|
426
|
-
config: {
|
|
427
|
-
includeFiles: ['**']
|
|
428
|
-
}
|
|
429
|
-
}],
|
|
430
|
-
routes: [{
|
|
431
|
-
src: '/(.*)',
|
|
432
|
-
dest: 'index.mjs'
|
|
433
|
-
}]
|
|
434
|
-
}, null, 2));
|
|
435
|
-
};
|
|
436
|
-
_proto.getProjectId = function getProjectId(_ref3) {
|
|
437
|
-
var dir = _ref3.dir;
|
|
438
|
-
var projectJsonPath = path.join(dir, '.vercel', 'project.json');
|
|
439
|
-
try {
|
|
440
|
-
var projectJson = JSON.parse(fs.readFileSync(projectJsonPath, 'utf-8'));
|
|
441
|
-
return projectJson.projectId;
|
|
442
|
-
} catch (error) {
|
|
443
|
-
throw new Error('Could not find project ID. Make sure the project has been deployed first.');
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
_proto.syncEnv = /*#__PURE__*/function () {
|
|
447
|
-
var _syncEnv = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref4) {
|
|
448
|
-
var scope, dir, token, envFiles, envVars, _iterator, _step, file, vars, vercelEnvVars, projectId, response, error;
|
|
449
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
450
|
-
while (1) switch (_context.prev = _context.next) {
|
|
451
|
-
case 0:
|
|
452
|
-
scope = _ref4.scope, dir = _ref4.dir, token = _ref4.token;
|
|
453
|
-
envFiles = this.getEnvFiles();
|
|
454
|
-
envVars = [];
|
|
455
|
-
for (_iterator = _createForOfIteratorHelperLoose(envFiles); !(_step = _iterator()).done;) {
|
|
456
|
-
file = _step.value;
|
|
457
|
-
vars = this.parseEnvFile(file);
|
|
458
|
-
envVars.push.apply(envVars, vars);
|
|
459
|
-
}
|
|
460
|
-
console.log('Syncing environment variables...');
|
|
461
|
-
// Transform env vars into the format expected by Vercel API
|
|
462
|
-
vercelEnvVars = envVars.map(function (envVar) {
|
|
463
|
-
var _envVar$split = envVar.split('='),
|
|
464
|
-
key = _envVar$split[0],
|
|
465
|
-
value = _envVar$split[1];
|
|
466
|
-
if (!key || !value) {
|
|
467
|
-
throw new Error("Invalid environment variable format: " + envVar);
|
|
468
|
-
}
|
|
469
|
-
return {
|
|
470
|
-
key: key,
|
|
471
|
-
value: value,
|
|
472
|
-
target: ['production', 'preview', 'development'],
|
|
473
|
-
type: 'plain'
|
|
474
|
-
};
|
|
475
|
-
});
|
|
476
|
-
_context.prev = 6;
|
|
477
|
-
projectId = this.getProjectId({
|
|
478
|
-
dir: dir
|
|
479
|
-
});
|
|
480
|
-
_context.next = 10;
|
|
481
|
-
return fetch("https://api.vercel.com/v10/projects/" + projectId + "/env?teamId=" + scope + "&upsert=true", {
|
|
482
|
-
method: 'POST',
|
|
483
|
-
headers: {
|
|
484
|
-
Authorization: "Bearer " + token,
|
|
485
|
-
'Content-Type': 'application/json'
|
|
486
|
-
},
|
|
487
|
-
body: JSON.stringify(vercelEnvVars)
|
|
488
|
-
});
|
|
489
|
-
case 10:
|
|
490
|
-
response = _context.sent;
|
|
491
|
-
if (response.ok) {
|
|
492
|
-
_context.next = 16;
|
|
493
|
-
break;
|
|
494
|
-
}
|
|
495
|
-
_context.next = 14;
|
|
496
|
-
return response.json();
|
|
497
|
-
case 14:
|
|
498
|
-
error = _context.sent;
|
|
499
|
-
throw new Error("Failed to sync environment variables: " + error.message);
|
|
500
|
-
case 16:
|
|
501
|
-
console.log('✓ Successfully synced environment variables');
|
|
502
|
-
_context.next = 23;
|
|
503
|
-
break;
|
|
504
|
-
case 19:
|
|
505
|
-
_context.prev = 19;
|
|
506
|
-
_context.t0 = _context["catch"](6);
|
|
507
|
-
if (_context.t0 instanceof Error) {
|
|
508
|
-
console.error('Failed to sync environment variables:', _context.t0.message);
|
|
509
|
-
} else {
|
|
510
|
-
console.error('Failed to sync environment variables:', _context.t0);
|
|
511
|
-
}
|
|
512
|
-
throw _context.t0;
|
|
513
|
-
case 23:
|
|
514
|
-
case "end":
|
|
515
|
-
return _context.stop();
|
|
516
|
-
}
|
|
517
|
-
}, _callee, this, [[6, 19]]);
|
|
518
|
-
}));
|
|
519
|
-
function syncEnv(_x) {
|
|
520
|
-
return _syncEnv.apply(this, arguments);
|
|
521
|
-
}
|
|
522
|
-
return syncEnv;
|
|
523
|
-
}();
|
|
524
|
-
_proto.deploy = /*#__PURE__*/function () {
|
|
525
|
-
var _deploy = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
|
|
526
|
-
var dir, token, envFiles, envVars, _iterator2, _step2, file, vars, commandArgs, _i, _envVars, envVar;
|
|
527
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
528
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
529
|
-
case 0:
|
|
530
|
-
dir = _ref5.dir, token = _ref5.token;
|
|
531
|
-
// Get env vars for initial deployment
|
|
532
|
-
envFiles = this.getEnvFiles();
|
|
533
|
-
envVars = [];
|
|
534
|
-
for (_iterator2 = _createForOfIteratorHelperLoose(envFiles); !(_step2 = _iterator2()).done;) {
|
|
535
|
-
file = _step2.value;
|
|
536
|
-
vars = this.parseEnvFile(file);
|
|
537
|
-
envVars.push.apply(envVars, vars);
|
|
538
|
-
}
|
|
539
|
-
// Create the command array with base arguments
|
|
540
|
-
commandArgs = ['--scope', this.scope, '--cwd', dir, 'deploy', '--token', token, '--yes'].concat(this.projectName ? ['--name', this.projectName] : []); // Add env vars to initial deployment
|
|
541
|
-
for (_i = 0, _envVars = envVars; _i < _envVars.length; _i++) {
|
|
542
|
-
envVar = _envVars[_i];
|
|
543
|
-
commandArgs.push('--env', envVar);
|
|
544
|
-
}
|
|
545
|
-
// Run the Vercel deploy command
|
|
546
|
-
child_process__namespace.execSync("vercel " + commandArgs.join(' '), {
|
|
547
|
-
cwd: dir,
|
|
548
|
-
env: _extends({}, this.env, {
|
|
549
|
-
PATH: process.env.PATH
|
|
550
|
-
}),
|
|
551
|
-
stdio: 'inherit'
|
|
552
|
-
});
|
|
553
|
-
console.log('Deployment started on Vercel. You can wait for it to finish or exit this command.');
|
|
554
|
-
if (!(envVars.length > 0)) {
|
|
555
|
-
_context2.next = 13;
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
_context2.next = 11;
|
|
559
|
-
return this.syncEnv({
|
|
560
|
-
scope: this.scope,
|
|
561
|
-
dir: dir,
|
|
562
|
-
token: token
|
|
563
|
-
});
|
|
564
|
-
case 11:
|
|
565
|
-
_context2.next = 14;
|
|
566
|
-
break;
|
|
567
|
-
case 13:
|
|
568
|
-
console.log('\nAdd your ENV vars to .env or your vercel dashboard.\n');
|
|
569
|
-
case 14:
|
|
570
|
-
case "end":
|
|
571
|
-
return _context2.stop();
|
|
572
|
-
}
|
|
573
|
-
}, _callee2, this);
|
|
574
|
-
}));
|
|
575
|
-
function deploy(_x2) {
|
|
576
|
-
return _deploy.apply(this, arguments);
|
|
577
|
-
}
|
|
578
|
-
return deploy;
|
|
579
|
-
}();
|
|
580
|
-
_proto.writeIndex = function writeIndex(_ref6) {
|
|
581
|
-
var dir = _ref6.dir;
|
|
582
|
-
fs.writeFileSync(path.join(dir, 'index.mjs'), "\n import { handle } from 'hono/vercel'\n import { app } from './hono.mjs';\n export const GET = handle(app);\n export const POST = handle(app);\n ");
|
|
583
|
-
};
|
|
584
|
-
return VercelDeployer;
|
|
585
|
-
}(core.MastraDeployer);
|
|
586
|
-
|
|
587
|
-
exports.VercelDeployer = VercelDeployer;
|
|
588
|
-
//# sourceMappingURL=deployer-vercel.cjs.development.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployer-vercel.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["import { MastraDeployer } from '@mastra/core';\nimport * as child_process from 'child_process';\nimport { readFileSync, writeFileSync } from 'fs';\nimport { join } from 'path';\n\ninterface EnvVar {\n key: string;\n value: string;\n target: ('production' | 'preview' | 'development')[];\n type: 'plain' | 'secret';\n}\n\ninterface VercelError {\n message: string;\n code: string;\n}\n\nexport class VercelDeployer extends MastraDeployer {\n constructor({ scope, env, projectName }: { env?: Record<string, any>; scope: string; projectName: string }) {\n super({ scope, env, projectName });\n }\n writeFiles({ dir }: { dir: string }): void {\n this.writeIndex({ dir });\n\n writeFileSync(\n join(dir, 'vercel.json'),\n JSON.stringify(\n {\n version: 2,\n installCommand: 'npm install --omit=dev',\n builds: [\n {\n src: 'index.mjs',\n use: '@vercel/node',\n config: { includeFiles: ['**'] },\n },\n ],\n routes: [\n {\n src: '/(.*)',\n dest: 'index.mjs',\n },\n ],\n },\n null,\n 2,\n ),\n );\n }\n\n private getProjectId({ dir }: { dir: string }): string {\n const projectJsonPath = join(dir, '.vercel', 'project.json');\n try {\n const projectJson = JSON.parse(readFileSync(projectJsonPath, 'utf-8'));\n return projectJson.projectId;\n } catch (error) {\n throw new Error('Could not find project ID. Make sure the project has been deployed first.');\n }\n }\n\n async syncEnv({ scope, dir, token }: { token: string; dir: string; scope: string }) {\n const envFiles = this.getEnvFiles();\n const envVars: string[] = [];\n\n for (const file of envFiles) {\n const vars = this.parseEnvFile(file);\n envVars.push(...vars);\n }\n\n console.log('Syncing environment variables...');\n\n // Transform env vars into the format expected by Vercel API\n const vercelEnvVars: EnvVar[] = envVars.map(envVar => {\n const [key, value] = envVar.split('=');\n if (!key || !value) {\n throw new Error(`Invalid environment variable format: ${envVar}`);\n }\n return {\n key,\n value,\n target: ['production', 'preview', 'development'],\n type: 'plain',\n };\n });\n\n try {\n const projectId = this.getProjectId({ dir });\n\n const response = await fetch(`https://api.vercel.com/v10/projects/${projectId}/env?teamId=${scope}&upsert=true`, {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${token}`,\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(vercelEnvVars),\n });\n\n if (!response.ok) {\n const error = (await response.json()) as VercelError;\n throw new Error(`Failed to sync environment variables: ${error.message}`);\n }\n\n console.log('✓ Successfully synced environment variables');\n } catch (error) {\n if (error instanceof Error) {\n console.error('Failed to sync environment variables:', error.message);\n } else {\n console.error('Failed to sync environment variables:', error);\n }\n throw error;\n }\n }\n\n async deploy({ dir, token }: { dir: string; token: string }): Promise<void> {\n // Get env vars for initial deployment\n const envFiles = this.getEnvFiles();\n const envVars: string[] = [];\n\n for (const file of envFiles) {\n const vars = this.parseEnvFile(file);\n envVars.push(...vars);\n }\n\n // Create the command array with base arguments\n const commandArgs = [\n '--scope',\n this.scope as string,\n '--cwd',\n dir,\n 'deploy',\n '--token',\n token,\n '--yes',\n ...(this.projectName ? ['--name', this.projectName] : []),\n ];\n\n // Add env vars to initial deployment\n for (const envVar of envVars) {\n commandArgs.push('--env', envVar);\n }\n\n // Run the Vercel deploy command\n child_process.execSync(`vercel ${commandArgs.join(' ')}`, {\n cwd: dir,\n env: {\n ...this.env,\n PATH: process.env.PATH,\n },\n stdio: 'inherit',\n });\n\n console.log('Deployment started on Vercel. You can wait for it to finish or exit this command.');\n\n if (envVars.length > 0) {\n // Sync environment variables for future deployments\n await this.syncEnv({ scope: this.scope, dir, token });\n } else {\n console.log('\\nAdd your ENV vars to .env or your vercel dashboard.\\n');\n }\n }\n\n writeIndex({ dir }: { dir: string }): void {\n writeFileSync(\n join(dir, 'index.mjs'),\n `\n import { handle } from 'hono/vercel'\n import { app } from './hono.mjs';\n export const GET = handle(app);\n export const POST = handle(app);\n `,\n );\n }\n}\n"],"names":["VercelDeployer","_MastraDeployer","_ref","scope","env","projectName","call","_inheritsLoose","_proto","prototype","writeFiles","_ref2","dir","writeIndex","writeFileSync","join","JSON","stringify","version","installCommand","builds","src","use","config","includeFiles","routes","dest","getProjectId","_ref3","projectJsonPath","projectJson","parse","readFileSync","projectId","error","Error","syncEnv","_syncEnv","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref4","token","envFiles","envVars","_iterator","_step","file","vars","vercelEnvVars","response","wrap","_callee$","_context","prev","next","getEnvFiles","_createForOfIteratorHelperLoose","done","value","parseEnvFile","push","apply","console","log","map","envVar","_envVar$split","split","key","target","type","fetch","method","headers","Authorization","body","sent","ok","json","message","t0","stop","_x","arguments","deploy","_deploy","_callee2","_ref5","_iterator2","_step2","commandArgs","_i","_envVars","_callee2$","_context2","concat","length","child_process","execSync","cwd","_extends","PATH","process","stdio","_x2","_ref6","MastraDeployer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBaA,IAAAA,cAAe,0BAAAC,eAAA,EAAA;EAC1B,SAAAD,cAAAA,CAAAE,IAAA,EAA0G;AAAA,IAAA,IAA5FC,KAAK,GAAAD,IAAA,CAALC,KAAK;MAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;MAAEC,WAAW,GAAAH,IAAA,CAAXG,WAAW,CAAA;IAAA,OACnCJ,eAAA,CAAAK,IAAA,CAAM,IAAA,EAAA;AAAEH,MAAAA,KAAK,EAALA,KAAK;AAAEC,MAAAA,GAAG,EAAHA,GAAG;AAAEC,MAAAA,WAAW,EAAXA,WAAAA;AAAa,KAAA,CAAC,IAAA,IAAA,CAAA;AACpC,GAAA;EAACE,cAAA,CAAAP,cAAA,EAAAC,eAAA,CAAA,CAAA;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