@integrity-labs/agt-cli 0.28.861 → 0.28.863
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/bin/agt.js +5 -5
- package/dist/{chunk-USHD2L3F.js → chunk-JG3EAFZO.js} +21 -2
- package/dist/chunk-JG3EAFZO.js.map +1 -0
- package/dist/{chunk-IQROQ3XJ.js → chunk-M5ICLV54.js} +4 -4
- package/dist/{chunk-G23CONQJ.js → chunk-PXDYKP5O.js} +2 -2
- package/dist/{claude-pair-runtime-6FJOWTEX.js → claude-pair-runtime-OWOZ2ZQ7.js} +2 -2
- package/dist/lib/manager-worker.js +14 -14
- package/dist/mcp/direct-chat-channel.js +20 -1
- package/dist/mcp/index.js +20 -1
- package/dist/mcp/origami.js +20 -1
- package/dist/mcp/slack-channel.js +365 -279
- package/dist/mcp/telegram-channel.js +20 -1
- package/dist/{persistent-session-6DET4JLF.js → persistent-session-GSXFKCVO.js} +3 -3
- package/dist/{responsiveness-probe-ZNKOWUIE.js → responsiveness-probe-GOM3ZYW3.js} +3 -3
- package/dist/{session-auth-dead-XU7VC6HM.js → session-auth-dead-ID4L35CN.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-USHD2L3F.js.map +0 -1
- /package/dist/{chunk-IQROQ3XJ.js.map → chunk-M5ICLV54.js.map} +0 -0
- /package/dist/{chunk-G23CONQJ.js.map → chunk-PXDYKP5O.js.map} +0 -0
- /package/dist/{claude-pair-runtime-6FJOWTEX.js.map → claude-pair-runtime-OWOZ2ZQ7.js.map} +0 -0
- /package/dist/{persistent-session-6DET4JLF.js.map → persistent-session-GSXFKCVO.js.map} +0 -0
- /package/dist/{responsiveness-probe-ZNKOWUIE.js.map → responsiveness-probe-GOM3ZYW3.js.map} +0 -0
- /package/dist/{session-auth-dead-XU7VC6HM.js.map → session-auth-dead-ID4L35CN.js.map} +0 -0
|
@@ -108,7 +108,7 @@ var require_code = __commonJS({
|
|
|
108
108
|
}
|
|
109
109
|
exports._ = _;
|
|
110
110
|
var plus = new _Code("+");
|
|
111
|
-
function
|
|
111
|
+
function str2(strs, ...args) {
|
|
112
112
|
const expr = [safeStringify(strs[0])];
|
|
113
113
|
let i = 0;
|
|
114
114
|
while (i < args.length) {
|
|
@@ -119,7 +119,7 @@ var require_code = __commonJS({
|
|
|
119
119
|
optimize(expr);
|
|
120
120
|
return new _Code(expr);
|
|
121
121
|
}
|
|
122
|
-
exports.str =
|
|
122
|
+
exports.str = str2;
|
|
123
123
|
function addCodeArg(code, arg) {
|
|
124
124
|
if (arg instanceof _Code)
|
|
125
125
|
code.push(...arg._items);
|
|
@@ -162,7 +162,7 @@ var require_code = __commonJS({
|
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
164
|
function strConcat(c1, c2) {
|
|
165
|
-
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 :
|
|
165
|
+
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str2`${c1}${c2}`;
|
|
166
166
|
}
|
|
167
167
|
exports.strConcat = strConcat;
|
|
168
168
|
function interpolate(x) {
|
|
@@ -1124,22 +1124,22 @@ var require_util = __commonJS({
|
|
|
1124
1124
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
1125
1125
|
}
|
|
1126
1126
|
exports.schemaRefOrVal = schemaRefOrVal;
|
|
1127
|
-
function unescapeFragment(
|
|
1128
|
-
return unescapeJsonPointer(decodeURIComponent(
|
|
1127
|
+
function unescapeFragment(str2) {
|
|
1128
|
+
return unescapeJsonPointer(decodeURIComponent(str2));
|
|
1129
1129
|
}
|
|
1130
1130
|
exports.unescapeFragment = unescapeFragment;
|
|
1131
|
-
function escapeFragment(
|
|
1132
|
-
return encodeURIComponent(escapeJsonPointer(
|
|
1131
|
+
function escapeFragment(str2) {
|
|
1132
|
+
return encodeURIComponent(escapeJsonPointer(str2));
|
|
1133
1133
|
}
|
|
1134
1134
|
exports.escapeFragment = escapeFragment;
|
|
1135
|
-
function escapeJsonPointer(
|
|
1136
|
-
if (typeof
|
|
1137
|
-
return `${
|
|
1138
|
-
return
|
|
1135
|
+
function escapeJsonPointer(str2) {
|
|
1136
|
+
if (typeof str2 == "number")
|
|
1137
|
+
return `${str2}`;
|
|
1138
|
+
return str2.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1139
1139
|
}
|
|
1140
1140
|
exports.escapeJsonPointer = escapeJsonPointer;
|
|
1141
|
-
function unescapeJsonPointer(
|
|
1142
|
-
return
|
|
1141
|
+
function unescapeJsonPointer(str2) {
|
|
1142
|
+
return str2.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1143
1143
|
}
|
|
1144
1144
|
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
1145
1145
|
function eachItem(xs, f) {
|
|
@@ -2164,8 +2164,8 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2164
2164
|
post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
|
-
function escapeJsonPtr(
|
|
2168
|
-
return
|
|
2167
|
+
function escapeJsonPtr(str2) {
|
|
2168
|
+
return str2.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
2171
|
});
|
|
@@ -3226,10 +3226,10 @@ var require_utils = __commonJS({
|
|
|
3226
3226
|
return { host, isIPV6: false };
|
|
3227
3227
|
}
|
|
3228
3228
|
}
|
|
3229
|
-
function findToken(
|
|
3229
|
+
function findToken(str2, token) {
|
|
3230
3230
|
let ind = 0;
|
|
3231
|
-
for (let i = 0; i <
|
|
3232
|
-
if (
|
|
3231
|
+
for (let i = 0; i < str2.length; i++) {
|
|
3232
|
+
if (str2[i] === token) ind++;
|
|
3233
3233
|
}
|
|
3234
3234
|
return ind;
|
|
3235
3235
|
}
|
|
@@ -3882,7 +3882,7 @@ var require_core = __commonJS({
|
|
|
3882
3882
|
var util_1 = require_util();
|
|
3883
3883
|
var $dataRefSchema = require_data();
|
|
3884
3884
|
var uri_1 = require_uri();
|
|
3885
|
-
var defaultRegExp = (
|
|
3885
|
+
var defaultRegExp = (str2, flags) => new RegExp(str2, flags);
|
|
3886
3886
|
defaultRegExp.code = "new RegExp";
|
|
3887
3887
|
var META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"];
|
|
3888
3888
|
var EXT_SCOPE_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -4677,16 +4677,16 @@ var require_ucs2length = __commonJS({
|
|
|
4677
4677
|
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
4678
4678
|
"use strict";
|
|
4679
4679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4680
|
-
function ucs2length(
|
|
4681
|
-
const len =
|
|
4680
|
+
function ucs2length(str2) {
|
|
4681
|
+
const len = str2.length;
|
|
4682
4682
|
let length = 0;
|
|
4683
4683
|
let pos = 0;
|
|
4684
4684
|
let value;
|
|
4685
4685
|
while (pos < len) {
|
|
4686
4686
|
length++;
|
|
4687
|
-
value =
|
|
4687
|
+
value = str2.charCodeAt(pos++);
|
|
4688
4688
|
if (value >= 55296 && value <= 56319 && pos < len) {
|
|
4689
|
-
value =
|
|
4689
|
+
value = str2.charCodeAt(pos);
|
|
4690
4690
|
if ((value & 64512) === 56320)
|
|
4691
4691
|
pos++;
|
|
4692
4692
|
}
|
|
@@ -6569,8 +6569,8 @@ var require_formats = __commonJS({
|
|
|
6569
6569
|
}
|
|
6570
6570
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
6571
6571
|
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
6572
|
-
function date3(
|
|
6573
|
-
const matches = DATE.exec(
|
|
6572
|
+
function date3(str2) {
|
|
6573
|
+
const matches = DATE.exec(str2);
|
|
6574
6574
|
if (!matches)
|
|
6575
6575
|
return false;
|
|
6576
6576
|
const year = +matches[1];
|
|
@@ -6589,8 +6589,8 @@ var require_formats = __commonJS({
|
|
|
6589
6589
|
}
|
|
6590
6590
|
var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
|
|
6591
6591
|
function getTime(strictTimeZone) {
|
|
6592
|
-
return function time3(
|
|
6593
|
-
const matches = TIME.exec(
|
|
6592
|
+
return function time3(str2) {
|
|
6593
|
+
const matches = TIME.exec(str2);
|
|
6594
6594
|
if (!matches)
|
|
6595
6595
|
return false;
|
|
6596
6596
|
const hr = +matches[1];
|
|
@@ -6636,8 +6636,8 @@ var require_formats = __commonJS({
|
|
|
6636
6636
|
var DATE_TIME_SEPARATOR = /t|\s/i;
|
|
6637
6637
|
function getDateTime(strictTimeZone) {
|
|
6638
6638
|
const time3 = getTime(strictTimeZone);
|
|
6639
|
-
return function date_time(
|
|
6640
|
-
const dateTime =
|
|
6639
|
+
return function date_time(str2) {
|
|
6640
|
+
const dateTime = str2.split(DATE_TIME_SEPARATOR);
|
|
6641
6641
|
return dateTime.length === 2 && date3(dateTime[0]) && time3(dateTime[1]);
|
|
6642
6642
|
};
|
|
6643
6643
|
}
|
|
@@ -6662,13 +6662,13 @@ var require_formats = __commonJS({
|
|
|
6662
6662
|
}
|
|
6663
6663
|
var NOT_URI_FRAGMENT = /\/|:/;
|
|
6664
6664
|
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
6665
|
-
function uri(
|
|
6666
|
-
return NOT_URI_FRAGMENT.test(
|
|
6665
|
+
function uri(str2) {
|
|
6666
|
+
return NOT_URI_FRAGMENT.test(str2) && URI.test(str2);
|
|
6667
6667
|
}
|
|
6668
6668
|
var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
6669
|
-
function byte(
|
|
6669
|
+
function byte(str2) {
|
|
6670
6670
|
BYTE.lastIndex = 0;
|
|
6671
|
-
return BYTE.test(
|
|
6671
|
+
return BYTE.test(str2);
|
|
6672
6672
|
}
|
|
6673
6673
|
var MIN_INT32 = -(2 ** 31);
|
|
6674
6674
|
var MAX_INT32 = 2 ** 31 - 1;
|
|
@@ -6682,11 +6682,11 @@ var require_formats = __commonJS({
|
|
|
6682
6682
|
return true;
|
|
6683
6683
|
}
|
|
6684
6684
|
var Z_ANCHOR = /[^\\]\\Z/;
|
|
6685
|
-
function regex(
|
|
6686
|
-
if (Z_ANCHOR.test(
|
|
6685
|
+
function regex(str2) {
|
|
6686
|
+
if (Z_ANCHOR.test(str2))
|
|
6687
6687
|
return false;
|
|
6688
6688
|
try {
|
|
6689
|
-
new RegExp(
|
|
6689
|
+
new RegExp(str2);
|
|
6690
6690
|
return true;
|
|
6691
6691
|
} catch (e) {
|
|
6692
6692
|
return false;
|
|
@@ -8640,13 +8640,13 @@ var require_Collection = __commonJS({
|
|
|
8640
8640
|
var require_stringifyComment = __commonJS({
|
|
8641
8641
|
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
8642
8642
|
"use strict";
|
|
8643
|
-
var stringifyComment = (
|
|
8643
|
+
var stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
|
|
8644
8644
|
function indentComment(comment, indent) {
|
|
8645
8645
|
if (/^\n+$/.test(comment))
|
|
8646
8646
|
return comment.substring(1);
|
|
8647
8647
|
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
8648
8648
|
}
|
|
8649
|
-
var lineComment = (
|
|
8649
|
+
var lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment;
|
|
8650
8650
|
exports.indentComment = indentComment;
|
|
8651
8651
|
exports.lineComment = lineComment;
|
|
8652
8652
|
exports.stringifyComment = stringifyComment;
|
|
@@ -8800,16 +8800,16 @@ var require_stringifyString = __commonJS({
|
|
|
8800
8800
|
lineWidth: ctx.options.lineWidth,
|
|
8801
8801
|
minContentWidth: ctx.options.minContentWidth
|
|
8802
8802
|
});
|
|
8803
|
-
var containsDocumentMarker = (
|
|
8804
|
-
function lineLengthOverLimit(
|
|
8803
|
+
var containsDocumentMarker = (str2) => /^(%|---|\.\.\.)/m.test(str2);
|
|
8804
|
+
function lineLengthOverLimit(str2, lineWidth, indentLength) {
|
|
8805
8805
|
if (!lineWidth || lineWidth < 0)
|
|
8806
8806
|
return false;
|
|
8807
8807
|
const limit = lineWidth - indentLength;
|
|
8808
|
-
const strLen =
|
|
8808
|
+
const strLen = str2.length;
|
|
8809
8809
|
if (strLen <= limit)
|
|
8810
8810
|
return false;
|
|
8811
8811
|
for (let i = 0, start = 0; i < strLen; ++i) {
|
|
8812
|
-
if (
|
|
8812
|
+
if (str2[i] === "\n") {
|
|
8813
8813
|
if (i - start > limit)
|
|
8814
8814
|
return true;
|
|
8815
8815
|
start = i + 1;
|
|
@@ -8826,11 +8826,11 @@ var require_stringifyString = __commonJS({
|
|
|
8826
8826
|
const { implicitKey } = ctx;
|
|
8827
8827
|
const minMultiLineLength = ctx.options.doubleQuotedMinMultiLineLength;
|
|
8828
8828
|
const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
|
|
8829
|
-
let
|
|
8829
|
+
let str2 = "";
|
|
8830
8830
|
let start = 0;
|
|
8831
8831
|
for (let i = 0, ch = json[i]; ch; ch = json[++i]) {
|
|
8832
8832
|
if (ch === " " && json[i + 1] === "\\" && json[i + 2] === "n") {
|
|
8833
|
-
|
|
8833
|
+
str2 += json.slice(start, i) + "\\ ";
|
|
8834
8834
|
i += 1;
|
|
8835
8835
|
start = i;
|
|
8836
8836
|
ch = "\\";
|
|
@@ -8839,38 +8839,38 @@ var require_stringifyString = __commonJS({
|
|
|
8839
8839
|
switch (json[i + 1]) {
|
|
8840
8840
|
case "u":
|
|
8841
8841
|
{
|
|
8842
|
-
|
|
8842
|
+
str2 += json.slice(start, i);
|
|
8843
8843
|
const code = json.substr(i + 2, 4);
|
|
8844
8844
|
switch (code) {
|
|
8845
8845
|
case "0000":
|
|
8846
|
-
|
|
8846
|
+
str2 += "\\0";
|
|
8847
8847
|
break;
|
|
8848
8848
|
case "0007":
|
|
8849
|
-
|
|
8849
|
+
str2 += "\\a";
|
|
8850
8850
|
break;
|
|
8851
8851
|
case "000b":
|
|
8852
|
-
|
|
8852
|
+
str2 += "\\v";
|
|
8853
8853
|
break;
|
|
8854
8854
|
case "001b":
|
|
8855
|
-
|
|
8855
|
+
str2 += "\\e";
|
|
8856
8856
|
break;
|
|
8857
8857
|
case "0085":
|
|
8858
|
-
|
|
8858
|
+
str2 += "\\N";
|
|
8859
8859
|
break;
|
|
8860
8860
|
case "00a0":
|
|
8861
|
-
|
|
8861
|
+
str2 += "\\_";
|
|
8862
8862
|
break;
|
|
8863
8863
|
case "2028":
|
|
8864
|
-
|
|
8864
|
+
str2 += "\\L";
|
|
8865
8865
|
break;
|
|
8866
8866
|
case "2029":
|
|
8867
|
-
|
|
8867
|
+
str2 += "\\P";
|
|
8868
8868
|
break;
|
|
8869
8869
|
default:
|
|
8870
8870
|
if (code.substr(0, 2) === "00")
|
|
8871
|
-
|
|
8871
|
+
str2 += "\\x" + code.substr(2);
|
|
8872
8872
|
else
|
|
8873
|
-
|
|
8873
|
+
str2 += json.substr(i, 6);
|
|
8874
8874
|
}
|
|
8875
8875
|
i += 5;
|
|
8876
8876
|
start = i + 1;
|
|
@@ -8880,14 +8880,14 @@ var require_stringifyString = __commonJS({
|
|
|
8880
8880
|
if (implicitKey || json[i + 2] === '"' || json.length < minMultiLineLength) {
|
|
8881
8881
|
i += 1;
|
|
8882
8882
|
} else {
|
|
8883
|
-
|
|
8883
|
+
str2 += json.slice(start, i) + "\n\n";
|
|
8884
8884
|
while (json[i + 2] === "\\" && json[i + 3] === "n" && json[i + 4] !== '"') {
|
|
8885
|
-
|
|
8885
|
+
str2 += "\n";
|
|
8886
8886
|
i += 2;
|
|
8887
8887
|
}
|
|
8888
|
-
|
|
8888
|
+
str2 += indent;
|
|
8889
8889
|
if (json[i + 2] === " ")
|
|
8890
|
-
|
|
8890
|
+
str2 += "\\";
|
|
8891
8891
|
i += 1;
|
|
8892
8892
|
start = i + 1;
|
|
8893
8893
|
}
|
|
@@ -8896,8 +8896,8 @@ var require_stringifyString = __commonJS({
|
|
|
8896
8896
|
i += 1;
|
|
8897
8897
|
}
|
|
8898
8898
|
}
|
|
8899
|
-
|
|
8900
|
-
return implicitKey ?
|
|
8899
|
+
str2 = start ? str2 + json.slice(start) : json;
|
|
8900
|
+
return implicitKey ? str2 : foldFlowLines.foldFlowLines(str2, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false));
|
|
8901
8901
|
}
|
|
8902
8902
|
function singleQuotedString(value, ctx) {
|
|
8903
8903
|
if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value))
|
|
@@ -9025,15 +9025,15 @@ ${indent}${start}${value}${end}`;
|
|
|
9025
9025
|
return quotedString(value, ctx);
|
|
9026
9026
|
}
|
|
9027
9027
|
}
|
|
9028
|
-
const
|
|
9028
|
+
const str2 = value.replace(/\n+/g, `$&
|
|
9029
9029
|
${indent}`);
|
|
9030
9030
|
if (actualString) {
|
|
9031
|
-
const test = (tag) => tag.default && tag.tag !== "tag:yaml.org,2002:str" && tag.test?.test(
|
|
9031
|
+
const test = (tag) => tag.default && tag.tag !== "tag:yaml.org,2002:str" && tag.test?.test(str2);
|
|
9032
9032
|
const { compat, tags } = ctx.doc.schema;
|
|
9033
9033
|
if (tags.some(test) || compat?.some(test))
|
|
9034
9034
|
return quotedString(value, ctx);
|
|
9035
9035
|
}
|
|
9036
|
-
return implicitKey ?
|
|
9036
|
+
return implicitKey ? str2 : foldFlowLines.foldFlowLines(str2, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
|
|
9037
9037
|
}
|
|
9038
9038
|
function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
9039
9039
|
const { implicitKey, inFlow } = ctx;
|
|
@@ -9185,11 +9185,11 @@ var require_stringify = __commonJS({
|
|
|
9185
9185
|
const props = stringifyProps(node, tagObj, ctx);
|
|
9186
9186
|
if (props.length > 0)
|
|
9187
9187
|
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
9188
|
-
const
|
|
9188
|
+
const str2 = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
|
|
9189
9189
|
if (!props)
|
|
9190
|
-
return
|
|
9191
|
-
return identity.isScalar(node) ||
|
|
9192
|
-
${ctx.indent}${
|
|
9190
|
+
return str2;
|
|
9191
|
+
return identity.isScalar(node) || str2[0] === "{" || str2[0] === "[" ? `${props} ${str2}` : `${props}
|
|
9192
|
+
${ctx.indent}${str2}`;
|
|
9193
9193
|
}
|
|
9194
9194
|
exports.createStringifyContext = createStringifyContext;
|
|
9195
9195
|
exports.stringify = stringify;
|
|
@@ -9224,8 +9224,8 @@ var require_stringifyPair = __commonJS({
|
|
|
9224
9224
|
});
|
|
9225
9225
|
let keyCommentDone = false;
|
|
9226
9226
|
let chompKeep = false;
|
|
9227
|
-
let
|
|
9228
|
-
if (!explicitKey && !ctx.inFlow &&
|
|
9227
|
+
let str2 = stringify.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
9228
|
+
if (!explicitKey && !ctx.inFlow && str2.length > 1024) {
|
|
9229
9229
|
if (simpleKeys)
|
|
9230
9230
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
9231
9231
|
explicitKey = true;
|
|
@@ -9234,27 +9234,27 @@ var require_stringifyPair = __commonJS({
|
|
|
9234
9234
|
if (allNullValues || value == null) {
|
|
9235
9235
|
if (keyCommentDone && onComment)
|
|
9236
9236
|
onComment();
|
|
9237
|
-
return
|
|
9237
|
+
return str2 === "" ? "?" : explicitKey ? `? ${str2}` : str2;
|
|
9238
9238
|
}
|
|
9239
9239
|
} else if (allNullValues && !simpleKeys || value == null && explicitKey) {
|
|
9240
|
-
|
|
9240
|
+
str2 = `? ${str2}`;
|
|
9241
9241
|
if (keyComment && !keyCommentDone) {
|
|
9242
|
-
|
|
9242
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
|
|
9243
9243
|
} else if (chompKeep && onChompKeep)
|
|
9244
9244
|
onChompKeep();
|
|
9245
|
-
return
|
|
9245
|
+
return str2;
|
|
9246
9246
|
}
|
|
9247
9247
|
if (keyCommentDone)
|
|
9248
9248
|
keyComment = null;
|
|
9249
9249
|
if (explicitKey) {
|
|
9250
9250
|
if (keyComment)
|
|
9251
|
-
|
|
9252
|
-
|
|
9251
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
|
|
9252
|
+
str2 = `? ${str2}
|
|
9253
9253
|
${indent}:`;
|
|
9254
9254
|
} else {
|
|
9255
|
-
|
|
9255
|
+
str2 = `${str2}:`;
|
|
9256
9256
|
if (keyComment)
|
|
9257
|
-
|
|
9257
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(keyComment));
|
|
9258
9258
|
}
|
|
9259
9259
|
let vsb, vcb, valueComment;
|
|
9260
9260
|
if (identity.isNode(value)) {
|
|
@@ -9270,7 +9270,7 @@ ${indent}:`;
|
|
|
9270
9270
|
}
|
|
9271
9271
|
ctx.implicitKey = false;
|
|
9272
9272
|
if (!explicitKey && !keyComment && identity.isScalar(value))
|
|
9273
|
-
ctx.indentAtStart =
|
|
9273
|
+
ctx.indentAtStart = str2.length + 1;
|
|
9274
9274
|
chompKeep = false;
|
|
9275
9275
|
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity.isSeq(value) && !value.flow && !value.tag && !value.anchor) {
|
|
9276
9276
|
ctx.indent = ctx.indent.substring(2);
|
|
@@ -9314,16 +9314,16 @@ ${ctx.indent}`;
|
|
|
9314
9314
|
} else if (valueStr === "" || valueStr[0] === "\n") {
|
|
9315
9315
|
ws = "";
|
|
9316
9316
|
}
|
|
9317
|
-
|
|
9317
|
+
str2 += ws + valueStr;
|
|
9318
9318
|
if (ctx.inFlow) {
|
|
9319
9319
|
if (valueCommentDone && onComment)
|
|
9320
9320
|
onComment();
|
|
9321
9321
|
} else if (valueComment && !valueCommentDone) {
|
|
9322
|
-
|
|
9322
|
+
str2 += stringifyComment.lineComment(str2, ctx.indent, commentString(valueComment));
|
|
9323
9323
|
} else if (chompKeep && onChompKeep) {
|
|
9324
9324
|
onChompKeep();
|
|
9325
9325
|
}
|
|
9326
|
-
return
|
|
9326
|
+
return str2;
|
|
9327
9327
|
}
|
|
9328
9328
|
exports.stringifyPair = stringifyPair;
|
|
9329
9329
|
}
|
|
@@ -9550,31 +9550,31 @@ var require_stringifyCollection = __commonJS({
|
|
|
9550
9550
|
}
|
|
9551
9551
|
}
|
|
9552
9552
|
chompKeep = false;
|
|
9553
|
-
let
|
|
9553
|
+
let str3 = stringify.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
|
|
9554
9554
|
if (comment2)
|
|
9555
|
-
|
|
9555
|
+
str3 += stringifyComment.lineComment(str3, itemIndent, commentString(comment2));
|
|
9556
9556
|
if (chompKeep && comment2)
|
|
9557
9557
|
chompKeep = false;
|
|
9558
|
-
lines.push(blockItemPrefix +
|
|
9558
|
+
lines.push(blockItemPrefix + str3);
|
|
9559
9559
|
}
|
|
9560
|
-
let
|
|
9560
|
+
let str2;
|
|
9561
9561
|
if (lines.length === 0) {
|
|
9562
|
-
|
|
9562
|
+
str2 = flowChars.start + flowChars.end;
|
|
9563
9563
|
} else {
|
|
9564
|
-
|
|
9564
|
+
str2 = lines[0];
|
|
9565
9565
|
for (let i = 1; i < lines.length; ++i) {
|
|
9566
9566
|
const line = lines[i];
|
|
9567
|
-
|
|
9567
|
+
str2 += line ? `
|
|
9568
9568
|
${indent}${line}` : "\n";
|
|
9569
9569
|
}
|
|
9570
9570
|
}
|
|
9571
9571
|
if (comment) {
|
|
9572
|
-
|
|
9572
|
+
str2 += "\n" + stringifyComment.indentComment(commentString(comment), indent);
|
|
9573
9573
|
if (onComment)
|
|
9574
9574
|
onComment();
|
|
9575
9575
|
} else if (chompKeep && onChompKeep)
|
|
9576
9576
|
onChompKeep();
|
|
9577
|
-
return
|
|
9577
|
+
return str2;
|
|
9578
9578
|
}
|
|
9579
9579
|
function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
9580
9580
|
const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
|
|
@@ -9617,21 +9617,21 @@ ${indent}${line}` : "\n";
|
|
|
9617
9617
|
}
|
|
9618
9618
|
if (comment)
|
|
9619
9619
|
reqNewline = true;
|
|
9620
|
-
let
|
|
9621
|
-
reqNewline || (reqNewline = lines.length > linesAtValue ||
|
|
9620
|
+
let str2 = stringify.stringify(item, itemCtx, () => comment = null);
|
|
9621
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str2.includes("\n"));
|
|
9622
9622
|
if (i < items.length - 1) {
|
|
9623
|
-
|
|
9623
|
+
str2 += ",";
|
|
9624
9624
|
} else if (ctx.options.trailingComma) {
|
|
9625
9625
|
if (ctx.options.lineWidth > 0) {
|
|
9626
|
-
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (
|
|
9626
|
+
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str2.length + 2) > ctx.options.lineWidth);
|
|
9627
9627
|
}
|
|
9628
9628
|
if (reqNewline) {
|
|
9629
|
-
|
|
9629
|
+
str2 += ",";
|
|
9630
9630
|
}
|
|
9631
9631
|
}
|
|
9632
9632
|
if (comment)
|
|
9633
|
-
|
|
9634
|
-
lines.push(
|
|
9633
|
+
str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment));
|
|
9634
|
+
lines.push(str2);
|
|
9635
9635
|
linesAtValue = lines.length;
|
|
9636
9636
|
}
|
|
9637
9637
|
const { start, end } = flowChars;
|
|
@@ -9643,11 +9643,11 @@ ${indent}${line}` : "\n";
|
|
|
9643
9643
|
reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
|
|
9644
9644
|
}
|
|
9645
9645
|
if (reqNewline) {
|
|
9646
|
-
let
|
|
9646
|
+
let str2 = start;
|
|
9647
9647
|
for (const line of lines)
|
|
9648
|
-
|
|
9648
|
+
str2 += line ? `
|
|
9649
9649
|
${indentStep}${indent}${line}` : "\n";
|
|
9650
|
-
return `${
|
|
9650
|
+
return `${str2}
|
|
9651
9651
|
${indent}${end}`;
|
|
9652
9652
|
} else {
|
|
9653
9653
|
return `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
|
|
@@ -9979,7 +9979,7 @@ var require_string = __commonJS({
|
|
|
9979
9979
|
identify: (value) => typeof value === "string",
|
|
9980
9980
|
default: true,
|
|
9981
9981
|
tag: "tag:yaml.org,2002:str",
|
|
9982
|
-
resolve: (
|
|
9982
|
+
resolve: (str2) => str2,
|
|
9983
9983
|
stringify(item, ctx, onComment, onChompKeep) {
|
|
9984
9984
|
ctx = Object.assign({ actualString: true }, ctx);
|
|
9985
9985
|
return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
|
|
@@ -10017,7 +10017,7 @@ var require_bool = __commonJS({
|
|
|
10017
10017
|
default: true,
|
|
10018
10018
|
tag: "tag:yaml.org,2002:bool",
|
|
10019
10019
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
10020
|
-
resolve: (
|
|
10020
|
+
resolve: (str2) => new Scalar.Scalar(str2[0] === "t" || str2[0] === "T"),
|
|
10021
10021
|
stringify({ source, value }, ctx) {
|
|
10022
10022
|
if (source && boolTag.test.test(source)) {
|
|
10023
10023
|
const sv = source[0] === "t" || source[0] === "T";
|
|
@@ -10069,7 +10069,7 @@ var require_float = __commonJS({
|
|
|
10069
10069
|
default: true,
|
|
10070
10070
|
tag: "tag:yaml.org,2002:float",
|
|
10071
10071
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
10072
|
-
resolve: (
|
|
10072
|
+
resolve: (str2) => str2.slice(-3).toLowerCase() === "nan" ? NaN : str2[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
10073
10073
|
stringify: stringifyNumber.stringifyNumber
|
|
10074
10074
|
};
|
|
10075
10075
|
var floatExp = {
|
|
@@ -10078,7 +10078,7 @@ var require_float = __commonJS({
|
|
|
10078
10078
|
tag: "tag:yaml.org,2002:float",
|
|
10079
10079
|
format: "EXP",
|
|
10080
10080
|
test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
|
|
10081
|
-
resolve: (
|
|
10081
|
+
resolve: (str2) => parseFloat(str2),
|
|
10082
10082
|
stringify(node) {
|
|
10083
10083
|
const num = Number(node.value);
|
|
10084
10084
|
return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
|
|
@@ -10089,11 +10089,11 @@ var require_float = __commonJS({
|
|
|
10089
10089
|
default: true,
|
|
10090
10090
|
tag: "tag:yaml.org,2002:float",
|
|
10091
10091
|
test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
|
|
10092
|
-
resolve(
|
|
10093
|
-
const node = new Scalar.Scalar(parseFloat(
|
|
10094
|
-
const dot =
|
|
10095
|
-
if (dot !== -1 &&
|
|
10096
|
-
node.minFractionDigits =
|
|
10092
|
+
resolve(str2) {
|
|
10093
|
+
const node = new Scalar.Scalar(parseFloat(str2));
|
|
10094
|
+
const dot = str2.indexOf(".");
|
|
10095
|
+
if (dot !== -1 && str2[str2.length - 1] === "0")
|
|
10096
|
+
node.minFractionDigits = str2.length - dot - 1;
|
|
10097
10097
|
return node;
|
|
10098
10098
|
},
|
|
10099
10099
|
stringify: stringifyNumber.stringifyNumber
|
|
@@ -10110,7 +10110,7 @@ var require_int = __commonJS({
|
|
|
10110
10110
|
"use strict";
|
|
10111
10111
|
var stringifyNumber = require_stringifyNumber();
|
|
10112
10112
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
10113
|
-
var intResolve = (
|
|
10113
|
+
var intResolve = (str2, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2.substring(offset), radix);
|
|
10114
10114
|
function intStringify(node, radix, prefix) {
|
|
10115
10115
|
const { value } = node;
|
|
10116
10116
|
if (intIdentify(value) && value >= 0)
|
|
@@ -10123,7 +10123,7 @@ var require_int = __commonJS({
|
|
|
10123
10123
|
tag: "tag:yaml.org,2002:int",
|
|
10124
10124
|
format: "OCT",
|
|
10125
10125
|
test: /^0o[0-7]+$/,
|
|
10126
|
-
resolve: (
|
|
10126
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 8, opt),
|
|
10127
10127
|
stringify: (node) => intStringify(node, 8, "0o")
|
|
10128
10128
|
};
|
|
10129
10129
|
var int2 = {
|
|
@@ -10131,7 +10131,7 @@ var require_int = __commonJS({
|
|
|
10131
10131
|
default: true,
|
|
10132
10132
|
tag: "tag:yaml.org,2002:int",
|
|
10133
10133
|
test: /^[-+]?[0-9]+$/,
|
|
10134
|
-
resolve: (
|
|
10134
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 0, 10, opt),
|
|
10135
10135
|
stringify: stringifyNumber.stringifyNumber
|
|
10136
10136
|
};
|
|
10137
10137
|
var intHex = {
|
|
@@ -10140,7 +10140,7 @@ var require_int = __commonJS({
|
|
|
10140
10140
|
tag: "tag:yaml.org,2002:int",
|
|
10141
10141
|
format: "HEX",
|
|
10142
10142
|
test: /^0x[0-9a-fA-F]+$/,
|
|
10143
|
-
resolve: (
|
|
10143
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 16, opt),
|
|
10144
10144
|
stringify: (node) => intStringify(node, 16, "0x")
|
|
10145
10145
|
};
|
|
10146
10146
|
exports.int = int2;
|
|
@@ -10193,7 +10193,7 @@ var require_schema3 = __commonJS({
|
|
|
10193
10193
|
identify: (value) => typeof value === "string",
|
|
10194
10194
|
default: true,
|
|
10195
10195
|
tag: "tag:yaml.org,2002:str",
|
|
10196
|
-
resolve: (
|
|
10196
|
+
resolve: (str2) => str2,
|
|
10197
10197
|
stringify: stringifyJSON
|
|
10198
10198
|
},
|
|
10199
10199
|
{
|
|
@@ -10210,7 +10210,7 @@ var require_schema3 = __commonJS({
|
|
|
10210
10210
|
default: true,
|
|
10211
10211
|
tag: "tag:yaml.org,2002:bool",
|
|
10212
10212
|
test: /^true$|^false$/,
|
|
10213
|
-
resolve: (
|
|
10213
|
+
resolve: (str2) => str2 === "true",
|
|
10214
10214
|
stringify: stringifyJSON
|
|
10215
10215
|
},
|
|
10216
10216
|
{
|
|
@@ -10218,7 +10218,7 @@ var require_schema3 = __commonJS({
|
|
|
10218
10218
|
default: true,
|
|
10219
10219
|
tag: "tag:yaml.org,2002:int",
|
|
10220
10220
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
10221
|
-
resolve: (
|
|
10221
|
+
resolve: (str2, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2, 10),
|
|
10222
10222
|
stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value)
|
|
10223
10223
|
},
|
|
10224
10224
|
{
|
|
@@ -10226,7 +10226,7 @@ var require_schema3 = __commonJS({
|
|
|
10226
10226
|
default: true,
|
|
10227
10227
|
tag: "tag:yaml.org,2002:float",
|
|
10228
10228
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
10229
|
-
resolve: (
|
|
10229
|
+
resolve: (str2) => parseFloat(str2),
|
|
10230
10230
|
stringify: stringifyJSON
|
|
10231
10231
|
}
|
|
10232
10232
|
];
|
|
@@ -10234,9 +10234,9 @@ var require_schema3 = __commonJS({
|
|
|
10234
10234
|
default: true,
|
|
10235
10235
|
tag: "",
|
|
10236
10236
|
test: /^/,
|
|
10237
|
-
resolve(
|
|
10238
|
-
onError(`Unresolved plain scalar ${JSON.stringify(
|
|
10239
|
-
return
|
|
10237
|
+
resolve(str2, onError) {
|
|
10238
|
+
onError(`Unresolved plain scalar ${JSON.stringify(str2)}`);
|
|
10239
|
+
return str2;
|
|
10240
10240
|
}
|
|
10241
10241
|
};
|
|
10242
10242
|
var schema = [map.map, seq.seq].concat(jsonScalars, jsonError);
|
|
@@ -10268,10 +10268,10 @@ var require_binary = __commonJS({
|
|
|
10268
10268
|
if (typeof node_buffer.Buffer === "function") {
|
|
10269
10269
|
return node_buffer.Buffer.from(src, "base64");
|
|
10270
10270
|
} else if (typeof atob === "function") {
|
|
10271
|
-
const
|
|
10272
|
-
const buffer = new Uint8Array(
|
|
10273
|
-
for (let i = 0; i <
|
|
10274
|
-
buffer[i] =
|
|
10271
|
+
const str2 = atob(src.replace(/[\n\r]/g, ""));
|
|
10272
|
+
const buffer = new Uint8Array(str2.length);
|
|
10273
|
+
for (let i = 0; i < str2.length; ++i)
|
|
10274
|
+
buffer[i] = str2.charCodeAt(i);
|
|
10275
10275
|
return buffer;
|
|
10276
10276
|
} else {
|
|
10277
10277
|
onError("This environment does not support reading binary tags; either Buffer or atob is required");
|
|
@@ -10282,28 +10282,28 @@ var require_binary = __commonJS({
|
|
|
10282
10282
|
if (!value)
|
|
10283
10283
|
return "";
|
|
10284
10284
|
const buf = value;
|
|
10285
|
-
let
|
|
10285
|
+
let str2;
|
|
10286
10286
|
if (typeof node_buffer.Buffer === "function") {
|
|
10287
|
-
|
|
10287
|
+
str2 = buf instanceof node_buffer.Buffer ? buf.toString("base64") : node_buffer.Buffer.from(buf.buffer).toString("base64");
|
|
10288
10288
|
} else if (typeof btoa === "function") {
|
|
10289
10289
|
let s = "";
|
|
10290
10290
|
for (let i = 0; i < buf.length; ++i)
|
|
10291
10291
|
s += String.fromCharCode(buf[i]);
|
|
10292
|
-
|
|
10292
|
+
str2 = btoa(s);
|
|
10293
10293
|
} else {
|
|
10294
10294
|
throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");
|
|
10295
10295
|
}
|
|
10296
10296
|
type ?? (type = Scalar.Scalar.BLOCK_LITERAL);
|
|
10297
10297
|
if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
|
|
10298
10298
|
const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
|
|
10299
|
-
const n = Math.ceil(
|
|
10299
|
+
const n = Math.ceil(str2.length / lineWidth);
|
|
10300
10300
|
const lines = new Array(n);
|
|
10301
10301
|
for (let i = 0, o = 0; i < n; ++i, o += lineWidth) {
|
|
10302
|
-
lines[i] =
|
|
10302
|
+
lines[i] = str2.substr(o, lineWidth);
|
|
10303
10303
|
}
|
|
10304
|
-
|
|
10304
|
+
str2 = lines.join(type === Scalar.Scalar.BLOCK_LITERAL ? "\n" : " ");
|
|
10305
10305
|
}
|
|
10306
|
-
return stringifyString.stringifyString({ comment, type, value:
|
|
10306
|
+
return stringifyString.stringifyString({ comment, type, value: str2 }, ctx, onComment, onChompKeep);
|
|
10307
10307
|
}
|
|
10308
10308
|
};
|
|
10309
10309
|
exports.binary = binary;
|
|
@@ -10509,7 +10509,7 @@ var require_float2 = __commonJS({
|
|
|
10509
10509
|
default: true,
|
|
10510
10510
|
tag: "tag:yaml.org,2002:float",
|
|
10511
10511
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
10512
|
-
resolve: (
|
|
10512
|
+
resolve: (str2) => str2.slice(-3).toLowerCase() === "nan" ? NaN : str2[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
|
|
10513
10513
|
stringify: stringifyNumber.stringifyNumber
|
|
10514
10514
|
};
|
|
10515
10515
|
var floatExp = {
|
|
@@ -10518,7 +10518,7 @@ var require_float2 = __commonJS({
|
|
|
10518
10518
|
tag: "tag:yaml.org,2002:float",
|
|
10519
10519
|
format: "EXP",
|
|
10520
10520
|
test: /^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,
|
|
10521
|
-
resolve: (
|
|
10521
|
+
resolve: (str2) => parseFloat(str2.replace(/_/g, "")),
|
|
10522
10522
|
stringify(node) {
|
|
10523
10523
|
const num = Number(node.value);
|
|
10524
10524
|
return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
|
|
@@ -10529,11 +10529,11 @@ var require_float2 = __commonJS({
|
|
|
10529
10529
|
default: true,
|
|
10530
10530
|
tag: "tag:yaml.org,2002:float",
|
|
10531
10531
|
test: /^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,
|
|
10532
|
-
resolve(
|
|
10533
|
-
const node = new Scalar.Scalar(parseFloat(
|
|
10534
|
-
const dot =
|
|
10532
|
+
resolve(str2) {
|
|
10533
|
+
const node = new Scalar.Scalar(parseFloat(str2.replace(/_/g, "")));
|
|
10534
|
+
const dot = str2.indexOf(".");
|
|
10535
10535
|
if (dot !== -1) {
|
|
10536
|
-
const f =
|
|
10536
|
+
const f = str2.substring(dot + 1).replace(/_/g, "");
|
|
10537
10537
|
if (f[f.length - 1] === "0")
|
|
10538
10538
|
node.minFractionDigits = f.length;
|
|
10539
10539
|
}
|
|
@@ -10553,34 +10553,34 @@ var require_int2 = __commonJS({
|
|
|
10553
10553
|
"use strict";
|
|
10554
10554
|
var stringifyNumber = require_stringifyNumber();
|
|
10555
10555
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
10556
|
-
function intResolve(
|
|
10557
|
-
const sign =
|
|
10556
|
+
function intResolve(str2, offset, radix, { intAsBigInt }) {
|
|
10557
|
+
const sign = str2[0];
|
|
10558
10558
|
if (sign === "-" || sign === "+")
|
|
10559
10559
|
offset += 1;
|
|
10560
|
-
|
|
10560
|
+
str2 = str2.substring(offset).replace(/_/g, "");
|
|
10561
10561
|
if (intAsBigInt) {
|
|
10562
10562
|
switch (radix) {
|
|
10563
10563
|
case 2:
|
|
10564
|
-
|
|
10564
|
+
str2 = `0b${str2}`;
|
|
10565
10565
|
break;
|
|
10566
10566
|
case 8:
|
|
10567
|
-
|
|
10567
|
+
str2 = `0o${str2}`;
|
|
10568
10568
|
break;
|
|
10569
10569
|
case 16:
|
|
10570
|
-
|
|
10570
|
+
str2 = `0x${str2}`;
|
|
10571
10571
|
break;
|
|
10572
10572
|
}
|
|
10573
|
-
const n2 = BigInt(
|
|
10573
|
+
const n2 = BigInt(str2);
|
|
10574
10574
|
return sign === "-" ? BigInt(-1) * n2 : n2;
|
|
10575
10575
|
}
|
|
10576
|
-
const n = parseInt(
|
|
10576
|
+
const n = parseInt(str2, radix);
|
|
10577
10577
|
return sign === "-" ? -1 * n : n;
|
|
10578
10578
|
}
|
|
10579
10579
|
function intStringify(node, radix, prefix) {
|
|
10580
10580
|
const { value } = node;
|
|
10581
10581
|
if (intIdentify(value)) {
|
|
10582
|
-
const
|
|
10583
|
-
return value < 0 ? "-" + prefix +
|
|
10582
|
+
const str2 = value.toString(radix);
|
|
10583
|
+
return value < 0 ? "-" + prefix + str2.substr(1) : prefix + str2;
|
|
10584
10584
|
}
|
|
10585
10585
|
return stringifyNumber.stringifyNumber(node);
|
|
10586
10586
|
}
|
|
@@ -10590,7 +10590,7 @@ var require_int2 = __commonJS({
|
|
|
10590
10590
|
tag: "tag:yaml.org,2002:int",
|
|
10591
10591
|
format: "BIN",
|
|
10592
10592
|
test: /^[-+]?0b[0-1_]+$/,
|
|
10593
|
-
resolve: (
|
|
10593
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 2, opt),
|
|
10594
10594
|
stringify: (node) => intStringify(node, 2, "0b")
|
|
10595
10595
|
};
|
|
10596
10596
|
var intOct = {
|
|
@@ -10599,7 +10599,7 @@ var require_int2 = __commonJS({
|
|
|
10599
10599
|
tag: "tag:yaml.org,2002:int",
|
|
10600
10600
|
format: "OCT",
|
|
10601
10601
|
test: /^[-+]?0[0-7_]+$/,
|
|
10602
|
-
resolve: (
|
|
10602
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 1, 8, opt),
|
|
10603
10603
|
stringify: (node) => intStringify(node, 8, "0")
|
|
10604
10604
|
};
|
|
10605
10605
|
var int2 = {
|
|
@@ -10607,7 +10607,7 @@ var require_int2 = __commonJS({
|
|
|
10607
10607
|
default: true,
|
|
10608
10608
|
tag: "tag:yaml.org,2002:int",
|
|
10609
10609
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
10610
|
-
resolve: (
|
|
10610
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 0, 10, opt),
|
|
10611
10611
|
stringify: stringifyNumber.stringifyNumber
|
|
10612
10612
|
};
|
|
10613
10613
|
var intHex = {
|
|
@@ -10616,7 +10616,7 @@ var require_int2 = __commonJS({
|
|
|
10616
10616
|
tag: "tag:yaml.org,2002:int",
|
|
10617
10617
|
format: "HEX",
|
|
10618
10618
|
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
|
10619
|
-
resolve: (
|
|
10619
|
+
resolve: (str2, _onError, opt) => intResolve(str2, 2, 16, opt),
|
|
10620
10620
|
stringify: (node) => intStringify(node, 16, "0x")
|
|
10621
10621
|
};
|
|
10622
10622
|
exports.int = int2;
|
|
@@ -10720,9 +10720,9 @@ var require_timestamp = __commonJS({
|
|
|
10720
10720
|
"../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
10721
10721
|
"use strict";
|
|
10722
10722
|
var stringifyNumber = require_stringifyNumber();
|
|
10723
|
-
function parseSexagesimal(
|
|
10724
|
-
const sign =
|
|
10725
|
-
const parts = sign === "-" || sign === "+" ?
|
|
10723
|
+
function parseSexagesimal(str2, asBigInt) {
|
|
10724
|
+
const sign = str2[0];
|
|
10725
|
+
const parts = sign === "-" || sign === "+" ? str2.substring(1) : str2;
|
|
10726
10726
|
const num = (n) => asBigInt ? BigInt(n) : Number(n);
|
|
10727
10727
|
const res = parts.replace(/_/g, "").split(":").reduce((res2, p2) => res2 * num(60) + num(p2), num(0));
|
|
10728
10728
|
return sign === "-" ? num(-1) * res : res;
|
|
@@ -10759,7 +10759,7 @@ var require_timestamp = __commonJS({
|
|
|
10759
10759
|
tag: "tag:yaml.org,2002:int",
|
|
10760
10760
|
format: "TIME",
|
|
10761
10761
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
|
|
10762
|
-
resolve: (
|
|
10762
|
+
resolve: (str2, _onError, { intAsBigInt }) => parseSexagesimal(str2, intAsBigInt),
|
|
10763
10763
|
stringify: stringifySexagesimal
|
|
10764
10764
|
};
|
|
10765
10765
|
var floatTime = {
|
|
@@ -10768,7 +10768,7 @@ var require_timestamp = __commonJS({
|
|
|
10768
10768
|
tag: "tag:yaml.org,2002:float",
|
|
10769
10769
|
format: "TIME",
|
|
10770
10770
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
|
|
10771
|
-
resolve: (
|
|
10771
|
+
resolve: (str2) => parseSexagesimal(str2, false),
|
|
10772
10772
|
stringify: stringifySexagesimal
|
|
10773
10773
|
};
|
|
10774
10774
|
var timestamp = {
|
|
@@ -10779,8 +10779,8 @@ var require_timestamp = __commonJS({
|
|
|
10779
10779
|
// may be omitted altogether, resulting in a date format. In such a case, the time part is
|
|
10780
10780
|
// assumed to be 00:00:00Z (start of day, UTC).
|
|
10781
10781
|
test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
|
|
10782
|
-
resolve(
|
|
10783
|
-
const match =
|
|
10782
|
+
resolve(str2) {
|
|
10783
|
+
const match = str2.match(timestamp.test);
|
|
10784
10784
|
if (!match)
|
|
10785
10785
|
throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
|
|
10786
10786
|
const [, year, month, day, hour, minute, second] = match.map(Number);
|
|
@@ -15200,11 +15200,11 @@ var require_lib = __commonJS({
|
|
|
15200
15200
|
}
|
|
15201
15201
|
_exports.without = without;
|
|
15202
15202
|
function repeat(char_, n) {
|
|
15203
|
-
var
|
|
15203
|
+
var str2 = "";
|
|
15204
15204
|
for (var i = 0; i < n; i++) {
|
|
15205
|
-
|
|
15205
|
+
str2 += char_;
|
|
15206
15206
|
}
|
|
15207
|
-
return
|
|
15207
|
+
return str2;
|
|
15208
15208
|
}
|
|
15209
15209
|
_exports.repeat = repeat;
|
|
15210
15210
|
function each(obj, func, context) {
|
|
@@ -15547,10 +15547,10 @@ var require_lexer2 = __commonJS({
|
|
|
15547
15547
|
};
|
|
15548
15548
|
}
|
|
15549
15549
|
var Tokenizer = /* @__PURE__ */ (function() {
|
|
15550
|
-
function Tokenizer2(
|
|
15551
|
-
this.str =
|
|
15550
|
+
function Tokenizer2(str2, opts) {
|
|
15551
|
+
this.str = str2;
|
|
15552
15552
|
this.index = 0;
|
|
15553
|
-
this.len =
|
|
15553
|
+
this.len = str2.length;
|
|
15554
15554
|
this.lineno = 0;
|
|
15555
15555
|
this.colno = 0;
|
|
15556
15556
|
this.in_code = false;
|
|
@@ -15748,44 +15748,44 @@ var require_lexer2 = __commonJS({
|
|
|
15748
15748
|
};
|
|
15749
15749
|
_proto._parseString = function _parseString(delimiter) {
|
|
15750
15750
|
this.forward();
|
|
15751
|
-
var
|
|
15751
|
+
var str2 = "";
|
|
15752
15752
|
while (!this.isFinished() && this.current() !== delimiter) {
|
|
15753
15753
|
var cur = this.current();
|
|
15754
15754
|
if (cur === "\\") {
|
|
15755
15755
|
this.forward();
|
|
15756
15756
|
switch (this.current()) {
|
|
15757
15757
|
case "n":
|
|
15758
|
-
|
|
15758
|
+
str2 += "\n";
|
|
15759
15759
|
break;
|
|
15760
15760
|
case "t":
|
|
15761
|
-
|
|
15761
|
+
str2 += " ";
|
|
15762
15762
|
break;
|
|
15763
15763
|
case "r":
|
|
15764
|
-
|
|
15764
|
+
str2 += "\r";
|
|
15765
15765
|
break;
|
|
15766
15766
|
default:
|
|
15767
|
-
|
|
15767
|
+
str2 += this.current();
|
|
15768
15768
|
}
|
|
15769
15769
|
this.forward();
|
|
15770
15770
|
} else {
|
|
15771
|
-
|
|
15771
|
+
str2 += cur;
|
|
15772
15772
|
this.forward();
|
|
15773
15773
|
}
|
|
15774
15774
|
}
|
|
15775
15775
|
this.forward();
|
|
15776
|
-
return
|
|
15776
|
+
return str2;
|
|
15777
15777
|
};
|
|
15778
|
-
_proto._matches = function _matches(
|
|
15779
|
-
if (this.index +
|
|
15778
|
+
_proto._matches = function _matches(str2) {
|
|
15779
|
+
if (this.index + str2.length > this.len) {
|
|
15780
15780
|
return null;
|
|
15781
15781
|
}
|
|
15782
|
-
var m = this.str.slice(this.index, this.index +
|
|
15783
|
-
return m ===
|
|
15782
|
+
var m = this.str.slice(this.index, this.index + str2.length);
|
|
15783
|
+
return m === str2;
|
|
15784
15784
|
};
|
|
15785
|
-
_proto._extractString = function _extractString(
|
|
15786
|
-
if (this._matches(
|
|
15787
|
-
this.forwardN(
|
|
15788
|
-
return
|
|
15785
|
+
_proto._extractString = function _extractString(str2) {
|
|
15786
|
+
if (this._matches(str2)) {
|
|
15787
|
+
this.forwardN(str2.length);
|
|
15788
|
+
return str2;
|
|
15789
15789
|
}
|
|
15790
15790
|
return null;
|
|
15791
15791
|
};
|
|
@@ -16312,8 +16312,8 @@ var require_nodes = __commonJS({
|
|
|
16312
16312
|
fields: ["extName", "prop", "args", "contentArgs"]
|
|
16313
16313
|
});
|
|
16314
16314
|
var CallExtensionAsync = CallExtension.extend("CallExtensionAsync");
|
|
16315
|
-
function print(
|
|
16316
|
-
var lines =
|
|
16315
|
+
function print(str2, indent, inline) {
|
|
16316
|
+
var lines = str2.split("\n");
|
|
16317
16317
|
lines.forEach(function(line, i) {
|
|
16318
16318
|
if (line && (inline && i > 0 || !inline)) {
|
|
16319
16319
|
process.stdout.write(" ".repeat(indent));
|
|
@@ -16908,7 +16908,7 @@ var require_parser2 = __commonJS({
|
|
|
16908
16908
|
var endTagName = "end" + tagName;
|
|
16909
16909
|
var rawBlockRegex = new RegExp("([\\s\\S]*?){%\\s*(" + tagName + "|" + endTagName + ")\\s*(?=%})%}");
|
|
16910
16910
|
var rawLevel = 1;
|
|
16911
|
-
var
|
|
16911
|
+
var str2 = "";
|
|
16912
16912
|
var matches = null;
|
|
16913
16913
|
var begun = this.advanceAfterBlockEnd();
|
|
16914
16914
|
while ((matches = this.tokens._extractRegex(rawBlockRegex)) && rawLevel > 0) {
|
|
@@ -16921,13 +16921,13 @@ var require_parser2 = __commonJS({
|
|
|
16921
16921
|
rawLevel -= 1;
|
|
16922
16922
|
}
|
|
16923
16923
|
if (rawLevel === 0) {
|
|
16924
|
-
|
|
16924
|
+
str2 += pre;
|
|
16925
16925
|
this.tokens.backN(all.length - pre.length);
|
|
16926
16926
|
} else {
|
|
16927
|
-
|
|
16927
|
+
str2 += all;
|
|
16928
16928
|
}
|
|
16929
16929
|
}
|
|
16930
|
-
return new nodes.Output(begun.lineno, begun.colno, [new nodes.TemplateData(begun.lineno, begun.colno,
|
|
16930
|
+
return new nodes.Output(begun.lineno, begun.colno, [new nodes.TemplateData(begun.lineno, begun.colno, str2)]);
|
|
16931
16931
|
};
|
|
16932
16932
|
_proto.parsePostfix = function parsePostfix(node) {
|
|
16933
16933
|
var lookup;
|
|
@@ -18143,9 +18143,9 @@ var require_compiler = __commonJS({
|
|
|
18143
18143
|
}
|
|
18144
18144
|
this._emit(") === true");
|
|
18145
18145
|
};
|
|
18146
|
-
_proto._binOpEmitter = function _binOpEmitter(node, frame,
|
|
18146
|
+
_proto._binOpEmitter = function _binOpEmitter(node, frame, str2) {
|
|
18147
18147
|
this.compile(node.left, frame);
|
|
18148
|
-
this._emit(
|
|
18148
|
+
this._emit(str2);
|
|
18149
18149
|
this.compile(node.right, frame);
|
|
18150
18150
|
};
|
|
18151
18151
|
_proto.compileOr = function compileOr(node, frame) {
|
|
@@ -18827,22 +18827,22 @@ var require_filters = __commonJS({
|
|
|
18827
18827
|
return res;
|
|
18828
18828
|
}
|
|
18829
18829
|
_exports.batch = batch;
|
|
18830
|
-
function capitalize(
|
|
18831
|
-
|
|
18832
|
-
var ret =
|
|
18833
|
-
return r.copySafeness(
|
|
18830
|
+
function capitalize(str2) {
|
|
18831
|
+
str2 = normalize(str2, "");
|
|
18832
|
+
var ret = str2.toLowerCase();
|
|
18833
|
+
return r.copySafeness(str2, ret.charAt(0).toUpperCase() + ret.slice(1));
|
|
18834
18834
|
}
|
|
18835
18835
|
_exports.capitalize = capitalize;
|
|
18836
|
-
function center(
|
|
18837
|
-
|
|
18836
|
+
function center(str2, width) {
|
|
18837
|
+
str2 = normalize(str2, "");
|
|
18838
18838
|
width = width || 80;
|
|
18839
|
-
if (
|
|
18840
|
-
return
|
|
18839
|
+
if (str2.length >= width) {
|
|
18840
|
+
return str2;
|
|
18841
18841
|
}
|
|
18842
|
-
var spaces = width -
|
|
18842
|
+
var spaces = width - str2.length;
|
|
18843
18843
|
var pre = lib.repeat(" ", spaces / 2 - spaces % 2);
|
|
18844
18844
|
var post = lib.repeat(" ", spaces / 2);
|
|
18845
|
-
return r.copySafeness(
|
|
18845
|
+
return r.copySafeness(str2, pre + str2 + post);
|
|
18846
18846
|
}
|
|
18847
18847
|
_exports.center = center;
|
|
18848
18848
|
function default_(val, def, bool) {
|
|
@@ -18889,47 +18889,47 @@ var require_filters = __commonJS({
|
|
|
18889
18889
|
return JSON.stringify(obj, null, spaces);
|
|
18890
18890
|
}
|
|
18891
18891
|
_exports.dump = dump;
|
|
18892
|
-
function escape2(
|
|
18893
|
-
if (
|
|
18894
|
-
return
|
|
18892
|
+
function escape2(str2) {
|
|
18893
|
+
if (str2 instanceof r.SafeString) {
|
|
18894
|
+
return str2;
|
|
18895
18895
|
}
|
|
18896
|
-
|
|
18897
|
-
return r.markSafe(lib.escape(
|
|
18896
|
+
str2 = str2 === null || str2 === void 0 ? "" : str2;
|
|
18897
|
+
return r.markSafe(lib.escape(str2.toString()));
|
|
18898
18898
|
}
|
|
18899
18899
|
_exports.escape = escape2;
|
|
18900
|
-
function safe(
|
|
18901
|
-
if (
|
|
18902
|
-
return
|
|
18900
|
+
function safe(str2) {
|
|
18901
|
+
if (str2 instanceof r.SafeString) {
|
|
18902
|
+
return str2;
|
|
18903
18903
|
}
|
|
18904
|
-
|
|
18905
|
-
return r.markSafe(
|
|
18904
|
+
str2 = str2 === null || str2 === void 0 ? "" : str2;
|
|
18905
|
+
return r.markSafe(str2.toString());
|
|
18906
18906
|
}
|
|
18907
18907
|
_exports.safe = safe;
|
|
18908
18908
|
function first(arr) {
|
|
18909
18909
|
return arr[0];
|
|
18910
18910
|
}
|
|
18911
18911
|
_exports.first = first;
|
|
18912
|
-
function forceescape(
|
|
18913
|
-
|
|
18914
|
-
return r.markSafe(lib.escape(
|
|
18912
|
+
function forceescape(str2) {
|
|
18913
|
+
str2 = str2 === null || str2 === void 0 ? "" : str2;
|
|
18914
|
+
return r.markSafe(lib.escape(str2.toString()));
|
|
18915
18915
|
}
|
|
18916
18916
|
_exports.forceescape = forceescape;
|
|
18917
18917
|
function groupby(arr, attr) {
|
|
18918
18918
|
return lib.groupBy(arr, attr, this.env.opts.throwOnUndefined);
|
|
18919
18919
|
}
|
|
18920
18920
|
_exports.groupby = groupby;
|
|
18921
|
-
function indent(
|
|
18922
|
-
|
|
18923
|
-
if (
|
|
18921
|
+
function indent(str2, width, indentfirst) {
|
|
18922
|
+
str2 = normalize(str2, "");
|
|
18923
|
+
if (str2 === "") {
|
|
18924
18924
|
return "";
|
|
18925
18925
|
}
|
|
18926
18926
|
width = width || 4;
|
|
18927
|
-
var lines =
|
|
18927
|
+
var lines = str2.split("\n");
|
|
18928
18928
|
var sp = lib.repeat(" ", width);
|
|
18929
18929
|
var res = lines.map(function(l, i) {
|
|
18930
18930
|
return i === 0 && !indentfirst ? l : "" + sp + l;
|
|
18931
18931
|
}).join("\n");
|
|
18932
|
-
return r.copySafeness(
|
|
18932
|
+
return r.copySafeness(str2, res);
|
|
18933
18933
|
}
|
|
18934
18934
|
_exports.indent = indent;
|
|
18935
18935
|
function join21(arr, del, attr) {
|
|
@@ -18978,16 +18978,16 @@ var require_filters = __commonJS({
|
|
|
18978
18978
|
}
|
|
18979
18979
|
}
|
|
18980
18980
|
_exports.list = list;
|
|
18981
|
-
function lower(
|
|
18982
|
-
|
|
18983
|
-
return
|
|
18981
|
+
function lower(str2) {
|
|
18982
|
+
str2 = normalize(str2, "");
|
|
18983
|
+
return str2.toLowerCase();
|
|
18984
18984
|
}
|
|
18985
18985
|
_exports.lower = lower;
|
|
18986
|
-
function nl2br(
|
|
18987
|
-
if (
|
|
18986
|
+
function nl2br(str2) {
|
|
18987
|
+
if (str2 === null || str2 === void 0) {
|
|
18988
18988
|
return "";
|
|
18989
18989
|
}
|
|
18990
|
-
return r.copySafeness(
|
|
18990
|
+
return r.copySafeness(str2, str2.replace(/\r\n|\n/g, "<br />\n"));
|
|
18991
18991
|
}
|
|
18992
18992
|
_exports.nl2br = nl2br;
|
|
18993
18993
|
function random(arr) {
|
|
@@ -19021,10 +19021,10 @@ var require_filters = __commonJS({
|
|
|
19021
19021
|
});
|
|
19022
19022
|
}
|
|
19023
19023
|
_exports.selectattr = selectattr;
|
|
19024
|
-
function replace(
|
|
19025
|
-
var originalStr =
|
|
19024
|
+
function replace(str2, old, new_, maxCount) {
|
|
19025
|
+
var originalStr = str2;
|
|
19026
19026
|
if (old instanceof RegExp) {
|
|
19027
|
-
return
|
|
19027
|
+
return str2.replace(old, new_);
|
|
19028
19028
|
}
|
|
19029
19029
|
if (typeof maxCount === "undefined") {
|
|
19030
19030
|
maxCount = -1;
|
|
@@ -19033,32 +19033,32 @@ var require_filters = __commonJS({
|
|
|
19033
19033
|
if (typeof old === "number") {
|
|
19034
19034
|
old = "" + old;
|
|
19035
19035
|
} else if (typeof old !== "string") {
|
|
19036
|
-
return
|
|
19036
|
+
return str2;
|
|
19037
19037
|
}
|
|
19038
|
-
if (typeof
|
|
19039
|
-
|
|
19038
|
+
if (typeof str2 === "number") {
|
|
19039
|
+
str2 = "" + str2;
|
|
19040
19040
|
}
|
|
19041
|
-
if (typeof
|
|
19042
|
-
return
|
|
19041
|
+
if (typeof str2 !== "string" && !(str2 instanceof r.SafeString)) {
|
|
19042
|
+
return str2;
|
|
19043
19043
|
}
|
|
19044
19044
|
if (old === "") {
|
|
19045
|
-
res = new_ +
|
|
19046
|
-
return r.copySafeness(
|
|
19045
|
+
res = new_ + str2.split("").join(new_) + new_;
|
|
19046
|
+
return r.copySafeness(str2, res);
|
|
19047
19047
|
}
|
|
19048
|
-
var nextIndex =
|
|
19048
|
+
var nextIndex = str2.indexOf(old);
|
|
19049
19049
|
if (maxCount === 0 || nextIndex === -1) {
|
|
19050
|
-
return
|
|
19050
|
+
return str2;
|
|
19051
19051
|
}
|
|
19052
19052
|
var pos = 0;
|
|
19053
19053
|
var count = 0;
|
|
19054
19054
|
while (nextIndex > -1 && (maxCount === -1 || count < maxCount)) {
|
|
19055
|
-
res +=
|
|
19055
|
+
res += str2.substring(pos, nextIndex) + new_;
|
|
19056
19056
|
pos = nextIndex + old.length;
|
|
19057
19057
|
count++;
|
|
19058
|
-
nextIndex =
|
|
19058
|
+
nextIndex = str2.indexOf(old, pos);
|
|
19059
19059
|
}
|
|
19060
|
-
if (pos <
|
|
19061
|
-
res +=
|
|
19060
|
+
if (pos < str2.length) {
|
|
19061
|
+
res += str2.substring(pos);
|
|
19062
19062
|
}
|
|
19063
19063
|
return r.copySafeness(originalStr, res);
|
|
19064
19064
|
}
|
|
@@ -19170,16 +19170,16 @@ var require_filters = __commonJS({
|
|
|
19170
19170
|
return r.copySafeness(input, res);
|
|
19171
19171
|
}
|
|
19172
19172
|
_exports.striptags = striptags;
|
|
19173
|
-
function title(
|
|
19174
|
-
|
|
19175
|
-
var words =
|
|
19173
|
+
function title(str2) {
|
|
19174
|
+
str2 = normalize(str2, "");
|
|
19175
|
+
var words = str2.split(" ").map(function(word) {
|
|
19176
19176
|
return capitalize(word);
|
|
19177
19177
|
});
|
|
19178
|
-
return r.copySafeness(
|
|
19178
|
+
return r.copySafeness(str2, words.join(" "));
|
|
19179
19179
|
}
|
|
19180
19180
|
_exports.title = title;
|
|
19181
|
-
function trim(
|
|
19182
|
-
return r.copySafeness(
|
|
19181
|
+
function trim(str2) {
|
|
19182
|
+
return r.copySafeness(str2, str2.replace(/^\s*|\s*$/g, ""));
|
|
19183
19183
|
}
|
|
19184
19184
|
_exports.trim = trim;
|
|
19185
19185
|
function truncate(input, length, killwords, end) {
|
|
@@ -19202,9 +19202,9 @@ var require_filters = __commonJS({
|
|
|
19202
19202
|
return r.copySafeness(orig, input);
|
|
19203
19203
|
}
|
|
19204
19204
|
_exports.truncate = truncate;
|
|
19205
|
-
function upper(
|
|
19206
|
-
|
|
19207
|
-
return
|
|
19205
|
+
function upper(str2) {
|
|
19206
|
+
str2 = normalize(str2, "");
|
|
19207
|
+
return str2.toUpperCase();
|
|
19208
19208
|
}
|
|
19209
19209
|
_exports.upper = upper;
|
|
19210
19210
|
function urlencode(obj) {
|
|
@@ -19225,12 +19225,12 @@ var require_filters = __commonJS({
|
|
|
19225
19225
|
var httpHttpsRe = /^https?:\/\/.*$/;
|
|
19226
19226
|
var wwwRe = /^www\./;
|
|
19227
19227
|
var tldRe = /\.(?:org|net|com)(?:\:|\/|$)/;
|
|
19228
|
-
function urlize(
|
|
19228
|
+
function urlize(str2, length, nofollow) {
|
|
19229
19229
|
if (isNaN2(length)) {
|
|
19230
19230
|
length = Infinity;
|
|
19231
19231
|
}
|
|
19232
19232
|
var noFollowAttr = nofollow === true ? ' rel="nofollow"' : "";
|
|
19233
|
-
var words =
|
|
19233
|
+
var words = str2.split(/(\s+)/).filter(function(word) {
|
|
19234
19234
|
return word && word.length;
|
|
19235
19235
|
}).map(function(word) {
|
|
19236
19236
|
var matches = word.match(puncRe);
|
|
@@ -19253,9 +19253,9 @@ var require_filters = __commonJS({
|
|
|
19253
19253
|
return words.join("");
|
|
19254
19254
|
}
|
|
19255
19255
|
_exports.urlize = urlize;
|
|
19256
|
-
function wordcount(
|
|
19257
|
-
|
|
19258
|
-
var words =
|
|
19256
|
+
function wordcount(str2) {
|
|
19257
|
+
str2 = normalize(str2, "");
|
|
19258
|
+
var words = str2 ? str2.match(/\w+/g) : null;
|
|
19259
19259
|
return words ? words.length : null;
|
|
19260
19260
|
}
|
|
19261
19261
|
_exports.wordcount = wordcount;
|
|
@@ -20457,18 +20457,18 @@ var require_chokidar = __commonJS({
|
|
|
20457
20457
|
return paths.map(normalizePathToUnix);
|
|
20458
20458
|
};
|
|
20459
20459
|
var toUnix = (string3) => {
|
|
20460
|
-
let
|
|
20460
|
+
let str2 = string3.replace(BACK_SLASH_RE, SLASH);
|
|
20461
20461
|
let prepend = false;
|
|
20462
|
-
if (
|
|
20462
|
+
if (str2.startsWith(SLASH_SLASH)) {
|
|
20463
20463
|
prepend = true;
|
|
20464
20464
|
}
|
|
20465
|
-
while (
|
|
20466
|
-
|
|
20465
|
+
while (str2.match(DOUBLE_SLASH_RE)) {
|
|
20466
|
+
str2 = str2.replace(DOUBLE_SLASH_RE, SLASH);
|
|
20467
20467
|
}
|
|
20468
20468
|
if (prepend) {
|
|
20469
|
-
|
|
20469
|
+
str2 = SLASH + str2;
|
|
20470
20470
|
}
|
|
20471
|
-
return
|
|
20471
|
+
return str2;
|
|
20472
20472
|
};
|
|
20473
20473
|
var normalizePathToUnix = (path) => toUnix(sysPath.normalize(toUnix(path)));
|
|
20474
20474
|
var normalizeIgnored = (cwd = "") => (path) => {
|
|
@@ -21989,7 +21989,7 @@ var require_precompile = __commonJS({
|
|
|
21989
21989
|
return filename.match(pattern);
|
|
21990
21990
|
});
|
|
21991
21991
|
}
|
|
21992
|
-
function precompileString(
|
|
21992
|
+
function precompileString(str2, opts) {
|
|
21993
21993
|
opts = opts || {};
|
|
21994
21994
|
opts.isString = true;
|
|
21995
21995
|
var env2 = opts.env || new Environment([]);
|
|
@@ -21997,7 +21997,7 @@ var require_precompile = __commonJS({
|
|
|
21997
21997
|
if (!opts.name) {
|
|
21998
21998
|
throw new Error('the "name" option is required when compiling a string');
|
|
21999
21999
|
}
|
|
22000
|
-
return wrapper([_precompile(
|
|
22000
|
+
return wrapper([_precompile(str2, opts.name, env2)], opts);
|
|
22001
22001
|
}
|
|
22002
22002
|
function precompile(input, opts) {
|
|
22003
22003
|
opts = opts || {};
|
|
@@ -22043,14 +22043,14 @@ var require_precompile = __commonJS({
|
|
|
22043
22043
|
}
|
|
22044
22044
|
return wrapper(precompiled, opts);
|
|
22045
22045
|
}
|
|
22046
|
-
function _precompile(
|
|
22046
|
+
function _precompile(str2, name, env2) {
|
|
22047
22047
|
env2 = env2 || new Environment([]);
|
|
22048
22048
|
var asyncFilters = env2.asyncFilters;
|
|
22049
22049
|
var extensions = env2.extensionsList;
|
|
22050
22050
|
var template;
|
|
22051
22051
|
name = name.replace(/\\/g, "/");
|
|
22052
22052
|
try {
|
|
22053
|
-
template = compiler.compile(
|
|
22053
|
+
template = compiler.compile(str2, asyncFilters, extensions, name, env2.opts);
|
|
22054
22054
|
} catch (err) {
|
|
22055
22055
|
throw _prettifyError(name, false, err);
|
|
22056
22056
|
}
|
|
@@ -23575,14 +23575,14 @@ function promiseAllObject(promisesObj) {
|
|
|
23575
23575
|
}
|
|
23576
23576
|
function randomString(length = 10) {
|
|
23577
23577
|
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
23578
|
-
let
|
|
23578
|
+
let str2 = "";
|
|
23579
23579
|
for (let i = 0; i < length; i++) {
|
|
23580
|
-
|
|
23580
|
+
str2 += chars[Math.floor(Math.random() * chars.length)];
|
|
23581
23581
|
}
|
|
23582
|
-
return
|
|
23582
|
+
return str2;
|
|
23583
23583
|
}
|
|
23584
|
-
function esc(
|
|
23585
|
-
return JSON.stringify(
|
|
23584
|
+
function esc(str2) {
|
|
23585
|
+
return JSON.stringify(str2);
|
|
23586
23586
|
}
|
|
23587
23587
|
var captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {
|
|
23588
23588
|
};
|
|
@@ -23670,8 +23670,8 @@ var getParsedType = (data) => {
|
|
|
23670
23670
|
};
|
|
23671
23671
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
23672
23672
|
var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
23673
|
-
function escapeRegex(
|
|
23674
|
-
return
|
|
23673
|
+
function escapeRegex(str2) {
|
|
23674
|
+
return str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
23675
23675
|
}
|
|
23676
23676
|
function clone(inst, def, params) {
|
|
23677
23677
|
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
@@ -37179,7 +37179,26 @@ var FLAG_REGISTRY = [
|
|
|
37179
37179
|
// Migration override (ADR-0022): the pre-flags env gate stays the
|
|
37180
37180
|
// highest-precedence operator override so a host already running with
|
|
37181
37181
|
// AGT_RESUME_RECONCILER_ENABLED set keeps that value until the env is retired.
|
|
37182
|
-
envVar: "AGT_RESUME_RECONCILER_ENABLED"
|
|
37182
|
+
envVar: "AGT_RESUME_RECONCILER_ENABLED",
|
|
37183
|
+
// ENG-10036: bisected from the PUBLISHED agt-cli dists, same method as its
|
|
37184
|
+
// sibling `auto-resume-enabled` (ENG-10034). Taken out of that ticket's
|
|
37185
|
+
// grandfather list rather than deferred with the other 20, because the
|
|
37186
|
+
// arming decision for this flag is live this week and a `since` that is
|
|
37187
|
+
// merely RECORDED as missing is still missing at the moment somebody reads
|
|
37188
|
+
// the flip-reach modal.
|
|
37189
|
+
//
|
|
37190
|
+
// AND THIS ONE IS WHY THE PROBE MATTERS. Bisecting on the module symbols
|
|
37191
|
+
// gives the WRONG release, and plausibly so:
|
|
37192
|
+
//
|
|
37193
|
+
// 0.28.19 2026-06-12T05:35:32Z decideResumeReconcile ✓ readResumeReconcilerConfig ✓ AGT_RESUME_RECONCILER_ENABLED ✓ 'resume-reconciler' ✗
|
|
37194
|
+
// 0.28.20 2026-06-12T06:17:28Z decideResumeReconcile ✓ readResumeReconcilerConfig ✓ AGT_RESUME_RECONCILER_ENABLED ✓ 'resume-reconciler' ✓
|
|
37195
|
+
//
|
|
37196
|
+
// ENG-6383 shipped the decision and the env gate; ENG-6395 promoted it to a
|
|
37197
|
+
// registry key 42 minutes later. A host on 0.28.19 honours the ENV VAR and
|
|
37198
|
+
// cannot read the FLAG, so `since: '0.28.19'` would report reach onto hosts
|
|
37199
|
+
// a registry flip cannot touch — the precise defect `since` exists to
|
|
37200
|
+
// prevent. The flag KEY is the only honest discriminator.
|
|
37201
|
+
since: "0.28.20"
|
|
37183
37202
|
},
|
|
37184
37203
|
{
|
|
37185
37204
|
key: "auto-resume-enabled",
|
|
@@ -39832,6 +39851,71 @@ var SLACK_EGRESS_TOOLS = /* @__PURE__ */ new Set([
|
|
|
39832
39851
|
"slack.update"
|
|
39833
39852
|
]);
|
|
39834
39853
|
|
|
39854
|
+
// src/slack-egress-target.ts
|
|
39855
|
+
var SLACK_EGRESS_COORDS = {
|
|
39856
|
+
// The documented shape is inbound_id + text; coords are the legacy path.
|
|
39857
|
+
"slack.reply": { inboundId: ["inbound_id"], thread: ["thread_ts"], message: ["message_ts"] },
|
|
39858
|
+
// required: channel, timestamp, emoji — `timestamp` names the reacted message.
|
|
39859
|
+
"slack.react": { message: ["timestamp"] },
|
|
39860
|
+
"slack.send_structured": { thread: ["thread_ts"], message: ["message_ts"] },
|
|
39861
|
+
"slack.ask_user": { thread: ["thread_ts"] },
|
|
39862
|
+
"slack.upload_file": { thread: ["thread_ts"] },
|
|
39863
|
+
// required: channel, ts, text — `ts` names the message being edited.
|
|
39864
|
+
"slack.update": { message: ["ts"] }
|
|
39865
|
+
};
|
|
39866
|
+
function str(v) {
|
|
39867
|
+
return typeof v === "string" && v.length > 0 ? v : void 0;
|
|
39868
|
+
}
|
|
39869
|
+
function resolveEgressTargets(toolName, args, registry2) {
|
|
39870
|
+
const spec = SLACK_EGRESS_COORDS[toolName];
|
|
39871
|
+
if (!spec) return [];
|
|
39872
|
+
const a = args ?? {};
|
|
39873
|
+
const argChannel = str(a.channel);
|
|
39874
|
+
const out = [];
|
|
39875
|
+
const seen = /* @__PURE__ */ new Set();
|
|
39876
|
+
const push = (channel, threadTs) => {
|
|
39877
|
+
if (!channel || !threadTs) return;
|
|
39878
|
+
const k = `${channel}:${threadTs}`;
|
|
39879
|
+
if (seen.has(k)) return;
|
|
39880
|
+
seen.add(k);
|
|
39881
|
+
out.push({ channel, threadTs });
|
|
39882
|
+
};
|
|
39883
|
+
for (const field of spec.inboundId ?? []) {
|
|
39884
|
+
const id = str(a[field]);
|
|
39885
|
+
if (!id || !registry2) continue;
|
|
39886
|
+
let known = null;
|
|
39887
|
+
try {
|
|
39888
|
+
known = registry2.byInboundId(id);
|
|
39889
|
+
} catch {
|
|
39890
|
+
known = null;
|
|
39891
|
+
}
|
|
39892
|
+
if (known) push(known.channel, known.threadTs);
|
|
39893
|
+
}
|
|
39894
|
+
for (const field of spec.thread ?? []) {
|
|
39895
|
+
push(argChannel, str(a[field]));
|
|
39896
|
+
}
|
|
39897
|
+
for (const field of spec.message ?? []) {
|
|
39898
|
+
const ts = str(a[field]);
|
|
39899
|
+
if (!ts) continue;
|
|
39900
|
+
push(argChannel, ts);
|
|
39901
|
+
if (!argChannel || !registry2) continue;
|
|
39902
|
+
let known = null;
|
|
39903
|
+
try {
|
|
39904
|
+
known = registry2.byCoords(argChannel, ts);
|
|
39905
|
+
} catch {
|
|
39906
|
+
known = null;
|
|
39907
|
+
}
|
|
39908
|
+
if (known) push(known.channel, known.threadTs);
|
|
39909
|
+
}
|
|
39910
|
+
return out;
|
|
39911
|
+
}
|
|
39912
|
+
function shouldRefuseEgress(input) {
|
|
39913
|
+
const { toolName, args, isEgressTool, inbound, ingressOnly } = input;
|
|
39914
|
+
if (!isEgressTool(toolName)) return false;
|
|
39915
|
+
const targets = resolveEgressTargets(toolName, args, inbound);
|
|
39916
|
+
return targets.some((t) => ingressOnly.isIngressOnly(t.channel, t.threadTs));
|
|
39917
|
+
}
|
|
39918
|
+
|
|
39835
39919
|
// ../core/dist/channels/governance/slack-ingress-only-threads.js
|
|
39836
39920
|
function buildIngressThreadKey(channel, threadTs) {
|
|
39837
39921
|
if (!channel || !threadTs)
|
|
@@ -46831,15 +46915,17 @@ mcp.setRequestHandler(CallToolRequestSchema, async (req) => {
|
|
|
46831
46915
|
if (isImpersonating() && !channelsEnabledOverride() && SLACK_EGRESS_TOOLS.has(name)) {
|
|
46832
46916
|
return buildImpersonationRefusal(name);
|
|
46833
46917
|
}
|
|
46834
|
-
if (
|
|
46835
|
-
|
|
46836
|
-
|
|
46837
|
-
|
|
46838
|
-
|
|
46839
|
-
|
|
46840
|
-
|
|
46841
|
-
|
|
46842
|
-
|
|
46918
|
+
if (shouldRefuseEgress({
|
|
46919
|
+
toolName: name,
|
|
46920
|
+
args: args ?? {},
|
|
46921
|
+
isEgressTool: (n) => SLACK_EGRESS_TOOLS.has(n),
|
|
46922
|
+
inbound: slackInboundRegistry,
|
|
46923
|
+
ingressOnly: ingressOnlyThreads
|
|
46924
|
+
})) {
|
|
46925
|
+
return {
|
|
46926
|
+
content: [{ type: "text", text: INGRESS_ONLY_REFUSAL }],
|
|
46927
|
+
isError: true
|
|
46928
|
+
};
|
|
46843
46929
|
}
|
|
46844
46930
|
if (name === "slack.reply") {
|
|
46845
46931
|
const { channel, text, thread_ts, message_ts, interim, inbound_id, proactive, to_channel_root } = args;
|