nexus-agents 8.38.0 → 8.38.2
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/{chunk-Z3NS7DOL.js → chunk-4OIZ763R.js} +2 -2
- package/dist/{chunk-YOU3NGKA.js → chunk-A3BCACYO.js} +3 -3
- package/dist/{chunk-RTKKVXJQ.js → chunk-AB5FT2E6.js} +3 -3
- package/dist/{chunk-T6YABBY5.js → chunk-IMYGE2GM.js} +2 -2
- package/dist/{chunk-Q32VMHM7.js → chunk-LUE2BZZK.js} +44 -10
- package/dist/{chunk-Q32VMHM7.js.map → chunk-LUE2BZZK.js.map} +1 -1
- package/dist/{chunk-O6WI4YK5.js → chunk-RFKWVP7I.js} +2 -2
- package/dist/{chunk-FIHQ56EJ.js → chunk-UV5MKV4J.js} +25 -19
- package/dist/chunk-UV5MKV4J.js.map +1 -0
- package/dist/cli.js +8 -8
- package/dist/{consensus-vote-VOFIDTDK.js → consensus-vote-VU4ZMMMM.js} +4 -4
- package/dist/{improvement-review-O6TPGZWN.js → improvement-review-WNAAWLCE.js} +4 -4
- package/dist/index.js +7 -7
- package/dist/{issue-triage-MTSKBCJS.js → issue-triage-BAZ2SY4F.js} +2 -2
- package/dist/{setup-data-dir-PDYGW4AC.js → setup-data-dir-STWPI2EU.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-FIHQ56EJ.js.map +0 -1
- /package/dist/{chunk-Z3NS7DOL.js.map → chunk-4OIZ763R.js.map} +0 -0
- /package/dist/{chunk-YOU3NGKA.js.map → chunk-A3BCACYO.js.map} +0 -0
- /package/dist/{chunk-RTKKVXJQ.js.map → chunk-AB5FT2E6.js.map} +0 -0
- /package/dist/{chunk-T6YABBY5.js.map → chunk-IMYGE2GM.js.map} +0 -0
- /package/dist/{chunk-O6WI4YK5.js.map → chunk-RFKWVP7I.js.map} +0 -0
- /package/dist/{consensus-vote-VOFIDTDK.js.map → consensus-vote-VU4ZMMMM.js.map} +0 -0
- /package/dist/{improvement-review-O6TPGZWN.js.map → improvement-review-WNAAWLCE.js.map} +0 -0
- /package/dist/{issue-triage-MTSKBCJS.js.map → issue-triage-BAZ2SY4F.js.map} +0 -0
- /package/dist/{setup-data-dir-PDYGW4AC.js.map → setup-data-dir-STWPI2EU.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RFKWVP7I.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2173,4 +2173,4 @@ export {
|
|
|
2173
2173
|
runImprovementReview,
|
|
2174
2174
|
registerImprovementReviewTool
|
|
2175
2175
|
};
|
|
2176
|
-
//# sourceMappingURL=chunk-
|
|
2176
|
+
//# sourceMappingURL=chunk-4OIZ763R.js.map
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RFKWVP7I.js";
|
|
27
27
|
import {
|
|
28
28
|
VERSION
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IMYGE2GM.js";
|
|
30
30
|
import {
|
|
31
31
|
assessPanelIndependence,
|
|
32
32
|
countDistinctModels,
|
|
@@ -7806,4 +7806,4 @@ export {
|
|
|
7806
7806
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
7807
7807
|
registerConsensusVoteTool
|
|
7808
7808
|
};
|
|
7809
|
-
//# sourceMappingURL=chunk-
|
|
7809
|
+
//# sourceMappingURL=chunk-A3BCACYO.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
NODE_ENGINE_RANGE,
|
|
9
9
|
VERSION,
|
|
10
10
|
isNodeVersionSupported
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IMYGE2GM.js";
|
|
12
12
|
import {
|
|
13
13
|
capitalize
|
|
14
14
|
} from "./chunk-7LP6VJRP.js";
|
|
@@ -1228,7 +1228,7 @@ async function runDoctorFix(result) {
|
|
|
1228
1228
|
writeLine2("\u2500".repeat(40));
|
|
1229
1229
|
let fixCount = 0;
|
|
1230
1230
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1231
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1231
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-STWPI2EU.js");
|
|
1232
1232
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1233
1233
|
writeLine2(outcome.line);
|
|
1234
1234
|
if (outcome.counted) fixCount++;
|
|
@@ -1330,4 +1330,4 @@ export {
|
|
|
1330
1330
|
startStdioServer,
|
|
1331
1331
|
closeServer
|
|
1332
1332
|
};
|
|
1333
|
-
//# sourceMappingURL=chunk-
|
|
1333
|
+
//# sourceMappingURL=chunk-AB5FT2E6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
2
|
import semver from "semver";
|
|
3
|
-
var VERSION = true ? "8.38.
|
|
3
|
+
var VERSION = true ? "8.38.2" : "dev";
|
|
4
4
|
var NODE_ENGINE_RANGE = ">=22.5.0";
|
|
5
5
|
function isNodeVersionSupported(version) {
|
|
6
6
|
return semver.satisfies(version, NODE_ENGINE_RANGE);
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
NODE_ENGINE_RANGE,
|
|
12
12
|
isNodeVersionSupported
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-IMYGE2GM.js.map
|
|
@@ -1442,16 +1442,15 @@ async function resolveGhTokenImpl() {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
return cachedGhToken;
|
|
1444
1444
|
}
|
|
1445
|
-
|
|
1445
|
+
var GH_API_PAGE_SIZE = 100;
|
|
1446
|
+
async function execGhApiRaw(args) {
|
|
1446
1447
|
const { execFile } = await import("node:child_process");
|
|
1447
1448
|
const { promisify } = await import("node:util");
|
|
1448
1449
|
const exec = promisify(execFile);
|
|
1449
|
-
const args = ["api", endpoint];
|
|
1450
|
-
if (method !== void 0) args.push("--method", method);
|
|
1451
1450
|
const token = await resolveGhToken();
|
|
1452
1451
|
const env = token !== void 0 ? { ...process.env, GH_TOKEN: token } : void 0;
|
|
1453
1452
|
try {
|
|
1454
|
-
const { stdout } = await exec("gh", args, {
|
|
1453
|
+
const { stdout } = await exec("gh", [...args], {
|
|
1455
1454
|
maxBuffer: 10 * 1024 * 1024,
|
|
1456
1455
|
timeout: CLI_SUBPROCESS_TIMEOUTS.ghCommandMs,
|
|
1457
1456
|
...env !== void 0 ? { env } : {}
|
|
@@ -1461,12 +1460,43 @@ async function execGhApi(endpoint, method) {
|
|
|
1461
1460
|
const execError = error;
|
|
1462
1461
|
return err(
|
|
1463
1462
|
new ScmError(`gh api failed: ${execError.message}`, "github", void 0, {
|
|
1464
|
-
endpoint,
|
|
1463
|
+
endpoint: args[1] ?? "",
|
|
1465
1464
|
stderr: execError.stderr
|
|
1466
1465
|
})
|
|
1467
1466
|
);
|
|
1468
1467
|
}
|
|
1469
1468
|
}
|
|
1469
|
+
async function execGhApi(endpoint, method) {
|
|
1470
|
+
const args = ["api", endpoint];
|
|
1471
|
+
if (method !== void 0) args.push("--method", method);
|
|
1472
|
+
return execGhApiRaw(args);
|
|
1473
|
+
}
|
|
1474
|
+
async function execGhApiList(endpoint) {
|
|
1475
|
+
const separator = endpoint.includes("?") ? "&" : "?";
|
|
1476
|
+
const result = await execGhApiRaw([
|
|
1477
|
+
"api",
|
|
1478
|
+
`${endpoint}${separator}per_page=${String(GH_API_PAGE_SIZE)}`,
|
|
1479
|
+
"--paginate",
|
|
1480
|
+
"--jq",
|
|
1481
|
+
".[]"
|
|
1482
|
+
]);
|
|
1483
|
+
if (!result.ok) return result;
|
|
1484
|
+
const lines = result.value.split("\n").filter((l) => l.trim() !== "");
|
|
1485
|
+
try {
|
|
1486
|
+
return ok(lines.map((l) => JSON.parse(l)));
|
|
1487
|
+
} catch (error) {
|
|
1488
|
+
return err(
|
|
1489
|
+
new ScmError(
|
|
1490
|
+
`gh api returned unparseable page data: ${getErrorMessage(error)}`,
|
|
1491
|
+
"github",
|
|
1492
|
+
void 0,
|
|
1493
|
+
{
|
|
1494
|
+
endpoint
|
|
1495
|
+
}
|
|
1496
|
+
)
|
|
1497
|
+
);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1470
1500
|
function mapFileChange(raw) {
|
|
1471
1501
|
const statusMap = {
|
|
1472
1502
|
added: "added",
|
|
@@ -1498,11 +1528,13 @@ var GitHubReviewer = class {
|
|
|
1498
1528
|
logger4.debug("Getting PR detail", { repo, prNumber });
|
|
1499
1529
|
const prResult = await execGhApi(`repos/${repo}/pulls/${String(prNumber)}`);
|
|
1500
1530
|
if (!prResult.ok) return prResult;
|
|
1501
|
-
const filesResult = await
|
|
1531
|
+
const filesResult = await execGhApiList(
|
|
1532
|
+
`repos/${repo}/pulls/${String(prNumber)}/files`
|
|
1533
|
+
);
|
|
1502
1534
|
if (!filesResult.ok) return filesResult;
|
|
1535
|
+
const files = filesResult.value;
|
|
1503
1536
|
try {
|
|
1504
1537
|
const pr = JSON.parse(prResult.value);
|
|
1505
|
-
const files = JSON.parse(filesResult.value);
|
|
1506
1538
|
return ok({
|
|
1507
1539
|
number: pr.number,
|
|
1508
1540
|
title: pr.title,
|
|
@@ -1580,10 +1612,12 @@ var GitHubReviewer = class {
|
|
|
1580
1612
|
async listCommentDetails(issueNumber) {
|
|
1581
1613
|
const repo = this.provider.repo;
|
|
1582
1614
|
logger4.debug("Listing comment details", { repo, issueNumber });
|
|
1583
|
-
const result = await
|
|
1615
|
+
const result = await execGhApiList(
|
|
1616
|
+
`repos/${repo}/issues/${String(issueNumber)}/comments`
|
|
1617
|
+
);
|
|
1584
1618
|
if (!result.ok) return result;
|
|
1585
1619
|
try {
|
|
1586
|
-
const comments =
|
|
1620
|
+
const comments = result.value;
|
|
1587
1621
|
return ok(
|
|
1588
1622
|
comments.map((c) => ({
|
|
1589
1623
|
id: c.id,
|
|
@@ -2128,4 +2162,4 @@ export {
|
|
|
2128
2162
|
IssueTriage,
|
|
2129
2163
|
createIssueTriage
|
|
2130
2164
|
};
|
|
2131
|
-
//# sourceMappingURL=chunk-
|
|
2165
|
+
//# sourceMappingURL=chunk-LUE2BZZK.js.map
|