eve-hub 0.16.187 → 0.16.188
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/hub/functions/.well-known/workflow/v1/flow.func/__step_registrations.mjs +322 -157
- package/hub/functions/.well-known/workflow/v1/flow.func/__step_registrations.mjs.debug.json +1 -0
- package/hub/functions/.well-known/workflow/v1/flow.func/hub/hub.mjs +14 -14
- package/hub/functions/.well-known/workflow/v1/flow.func/index.mjs +994 -760
- package/hub/functions/api/index.func/api/index.mjs +14 -14
- package/package.json +1 -1
|
@@ -17088,12 +17088,12 @@ function compileFn(schema, options) {
|
|
|
17088
17088
|
INVALID,
|
|
17089
17089
|
...ctx.constants.values()
|
|
17090
17090
|
];
|
|
17091
|
-
const
|
|
17091
|
+
const code2 = doc.content.join("\n");
|
|
17092
17092
|
const fullCode = options?.debug ? constantNames.length > 0 ? `// Constants: ${constantNames.join(", ")}
|
|
17093
|
-
${
|
|
17093
|
+
${code2}` : code2 : "";
|
|
17094
17094
|
const F = Function;
|
|
17095
17095
|
const factoryCode = `return (input) => {
|
|
17096
|
-
${
|
|
17096
|
+
${code2}
|
|
17097
17097
|
}`;
|
|
17098
17098
|
let fn;
|
|
17099
17099
|
try {
|
|
@@ -27620,6 +27620,12 @@ function hint(messages) {
|
|
|
27620
27620
|
const message = Array.isArray(messages) ? messages.join("\n") : messages;
|
|
27621
27621
|
return styles.info(`${internal_chalk_default.bold("hint:")} ${message}`);
|
|
27622
27622
|
}
|
|
27623
|
+
function docs(url3) {
|
|
27624
|
+
return styles.info(`${internal_chalk_default.bold("docs:")} ${url3}`);
|
|
27625
|
+
}
|
|
27626
|
+
function code(str) {
|
|
27627
|
+
return internal_chalk_default.italic(`${internal_chalk_default.dim("`")}${str}${internal_chalk_default.dim("`")}`);
|
|
27628
|
+
}
|
|
27623
27629
|
function dim(str) {
|
|
27624
27630
|
return internal_chalk_default.dim(str);
|
|
27625
27631
|
}
|
|
@@ -27632,6 +27638,23 @@ function red(str) {
|
|
|
27632
27638
|
function magenta(str) {
|
|
27633
27639
|
return internal_chalk_default.magenta(str);
|
|
27634
27640
|
}
|
|
27641
|
+
function frame(title, contents) {
|
|
27642
|
+
const result = [
|
|
27643
|
+
title
|
|
27644
|
+
];
|
|
27645
|
+
contents.forEach((content, index) => {
|
|
27646
|
+
const lines = content.split("\n");
|
|
27647
|
+
const isLastContent = index === contents.length - 1;
|
|
27648
|
+
const firstLinePrefix = isLastContent ? "\u2570\u25B6 " : "\u251C\u25B6 ";
|
|
27649
|
+
const continuationPrefix = isLastContent ? " " : "\u2502 ";
|
|
27650
|
+
const framedLines = lines.map((line, lineIndex) => {
|
|
27651
|
+
const prefix = lineIndex === 0 ? firstLinePrefix : continuationPrefix;
|
|
27652
|
+
return `${prefix}${line}`;
|
|
27653
|
+
});
|
|
27654
|
+
result.push(...framedLines);
|
|
27655
|
+
});
|
|
27656
|
+
return result.join("\n");
|
|
27657
|
+
}
|
|
27635
27658
|
var styles;
|
|
27636
27659
|
var init_ansi = __esm({
|
|
27637
27660
|
"node_modules/@workflow/errors/dist/ansi.js"() {
|
|
@@ -27644,10 +27667,13 @@ var init_ansi = __esm({
|
|
|
27644
27667
|
error: internal_chalk_default.red
|
|
27645
27668
|
};
|
|
27646
27669
|
__name(hint, "hint");
|
|
27670
|
+
__name(docs, "docs");
|
|
27671
|
+
__name(code, "code");
|
|
27647
27672
|
__name(dim, "dim");
|
|
27648
27673
|
__name(bold, "bold");
|
|
27649
27674
|
__name(red, "red");
|
|
27650
27675
|
__name(magenta, "magenta");
|
|
27676
|
+
__name(frame, "frame");
|
|
27651
27677
|
}
|
|
27652
27678
|
});
|
|
27653
27679
|
|
|
@@ -30822,9 +30848,9 @@ var init_helpers = __esm({
|
|
|
30822
30848
|
function isRetryableWakeError(error121, isDeploymentUnavailableError) {
|
|
30823
30849
|
if (isDeploymentUnavailableError?.(error121)) return false;
|
|
30824
30850
|
const status = error121 ?? {};
|
|
30825
|
-
const
|
|
30826
|
-
if (typeof
|
|
30827
|
-
return
|
|
30851
|
+
const code2 = status.status ?? status.statusCode;
|
|
30852
|
+
if (typeof code2 === "number") {
|
|
30853
|
+
return code2 >= 500 || code2 === 408 || code2 === 429;
|
|
30828
30854
|
}
|
|
30829
30855
|
const name = error121?.name;
|
|
30830
30856
|
return name !== "BadRequestError" && name !== "UnauthorizedError" && name !== "ForbiddenError";
|
|
@@ -44845,12 +44871,12 @@ function compileFn2(schema, options) {
|
|
|
44845
44871
|
INVALID2,
|
|
44846
44872
|
...ctx.constants.values()
|
|
44847
44873
|
];
|
|
44848
|
-
const
|
|
44874
|
+
const code2 = doc.content.join("\n");
|
|
44849
44875
|
const fullCode = options?.debug ? constantNames.length > 0 ? `// Constants: ${constantNames.join(", ")}
|
|
44850
|
-
${
|
|
44876
|
+
${code2}` : code2 : "";
|
|
44851
44877
|
const F = Function;
|
|
44852
44878
|
const factoryCode = `return (input) => {
|
|
44853
|
-
${
|
|
44879
|
+
${code2}
|
|
44854
44880
|
}`;
|
|
44855
44881
|
let fn;
|
|
44856
44882
|
try {
|
|
@@ -53903,8 +53929,8 @@ var require_validation = __commonJS({
|
|
|
53903
53929
|
0
|
|
53904
53930
|
// 112 - 127
|
|
53905
53931
|
];
|
|
53906
|
-
function isValidStatusCode(
|
|
53907
|
-
return
|
|
53932
|
+
function isValidStatusCode(code2) {
|
|
53933
|
+
return code2 >= 1e3 && code2 <= 1014 && code2 !== 1004 && code2 !== 1005 && code2 !== 1006 || code2 >= 3e3 && code2 <= 4999;
|
|
53908
53934
|
}
|
|
53909
53935
|
__name(isValidStatusCode, "isValidStatusCode");
|
|
53910
53936
|
function _isValidUTF8(buf) {
|
|
@@ -53984,23 +54010,23 @@ var require_extension = __commonJS({
|
|
|
53984
54010
|
let extensionName;
|
|
53985
54011
|
let paramName;
|
|
53986
54012
|
let start2 = -1;
|
|
53987
|
-
let
|
|
54013
|
+
let code2 = -1;
|
|
53988
54014
|
let end = -1;
|
|
53989
54015
|
let i2 = 0;
|
|
53990
54016
|
for (; i2 < header.length; i2++) {
|
|
53991
|
-
|
|
54017
|
+
code2 = header.charCodeAt(i2);
|
|
53992
54018
|
if (extensionName === void 0) {
|
|
53993
|
-
if (end === -1 && tokenChars[
|
|
54019
|
+
if (end === -1 && tokenChars[code2] === 1) {
|
|
53994
54020
|
if (start2 === -1) start2 = i2;
|
|
53995
|
-
} else if (i2 !== 0 && (
|
|
54021
|
+
} else if (i2 !== 0 && (code2 === 32 || code2 === 9)) {
|
|
53996
54022
|
if (end === -1 && start2 !== -1) end = i2;
|
|
53997
|
-
} else if (
|
|
54023
|
+
} else if (code2 === 59 || code2 === 44) {
|
|
53998
54024
|
if (start2 === -1) {
|
|
53999
54025
|
throw new SyntaxError(`Unexpected character at index ${i2}`);
|
|
54000
54026
|
}
|
|
54001
54027
|
if (end === -1) end = i2;
|
|
54002
54028
|
const name = header.slice(start2, end);
|
|
54003
|
-
if (
|
|
54029
|
+
if (code2 === 44) {
|
|
54004
54030
|
push(offers, name, params);
|
|
54005
54031
|
params = /* @__PURE__ */ Object.create(null);
|
|
54006
54032
|
} else {
|
|
@@ -54011,23 +54037,23 @@ var require_extension = __commonJS({
|
|
|
54011
54037
|
throw new SyntaxError(`Unexpected character at index ${i2}`);
|
|
54012
54038
|
}
|
|
54013
54039
|
} else if (paramName === void 0) {
|
|
54014
|
-
if (end === -1 && tokenChars[
|
|
54040
|
+
if (end === -1 && tokenChars[code2] === 1) {
|
|
54015
54041
|
if (start2 === -1) start2 = i2;
|
|
54016
|
-
} else if (
|
|
54042
|
+
} else if (code2 === 32 || code2 === 9) {
|
|
54017
54043
|
if (end === -1 && start2 !== -1) end = i2;
|
|
54018
|
-
} else if (
|
|
54044
|
+
} else if (code2 === 59 || code2 === 44) {
|
|
54019
54045
|
if (start2 === -1) {
|
|
54020
54046
|
throw new SyntaxError(`Unexpected character at index ${i2}`);
|
|
54021
54047
|
}
|
|
54022
54048
|
if (end === -1) end = i2;
|
|
54023
54049
|
push(params, header.slice(start2, end), true);
|
|
54024
|
-
if (
|
|
54050
|
+
if (code2 === 44) {
|
|
54025
54051
|
push(offers, extensionName, params);
|
|
54026
54052
|
params = /* @__PURE__ */ Object.create(null);
|
|
54027
54053
|
extensionName = void 0;
|
|
54028
54054
|
}
|
|
54029
54055
|
start2 = end = -1;
|
|
54030
|
-
} else if (
|
|
54056
|
+
} else if (code2 === 61 && start2 !== -1 && end === -1) {
|
|
54031
54057
|
paramName = header.slice(start2, i2);
|
|
54032
54058
|
start2 = end = -1;
|
|
54033
54059
|
} else {
|
|
@@ -54035,30 +54061,30 @@ var require_extension = __commonJS({
|
|
|
54035
54061
|
}
|
|
54036
54062
|
} else {
|
|
54037
54063
|
if (isEscaping) {
|
|
54038
|
-
if (tokenChars[
|
|
54064
|
+
if (tokenChars[code2] !== 1) {
|
|
54039
54065
|
throw new SyntaxError(`Unexpected character at index ${i2}`);
|
|
54040
54066
|
}
|
|
54041
54067
|
if (start2 === -1) start2 = i2;
|
|
54042
54068
|
else if (!mustUnescape) mustUnescape = true;
|
|
54043
54069
|
isEscaping = false;
|
|
54044
54070
|
} else if (inQuotes) {
|
|
54045
|
-
if (tokenChars[
|
|
54071
|
+
if (tokenChars[code2] === 1) {
|
|
54046
54072
|
if (start2 === -1) start2 = i2;
|
|
54047
|
-
} else if (
|
|
54073
|
+
} else if (code2 === 34 && start2 !== -1) {
|
|
54048
54074
|
inQuotes = false;
|
|
54049
54075
|
end = i2;
|
|
54050
|
-
} else if (
|
|
54076
|
+
} else if (code2 === 92) {
|
|
54051
54077
|
isEscaping = true;
|
|
54052
54078
|
} else {
|
|
54053
54079
|
throw new SyntaxError(`Unexpected character at index ${i2}`);
|
|
54054
54080
|
}
|
|
54055
|
-
} else if (
|
|
54081
|
+
} else if (code2 === 34 && header.charCodeAt(i2 - 1) === 61) {
|
|
54056
54082
|
inQuotes = true;
|
|
54057
|
-
} else if (end === -1 && tokenChars[
|
|
54083
|
+
} else if (end === -1 && tokenChars[code2] === 1) {
|
|
54058
54084
|
if (start2 === -1) start2 = i2;
|
|
54059
|
-
} else if (start2 !== -1 && (
|
|
54085
|
+
} else if (start2 !== -1 && (code2 === 32 || code2 === 9)) {
|
|
54060
54086
|
if (end === -1) end = i2;
|
|
54061
|
-
} else if (
|
|
54087
|
+
} else if (code2 === 59 || code2 === 44) {
|
|
54062
54088
|
if (start2 === -1) {
|
|
54063
54089
|
throw new SyntaxError(`Unexpected character at index ${i2}`);
|
|
54064
54090
|
}
|
|
@@ -54069,7 +54095,7 @@ var require_extension = __commonJS({
|
|
|
54069
54095
|
mustUnescape = false;
|
|
54070
54096
|
}
|
|
54071
54097
|
push(params, paramName, value);
|
|
54072
|
-
if (
|
|
54098
|
+
if (code2 === 44) {
|
|
54073
54099
|
push(offers, extensionName, params);
|
|
54074
54100
|
params = /* @__PURE__ */ Object.create(null);
|
|
54075
54101
|
extensionName = void 0;
|
|
@@ -54081,7 +54107,7 @@ var require_extension = __commonJS({
|
|
|
54081
54107
|
}
|
|
54082
54108
|
}
|
|
54083
54109
|
}
|
|
54084
|
-
if (start2 === -1 || inQuotes ||
|
|
54110
|
+
if (start2 === -1 || inQuotes || code2 === 32 || code2 === 9) {
|
|
54085
54111
|
throw new SyntaxError("Unexpected end of input");
|
|
54086
54112
|
}
|
|
54087
54113
|
if (end === -1) end = i2;
|
|
@@ -55069,9 +55095,9 @@ var require_receiver = __commonJS({
|
|
|
55069
55095
|
this.emit("conclude", 1005, EMPTY_BUFFER);
|
|
55070
55096
|
this.end();
|
|
55071
55097
|
} else {
|
|
55072
|
-
const
|
|
55073
|
-
if (!isValidStatusCode(
|
|
55074
|
-
const error121 = this.createError(RangeError, `invalid status code ${
|
|
55098
|
+
const code2 = data2.readUInt16BE(0);
|
|
55099
|
+
if (!isValidStatusCode(code2)) {
|
|
55100
|
+
const error121 = this.createError(RangeError, `invalid status code ${code2}`, true, 1002, "WS_ERR_INVALID_CLOSE_CODE");
|
|
55075
55101
|
cb(error121);
|
|
55076
55102
|
return;
|
|
55077
55103
|
}
|
|
@@ -55082,7 +55108,7 @@ var require_receiver = __commonJS({
|
|
|
55082
55108
|
return;
|
|
55083
55109
|
}
|
|
55084
55110
|
this._loop = false;
|
|
55085
|
-
this.emit("conclude",
|
|
55111
|
+
this.emit("conclude", code2, buf);
|
|
55086
55112
|
this.end();
|
|
55087
55113
|
}
|
|
55088
55114
|
this._state = GET_INFO;
|
|
@@ -55281,22 +55307,22 @@ var require_sender = __commonJS({
|
|
|
55281
55307
|
* @param {Function} [cb] Callback
|
|
55282
55308
|
* @public
|
|
55283
55309
|
*/
|
|
55284
|
-
close(
|
|
55310
|
+
close(code2, data2, mask, cb) {
|
|
55285
55311
|
let buf;
|
|
55286
|
-
if (
|
|
55312
|
+
if (code2 === void 0) {
|
|
55287
55313
|
buf = EMPTY_BUFFER;
|
|
55288
|
-
} else if (typeof
|
|
55314
|
+
} else if (typeof code2 !== "number" || !isValidStatusCode(code2)) {
|
|
55289
55315
|
throw new TypeError("First argument must be a valid error code number");
|
|
55290
55316
|
} else if (data2 === void 0 || !data2.length) {
|
|
55291
55317
|
buf = Buffer.allocUnsafe(2);
|
|
55292
|
-
buf.writeUInt16BE(
|
|
55318
|
+
buf.writeUInt16BE(code2, 0);
|
|
55293
55319
|
} else {
|
|
55294
55320
|
const length = Buffer.byteLength(data2);
|
|
55295
55321
|
if (length > 123) {
|
|
55296
55322
|
throw new RangeError("The message must not be greater than 123 bytes");
|
|
55297
55323
|
}
|
|
55298
55324
|
buf = Buffer.allocUnsafe(2 + length);
|
|
55299
|
-
buf.writeUInt16BE(
|
|
55325
|
+
buf.writeUInt16BE(code2, 0);
|
|
55300
55326
|
if (typeof data2 === "string") {
|
|
55301
55327
|
buf.write(data2, 2);
|
|
55302
55328
|
} else if (isUint8Array(data2)) {
|
|
@@ -55681,12 +55707,12 @@ var require_subprotocol = __commonJS({
|
|
|
55681
55707
|
let end = -1;
|
|
55682
55708
|
let i2 = 0;
|
|
55683
55709
|
for (i2; i2 < header.length; i2++) {
|
|
55684
|
-
const
|
|
55685
|
-
if (end === -1 && tokenChars[
|
|
55710
|
+
const code2 = header.charCodeAt(i2);
|
|
55711
|
+
if (end === -1 && tokenChars[code2] === 1) {
|
|
55686
55712
|
if (start2 === -1) start2 = i2;
|
|
55687
|
-
} else if (i2 !== 0 && (
|
|
55713
|
+
} else if (i2 !== 0 && (code2 === 32 || code2 === 9)) {
|
|
55688
55714
|
if (end === -1 && start2 !== -1) end = i2;
|
|
55689
|
-
} else if (
|
|
55715
|
+
} else if (code2 === 44) {
|
|
55690
55716
|
if (start2 === -1) {
|
|
55691
55717
|
throw new SyntaxError(`Unexpected character at index ${i2}`);
|
|
55692
55718
|
}
|
|
@@ -55907,9 +55933,9 @@ var require_event_target = __commonJS({
|
|
|
55907
55933
|
callListener(handler, this, event);
|
|
55908
55934
|
}, "onMessage");
|
|
55909
55935
|
} else if (type === "close") {
|
|
55910
|
-
wrapper = /* @__PURE__ */ __name(function onClose(
|
|
55936
|
+
wrapper = /* @__PURE__ */ __name(function onClose(code2, message) {
|
|
55911
55937
|
const event = new CloseEvent("close", {
|
|
55912
|
-
code,
|
|
55938
|
+
code: code2,
|
|
55913
55939
|
reason: message.toString(),
|
|
55914
55940
|
wasClean: this._closeFrameReceived && this._closeFrameSent
|
|
55915
55941
|
});
|
|
@@ -56245,7 +56271,7 @@ var require_websocket = __commonJS({
|
|
|
56245
56271
|
* closing
|
|
56246
56272
|
* @public
|
|
56247
56273
|
*/
|
|
56248
|
-
close(
|
|
56274
|
+
close(code2, data2) {
|
|
56249
56275
|
if (this.readyState === _WebSocket.CLOSED) return;
|
|
56250
56276
|
if (this.readyState === _WebSocket.CONNECTING) {
|
|
56251
56277
|
const msg = "WebSocket was closed before the connection was established";
|
|
@@ -56258,7 +56284,7 @@ var require_websocket = __commonJS({
|
|
|
56258
56284
|
}
|
|
56259
56285
|
return;
|
|
56260
56286
|
}
|
|
56261
|
-
this._sender.close(
|
|
56287
|
+
this._sender.close(code2, data2, !this._isServer, (err) => {
|
|
56262
56288
|
if (err) return;
|
|
56263
56289
|
this._closeFrameSent = true;
|
|
56264
56290
|
if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) {
|
|
@@ -56789,16 +56815,16 @@ var require_websocket = __commonJS({
|
|
|
56789
56815
|
}
|
|
56790
56816
|
}
|
|
56791
56817
|
__name(sendAfterClose, "sendAfterClose");
|
|
56792
|
-
function receiverOnConclude(
|
|
56818
|
+
function receiverOnConclude(code2, reason) {
|
|
56793
56819
|
const websocket = this[kWebSocket];
|
|
56794
56820
|
websocket._closeFrameReceived = true;
|
|
56795
56821
|
websocket._closeMessage = reason;
|
|
56796
|
-
websocket._closeCode =
|
|
56822
|
+
websocket._closeCode = code2;
|
|
56797
56823
|
if (websocket._socket[kWebSocket] === void 0) return;
|
|
56798
56824
|
websocket._socket.removeListener("data", socketOnData);
|
|
56799
56825
|
process.nextTick(resume, websocket._socket);
|
|
56800
|
-
if (
|
|
56801
|
-
else websocket.close(
|
|
56826
|
+
if (code2 === 1005) websocket.close();
|
|
56827
|
+
else websocket.close(code2, reason);
|
|
56802
56828
|
}
|
|
56803
56829
|
__name(receiverOnConclude, "receiverOnConclude");
|
|
56804
56830
|
function receiverOnDrain() {
|
|
@@ -57173,9 +57199,9 @@ var require_websocket_server = __commonJS({
|
|
|
57173
57199
|
req
|
|
57174
57200
|
};
|
|
57175
57201
|
if (this.options.verifyClient.length === 2) {
|
|
57176
|
-
this.options.verifyClient(info, (verified,
|
|
57202
|
+
this.options.verifyClient(info, (verified, code2, message, headers) => {
|
|
57177
57203
|
if (!verified) {
|
|
57178
|
-
return abortHandshake(socket,
|
|
57204
|
+
return abortHandshake(socket, code2 || 401, message, headers);
|
|
57179
57205
|
}
|
|
57180
57206
|
this.completeUpgrade(extensions, key, protocols, req, socket, head, cb);
|
|
57181
57207
|
});
|
|
@@ -57270,8 +57296,8 @@ var require_websocket_server = __commonJS({
|
|
|
57270
57296
|
this.destroy();
|
|
57271
57297
|
}
|
|
57272
57298
|
__name(socketOnError, "socketOnError");
|
|
57273
|
-
function abortHandshake(socket,
|
|
57274
|
-
message = message || http.STATUS_CODES[
|
|
57299
|
+
function abortHandshake(socket, code2, message, headers) {
|
|
57300
|
+
message = message || http.STATUS_CODES[code2];
|
|
57275
57301
|
headers = {
|
|
57276
57302
|
Connection: "close",
|
|
57277
57303
|
"Content-Type": "text/html",
|
|
@@ -57279,17 +57305,17 @@ var require_websocket_server = __commonJS({
|
|
|
57279
57305
|
...headers
|
|
57280
57306
|
};
|
|
57281
57307
|
socket.once("finish", socket.destroy);
|
|
57282
|
-
socket.end(`HTTP/1.1 ${
|
|
57308
|
+
socket.end(`HTTP/1.1 ${code2} ${http.STATUS_CODES[code2]}\r
|
|
57283
57309
|
` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message);
|
|
57284
57310
|
}
|
|
57285
57311
|
__name(abortHandshake, "abortHandshake");
|
|
57286
|
-
function abortHandshakeOrEmitwsClientError(server, req, socket,
|
|
57312
|
+
function abortHandshakeOrEmitwsClientError(server, req, socket, code2, message, headers) {
|
|
57287
57313
|
if (server.listenerCount("wsClientError")) {
|
|
57288
57314
|
const err = new Error(message);
|
|
57289
57315
|
Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
|
|
57290
57316
|
server.emit("wsClientError", err, socket, req);
|
|
57291
57317
|
} else {
|
|
57292
|
-
abortHandshake(socket,
|
|
57318
|
+
abortHandshake(socket, code2, message, headers);
|
|
57293
57319
|
}
|
|
57294
57320
|
}
|
|
57295
57321
|
__name(abortHandshakeOrEmitwsClientError, "abortHandshakeOrEmitwsClientError");
|
|
@@ -58040,10 +58066,10 @@ function getSerializeStream(reducers, cryptoKey) {
|
|
|
58040
58066
|
} else if (keyState.key) {
|
|
58041
58067
|
prefixed = await encrypt2(prefixed, keyState.key);
|
|
58042
58068
|
}
|
|
58043
|
-
const
|
|
58044
|
-
new DataView(
|
|
58045
|
-
|
|
58046
|
-
controller.enqueue(
|
|
58069
|
+
const frame2 = new Uint8Array(FRAME_HEADER_SIZE + prefixed.length);
|
|
58070
|
+
new DataView(frame2.buffer).setUint32(0, prefixed.length, false);
|
|
58071
|
+
frame2.set(prefixed, FRAME_HEADER_SIZE);
|
|
58072
|
+
controller.enqueue(frame2);
|
|
58047
58073
|
} catch (error121) {
|
|
58048
58074
|
if (RuntimeDecryptionError.is(error121)) {
|
|
58049
58075
|
controller.error(error121);
|
|
@@ -58161,10 +58187,10 @@ function getByteFramingStream() {
|
|
|
58161
58187
|
}));
|
|
58162
58188
|
return;
|
|
58163
58189
|
}
|
|
58164
|
-
const
|
|
58165
|
-
new DataView(
|
|
58166
|
-
|
|
58167
|
-
controller.enqueue(
|
|
58190
|
+
const frame2 = new Uint8Array(FRAME_HEADER_SIZE + chunk.length);
|
|
58191
|
+
new DataView(frame2.buffer).setUint32(0, chunk.length, false);
|
|
58192
|
+
frame2.set(chunk, FRAME_HEADER_SIZE);
|
|
58193
|
+
controller.enqueue(frame2);
|
|
58168
58194
|
}
|
|
58169
58195
|
});
|
|
58170
58196
|
}
|
|
@@ -59402,9 +59428,9 @@ async function dehydrateStepReturnValue(value, runId, key, ops = [], global2 = g
|
|
|
59402
59428
|
});
|
|
59403
59429
|
}
|
|
59404
59430
|
}
|
|
59405
|
-
async function dehydrateDynamicWorkflowCode(
|
|
59431
|
+
async function dehydrateDynamicWorkflowCode(code2, key, compression = false) {
|
|
59406
59432
|
try {
|
|
59407
|
-
const payload = new TextEncoder().encode(stringify(
|
|
59433
|
+
const payload = new TextEncoder().encode(stringify(code2));
|
|
59408
59434
|
const serialized = encodeWithFormatPrefix(SerializationFormat.DEVALUE_V1, payload);
|
|
59409
59435
|
const compressionStats = {};
|
|
59410
59436
|
const compressed = await compress(serialized, compression, compressionStats);
|
|
@@ -60924,69 +60950,69 @@ var keywords$1 = {
|
|
|
60924
60950
|
var keywordRelationalOperator = /^in(stanceof)?$/;
|
|
60925
60951
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
60926
60952
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
60927
|
-
function isInAstralSet(
|
|
60953
|
+
function isInAstralSet(code2, set3) {
|
|
60928
60954
|
var pos = 65536;
|
|
60929
60955
|
for (var i2 = 0; i2 < set3.length; i2 += 2) {
|
|
60930
60956
|
pos += set3[i2];
|
|
60931
|
-
if (pos >
|
|
60957
|
+
if (pos > code2) {
|
|
60932
60958
|
return false;
|
|
60933
60959
|
}
|
|
60934
60960
|
pos += set3[i2 + 1];
|
|
60935
|
-
if (pos >=
|
|
60961
|
+
if (pos >= code2) {
|
|
60936
60962
|
return true;
|
|
60937
60963
|
}
|
|
60938
60964
|
}
|
|
60939
60965
|
return false;
|
|
60940
60966
|
}
|
|
60941
60967
|
__name(isInAstralSet, "isInAstralSet");
|
|
60942
|
-
function isIdentifierStart(
|
|
60943
|
-
if (
|
|
60944
|
-
return
|
|
60968
|
+
function isIdentifierStart(code2, astral) {
|
|
60969
|
+
if (code2 < 65) {
|
|
60970
|
+
return code2 === 36;
|
|
60945
60971
|
}
|
|
60946
|
-
if (
|
|
60972
|
+
if (code2 < 91) {
|
|
60947
60973
|
return true;
|
|
60948
60974
|
}
|
|
60949
|
-
if (
|
|
60950
|
-
return
|
|
60975
|
+
if (code2 < 97) {
|
|
60976
|
+
return code2 === 95;
|
|
60951
60977
|
}
|
|
60952
|
-
if (
|
|
60978
|
+
if (code2 < 123) {
|
|
60953
60979
|
return true;
|
|
60954
60980
|
}
|
|
60955
|
-
if (
|
|
60956
|
-
return
|
|
60981
|
+
if (code2 <= 65535) {
|
|
60982
|
+
return code2 >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code2));
|
|
60957
60983
|
}
|
|
60958
60984
|
if (astral === false) {
|
|
60959
60985
|
return false;
|
|
60960
60986
|
}
|
|
60961
|
-
return isInAstralSet(
|
|
60987
|
+
return isInAstralSet(code2, astralIdentifierStartCodes);
|
|
60962
60988
|
}
|
|
60963
60989
|
__name(isIdentifierStart, "isIdentifierStart");
|
|
60964
|
-
function isIdentifierChar(
|
|
60965
|
-
if (
|
|
60966
|
-
return
|
|
60990
|
+
function isIdentifierChar(code2, astral) {
|
|
60991
|
+
if (code2 < 48) {
|
|
60992
|
+
return code2 === 36;
|
|
60967
60993
|
}
|
|
60968
|
-
if (
|
|
60994
|
+
if (code2 < 58) {
|
|
60969
60995
|
return true;
|
|
60970
60996
|
}
|
|
60971
|
-
if (
|
|
60997
|
+
if (code2 < 65) {
|
|
60972
60998
|
return false;
|
|
60973
60999
|
}
|
|
60974
|
-
if (
|
|
61000
|
+
if (code2 < 91) {
|
|
60975
61001
|
return true;
|
|
60976
61002
|
}
|
|
60977
|
-
if (
|
|
60978
|
-
return
|
|
61003
|
+
if (code2 < 97) {
|
|
61004
|
+
return code2 === 95;
|
|
60979
61005
|
}
|
|
60980
|
-
if (
|
|
61006
|
+
if (code2 < 123) {
|
|
60981
61007
|
return true;
|
|
60982
61008
|
}
|
|
60983
|
-
if (
|
|
60984
|
-
return
|
|
61009
|
+
if (code2 <= 65535) {
|
|
61010
|
+
return code2 >= 170 && nonASCIIidentifier.test(String.fromCharCode(code2));
|
|
60985
61011
|
}
|
|
60986
61012
|
if (astral === false) {
|
|
60987
61013
|
return false;
|
|
60988
61014
|
}
|
|
60989
|
-
return isInAstralSet(
|
|
61015
|
+
return isInAstralSet(code2, astralIdentifierStartCodes) || isInAstralSet(code2, astralIdentifierCodes);
|
|
60990
61016
|
}
|
|
60991
61017
|
__name(isIdentifierChar, "isIdentifierChar");
|
|
60992
61018
|
var TokenType = /* @__PURE__ */ __name(function TokenType2(label, conf) {
|
|
@@ -61179,16 +61205,16 @@ var types$1 = {
|
|
|
61179
61205
|
};
|
|
61180
61206
|
var lineBreak = /\r\n?|\n|\u2028|\u2029/;
|
|
61181
61207
|
var lineBreakG = new RegExp(lineBreak.source, "g");
|
|
61182
|
-
function isNewLine(
|
|
61183
|
-
return
|
|
61208
|
+
function isNewLine(code2) {
|
|
61209
|
+
return code2 === 10 || code2 === 13 || code2 === 8232 || code2 === 8233;
|
|
61184
61210
|
}
|
|
61185
61211
|
__name(isNewLine, "isNewLine");
|
|
61186
|
-
function nextLineBreak(
|
|
61187
|
-
if (end === void 0) end =
|
|
61212
|
+
function nextLineBreak(code2, from, end) {
|
|
61213
|
+
if (end === void 0) end = code2.length;
|
|
61188
61214
|
for (var i2 = from; i2 < end; i2++) {
|
|
61189
|
-
var next2 =
|
|
61215
|
+
var next2 = code2.charCodeAt(i2);
|
|
61190
61216
|
if (isNewLine(next2)) {
|
|
61191
|
-
return i2 < end - 1 && next2 === 13 &&
|
|
61217
|
+
return i2 < end - 1 && next2 === 13 && code2.charCodeAt(i2 + 1) === 10 ? i2 + 2 : i2 + 1;
|
|
61192
61218
|
}
|
|
61193
61219
|
}
|
|
61194
61220
|
return -1;
|
|
@@ -61210,12 +61236,12 @@ function wordsRegexp(words) {
|
|
|
61210
61236
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"));
|
|
61211
61237
|
}
|
|
61212
61238
|
__name(wordsRegexp, "wordsRegexp");
|
|
61213
|
-
function codePointToString(
|
|
61214
|
-
if (
|
|
61215
|
-
return String.fromCharCode(
|
|
61239
|
+
function codePointToString(code2) {
|
|
61240
|
+
if (code2 <= 65535) {
|
|
61241
|
+
return String.fromCharCode(code2);
|
|
61216
61242
|
}
|
|
61217
|
-
|
|
61218
|
-
return String.fromCharCode((
|
|
61243
|
+
code2 -= 65536;
|
|
61244
|
+
return String.fromCharCode((code2 >> 10) + 55296, (code2 & 1023) + 56320);
|
|
61219
61245
|
}
|
|
61220
61246
|
__name(codePointToString, "codePointToString");
|
|
61221
61247
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
@@ -65874,19 +65900,19 @@ pp.nextToken = function() {
|
|
|
65874
65900
|
this.readToken(this.fullCharCodeAtPos());
|
|
65875
65901
|
}
|
|
65876
65902
|
};
|
|
65877
|
-
pp.readToken = function(
|
|
65878
|
-
if (isIdentifierStart(
|
|
65903
|
+
pp.readToken = function(code2) {
|
|
65904
|
+
if (isIdentifierStart(code2, this.options.ecmaVersion >= 6) || code2 === 92) {
|
|
65879
65905
|
return this.readWord();
|
|
65880
65906
|
}
|
|
65881
|
-
return this.getTokenFromCode(
|
|
65907
|
+
return this.getTokenFromCode(code2);
|
|
65882
65908
|
};
|
|
65883
65909
|
pp.fullCharCodeAtPos = function() {
|
|
65884
|
-
var
|
|
65885
|
-
if (
|
|
65886
|
-
return
|
|
65910
|
+
var code2 = this.input.charCodeAt(this.pos);
|
|
65911
|
+
if (code2 <= 55295 || code2 >= 56320) {
|
|
65912
|
+
return code2;
|
|
65887
65913
|
}
|
|
65888
65914
|
var next2 = this.input.charCodeAt(this.pos + 1);
|
|
65889
|
-
return next2 <= 56319 || next2 >= 57344 ?
|
|
65915
|
+
return next2 <= 56319 || next2 >= 57344 ? code2 : (code2 << 10) + next2 - 56613888;
|
|
65890
65916
|
};
|
|
65891
65917
|
pp.skipBlockComment = function() {
|
|
65892
65918
|
var startLoc = this.options.onComment && this.curPosition();
|
|
@@ -65993,11 +66019,11 @@ pp.readToken_slash = function() {
|
|
|
65993
66019
|
}
|
|
65994
66020
|
return this.finishOp(types$1.slash, 1);
|
|
65995
66021
|
};
|
|
65996
|
-
pp.readToken_mult_modulo_exp = function(
|
|
66022
|
+
pp.readToken_mult_modulo_exp = function(code2) {
|
|
65997
66023
|
var next2 = this.input.charCodeAt(this.pos + 1);
|
|
65998
66024
|
var size = 1;
|
|
65999
|
-
var tokentype =
|
|
66000
|
-
if (this.options.ecmaVersion >= 7 &&
|
|
66025
|
+
var tokentype = code2 === 42 ? types$1.star : types$1.modulo;
|
|
66026
|
+
if (this.options.ecmaVersion >= 7 && code2 === 42 && next2 === 42) {
|
|
66001
66027
|
++size;
|
|
66002
66028
|
tokentype = types$1.starstar;
|
|
66003
66029
|
next2 = this.input.charCodeAt(this.pos + 2);
|
|
@@ -66007,21 +66033,21 @@ pp.readToken_mult_modulo_exp = function(code) {
|
|
|
66007
66033
|
}
|
|
66008
66034
|
return this.finishOp(tokentype, size);
|
|
66009
66035
|
};
|
|
66010
|
-
pp.readToken_pipe_amp = function(
|
|
66036
|
+
pp.readToken_pipe_amp = function(code2) {
|
|
66011
66037
|
var next2 = this.input.charCodeAt(this.pos + 1);
|
|
66012
|
-
if (next2 ===
|
|
66038
|
+
if (next2 === code2) {
|
|
66013
66039
|
if (this.options.ecmaVersion >= 12) {
|
|
66014
66040
|
var next22 = this.input.charCodeAt(this.pos + 2);
|
|
66015
66041
|
if (next22 === 61) {
|
|
66016
66042
|
return this.finishOp(types$1.assign, 3);
|
|
66017
66043
|
}
|
|
66018
66044
|
}
|
|
66019
|
-
return this.finishOp(
|
|
66045
|
+
return this.finishOp(code2 === 124 ? types$1.logicalOR : types$1.logicalAND, 2);
|
|
66020
66046
|
}
|
|
66021
66047
|
if (next2 === 61) {
|
|
66022
66048
|
return this.finishOp(types$1.assign, 2);
|
|
66023
66049
|
}
|
|
66024
|
-
return this.finishOp(
|
|
66050
|
+
return this.finishOp(code2 === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1);
|
|
66025
66051
|
};
|
|
66026
66052
|
pp.readToken_caret = function() {
|
|
66027
66053
|
var next2 = this.input.charCodeAt(this.pos + 1);
|
|
@@ -66030,9 +66056,9 @@ pp.readToken_caret = function() {
|
|
|
66030
66056
|
}
|
|
66031
66057
|
return this.finishOp(types$1.bitwiseXOR, 1);
|
|
66032
66058
|
};
|
|
66033
|
-
pp.readToken_plus_min = function(
|
|
66059
|
+
pp.readToken_plus_min = function(code2) {
|
|
66034
66060
|
var next2 = this.input.charCodeAt(this.pos + 1);
|
|
66035
|
-
if (next2 ===
|
|
66061
|
+
if (next2 === code2) {
|
|
66036
66062
|
if (next2 === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) {
|
|
66037
66063
|
this.skipLineComment(3);
|
|
66038
66064
|
this.skipSpace();
|
|
@@ -66045,17 +66071,17 @@ pp.readToken_plus_min = function(code) {
|
|
|
66045
66071
|
}
|
|
66046
66072
|
return this.finishOp(types$1.plusMin, 1);
|
|
66047
66073
|
};
|
|
66048
|
-
pp.readToken_lt_gt = function(
|
|
66074
|
+
pp.readToken_lt_gt = function(code2) {
|
|
66049
66075
|
var next2 = this.input.charCodeAt(this.pos + 1);
|
|
66050
66076
|
var size = 1;
|
|
66051
|
-
if (next2 ===
|
|
66052
|
-
size =
|
|
66077
|
+
if (next2 === code2) {
|
|
66078
|
+
size = code2 === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;
|
|
66053
66079
|
if (this.input.charCodeAt(this.pos + size) === 61) {
|
|
66054
66080
|
return this.finishOp(types$1.assign, size + 1);
|
|
66055
66081
|
}
|
|
66056
66082
|
return this.finishOp(types$1.bitShift, size);
|
|
66057
66083
|
}
|
|
66058
|
-
if (next2 === 33 &&
|
|
66084
|
+
if (next2 === 33 && code2 === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45) {
|
|
66059
66085
|
this.skipLineComment(4);
|
|
66060
66086
|
this.skipSpace();
|
|
66061
66087
|
return this.nextToken();
|
|
@@ -66065,16 +66091,16 @@ pp.readToken_lt_gt = function(code) {
|
|
|
66065
66091
|
}
|
|
66066
66092
|
return this.finishOp(types$1.relational, size);
|
|
66067
66093
|
};
|
|
66068
|
-
pp.readToken_eq_excl = function(
|
|
66094
|
+
pp.readToken_eq_excl = function(code2) {
|
|
66069
66095
|
var next2 = this.input.charCodeAt(this.pos + 1);
|
|
66070
66096
|
if (next2 === 61) {
|
|
66071
66097
|
return this.finishOp(types$1.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2);
|
|
66072
66098
|
}
|
|
66073
|
-
if (
|
|
66099
|
+
if (code2 === 61 && next2 === 62 && this.options.ecmaVersion >= 6) {
|
|
66074
66100
|
this.pos += 2;
|
|
66075
66101
|
return this.finishToken(types$1.arrow);
|
|
66076
66102
|
}
|
|
66077
|
-
return this.finishOp(
|
|
66103
|
+
return this.finishOp(code2 === 61 ? types$1.eq : types$1.prefix, 1);
|
|
66078
66104
|
};
|
|
66079
66105
|
pp.readToken_question = function() {
|
|
66080
66106
|
var ecmaVersion2 = this.options.ecmaVersion;
|
|
@@ -66100,18 +66126,18 @@ pp.readToken_question = function() {
|
|
|
66100
66126
|
};
|
|
66101
66127
|
pp.readToken_numberSign = function() {
|
|
66102
66128
|
var ecmaVersion2 = this.options.ecmaVersion;
|
|
66103
|
-
var
|
|
66129
|
+
var code2 = 35;
|
|
66104
66130
|
if (ecmaVersion2 >= 13) {
|
|
66105
66131
|
++this.pos;
|
|
66106
|
-
|
|
66107
|
-
if (isIdentifierStart(
|
|
66132
|
+
code2 = this.fullCharCodeAtPos();
|
|
66133
|
+
if (isIdentifierStart(code2, true) || code2 === 92) {
|
|
66108
66134
|
return this.finishToken(types$1.privateId, this.readWord1());
|
|
66109
66135
|
}
|
|
66110
66136
|
}
|
|
66111
|
-
this.raise(this.pos, "Unexpected character '" + codePointToString(
|
|
66137
|
+
this.raise(this.pos, "Unexpected character '" + codePointToString(code2) + "'");
|
|
66112
66138
|
};
|
|
66113
|
-
pp.getTokenFromCode = function(
|
|
66114
|
-
switch (
|
|
66139
|
+
pp.getTokenFromCode = function(code2) {
|
|
66140
|
+
switch (code2) {
|
|
66115
66141
|
// The interpretation of a dot depends on whether it is followed
|
|
66116
66142
|
// by a digit or another two dots.
|
|
66117
66143
|
case 46:
|
|
@@ -66178,7 +66204,7 @@ pp.getTokenFromCode = function(code) {
|
|
|
66178
66204
|
// Quotes produce strings.
|
|
66179
66205
|
case 34:
|
|
66180
66206
|
case 39:
|
|
66181
|
-
return this.readString(
|
|
66207
|
+
return this.readString(code2);
|
|
66182
66208
|
// Operators are parsed inline in tiny state machines. '=' (61) is
|
|
66183
66209
|
// often referred to. `finishOp` simply skips the amount of
|
|
66184
66210
|
// characters it is given as second argument, and returns a token
|
|
@@ -66187,21 +66213,21 @@ pp.getTokenFromCode = function(code) {
|
|
|
66187
66213
|
return this.readToken_slash();
|
|
66188
66214
|
case 37:
|
|
66189
66215
|
case 42:
|
|
66190
|
-
return this.readToken_mult_modulo_exp(
|
|
66216
|
+
return this.readToken_mult_modulo_exp(code2);
|
|
66191
66217
|
case 124:
|
|
66192
66218
|
case 38:
|
|
66193
|
-
return this.readToken_pipe_amp(
|
|
66219
|
+
return this.readToken_pipe_amp(code2);
|
|
66194
66220
|
case 94:
|
|
66195
66221
|
return this.readToken_caret();
|
|
66196
66222
|
case 43:
|
|
66197
66223
|
case 45:
|
|
66198
|
-
return this.readToken_plus_min(
|
|
66224
|
+
return this.readToken_plus_min(code2);
|
|
66199
66225
|
case 60:
|
|
66200
66226
|
case 62:
|
|
66201
|
-
return this.readToken_lt_gt(
|
|
66227
|
+
return this.readToken_lt_gt(code2);
|
|
66202
66228
|
case 61:
|
|
66203
66229
|
case 33:
|
|
66204
|
-
return this.readToken_eq_excl(
|
|
66230
|
+
return this.readToken_eq_excl(code2);
|
|
66205
66231
|
case 63:
|
|
66206
66232
|
return this.readToken_question();
|
|
66207
66233
|
case 126:
|
|
@@ -66209,7 +66235,7 @@ pp.getTokenFromCode = function(code) {
|
|
|
66209
66235
|
case 35:
|
|
66210
66236
|
return this.readToken_numberSign();
|
|
66211
66237
|
}
|
|
66212
|
-
this.raise(this.pos, "Unexpected character '" + codePointToString(
|
|
66238
|
+
this.raise(this.pos, "Unexpected character '" + codePointToString(code2) + "'");
|
|
66213
66239
|
};
|
|
66214
66240
|
pp.finishOp = function(type, size) {
|
|
66215
66241
|
var str = this.input.slice(this.pos, this.pos + size);
|
|
@@ -66267,8 +66293,8 @@ pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
|
|
|
66267
66293
|
var isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48;
|
|
66268
66294
|
var start2 = this.pos, total = 0, lastCode = 0;
|
|
66269
66295
|
for (var i2 = 0, e = len == null ? Infinity : len; i2 < e; ++i2, ++this.pos) {
|
|
66270
|
-
var
|
|
66271
|
-
if (allowSeparators &&
|
|
66296
|
+
var code2 = this.input.charCodeAt(this.pos), val = void 0;
|
|
66297
|
+
if (allowSeparators && code2 === 95) {
|
|
66272
66298
|
if (isLegacyOctalNumericLiteral) {
|
|
66273
66299
|
this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals");
|
|
66274
66300
|
}
|
|
@@ -66278,22 +66304,22 @@ pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
|
|
|
66278
66304
|
if (i2 === 0) {
|
|
66279
66305
|
this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits");
|
|
66280
66306
|
}
|
|
66281
|
-
lastCode =
|
|
66307
|
+
lastCode = code2;
|
|
66282
66308
|
continue;
|
|
66283
66309
|
}
|
|
66284
|
-
if (
|
|
66285
|
-
val =
|
|
66286
|
-
} else if (
|
|
66287
|
-
val =
|
|
66288
|
-
} else if (
|
|
66289
|
-
val =
|
|
66310
|
+
if (code2 >= 97) {
|
|
66311
|
+
val = code2 - 97 + 10;
|
|
66312
|
+
} else if (code2 >= 65) {
|
|
66313
|
+
val = code2 - 65 + 10;
|
|
66314
|
+
} else if (code2 >= 48 && code2 <= 57) {
|
|
66315
|
+
val = code2 - 48;
|
|
66290
66316
|
} else {
|
|
66291
66317
|
val = Infinity;
|
|
66292
66318
|
}
|
|
66293
66319
|
if (val >= radix) {
|
|
66294
66320
|
break;
|
|
66295
66321
|
}
|
|
66296
|
-
lastCode =
|
|
66322
|
+
lastCode = code2;
|
|
66297
66323
|
total = total * radix + val;
|
|
66298
66324
|
}
|
|
66299
66325
|
if (allowSeparators && lastCode === 95) {
|
|
@@ -66375,21 +66401,21 @@ pp.readNumber = function(startsWithDot) {
|
|
|
66375
66401
|
return this.finishToken(types$1.num, val);
|
|
66376
66402
|
};
|
|
66377
66403
|
pp.readCodePoint = function() {
|
|
66378
|
-
var ch = this.input.charCodeAt(this.pos),
|
|
66404
|
+
var ch = this.input.charCodeAt(this.pos), code2;
|
|
66379
66405
|
if (ch === 123) {
|
|
66380
66406
|
if (this.options.ecmaVersion < 6) {
|
|
66381
66407
|
this.unexpected();
|
|
66382
66408
|
}
|
|
66383
66409
|
var codePos = ++this.pos;
|
|
66384
|
-
|
|
66410
|
+
code2 = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos);
|
|
66385
66411
|
++this.pos;
|
|
66386
|
-
if (
|
|
66412
|
+
if (code2 > 1114111) {
|
|
66387
66413
|
this.invalidStringToken(codePos, "Code point out of bounds");
|
|
66388
66414
|
}
|
|
66389
66415
|
} else {
|
|
66390
|
-
|
|
66416
|
+
code2 = this.readHexChar(4);
|
|
66391
66417
|
}
|
|
66392
|
-
return
|
|
66418
|
+
return code2;
|
|
66393
66419
|
};
|
|
66394
66420
|
pp.readString = function(quote) {
|
|
66395
66421
|
var out = "", chunkStart = ++this.pos;
|
|
@@ -68237,6 +68263,145 @@ async function provision(workspaceId) {
|
|
|
68237
68263
|
__name(provision, "provision");
|
|
68238
68264
|
provision.workflowId = "workflow//./src/work/provision//provision";
|
|
68239
68265
|
|
|
68266
|
+
// node_modules/@workflow/core/dist/index.js
|
|
68267
|
+
init_dist2();
|
|
68268
|
+
|
|
68269
|
+
// node_modules/@workflow/core/dist/context-violation-error.js
|
|
68270
|
+
init_ansi();
|
|
68271
|
+
var INSPECT_CUSTOM = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
68272
|
+
function renderSegmentPlain(s) {
|
|
68273
|
+
if ("code" in s) return `\`${s.code}\``;
|
|
68274
|
+
if ("dim" in s) return s.dim;
|
|
68275
|
+
return s.text;
|
|
68276
|
+
}
|
|
68277
|
+
__name(renderSegmentPlain, "renderSegmentPlain");
|
|
68278
|
+
function renderSegmentPretty(s) {
|
|
68279
|
+
if ("code" in s) return code(s.code);
|
|
68280
|
+
if ("dim" in s) return dim(s.dim);
|
|
68281
|
+
return s.text;
|
|
68282
|
+
}
|
|
68283
|
+
__name(renderSegmentPretty, "renderSegmentPretty");
|
|
68284
|
+
function renderDetailPlain(d) {
|
|
68285
|
+
if (d.type === "docs") return `docs: ${d.url}`;
|
|
68286
|
+
return d.segments.map(renderSegmentPlain).join("");
|
|
68287
|
+
}
|
|
68288
|
+
__name(renderDetailPlain, "renderDetailPlain");
|
|
68289
|
+
function renderDetailPretty(d) {
|
|
68290
|
+
if (d.type === "docs") return docs(d.url);
|
|
68291
|
+
return d.segments.map(renderSegmentPretty).join("");
|
|
68292
|
+
}
|
|
68293
|
+
__name(renderDetailPretty, "renderDetailPretty");
|
|
68294
|
+
function renderPlain(c) {
|
|
68295
|
+
const title = c.title.map(renderSegmentPlain).join("");
|
|
68296
|
+
const lines = [
|
|
68297
|
+
title
|
|
68298
|
+
];
|
|
68299
|
+
c.details.forEach((detail, index) => {
|
|
68300
|
+
const isLast = index === c.details.length - 1;
|
|
68301
|
+
const first = isLast ? "\u2570\u25B6 " : "\u251C\u25B6 ";
|
|
68302
|
+
const cont = isLast ? " " : "\u2502 ";
|
|
68303
|
+
const raw = renderDetailPlain(detail).split("\n");
|
|
68304
|
+
raw.forEach((line, i2) => {
|
|
68305
|
+
lines.push(`${i2 === 0 ? first : cont}${line}`);
|
|
68306
|
+
});
|
|
68307
|
+
});
|
|
68308
|
+
return lines.join("\n");
|
|
68309
|
+
}
|
|
68310
|
+
__name(renderPlain, "renderPlain");
|
|
68311
|
+
function renderPretty(c) {
|
|
68312
|
+
const title = c.title.map(renderSegmentPretty).join("");
|
|
68313
|
+
return frame(title, c.details.map(renderDetailPretty));
|
|
68314
|
+
}
|
|
68315
|
+
__name(renderPretty, "renderPretty");
|
|
68316
|
+
var ContextViolationError = class extends Error {
|
|
68317
|
+
static {
|
|
68318
|
+
__name(this, "ContextViolationError");
|
|
68319
|
+
}
|
|
68320
|
+
/** Non-retryable, see class doc. */
|
|
68321
|
+
fatal = true;
|
|
68322
|
+
#content;
|
|
68323
|
+
constructor(content) {
|
|
68324
|
+
super(renderPlain(content));
|
|
68325
|
+
this.#content = content;
|
|
68326
|
+
}
|
|
68327
|
+
/**
|
|
68328
|
+
* `console.log(err)` and most Node internals route through `util.inspect`,
|
|
68329
|
+
* which respects this symbol. Returning a custom string here means the
|
|
68330
|
+
* thrown error prints as a pretty frame in the terminal while `.message`
|
|
68331
|
+
* and `.stack` stay plain.
|
|
68332
|
+
*/
|
|
68333
|
+
[INSPECT_CUSTOM]() {
|
|
68334
|
+
const pretty = renderPretty(this.#content);
|
|
68335
|
+
const messageLineCount = this.message.split("\n").length;
|
|
68336
|
+
const tail = (this.stack ?? "").split("\n").slice(messageLineCount).join("\n");
|
|
68337
|
+
return tail ? `${this.name}: ${pretty}
|
|
68338
|
+
${tail}` : `${this.name}: ${pretty}`;
|
|
68339
|
+
}
|
|
68340
|
+
toString() {
|
|
68341
|
+
return `${this.name}: ${renderPretty(this.#content)}`;
|
|
68342
|
+
}
|
|
68343
|
+
};
|
|
68344
|
+
|
|
68345
|
+
// node_modules/@workflow/core/dist/define-hook.js
|
|
68346
|
+
init_resume_hook();
|
|
68347
|
+
|
|
68348
|
+
// node_modules/@workflow/core/dist/set-attributes.js
|
|
68349
|
+
init_dist2();
|
|
68350
|
+
init_dist4();
|
|
68351
|
+
init_get_world_lazy();
|
|
68352
|
+
init_context_storage();
|
|
68353
|
+
|
|
68354
|
+
// node_modules/@workflow/core/dist/sleep.js
|
|
68355
|
+
init_symbols();
|
|
68356
|
+
|
|
68357
|
+
// node_modules/@workflow/core/dist/step/get-step-metadata.js
|
|
68358
|
+
init_context_storage();
|
|
68359
|
+
|
|
68360
|
+
// node_modules/@workflow/core/dist/step/get-workflow-metadata.js
|
|
68361
|
+
init_context_storage();
|
|
68362
|
+
|
|
68363
|
+
// node_modules/@workflow/core/dist/step/writable-stream.js
|
|
68364
|
+
init_flushable_stream();
|
|
68365
|
+
init_sealed_box();
|
|
68366
|
+
init_serialization2();
|
|
68367
|
+
init_symbols();
|
|
68368
|
+
init_util2();
|
|
68369
|
+
init_context_storage();
|
|
68370
|
+
|
|
68371
|
+
// src/telemetry.ts
|
|
68372
|
+
function emit(event, fields = {}, level = "info") {
|
|
68373
|
+
const line = JSON.stringify({
|
|
68374
|
+
event,
|
|
68375
|
+
level,
|
|
68376
|
+
at: Date.now(),
|
|
68377
|
+
...fields
|
|
68378
|
+
});
|
|
68379
|
+
if (level === "error") console.error(line);
|
|
68380
|
+
else console.log(line);
|
|
68381
|
+
}
|
|
68382
|
+
__name(emit, "emit");
|
|
68383
|
+
|
|
68384
|
+
// src/work/retry.ts
|
|
68385
|
+
var RETRY_MS = Number(process.env.HUB_RETRY_MS) || 5e3;
|
|
68386
|
+
async function reportWorkError(workflow, workspace, attempt, fields) {
|
|
68387
|
+
emit("hub.work_error", {
|
|
68388
|
+
workflow,
|
|
68389
|
+
workspace,
|
|
68390
|
+
attempt,
|
|
68391
|
+
...fields
|
|
68392
|
+
}, "error");
|
|
68393
|
+
}
|
|
68394
|
+
__name(reportWorkError, "reportWorkError");
|
|
68395
|
+
(function(__wf_fn, __wf_id) {
|
|
68396
|
+
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
68397
|
+
__wf_reg.set(__wf_id, __wf_fn);
|
|
68398
|
+
__wf_fn.stepId = __wf_id;
|
|
68399
|
+
Object.defineProperty(__wf_fn, "name", {
|
|
68400
|
+
value: "reportWorkError",
|
|
68401
|
+
configurable: true
|
|
68402
|
+
});
|
|
68403
|
+
})(reportWorkError, "step//./src/work/retry//reportWorkError");
|
|
68404
|
+
|
|
68240
68405
|
// src/work/runner-lost.ts
|
|
68241
68406
|
async function check3(workspaceId, token, closedAt) {
|
|
68242
68407
|
return (await hubSteps()).runnerLost(workspaceId, token, closedAt);
|