nexus-agents 2.30.6 → 2.30.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/{chunk-Q52QFWDQ.js → chunk-42FGTDIW.js} +2 -2
- package/dist/{chunk-T7SJVP5R.js → chunk-7GW7ZRJ3.js} +7 -2
- package/dist/{chunk-T7SJVP5R.js.map → chunk-7GW7ZRJ3.js.map} +1 -1
- package/dist/{chunk-MD2ABS6R.js → chunk-WGP6G6QU.js} +3 -3
- package/dist/cli.js +14 -14
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{setup-command-JVFJWD7A.js → setup-command-SP43B2UM.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-Q52QFWDQ.js.map → chunk-42FGTDIW.js.map} +0 -0
- /package/dist/{chunk-MD2ABS6R.js.map → chunk-WGP6G6QU.js.map} +0 -0
- /package/dist/{setup-command-JVFJWD7A.js.map → setup-command-SP43B2UM.js.map} +0 -0
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-CLYZ7FWP.js";
|
|
25
25
|
|
|
26
26
|
// src/version.ts
|
|
27
|
-
var VERSION = true ? "2.30.
|
|
27
|
+
var VERSION = true ? "2.30.7" : "dev";
|
|
28
28
|
|
|
29
29
|
// src/cli/setup-data-dir.ts
|
|
30
30
|
import { mkdirSync, existsSync as existsSync2 } from "fs";
|
|
@@ -758,7 +758,7 @@ async function runDoctorFix(result) {
|
|
|
758
758
|
writeLine2("\u2500".repeat(40));
|
|
759
759
|
let fixCount = 0;
|
|
760
760
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
761
|
-
const { runSetup } = await import("./setup-command-
|
|
761
|
+
const { runSetup } = await import("./setup-command-SP43B2UM.js");
|
|
762
762
|
const setupResult = runSetup({
|
|
763
763
|
skipMcp: true,
|
|
764
764
|
skipRules: true,
|
|
@@ -836,4 +836,4 @@ export {
|
|
|
836
836
|
startStdioServer,
|
|
837
837
|
closeServer
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=chunk-
|
|
839
|
+
//# sourceMappingURL=chunk-WGP6G6QU.js.map
|
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-VCYDKMGJ.js";
|
|
16
16
|
import {
|
|
17
17
|
setupCommandAsync
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-42FGTDIW.js";
|
|
19
19
|
import "./chunk-32ZTPL7Q.js";
|
|
20
20
|
import {
|
|
21
21
|
AuthHandler,
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
validateNexusEnv,
|
|
151
151
|
validateWorkflow,
|
|
152
152
|
wrapInMarkdownFence
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-7GW7ZRJ3.js";
|
|
154
154
|
import {
|
|
155
155
|
resolveToken
|
|
156
156
|
} from "./chunk-2HAZZAU5.js";
|
|
@@ -200,7 +200,7 @@ import {
|
|
|
200
200
|
doctorCommand,
|
|
201
201
|
initDataDirectories,
|
|
202
202
|
runDoctor
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-WGP6G6QU.js";
|
|
204
204
|
import "./chunk-ZXIFNJ7Q.js";
|
|
205
205
|
import {
|
|
206
206
|
MemoryError
|
|
@@ -1671,8 +1671,18 @@ var BaseEvaluator = class {
|
|
|
1671
1671
|
*/
|
|
1672
1672
|
async evaluate(component) {
|
|
1673
1673
|
const startTime = getTimeProvider().now();
|
|
1674
|
+
let timeoutId;
|
|
1675
|
+
const timeoutPromise = new Promise((_, reject) => {
|
|
1676
|
+
timeoutId = setTimeout(() => {
|
|
1677
|
+
reject(new Error("Evaluation timeout"));
|
|
1678
|
+
}, this.timeoutMs);
|
|
1679
|
+
});
|
|
1674
1680
|
try {
|
|
1675
|
-
const result = await Promise.race([this.performEvaluation(component),
|
|
1681
|
+
const result = await Promise.race([this.performEvaluation(component), timeoutPromise]).finally(
|
|
1682
|
+
() => {
|
|
1683
|
+
if (timeoutId !== void 0) clearTimeout(timeoutId);
|
|
1684
|
+
}
|
|
1685
|
+
);
|
|
1676
1686
|
this.log.debug("Evaluation complete", {
|
|
1677
1687
|
component: component.path,
|
|
1678
1688
|
recommendation: result.recommendation,
|
|
@@ -1710,16 +1720,6 @@ var BaseEvaluator = class {
|
|
|
1710
1720
|
cite(metric, value, source, threshold) {
|
|
1711
1721
|
return { metric, value, source, ...threshold !== void 0 ? { threshold } : {} };
|
|
1712
1722
|
}
|
|
1713
|
-
/**
|
|
1714
|
-
* Timeout promise.
|
|
1715
|
-
*/
|
|
1716
|
-
timeout() {
|
|
1717
|
-
return new Promise((_, reject) => {
|
|
1718
|
-
setTimeout(() => {
|
|
1719
|
-
reject(new Error("Evaluation timeout"));
|
|
1720
|
-
}, this.timeoutMs);
|
|
1721
|
-
});
|
|
1722
|
-
}
|
|
1723
1723
|
};
|
|
1724
1724
|
|
|
1725
1725
|
// src/self-eval/code-quality-evaluator.ts
|