@cydm/pie 2.6.6 → 2.6.7
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/builtin/extensions/ask-user/index.js +3 -3
- package/dist/builtin/extensions/mcp-adapter/index.js +93 -38
- package/dist/builtin/extensions/plan-mode/index.js +3 -3
- package/dist/builtin/extensions/subagent/index.js +362 -6
- package/dist/builtin/extensions/todo/index.js +3 -3
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +1 -1
- package/dist/builtin/skills/chrome-devtools-axi/{cli-QAILYGLM.js → cli-4ITIR57L.js} +31 -2
- package/dist/chunks/{chunk-G5B6D35K.js → chunk-7B4IIBVS.js} +10 -1
- package/dist/chunks/{chunk-KEARZX6F.js → chunk-PAC62XU4.js} +1 -1
- package/dist/chunks/{chunk-H6BAM2N4.js → chunk-T6GMEDIE.js} +476 -69
- package/dist/chunks/{chunk-OWSXALCG.js → chunk-VUKF7U7Q.js} +1 -1
- package/dist/chunks/{src-ZJXBS2DB.js → src-HPIBCE2I.js} +2 -2
- package/dist/chunks/{test-stream-TI2S25NY.js → test-stream-Y7WXELAJ.js} +1 -1
- package/dist/cli.js +2475 -2469
- package/package.json +2 -2
|
@@ -1965,10 +1965,39 @@ function commandLineLooksLikeBridge(command) {
|
|
|
1965
1965
|
const tokens = splitCommandLine(command);
|
|
1966
1966
|
if (tokens.length === 0) return false;
|
|
1967
1967
|
if (!/(?:^|[\\/])(node|npx|tsx)(?:\.(?:exe|cmd))?$/i.test(tokens[0])) return false;
|
|
1968
|
+
const operandOptions = /* @__PURE__ */ new Set([
|
|
1969
|
+
"--require",
|
|
1970
|
+
"-r",
|
|
1971
|
+
"--import",
|
|
1972
|
+
"--loader",
|
|
1973
|
+
"--experimental-loader",
|
|
1974
|
+
"--conditions",
|
|
1975
|
+
"-C",
|
|
1976
|
+
"--inspect-port",
|
|
1977
|
+
"--title",
|
|
1978
|
+
"--watch-path",
|
|
1979
|
+
"--max-old-space-size",
|
|
1980
|
+
"--max-semi-space-size"
|
|
1981
|
+
]);
|
|
1982
|
+
let optionsEnded = false;
|
|
1983
|
+
const npxRunner = /(?:^|[\\/])npx(?:\.(?:exe|cmd))?$/i.test(tokens[0]);
|
|
1984
|
+
let loaderSeen = false;
|
|
1968
1985
|
for (let index = 1; index < tokens.length; index++) {
|
|
1969
1986
|
const token = tokens[index];
|
|
1970
|
-
if (token
|
|
1971
|
-
|
|
1987
|
+
if (!optionsEnded && token === "--") {
|
|
1988
|
+
optionsEnded = true;
|
|
1989
|
+
continue;
|
|
1990
|
+
}
|
|
1991
|
+
if (!optionsEnded && token.startsWith("-")) {
|
|
1992
|
+
const option = token.split("=", 1)[0];
|
|
1993
|
+
if (["-e", "--eval", "-p", "--print"].includes(option)) return false;
|
|
1994
|
+
if (!token.includes("=") && operandOptions.has(option)) index++;
|
|
1995
|
+
continue;
|
|
1996
|
+
}
|
|
1997
|
+
if (npxRunner && !loaderSeen && /(?:^|[\\/])tsx(?:\.(?:exe|cmd))?$/i.test(token)) {
|
|
1998
|
+
loaderSeen = true;
|
|
1999
|
+
continue;
|
|
2000
|
+
}
|
|
1972
2001
|
const base = token.split(/[\\/]/).pop() ?? token;
|
|
1973
2002
|
return /^chrome-devtools-axi-bridge\.(?:js|mjs|cjs|ts)$/i.test(base);
|
|
1974
2003
|
}
|
|
@@ -1457,6 +1457,7 @@ var PuerTSFileSystem = class {
|
|
|
1457
1457
|
const phantom = lastProbe.selectedBytes === 0 && !lastProbe.firstLineExceedsLimit && totalLines > 1;
|
|
1458
1458
|
let result;
|
|
1459
1459
|
let windowOffsetLine = 0;
|
|
1460
|
+
let narrowedByBytes = false;
|
|
1460
1461
|
for (; ; ) {
|
|
1461
1462
|
windowOffsetLine = Math.max(0, totalLines - effectiveN - (phantom ? 1 : 0));
|
|
1462
1463
|
result = await this.readTextRange(path, {
|
|
@@ -1468,12 +1469,14 @@ var PuerTSFileSystem = class {
|
|
|
1468
1469
|
const byteTruncated = result.truncated && result.truncatedBy === "bytes" && !result.firstLineExceedsLimit;
|
|
1469
1470
|
const oversizedHead = result.truncated && result.firstLineExceedsLimit;
|
|
1470
1471
|
if (byteTruncated && effectiveN > 1) {
|
|
1472
|
+
narrowedByBytes = true;
|
|
1471
1473
|
effectiveN = Math.max(1, Math.floor(effectiveN / 2));
|
|
1472
1474
|
continue;
|
|
1473
1475
|
}
|
|
1474
1476
|
if (oversizedHead) {
|
|
1475
1477
|
const nextEffectiveN = totalLines - (phantom ? 1 : 0) - (windowOffsetLine + 1);
|
|
1476
1478
|
if (nextEffectiveN < 1 || nextEffectiveN >= effectiveN) break;
|
|
1479
|
+
narrowedByBytes = true;
|
|
1477
1480
|
effectiveN = nextEffectiveN;
|
|
1478
1481
|
continue;
|
|
1479
1482
|
}
|
|
@@ -1481,7 +1484,13 @@ var PuerTSFileSystem = class {
|
|
|
1481
1484
|
}
|
|
1482
1485
|
const stable = countProbe.mtimeMs === lastProbe.mtimeMs && lastProbe.mtimeMs === result.mtimeMs && countProbe.contentHash === lastProbe.contentHash && lastProbe.contentHash === result.contentHash;
|
|
1483
1486
|
if (stable || attempt >= 2) {
|
|
1484
|
-
return {
|
|
1487
|
+
return {
|
|
1488
|
+
...result,
|
|
1489
|
+
truncated: result.truncated || narrowedByBytes,
|
|
1490
|
+
truncatedBy: narrowedByBytes ? "bytes" : result.truncatedBy,
|
|
1491
|
+
endsWithNewline: phantom,
|
|
1492
|
+
outputStartLine: windowOffsetLine + 1
|
|
1493
|
+
};
|
|
1485
1494
|
}
|
|
1486
1495
|
}
|
|
1487
1496
|
}
|