@releasekit/release 0.7.17 → 0.7.18
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/cli.js +1088 -148
- package/dist/dispatcher.js +1164 -224
- package/package.json +6 -6
package/dist/dispatcher.js
CHANGED
|
@@ -778,6 +778,909 @@ var init_chunk_7TJSPQPW = __esm({
|
|
|
778
778
|
}
|
|
779
779
|
});
|
|
780
780
|
|
|
781
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js
|
|
782
|
+
function getLineColFromPtr(string, ptr) {
|
|
783
|
+
let lines = string.slice(0, ptr).split(/\r\n|\n|\r/g);
|
|
784
|
+
return [lines.length, lines.pop().length + 1];
|
|
785
|
+
}
|
|
786
|
+
function makeCodeBlock(string, line, column) {
|
|
787
|
+
let lines = string.split(/\r\n|\n|\r/g);
|
|
788
|
+
let codeblock = "";
|
|
789
|
+
let numberLen = (Math.log10(line + 1) | 0) + 1;
|
|
790
|
+
for (let i = line - 1; i <= line + 1; i++) {
|
|
791
|
+
let l = lines[i - 1];
|
|
792
|
+
if (!l)
|
|
793
|
+
continue;
|
|
794
|
+
codeblock += i.toString().padEnd(numberLen, " ");
|
|
795
|
+
codeblock += ": ";
|
|
796
|
+
codeblock += l;
|
|
797
|
+
codeblock += "\n";
|
|
798
|
+
if (i === line) {
|
|
799
|
+
codeblock += " ".repeat(numberLen + column + 2);
|
|
800
|
+
codeblock += "^\n";
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return codeblock;
|
|
804
|
+
}
|
|
805
|
+
var TomlError;
|
|
806
|
+
var init_error = __esm({
|
|
807
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/error.js"() {
|
|
808
|
+
"use strict";
|
|
809
|
+
TomlError = class extends Error {
|
|
810
|
+
line;
|
|
811
|
+
column;
|
|
812
|
+
codeblock;
|
|
813
|
+
constructor(message, options) {
|
|
814
|
+
const [line, column] = getLineColFromPtr(options.toml, options.ptr);
|
|
815
|
+
const codeblock = makeCodeBlock(options.toml, line, column);
|
|
816
|
+
super(`Invalid TOML document: ${message}
|
|
817
|
+
|
|
818
|
+
${codeblock}`, options);
|
|
819
|
+
this.line = line;
|
|
820
|
+
this.column = column;
|
|
821
|
+
this.codeblock = codeblock;
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
|
|
827
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js
|
|
828
|
+
function isEscaped(str3, ptr) {
|
|
829
|
+
let i = 0;
|
|
830
|
+
while (str3[ptr - ++i] === "\\")
|
|
831
|
+
;
|
|
832
|
+
return --i && i % 2;
|
|
833
|
+
}
|
|
834
|
+
function indexOfNewline(str3, start = 0, end = str3.length) {
|
|
835
|
+
let idx = str3.indexOf("\n", start);
|
|
836
|
+
if (str3[idx - 1] === "\r")
|
|
837
|
+
idx--;
|
|
838
|
+
return idx <= end ? idx : -1;
|
|
839
|
+
}
|
|
840
|
+
function skipComment(str3, ptr) {
|
|
841
|
+
for (let i = ptr; i < str3.length; i++) {
|
|
842
|
+
let c = str3[i];
|
|
843
|
+
if (c === "\n")
|
|
844
|
+
return i;
|
|
845
|
+
if (c === "\r" && str3[i + 1] === "\n")
|
|
846
|
+
return i + 1;
|
|
847
|
+
if (c < " " && c !== " " || c === "\x7F") {
|
|
848
|
+
throw new TomlError("control characters are not allowed in comments", {
|
|
849
|
+
toml: str3,
|
|
850
|
+
ptr
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
return str3.length;
|
|
855
|
+
}
|
|
856
|
+
function skipVoid(str3, ptr, banNewLines, banComments) {
|
|
857
|
+
let c;
|
|
858
|
+
while (1) {
|
|
859
|
+
while ((c = str3[ptr]) === " " || c === " " || !banNewLines && (c === "\n" || c === "\r" && str3[ptr + 1] === "\n"))
|
|
860
|
+
ptr++;
|
|
861
|
+
if (banComments || c !== "#")
|
|
862
|
+
break;
|
|
863
|
+
ptr = skipComment(str3, ptr);
|
|
864
|
+
}
|
|
865
|
+
return ptr;
|
|
866
|
+
}
|
|
867
|
+
function skipUntil(str3, ptr, sep4, end, banNewLines = false) {
|
|
868
|
+
if (!end) {
|
|
869
|
+
ptr = indexOfNewline(str3, ptr);
|
|
870
|
+
return ptr < 0 ? str3.length : ptr;
|
|
871
|
+
}
|
|
872
|
+
for (let i = ptr; i < str3.length; i++) {
|
|
873
|
+
let c = str3[i];
|
|
874
|
+
if (c === "#") {
|
|
875
|
+
i = indexOfNewline(str3, i);
|
|
876
|
+
} else if (c === sep4) {
|
|
877
|
+
return i + 1;
|
|
878
|
+
} else if (c === end || banNewLines && (c === "\n" || c === "\r" && str3[i + 1] === "\n")) {
|
|
879
|
+
return i;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
throw new TomlError("cannot find end of structure", {
|
|
883
|
+
toml: str3,
|
|
884
|
+
ptr
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
function getStringEnd(str3, seek) {
|
|
888
|
+
let first2 = str3[seek];
|
|
889
|
+
let target = first2 === str3[seek + 1] && str3[seek + 1] === str3[seek + 2] ? str3.slice(seek, seek + 3) : first2;
|
|
890
|
+
seek += target.length - 1;
|
|
891
|
+
do
|
|
892
|
+
seek = str3.indexOf(target, ++seek);
|
|
893
|
+
while (seek > -1 && first2 !== "'" && isEscaped(str3, seek));
|
|
894
|
+
if (seek > -1) {
|
|
895
|
+
seek += target.length;
|
|
896
|
+
if (target.length > 1) {
|
|
897
|
+
if (str3[seek] === first2)
|
|
898
|
+
seek++;
|
|
899
|
+
if (str3[seek] === first2)
|
|
900
|
+
seek++;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
return seek;
|
|
904
|
+
}
|
|
905
|
+
var init_util = __esm({
|
|
906
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/util.js"() {
|
|
907
|
+
"use strict";
|
|
908
|
+
init_error();
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
|
|
912
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js
|
|
913
|
+
var DATE_TIME_RE, TomlDate;
|
|
914
|
+
var init_date = __esm({
|
|
915
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/date.js"() {
|
|
916
|
+
"use strict";
|
|
917
|
+
DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
|
|
918
|
+
TomlDate = class _TomlDate extends Date {
|
|
919
|
+
#hasDate = false;
|
|
920
|
+
#hasTime = false;
|
|
921
|
+
#offset = null;
|
|
922
|
+
constructor(date2) {
|
|
923
|
+
let hasDate = true;
|
|
924
|
+
let hasTime = true;
|
|
925
|
+
let offset2 = "Z";
|
|
926
|
+
if (typeof date2 === "string") {
|
|
927
|
+
let match2 = date2.match(DATE_TIME_RE);
|
|
928
|
+
if (match2) {
|
|
929
|
+
if (!match2[1]) {
|
|
930
|
+
hasDate = false;
|
|
931
|
+
date2 = `0000-01-01T${date2}`;
|
|
932
|
+
}
|
|
933
|
+
hasTime = !!match2[2];
|
|
934
|
+
hasTime && date2[10] === " " && (date2 = date2.replace(" ", "T"));
|
|
935
|
+
if (match2[2] && +match2[2] > 23) {
|
|
936
|
+
date2 = "";
|
|
937
|
+
} else {
|
|
938
|
+
offset2 = match2[3] || null;
|
|
939
|
+
date2 = date2.toUpperCase();
|
|
940
|
+
if (!offset2 && hasTime)
|
|
941
|
+
date2 += "Z";
|
|
942
|
+
}
|
|
943
|
+
} else {
|
|
944
|
+
date2 = "";
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
super(date2);
|
|
948
|
+
if (!isNaN(this.getTime())) {
|
|
949
|
+
this.#hasDate = hasDate;
|
|
950
|
+
this.#hasTime = hasTime;
|
|
951
|
+
this.#offset = offset2;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
isDateTime() {
|
|
955
|
+
return this.#hasDate && this.#hasTime;
|
|
956
|
+
}
|
|
957
|
+
isLocal() {
|
|
958
|
+
return !this.#hasDate || !this.#hasTime || !this.#offset;
|
|
959
|
+
}
|
|
960
|
+
isDate() {
|
|
961
|
+
return this.#hasDate && !this.#hasTime;
|
|
962
|
+
}
|
|
963
|
+
isTime() {
|
|
964
|
+
return this.#hasTime && !this.#hasDate;
|
|
965
|
+
}
|
|
966
|
+
isValid() {
|
|
967
|
+
return this.#hasDate || this.#hasTime;
|
|
968
|
+
}
|
|
969
|
+
toISOString() {
|
|
970
|
+
let iso = super.toISOString();
|
|
971
|
+
if (this.isDate())
|
|
972
|
+
return iso.slice(0, 10);
|
|
973
|
+
if (this.isTime())
|
|
974
|
+
return iso.slice(11, 23);
|
|
975
|
+
if (this.#offset === null)
|
|
976
|
+
return iso.slice(0, -1);
|
|
977
|
+
if (this.#offset === "Z")
|
|
978
|
+
return iso;
|
|
979
|
+
let offset2 = +this.#offset.slice(1, 3) * 60 + +this.#offset.slice(4, 6);
|
|
980
|
+
offset2 = this.#offset[0] === "-" ? offset2 : -offset2;
|
|
981
|
+
let offsetDate = new Date(this.getTime() - offset2 * 6e4);
|
|
982
|
+
return offsetDate.toISOString().slice(0, -1) + this.#offset;
|
|
983
|
+
}
|
|
984
|
+
static wrapAsOffsetDateTime(jsDate, offset2 = "Z") {
|
|
985
|
+
let date2 = new _TomlDate(jsDate);
|
|
986
|
+
date2.#offset = offset2;
|
|
987
|
+
return date2;
|
|
988
|
+
}
|
|
989
|
+
static wrapAsLocalDateTime(jsDate) {
|
|
990
|
+
let date2 = new _TomlDate(jsDate);
|
|
991
|
+
date2.#offset = null;
|
|
992
|
+
return date2;
|
|
993
|
+
}
|
|
994
|
+
static wrapAsLocalDate(jsDate) {
|
|
995
|
+
let date2 = new _TomlDate(jsDate);
|
|
996
|
+
date2.#hasTime = false;
|
|
997
|
+
date2.#offset = null;
|
|
998
|
+
return date2;
|
|
999
|
+
}
|
|
1000
|
+
static wrapAsLocalTime(jsDate) {
|
|
1001
|
+
let date2 = new _TomlDate(jsDate);
|
|
1002
|
+
date2.#hasDate = false;
|
|
1003
|
+
date2.#offset = null;
|
|
1004
|
+
return date2;
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js
|
|
1011
|
+
function parseString(str3, ptr = 0, endPtr = str3.length) {
|
|
1012
|
+
let isLiteral = str3[ptr] === "'";
|
|
1013
|
+
let isMultiline = str3[ptr++] === str3[ptr] && str3[ptr] === str3[ptr + 1];
|
|
1014
|
+
if (isMultiline) {
|
|
1015
|
+
endPtr -= 2;
|
|
1016
|
+
if (str3[ptr += 2] === "\r")
|
|
1017
|
+
ptr++;
|
|
1018
|
+
if (str3[ptr] === "\n")
|
|
1019
|
+
ptr++;
|
|
1020
|
+
}
|
|
1021
|
+
let tmp = 0;
|
|
1022
|
+
let isEscape;
|
|
1023
|
+
let parsed = "";
|
|
1024
|
+
let sliceStart = ptr;
|
|
1025
|
+
while (ptr < endPtr - 1) {
|
|
1026
|
+
let c = str3[ptr++];
|
|
1027
|
+
if (c === "\n" || c === "\r" && str3[ptr] === "\n") {
|
|
1028
|
+
if (!isMultiline) {
|
|
1029
|
+
throw new TomlError("newlines are not allowed in strings", {
|
|
1030
|
+
toml: str3,
|
|
1031
|
+
ptr: ptr - 1
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
} else if (c < " " && c !== " " || c === "\x7F") {
|
|
1035
|
+
throw new TomlError("control characters are not allowed in strings", {
|
|
1036
|
+
toml: str3,
|
|
1037
|
+
ptr: ptr - 1
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
if (isEscape) {
|
|
1041
|
+
isEscape = false;
|
|
1042
|
+
if (c === "x" || c === "u" || c === "U") {
|
|
1043
|
+
let code = str3.slice(ptr, ptr += c === "x" ? 2 : c === "u" ? 4 : 8);
|
|
1044
|
+
if (!ESCAPE_REGEX.test(code)) {
|
|
1045
|
+
throw new TomlError("invalid unicode escape", {
|
|
1046
|
+
toml: str3,
|
|
1047
|
+
ptr: tmp
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
try {
|
|
1051
|
+
parsed += String.fromCodePoint(parseInt(code, 16));
|
|
1052
|
+
} catch {
|
|
1053
|
+
throw new TomlError("invalid unicode escape", {
|
|
1054
|
+
toml: str3,
|
|
1055
|
+
ptr: tmp
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
} else if (isMultiline && (c === "\n" || c === " " || c === " " || c === "\r")) {
|
|
1059
|
+
ptr = skipVoid(str3, ptr - 1, true);
|
|
1060
|
+
if (str3[ptr] !== "\n" && str3[ptr] !== "\r") {
|
|
1061
|
+
throw new TomlError("invalid escape: only line-ending whitespace may be escaped", {
|
|
1062
|
+
toml: str3,
|
|
1063
|
+
ptr: tmp
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
ptr = skipVoid(str3, ptr);
|
|
1067
|
+
} else if (c in ESC_MAP) {
|
|
1068
|
+
parsed += ESC_MAP[c];
|
|
1069
|
+
} else {
|
|
1070
|
+
throw new TomlError("unrecognized escape sequence", {
|
|
1071
|
+
toml: str3,
|
|
1072
|
+
ptr: tmp
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
sliceStart = ptr;
|
|
1076
|
+
} else if (!isLiteral && c === "\\") {
|
|
1077
|
+
tmp = ptr - 1;
|
|
1078
|
+
isEscape = true;
|
|
1079
|
+
parsed += str3.slice(sliceStart, tmp);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
return parsed + str3.slice(sliceStart, endPtr - 1);
|
|
1083
|
+
}
|
|
1084
|
+
function parseValue(value, toml, ptr, integersAsBigInt) {
|
|
1085
|
+
if (value === "true")
|
|
1086
|
+
return true;
|
|
1087
|
+
if (value === "false")
|
|
1088
|
+
return false;
|
|
1089
|
+
if (value === "-inf")
|
|
1090
|
+
return -Infinity;
|
|
1091
|
+
if (value === "inf" || value === "+inf")
|
|
1092
|
+
return Infinity;
|
|
1093
|
+
if (value === "nan" || value === "+nan" || value === "-nan")
|
|
1094
|
+
return NaN;
|
|
1095
|
+
if (value === "-0")
|
|
1096
|
+
return integersAsBigInt ? 0n : 0;
|
|
1097
|
+
let isInt = INT_REGEX.test(value);
|
|
1098
|
+
if (isInt || FLOAT_REGEX.test(value)) {
|
|
1099
|
+
if (LEADING_ZERO.test(value)) {
|
|
1100
|
+
throw new TomlError("leading zeroes are not allowed", {
|
|
1101
|
+
toml,
|
|
1102
|
+
ptr
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
value = value.replace(/_/g, "");
|
|
1106
|
+
let numeric2 = +value;
|
|
1107
|
+
if (isNaN(numeric2)) {
|
|
1108
|
+
throw new TomlError("invalid number", {
|
|
1109
|
+
toml,
|
|
1110
|
+
ptr
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
if (isInt) {
|
|
1114
|
+
if ((isInt = !Number.isSafeInteger(numeric2)) && !integersAsBigInt) {
|
|
1115
|
+
throw new TomlError("integer value cannot be represented losslessly", {
|
|
1116
|
+
toml,
|
|
1117
|
+
ptr
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
if (isInt || integersAsBigInt === true)
|
|
1121
|
+
numeric2 = BigInt(value);
|
|
1122
|
+
}
|
|
1123
|
+
return numeric2;
|
|
1124
|
+
}
|
|
1125
|
+
const date2 = new TomlDate(value);
|
|
1126
|
+
if (!date2.isValid()) {
|
|
1127
|
+
throw new TomlError("invalid value", {
|
|
1128
|
+
toml,
|
|
1129
|
+
ptr
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
return date2;
|
|
1133
|
+
}
|
|
1134
|
+
var INT_REGEX, FLOAT_REGEX, LEADING_ZERO, ESCAPE_REGEX, ESC_MAP;
|
|
1135
|
+
var init_primitive = __esm({
|
|
1136
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/primitive.js"() {
|
|
1137
|
+
"use strict";
|
|
1138
|
+
init_util();
|
|
1139
|
+
init_date();
|
|
1140
|
+
init_error();
|
|
1141
|
+
INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
|
|
1142
|
+
FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
|
|
1143
|
+
LEADING_ZERO = /^[+-]?0[0-9_]/;
|
|
1144
|
+
ESCAPE_REGEX = /^[0-9a-f]{2,8}$/i;
|
|
1145
|
+
ESC_MAP = {
|
|
1146
|
+
b: "\b",
|
|
1147
|
+
t: " ",
|
|
1148
|
+
n: "\n",
|
|
1149
|
+
f: "\f",
|
|
1150
|
+
r: "\r",
|
|
1151
|
+
e: "\x1B",
|
|
1152
|
+
'"': '"',
|
|
1153
|
+
"\\": "\\"
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
|
|
1158
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js
|
|
1159
|
+
function sliceAndTrimEndOf(str3, startPtr, endPtr) {
|
|
1160
|
+
let value = str3.slice(startPtr, endPtr);
|
|
1161
|
+
let commentIdx = value.indexOf("#");
|
|
1162
|
+
if (commentIdx > -1) {
|
|
1163
|
+
skipComment(str3, commentIdx);
|
|
1164
|
+
value = value.slice(0, commentIdx);
|
|
1165
|
+
}
|
|
1166
|
+
return [value.trimEnd(), commentIdx];
|
|
1167
|
+
}
|
|
1168
|
+
function extractValue(str3, ptr, end, depth, integersAsBigInt) {
|
|
1169
|
+
if (depth === 0) {
|
|
1170
|
+
throw new TomlError("document contains excessively nested structures. aborting.", {
|
|
1171
|
+
toml: str3,
|
|
1172
|
+
ptr
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
let c = str3[ptr];
|
|
1176
|
+
if (c === "[" || c === "{") {
|
|
1177
|
+
let [value, endPtr2] = c === "[" ? parseArray(str3, ptr, depth, integersAsBigInt) : parseInlineTable(str3, ptr, depth, integersAsBigInt);
|
|
1178
|
+
if (end) {
|
|
1179
|
+
endPtr2 = skipVoid(str3, endPtr2);
|
|
1180
|
+
if (str3[endPtr2] === ",")
|
|
1181
|
+
endPtr2++;
|
|
1182
|
+
else if (str3[endPtr2] !== end) {
|
|
1183
|
+
throw new TomlError("expected comma or end of structure", {
|
|
1184
|
+
toml: str3,
|
|
1185
|
+
ptr: endPtr2
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
return [value, endPtr2];
|
|
1190
|
+
}
|
|
1191
|
+
let endPtr;
|
|
1192
|
+
if (c === '"' || c === "'") {
|
|
1193
|
+
endPtr = getStringEnd(str3, ptr);
|
|
1194
|
+
let parsed = parseString(str3, ptr, endPtr);
|
|
1195
|
+
if (end) {
|
|
1196
|
+
endPtr = skipVoid(str3, endPtr);
|
|
1197
|
+
if (str3[endPtr] && str3[endPtr] !== "," && str3[endPtr] !== end && str3[endPtr] !== "\n" && str3[endPtr] !== "\r") {
|
|
1198
|
+
throw new TomlError("unexpected character encountered", {
|
|
1199
|
+
toml: str3,
|
|
1200
|
+
ptr: endPtr
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
endPtr += +(str3[endPtr] === ",");
|
|
1204
|
+
}
|
|
1205
|
+
return [parsed, endPtr];
|
|
1206
|
+
}
|
|
1207
|
+
endPtr = skipUntil(str3, ptr, ",", end);
|
|
1208
|
+
let slice2 = sliceAndTrimEndOf(str3, ptr, endPtr - +(str3[endPtr - 1] === ","));
|
|
1209
|
+
if (!slice2[0]) {
|
|
1210
|
+
throw new TomlError("incomplete key-value declaration: no value specified", {
|
|
1211
|
+
toml: str3,
|
|
1212
|
+
ptr
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1215
|
+
if (end && slice2[1] > -1) {
|
|
1216
|
+
endPtr = skipVoid(str3, ptr + slice2[1]);
|
|
1217
|
+
endPtr += +(str3[endPtr] === ",");
|
|
1218
|
+
}
|
|
1219
|
+
return [
|
|
1220
|
+
parseValue(slice2[0], str3, ptr, integersAsBigInt),
|
|
1221
|
+
endPtr
|
|
1222
|
+
];
|
|
1223
|
+
}
|
|
1224
|
+
var init_extract = __esm({
|
|
1225
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/extract.js"() {
|
|
1226
|
+
"use strict";
|
|
1227
|
+
init_primitive();
|
|
1228
|
+
init_struct();
|
|
1229
|
+
init_util();
|
|
1230
|
+
init_error();
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
|
|
1234
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js
|
|
1235
|
+
function parseKey(str3, ptr, end = "=") {
|
|
1236
|
+
let dot = ptr - 1;
|
|
1237
|
+
let parsed = [];
|
|
1238
|
+
let endPtr = str3.indexOf(end, ptr);
|
|
1239
|
+
if (endPtr < 0) {
|
|
1240
|
+
throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
1241
|
+
toml: str3,
|
|
1242
|
+
ptr
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
do {
|
|
1246
|
+
let c = str3[ptr = ++dot];
|
|
1247
|
+
if (c !== " " && c !== " ") {
|
|
1248
|
+
if (c === '"' || c === "'") {
|
|
1249
|
+
if (c === str3[ptr + 1] && c === str3[ptr + 2]) {
|
|
1250
|
+
throw new TomlError("multiline strings are not allowed in keys", {
|
|
1251
|
+
toml: str3,
|
|
1252
|
+
ptr
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
let eos = getStringEnd(str3, ptr);
|
|
1256
|
+
if (eos < 0) {
|
|
1257
|
+
throw new TomlError("unfinished string encountered", {
|
|
1258
|
+
toml: str3,
|
|
1259
|
+
ptr
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
dot = str3.indexOf(".", eos);
|
|
1263
|
+
let strEnd = str3.slice(eos, dot < 0 || dot > endPtr ? endPtr : dot);
|
|
1264
|
+
let newLine = indexOfNewline(strEnd);
|
|
1265
|
+
if (newLine > -1) {
|
|
1266
|
+
throw new TomlError("newlines are not allowed in keys", {
|
|
1267
|
+
toml: str3,
|
|
1268
|
+
ptr: ptr + dot + newLine
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
if (strEnd.trimStart()) {
|
|
1272
|
+
throw new TomlError("found extra tokens after the string part", {
|
|
1273
|
+
toml: str3,
|
|
1274
|
+
ptr: eos
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
if (endPtr < eos) {
|
|
1278
|
+
endPtr = str3.indexOf(end, eos);
|
|
1279
|
+
if (endPtr < 0) {
|
|
1280
|
+
throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
1281
|
+
toml: str3,
|
|
1282
|
+
ptr
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
parsed.push(parseString(str3, ptr, eos));
|
|
1287
|
+
} else {
|
|
1288
|
+
dot = str3.indexOf(".", ptr);
|
|
1289
|
+
let part = str3.slice(ptr, dot < 0 || dot > endPtr ? endPtr : dot);
|
|
1290
|
+
if (!KEY_PART_RE.test(part)) {
|
|
1291
|
+
throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys", {
|
|
1292
|
+
toml: str3,
|
|
1293
|
+
ptr
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
parsed.push(part.trimEnd());
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
} while (dot + 1 && dot < endPtr);
|
|
1300
|
+
return [parsed, skipVoid(str3, endPtr + 1, true, true)];
|
|
1301
|
+
}
|
|
1302
|
+
function parseInlineTable(str3, ptr, depth, integersAsBigInt) {
|
|
1303
|
+
let res = {};
|
|
1304
|
+
let seen = /* @__PURE__ */ new Set();
|
|
1305
|
+
let c;
|
|
1306
|
+
ptr++;
|
|
1307
|
+
while ((c = str3[ptr++]) !== "}" && c) {
|
|
1308
|
+
if (c === ",") {
|
|
1309
|
+
throw new TomlError("expected value, found comma", {
|
|
1310
|
+
toml: str3,
|
|
1311
|
+
ptr: ptr - 1
|
|
1312
|
+
});
|
|
1313
|
+
} else if (c === "#")
|
|
1314
|
+
ptr = skipComment(str3, ptr);
|
|
1315
|
+
else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
|
|
1316
|
+
let k;
|
|
1317
|
+
let t = res;
|
|
1318
|
+
let hasOwn4 = false;
|
|
1319
|
+
let [key, keyEndPtr] = parseKey(str3, ptr - 1);
|
|
1320
|
+
for (let i = 0; i < key.length; i++) {
|
|
1321
|
+
if (i)
|
|
1322
|
+
t = hasOwn4 ? t[k] : t[k] = {};
|
|
1323
|
+
k = key[i];
|
|
1324
|
+
if ((hasOwn4 = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k]))) {
|
|
1325
|
+
throw new TomlError("trying to redefine an already defined value", {
|
|
1326
|
+
toml: str3,
|
|
1327
|
+
ptr
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
if (!hasOwn4 && k === "__proto__") {
|
|
1331
|
+
Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
if (hasOwn4) {
|
|
1335
|
+
throw new TomlError("trying to redefine an already defined value", {
|
|
1336
|
+
toml: str3,
|
|
1337
|
+
ptr
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
let [value, valueEndPtr] = extractValue(str3, keyEndPtr, "}", depth - 1, integersAsBigInt);
|
|
1341
|
+
seen.add(value);
|
|
1342
|
+
t[k] = value;
|
|
1343
|
+
ptr = valueEndPtr;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
if (!c) {
|
|
1347
|
+
throw new TomlError("unfinished table encountered", {
|
|
1348
|
+
toml: str3,
|
|
1349
|
+
ptr
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
return [res, ptr];
|
|
1353
|
+
}
|
|
1354
|
+
function parseArray(str3, ptr, depth, integersAsBigInt) {
|
|
1355
|
+
let res = [];
|
|
1356
|
+
let c;
|
|
1357
|
+
ptr++;
|
|
1358
|
+
while ((c = str3[ptr++]) !== "]" && c) {
|
|
1359
|
+
if (c === ",") {
|
|
1360
|
+
throw new TomlError("expected value, found comma", {
|
|
1361
|
+
toml: str3,
|
|
1362
|
+
ptr: ptr - 1
|
|
1363
|
+
});
|
|
1364
|
+
} else if (c === "#")
|
|
1365
|
+
ptr = skipComment(str3, ptr);
|
|
1366
|
+
else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
|
|
1367
|
+
let e = extractValue(str3, ptr - 1, "]", depth - 1, integersAsBigInt);
|
|
1368
|
+
res.push(e[0]);
|
|
1369
|
+
ptr = e[1];
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
if (!c) {
|
|
1373
|
+
throw new TomlError("unfinished array encountered", {
|
|
1374
|
+
toml: str3,
|
|
1375
|
+
ptr
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
return [res, ptr];
|
|
1379
|
+
}
|
|
1380
|
+
var KEY_PART_RE;
|
|
1381
|
+
var init_struct = __esm({
|
|
1382
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/struct.js"() {
|
|
1383
|
+
"use strict";
|
|
1384
|
+
init_primitive();
|
|
1385
|
+
init_extract();
|
|
1386
|
+
init_util();
|
|
1387
|
+
init_error();
|
|
1388
|
+
KEY_PART_RE = /^[a-zA-Z0-9-_]+[ \t]*$/;
|
|
1389
|
+
}
|
|
1390
|
+
});
|
|
1391
|
+
|
|
1392
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js
|
|
1393
|
+
function peekTable(key, table, meta, type2) {
|
|
1394
|
+
let t = table;
|
|
1395
|
+
let m = meta;
|
|
1396
|
+
let k;
|
|
1397
|
+
let hasOwn4 = false;
|
|
1398
|
+
let state;
|
|
1399
|
+
for (let i = 0; i < key.length; i++) {
|
|
1400
|
+
if (i) {
|
|
1401
|
+
t = hasOwn4 ? t[k] : t[k] = {};
|
|
1402
|
+
m = (state = m[k]).c;
|
|
1403
|
+
if (type2 === 0 && (state.t === 1 || state.t === 2)) {
|
|
1404
|
+
return null;
|
|
1405
|
+
}
|
|
1406
|
+
if (state.t === 2) {
|
|
1407
|
+
let l = t.length - 1;
|
|
1408
|
+
t = t[l];
|
|
1409
|
+
m = m[l].c;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
k = key[i];
|
|
1413
|
+
if ((hasOwn4 = Object.hasOwn(t, k)) && m[k]?.t === 0 && m[k]?.d) {
|
|
1414
|
+
return null;
|
|
1415
|
+
}
|
|
1416
|
+
if (!hasOwn4) {
|
|
1417
|
+
if (k === "__proto__") {
|
|
1418
|
+
Object.defineProperty(t, k, { enumerable: true, configurable: true, writable: true });
|
|
1419
|
+
Object.defineProperty(m, k, { enumerable: true, configurable: true, writable: true });
|
|
1420
|
+
}
|
|
1421
|
+
m[k] = {
|
|
1422
|
+
t: i < key.length - 1 && type2 === 2 ? 3 : type2,
|
|
1423
|
+
d: false,
|
|
1424
|
+
i: 0,
|
|
1425
|
+
c: {}
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
state = m[k];
|
|
1430
|
+
if (state.t !== type2 && !(type2 === 1 && state.t === 3)) {
|
|
1431
|
+
return null;
|
|
1432
|
+
}
|
|
1433
|
+
if (type2 === 2) {
|
|
1434
|
+
if (!state.d) {
|
|
1435
|
+
state.d = true;
|
|
1436
|
+
t[k] = [];
|
|
1437
|
+
}
|
|
1438
|
+
t[k].push(t = {});
|
|
1439
|
+
state.c[state.i++] = state = { t: 1, d: false, i: 0, c: {} };
|
|
1440
|
+
}
|
|
1441
|
+
if (state.d) {
|
|
1442
|
+
return null;
|
|
1443
|
+
}
|
|
1444
|
+
state.d = true;
|
|
1445
|
+
if (type2 === 1) {
|
|
1446
|
+
t = hasOwn4 ? t[k] : t[k] = {};
|
|
1447
|
+
} else if (type2 === 0 && hasOwn4) {
|
|
1448
|
+
return null;
|
|
1449
|
+
}
|
|
1450
|
+
return [k, t, state.c];
|
|
1451
|
+
}
|
|
1452
|
+
function parse(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
|
|
1453
|
+
let res = {};
|
|
1454
|
+
let meta = {};
|
|
1455
|
+
let tbl = res;
|
|
1456
|
+
let m = meta;
|
|
1457
|
+
for (let ptr = skipVoid(toml, 0); ptr < toml.length; ) {
|
|
1458
|
+
if (toml[ptr] === "[") {
|
|
1459
|
+
let isTableArray = toml[++ptr] === "[";
|
|
1460
|
+
let k = parseKey(toml, ptr += +isTableArray, "]");
|
|
1461
|
+
if (isTableArray) {
|
|
1462
|
+
if (toml[k[1] - 1] !== "]") {
|
|
1463
|
+
throw new TomlError("expected end of table declaration", {
|
|
1464
|
+
toml,
|
|
1465
|
+
ptr: k[1] - 1
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
k[1]++;
|
|
1469
|
+
}
|
|
1470
|
+
let p = peekTable(
|
|
1471
|
+
k[0],
|
|
1472
|
+
res,
|
|
1473
|
+
meta,
|
|
1474
|
+
isTableArray ? 2 : 1
|
|
1475
|
+
/* Type.EXPLICIT */
|
|
1476
|
+
);
|
|
1477
|
+
if (!p) {
|
|
1478
|
+
throw new TomlError("trying to redefine an already defined table or value", {
|
|
1479
|
+
toml,
|
|
1480
|
+
ptr
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
m = p[2];
|
|
1484
|
+
tbl = p[1];
|
|
1485
|
+
ptr = k[1];
|
|
1486
|
+
} else {
|
|
1487
|
+
let k = parseKey(toml, ptr);
|
|
1488
|
+
let p = peekTable(
|
|
1489
|
+
k[0],
|
|
1490
|
+
tbl,
|
|
1491
|
+
m,
|
|
1492
|
+
0
|
|
1493
|
+
/* Type.DOTTED */
|
|
1494
|
+
);
|
|
1495
|
+
if (!p) {
|
|
1496
|
+
throw new TomlError("trying to redefine an already defined table or value", {
|
|
1497
|
+
toml,
|
|
1498
|
+
ptr
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
let v = extractValue(toml, k[1], void 0, maxDepth, integersAsBigInt);
|
|
1502
|
+
p[1][p[0]] = v[0];
|
|
1503
|
+
ptr = v[1];
|
|
1504
|
+
}
|
|
1505
|
+
ptr = skipVoid(toml, ptr, true);
|
|
1506
|
+
if (toml[ptr] && toml[ptr] !== "\n" && toml[ptr] !== "\r") {
|
|
1507
|
+
throw new TomlError("each key-value declaration must be followed by an end-of-line", {
|
|
1508
|
+
toml,
|
|
1509
|
+
ptr
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
ptr = skipVoid(toml, ptr);
|
|
1513
|
+
}
|
|
1514
|
+
return res;
|
|
1515
|
+
}
|
|
1516
|
+
var init_parse = __esm({
|
|
1517
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/parse.js"() {
|
|
1518
|
+
"use strict";
|
|
1519
|
+
init_struct();
|
|
1520
|
+
init_extract();
|
|
1521
|
+
init_util();
|
|
1522
|
+
init_error();
|
|
1523
|
+
}
|
|
1524
|
+
});
|
|
1525
|
+
|
|
1526
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js
|
|
1527
|
+
function extendedTypeOf(obj) {
|
|
1528
|
+
let type2 = typeof obj;
|
|
1529
|
+
if (type2 === "object") {
|
|
1530
|
+
if (Array.isArray(obj))
|
|
1531
|
+
return "array";
|
|
1532
|
+
if (obj instanceof Date)
|
|
1533
|
+
return "date";
|
|
1534
|
+
}
|
|
1535
|
+
return type2;
|
|
1536
|
+
}
|
|
1537
|
+
function isArrayOfTables(obj) {
|
|
1538
|
+
for (let i = 0; i < obj.length; i++) {
|
|
1539
|
+
if (extendedTypeOf(obj[i]) !== "object")
|
|
1540
|
+
return false;
|
|
1541
|
+
}
|
|
1542
|
+
return obj.length != 0;
|
|
1543
|
+
}
|
|
1544
|
+
function formatString(s) {
|
|
1545
|
+
return JSON.stringify(s).replace(/\x7f/g, "\\u007f");
|
|
1546
|
+
}
|
|
1547
|
+
function stringifyValue(val, type2, depth, numberAsFloat) {
|
|
1548
|
+
if (depth === 0) {
|
|
1549
|
+
throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
1550
|
+
}
|
|
1551
|
+
if (type2 === "number") {
|
|
1552
|
+
if (isNaN(val))
|
|
1553
|
+
return "nan";
|
|
1554
|
+
if (val === Infinity)
|
|
1555
|
+
return "inf";
|
|
1556
|
+
if (val === -Infinity)
|
|
1557
|
+
return "-inf";
|
|
1558
|
+
if (numberAsFloat && Number.isInteger(val))
|
|
1559
|
+
return val.toFixed(1);
|
|
1560
|
+
return val.toString();
|
|
1561
|
+
}
|
|
1562
|
+
if (type2 === "bigint" || type2 === "boolean") {
|
|
1563
|
+
return val.toString();
|
|
1564
|
+
}
|
|
1565
|
+
if (type2 === "string") {
|
|
1566
|
+
return formatString(val);
|
|
1567
|
+
}
|
|
1568
|
+
if (type2 === "date") {
|
|
1569
|
+
if (isNaN(val.getTime())) {
|
|
1570
|
+
throw new TypeError("cannot serialize invalid date");
|
|
1571
|
+
}
|
|
1572
|
+
return val.toISOString();
|
|
1573
|
+
}
|
|
1574
|
+
if (type2 === "object") {
|
|
1575
|
+
return stringifyInlineTable(val, depth, numberAsFloat);
|
|
1576
|
+
}
|
|
1577
|
+
if (type2 === "array") {
|
|
1578
|
+
return stringifyArray(val, depth, numberAsFloat);
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
function stringifyInlineTable(obj, depth, numberAsFloat) {
|
|
1582
|
+
let keys = Object.keys(obj);
|
|
1583
|
+
if (keys.length === 0)
|
|
1584
|
+
return "{}";
|
|
1585
|
+
let res = "{ ";
|
|
1586
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1587
|
+
let k = keys[i];
|
|
1588
|
+
if (i)
|
|
1589
|
+
res += ", ";
|
|
1590
|
+
res += BARE_KEY.test(k) ? k : formatString(k);
|
|
1591
|
+
res += " = ";
|
|
1592
|
+
res += stringifyValue(obj[k], extendedTypeOf(obj[k]), depth - 1, numberAsFloat);
|
|
1593
|
+
}
|
|
1594
|
+
return res + " }";
|
|
1595
|
+
}
|
|
1596
|
+
function stringifyArray(array, depth, numberAsFloat) {
|
|
1597
|
+
if (array.length === 0)
|
|
1598
|
+
return "[]";
|
|
1599
|
+
let res = "[ ";
|
|
1600
|
+
for (let i = 0; i < array.length; i++) {
|
|
1601
|
+
if (i)
|
|
1602
|
+
res += ", ";
|
|
1603
|
+
if (array[i] === null || array[i] === void 0) {
|
|
1604
|
+
throw new TypeError("arrays cannot contain null or undefined values");
|
|
1605
|
+
}
|
|
1606
|
+
res += stringifyValue(array[i], extendedTypeOf(array[i]), depth - 1, numberAsFloat);
|
|
1607
|
+
}
|
|
1608
|
+
return res + " ]";
|
|
1609
|
+
}
|
|
1610
|
+
function stringifyArrayTable(array, key, depth, numberAsFloat) {
|
|
1611
|
+
if (depth === 0) {
|
|
1612
|
+
throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
1613
|
+
}
|
|
1614
|
+
let res = "";
|
|
1615
|
+
for (let i = 0; i < array.length; i++) {
|
|
1616
|
+
res += `${res && "\n"}[[${key}]]
|
|
1617
|
+
`;
|
|
1618
|
+
res += stringifyTable(0, array[i], key, depth, numberAsFloat);
|
|
1619
|
+
}
|
|
1620
|
+
return res;
|
|
1621
|
+
}
|
|
1622
|
+
function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
|
|
1623
|
+
if (depth === 0) {
|
|
1624
|
+
throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
1625
|
+
}
|
|
1626
|
+
let preamble = "";
|
|
1627
|
+
let tables = "";
|
|
1628
|
+
let keys = Object.keys(obj);
|
|
1629
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1630
|
+
let k = keys[i];
|
|
1631
|
+
if (obj[k] !== null && obj[k] !== void 0) {
|
|
1632
|
+
let type2 = extendedTypeOf(obj[k]);
|
|
1633
|
+
if (type2 === "symbol" || type2 === "function") {
|
|
1634
|
+
throw new TypeError(`cannot serialize values of type '${type2}'`);
|
|
1635
|
+
}
|
|
1636
|
+
let key = BARE_KEY.test(k) ? k : formatString(k);
|
|
1637
|
+
if (type2 === "array" && isArrayOfTables(obj[k])) {
|
|
1638
|
+
tables += (tables && "\n") + stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat);
|
|
1639
|
+
} else if (type2 === "object") {
|
|
1640
|
+
let tblKey = prefix ? `${prefix}.${key}` : key;
|
|
1641
|
+
tables += (tables && "\n") + stringifyTable(tblKey, obj[k], tblKey, depth - 1, numberAsFloat);
|
|
1642
|
+
} else {
|
|
1643
|
+
preamble += key;
|
|
1644
|
+
preamble += " = ";
|
|
1645
|
+
preamble += stringifyValue(obj[k], type2, depth, numberAsFloat);
|
|
1646
|
+
preamble += "\n";
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
if (tableKey && (preamble || !tables))
|
|
1651
|
+
preamble = preamble ? `[${tableKey}]
|
|
1652
|
+
${preamble}` : `[${tableKey}]`;
|
|
1653
|
+
return preamble && tables ? `${preamble}
|
|
1654
|
+
${tables}` : preamble || tables;
|
|
1655
|
+
}
|
|
1656
|
+
function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) {
|
|
1657
|
+
if (extendedTypeOf(obj) !== "object") {
|
|
1658
|
+
throw new TypeError("stringify can only be called with an object");
|
|
1659
|
+
}
|
|
1660
|
+
let str3 = stringifyTable(0, obj, "", maxDepth, numbersAsFloat);
|
|
1661
|
+
if (str3[str3.length - 1] !== "\n")
|
|
1662
|
+
return str3 + "\n";
|
|
1663
|
+
return str3;
|
|
1664
|
+
}
|
|
1665
|
+
var BARE_KEY;
|
|
1666
|
+
var init_stringify = __esm({
|
|
1667
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/stringify.js"() {
|
|
1668
|
+
"use strict";
|
|
1669
|
+
BARE_KEY = /^[a-z0-9-_]+$/i;
|
|
1670
|
+
}
|
|
1671
|
+
});
|
|
1672
|
+
|
|
1673
|
+
// ../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js
|
|
1674
|
+
var init_dist = __esm({
|
|
1675
|
+
"../../node_modules/.pnpm/smol-toml@1.6.1/node_modules/smol-toml/dist/index.js"() {
|
|
1676
|
+
"use strict";
|
|
1677
|
+
init_parse();
|
|
1678
|
+
init_stringify();
|
|
1679
|
+
init_date();
|
|
1680
|
+
init_error();
|
|
1681
|
+
}
|
|
1682
|
+
});
|
|
1683
|
+
|
|
781
1684
|
// ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
|
|
782
1685
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
783
1686
|
if (kind === "m")
|
|
@@ -858,7 +1761,7 @@ var init_errors = __esm({
|
|
|
858
1761
|
|
|
859
1762
|
// ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/error.mjs
|
|
860
1763
|
var AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError;
|
|
861
|
-
var
|
|
1764
|
+
var init_error2 = __esm({
|
|
862
1765
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
|
|
863
1766
|
"use strict";
|
|
864
1767
|
init_errors();
|
|
@@ -976,7 +1879,7 @@ var startsWithSchemeRegexp, isAbsoluteURL, isArray, isReadonlyArray, validatePos
|
|
|
976
1879
|
var init_values = __esm({
|
|
977
1880
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
|
|
978
1881
|
"use strict";
|
|
979
|
-
|
|
1882
|
+
init_error2();
|
|
980
1883
|
startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
981
1884
|
isAbsoluteURL = (url) => {
|
|
982
1885
|
return startsWithSchemeRegexp.test(url);
|
|
@@ -1268,7 +2171,7 @@ function stringifyQuery(query) {
|
|
|
1268
2171
|
var init_query = __esm({
|
|
1269
2172
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
|
|
1270
2173
|
"use strict";
|
|
1271
|
-
|
|
2174
|
+
init_error2();
|
|
1272
2175
|
}
|
|
1273
2176
|
});
|
|
1274
2177
|
|
|
@@ -1522,7 +2425,7 @@ var init_streaming = __esm({
|
|
|
1522
2425
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
|
|
1523
2426
|
"use strict";
|
|
1524
2427
|
init_tslib();
|
|
1525
|
-
|
|
2428
|
+
init_error2();
|
|
1526
2429
|
init_shims();
|
|
1527
2430
|
init_line();
|
|
1528
2431
|
init_shims();
|
|
@@ -1530,7 +2433,7 @@ var init_streaming = __esm({
|
|
|
1530
2433
|
init_values();
|
|
1531
2434
|
init_bytes();
|
|
1532
2435
|
init_log();
|
|
1533
|
-
|
|
2436
|
+
init_error2();
|
|
1534
2437
|
Stream = class _Stream {
|
|
1535
2438
|
constructor(iterator, controller, client) {
|
|
1536
2439
|
this.iterator = iterator;
|
|
@@ -1779,7 +2682,7 @@ function addRequestID(value, response) {
|
|
|
1779
2682
|
enumerable: false
|
|
1780
2683
|
});
|
|
1781
2684
|
}
|
|
1782
|
-
var
|
|
2685
|
+
var init_parse2 = __esm({
|
|
1783
2686
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
|
|
1784
2687
|
"use strict";
|
|
1785
2688
|
init_streaming();
|
|
@@ -1793,7 +2696,7 @@ var init_api_promise = __esm({
|
|
|
1793
2696
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
|
|
1794
2697
|
"use strict";
|
|
1795
2698
|
init_tslib();
|
|
1796
|
-
|
|
2699
|
+
init_parse2();
|
|
1797
2700
|
APIPromise = class _APIPromise extends Promise {
|
|
1798
2701
|
constructor(client, responsePromise, parseResponse2 = defaultParseResponse) {
|
|
1799
2702
|
super((resolve11) => {
|
|
@@ -1863,8 +2766,8 @@ var init_pagination = __esm({
|
|
|
1863
2766
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
|
|
1864
2767
|
"use strict";
|
|
1865
2768
|
init_tslib();
|
|
1866
|
-
|
|
1867
|
-
|
|
2769
|
+
init_error2();
|
|
2770
|
+
init_parse2();
|
|
1868
2771
|
init_api_promise();
|
|
1869
2772
|
init_values();
|
|
1870
2773
|
AbstractPage = class {
|
|
@@ -2303,7 +3206,7 @@ var EMPTY, createPathTagFunction, path3;
|
|
|
2303
3206
|
var init_path = __esm({
|
|
2304
3207
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
|
|
2305
3208
|
"use strict";
|
|
2306
|
-
|
|
3209
|
+
init_error2();
|
|
2307
3210
|
EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
2308
3211
|
createPathTagFunction = (pathEncoder = encodeURIPath) => function path19(statics, ...params) {
|
|
2309
3212
|
if (statics.length === 1)
|
|
@@ -2546,10 +3449,10 @@ var init_models = __esm({
|
|
|
2546
3449
|
});
|
|
2547
3450
|
|
|
2548
3451
|
// ../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/error.mjs
|
|
2549
|
-
var
|
|
3452
|
+
var init_error3 = __esm({
|
|
2550
3453
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/error.mjs"() {
|
|
2551
3454
|
"use strict";
|
|
2552
|
-
|
|
3455
|
+
init_error2();
|
|
2553
3456
|
}
|
|
2554
3457
|
});
|
|
2555
3458
|
|
|
@@ -2646,7 +3549,7 @@ function parseBetaOutputFormat(params, content) {
|
|
|
2646
3549
|
var init_beta_parser = __esm({
|
|
2647
3550
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
|
|
2648
3551
|
"use strict";
|
|
2649
|
-
|
|
3552
|
+
init_error2();
|
|
2650
3553
|
}
|
|
2651
3554
|
});
|
|
2652
3555
|
|
|
@@ -2896,7 +3799,7 @@ var init_BetaMessageStream = __esm({
|
|
|
2896
3799
|
"use strict";
|
|
2897
3800
|
init_tslib();
|
|
2898
3801
|
init_parser();
|
|
2899
|
-
|
|
3802
|
+
init_error3();
|
|
2900
3803
|
init_errors();
|
|
2901
3804
|
init_streaming2();
|
|
2902
3805
|
init_beta_parser();
|
|
@@ -3598,7 +4501,7 @@ var init_BetaToolRunner = __esm({
|
|
|
3598
4501
|
"use strict";
|
|
3599
4502
|
init_tslib();
|
|
3600
4503
|
init_ToolError();
|
|
3601
|
-
|
|
4504
|
+
init_error2();
|
|
3602
4505
|
init_headers();
|
|
3603
4506
|
init_CompactionControl();
|
|
3604
4507
|
init_stainless_helper_header();
|
|
@@ -3880,7 +4783,7 @@ var JSONLDecoder;
|
|
|
3880
4783
|
var init_jsonl = __esm({
|
|
3881
4784
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
|
|
3882
4785
|
"use strict";
|
|
3883
|
-
|
|
4786
|
+
init_error2();
|
|
3884
4787
|
init_shims();
|
|
3885
4788
|
init_line();
|
|
3886
4789
|
JSONLDecoder = class _JSONLDecoder {
|
|
@@ -3925,7 +4828,7 @@ var init_batches = __esm({
|
|
|
3925
4828
|
init_pagination();
|
|
3926
4829
|
init_headers();
|
|
3927
4830
|
init_jsonl();
|
|
3928
|
-
|
|
4831
|
+
init_error3();
|
|
3929
4832
|
init_path();
|
|
3930
4833
|
Batches = class extends APIResource {
|
|
3931
4834
|
/**
|
|
@@ -4141,7 +5044,7 @@ var DEPRECATED_MODELS, MODELS_TO_WARN_WITH_THINKING_ENABLED, Messages;
|
|
|
4141
5044
|
var init_messages = __esm({
|
|
4142
5045
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
|
|
4143
5046
|
"use strict";
|
|
4144
|
-
|
|
5047
|
+
init_error3();
|
|
4145
5048
|
init_resource();
|
|
4146
5049
|
init_constants();
|
|
4147
5050
|
init_headers();
|
|
@@ -4592,7 +5495,7 @@ function parseOutputFormat(params, content) {
|
|
|
4592
5495
|
var init_parser2 = __esm({
|
|
4593
5496
|
"../../node_modules/.pnpm/@anthropic-ai+sdk@0.82.0_zod@4.3.6/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
|
|
4594
5497
|
"use strict";
|
|
4595
|
-
|
|
5498
|
+
init_error2();
|
|
4596
5499
|
}
|
|
4597
5500
|
});
|
|
4598
5501
|
|
|
@@ -4608,7 +5511,7 @@ var init_MessageStream = __esm({
|
|
|
4608
5511
|
"use strict";
|
|
4609
5512
|
init_tslib();
|
|
4610
5513
|
init_errors();
|
|
4611
|
-
|
|
5514
|
+
init_error3();
|
|
4612
5515
|
init_streaming2();
|
|
4613
5516
|
init_parser();
|
|
4614
5517
|
init_parser2();
|
|
@@ -5183,7 +6086,7 @@ var init_batches2 = __esm({
|
|
|
5183
6086
|
init_pagination();
|
|
5184
6087
|
init_headers();
|
|
5185
6088
|
init_jsonl();
|
|
5186
|
-
|
|
6089
|
+
init_error3();
|
|
5187
6090
|
init_path();
|
|
5188
6091
|
Batches2 = class extends APIResource {
|
|
5189
6092
|
/**
|
|
@@ -5545,7 +6448,7 @@ var init_client = __esm({
|
|
|
5545
6448
|
init_request_options();
|
|
5546
6449
|
init_query();
|
|
5547
6450
|
init_version();
|
|
5548
|
-
|
|
6451
|
+
init_error2();
|
|
5549
6452
|
init_pagination();
|
|
5550
6453
|
init_uploads2();
|
|
5551
6454
|
init_resources();
|
|
@@ -6036,7 +6939,7 @@ var init_sdk = __esm({
|
|
|
6036
6939
|
init_api_promise();
|
|
6037
6940
|
init_client();
|
|
6038
6941
|
init_pagination();
|
|
6039
|
-
|
|
6942
|
+
init_error2();
|
|
6040
6943
|
}
|
|
6041
6944
|
});
|
|
6042
6945
|
|
|
@@ -6120,7 +7023,7 @@ var init_errors2 = __esm({
|
|
|
6120
7023
|
|
|
6121
7024
|
// ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/error.mjs
|
|
6122
7025
|
var OpenAIError, APIError2, APIUserAbortError2, APIConnectionError2, APIConnectionTimeoutError2, BadRequestError2, AuthenticationError2, PermissionDeniedError2, NotFoundError2, ConflictError2, UnprocessableEntityError2, RateLimitError2, InternalServerError2, LengthFinishReasonError, ContentFilterFinishReasonError, InvalidWebhookSignatureError;
|
|
6123
|
-
var
|
|
7026
|
+
var init_error4 = __esm({
|
|
6124
7027
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/error.mjs"() {
|
|
6125
7028
|
"use strict";
|
|
6126
7029
|
init_errors2();
|
|
@@ -6258,7 +7161,7 @@ var startsWithSchemeRegexp2, isAbsoluteURL2, isArray2, isReadonlyArray2, validat
|
|
|
6258
7161
|
var init_values2 = __esm({
|
|
6259
7162
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/values.mjs"() {
|
|
6260
7163
|
"use strict";
|
|
6261
|
-
|
|
7164
|
+
init_error4();
|
|
6262
7165
|
startsWithSchemeRegexp2 = /^[a-z][a-z0-9+.-]*:/i;
|
|
6263
7166
|
isAbsoluteURL2 = (url) => {
|
|
6264
7167
|
return startsWithSchemeRegexp2.test(url);
|
|
@@ -6812,7 +7715,7 @@ function normalize_stringify_options(opts = defaults) {
|
|
|
6812
7715
|
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
6813
7716
|
};
|
|
6814
7717
|
}
|
|
6815
|
-
function
|
|
7718
|
+
function stringify2(object, opts = {}) {
|
|
6816
7719
|
let obj = object;
|
|
6817
7720
|
const options = normalize_stringify_options(opts);
|
|
6818
7721
|
let obj_keys;
|
|
@@ -6876,7 +7779,7 @@ function stringify(object, opts = {}) {
|
|
|
6876
7779
|
return joined.length > 0 ? prefix + joined : "";
|
|
6877
7780
|
}
|
|
6878
7781
|
var array_prefix_generators, push_to_array, toISOString, defaults, sentinel;
|
|
6879
|
-
var
|
|
7782
|
+
var init_stringify2 = __esm({
|
|
6880
7783
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/qs/stringify.mjs"() {
|
|
6881
7784
|
"use strict";
|
|
6882
7785
|
init_utils();
|
|
@@ -6925,12 +7828,12 @@ var init_stringify = __esm({
|
|
|
6925
7828
|
|
|
6926
7829
|
// ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/query.mjs
|
|
6927
7830
|
function stringifyQuery2(query) {
|
|
6928
|
-
return
|
|
7831
|
+
return stringify2(query, { arrayFormat: "brackets" });
|
|
6929
7832
|
}
|
|
6930
7833
|
var init_query2 = __esm({
|
|
6931
7834
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/query.mjs"() {
|
|
6932
7835
|
"use strict";
|
|
6933
|
-
|
|
7836
|
+
init_stringify2();
|
|
6934
7837
|
}
|
|
6935
7838
|
});
|
|
6936
7839
|
|
|
@@ -7184,14 +8087,14 @@ var init_streaming3 = __esm({
|
|
|
7184
8087
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/streaming.mjs"() {
|
|
7185
8088
|
"use strict";
|
|
7186
8089
|
init_tslib2();
|
|
7187
|
-
|
|
8090
|
+
init_error4();
|
|
7188
8091
|
init_shims2();
|
|
7189
8092
|
init_line2();
|
|
7190
8093
|
init_shims2();
|
|
7191
8094
|
init_errors2();
|
|
7192
8095
|
init_bytes2();
|
|
7193
8096
|
init_log2();
|
|
7194
|
-
|
|
8097
|
+
init_error4();
|
|
7195
8098
|
Stream2 = class _Stream {
|
|
7196
8099
|
constructor(iterator, controller, client) {
|
|
7197
8100
|
this.iterator = iterator;
|
|
@@ -7447,7 +8350,7 @@ function addRequestID2(value, response) {
|
|
|
7447
8350
|
enumerable: false
|
|
7448
8351
|
});
|
|
7449
8352
|
}
|
|
7450
|
-
var
|
|
8353
|
+
var init_parse3 = __esm({
|
|
7451
8354
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/parse.mjs"() {
|
|
7452
8355
|
"use strict";
|
|
7453
8356
|
init_streaming3();
|
|
@@ -7461,7 +8364,7 @@ var init_api_promise2 = __esm({
|
|
|
7461
8364
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/api-promise.mjs"() {
|
|
7462
8365
|
"use strict";
|
|
7463
8366
|
init_tslib2();
|
|
7464
|
-
|
|
8367
|
+
init_parse3();
|
|
7465
8368
|
APIPromise2 = class _APIPromise extends Promise {
|
|
7466
8369
|
constructor(client, responsePromise, parseResponse2 = defaultParseResponse2) {
|
|
7467
8370
|
super((resolve11) => {
|
|
@@ -7531,8 +8434,8 @@ var init_pagination2 = __esm({
|
|
|
7531
8434
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/core/pagination.mjs"() {
|
|
7532
8435
|
"use strict";
|
|
7533
8436
|
init_tslib2();
|
|
7534
|
-
|
|
7535
|
-
|
|
8437
|
+
init_error4();
|
|
8438
|
+
init_parse3();
|
|
7536
8439
|
init_api_promise2();
|
|
7537
8440
|
init_values2();
|
|
7538
8441
|
AbstractPage2 = class {
|
|
@@ -7853,7 +8756,7 @@ var EMPTY2, createPathTagFunction2, path4;
|
|
|
7853
8756
|
var init_path2 = __esm({
|
|
7854
8757
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/path.mjs"() {
|
|
7855
8758
|
"use strict";
|
|
7856
|
-
|
|
8759
|
+
init_error4();
|
|
7857
8760
|
EMPTY2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
7858
8761
|
createPathTagFunction2 = (pathEncoder = encodeURIPath2) => function path19(statics, ...params) {
|
|
7859
8762
|
if (statics.length === 1)
|
|
@@ -7938,10 +8841,10 @@ var init_messages3 = __esm({
|
|
|
7938
8841
|
});
|
|
7939
8842
|
|
|
7940
8843
|
// ../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/error.mjs
|
|
7941
|
-
var
|
|
8844
|
+
var init_error5 = __esm({
|
|
7942
8845
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/error.mjs"() {
|
|
7943
8846
|
"use strict";
|
|
7944
|
-
|
|
8847
|
+
init_error4();
|
|
7945
8848
|
}
|
|
7946
8849
|
});
|
|
7947
8850
|
|
|
@@ -8054,7 +8957,7 @@ function validateInputTools(tools) {
|
|
|
8054
8957
|
var init_parser3 = __esm({
|
|
8055
8958
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/parser.mjs"() {
|
|
8056
8959
|
"use strict";
|
|
8057
|
-
|
|
8960
|
+
init_error5();
|
|
8058
8961
|
}
|
|
8059
8962
|
});
|
|
8060
8963
|
|
|
@@ -8078,7 +8981,7 @@ var init_EventStream = __esm({
|
|
|
8078
8981
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/EventStream.mjs"() {
|
|
8079
8982
|
"use strict";
|
|
8080
8983
|
init_tslib2();
|
|
8081
|
-
|
|
8984
|
+
init_error5();
|
|
8082
8985
|
EventStream = class {
|
|
8083
8986
|
constructor() {
|
|
8084
8987
|
_EventStream_instances.add(this);
|
|
@@ -8272,7 +9175,7 @@ var init_AbstractChatCompletionRunner = __esm({
|
|
|
8272
9175
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/AbstractChatCompletionRunner.mjs"() {
|
|
8273
9176
|
"use strict";
|
|
8274
9177
|
init_tslib2();
|
|
8275
|
-
|
|
9178
|
+
init_error5();
|
|
8276
9179
|
init_parser3();
|
|
8277
9180
|
init_chatCompletionUtils();
|
|
8278
9181
|
init_EventStream();
|
|
@@ -8893,7 +9796,7 @@ var init_ChatCompletionStream = __esm({
|
|
|
8893
9796
|
"use strict";
|
|
8894
9797
|
init_tslib2();
|
|
8895
9798
|
init_parser4();
|
|
8896
|
-
|
|
9799
|
+
init_error5();
|
|
8897
9800
|
init_parser3();
|
|
8898
9801
|
init_streaming4();
|
|
8899
9802
|
init_AbstractChatCompletionRunner();
|
|
@@ -10094,7 +10997,7 @@ var toFloat32Array;
|
|
|
10094
10997
|
var init_base64 = __esm({
|
|
10095
10998
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/internal/utils/base64.mjs"() {
|
|
10096
10999
|
"use strict";
|
|
10097
|
-
|
|
11000
|
+
init_error4();
|
|
10098
11001
|
init_bytes2();
|
|
10099
11002
|
toFloat32Array = (base64Str) => {
|
|
10100
11003
|
if (typeof Buffer !== "undefined") {
|
|
@@ -10153,7 +11056,7 @@ var init_AssistantStream = __esm({
|
|
|
10153
11056
|
"use strict";
|
|
10154
11057
|
init_tslib2();
|
|
10155
11058
|
init_streaming4();
|
|
10156
|
-
|
|
11059
|
+
init_error5();
|
|
10157
11060
|
init_EventStream();
|
|
10158
11061
|
init_utils2();
|
|
10159
11062
|
AssistantStream = class extends EventStream {
|
|
@@ -11407,7 +12310,7 @@ var init_files3 = __esm({
|
|
|
11407
12310
|
init_pagination2();
|
|
11408
12311
|
init_headers2();
|
|
11409
12312
|
init_sleep2();
|
|
11410
|
-
|
|
12313
|
+
init_error5();
|
|
11411
12314
|
init_uploads3();
|
|
11412
12315
|
init_path2();
|
|
11413
12316
|
Files3 = class extends APIResource2 {
|
|
@@ -12226,7 +13129,7 @@ function addOutputText(rsp) {
|
|
|
12226
13129
|
var init_ResponsesParser = __esm({
|
|
12227
13130
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/ResponsesParser.mjs"() {
|
|
12228
13131
|
"use strict";
|
|
12229
|
-
|
|
13132
|
+
init_error5();
|
|
12230
13133
|
init_parser3();
|
|
12231
13134
|
}
|
|
12232
13135
|
});
|
|
@@ -12240,7 +13143,7 @@ var init_ResponseStream = __esm({
|
|
|
12240
13143
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/lib/responses/ResponseStream.mjs"() {
|
|
12241
13144
|
"use strict";
|
|
12242
13145
|
init_tslib2();
|
|
12243
|
-
|
|
13146
|
+
init_error5();
|
|
12244
13147
|
init_EventStream();
|
|
12245
13148
|
init_ResponsesParser();
|
|
12246
13149
|
ResponseStream = class _ResponseStream extends EventStream {
|
|
@@ -13378,7 +14281,7 @@ var init_webhooks = __esm({
|
|
|
13378
14281
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/resources/webhooks/webhooks.mjs"() {
|
|
13379
14282
|
"use strict";
|
|
13380
14283
|
init_tslib2();
|
|
13381
|
-
|
|
14284
|
+
init_error5();
|
|
13382
14285
|
init_resource2();
|
|
13383
14286
|
init_headers2();
|
|
13384
14287
|
Webhooks = class extends APIResource2 {
|
|
@@ -13519,7 +14422,7 @@ var init_client2 = __esm({
|
|
|
13519
14422
|
init_request_options2();
|
|
13520
14423
|
init_query2();
|
|
13521
14424
|
init_version2();
|
|
13522
|
-
|
|
14425
|
+
init_error4();
|
|
13523
14426
|
init_pagination2();
|
|
13524
14427
|
init_uploads4();
|
|
13525
14428
|
init_resources2();
|
|
@@ -14039,7 +14942,7 @@ var init_azure = __esm({
|
|
|
14039
14942
|
"../../node_modules/.pnpm/openai@6.33.0_zod@4.3.6/node_modules/openai/azure.mjs"() {
|
|
14040
14943
|
"use strict";
|
|
14041
14944
|
init_headers2();
|
|
14042
|
-
|
|
14945
|
+
init_error5();
|
|
14043
14946
|
init_utils2();
|
|
14044
14947
|
init_client2();
|
|
14045
14948
|
}
|
|
@@ -14054,7 +14957,7 @@ var init_openai = __esm({
|
|
|
14054
14957
|
init_api_promise2();
|
|
14055
14958
|
init_client2();
|
|
14056
14959
|
init_pagination2();
|
|
14057
|
-
|
|
14960
|
+
init_error4();
|
|
14058
14961
|
init_azure();
|
|
14059
14962
|
}
|
|
14060
14963
|
});
|
|
@@ -16186,7 +17089,7 @@ var require_parser = __commonJS({
|
|
|
16186
17089
|
parseError: function parseError(str3, hash) {
|
|
16187
17090
|
throw new Error(str3);
|
|
16188
17091
|
},
|
|
16189
|
-
parse: function
|
|
17092
|
+
parse: function parse2(input) {
|
|
16190
17093
|
var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
16191
17094
|
this.lexer.setInput(input);
|
|
16192
17095
|
this.lexer.yy = this.yy;
|
|
@@ -17099,7 +18002,7 @@ var require_base2 = __commonJS({
|
|
|
17099
18002
|
"use strict";
|
|
17100
18003
|
exports2.__esModule = true;
|
|
17101
18004
|
exports2.parseWithoutProcessing = parseWithoutProcessing;
|
|
17102
|
-
exports2.parse =
|
|
18005
|
+
exports2.parse = parse2;
|
|
17103
18006
|
function _interopRequireWildcard(obj) {
|
|
17104
18007
|
if (obj && obj.__esModule) {
|
|
17105
18008
|
return obj;
|
|
@@ -17141,7 +18044,7 @@ var require_base2 = __commonJS({
|
|
|
17141
18044
|
var ast = _parser2["default"].parse(input);
|
|
17142
18045
|
return ast;
|
|
17143
18046
|
}
|
|
17144
|
-
function
|
|
18047
|
+
function parse2(input, options) {
|
|
17145
18048
|
var ast = parseWithoutProcessing(input, options);
|
|
17146
18049
|
var strip3 = new _whitespaceControl2["default"](options);
|
|
17147
18050
|
return strip3.accept(ast);
|
|
@@ -20668,14 +21571,14 @@ function promisify(fn) {
|
|
|
20668
21571
|
});
|
|
20669
21572
|
};
|
|
20670
21573
|
}
|
|
20671
|
-
function
|
|
21574
|
+
function stringify3(value) {
|
|
20672
21575
|
value = toValue(value);
|
|
20673
21576
|
if (isString(value))
|
|
20674
21577
|
return value;
|
|
20675
21578
|
if (isNil(value))
|
|
20676
21579
|
return "";
|
|
20677
21580
|
if (isArray3(value))
|
|
20678
|
-
return value.map((x) =>
|
|
21581
|
+
return value.map((x) => stringify3(x)).join("");
|
|
20679
21582
|
return String(value);
|
|
20680
21583
|
}
|
|
20681
21584
|
function toEnumerable(val) {
|
|
@@ -21221,7 +22124,7 @@ function to_integer(value) {
|
|
|
21221
22124
|
return Number(value);
|
|
21222
22125
|
}
|
|
21223
22126
|
function escape2(str3) {
|
|
21224
|
-
str3 =
|
|
22127
|
+
str3 = stringify3(str3);
|
|
21225
22128
|
this.context.memoryLimit.use(str3.length);
|
|
21226
22129
|
return str3.replace(/&|<|>|"|'/g, (m) => escapeMap[m]);
|
|
21227
22130
|
}
|
|
@@ -21229,7 +22132,7 @@ function xml_escape(str3) {
|
|
|
21229
22132
|
return escape2.call(this, str3);
|
|
21230
22133
|
}
|
|
21231
22134
|
function unescape2(str3) {
|
|
21232
|
-
str3 =
|
|
22135
|
+
str3 = stringify3(str3);
|
|
21233
22136
|
this.context.memoryLimit.use(str3.length);
|
|
21234
22137
|
return str3.replace(/&(amp|lt|gt|#34|#39);/g, (m) => unescapeMap[m]);
|
|
21235
22138
|
}
|
|
@@ -21237,12 +22140,12 @@ function escape_once(str3) {
|
|
|
21237
22140
|
return escape2.call(this, unescape2.call(this, str3));
|
|
21238
22141
|
}
|
|
21239
22142
|
function newline_to_br(v) {
|
|
21240
|
-
const str3 =
|
|
22143
|
+
const str3 = stringify3(v);
|
|
21241
22144
|
this.context.memoryLimit.use(str3.length);
|
|
21242
22145
|
return str3.replace(/\r?\n/gm, "<br />\n");
|
|
21243
22146
|
}
|
|
21244
22147
|
function strip_html(v) {
|
|
21245
|
-
const str3 =
|
|
22148
|
+
const str3 = stringify3(v);
|
|
21246
22149
|
this.context.memoryLimit.use(str3.length);
|
|
21247
22150
|
return str3.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g, "");
|
|
21248
22151
|
}
|
|
@@ -21601,7 +22504,7 @@ function round(v, arg = 0) {
|
|
|
21601
22504
|
return Math.round(v * amp) / amp;
|
|
21602
22505
|
}
|
|
21603
22506
|
function slugify(str3, mode = "default", cased = false) {
|
|
21604
|
-
str3 =
|
|
22507
|
+
str3 = stringify3(str3);
|
|
21605
22508
|
const replacer = rSlugifyReplacers[mode];
|
|
21606
22509
|
if (replacer) {
|
|
21607
22510
|
if (mode === "latin")
|
|
@@ -21620,7 +22523,7 @@ function* sort(arr, property) {
|
|
|
21620
22523
|
for (const item of array) {
|
|
21621
22524
|
values.push([
|
|
21622
22525
|
item,
|
|
21623
|
-
property ? yield this.context._getFromScope(item,
|
|
22526
|
+
property ? yield this.context._getFromScope(item, stringify3(property).split("."), false) : item
|
|
21624
22527
|
]);
|
|
21625
22528
|
}
|
|
21626
22529
|
return values.sort((lhs, rhs) => {
|
|
@@ -21630,7 +22533,7 @@ function* sort(arr, property) {
|
|
|
21630
22533
|
}).map((tuple) => tuple[0]);
|
|
21631
22534
|
}
|
|
21632
22535
|
function sort_natural(input, property) {
|
|
21633
|
-
const propertyString =
|
|
22536
|
+
const propertyString = stringify3(property);
|
|
21634
22537
|
const compare = property === void 0 ? caseInsensitiveCompare : (lhs, rhs) => caseInsensitiveCompare(lhs[propertyString], rhs[propertyString]);
|
|
21635
22538
|
const array = toArray(input);
|
|
21636
22539
|
this.context.memoryLimit.use(array.length);
|
|
@@ -21641,7 +22544,7 @@ function* map(arr, property) {
|
|
|
21641
22544
|
const array = toArray(arr);
|
|
21642
22545
|
this.context.memoryLimit.use(array.length);
|
|
21643
22546
|
for (const item of array) {
|
|
21644
|
-
results.push(yield this.context._getFromScope(item,
|
|
22547
|
+
results.push(yield this.context._getFromScope(item, stringify3(property), false));
|
|
21645
22548
|
}
|
|
21646
22549
|
return results;
|
|
21647
22550
|
}
|
|
@@ -21649,7 +22552,7 @@ function* sum(arr, property) {
|
|
|
21649
22552
|
let sum2 = 0;
|
|
21650
22553
|
const array = toArray(arr);
|
|
21651
22554
|
for (const item of array) {
|
|
21652
|
-
const data = Number(property ? yield this.context._getFromScope(item,
|
|
22555
|
+
const data = Number(property ? yield this.context._getFromScope(item, stringify3(property), false) : item);
|
|
21653
22556
|
sum2 += Number.isNaN(data) ? 0 : data;
|
|
21654
22557
|
}
|
|
21655
22558
|
return sum2;
|
|
@@ -21692,7 +22595,7 @@ function slice(v, begin, length = 1) {
|
|
|
21692
22595
|
if (isNil(v))
|
|
21693
22596
|
return [];
|
|
21694
22597
|
if (!isArray3(v))
|
|
21695
|
-
v =
|
|
22598
|
+
v = stringify3(v);
|
|
21696
22599
|
begin = begin < 0 ? v.length + begin : begin;
|
|
21697
22600
|
this.context.memoryLimit.use(length);
|
|
21698
22601
|
return v.slice(begin, begin + length);
|
|
@@ -21710,7 +22613,7 @@ function* filter(include, arr, property, expected) {
|
|
|
21710
22613
|
const values = [];
|
|
21711
22614
|
arr = toArray(arr);
|
|
21712
22615
|
this.context.memoryLimit.use(arr.length);
|
|
21713
|
-
const token = new Tokenizer(
|
|
22616
|
+
const token = new Tokenizer(stringify3(property)).readScopeValue();
|
|
21714
22617
|
for (const item of arr) {
|
|
21715
22618
|
values.push(yield evalToken(token, this.context.spawn(item)));
|
|
21716
22619
|
}
|
|
@@ -21719,7 +22622,7 @@ function* filter(include, arr, property, expected) {
|
|
|
21719
22622
|
}
|
|
21720
22623
|
function* filter_exp(include, arr, itemName, exp) {
|
|
21721
22624
|
const filtered = [];
|
|
21722
|
-
const keyTemplate = new Value(
|
|
22625
|
+
const keyTemplate = new Value(stringify3(exp), this.liquid);
|
|
21723
22626
|
const array = toArray(arr);
|
|
21724
22627
|
this.context.memoryLimit.use(array.length);
|
|
21725
22628
|
for (const item of array) {
|
|
@@ -21746,7 +22649,7 @@ function* reject_exp(arr, itemName, exp) {
|
|
|
21746
22649
|
function* group_by(arr, property) {
|
|
21747
22650
|
const map3 = /* @__PURE__ */ new Map();
|
|
21748
22651
|
arr = toEnumerable(arr);
|
|
21749
|
-
const token = new Tokenizer(
|
|
22652
|
+
const token = new Tokenizer(stringify3(property)).readScopeValue();
|
|
21750
22653
|
this.context.memoryLimit.use(arr.length);
|
|
21751
22654
|
for (const item of arr) {
|
|
21752
22655
|
const key = yield evalToken(token, this.context.spawn(item));
|
|
@@ -21758,7 +22661,7 @@ function* group_by(arr, property) {
|
|
|
21758
22661
|
}
|
|
21759
22662
|
function* group_by_exp(arr, itemName, exp) {
|
|
21760
22663
|
const map3 = /* @__PURE__ */ new Map();
|
|
21761
|
-
const keyTemplate = new Value(
|
|
22664
|
+
const keyTemplate = new Value(stringify3(exp), this.liquid);
|
|
21762
22665
|
arr = toEnumerable(arr);
|
|
21763
22666
|
this.context.memoryLimit.use(arr.length);
|
|
21764
22667
|
for (const item of arr) {
|
|
@@ -21772,7 +22675,7 @@ function* group_by_exp(arr, itemName, exp) {
|
|
|
21772
22675
|
return [...map3.entries()].map(([name, items]) => ({ name, items }));
|
|
21773
22676
|
}
|
|
21774
22677
|
function* search(arr, property, expected) {
|
|
21775
|
-
const token = new Tokenizer(
|
|
22678
|
+
const token = new Tokenizer(stringify3(property)).readScopeValue();
|
|
21776
22679
|
const array = toArray(arr);
|
|
21777
22680
|
const matcher = expectedMatcher.call(this, expected);
|
|
21778
22681
|
for (let index = 0; index < array.length; index++) {
|
|
@@ -21782,7 +22685,7 @@ function* search(arr, property, expected) {
|
|
|
21782
22685
|
}
|
|
21783
22686
|
}
|
|
21784
22687
|
function* search_exp(arr, itemName, exp) {
|
|
21785
|
-
const predicate = new Value(
|
|
22688
|
+
const predicate = new Value(stringify3(exp), this.liquid);
|
|
21786
22689
|
const array = toArray(arr);
|
|
21787
22690
|
for (let index = 0; index < array.length; index++) {
|
|
21788
22691
|
this.context.push({ [itemName]: array[index] });
|
|
@@ -21826,7 +22729,7 @@ function sample(v, count = 1) {
|
|
|
21826
22729
|
if (isNil(v))
|
|
21827
22730
|
return [];
|
|
21828
22731
|
if (!isArray3(v))
|
|
21829
|
-
v =
|
|
22732
|
+
v = stringify3(v);
|
|
21830
22733
|
this.context.memoryLimit.use(count);
|
|
21831
22734
|
const shuffled = [...v].sort(() => Math.random() - 0.5);
|
|
21832
22735
|
if (count === 1)
|
|
@@ -21841,7 +22744,7 @@ function date(v, format2, timezoneOffset) {
|
|
|
21841
22744
|
if (!date2)
|
|
21842
22745
|
return v;
|
|
21843
22746
|
format2 = toValue(format2);
|
|
21844
|
-
format2 = isNil(format2) ? this.context.opts.dateFormat :
|
|
22747
|
+
format2 = isNil(format2) ? this.context.opts.dateFormat : stringify3(format2);
|
|
21845
22748
|
return strftime(date2, format2);
|
|
21846
22749
|
}
|
|
21847
22750
|
function date_to_xmlschema(v) {
|
|
@@ -21890,23 +22793,23 @@ function parseDate(v, opts, timezoneOffset) {
|
|
|
21890
22793
|
}
|
|
21891
22794
|
function append(v, arg) {
|
|
21892
22795
|
assert(arguments.length === 2, "append expect 2 arguments");
|
|
21893
|
-
const lhs =
|
|
21894
|
-
const rhs =
|
|
22796
|
+
const lhs = stringify3(v);
|
|
22797
|
+
const rhs = stringify3(arg);
|
|
21895
22798
|
this.context.memoryLimit.use(lhs.length + rhs.length);
|
|
21896
22799
|
return lhs + rhs;
|
|
21897
22800
|
}
|
|
21898
22801
|
function prepend(v, arg) {
|
|
21899
22802
|
assert(arguments.length === 2, "prepend expect 2 arguments");
|
|
21900
|
-
const lhs =
|
|
21901
|
-
const rhs =
|
|
22803
|
+
const lhs = stringify3(v);
|
|
22804
|
+
const rhs = stringify3(arg);
|
|
21902
22805
|
this.context.memoryLimit.use(lhs.length + rhs.length);
|
|
21903
22806
|
return rhs + lhs;
|
|
21904
22807
|
}
|
|
21905
22808
|
function lstrip(v, chars) {
|
|
21906
|
-
const str3 =
|
|
22809
|
+
const str3 = stringify3(v);
|
|
21907
22810
|
this.context.memoryLimit.use(str3.length);
|
|
21908
22811
|
if (chars) {
|
|
21909
|
-
chars =
|
|
22812
|
+
chars = stringify3(chars);
|
|
21910
22813
|
this.context.memoryLimit.use(chars.length);
|
|
21911
22814
|
for (let i = 0, set2 = new Set(chars); i < str3.length; i++) {
|
|
21912
22815
|
if (!set2.has(str3[i]))
|
|
@@ -21917,30 +22820,30 @@ function lstrip(v, chars) {
|
|
|
21917
22820
|
return str3.trimStart();
|
|
21918
22821
|
}
|
|
21919
22822
|
function downcase(v) {
|
|
21920
|
-
const str3 =
|
|
22823
|
+
const str3 = stringify3(v);
|
|
21921
22824
|
this.context.memoryLimit.use(str3.length);
|
|
21922
22825
|
return str3.toLowerCase();
|
|
21923
22826
|
}
|
|
21924
22827
|
function upcase(v) {
|
|
21925
|
-
const str3 =
|
|
22828
|
+
const str3 = stringify3(v);
|
|
21926
22829
|
this.context.memoryLimit.use(str3.length);
|
|
21927
|
-
return
|
|
22830
|
+
return stringify3(str3).toUpperCase();
|
|
21928
22831
|
}
|
|
21929
22832
|
function remove(v, arg) {
|
|
21930
|
-
const str3 =
|
|
21931
|
-
arg =
|
|
22833
|
+
const str3 = stringify3(v);
|
|
22834
|
+
arg = stringify3(arg);
|
|
21932
22835
|
this.context.memoryLimit.use(str3.length + arg.length);
|
|
21933
22836
|
return str3.split(arg).join("");
|
|
21934
22837
|
}
|
|
21935
22838
|
function remove_first(v, l) {
|
|
21936
|
-
const str3 =
|
|
21937
|
-
l =
|
|
22839
|
+
const str3 = stringify3(v);
|
|
22840
|
+
l = stringify3(l);
|
|
21938
22841
|
this.context.memoryLimit.use(str3.length + l.length);
|
|
21939
22842
|
return str3.replace(l, "");
|
|
21940
22843
|
}
|
|
21941
22844
|
function remove_last(v, l) {
|
|
21942
|
-
const str3 =
|
|
21943
|
-
const pattern =
|
|
22845
|
+
const str3 = stringify3(v);
|
|
22846
|
+
const pattern = stringify3(l);
|
|
21944
22847
|
this.context.memoryLimit.use(str3.length + pattern.length);
|
|
21945
22848
|
const index = str3.lastIndexOf(pattern);
|
|
21946
22849
|
if (index === -1)
|
|
@@ -21948,10 +22851,10 @@ function remove_last(v, l) {
|
|
|
21948
22851
|
return str3.substring(0, index) + str3.substring(index + pattern.length);
|
|
21949
22852
|
}
|
|
21950
22853
|
function rstrip(str3, chars) {
|
|
21951
|
-
str3 =
|
|
22854
|
+
str3 = stringify3(str3);
|
|
21952
22855
|
this.context.memoryLimit.use(str3.length);
|
|
21953
22856
|
if (chars) {
|
|
21954
|
-
chars =
|
|
22857
|
+
chars = stringify3(chars);
|
|
21955
22858
|
this.context.memoryLimit.use(chars.length);
|
|
21956
22859
|
for (let i = str3.length - 1, set2 = new Set(chars); i >= 0; i--) {
|
|
21957
22860
|
if (!set2.has(str3[i]))
|
|
@@ -21962,18 +22865,18 @@ function rstrip(str3, chars) {
|
|
|
21962
22865
|
return str3.trimEnd();
|
|
21963
22866
|
}
|
|
21964
22867
|
function split(v, arg) {
|
|
21965
|
-
const str3 =
|
|
22868
|
+
const str3 = stringify3(v);
|
|
21966
22869
|
this.context.memoryLimit.use(str3.length);
|
|
21967
|
-
const arr = str3.split(
|
|
22870
|
+
const arr = str3.split(stringify3(arg));
|
|
21968
22871
|
while (arr.length && arr[arr.length - 1] === "")
|
|
21969
22872
|
arr.pop();
|
|
21970
22873
|
return arr;
|
|
21971
22874
|
}
|
|
21972
22875
|
function strip2(v, chars) {
|
|
21973
|
-
const str3 =
|
|
22876
|
+
const str3 = stringify3(v);
|
|
21974
22877
|
this.context.memoryLimit.use(str3.length);
|
|
21975
22878
|
if (chars) {
|
|
21976
|
-
const set2 = new Set(
|
|
22879
|
+
const set2 = new Set(stringify3(chars));
|
|
21977
22880
|
this.context.memoryLimit.use(set2.size);
|
|
21978
22881
|
let i = 0;
|
|
21979
22882
|
let j = str3.length - 1;
|
|
@@ -21986,33 +22889,33 @@ function strip2(v, chars) {
|
|
|
21986
22889
|
return str3.trim();
|
|
21987
22890
|
}
|
|
21988
22891
|
function strip_newlines(v) {
|
|
21989
|
-
const str3 =
|
|
22892
|
+
const str3 = stringify3(v);
|
|
21990
22893
|
this.context.memoryLimit.use(str3.length);
|
|
21991
22894
|
return str3.replace(/\r?\n/gm, "");
|
|
21992
22895
|
}
|
|
21993
22896
|
function capitalize(str3) {
|
|
21994
|
-
str3 =
|
|
22897
|
+
str3 = stringify3(str3);
|
|
21995
22898
|
this.context.memoryLimit.use(str3.length);
|
|
21996
22899
|
return str3.charAt(0).toUpperCase() + str3.slice(1).toLowerCase();
|
|
21997
22900
|
}
|
|
21998
22901
|
function replace(v, pattern, replacement) {
|
|
21999
|
-
const str3 =
|
|
22000
|
-
pattern =
|
|
22001
|
-
replacement =
|
|
22902
|
+
const str3 = stringify3(v);
|
|
22903
|
+
pattern = stringify3(pattern);
|
|
22904
|
+
replacement = stringify3(replacement);
|
|
22002
22905
|
this.context.memoryLimit.use(str3.length + pattern.length + replacement.length);
|
|
22003
22906
|
return str3.split(pattern).join(replacement);
|
|
22004
22907
|
}
|
|
22005
22908
|
function replace_first(v, arg1, arg2) {
|
|
22006
|
-
const str3 =
|
|
22007
|
-
arg1 =
|
|
22008
|
-
arg2 =
|
|
22909
|
+
const str3 = stringify3(v);
|
|
22910
|
+
arg1 = stringify3(arg1);
|
|
22911
|
+
arg2 = stringify3(arg2);
|
|
22009
22912
|
this.context.memoryLimit.use(str3.length + arg1.length + arg2.length);
|
|
22010
22913
|
return str3.replace(arg1, () => arg2);
|
|
22011
22914
|
}
|
|
22012
22915
|
function replace_last(v, arg1, arg2) {
|
|
22013
|
-
const str3 =
|
|
22014
|
-
const pattern =
|
|
22015
|
-
const replacement =
|
|
22916
|
+
const str3 = stringify3(v);
|
|
22917
|
+
const pattern = stringify3(arg1);
|
|
22918
|
+
const replacement = stringify3(arg2);
|
|
22016
22919
|
this.context.memoryLimit.use(str3.length + pattern.length + replacement.length);
|
|
22017
22920
|
const index = str3.lastIndexOf(pattern);
|
|
22018
22921
|
if (index === -1)
|
|
@@ -22020,16 +22923,16 @@ function replace_last(v, arg1, arg2) {
|
|
|
22020
22923
|
return str3.substring(0, index) + replacement + str3.substring(index + pattern.length);
|
|
22021
22924
|
}
|
|
22022
22925
|
function truncate(v, l = 50, o = "...") {
|
|
22023
|
-
const str3 =
|
|
22024
|
-
o =
|
|
22926
|
+
const str3 = stringify3(v);
|
|
22927
|
+
o = stringify3(o);
|
|
22025
22928
|
this.context.memoryLimit.use(str3.length + o.length);
|
|
22026
22929
|
if (str3.length <= l)
|
|
22027
22930
|
return v;
|
|
22028
22931
|
return str3.substring(0, l - o.length) + o;
|
|
22029
22932
|
}
|
|
22030
22933
|
function truncatewords(v, words = 15, o = "...") {
|
|
22031
|
-
const str3 =
|
|
22032
|
-
o =
|
|
22934
|
+
const str3 = stringify3(v);
|
|
22935
|
+
o = stringify3(o);
|
|
22033
22936
|
this.context.memoryLimit.use(str3.length + o.length);
|
|
22034
22937
|
const arr = str3.split(/\s+/);
|
|
22035
22938
|
if (words <= 0)
|
|
@@ -22040,12 +22943,12 @@ function truncatewords(v, words = 15, o = "...") {
|
|
|
22040
22943
|
return ret;
|
|
22041
22944
|
}
|
|
22042
22945
|
function normalize_whitespace(v) {
|
|
22043
|
-
const str3 =
|
|
22946
|
+
const str3 = stringify3(v);
|
|
22044
22947
|
this.context.memoryLimit.use(str3.length);
|
|
22045
22948
|
return str3.replace(/\s+/g, " ");
|
|
22046
22949
|
}
|
|
22047
22950
|
function number_of_words(input, mode) {
|
|
22048
|
-
const str3 =
|
|
22951
|
+
const str3 = stringify3(input);
|
|
22049
22952
|
this.context.memoryLimit.use(str3.length);
|
|
22050
22953
|
input = str3.trim();
|
|
22051
22954
|
if (!input)
|
|
@@ -22060,7 +22963,7 @@ function number_of_words(input, mode) {
|
|
|
22060
22963
|
}
|
|
22061
22964
|
}
|
|
22062
22965
|
function array_to_sentence_string(array, connector = "and") {
|
|
22063
|
-
connector =
|
|
22966
|
+
connector = stringify3(connector);
|
|
22064
22967
|
this.context.memoryLimit.use(array.length + connector.length);
|
|
22065
22968
|
switch (array.length) {
|
|
22066
22969
|
case 0:
|
|
@@ -22080,12 +22983,12 @@ function base64Decode(str3) {
|
|
|
22080
22983
|
return Buffer.from(str3, "base64").toString("utf8");
|
|
22081
22984
|
}
|
|
22082
22985
|
function base64_encode(value) {
|
|
22083
|
-
const str3 =
|
|
22986
|
+
const str3 = stringify3(value);
|
|
22084
22987
|
this.context.memoryLimit.use(str3.length);
|
|
22085
22988
|
return base64Encode(str3);
|
|
22086
22989
|
}
|
|
22087
22990
|
function base64_decode(value) {
|
|
22088
|
-
const str3 =
|
|
22991
|
+
const str3 = stringify3(value);
|
|
22089
22992
|
this.context.memoryLimit.use(str3.length);
|
|
22090
22993
|
return base64Decode(str3);
|
|
22091
22994
|
}
|
|
@@ -22357,7 +23260,7 @@ var init_liquid_node = __esm({
|
|
|
22357
23260
|
this.buffer = "";
|
|
22358
23261
|
}
|
|
22359
23262
|
write(html) {
|
|
22360
|
-
this.buffer +=
|
|
23263
|
+
this.buffer += stringify3(html);
|
|
22361
23264
|
}
|
|
22362
23265
|
};
|
|
22363
23266
|
StreamedEmitter = class {
|
|
@@ -22366,7 +23269,7 @@ var init_liquid_node = __esm({
|
|
|
22366
23269
|
this.stream = new PassThrough();
|
|
22367
23270
|
}
|
|
22368
23271
|
write(html) {
|
|
22369
|
-
this.stream.write(
|
|
23272
|
+
this.stream.write(stringify3(html));
|
|
22370
23273
|
}
|
|
22371
23274
|
error(err) {
|
|
22372
23275
|
this.stream.emit("error", err);
|
|
@@ -22384,7 +23287,7 @@ var init_liquid_node = __esm({
|
|
|
22384
23287
|
if (typeof html !== "string" && this.buffer === "") {
|
|
22385
23288
|
this.buffer = html;
|
|
22386
23289
|
} else {
|
|
22387
|
-
this.buffer =
|
|
23290
|
+
this.buffer = stringify3(this.buffer) + stringify3(html);
|
|
22388
23291
|
}
|
|
22389
23292
|
}
|
|
22390
23293
|
};
|
|
@@ -24112,10 +25015,10 @@ var init_liquid_node = __esm({
|
|
|
24112
25015
|
times,
|
|
24113
25016
|
round
|
|
24114
25017
|
});
|
|
24115
|
-
url_decode = (x) => decodeURIComponent(
|
|
24116
|
-
url_encode = (x) => encodeURIComponent(
|
|
24117
|
-
cgi_escape = (x) => encodeURIComponent(
|
|
24118
|
-
uri_escape = (x) => encodeURI(
|
|
25018
|
+
url_decode = (x) => decodeURIComponent(stringify3(x)).replace(/\+/g, " ");
|
|
25019
|
+
url_encode = (x) => encodeURIComponent(stringify3(x)).replace(/%20/g, "+");
|
|
25020
|
+
cgi_escape = (x) => encodeURIComponent(stringify3(x)).replace(/%20/g, "+").replace(/[!'()*]/g, (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase());
|
|
25021
|
+
uri_escape = (x) => encodeURI(stringify3(x)).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
|
24119
25022
|
rSlugifyDefault = /[^\p{M}\p{L}\p{Nd}]+/ug;
|
|
24120
25023
|
rSlugifyReplacers = {
|
|
24121
25024
|
"raw": /\s+/g,
|
|
@@ -24135,7 +25038,7 @@ var init_liquid_node = __esm({
|
|
|
24135
25038
|
});
|
|
24136
25039
|
join = argumentsToValue(function(v, arg) {
|
|
24137
25040
|
const array = toArray(v);
|
|
24138
|
-
const sep4 = isNil(arg) ? " " :
|
|
25041
|
+
const sep4 = isNil(arg) ? " " : stringify3(arg);
|
|
24139
25042
|
const complexity = array.length * (1 + sep4.length);
|
|
24140
25043
|
this.context.memoryLimit.use(complexity);
|
|
24141
25044
|
return array.join(sep4);
|
|
@@ -24624,7 +25527,7 @@ var init_liquid_node = __esm({
|
|
|
24624
25527
|
if (!isNumber(scope[this.variable])) {
|
|
24625
25528
|
scope[this.variable] = 0;
|
|
24626
25529
|
}
|
|
24627
|
-
emitter.write(
|
|
25530
|
+
emitter.write(stringify3(--scope[this.variable]));
|
|
24628
25531
|
}
|
|
24629
25532
|
*localScope() {
|
|
24630
25533
|
yield this.identifier;
|
|
@@ -24731,7 +25634,7 @@ var init_liquid_node = __esm({
|
|
|
24731
25634
|
}
|
|
24732
25635
|
const val = scope[this.variable];
|
|
24733
25636
|
scope[this.variable]++;
|
|
24734
|
-
emitter.write(
|
|
25637
|
+
emitter.write(stringify3(val));
|
|
24735
25638
|
}
|
|
24736
25639
|
*localScope() {
|
|
24737
25640
|
yield this.identifier;
|
|
@@ -25434,7 +26337,6 @@ var init_aggregator_IUQUAVJC = __esm({
|
|
|
25434
26337
|
});
|
|
25435
26338
|
|
|
25436
26339
|
// ../notes/dist/chunk-Y4S5UWCL.js
|
|
25437
|
-
import * as TOML from "smol-toml";
|
|
25438
26340
|
import * as fs32 from "fs";
|
|
25439
26341
|
import * as path32 from "path";
|
|
25440
26342
|
import { z as z2 } from "zod";
|
|
@@ -26769,6 +27671,7 @@ var init_chunk_Y4S5UWCL = __esm({
|
|
|
26769
27671
|
"../notes/dist/chunk-Y4S5UWCL.js"() {
|
|
26770
27672
|
"use strict";
|
|
26771
27673
|
init_chunk_7TJSPQPW();
|
|
27674
|
+
init_dist();
|
|
26772
27675
|
init_sdk();
|
|
26773
27676
|
init_openai();
|
|
26774
27677
|
init_openai();
|
|
@@ -27364,8 +28267,8 @@ Summary (only output the summary, nothing else):`;
|
|
|
27364
28267
|
});
|
|
27365
28268
|
|
|
27366
28269
|
// ../notes/dist/index.js
|
|
27367
|
-
var
|
|
27368
|
-
__export(
|
|
28270
|
+
var dist_exports2 = {};
|
|
28271
|
+
__export(dist_exports2, {
|
|
27369
28272
|
ConfigError: () => ConfigError2,
|
|
27370
28273
|
GitHubError: () => GitHubError,
|
|
27371
28274
|
InputParseError: () => InputParseError,
|
|
@@ -27427,7 +28330,7 @@ function writeJson(outputPath, contexts, dryRun) {
|
|
|
27427
28330
|
fs11.writeFileSync(outputPath, content, "utf-8");
|
|
27428
28331
|
success2(`JSON output written to ${outputPath}`);
|
|
27429
28332
|
}
|
|
27430
|
-
var
|
|
28333
|
+
var init_dist2 = __esm({
|
|
27431
28334
|
"../notes/dist/index.js"() {
|
|
27432
28335
|
"use strict";
|
|
27433
28336
|
init_chunk_Y4S5UWCL();
|
|
@@ -27894,7 +28797,7 @@ var require_parse = __commonJS({
|
|
|
27894
28797
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
27895
28798
|
"use strict";
|
|
27896
28799
|
var SemVer = require_semver();
|
|
27897
|
-
var
|
|
28800
|
+
var parse2 = (version, options, throwErrors = false) => {
|
|
27898
28801
|
if (version instanceof SemVer) {
|
|
27899
28802
|
return version;
|
|
27900
28803
|
}
|
|
@@ -27907,7 +28810,7 @@ var require_parse = __commonJS({
|
|
|
27907
28810
|
throw er;
|
|
27908
28811
|
}
|
|
27909
28812
|
};
|
|
27910
|
-
module2.exports =
|
|
28813
|
+
module2.exports = parse2;
|
|
27911
28814
|
}
|
|
27912
28815
|
});
|
|
27913
28816
|
|
|
@@ -27915,9 +28818,9 @@ var require_parse = __commonJS({
|
|
|
27915
28818
|
var require_valid = __commonJS({
|
|
27916
28819
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
27917
28820
|
"use strict";
|
|
27918
|
-
var
|
|
28821
|
+
var parse2 = require_parse();
|
|
27919
28822
|
var valid = (version, options) => {
|
|
27920
|
-
const v =
|
|
28823
|
+
const v = parse2(version, options);
|
|
27921
28824
|
return v ? v.version : null;
|
|
27922
28825
|
};
|
|
27923
28826
|
module2.exports = valid;
|
|
@@ -27928,9 +28831,9 @@ var require_valid = __commonJS({
|
|
|
27928
28831
|
var require_clean = __commonJS({
|
|
27929
28832
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
27930
28833
|
"use strict";
|
|
27931
|
-
var
|
|
28834
|
+
var parse2 = require_parse();
|
|
27932
28835
|
var clean = (version, options) => {
|
|
27933
|
-
const s =
|
|
28836
|
+
const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
|
|
27934
28837
|
return s ? s.version : null;
|
|
27935
28838
|
};
|
|
27936
28839
|
module2.exports = clean;
|
|
@@ -27965,10 +28868,10 @@ var require_inc = __commonJS({
|
|
|
27965
28868
|
var require_diff = __commonJS({
|
|
27966
28869
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
27967
28870
|
"use strict";
|
|
27968
|
-
var
|
|
28871
|
+
var parse2 = require_parse();
|
|
27969
28872
|
var diff = (version1, version2) => {
|
|
27970
|
-
const v1 =
|
|
27971
|
-
const v2 =
|
|
28873
|
+
const v1 = parse2(version1, null, true);
|
|
28874
|
+
const v2 = parse2(version2, null, true);
|
|
27972
28875
|
const comparison = v1.compare(v2);
|
|
27973
28876
|
if (comparison === 0) {
|
|
27974
28877
|
return null;
|
|
@@ -28039,9 +28942,9 @@ var require_patch = __commonJS({
|
|
|
28039
28942
|
var require_prerelease = __commonJS({
|
|
28040
28943
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
28041
28944
|
"use strict";
|
|
28042
|
-
var
|
|
28945
|
+
var parse2 = require_parse();
|
|
28043
28946
|
var prerelease = (version, options) => {
|
|
28044
|
-
const parsed =
|
|
28947
|
+
const parsed = parse2(version, options);
|
|
28045
28948
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
28046
28949
|
};
|
|
28047
28950
|
module2.exports = prerelease;
|
|
@@ -28227,7 +29130,7 @@ var require_coerce = __commonJS({
|
|
|
28227
29130
|
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
28228
29131
|
"use strict";
|
|
28229
29132
|
var SemVer = require_semver();
|
|
28230
|
-
var
|
|
29133
|
+
var parse2 = require_parse();
|
|
28231
29134
|
var { safeRe: re, t } = require_re();
|
|
28232
29135
|
var coerce = (version, options) => {
|
|
28233
29136
|
if (version instanceof SemVer) {
|
|
@@ -28262,7 +29165,7 @@ var require_coerce = __commonJS({
|
|
|
28262
29165
|
const patch = match2[4] || "0";
|
|
28263
29166
|
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
28264
29167
|
const build2 = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
28265
|
-
return
|
|
29168
|
+
return parse2(`${major}.${minor}.${patch}${prerelease}${build2}`, options);
|
|
28266
29169
|
};
|
|
28267
29170
|
module2.exports = coerce;
|
|
28268
29171
|
}
|
|
@@ -29279,7 +30182,7 @@ var require_semver2 = __commonJS({
|
|
|
29279
30182
|
var constants = require_constants();
|
|
29280
30183
|
var SemVer = require_semver();
|
|
29281
30184
|
var identifiers = require_identifiers();
|
|
29282
|
-
var
|
|
30185
|
+
var parse2 = require_parse();
|
|
29283
30186
|
var valid = require_valid();
|
|
29284
30187
|
var clean = require_clean();
|
|
29285
30188
|
var inc = require_inc();
|
|
@@ -29317,7 +30220,7 @@ var require_semver2 = __commonJS({
|
|
|
29317
30220
|
var simplifyRange = require_simplify();
|
|
29318
30221
|
var subset = require_subset();
|
|
29319
30222
|
module2.exports = {
|
|
29320
|
-
parse:
|
|
30223
|
+
parse: parse2,
|
|
29321
30224
|
valid,
|
|
29322
30225
|
clean,
|
|
29323
30226
|
inc,
|
|
@@ -29368,7 +30271,6 @@ var require_semver2 = __commonJS({
|
|
|
29368
30271
|
|
|
29369
30272
|
// ../publish/dist/chunk-OZHNJUFW.js
|
|
29370
30273
|
import * as fs23 from "fs";
|
|
29371
|
-
import * as TOML2 from "smol-toml";
|
|
29372
30274
|
import * as fs33 from "fs";
|
|
29373
30275
|
import * as path33 from "path";
|
|
29374
30276
|
import { z as z22 } from "zod";
|
|
@@ -29378,7 +30280,6 @@ import * as os3 from "os";
|
|
|
29378
30280
|
import * as path222 from "path";
|
|
29379
30281
|
import { execFile } from "child_process";
|
|
29380
30282
|
import * as fs43 from "fs";
|
|
29381
|
-
import * as TOML22 from "smol-toml";
|
|
29382
30283
|
import * as fs53 from "fs";
|
|
29383
30284
|
import * as path43 from "path";
|
|
29384
30285
|
import * as fs62 from "fs";
|
|
@@ -29426,7 +30327,7 @@ function sanitizePackageName(name) {
|
|
|
29426
30327
|
}
|
|
29427
30328
|
function parseCargoToml(cargoPath) {
|
|
29428
30329
|
const content = fs23.readFileSync(cargoPath, "utf-8");
|
|
29429
|
-
return
|
|
30330
|
+
return parse(content);
|
|
29430
30331
|
}
|
|
29431
30332
|
function mergeGitConfig(topLevel, packageLevel) {
|
|
29432
30333
|
if (!topLevel && !packageLevel) return void 0;
|
|
@@ -29913,7 +30814,7 @@ function updateCargoVersion(cargoPath, newVersion) {
|
|
|
29913
30814
|
const cargo = parseCargoToml(cargoPath);
|
|
29914
30815
|
if (cargo.package) {
|
|
29915
30816
|
cargo.package.version = newVersion;
|
|
29916
|
-
fs43.writeFileSync(cargoPath,
|
|
30817
|
+
fs43.writeFileSync(cargoPath, stringify(cargo));
|
|
29917
30818
|
}
|
|
29918
30819
|
} catch (error3) {
|
|
29919
30820
|
throw createPublishError(
|
|
@@ -30906,6 +31807,8 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
30906
31807
|
"../publish/dist/chunk-OZHNJUFW.js"() {
|
|
30907
31808
|
"use strict";
|
|
30908
31809
|
init_source();
|
|
31810
|
+
init_dist();
|
|
31811
|
+
init_dist();
|
|
30909
31812
|
import_semver = __toESM(require_semver2(), 1);
|
|
30910
31813
|
LOG_LEVELS3 = {
|
|
30911
31814
|
error: 0,
|
|
@@ -31342,8 +32245,8 @@ var init_chunk_OZHNJUFW = __esm({
|
|
|
31342
32245
|
});
|
|
31343
32246
|
|
|
31344
32247
|
// ../publish/dist/index.js
|
|
31345
|
-
var
|
|
31346
|
-
__export(
|
|
32248
|
+
var dist_exports3 = {};
|
|
32249
|
+
__export(dist_exports3, {
|
|
31347
32250
|
BasePublishError: () => BasePublishError,
|
|
31348
32251
|
PipelineError: () => PipelineError,
|
|
31349
32252
|
PublishError: () => PublishError,
|
|
@@ -31363,7 +32266,7 @@ __export(dist_exports2, {
|
|
|
31363
32266
|
runPipeline: () => runPipeline2,
|
|
31364
32267
|
updateCargoVersion: () => updateCargoVersion
|
|
31365
32268
|
});
|
|
31366
|
-
var
|
|
32269
|
+
var init_dist3 = __esm({
|
|
31367
32270
|
"../publish/dist/index.js"() {
|
|
31368
32271
|
"use strict";
|
|
31369
32272
|
init_chunk_OZHNJUFW();
|
|
@@ -31524,7 +32427,7 @@ async function* splitStream(stream, separator) {
|
|
|
31524
32427
|
yield buffer;
|
|
31525
32428
|
}
|
|
31526
32429
|
}
|
|
31527
|
-
var
|
|
32430
|
+
var init_dist4 = __esm({
|
|
31528
32431
|
"../../node_modules/.pnpm/@simple-libs+stream-utils@1.1.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
|
|
31529
32432
|
"use strict";
|
|
31530
32433
|
}
|
|
@@ -31574,10 +32477,10 @@ async function* outputStream(process3) {
|
|
|
31574
32477
|
function output(process3) {
|
|
31575
32478
|
return concatBufferStream(outputStream(process3));
|
|
31576
32479
|
}
|
|
31577
|
-
var
|
|
32480
|
+
var init_dist5 = __esm({
|
|
31578
32481
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
31579
32482
|
"use strict";
|
|
31580
|
-
|
|
32483
|
+
init_dist4();
|
|
31581
32484
|
}
|
|
31582
32485
|
});
|
|
31583
32486
|
|
|
@@ -31587,8 +32490,8 @@ var SCISSOR, GitClient;
|
|
|
31587
32490
|
var init_GitClient = __esm({
|
|
31588
32491
|
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js"() {
|
|
31589
32492
|
"use strict";
|
|
31590
|
-
init_dist3();
|
|
31591
32493
|
init_dist4();
|
|
32494
|
+
init_dist5();
|
|
31592
32495
|
init_utils4();
|
|
31593
32496
|
SCISSOR = "------------------------ >8 ------------------------";
|
|
31594
32497
|
GitClient = class {
|
|
@@ -32269,7 +33172,7 @@ function parseCommits(options = {}) {
|
|
|
32269
33172
|
throw err;
|
|
32270
33173
|
} : warnOption ? (err) => warnOption(err.toString()) : () => {
|
|
32271
33174
|
};
|
|
32272
|
-
return async function*
|
|
33175
|
+
return async function* parse2(rawCommits) {
|
|
32273
33176
|
const parser = new CommitParser(options);
|
|
32274
33177
|
let rawCommit;
|
|
32275
33178
|
for await (rawCommit of rawCommits) {
|
|
@@ -32292,14 +33195,14 @@ var init_stream = __esm({
|
|
|
32292
33195
|
});
|
|
32293
33196
|
|
|
32294
33197
|
// ../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/index.js
|
|
32295
|
-
var
|
|
32296
|
-
__export(
|
|
33198
|
+
var dist_exports4 = {};
|
|
33199
|
+
__export(dist_exports4, {
|
|
32297
33200
|
CommitParser: () => CommitParser,
|
|
32298
33201
|
createCommitObject: () => createCommitObject,
|
|
32299
33202
|
parseCommits: () => parseCommits,
|
|
32300
33203
|
parseCommitsStream: () => parseCommitsStream
|
|
32301
33204
|
});
|
|
32302
|
-
var
|
|
33205
|
+
var init_dist6 = __esm({
|
|
32303
33206
|
"../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/index.js"() {
|
|
32304
33207
|
"use strict";
|
|
32305
33208
|
init_types2();
|
|
@@ -32424,14 +33327,14 @@ var init_filters = __esm({
|
|
|
32424
33327
|
});
|
|
32425
33328
|
|
|
32426
33329
|
// ../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/index.js
|
|
32427
|
-
var
|
|
32428
|
-
__export(
|
|
33330
|
+
var dist_exports5 = {};
|
|
33331
|
+
__export(dist_exports5, {
|
|
32429
33332
|
RevertedCommitsFilter: () => RevertedCommitsFilter,
|
|
32430
33333
|
filterRevertedCommits: () => filterRevertedCommits,
|
|
32431
33334
|
filterRevertedCommitsStream: () => filterRevertedCommitsStream,
|
|
32432
33335
|
filterRevertedCommitsSync: () => filterRevertedCommitsSync
|
|
32433
33336
|
});
|
|
32434
|
-
var
|
|
33337
|
+
var init_dist7 = __esm({
|
|
32435
33338
|
"../../node_modules/.pnpm/conventional-commits-filter@5.0.0/node_modules/conventional-commits-filter/dist/index.js"() {
|
|
32436
33339
|
"use strict";
|
|
32437
33340
|
init_RevertedCommitsFilter();
|
|
@@ -32445,7 +33348,7 @@ var init_ConventionalGitClient = __esm({
|
|
|
32445
33348
|
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js"() {
|
|
32446
33349
|
"use strict";
|
|
32447
33350
|
import_semver2 = __toESM(require_semver2(), 1);
|
|
32448
|
-
|
|
33351
|
+
init_dist4();
|
|
32449
33352
|
init_GitClient();
|
|
32450
33353
|
ConventionalGitClient = class extends GitClient {
|
|
32451
33354
|
deps = null;
|
|
@@ -32454,8 +33357,8 @@ var init_ConventionalGitClient = __esm({
|
|
|
32454
33357
|
return this.deps;
|
|
32455
33358
|
}
|
|
32456
33359
|
this.deps = Promise.all([
|
|
32457
|
-
Promise.resolve().then(() => (
|
|
32458
|
-
Promise.resolve().then(() => (
|
|
33360
|
+
Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
|
|
33361
|
+
Promise.resolve().then(() => (init_dist7(), dist_exports5)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
|
|
32459
33362
|
]);
|
|
32460
33363
|
return this.deps;
|
|
32461
33364
|
}
|
|
@@ -32476,9 +33379,9 @@ var init_ConventionalGitClient = __esm({
|
|
|
32476
33379
|
yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
|
|
32477
33380
|
return;
|
|
32478
33381
|
}
|
|
32479
|
-
const
|
|
33382
|
+
const parse2 = parseCommits2(parserOptions);
|
|
32480
33383
|
const commitsStream = this.getRawCommits(gitLogParams);
|
|
32481
|
-
yield*
|
|
33384
|
+
yield* parse2(commitsStream);
|
|
32482
33385
|
}
|
|
32483
33386
|
/**
|
|
32484
33387
|
* Get semver tags stream.
|
|
@@ -32550,7 +33453,7 @@ var init_ConventionalGitClient = __esm({
|
|
|
32550
33453
|
});
|
|
32551
33454
|
|
|
32552
33455
|
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js
|
|
32553
|
-
var
|
|
33456
|
+
var init_dist8 = __esm({
|
|
32554
33457
|
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js"() {
|
|
32555
33458
|
"use strict";
|
|
32556
33459
|
init_types();
|
|
@@ -32647,7 +33550,7 @@ var init_presetLoader = __esm({
|
|
|
32647
33550
|
});
|
|
32648
33551
|
|
|
32649
33552
|
// ../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js
|
|
32650
|
-
var
|
|
33553
|
+
var init_dist9 = __esm({
|
|
32651
33554
|
"../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js"() {
|
|
32652
33555
|
"use strict";
|
|
32653
33556
|
init_types3();
|
|
@@ -32673,8 +33576,8 @@ var VERSIONS, Bumper;
|
|
|
32673
33576
|
var init_bumper = __esm({
|
|
32674
33577
|
"../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/bumper.js"() {
|
|
32675
33578
|
"use strict";
|
|
32676
|
-
init_dist7();
|
|
32677
33579
|
init_dist8();
|
|
33580
|
+
init_dist9();
|
|
32678
33581
|
init_utils7();
|
|
32679
33582
|
VERSIONS = [
|
|
32680
33583
|
"major",
|
|
@@ -32842,7 +33745,7 @@ var init_bumper = __esm({
|
|
|
32842
33745
|
});
|
|
32843
33746
|
|
|
32844
33747
|
// ../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js
|
|
32845
|
-
var
|
|
33748
|
+
var init_dist10 = __esm({
|
|
32846
33749
|
"../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js"() {
|
|
32847
33750
|
"use strict";
|
|
32848
33751
|
init_bumper();
|
|
@@ -32907,7 +33810,7 @@ async function* splitStream2(stream, separator) {
|
|
|
32907
33810
|
yield buffer;
|
|
32908
33811
|
}
|
|
32909
33812
|
}
|
|
32910
|
-
var
|
|
33813
|
+
var init_dist11 = __esm({
|
|
32911
33814
|
"../../node_modules/.pnpm/@simple-libs+stream-utils@1.2.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
|
|
32912
33815
|
"use strict";
|
|
32913
33816
|
}
|
|
@@ -32957,10 +33860,10 @@ async function* outputStream2(process3) {
|
|
|
32957
33860
|
function output2(process3) {
|
|
32958
33861
|
return concatBufferStream2(outputStream2(process3));
|
|
32959
33862
|
}
|
|
32960
|
-
var
|
|
33863
|
+
var init_dist12 = __esm({
|
|
32961
33864
|
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
32962
33865
|
"use strict";
|
|
32963
|
-
|
|
33866
|
+
init_dist11();
|
|
32964
33867
|
}
|
|
32965
33868
|
});
|
|
32966
33869
|
|
|
@@ -32970,8 +33873,8 @@ var SCISSOR3, GitClient2;
|
|
|
32970
33873
|
var init_GitClient2 = __esm({
|
|
32971
33874
|
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js"() {
|
|
32972
33875
|
"use strict";
|
|
32973
|
-
init_dist10();
|
|
32974
33876
|
init_dist11();
|
|
33877
|
+
init_dist12();
|
|
32975
33878
|
init_utils8();
|
|
32976
33879
|
SCISSOR3 = "------------------------ >8 ------------------------";
|
|
32977
33880
|
GitClient2 = class {
|
|
@@ -33220,7 +34123,7 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
33220
34123
|
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js"() {
|
|
33221
34124
|
"use strict";
|
|
33222
34125
|
import_semver3 = __toESM(require_semver2(), 1);
|
|
33223
|
-
|
|
34126
|
+
init_dist11();
|
|
33224
34127
|
init_GitClient2();
|
|
33225
34128
|
ConventionalGitClient2 = class extends GitClient2 {
|
|
33226
34129
|
deps = null;
|
|
@@ -33229,8 +34132,8 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
33229
34132
|
return this.deps;
|
|
33230
34133
|
}
|
|
33231
34134
|
this.deps = Promise.all([
|
|
33232
|
-
Promise.resolve().then(() => (
|
|
33233
|
-
Promise.resolve().then(() => (
|
|
34135
|
+
Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
|
|
34136
|
+
Promise.resolve().then(() => (init_dist7(), dist_exports5)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
|
|
33234
34137
|
]);
|
|
33235
34138
|
return this.deps;
|
|
33236
34139
|
}
|
|
@@ -33251,9 +34154,9 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
33251
34154
|
yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
|
|
33252
34155
|
return;
|
|
33253
34156
|
}
|
|
33254
|
-
const
|
|
34157
|
+
const parse2 = parseCommits2(parserOptions);
|
|
33255
34158
|
const commitsStream = this.getRawCommits(gitLogParams);
|
|
33256
|
-
yield*
|
|
34159
|
+
yield* parse2(commitsStream);
|
|
33257
34160
|
}
|
|
33258
34161
|
/**
|
|
33259
34162
|
* Get semver tags stream.
|
|
@@ -33325,7 +34228,7 @@ var init_ConventionalGitClient2 = __esm({
|
|
|
33325
34228
|
});
|
|
33326
34229
|
|
|
33327
34230
|
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js
|
|
33328
|
-
var
|
|
34231
|
+
var init_dist13 = __esm({
|
|
33329
34232
|
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js"() {
|
|
33330
34233
|
"use strict";
|
|
33331
34234
|
init_types4();
|
|
@@ -33362,7 +34265,7 @@ async function getSemverTags(options = {}) {
|
|
|
33362
34265
|
var init_src = __esm({
|
|
33363
34266
|
"../../node_modules/.pnpm/git-semver-tags@8.0.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/git-semver-tags/src/index.js"() {
|
|
33364
34267
|
"use strict";
|
|
33365
|
-
|
|
34268
|
+
init_dist13();
|
|
33366
34269
|
}
|
|
33367
34270
|
});
|
|
33368
34271
|
|
|
@@ -36794,7 +37697,7 @@ function sync(root, options) {
|
|
|
36794
37697
|
return walker.start();
|
|
36795
37698
|
}
|
|
36796
37699
|
var __require2, SLASHES_REGEX, WINDOWS_ROOT_DIR_REGEX, pushDirectory, pushDirectoryFilter, empty$2, pushFileFilterAndCount, pushFileFilter, pushFileCount, pushFile, empty$1, getArray, getArrayGroup, groupFiles, empty, resolveSymlinksAsync, resolveSymlinks, onlyCountsSync, groupsSync, defaultSync, limitFilesSync, onlyCountsAsync, defaultAsync, limitFilesAsync, groupsAsync, readdirOpts, walkAsync, walkSync, Queue, Counter, Aborter, Walker, APIBuilder, pm, Builder;
|
|
36797
|
-
var
|
|
37700
|
+
var init_dist14 = __esm({
|
|
36798
37701
|
"../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.mjs"() {
|
|
36799
37702
|
"use strict";
|
|
36800
37703
|
__require2 = /* @__PURE__ */ createRequire2(import.meta.url);
|
|
@@ -38016,7 +38919,7 @@ var require_parse2 = __commonJS({
|
|
|
38016
38919
|
}
|
|
38017
38920
|
return { risky: false };
|
|
38018
38921
|
};
|
|
38019
|
-
var
|
|
38922
|
+
var parse2 = (input, options) => {
|
|
38020
38923
|
if (typeof input !== "string") {
|
|
38021
38924
|
throw new TypeError("Expected a string");
|
|
38022
38925
|
}
|
|
@@ -38186,7 +39089,7 @@ var require_parse2 = __commonJS({
|
|
|
38186
39089
|
output3 = token.close = `)$))${extglobStar}`;
|
|
38187
39090
|
}
|
|
38188
39091
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
38189
|
-
const expression =
|
|
39092
|
+
const expression = parse2(rest, { ...options, fastpaths: false }).output;
|
|
38190
39093
|
output3 = token.close = `)${expression})${extglobStar})`;
|
|
38191
39094
|
}
|
|
38192
39095
|
if (token.prev.type === "bos") {
|
|
@@ -38708,7 +39611,7 @@ var require_parse2 = __commonJS({
|
|
|
38708
39611
|
}
|
|
38709
39612
|
return state;
|
|
38710
39613
|
};
|
|
38711
|
-
|
|
39614
|
+
parse2.fastpaths = (input, options) => {
|
|
38712
39615
|
const opts = { ...options };
|
|
38713
39616
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
38714
39617
|
const len = input.length;
|
|
@@ -38773,7 +39676,7 @@ var require_parse2 = __commonJS({
|
|
|
38773
39676
|
}
|
|
38774
39677
|
return source;
|
|
38775
39678
|
};
|
|
38776
|
-
module2.exports =
|
|
39679
|
+
module2.exports = parse2;
|
|
38777
39680
|
}
|
|
38778
39681
|
});
|
|
38779
39682
|
|
|
@@ -38782,7 +39685,7 @@ var require_picomatch = __commonJS({
|
|
|
38782
39685
|
"../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
|
|
38783
39686
|
"use strict";
|
|
38784
39687
|
var scan = require_scan();
|
|
38785
|
-
var
|
|
39688
|
+
var parse2 = require_parse2();
|
|
38786
39689
|
var utils2 = require_utils2();
|
|
38787
39690
|
var constants = require_constants2();
|
|
38788
39691
|
var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -38870,7 +39773,7 @@ var require_picomatch = __commonJS({
|
|
|
38870
39773
|
picomatch2.isMatch = (str3, patterns, options) => picomatch2(patterns, options)(str3);
|
|
38871
39774
|
picomatch2.parse = (pattern, options) => {
|
|
38872
39775
|
if (Array.isArray(pattern)) return pattern.map((p) => picomatch2.parse(p, options));
|
|
38873
|
-
return
|
|
39776
|
+
return parse2(pattern, { ...options, fastpaths: false });
|
|
38874
39777
|
};
|
|
38875
39778
|
picomatch2.scan = (input, options) => scan(input, options);
|
|
38876
39779
|
picomatch2.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
@@ -38896,10 +39799,10 @@ var require_picomatch = __commonJS({
|
|
|
38896
39799
|
}
|
|
38897
39800
|
let parsed = { negated: false, fastpaths: true };
|
|
38898
39801
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
38899
|
-
parsed.output =
|
|
39802
|
+
parsed.output = parse2.fastpaths(input, options);
|
|
38900
39803
|
}
|
|
38901
39804
|
if (!parsed.output) {
|
|
38902
|
-
parsed =
|
|
39805
|
+
parsed = parse2(input, options);
|
|
38903
39806
|
}
|
|
38904
39807
|
return picomatch2.compileRe(parsed, options, returnOutput, returnState);
|
|
38905
39808
|
};
|
|
@@ -39198,10 +40101,10 @@ function globSync(patternsOrOptions, options) {
|
|
|
39198
40101
|
return formatPaths(crawler.sync(), relative2);
|
|
39199
40102
|
}
|
|
39200
40103
|
var import_picomatch, isReadonlyArray3, isWin, ONLY_PARENT_DIRECTORIES, WIN32_ROOT_DIR, isRoot, splitPatternOptions, POSIX_UNESCAPED_GLOB_SYMBOLS, WIN32_UNESCAPED_GLOB_SYMBOLS, escapePosixPath, escapeWin32Path, escapePath, PARENT_DIRECTORY, ESCAPING_BACKSLASHES, BACKSLASHES;
|
|
39201
|
-
var
|
|
40104
|
+
var init_dist15 = __esm({
|
|
39202
40105
|
"../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs"() {
|
|
39203
40106
|
"use strict";
|
|
39204
|
-
|
|
40107
|
+
init_dist14();
|
|
39205
40108
|
import_picomatch = __toESM(require_picomatch2(), 1);
|
|
39206
40109
|
isReadonlyArray3 = Array.isArray;
|
|
39207
40110
|
isWin = process.platform === "win32";
|
|
@@ -41927,7 +42830,7 @@ var require_parse3 = __commonJS({
|
|
|
41927
42830
|
}
|
|
41928
42831
|
return result + "\n" + srcline + "\n" + underline;
|
|
41929
42832
|
}
|
|
41930
|
-
function
|
|
42833
|
+
function parse2(input, options) {
|
|
41931
42834
|
var json5 = false;
|
|
41932
42835
|
var cjson = false;
|
|
41933
42836
|
if (options.legacy || options.mode === "json") {
|
|
@@ -41995,13 +42898,13 @@ var require_parse3 = __commonJS({
|
|
|
41995
42898
|
tokenStart();
|
|
41996
42899
|
var chr = input[position++];
|
|
41997
42900
|
if (chr === '"' || chr === "'" && json5) {
|
|
41998
|
-
return tokenEnd(
|
|
42901
|
+
return tokenEnd(parseString2(chr), "literal");
|
|
41999
42902
|
} else if (chr === "{") {
|
|
42000
42903
|
tokenEnd(void 0, "separator");
|
|
42001
42904
|
return parseObject();
|
|
42002
42905
|
} else if (chr === "[") {
|
|
42003
42906
|
tokenEnd(void 0, "separator");
|
|
42004
|
-
return
|
|
42907
|
+
return parseArray2();
|
|
42005
42908
|
} else if (chr === "-" || chr === "." || isDecDigit(chr) || json5 && (chr === "+" || chr === "I" || chr === "N")) {
|
|
42006
42909
|
return tokenEnd(parseNumber(), "literal");
|
|
42007
42910
|
} else if (chr === "n") {
|
|
@@ -42019,19 +42922,19 @@ var require_parse3 = __commonJS({
|
|
|
42019
42922
|
}
|
|
42020
42923
|
}
|
|
42021
42924
|
}
|
|
42022
|
-
function
|
|
42925
|
+
function parseKey2() {
|
|
42023
42926
|
var result;
|
|
42024
42927
|
while (position < length) {
|
|
42025
42928
|
tokenStart();
|
|
42026
42929
|
var chr = input[position++];
|
|
42027
42930
|
if (chr === '"' || chr === "'" && json5) {
|
|
42028
|
-
return tokenEnd(
|
|
42931
|
+
return tokenEnd(parseString2(chr), "key");
|
|
42029
42932
|
} else if (chr === "{") {
|
|
42030
42933
|
tokenEnd(void 0, "separator");
|
|
42031
42934
|
return parseObject();
|
|
42032
42935
|
} else if (chr === "[") {
|
|
42033
42936
|
tokenEnd(void 0, "separator");
|
|
42034
|
-
return
|
|
42937
|
+
return parseArray2();
|
|
42035
42938
|
} else if (chr === "." || isDecDigit(chr)) {
|
|
42036
42939
|
return tokenEnd(parseNumber(true), "key");
|
|
42037
42940
|
} else if (json5 && Uni.isIdentifierStart(chr) || chr === "\\" && input[position] === "u") {
|
|
@@ -42067,7 +42970,7 @@ var require_parse3 = __commonJS({
|
|
|
42067
42970
|
tokenEnd(void 0, "whitespace");
|
|
42068
42971
|
tokenStart();
|
|
42069
42972
|
position++;
|
|
42070
|
-
|
|
42973
|
+
skipComment2(input[position++] === "*");
|
|
42071
42974
|
tokenEnd(void 0, "comment");
|
|
42072
42975
|
tokenStart();
|
|
42073
42976
|
} else {
|
|
@@ -42077,7 +42980,7 @@ var require_parse3 = __commonJS({
|
|
|
42077
42980
|
}
|
|
42078
42981
|
return tokenEnd(void 0, "whitespace");
|
|
42079
42982
|
}
|
|
42080
|
-
function
|
|
42983
|
+
function skipComment2(multi) {
|
|
42081
42984
|
while (position < length) {
|
|
42082
42985
|
var chr = input[position++];
|
|
42083
42986
|
if (isLineTerminator(chr)) {
|
|
@@ -42113,7 +43016,7 @@ var require_parse3 = __commonJS({
|
|
|
42113
43016
|
var result = options.null_prototype ? /* @__PURE__ */ Object.create(null) : {}, empty_object = {}, is_non_empty = false;
|
|
42114
43017
|
while (position < length) {
|
|
42115
43018
|
skipWhiteSpace();
|
|
42116
|
-
var item1 =
|
|
43019
|
+
var item1 = parseKey2();
|
|
42117
43020
|
skipWhiteSpace();
|
|
42118
43021
|
tokenStart();
|
|
42119
43022
|
var chr = input[position++];
|
|
@@ -42172,7 +43075,7 @@ var require_parse3 = __commonJS({
|
|
|
42172
43075
|
}
|
|
42173
43076
|
fail();
|
|
42174
43077
|
}
|
|
42175
|
-
function
|
|
43078
|
+
function parseArray2() {
|
|
42176
43079
|
var result = [];
|
|
42177
43080
|
while (position < length) {
|
|
42178
43081
|
skipWhiteSpace();
|
|
@@ -42298,7 +43201,7 @@ var require_parse3 = __commonJS({
|
|
|
42298
43201
|
}
|
|
42299
43202
|
fail();
|
|
42300
43203
|
}
|
|
42301
|
-
function
|
|
43204
|
+
function parseString2(endChar) {
|
|
42302
43205
|
var result = "";
|
|
42303
43206
|
while (position < length) {
|
|
42304
43207
|
var chr = input[position++];
|
|
@@ -42385,7 +43288,7 @@ var require_parse3 = __commonJS({
|
|
|
42385
43288
|
}
|
|
42386
43289
|
}
|
|
42387
43290
|
try {
|
|
42388
|
-
return
|
|
43291
|
+
return parse2(input, options);
|
|
42389
43292
|
} catch (err) {
|
|
42390
43293
|
if (err instanceof SyntaxError && err.row != null && err.column != null) {
|
|
42391
43294
|
var old_err = err;
|
|
@@ -42756,7 +43659,7 @@ var require_document = __commonJS({
|
|
|
42756
43659
|
"use strict";
|
|
42757
43660
|
var assert2 = __require("assert");
|
|
42758
43661
|
var tokenize2 = require_parse3().tokenize;
|
|
42759
|
-
var
|
|
43662
|
+
var stringify4 = require_stringify().stringify;
|
|
42760
43663
|
var analyze2 = require_analyze().analyze;
|
|
42761
43664
|
function isObject3(x) {
|
|
42762
43665
|
return typeof x === "object" && x !== null;
|
|
@@ -42771,7 +43674,7 @@ var require_document = __commonJS({
|
|
|
42771
43674
|
}
|
|
42772
43675
|
if (options._splitMin == null) options._splitMin = 0;
|
|
42773
43676
|
if (options._splitMax == null) options._splitMax = 0;
|
|
42774
|
-
var stringified =
|
|
43677
|
+
var stringified = stringify4(value, options);
|
|
42775
43678
|
if (is_key) {
|
|
42776
43679
|
return [{ raw: stringified, type: "key", stack, value }];
|
|
42777
43680
|
}
|
|
@@ -43239,7 +44142,7 @@ var import_jju, InvalidMonorepoError, readJson, readJsonSync, BunTool, LernaTool
|
|
|
43239
44142
|
var init_manypkg_tools = __esm({
|
|
43240
44143
|
"../../node_modules/.pnpm/@manypkg+tools@2.1.0/node_modules/@manypkg/tools/dist/manypkg-tools.js"() {
|
|
43241
44144
|
"use strict";
|
|
43242
|
-
|
|
44145
|
+
init_dist15();
|
|
43243
44146
|
init_js_yaml();
|
|
43244
44147
|
import_jju = __toESM(require_jju(), 1);
|
|
43245
44148
|
InvalidMonorepoError = class extends Error {
|
|
@@ -43911,7 +44814,6 @@ var init_baseError_DQHIJACF = __esm({
|
|
|
43911
44814
|
// ../version/dist/chunk-UBCKZYTO.js
|
|
43912
44815
|
import * as fs15 from "fs";
|
|
43913
44816
|
import * as path17 from "path";
|
|
43914
|
-
import * as TOML3 from "smol-toml";
|
|
43915
44817
|
import * as fs34 from "fs";
|
|
43916
44818
|
import * as path34 from "path";
|
|
43917
44819
|
import { z as z23 } from "zod";
|
|
@@ -43925,7 +44827,6 @@ import fs63 from "fs";
|
|
|
43925
44827
|
import path54 from "path";
|
|
43926
44828
|
import fs54 from "fs";
|
|
43927
44829
|
import path44 from "path";
|
|
43928
|
-
import * as TOML23 from "smol-toml";
|
|
43929
44830
|
import * as fs93 from "fs";
|
|
43930
44831
|
import path73 from "path";
|
|
43931
44832
|
import fs83 from "fs";
|
|
@@ -43936,7 +44837,7 @@ import path92 from "path";
|
|
|
43936
44837
|
import { Command as Command3 } from "commander";
|
|
43937
44838
|
function parseCargoToml2(cargoPath) {
|
|
43938
44839
|
const content = fs15.readFileSync(cargoPath, "utf-8");
|
|
43939
|
-
return
|
|
44840
|
+
return parse(content);
|
|
43940
44841
|
}
|
|
43941
44842
|
function isCargoToml(filePath) {
|
|
43942
44843
|
return path17.basename(filePath) === "Cargo.toml";
|
|
@@ -44439,7 +45340,7 @@ function updateCargoVersion2(cargoPath, version, dryRun = false) {
|
|
|
44439
45340
|
} else {
|
|
44440
45341
|
cargo.package.version = version;
|
|
44441
45342
|
}
|
|
44442
|
-
const updatedContent =
|
|
45343
|
+
const updatedContent = stringify(cargo);
|
|
44443
45344
|
if (dryRun) {
|
|
44444
45345
|
recordPendingWrite(cargoPath, updatedContent);
|
|
44445
45346
|
} else {
|
|
@@ -45701,12 +46602,14 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
45701
46602
|
"use strict";
|
|
45702
46603
|
init_chunk_Q3FHZORY();
|
|
45703
46604
|
init_chunk_LMPZV35Z();
|
|
45704
|
-
|
|
46605
|
+
init_dist();
|
|
46606
|
+
init_dist10();
|
|
45705
46607
|
import_semver4 = __toESM(require_semver2(), 1);
|
|
45706
46608
|
init_src();
|
|
45707
46609
|
import_semver5 = __toESM(require_semver2(), 1);
|
|
45708
46610
|
init_source();
|
|
45709
46611
|
init_node_figlet();
|
|
46612
|
+
init_dist();
|
|
45710
46613
|
import_semver6 = __toESM(require_semver2(), 1);
|
|
45711
46614
|
init_esm3();
|
|
45712
46615
|
init_manypkg_get_packages();
|
|
@@ -46419,8 +47322,8 @@ var init_chunk_UBCKZYTO = __esm({
|
|
|
46419
47322
|
});
|
|
46420
47323
|
|
|
46421
47324
|
// ../version/dist/index.js
|
|
46422
|
-
var
|
|
46423
|
-
__export(
|
|
47325
|
+
var dist_exports6 = {};
|
|
47326
|
+
__export(dist_exports6, {
|
|
46424
47327
|
BaseVersionError: () => BaseVersionError,
|
|
46425
47328
|
PackageProcessor: () => PackageProcessor,
|
|
46426
47329
|
VersionEngine: () => VersionEngine,
|
|
@@ -46436,7 +47339,7 @@ __export(dist_exports5, {
|
|
|
46436
47339
|
getJsonData: () => getJsonData,
|
|
46437
47340
|
loadConfig: () => loadConfig23
|
|
46438
47341
|
});
|
|
46439
|
-
var
|
|
47342
|
+
var init_dist16 = __esm({
|
|
46440
47343
|
"../version/dist/index.js"() {
|
|
46441
47344
|
"use strict";
|
|
46442
47345
|
init_chunk_UBCKZYTO();
|
|
@@ -46549,14 +47452,14 @@ var EXIT_CODES = {
|
|
|
46549
47452
|
};
|
|
46550
47453
|
|
|
46551
47454
|
// src/dispatcher.ts
|
|
46552
|
-
init_dist();
|
|
46553
47455
|
init_dist2();
|
|
46554
|
-
|
|
47456
|
+
init_dist3();
|
|
47457
|
+
init_dist16();
|
|
46555
47458
|
import { Command as Command7 } from "commander";
|
|
46556
47459
|
|
|
46557
47460
|
// src/init-command.ts
|
|
46558
47461
|
import * as fs16 from "fs";
|
|
46559
|
-
|
|
47462
|
+
init_dist2();
|
|
46560
47463
|
import { Command as Command4 } from "commander";
|
|
46561
47464
|
function createInitCommand() {
|
|
46562
47465
|
return new Command4("init").description("Create a default releasekit.config.json").option("-f, --force", "Overwrite existing config").action((options) => {
|
|
@@ -46607,7 +47510,7 @@ function createInitCommand() {
|
|
|
46607
47510
|
import { Command as Command5 } from "commander";
|
|
46608
47511
|
|
|
46609
47512
|
// ../config/dist/index.js
|
|
46610
|
-
|
|
47513
|
+
init_dist();
|
|
46611
47514
|
import * as fs35 from "fs";
|
|
46612
47515
|
import * as path35 from "path";
|
|
46613
47516
|
import { z as z24 } from "zod";
|
|
@@ -47348,7 +48251,7 @@ async function runRelease(inputOptions) {
|
|
|
47348
48251
|
return null;
|
|
47349
48252
|
}
|
|
47350
48253
|
if (!options.dryRun) {
|
|
47351
|
-
const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (
|
|
48254
|
+
const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (init_dist16(), dist_exports6));
|
|
47352
48255
|
flushPendingWrites2();
|
|
47353
48256
|
}
|
|
47354
48257
|
info(`Found ${versionOutput.updates.length} package update(s)`);
|
|
@@ -47377,7 +48280,7 @@ async function runRelease(inputOptions) {
|
|
|
47377
48280
|
return { versionOutput, notesGenerated, packageNotes, releaseNotes, publishOutput };
|
|
47378
48281
|
}
|
|
47379
48282
|
async function runVersionStep(options) {
|
|
47380
|
-
const { loadConfig: loadConfig6, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (
|
|
48283
|
+
const { loadConfig: loadConfig6, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (init_dist16(), dist_exports6));
|
|
47381
48284
|
enableJsonOutput2(options.dryRun);
|
|
47382
48285
|
const config = loadConfig6({ cwd: options.projectDir, configPath: options.config });
|
|
47383
48286
|
if (options.dryRun) config.dryRun = true;
|
|
@@ -47410,14 +48313,14 @@ async function runVersionStep(options) {
|
|
|
47410
48313
|
return getJsonData2();
|
|
47411
48314
|
}
|
|
47412
48315
|
async function runNotesStep(versionOutput, options) {
|
|
47413
|
-
const { parseVersionOutput: parseVersionOutput2, runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (
|
|
48316
|
+
const { parseVersionOutput: parseVersionOutput2, runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2));
|
|
47414
48317
|
const config = loadConfig6(options.projectDir, options.config);
|
|
47415
48318
|
const input = parseVersionOutput2(JSON.stringify(versionOutput));
|
|
47416
48319
|
const result = await runPipeline3(input, config, options.dryRun);
|
|
47417
48320
|
return { packageNotes: result.packageNotes, releaseNotes: result.releaseNotes, files: result.files };
|
|
47418
48321
|
}
|
|
47419
48322
|
async function runPublishStep(versionOutput, options, releaseNotes, additionalFiles) {
|
|
47420
|
-
const { runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (
|
|
48323
|
+
const { runPipeline: runPipeline3, loadConfig: loadConfig6 } = await Promise.resolve().then(() => (init_dist3(), dist_exports3));
|
|
47421
48324
|
const config = loadConfig6({ configPath: options.config });
|
|
47422
48325
|
if (options.branch) {
|
|
47423
48326
|
config.git.branch = options.branch;
|
|
@@ -47666,6 +48569,43 @@ export {
|
|
|
47666
48569
|
};
|
|
47667
48570
|
/*! Bundled license information:
|
|
47668
48571
|
|
|
48572
|
+
smol-toml/dist/error.js:
|
|
48573
|
+
smol-toml/dist/util.js:
|
|
48574
|
+
smol-toml/dist/date.js:
|
|
48575
|
+
smol-toml/dist/primitive.js:
|
|
48576
|
+
smol-toml/dist/extract.js:
|
|
48577
|
+
smol-toml/dist/struct.js:
|
|
48578
|
+
smol-toml/dist/parse.js:
|
|
48579
|
+
smol-toml/dist/stringify.js:
|
|
48580
|
+
smol-toml/dist/index.js:
|
|
48581
|
+
(*!
|
|
48582
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
48583
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
48584
|
+
*
|
|
48585
|
+
* Redistribution and use in source and binary forms, with or without
|
|
48586
|
+
* modification, are permitted provided that the following conditions are met:
|
|
48587
|
+
*
|
|
48588
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
48589
|
+
* list of conditions and the following disclaimer.
|
|
48590
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
48591
|
+
* this list of conditions and the following disclaimer in the
|
|
48592
|
+
* documentation and/or other materials provided with the distribution.
|
|
48593
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
48594
|
+
* may be used to endorse or promote products derived from this software without
|
|
48595
|
+
* specific prior written permission.
|
|
48596
|
+
*
|
|
48597
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
48598
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
48599
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
48600
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
48601
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
48602
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
48603
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
48604
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
48605
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
48606
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
48607
|
+
*)
|
|
48608
|
+
|
|
47669
48609
|
ejs/lib/esm/ejs.js:
|
|
47670
48610
|
(**
|
|
47671
48611
|
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|