nexus-agents 8.131.1 → 8.131.3
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-NEB2FSBW.js → chunk-5XMXBSPY.js} +3 -3
- package/dist/{chunk-2B55IL7S.js → chunk-AAE7F4CB.js} +7 -4
- package/dist/chunk-AAE7F4CB.js.map +1 -0
- package/dist/{chunk-QGXA3QXW.js → chunk-CGKENW3F.js} +93 -75
- package/dist/chunk-CGKENW3F.js.map +1 -0
- package/dist/{chunk-DFAT7RB7.js → chunk-FB4ZIOYS.js} +11 -12
- package/dist/chunk-FB4ZIOYS.js.map +1 -0
- package/dist/{chunk-ETJY6TMK.js → chunk-RWWPMTJK.js} +2 -2
- package/dist/{chunk-45AUQYWF.js → chunk-UETCXCAS.js} +193 -144
- package/dist/{chunk-45AUQYWF.js.map → chunk-UETCXCAS.js.map} +1 -1
- package/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-K4SNLVKO.js → consensus-vote-6ISHSQ73.js} +4 -4
- package/dist/{improvement-review-UYDDYXIB.js → improvement-review-S65JP2NY.js} +4 -4
- package/dist/index.d.ts +3 -26
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-IYJGONN3.js → setup-data-dir-EVVWRHY2.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-2B55IL7S.js.map +0 -1
- package/dist/chunk-DFAT7RB7.js.map +0 -1
- package/dist/chunk-QGXA3QXW.js.map +0 -1
- /package/dist/{chunk-NEB2FSBW.js.map → chunk-5XMXBSPY.js.map} +0 -0
- /package/dist/{chunk-ETJY6TMK.js.map → chunk-RWWPMTJK.js.map} +0 -0
- /package/dist/{consensus-vote-K4SNLVKO.js.map → consensus-vote-6ISHSQ73.js.map} +0 -0
- /package/dist/{improvement-review-UYDDYXIB.js.map → improvement-review-S65JP2NY.js.map} +0 -0
- /package/dist/{setup-data-dir-IYJGONN3.js.map → setup-data-dir-EVVWRHY2.js.map} +0 -0
|
@@ -13,16 +13,18 @@ import {
|
|
|
13
13
|
getToolAnnotations,
|
|
14
14
|
getToolTimeout,
|
|
15
15
|
isQuorumReached,
|
|
16
|
+
registerStructuredTool,
|
|
17
|
+
structuredToolSuccess,
|
|
16
18
|
toSdkCallbackWithTimeoutCheck,
|
|
17
19
|
toolStructuredError,
|
|
18
20
|
toolSuccess,
|
|
19
21
|
toolSuccessStructured,
|
|
20
22
|
withProgressHeartbeat,
|
|
21
23
|
wrapToolWithTimeout
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CGKENW3F.js";
|
|
23
25
|
import {
|
|
24
26
|
VERSION
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RWWPMTJK.js";
|
|
26
28
|
import {
|
|
27
29
|
allOf
|
|
28
30
|
} from "./chunk-EZNIYU5T.js";
|
|
@@ -9286,11 +9288,7 @@ async function runSyncConsensusVote(deps, notifier, args) {
|
|
|
9286
9288
|
approvalPercentage: result.value.approvalPercentage,
|
|
9287
9289
|
voteCount: result.value.votes.length
|
|
9288
9290
|
});
|
|
9289
|
-
|
|
9290
|
-
return {
|
|
9291
|
-
...toolSuccess(JSON.stringify(result.value, null, 2)),
|
|
9292
|
-
structuredContent: data
|
|
9293
|
-
};
|
|
9291
|
+
return toolSuccessStructured({ ...result.value });
|
|
9294
9292
|
}
|
|
9295
9293
|
function createConsensusVoteHandler(deps) {
|
|
9296
9294
|
const notifier = deps.notifier ?? NOOP_NOTIFIER;
|
|
@@ -9334,18 +9332,18 @@ function createConsensusVoteHandler(deps) {
|
|
|
9334
9332
|
};
|
|
9335
9333
|
}
|
|
9336
9334
|
var ASYNC_ENVELOPES = {
|
|
9337
|
-
pending: (jobId) =>
|
|
9335
|
+
pending: (jobId) => structuredToolSuccess(z15.object(CONSENSUS_VOTE_OUTPUT_SCHEMA), {
|
|
9338
9336
|
status: "pending",
|
|
9339
9337
|
jobId,
|
|
9340
9338
|
pollTool: "get_job_result",
|
|
9341
9339
|
note: 'Poll via get_job_result({ jobId }) until status !== "pending".'
|
|
9342
9340
|
}),
|
|
9343
|
-
busy: (retryAfterMs, toolName) =>
|
|
9341
|
+
busy: (retryAfterMs, toolName) => structuredToolSuccess(z15.object(CONSENSUS_VOTE_OUTPUT_SCHEMA), {
|
|
9344
9342
|
status: "busy",
|
|
9345
9343
|
retryAfterMs,
|
|
9346
9344
|
note: `Async-mode concurrency cap reached for ${toolName}. Retry later or use dispatch: "sync".`
|
|
9347
9345
|
}),
|
|
9348
|
-
replay: (jobId) =>
|
|
9346
|
+
replay: (jobId) => structuredToolSuccess(z15.object(CONSENSUS_VOTE_OUTPUT_SCHEMA), {
|
|
9349
9347
|
status: "replay",
|
|
9350
9348
|
jobId,
|
|
9351
9349
|
pollTool: "get_job_result",
|
|
@@ -9507,7 +9505,8 @@ function registerConsensusVoteTool(server, deps) {
|
|
|
9507
9505
|
timeoutMs,
|
|
9508
9506
|
logger: logger12
|
|
9509
9507
|
});
|
|
9510
|
-
|
|
9508
|
+
registerStructuredTool(
|
|
9509
|
+
server,
|
|
9511
9510
|
"consensus_vote",
|
|
9512
9511
|
{
|
|
9513
9512
|
description: CONSENSUS_VOTE_DESCRIPTION,
|
|
@@ -9637,4 +9636,4 @@ export {
|
|
|
9637
9636
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
9638
9637
|
registerConsensusVoteTool
|
|
9639
9638
|
};
|
|
9640
|
-
//# sourceMappingURL=chunk-
|
|
9639
|
+
//# sourceMappingURL=chunk-FB4ZIOYS.js.map
|