@probelabs/probe 0.6.0-rc259 → 0.6.0-rc261
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/bin/binaries/probe-v0.6.0-rc261-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc261-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc261-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc261-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc261-x86_64-unknown-linux-musl.tar.gz +0 -0
- package/build/agent/bashCommandUtils.js +3 -0
- package/build/agent/bashPermissions.js +23 -0
- package/build/agent/index.js +263 -240
- package/build/agent/schemaUtils.js +40 -4
- package/build/agent/xmlParsingUtils.js +6 -4
- package/cjs/agent/ProbeAgent.cjs +403 -342
- package/cjs/index.cjs +403 -342
- package/package.json +1 -1
- package/src/agent/bashCommandUtils.js +3 -0
- package/src/agent/bashPermissions.js +23 -0
- package/src/agent/schemaUtils.js +40 -4
- package/src/agent/xmlParsingUtils.js +6 -4
- package/bin/binaries/probe-v0.6.0-rc259-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc259-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc259-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc259-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc259-x86_64-unknown-linux-musl.tar.gz +0 -0
package/build/agent/index.js
CHANGED
|
@@ -12238,6 +12238,10 @@ function parseSimpleCommand(command) {
|
|
|
12238
12238
|
// Logical OR
|
|
12239
12239
|
/(?<!\\);/,
|
|
12240
12240
|
// Command separator (but not escaped \;)
|
|
12241
|
+
/\n/,
|
|
12242
|
+
// Newline command separator (multi-line commands)
|
|
12243
|
+
/\r/,
|
|
12244
|
+
// Carriage return (CRLF line endings)
|
|
12241
12245
|
/&$/,
|
|
12242
12246
|
// Background execution
|
|
12243
12247
|
/\$\(/,
|
|
@@ -12344,6 +12348,8 @@ function isComplexPattern(pattern) {
|
|
|
12344
12348
|
// Logical OR
|
|
12345
12349
|
/;/,
|
|
12346
12350
|
// Command separator
|
|
12351
|
+
/\n/,
|
|
12352
|
+
// Newline command separator
|
|
12347
12353
|
/&$/,
|
|
12348
12354
|
// Background execution
|
|
12349
12355
|
/\$\(/,
|
|
@@ -12716,6 +12722,26 @@ var init_bashPermissions = __esm({
|
|
|
12716
12722
|
i++;
|
|
12717
12723
|
continue;
|
|
12718
12724
|
}
|
|
12725
|
+
if (char === "\n" || char === "\r" && nextChar === "\n") {
|
|
12726
|
+
if (current2.trim()) {
|
|
12727
|
+
components.push(current2.trim());
|
|
12728
|
+
}
|
|
12729
|
+
current2 = "";
|
|
12730
|
+
if (char === "\r") {
|
|
12731
|
+
i += 2;
|
|
12732
|
+
} else {
|
|
12733
|
+
i++;
|
|
12734
|
+
}
|
|
12735
|
+
continue;
|
|
12736
|
+
}
|
|
12737
|
+
if (char === "\r") {
|
|
12738
|
+
if (current2.trim()) {
|
|
12739
|
+
components.push(current2.trim());
|
|
12740
|
+
}
|
|
12741
|
+
current2 = "";
|
|
12742
|
+
i++;
|
|
12743
|
+
continue;
|
|
12744
|
+
}
|
|
12719
12745
|
}
|
|
12720
12746
|
current2 += char;
|
|
12721
12747
|
i++;
|
|
@@ -23270,31 +23296,33 @@ var init_runtime = __esm({
|
|
|
23270
23296
|
}
|
|
23271
23297
|
});
|
|
23272
23298
|
|
|
23273
|
-
// node_modules/balanced-match/
|
|
23274
|
-
var
|
|
23275
|
-
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23299
|
+
// node_modules/balanced-match/index.js
|
|
23300
|
+
var require_balanced_match = __commonJS({
|
|
23301
|
+
"node_modules/balanced-match/index.js"(exports2, module2) {
|
|
23302
|
+
"use strict";
|
|
23303
|
+
module2.exports = balanced;
|
|
23304
|
+
function balanced(a, b, str) {
|
|
23305
|
+
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
23306
|
+
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
23307
|
+
var r = range(a, b, str);
|
|
23281
23308
|
return r && {
|
|
23282
23309
|
start: r[0],
|
|
23283
23310
|
end: r[1],
|
|
23284
23311
|
pre: str.slice(0, r[0]),
|
|
23285
|
-
body: str.slice(r[0] +
|
|
23286
|
-
post: str.slice(r[1] +
|
|
23312
|
+
body: str.slice(r[0] + a.length, r[1]),
|
|
23313
|
+
post: str.slice(r[1] + b.length)
|
|
23287
23314
|
};
|
|
23288
|
-
}
|
|
23289
|
-
maybeMatch
|
|
23290
|
-
|
|
23315
|
+
}
|
|
23316
|
+
function maybeMatch(reg, str) {
|
|
23317
|
+
var m = str.match(reg);
|
|
23291
23318
|
return m ? m[0] : null;
|
|
23292
|
-
}
|
|
23293
|
-
range =
|
|
23294
|
-
|
|
23295
|
-
|
|
23296
|
-
|
|
23297
|
-
|
|
23319
|
+
}
|
|
23320
|
+
balanced.range = range;
|
|
23321
|
+
function range(a, b, str) {
|
|
23322
|
+
var begs, beg, left, right, result;
|
|
23323
|
+
var ai = str.indexOf(a);
|
|
23324
|
+
var bi = str.indexOf(b, ai + 1);
|
|
23325
|
+
var i = ai;
|
|
23298
23326
|
if (ai >= 0 && bi > 0) {
|
|
23299
23327
|
if (a === b) {
|
|
23300
23328
|
return [ai, bi];
|
|
@@ -23302,16 +23330,14 @@ var init_esm = __esm({
|
|
|
23302
23330
|
begs = [];
|
|
23303
23331
|
left = str.length;
|
|
23304
23332
|
while (i >= 0 && !result) {
|
|
23305
|
-
if (i
|
|
23333
|
+
if (i == ai) {
|
|
23306
23334
|
begs.push(i);
|
|
23307
23335
|
ai = str.indexOf(a, i + 1);
|
|
23308
|
-
} else if (begs.length
|
|
23309
|
-
|
|
23310
|
-
if (r !== void 0)
|
|
23311
|
-
result = [r, bi];
|
|
23336
|
+
} else if (begs.length == 1) {
|
|
23337
|
+
result = [begs.pop(), bi];
|
|
23312
23338
|
} else {
|
|
23313
23339
|
beg = begs.pop();
|
|
23314
|
-
if (beg
|
|
23340
|
+
if (beg < left) {
|
|
23315
23341
|
left = beg;
|
|
23316
23342
|
right = bi;
|
|
23317
23343
|
}
|
|
@@ -23319,179 +23345,163 @@ var init_esm = __esm({
|
|
|
23319
23345
|
}
|
|
23320
23346
|
i = ai < bi && ai >= 0 ? ai : bi;
|
|
23321
23347
|
}
|
|
23322
|
-
if (begs.length
|
|
23348
|
+
if (begs.length) {
|
|
23323
23349
|
result = [left, right];
|
|
23324
23350
|
}
|
|
23325
23351
|
}
|
|
23326
23352
|
return result;
|
|
23327
|
-
}
|
|
23353
|
+
}
|
|
23328
23354
|
}
|
|
23329
23355
|
});
|
|
23330
23356
|
|
|
23331
|
-
// node_modules/brace-expansion/
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
|
|
23336
|
-
|
|
23337
|
-
|
|
23338
|
-
|
|
23339
|
-
|
|
23340
|
-
|
|
23341
|
-
function
|
|
23342
|
-
|
|
23343
|
-
|
|
23344
|
-
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
|
|
23348
|
-
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
23354
|
-
|
|
23355
|
-
|
|
23356
|
-
|
|
23357
|
-
|
|
23358
|
-
|
|
23359
|
-
|
|
23360
|
-
|
|
23361
|
-
}
|
|
23362
|
-
|
|
23363
|
-
|
|
23364
|
-
|
|
23365
|
-
|
|
23366
|
-
|
|
23367
|
-
|
|
23368
|
-
|
|
23369
|
-
|
|
23370
|
-
|
|
23371
|
-
|
|
23372
|
-
|
|
23373
|
-
|
|
23374
|
-
}
|
|
23375
|
-
|
|
23376
|
-
|
|
23377
|
-
}
|
|
23378
|
-
function lte(i, y) {
|
|
23379
|
-
return i <= y;
|
|
23380
|
-
}
|
|
23381
|
-
function gte(i, y) {
|
|
23382
|
-
return i >= y;
|
|
23383
|
-
}
|
|
23384
|
-
function expand_(str, max, isTop) {
|
|
23385
|
-
const expansions = [];
|
|
23386
|
-
const m = balanced("{", "}", str);
|
|
23387
|
-
if (!m)
|
|
23388
|
-
return [str];
|
|
23389
|
-
const pre = m.pre;
|
|
23390
|
-
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
23391
|
-
if (/\$$/.test(m.pre)) {
|
|
23392
|
-
for (let k = 0; k < post.length && k < max; k++) {
|
|
23393
|
-
const expansion = pre + "{" + m.body + "}" + post[k];
|
|
23394
|
-
expansions.push(expansion);
|
|
23357
|
+
// node_modules/brace-expansion/index.js
|
|
23358
|
+
var require_brace_expansion = __commonJS({
|
|
23359
|
+
"node_modules/brace-expansion/index.js"(exports2, module2) {
|
|
23360
|
+
var balanced = require_balanced_match();
|
|
23361
|
+
module2.exports = expandTop;
|
|
23362
|
+
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
23363
|
+
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
23364
|
+
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
23365
|
+
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
23366
|
+
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
23367
|
+
function numeric(str) {
|
|
23368
|
+
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
23369
|
+
}
|
|
23370
|
+
function escapeBraces(str) {
|
|
23371
|
+
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
23372
|
+
}
|
|
23373
|
+
function unescapeBraces(str) {
|
|
23374
|
+
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
23375
|
+
}
|
|
23376
|
+
function parseCommaParts(str) {
|
|
23377
|
+
if (!str)
|
|
23378
|
+
return [""];
|
|
23379
|
+
var parts = [];
|
|
23380
|
+
var m = balanced("{", "}", str);
|
|
23381
|
+
if (!m)
|
|
23382
|
+
return str.split(",");
|
|
23383
|
+
var pre = m.pre;
|
|
23384
|
+
var body = m.body;
|
|
23385
|
+
var post = m.post;
|
|
23386
|
+
var p = pre.split(",");
|
|
23387
|
+
p[p.length - 1] += "{" + body + "}";
|
|
23388
|
+
var postParts = parseCommaParts(post);
|
|
23389
|
+
if (post.length) {
|
|
23390
|
+
p[p.length - 1] += postParts.shift();
|
|
23391
|
+
p.push.apply(p, postParts);
|
|
23392
|
+
}
|
|
23393
|
+
parts.push.apply(parts, p);
|
|
23394
|
+
return parts;
|
|
23395
|
+
}
|
|
23396
|
+
function expandTop(str) {
|
|
23397
|
+
if (!str)
|
|
23398
|
+
return [];
|
|
23399
|
+
if (str.substr(0, 2) === "{}") {
|
|
23400
|
+
str = "\\{\\}" + str.substr(2);
|
|
23401
|
+
}
|
|
23402
|
+
return expand2(escapeBraces(str), true).map(unescapeBraces);
|
|
23395
23403
|
}
|
|
23396
|
-
|
|
23397
|
-
|
|
23398
|
-
|
|
23399
|
-
|
|
23400
|
-
|
|
23401
|
-
|
|
23402
|
-
|
|
23403
|
-
|
|
23404
|
-
|
|
23405
|
-
|
|
23406
|
-
return
|
|
23407
|
-
}
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
|
-
|
|
23411
|
-
|
|
23412
|
-
|
|
23413
|
-
|
|
23414
|
-
|
|
23415
|
-
|
|
23416
|
-
|
|
23417
|
-
|
|
23418
|
-
|
|
23419
|
-
|
|
23420
|
-
|
|
23421
|
-
|
|
23422
|
-
|
|
23423
|
-
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23433
|
-
|
|
23434
|
-
for (let i = x; test(i, y); i += incr) {
|
|
23435
|
-
let c;
|
|
23436
|
-
if (isAlphaSequence) {
|
|
23437
|
-
c = String.fromCharCode(i);
|
|
23438
|
-
if (c === "\\") {
|
|
23439
|
-
c = "";
|
|
23440
|
-
}
|
|
23404
|
+
function embrace(str) {
|
|
23405
|
+
return "{" + str + "}";
|
|
23406
|
+
}
|
|
23407
|
+
function isPadded(el) {
|
|
23408
|
+
return /^-?0\d/.test(el);
|
|
23409
|
+
}
|
|
23410
|
+
function lte(i, y) {
|
|
23411
|
+
return i <= y;
|
|
23412
|
+
}
|
|
23413
|
+
function gte(i, y) {
|
|
23414
|
+
return i >= y;
|
|
23415
|
+
}
|
|
23416
|
+
function expand2(str, isTop) {
|
|
23417
|
+
var expansions = [];
|
|
23418
|
+
var m = balanced("{", "}", str);
|
|
23419
|
+
if (!m) return [str];
|
|
23420
|
+
var pre = m.pre;
|
|
23421
|
+
var post = m.post.length ? expand2(m.post, false) : [""];
|
|
23422
|
+
if (/\$$/.test(m.pre)) {
|
|
23423
|
+
for (var k = 0; k < post.length; k++) {
|
|
23424
|
+
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
23425
|
+
expansions.push(expansion);
|
|
23426
|
+
}
|
|
23427
|
+
} else {
|
|
23428
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
23429
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
23430
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
|
23431
|
+
var isOptions = m.body.indexOf(",") >= 0;
|
|
23432
|
+
if (!isSequence && !isOptions) {
|
|
23433
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
23434
|
+
str = m.pre + "{" + m.body + escClose + m.post;
|
|
23435
|
+
return expand2(str);
|
|
23436
|
+
}
|
|
23437
|
+
return [str];
|
|
23438
|
+
}
|
|
23439
|
+
var n;
|
|
23440
|
+
if (isSequence) {
|
|
23441
|
+
n = m.body.split(/\.\./);
|
|
23441
23442
|
} else {
|
|
23442
|
-
|
|
23443
|
-
if (
|
|
23444
|
-
|
|
23445
|
-
if (
|
|
23446
|
-
|
|
23447
|
-
|
|
23448
|
-
|
|
23449
|
-
|
|
23450
|
-
|
|
23443
|
+
n = parseCommaParts(m.body);
|
|
23444
|
+
if (n.length === 1) {
|
|
23445
|
+
n = expand2(n[0], false).map(embrace);
|
|
23446
|
+
if (n.length === 1) {
|
|
23447
|
+
return post.map(function(p) {
|
|
23448
|
+
return m.pre + n[0] + p;
|
|
23449
|
+
});
|
|
23450
|
+
}
|
|
23451
|
+
}
|
|
23452
|
+
}
|
|
23453
|
+
var N;
|
|
23454
|
+
if (isSequence) {
|
|
23455
|
+
var x = numeric(n[0]);
|
|
23456
|
+
var y = numeric(n[1]);
|
|
23457
|
+
var width = Math.max(n[0].length, n[1].length);
|
|
23458
|
+
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
23459
|
+
var test = lte;
|
|
23460
|
+
var reverse = y < x;
|
|
23461
|
+
if (reverse) {
|
|
23462
|
+
incr *= -1;
|
|
23463
|
+
test = gte;
|
|
23464
|
+
}
|
|
23465
|
+
var pad = n.some(isPadded);
|
|
23466
|
+
N = [];
|
|
23467
|
+
for (var i = x; test(i, y); i += incr) {
|
|
23468
|
+
var c;
|
|
23469
|
+
if (isAlphaSequence) {
|
|
23470
|
+
c = String.fromCharCode(i);
|
|
23471
|
+
if (c === "\\")
|
|
23472
|
+
c = "";
|
|
23473
|
+
} else {
|
|
23474
|
+
c = String(i);
|
|
23475
|
+
if (pad) {
|
|
23476
|
+
var need = width - c.length;
|
|
23477
|
+
if (need > 0) {
|
|
23478
|
+
var z = new Array(need + 1).join("0");
|
|
23479
|
+
if (i < 0)
|
|
23480
|
+
c = "-" + z + c.slice(1);
|
|
23481
|
+
else
|
|
23482
|
+
c = z + c;
|
|
23483
|
+
}
|
|
23451
23484
|
}
|
|
23452
23485
|
}
|
|
23486
|
+
N.push(c);
|
|
23487
|
+
}
|
|
23488
|
+
} else {
|
|
23489
|
+
N = [];
|
|
23490
|
+
for (var j = 0; j < n.length; j++) {
|
|
23491
|
+
N.push.apply(N, expand2(n[j], false));
|
|
23453
23492
|
}
|
|
23454
23493
|
}
|
|
23455
|
-
N.
|
|
23456
|
-
|
|
23457
|
-
|
|
23458
|
-
|
|
23459
|
-
|
|
23460
|
-
|
|
23461
|
-
}
|
|
23462
|
-
}
|
|
23463
|
-
for (let j = 0; j < N.length; j++) {
|
|
23464
|
-
for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
23465
|
-
const expansion = pre + N[j] + post[k];
|
|
23466
|
-
if (!isTop || isSequence || expansion) {
|
|
23467
|
-
expansions.push(expansion);
|
|
23494
|
+
for (var j = 0; j < N.length; j++) {
|
|
23495
|
+
for (var k = 0; k < post.length; k++) {
|
|
23496
|
+
var expansion = pre + N[j] + post[k];
|
|
23497
|
+
if (!isTop || isSequence || expansion)
|
|
23498
|
+
expansions.push(expansion);
|
|
23499
|
+
}
|
|
23468
23500
|
}
|
|
23469
23501
|
}
|
|
23502
|
+
return expansions;
|
|
23470
23503
|
}
|
|
23471
23504
|
}
|
|
23472
|
-
return expansions;
|
|
23473
|
-
}
|
|
23474
|
-
var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern, EXPANSION_MAX;
|
|
23475
|
-
var init_esm2 = __esm({
|
|
23476
|
-
"node_modules/brace-expansion/dist/esm/index.js"() {
|
|
23477
|
-
init_esm();
|
|
23478
|
-
escSlash = "\0SLASH" + Math.random() + "\0";
|
|
23479
|
-
escOpen = "\0OPEN" + Math.random() + "\0";
|
|
23480
|
-
escClose = "\0CLOSE" + Math.random() + "\0";
|
|
23481
|
-
escComma = "\0COMMA" + Math.random() + "\0";
|
|
23482
|
-
escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
23483
|
-
escSlashPattern = new RegExp(escSlash, "g");
|
|
23484
|
-
escOpenPattern = new RegExp(escOpen, "g");
|
|
23485
|
-
escClosePattern = new RegExp(escClose, "g");
|
|
23486
|
-
escCommaPattern = new RegExp(escComma, "g");
|
|
23487
|
-
escPeriodPattern = new RegExp(escPeriod, "g");
|
|
23488
|
-
slashPattern = /\\\\/g;
|
|
23489
|
-
openPattern = /\\{/g;
|
|
23490
|
-
closePattern = /\\}/g;
|
|
23491
|
-
commaPattern = /\\,/g;
|
|
23492
|
-
periodPattern = /\\./g;
|
|
23493
|
-
EXPANSION_MAX = 1e5;
|
|
23494
|
-
}
|
|
23495
23505
|
});
|
|
23496
23506
|
|
|
23497
23507
|
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
@@ -24263,10 +24273,10 @@ var init_escape = __esm({
|
|
|
24263
24273
|
});
|
|
24264
24274
|
|
|
24265
24275
|
// node_modules/minimatch/dist/esm/index.js
|
|
24266
|
-
var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path5, sep3, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
|
|
24267
|
-
var
|
|
24276
|
+
var import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path5, sep3, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
|
|
24277
|
+
var init_esm = __esm({
|
|
24268
24278
|
"node_modules/minimatch/dist/esm/index.js"() {
|
|
24269
|
-
|
|
24279
|
+
import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
24270
24280
|
init_assert_valid_pattern();
|
|
24271
24281
|
init_ast();
|
|
24272
24282
|
init_escape();
|
|
@@ -24389,7 +24399,7 @@ var init_esm3 = __esm({
|
|
|
24389
24399
|
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
24390
24400
|
return [pattern];
|
|
24391
24401
|
}
|
|
24392
|
-
return
|
|
24402
|
+
return (0, import_brace_expansion.default)(pattern);
|
|
24393
24403
|
};
|
|
24394
24404
|
minimatch.braceExpand = braceExpand;
|
|
24395
24405
|
makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
@@ -24794,7 +24804,11 @@ var init_esm3 = __esm({
|
|
|
24794
24804
|
#matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
|
|
24795
24805
|
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
24796
24806
|
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
24797
|
-
const [head2, body, tail] = [
|
|
24807
|
+
const [head2, body, tail] = partial ? [
|
|
24808
|
+
pattern.slice(patternIndex, firstgs),
|
|
24809
|
+
pattern.slice(firstgs + 1),
|
|
24810
|
+
[]
|
|
24811
|
+
] : [
|
|
24798
24812
|
pattern.slice(patternIndex, firstgs),
|
|
24799
24813
|
pattern.slice(firstgs + 1, lastgs),
|
|
24800
24814
|
pattern.slice(lastgs + 1)
|
|
@@ -24831,7 +24845,7 @@ var init_esm3 = __esm({
|
|
|
24831
24845
|
return false;
|
|
24832
24846
|
}
|
|
24833
24847
|
}
|
|
24834
|
-
return sawSome;
|
|
24848
|
+
return partial || sawSome;
|
|
24835
24849
|
}
|
|
24836
24850
|
const bodySegments = [[[], 0]];
|
|
24837
24851
|
let currentBody = bodySegments[0];
|
|
@@ -24880,7 +24894,7 @@ var init_esm3 = __esm({
|
|
|
24880
24894
|
}
|
|
24881
24895
|
fileIndex++;
|
|
24882
24896
|
}
|
|
24883
|
-
return null;
|
|
24897
|
+
return partial || null;
|
|
24884
24898
|
}
|
|
24885
24899
|
#matchOne(file, pattern, partial, fileIndex, patternIndex) {
|
|
24886
24900
|
let fi;
|
|
@@ -25061,7 +25075,7 @@ var init_esm3 = __esm({
|
|
|
25061
25075
|
|
|
25062
25076
|
// node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
|
|
25063
25077
|
var perf, warned, PROCESS, emitWarning, AC, AS, shouldWarn, TYPE, isPosInt, getUintArray, ZeroArray, Stack, LRUCache;
|
|
25064
|
-
var
|
|
25078
|
+
var init_esm2 = __esm({
|
|
25065
25079
|
"node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js"() {
|
|
25066
25080
|
perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
25067
25081
|
warned = /* @__PURE__ */ new Set();
|
|
@@ -26438,7 +26452,7 @@ import { EventEmitter } from "node:events";
|
|
|
26438
26452
|
import Stream from "node:stream";
|
|
26439
26453
|
import { StringDecoder } from "node:string_decoder";
|
|
26440
26454
|
var proc, isStream, isReadable, isWritable, EOF, MAYBE_EMIT_END, EMITTED_END, EMITTING_END, EMITTED_ERROR, CLOSED, READ, FLUSH, FLUSHCHUNK, ENCODING, DECODER, FLOWING, PAUSED, RESUME, BUFFER, PIPES, BUFFERLENGTH, BUFFERPUSH, BUFFERSHIFT, OBJECTMODE, DESTROYED, ERROR, EMITDATA, EMITEND, EMITEND2, ASYNC, ABORT, ABORTED, SIGNAL, DATALISTENERS, DISCARDED, defer, nodefer, isEndish, isArrayBufferLike, isArrayBufferView, Pipe, PipeProxyErrors, isObjectModeOptions, isEncodingOptions, Minipass;
|
|
26441
|
-
var
|
|
26455
|
+
var init_esm3 = __esm({
|
|
26442
26456
|
"node_modules/minipass/dist/esm/index.js"() {
|
|
26443
26457
|
proc = typeof process === "object" && process ? process : {
|
|
26444
26458
|
stdout: null,
|
|
@@ -27327,10 +27341,10 @@ import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSyn
|
|
|
27327
27341
|
import * as actualFS from "node:fs";
|
|
27328
27342
|
import { lstat, readdir, readlink, realpath } from "node:fs/promises";
|
|
27329
27343
|
var realpathSync2, defaultFS, fsFromOption, uncDriveRegexp, uncToDrive, eitherSep, UNKNOWN, IFIFO, IFCHR, IFDIR, IFBLK, IFREG, IFLNK, IFSOCK, IFMT, IFMT_UNKNOWN, READDIR_CALLED, LSTAT_CALLED, ENOTDIR, ENOENT, ENOREADLINK, ENOREALPATH, ENOCHILD, TYPEMASK, entToType, normalizeCache, normalize, normalizeNocaseCache, normalizeNocase, ResolveCache, ChildrenCache, setAsCwd, PathBase, PathWin32, PathPosix, PathScurryBase, PathScurryWin32, PathScurryPosix, PathScurryDarwin, Path, PathScurry;
|
|
27330
|
-
var
|
|
27344
|
+
var init_esm4 = __esm({
|
|
27331
27345
|
"node_modules/path-scurry/dist/esm/index.js"() {
|
|
27332
|
-
|
|
27333
|
-
|
|
27346
|
+
init_esm2();
|
|
27347
|
+
init_esm3();
|
|
27334
27348
|
realpathSync2 = rps.native;
|
|
27335
27349
|
defaultFS = {
|
|
27336
27350
|
lstatSync,
|
|
@@ -29060,7 +29074,7 @@ var init_esm6 = __esm({
|
|
|
29060
29074
|
var isPatternList, isGlobList, Pattern;
|
|
29061
29075
|
var init_pattern = __esm({
|
|
29062
29076
|
"node_modules/glob/dist/esm/pattern.js"() {
|
|
29063
|
-
|
|
29077
|
+
init_esm();
|
|
29064
29078
|
isPatternList = (pl) => pl.length >= 1;
|
|
29065
29079
|
isGlobList = (gl) => gl.length >= 1;
|
|
29066
29080
|
Pattern = class _Pattern {
|
|
@@ -29231,7 +29245,7 @@ var init_pattern = __esm({
|
|
|
29231
29245
|
var defaultPlatform2, Ignore;
|
|
29232
29246
|
var init_ignore = __esm({
|
|
29233
29247
|
"node_modules/glob/dist/esm/ignore.js"() {
|
|
29234
|
-
|
|
29248
|
+
init_esm();
|
|
29235
29249
|
init_pattern();
|
|
29236
29250
|
defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
29237
29251
|
Ignore = class {
|
|
@@ -29325,7 +29339,7 @@ var init_ignore = __esm({
|
|
|
29325
29339
|
var HasWalkedCache, MatchRecord, SubWalks, Processor;
|
|
29326
29340
|
var init_processor = __esm({
|
|
29327
29341
|
"node_modules/glob/dist/esm/processor.js"() {
|
|
29328
|
-
|
|
29342
|
+
init_esm();
|
|
29329
29343
|
HasWalkedCache = class _HasWalkedCache {
|
|
29330
29344
|
store;
|
|
29331
29345
|
constructor(store = /* @__PURE__ */ new Map()) {
|
|
@@ -29552,7 +29566,7 @@ var init_processor = __esm({
|
|
|
29552
29566
|
var makeIgnore, GlobUtil, GlobWalker, GlobStream;
|
|
29553
29567
|
var init_walker = __esm({
|
|
29554
29568
|
"node_modules/glob/dist/esm/walker.js"() {
|
|
29555
|
-
|
|
29569
|
+
init_esm3();
|
|
29556
29570
|
init_ignore();
|
|
29557
29571
|
init_processor();
|
|
29558
29572
|
makeIgnore = (ignore2, opts) => typeof ignore2 === "string" ? new Ignore([ignore2], opts) : Array.isArray(ignore2) ? new Ignore(ignore2, opts) : ignore2;
|
|
@@ -29888,8 +29902,8 @@ import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
|
29888
29902
|
var defaultPlatform3, Glob;
|
|
29889
29903
|
var init_glob = __esm({
|
|
29890
29904
|
"node_modules/glob/dist/esm/glob.js"() {
|
|
29891
|
-
|
|
29892
|
-
|
|
29905
|
+
init_esm();
|
|
29906
|
+
init_esm4();
|
|
29893
29907
|
init_pattern();
|
|
29894
29908
|
init_walker();
|
|
29895
29909
|
defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
@@ -30097,7 +30111,7 @@ var init_glob = __esm({
|
|
|
30097
30111
|
var hasMagic;
|
|
30098
30112
|
var init_has_magic = __esm({
|
|
30099
30113
|
"node_modules/glob/dist/esm/has-magic.js"() {
|
|
30100
|
-
|
|
30114
|
+
init_esm();
|
|
30101
30115
|
hasMagic = (pattern, options = {}) => {
|
|
30102
30116
|
if (!Array.isArray(pattern)) {
|
|
30103
30117
|
pattern = [pattern];
|
|
@@ -30131,12 +30145,12 @@ function globIterate(pattern, options = {}) {
|
|
|
30131
30145
|
return new Glob(pattern, options).iterate();
|
|
30132
30146
|
}
|
|
30133
30147
|
var streamSync, stream, iterateSync, iterate, sync, glob;
|
|
30134
|
-
var
|
|
30148
|
+
var init_esm5 = __esm({
|
|
30135
30149
|
"node_modules/glob/dist/esm/index.js"() {
|
|
30136
|
-
|
|
30150
|
+
init_esm();
|
|
30137
30151
|
init_glob();
|
|
30138
30152
|
init_has_magic();
|
|
30139
|
-
|
|
30153
|
+
init_esm();
|
|
30140
30154
|
init_glob();
|
|
30141
30155
|
init_has_magic();
|
|
30142
30156
|
init_ignore();
|
|
@@ -31096,7 +31110,7 @@ var init_executePlan = __esm({
|
|
|
31096
31110
|
init_query();
|
|
31097
31111
|
init_extract();
|
|
31098
31112
|
init_delegate();
|
|
31099
|
-
|
|
31113
|
+
init_esm5();
|
|
31100
31114
|
init_bash();
|
|
31101
31115
|
RAW_OUTPUT_START = "<<<RAW_OUTPUT>>>";
|
|
31102
31116
|
RAW_OUTPUT_END = "<<<END_RAW_OUTPUT>>>";
|
|
@@ -32185,7 +32199,7 @@ var init_probeTool = __esm({
|
|
|
32185
32199
|
"src/agent/probeTool.js"() {
|
|
32186
32200
|
"use strict";
|
|
32187
32201
|
init_index();
|
|
32188
|
-
|
|
32202
|
+
init_esm5();
|
|
32189
32203
|
init_symlink_utils();
|
|
32190
32204
|
toolCallEmitter = new EventEmitter2();
|
|
32191
32205
|
activeToolExecutions = /* @__PURE__ */ new Map();
|
|
@@ -32935,13 +32949,13 @@ var init_index = __esm({
|
|
|
32935
32949
|
});
|
|
32936
32950
|
|
|
32937
32951
|
// src/agent/xmlParsingUtils.js
|
|
32938
|
-
function removeThinkingTags(xmlString) {
|
|
32952
|
+
function removeThinkingTags(xmlString, validTools = DEFAULT_VALID_TOOLS) {
|
|
32939
32953
|
let result = xmlString;
|
|
32940
32954
|
result = result.replace(/<thinking>[\s\S]*?<\/thinking>/g, "");
|
|
32941
32955
|
const thinkingIndex = result.indexOf("<thinking>");
|
|
32942
32956
|
if (thinkingIndex !== -1) {
|
|
32943
32957
|
const afterThinking = result.substring(thinkingIndex + "<thinking>".length);
|
|
32944
|
-
const toolPattern = buildToolTagPattern(
|
|
32958
|
+
const toolPattern = buildToolTagPattern(validTools);
|
|
32945
32959
|
const toolMatch = afterThinking.match(toolPattern);
|
|
32946
32960
|
if (toolMatch) {
|
|
32947
32961
|
const toolStart = thinkingIndex + "<thinking>".length + toolMatch.index;
|
|
@@ -33040,7 +33054,7 @@ function hasOtherToolTags(xmlString, validTools = []) {
|
|
|
33040
33054
|
}
|
|
33041
33055
|
function processXmlWithThinkingAndRecovery(xmlString, validTools = []) {
|
|
33042
33056
|
const thinkingContent = extractThinkingContent(xmlString);
|
|
33043
|
-
const cleanedXmlString = removeThinkingTags(xmlString);
|
|
33057
|
+
const cleanedXmlString = removeThinkingTags(xmlString, validTools.length > 0 ? validTools : void 0);
|
|
33044
33058
|
const recoveryResult = checkAttemptCompleteRecovery(cleanedXmlString, validTools);
|
|
33045
33059
|
if (process.env.DEBUG === "1" && thinkingContent) {
|
|
33046
33060
|
console.log(`[DEBUG] AI Thinking Process:
|
|
@@ -38442,23 +38456,23 @@ var init_regexp_parser = __esm({
|
|
|
38442
38456
|
return ASSERT_NEVER_REACH_HERE();
|
|
38443
38457
|
}
|
|
38444
38458
|
quantifier(isBacktracking = false) {
|
|
38445
|
-
let
|
|
38459
|
+
let range = void 0;
|
|
38446
38460
|
const begin = this.idx;
|
|
38447
38461
|
switch (this.popChar()) {
|
|
38448
38462
|
case "*":
|
|
38449
|
-
|
|
38463
|
+
range = {
|
|
38450
38464
|
atLeast: 0,
|
|
38451
38465
|
atMost: Infinity
|
|
38452
38466
|
};
|
|
38453
38467
|
break;
|
|
38454
38468
|
case "+":
|
|
38455
|
-
|
|
38469
|
+
range = {
|
|
38456
38470
|
atLeast: 1,
|
|
38457
38471
|
atMost: Infinity
|
|
38458
38472
|
};
|
|
38459
38473
|
break;
|
|
38460
38474
|
case "?":
|
|
38461
|
-
|
|
38475
|
+
range = {
|
|
38462
38476
|
atLeast: 0,
|
|
38463
38477
|
atMost: 1
|
|
38464
38478
|
};
|
|
@@ -38467,7 +38481,7 @@ var init_regexp_parser = __esm({
|
|
|
38467
38481
|
const atLeast = this.integerIncludingZero();
|
|
38468
38482
|
switch (this.popChar()) {
|
|
38469
38483
|
case "}":
|
|
38470
|
-
|
|
38484
|
+
range = {
|
|
38471
38485
|
atLeast,
|
|
38472
38486
|
atMost: atLeast
|
|
38473
38487
|
};
|
|
@@ -38476,12 +38490,12 @@ var init_regexp_parser = __esm({
|
|
|
38476
38490
|
let atMost;
|
|
38477
38491
|
if (this.isDigit()) {
|
|
38478
38492
|
atMost = this.integerIncludingZero();
|
|
38479
|
-
|
|
38493
|
+
range = {
|
|
38480
38494
|
atLeast,
|
|
38481
38495
|
atMost
|
|
38482
38496
|
};
|
|
38483
38497
|
} else {
|
|
38484
|
-
|
|
38498
|
+
range = {
|
|
38485
38499
|
atLeast,
|
|
38486
38500
|
atMost: Infinity
|
|
38487
38501
|
};
|
|
@@ -38489,25 +38503,25 @@ var init_regexp_parser = __esm({
|
|
|
38489
38503
|
this.consumeChar("}");
|
|
38490
38504
|
break;
|
|
38491
38505
|
}
|
|
38492
|
-
if (isBacktracking === true &&
|
|
38506
|
+
if (isBacktracking === true && range === void 0) {
|
|
38493
38507
|
return void 0;
|
|
38494
38508
|
}
|
|
38495
|
-
ASSERT_EXISTS(
|
|
38509
|
+
ASSERT_EXISTS(range);
|
|
38496
38510
|
break;
|
|
38497
38511
|
}
|
|
38498
|
-
if (isBacktracking === true &&
|
|
38512
|
+
if (isBacktracking === true && range === void 0) {
|
|
38499
38513
|
return void 0;
|
|
38500
38514
|
}
|
|
38501
|
-
if (ASSERT_EXISTS(
|
|
38515
|
+
if (ASSERT_EXISTS(range)) {
|
|
38502
38516
|
if (this.peekChar(0) === "?") {
|
|
38503
38517
|
this.consumeChar("?");
|
|
38504
|
-
|
|
38518
|
+
range.greedy = false;
|
|
38505
38519
|
} else {
|
|
38506
|
-
|
|
38520
|
+
range.greedy = true;
|
|
38507
38521
|
}
|
|
38508
|
-
|
|
38509
|
-
|
|
38510
|
-
return
|
|
38522
|
+
range.type = "Quantifier";
|
|
38523
|
+
range.loc = this.loc(begin);
|
|
38524
|
+
return range;
|
|
38511
38525
|
}
|
|
38512
38526
|
}
|
|
38513
38527
|
atom() {
|
|
@@ -39209,18 +39223,18 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) {
|
|
|
39209
39223
|
if (typeof code === "number") {
|
|
39210
39224
|
addOptimizedIdxToResult(code, result, ignoreCase);
|
|
39211
39225
|
} else {
|
|
39212
|
-
const
|
|
39226
|
+
const range = code;
|
|
39213
39227
|
if (ignoreCase === true) {
|
|
39214
|
-
for (let rangeCode =
|
|
39228
|
+
for (let rangeCode = range.from; rangeCode <= range.to; rangeCode++) {
|
|
39215
39229
|
addOptimizedIdxToResult(rangeCode, result, ignoreCase);
|
|
39216
39230
|
}
|
|
39217
39231
|
} else {
|
|
39218
|
-
for (let rangeCode =
|
|
39232
|
+
for (let rangeCode = range.from; rangeCode <= range.to && rangeCode < minOptimizationVal; rangeCode++) {
|
|
39219
39233
|
addOptimizedIdxToResult(rangeCode, result, ignoreCase);
|
|
39220
39234
|
}
|
|
39221
|
-
if (
|
|
39222
|
-
const minUnOptVal =
|
|
39223
|
-
const maxUnOptVal =
|
|
39235
|
+
if (range.to >= minOptimizationVal) {
|
|
39236
|
+
const minUnOptVal = range.from >= minOptimizationVal ? range.from : minOptimizationVal;
|
|
39237
|
+
const maxUnOptVal = range.to;
|
|
39224
39238
|
const minOptIdx = charCodeToOptimizedIndex(minUnOptVal);
|
|
39225
39239
|
const maxOptIdx = charCodeToOptimizedIndex(maxUnOptVal);
|
|
39226
39240
|
for (let currOptIdx = minOptIdx; currOptIdx <= maxOptIdx; currOptIdx++) {
|
|
@@ -39281,8 +39295,8 @@ function findCode(setNode, targetCharCodes) {
|
|
|
39281
39295
|
if (typeof codeOrRange === "number") {
|
|
39282
39296
|
return includes_default(targetCharCodes, codeOrRange);
|
|
39283
39297
|
} else {
|
|
39284
|
-
const
|
|
39285
|
-
return find_default(targetCharCodes, (targetCode) =>
|
|
39298
|
+
const range = codeOrRange;
|
|
39299
|
+
return find_default(targetCharCodes, (targetCode) => range.from <= targetCode && targetCode <= range.to) !== void 0;
|
|
39286
39300
|
}
|
|
39287
39301
|
});
|
|
39288
39302
|
}
|
|
@@ -57187,8 +57201,8 @@ var require_createRange = __commonJS({
|
|
|
57187
57201
|
var require_range = __commonJS({
|
|
57188
57202
|
"node_modules/lodash/range.js"(exports2, module2) {
|
|
57189
57203
|
var createRange = require_createRange();
|
|
57190
|
-
var
|
|
57191
|
-
module2.exports =
|
|
57204
|
+
var range = createRange();
|
|
57205
|
+
module2.exports = range;
|
|
57192
57206
|
}
|
|
57193
57207
|
});
|
|
57194
57208
|
|
|
@@ -70110,6 +70124,15 @@ function normalizeJsonQuotes(str) {
|
|
|
70110
70124
|
}
|
|
70111
70125
|
return result;
|
|
70112
70126
|
}
|
|
70127
|
+
function isCodeBlockEmbeddedInDocument(text, match2) {
|
|
70128
|
+
const beforeBlock = text.substring(0, match2.index).trim();
|
|
70129
|
+
const afterBlock = text.substring(match2.index + match2[0].length).trim();
|
|
70130
|
+
const hasMarkdownHeadings = /^#{1,6}\s/m.test(beforeBlock) || /^#{1,6}\s/m.test(afterBlock);
|
|
70131
|
+
if (hasMarkdownHeadings) {
|
|
70132
|
+
return true;
|
|
70133
|
+
}
|
|
70134
|
+
return false;
|
|
70135
|
+
}
|
|
70113
70136
|
function cleanSchemaResponse(response) {
|
|
70114
70137
|
if (!response || typeof response !== "string") {
|
|
70115
70138
|
return response;
|
|
@@ -70129,11 +70152,11 @@ function cleanSchemaResponse(response) {
|
|
|
70129
70152
|
return cleanSchemaResponse(innerContent);
|
|
70130
70153
|
}
|
|
70131
70154
|
const jsonBlockMatch = trimmed.match(/```json\s*\n([\s\S]*?)\n```/);
|
|
70132
|
-
if (jsonBlockMatch) {
|
|
70155
|
+
if (jsonBlockMatch && !isCodeBlockEmbeddedInDocument(trimmed, jsonBlockMatch)) {
|
|
70133
70156
|
return normalizeJsonQuotes(jsonBlockMatch[1].trim());
|
|
70134
70157
|
}
|
|
70135
70158
|
const anyBlockMatch = trimmed.match(/```\s*\n([{\[][\s\S]*?[}\]])\s*```/);
|
|
70136
|
-
if (anyBlockMatch) {
|
|
70159
|
+
if (anyBlockMatch && !isCodeBlockEmbeddedInDocument(trimmed, anyBlockMatch)) {
|
|
70137
70160
|
return normalizeJsonQuotes(anyBlockMatch[1].trim());
|
|
70138
70161
|
}
|
|
70139
70162
|
const codeBlockPatterns = [
|
|
@@ -70142,7 +70165,7 @@ function cleanSchemaResponse(response) {
|
|
|
70142
70165
|
];
|
|
70143
70166
|
for (const pattern of codeBlockPatterns) {
|
|
70144
70167
|
const match2 = trimmed.match(pattern);
|
|
70145
|
-
if (match2) {
|
|
70168
|
+
if (match2 && !isCodeBlockEmbeddedInDocument(trimmed, match2)) {
|
|
70146
70169
|
return normalizeJsonQuotes(match2[1].trim());
|
|
70147
70170
|
}
|
|
70148
70171
|
}
|
|
@@ -70153,7 +70176,7 @@ function cleanSchemaResponse(response) {
|
|
|
70153
70176
|
}
|
|
70154
70177
|
const codeBlockStartPattern = /```(?:json)?\s*\n?\s*([{\[])/;
|
|
70155
70178
|
const codeBlockMatch = trimmed.match(codeBlockStartPattern);
|
|
70156
|
-
if (codeBlockMatch) {
|
|
70179
|
+
if (codeBlockMatch && !isCodeBlockEmbeddedInDocument(trimmed, codeBlockMatch)) {
|
|
70157
70180
|
const startIndex = codeBlockMatch.index + codeBlockMatch[0].length - 1;
|
|
70158
70181
|
const openChar = codeBlockMatch[1];
|
|
70159
70182
|
const closeChar = openChar === "{" ? "}" : "]";
|
|
@@ -77639,7 +77662,7 @@ var require_compose_scalar = __commonJS({
|
|
|
77639
77662
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
77640
77663
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
77641
77664
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
77642
|
-
const { value, type, comment, range
|
|
77665
|
+
const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
|
|
77643
77666
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
77644
77667
|
let tag;
|
|
77645
77668
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
@@ -77659,7 +77682,7 @@ var require_compose_scalar = __commonJS({
|
|
|
77659
77682
|
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
77660
77683
|
scalar = new Scalar.Scalar(value);
|
|
77661
77684
|
}
|
|
77662
|
-
scalar.range =
|
|
77685
|
+
scalar.range = range;
|
|
77663
77686
|
scalar.source = value;
|
|
77664
77687
|
if (type)
|
|
77665
77688
|
scalar.type = type;
|