@probelabs/probe 0.6.0-rc260 → 0.6.0-rc262
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-rc262-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc262-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc262-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc262-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc262-x86_64-unknown-linux-musl.tar.gz +0 -0
- package/build/agent/index.js +217 -233
- package/build/agent/xmlParsingUtils.js +6 -4
- package/cjs/agent/ProbeAgent.cjs +311 -289
- package/cjs/index.cjs +311 -289
- package/package.json +1 -1
- package/src/agent/xmlParsingUtils.js +6 -4
- package/bin/binaries/probe-v0.6.0-rc260-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc260-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc260-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc260-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc260-x86_64-unknown-linux-musl.tar.gz +0 -0
package/build/agent/index.js
CHANGED
|
@@ -23296,31 +23296,33 @@ var init_runtime = __esm({
|
|
|
23296
23296
|
}
|
|
23297
23297
|
});
|
|
23298
23298
|
|
|
23299
|
-
// node_modules/balanced-match/
|
|
23300
|
-
var
|
|
23301
|
-
|
|
23302
|
-
|
|
23303
|
-
|
|
23304
|
-
|
|
23305
|
-
|
|
23306
|
-
|
|
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);
|
|
23307
23308
|
return r && {
|
|
23308
23309
|
start: r[0],
|
|
23309
23310
|
end: r[1],
|
|
23310
23311
|
pre: str.slice(0, r[0]),
|
|
23311
|
-
body: str.slice(r[0] +
|
|
23312
|
-
post: str.slice(r[1] +
|
|
23312
|
+
body: str.slice(r[0] + a.length, r[1]),
|
|
23313
|
+
post: str.slice(r[1] + b.length)
|
|
23313
23314
|
};
|
|
23314
|
-
}
|
|
23315
|
-
maybeMatch
|
|
23316
|
-
|
|
23315
|
+
}
|
|
23316
|
+
function maybeMatch(reg, str) {
|
|
23317
|
+
var m = str.match(reg);
|
|
23317
23318
|
return m ? m[0] : null;
|
|
23318
|
-
}
|
|
23319
|
-
range =
|
|
23320
|
-
|
|
23321
|
-
|
|
23322
|
-
|
|
23323
|
-
|
|
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;
|
|
23324
23326
|
if (ai >= 0 && bi > 0) {
|
|
23325
23327
|
if (a === b) {
|
|
23326
23328
|
return [ai, bi];
|
|
@@ -23328,16 +23330,14 @@ var init_esm = __esm({
|
|
|
23328
23330
|
begs = [];
|
|
23329
23331
|
left = str.length;
|
|
23330
23332
|
while (i >= 0 && !result) {
|
|
23331
|
-
if (i
|
|
23333
|
+
if (i == ai) {
|
|
23332
23334
|
begs.push(i);
|
|
23333
23335
|
ai = str.indexOf(a, i + 1);
|
|
23334
|
-
} else if (begs.length
|
|
23335
|
-
|
|
23336
|
-
if (r !== void 0)
|
|
23337
|
-
result = [r, bi];
|
|
23336
|
+
} else if (begs.length == 1) {
|
|
23337
|
+
result = [begs.pop(), bi];
|
|
23338
23338
|
} else {
|
|
23339
23339
|
beg = begs.pop();
|
|
23340
|
-
if (beg
|
|
23340
|
+
if (beg < left) {
|
|
23341
23341
|
left = beg;
|
|
23342
23342
|
right = bi;
|
|
23343
23343
|
}
|
|
@@ -23345,179 +23345,163 @@ var init_esm = __esm({
|
|
|
23345
23345
|
}
|
|
23346
23346
|
i = ai < bi && ai >= 0 ? ai : bi;
|
|
23347
23347
|
}
|
|
23348
|
-
if (begs.length
|
|
23348
|
+
if (begs.length) {
|
|
23349
23349
|
result = [left, right];
|
|
23350
23350
|
}
|
|
23351
23351
|
}
|
|
23352
23352
|
return result;
|
|
23353
|
-
}
|
|
23353
|
+
}
|
|
23354
23354
|
}
|
|
23355
23355
|
});
|
|
23356
23356
|
|
|
23357
|
-
// node_modules/brace-expansion/
|
|
23358
|
-
|
|
23359
|
-
|
|
23360
|
-
|
|
23361
|
-
|
|
23362
|
-
|
|
23363
|
-
|
|
23364
|
-
|
|
23365
|
-
|
|
23366
|
-
|
|
23367
|
-
function
|
|
23368
|
-
|
|
23369
|
-
|
|
23370
|
-
|
|
23371
|
-
|
|
23372
|
-
|
|
23373
|
-
|
|
23374
|
-
|
|
23375
|
-
|
|
23376
|
-
|
|
23377
|
-
|
|
23378
|
-
|
|
23379
|
-
|
|
23380
|
-
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
|
|
23384
|
-
|
|
23385
|
-
|
|
23386
|
-
|
|
23387
|
-
}
|
|
23388
|
-
|
|
23389
|
-
|
|
23390
|
-
|
|
23391
|
-
|
|
23392
|
-
|
|
23393
|
-
|
|
23394
|
-
|
|
23395
|
-
|
|
23396
|
-
|
|
23397
|
-
|
|
23398
|
-
|
|
23399
|
-
|
|
23400
|
-
}
|
|
23401
|
-
|
|
23402
|
-
|
|
23403
|
-
}
|
|
23404
|
-
function lte(i, y) {
|
|
23405
|
-
return i <= y;
|
|
23406
|
-
}
|
|
23407
|
-
function gte(i, y) {
|
|
23408
|
-
return i >= y;
|
|
23409
|
-
}
|
|
23410
|
-
function expand_(str, max, isTop) {
|
|
23411
|
-
const expansions = [];
|
|
23412
|
-
const m = balanced("{", "}", str);
|
|
23413
|
-
if (!m)
|
|
23414
|
-
return [str];
|
|
23415
|
-
const pre = m.pre;
|
|
23416
|
-
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
23417
|
-
if (/\$$/.test(m.pre)) {
|
|
23418
|
-
for (let k = 0; k < post.length && k < max; k++) {
|
|
23419
|
-
const expansion = pre + "{" + m.body + "}" + post[k];
|
|
23420
|
-
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);
|
|
23421
23403
|
}
|
|
23422
|
-
|
|
23423
|
-
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
return
|
|
23433
|
-
}
|
|
23434
|
-
|
|
23435
|
-
|
|
23436
|
-
|
|
23437
|
-
|
|
23438
|
-
|
|
23439
|
-
|
|
23440
|
-
|
|
23441
|
-
|
|
23442
|
-
|
|
23443
|
-
|
|
23444
|
-
|
|
23445
|
-
|
|
23446
|
-
|
|
23447
|
-
|
|
23448
|
-
|
|
23449
|
-
|
|
23450
|
-
|
|
23451
|
-
|
|
23452
|
-
|
|
23453
|
-
|
|
23454
|
-
|
|
23455
|
-
|
|
23456
|
-
|
|
23457
|
-
|
|
23458
|
-
|
|
23459
|
-
|
|
23460
|
-
for (let i = x; test(i, y); i += incr) {
|
|
23461
|
-
let c;
|
|
23462
|
-
if (isAlphaSequence) {
|
|
23463
|
-
c = String.fromCharCode(i);
|
|
23464
|
-
if (c === "\\") {
|
|
23465
|
-
c = "";
|
|
23466
|
-
}
|
|
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(/\.\./);
|
|
23467
23442
|
} else {
|
|
23468
|
-
|
|
23469
|
-
if (
|
|
23470
|
-
|
|
23471
|
-
if (
|
|
23472
|
-
|
|
23473
|
-
|
|
23474
|
-
|
|
23475
|
-
|
|
23476
|
-
|
|
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
|
+
}
|
|
23477
23484
|
}
|
|
23478
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));
|
|
23479
23492
|
}
|
|
23480
23493
|
}
|
|
23481
|
-
N.
|
|
23482
|
-
|
|
23483
|
-
|
|
23484
|
-
|
|
23485
|
-
|
|
23486
|
-
|
|
23487
|
-
}
|
|
23488
|
-
}
|
|
23489
|
-
for (let j = 0; j < N.length; j++) {
|
|
23490
|
-
for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
23491
|
-
const expansion = pre + N[j] + post[k];
|
|
23492
|
-
if (!isTop || isSequence || expansion) {
|
|
23493
|
-
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
|
+
}
|
|
23494
23500
|
}
|
|
23495
23501
|
}
|
|
23502
|
+
return expansions;
|
|
23496
23503
|
}
|
|
23497
23504
|
}
|
|
23498
|
-
return expansions;
|
|
23499
|
-
}
|
|
23500
|
-
var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern, EXPANSION_MAX;
|
|
23501
|
-
var init_esm2 = __esm({
|
|
23502
|
-
"node_modules/brace-expansion/dist/esm/index.js"() {
|
|
23503
|
-
init_esm();
|
|
23504
|
-
escSlash = "\0SLASH" + Math.random() + "\0";
|
|
23505
|
-
escOpen = "\0OPEN" + Math.random() + "\0";
|
|
23506
|
-
escClose = "\0CLOSE" + Math.random() + "\0";
|
|
23507
|
-
escComma = "\0COMMA" + Math.random() + "\0";
|
|
23508
|
-
escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
23509
|
-
escSlashPattern = new RegExp(escSlash, "g");
|
|
23510
|
-
escOpenPattern = new RegExp(escOpen, "g");
|
|
23511
|
-
escClosePattern = new RegExp(escClose, "g");
|
|
23512
|
-
escCommaPattern = new RegExp(escComma, "g");
|
|
23513
|
-
escPeriodPattern = new RegExp(escPeriod, "g");
|
|
23514
|
-
slashPattern = /\\\\/g;
|
|
23515
|
-
openPattern = /\\{/g;
|
|
23516
|
-
closePattern = /\\}/g;
|
|
23517
|
-
commaPattern = /\\,/g;
|
|
23518
|
-
periodPattern = /\\./g;
|
|
23519
|
-
EXPANSION_MAX = 1e5;
|
|
23520
|
-
}
|
|
23521
23505
|
});
|
|
23522
23506
|
|
|
23523
23507
|
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
@@ -24289,10 +24273,10 @@ var init_escape = __esm({
|
|
|
24289
24273
|
});
|
|
24290
24274
|
|
|
24291
24275
|
// node_modules/minimatch/dist/esm/index.js
|
|
24292
|
-
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;
|
|
24293
|
-
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({
|
|
24294
24278
|
"node_modules/minimatch/dist/esm/index.js"() {
|
|
24295
|
-
|
|
24279
|
+
import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
24296
24280
|
init_assert_valid_pattern();
|
|
24297
24281
|
init_ast();
|
|
24298
24282
|
init_escape();
|
|
@@ -24415,7 +24399,7 @@ var init_esm3 = __esm({
|
|
|
24415
24399
|
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
24416
24400
|
return [pattern];
|
|
24417
24401
|
}
|
|
24418
|
-
return
|
|
24402
|
+
return (0, import_brace_expansion.default)(pattern);
|
|
24419
24403
|
};
|
|
24420
24404
|
minimatch.braceExpand = braceExpand;
|
|
24421
24405
|
makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
@@ -25091,7 +25075,7 @@ var init_esm3 = __esm({
|
|
|
25091
25075
|
|
|
25092
25076
|
// node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js
|
|
25093
25077
|
var perf, warned, PROCESS, emitWarning, AC, AS, shouldWarn, TYPE, isPosInt, getUintArray, ZeroArray, Stack, LRUCache;
|
|
25094
|
-
var
|
|
25078
|
+
var init_esm2 = __esm({
|
|
25095
25079
|
"node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js"() {
|
|
25096
25080
|
perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
25097
25081
|
warned = /* @__PURE__ */ new Set();
|
|
@@ -26468,7 +26452,7 @@ import { EventEmitter } from "node:events";
|
|
|
26468
26452
|
import Stream from "node:stream";
|
|
26469
26453
|
import { StringDecoder } from "node:string_decoder";
|
|
26470
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;
|
|
26471
|
-
var
|
|
26455
|
+
var init_esm3 = __esm({
|
|
26472
26456
|
"node_modules/minipass/dist/esm/index.js"() {
|
|
26473
26457
|
proc = typeof process === "object" && process ? process : {
|
|
26474
26458
|
stdout: null,
|
|
@@ -27357,10 +27341,10 @@ import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSyn
|
|
|
27357
27341
|
import * as actualFS from "node:fs";
|
|
27358
27342
|
import { lstat, readdir, readlink, realpath } from "node:fs/promises";
|
|
27359
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;
|
|
27360
|
-
var
|
|
27344
|
+
var init_esm4 = __esm({
|
|
27361
27345
|
"node_modules/path-scurry/dist/esm/index.js"() {
|
|
27362
|
-
|
|
27363
|
-
|
|
27346
|
+
init_esm2();
|
|
27347
|
+
init_esm3();
|
|
27364
27348
|
realpathSync2 = rps.native;
|
|
27365
27349
|
defaultFS = {
|
|
27366
27350
|
lstatSync,
|
|
@@ -29090,7 +29074,7 @@ var init_esm6 = __esm({
|
|
|
29090
29074
|
var isPatternList, isGlobList, Pattern;
|
|
29091
29075
|
var init_pattern = __esm({
|
|
29092
29076
|
"node_modules/glob/dist/esm/pattern.js"() {
|
|
29093
|
-
|
|
29077
|
+
init_esm();
|
|
29094
29078
|
isPatternList = (pl) => pl.length >= 1;
|
|
29095
29079
|
isGlobList = (gl) => gl.length >= 1;
|
|
29096
29080
|
Pattern = class _Pattern {
|
|
@@ -29261,7 +29245,7 @@ var init_pattern = __esm({
|
|
|
29261
29245
|
var defaultPlatform2, Ignore;
|
|
29262
29246
|
var init_ignore = __esm({
|
|
29263
29247
|
"node_modules/glob/dist/esm/ignore.js"() {
|
|
29264
|
-
|
|
29248
|
+
init_esm();
|
|
29265
29249
|
init_pattern();
|
|
29266
29250
|
defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
29267
29251
|
Ignore = class {
|
|
@@ -29355,7 +29339,7 @@ var init_ignore = __esm({
|
|
|
29355
29339
|
var HasWalkedCache, MatchRecord, SubWalks, Processor;
|
|
29356
29340
|
var init_processor = __esm({
|
|
29357
29341
|
"node_modules/glob/dist/esm/processor.js"() {
|
|
29358
|
-
|
|
29342
|
+
init_esm();
|
|
29359
29343
|
HasWalkedCache = class _HasWalkedCache {
|
|
29360
29344
|
store;
|
|
29361
29345
|
constructor(store = /* @__PURE__ */ new Map()) {
|
|
@@ -29582,7 +29566,7 @@ var init_processor = __esm({
|
|
|
29582
29566
|
var makeIgnore, GlobUtil, GlobWalker, GlobStream;
|
|
29583
29567
|
var init_walker = __esm({
|
|
29584
29568
|
"node_modules/glob/dist/esm/walker.js"() {
|
|
29585
|
-
|
|
29569
|
+
init_esm3();
|
|
29586
29570
|
init_ignore();
|
|
29587
29571
|
init_processor();
|
|
29588
29572
|
makeIgnore = (ignore2, opts) => typeof ignore2 === "string" ? new Ignore([ignore2], opts) : Array.isArray(ignore2) ? new Ignore(ignore2, opts) : ignore2;
|
|
@@ -29918,8 +29902,8 @@ import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
|
29918
29902
|
var defaultPlatform3, Glob;
|
|
29919
29903
|
var init_glob = __esm({
|
|
29920
29904
|
"node_modules/glob/dist/esm/glob.js"() {
|
|
29921
|
-
|
|
29922
|
-
|
|
29905
|
+
init_esm();
|
|
29906
|
+
init_esm4();
|
|
29923
29907
|
init_pattern();
|
|
29924
29908
|
init_walker();
|
|
29925
29909
|
defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
@@ -30127,7 +30111,7 @@ var init_glob = __esm({
|
|
|
30127
30111
|
var hasMagic;
|
|
30128
30112
|
var init_has_magic = __esm({
|
|
30129
30113
|
"node_modules/glob/dist/esm/has-magic.js"() {
|
|
30130
|
-
|
|
30114
|
+
init_esm();
|
|
30131
30115
|
hasMagic = (pattern, options = {}) => {
|
|
30132
30116
|
if (!Array.isArray(pattern)) {
|
|
30133
30117
|
pattern = [pattern];
|
|
@@ -30161,12 +30145,12 @@ function globIterate(pattern, options = {}) {
|
|
|
30161
30145
|
return new Glob(pattern, options).iterate();
|
|
30162
30146
|
}
|
|
30163
30147
|
var streamSync, stream, iterateSync, iterate, sync, glob;
|
|
30164
|
-
var
|
|
30148
|
+
var init_esm5 = __esm({
|
|
30165
30149
|
"node_modules/glob/dist/esm/index.js"() {
|
|
30166
|
-
|
|
30150
|
+
init_esm();
|
|
30167
30151
|
init_glob();
|
|
30168
30152
|
init_has_magic();
|
|
30169
|
-
|
|
30153
|
+
init_esm();
|
|
30170
30154
|
init_glob();
|
|
30171
30155
|
init_has_magic();
|
|
30172
30156
|
init_ignore();
|
|
@@ -31126,7 +31110,7 @@ var init_executePlan = __esm({
|
|
|
31126
31110
|
init_query();
|
|
31127
31111
|
init_extract();
|
|
31128
31112
|
init_delegate();
|
|
31129
|
-
|
|
31113
|
+
init_esm5();
|
|
31130
31114
|
init_bash();
|
|
31131
31115
|
RAW_OUTPUT_START = "<<<RAW_OUTPUT>>>";
|
|
31132
31116
|
RAW_OUTPUT_END = "<<<END_RAW_OUTPUT>>>";
|
|
@@ -32215,7 +32199,7 @@ var init_probeTool = __esm({
|
|
|
32215
32199
|
"src/agent/probeTool.js"() {
|
|
32216
32200
|
"use strict";
|
|
32217
32201
|
init_index();
|
|
32218
|
-
|
|
32202
|
+
init_esm5();
|
|
32219
32203
|
init_symlink_utils();
|
|
32220
32204
|
toolCallEmitter = new EventEmitter2();
|
|
32221
32205
|
activeToolExecutions = /* @__PURE__ */ new Map();
|
|
@@ -32965,13 +32949,13 @@ var init_index = __esm({
|
|
|
32965
32949
|
});
|
|
32966
32950
|
|
|
32967
32951
|
// src/agent/xmlParsingUtils.js
|
|
32968
|
-
function removeThinkingTags(xmlString) {
|
|
32952
|
+
function removeThinkingTags(xmlString, validTools = DEFAULT_VALID_TOOLS) {
|
|
32969
32953
|
let result = xmlString;
|
|
32970
32954
|
result = result.replace(/<thinking>[\s\S]*?<\/thinking>/g, "");
|
|
32971
32955
|
const thinkingIndex = result.indexOf("<thinking>");
|
|
32972
32956
|
if (thinkingIndex !== -1) {
|
|
32973
32957
|
const afterThinking = result.substring(thinkingIndex + "<thinking>".length);
|
|
32974
|
-
const toolPattern = buildToolTagPattern(
|
|
32958
|
+
const toolPattern = buildToolTagPattern(validTools);
|
|
32975
32959
|
const toolMatch = afterThinking.match(toolPattern);
|
|
32976
32960
|
if (toolMatch) {
|
|
32977
32961
|
const toolStart = thinkingIndex + "<thinking>".length + toolMatch.index;
|
|
@@ -33070,7 +33054,7 @@ function hasOtherToolTags(xmlString, validTools = []) {
|
|
|
33070
33054
|
}
|
|
33071
33055
|
function processXmlWithThinkingAndRecovery(xmlString, validTools = []) {
|
|
33072
33056
|
const thinkingContent = extractThinkingContent(xmlString);
|
|
33073
|
-
const cleanedXmlString = removeThinkingTags(xmlString);
|
|
33057
|
+
const cleanedXmlString = removeThinkingTags(xmlString, validTools.length > 0 ? validTools : void 0);
|
|
33074
33058
|
const recoveryResult = checkAttemptCompleteRecovery(cleanedXmlString, validTools);
|
|
33075
33059
|
if (process.env.DEBUG === "1" && thinkingContent) {
|
|
33076
33060
|
console.log(`[DEBUG] AI Thinking Process:
|
|
@@ -38472,23 +38456,23 @@ var init_regexp_parser = __esm({
|
|
|
38472
38456
|
return ASSERT_NEVER_REACH_HERE();
|
|
38473
38457
|
}
|
|
38474
38458
|
quantifier(isBacktracking = false) {
|
|
38475
|
-
let
|
|
38459
|
+
let range = void 0;
|
|
38476
38460
|
const begin = this.idx;
|
|
38477
38461
|
switch (this.popChar()) {
|
|
38478
38462
|
case "*":
|
|
38479
|
-
|
|
38463
|
+
range = {
|
|
38480
38464
|
atLeast: 0,
|
|
38481
38465
|
atMost: Infinity
|
|
38482
38466
|
};
|
|
38483
38467
|
break;
|
|
38484
38468
|
case "+":
|
|
38485
|
-
|
|
38469
|
+
range = {
|
|
38486
38470
|
atLeast: 1,
|
|
38487
38471
|
atMost: Infinity
|
|
38488
38472
|
};
|
|
38489
38473
|
break;
|
|
38490
38474
|
case "?":
|
|
38491
|
-
|
|
38475
|
+
range = {
|
|
38492
38476
|
atLeast: 0,
|
|
38493
38477
|
atMost: 1
|
|
38494
38478
|
};
|
|
@@ -38497,7 +38481,7 @@ var init_regexp_parser = __esm({
|
|
|
38497
38481
|
const atLeast = this.integerIncludingZero();
|
|
38498
38482
|
switch (this.popChar()) {
|
|
38499
38483
|
case "}":
|
|
38500
|
-
|
|
38484
|
+
range = {
|
|
38501
38485
|
atLeast,
|
|
38502
38486
|
atMost: atLeast
|
|
38503
38487
|
};
|
|
@@ -38506,12 +38490,12 @@ var init_regexp_parser = __esm({
|
|
|
38506
38490
|
let atMost;
|
|
38507
38491
|
if (this.isDigit()) {
|
|
38508
38492
|
atMost = this.integerIncludingZero();
|
|
38509
|
-
|
|
38493
|
+
range = {
|
|
38510
38494
|
atLeast,
|
|
38511
38495
|
atMost
|
|
38512
38496
|
};
|
|
38513
38497
|
} else {
|
|
38514
|
-
|
|
38498
|
+
range = {
|
|
38515
38499
|
atLeast,
|
|
38516
38500
|
atMost: Infinity
|
|
38517
38501
|
};
|
|
@@ -38519,25 +38503,25 @@ var init_regexp_parser = __esm({
|
|
|
38519
38503
|
this.consumeChar("}");
|
|
38520
38504
|
break;
|
|
38521
38505
|
}
|
|
38522
|
-
if (isBacktracking === true &&
|
|
38506
|
+
if (isBacktracking === true && range === void 0) {
|
|
38523
38507
|
return void 0;
|
|
38524
38508
|
}
|
|
38525
|
-
ASSERT_EXISTS(
|
|
38509
|
+
ASSERT_EXISTS(range);
|
|
38526
38510
|
break;
|
|
38527
38511
|
}
|
|
38528
|
-
if (isBacktracking === true &&
|
|
38512
|
+
if (isBacktracking === true && range === void 0) {
|
|
38529
38513
|
return void 0;
|
|
38530
38514
|
}
|
|
38531
|
-
if (ASSERT_EXISTS(
|
|
38515
|
+
if (ASSERT_EXISTS(range)) {
|
|
38532
38516
|
if (this.peekChar(0) === "?") {
|
|
38533
38517
|
this.consumeChar("?");
|
|
38534
|
-
|
|
38518
|
+
range.greedy = false;
|
|
38535
38519
|
} else {
|
|
38536
|
-
|
|
38520
|
+
range.greedy = true;
|
|
38537
38521
|
}
|
|
38538
|
-
|
|
38539
|
-
|
|
38540
|
-
return
|
|
38522
|
+
range.type = "Quantifier";
|
|
38523
|
+
range.loc = this.loc(begin);
|
|
38524
|
+
return range;
|
|
38541
38525
|
}
|
|
38542
38526
|
}
|
|
38543
38527
|
atom() {
|
|
@@ -39239,18 +39223,18 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) {
|
|
|
39239
39223
|
if (typeof code === "number") {
|
|
39240
39224
|
addOptimizedIdxToResult(code, result, ignoreCase);
|
|
39241
39225
|
} else {
|
|
39242
|
-
const
|
|
39226
|
+
const range = code;
|
|
39243
39227
|
if (ignoreCase === true) {
|
|
39244
|
-
for (let rangeCode =
|
|
39228
|
+
for (let rangeCode = range.from; rangeCode <= range.to; rangeCode++) {
|
|
39245
39229
|
addOptimizedIdxToResult(rangeCode, result, ignoreCase);
|
|
39246
39230
|
}
|
|
39247
39231
|
} else {
|
|
39248
|
-
for (let rangeCode =
|
|
39232
|
+
for (let rangeCode = range.from; rangeCode <= range.to && rangeCode < minOptimizationVal; rangeCode++) {
|
|
39249
39233
|
addOptimizedIdxToResult(rangeCode, result, ignoreCase);
|
|
39250
39234
|
}
|
|
39251
|
-
if (
|
|
39252
|
-
const minUnOptVal =
|
|
39253
|
-
const maxUnOptVal =
|
|
39235
|
+
if (range.to >= minOptimizationVal) {
|
|
39236
|
+
const minUnOptVal = range.from >= minOptimizationVal ? range.from : minOptimizationVal;
|
|
39237
|
+
const maxUnOptVal = range.to;
|
|
39254
39238
|
const minOptIdx = charCodeToOptimizedIndex(minUnOptVal);
|
|
39255
39239
|
const maxOptIdx = charCodeToOptimizedIndex(maxUnOptVal);
|
|
39256
39240
|
for (let currOptIdx = minOptIdx; currOptIdx <= maxOptIdx; currOptIdx++) {
|
|
@@ -39311,8 +39295,8 @@ function findCode(setNode, targetCharCodes) {
|
|
|
39311
39295
|
if (typeof codeOrRange === "number") {
|
|
39312
39296
|
return includes_default(targetCharCodes, codeOrRange);
|
|
39313
39297
|
} else {
|
|
39314
|
-
const
|
|
39315
|
-
return find_default(targetCharCodes, (targetCode) =>
|
|
39298
|
+
const range = codeOrRange;
|
|
39299
|
+
return find_default(targetCharCodes, (targetCode) => range.from <= targetCode && targetCode <= range.to) !== void 0;
|
|
39316
39300
|
}
|
|
39317
39301
|
});
|
|
39318
39302
|
}
|
|
@@ -57217,8 +57201,8 @@ var require_createRange = __commonJS({
|
|
|
57217
57201
|
var require_range = __commonJS({
|
|
57218
57202
|
"node_modules/lodash/range.js"(exports2, module2) {
|
|
57219
57203
|
var createRange = require_createRange();
|
|
57220
|
-
var
|
|
57221
|
-
module2.exports =
|
|
57204
|
+
var range = createRange();
|
|
57205
|
+
module2.exports = range;
|
|
57222
57206
|
}
|
|
57223
57207
|
});
|
|
57224
57208
|
|
|
@@ -77678,7 +77662,7 @@ var require_compose_scalar = __commonJS({
|
|
|
77678
77662
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
77679
77663
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
77680
77664
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
77681
|
-
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);
|
|
77682
77666
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
77683
77667
|
let tag;
|
|
77684
77668
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
@@ -77698,7 +77682,7 @@ var require_compose_scalar = __commonJS({
|
|
|
77698
77682
|
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
77699
77683
|
scalar = new Scalar.Scalar(value);
|
|
77700
77684
|
}
|
|
77701
|
-
scalar.range =
|
|
77685
|
+
scalar.range = range;
|
|
77702
77686
|
scalar.source = value;
|
|
77703
77687
|
if (type)
|
|
77704
77688
|
scalar.type = type;
|