nexus-agents 2.128.3 → 2.128.4
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-ND7FZ53Q.js → chunk-C2VEMJAJ.js} +2 -2
- package/dist/{chunk-3Y2OKEHQ.js → chunk-IFJQPEOV.js} +13 -3
- package/dist/{chunk-3Y2OKEHQ.js.map → chunk-IFJQPEOV.js.map} +1 -1
- package/dist/{chunk-AOVWC7LS.js → chunk-IKWTX7PW.js} +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -2
- package/dist/{setup-command-C6MGIEZJ.js → setup-command-HDI4JUYO.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-ND7FZ53Q.js.map → chunk-C2VEMJAJ.js.map} +0 -0
- /package/dist/{chunk-AOVWC7LS.js.map → chunk-IKWTX7PW.js.map} +0 -0
- /package/dist/{setup-command-C6MGIEZJ.js.map → setup-command-HDI4JUYO.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IKWTX7PW.js";
|
|
12
12
|
import {
|
|
13
13
|
BUILT_IN_EXPERTS
|
|
14
14
|
} from "./chunk-ZM4O442V.js";
|
|
@@ -2000,4 +2000,4 @@ export {
|
|
|
2000
2000
|
setupCommand,
|
|
2001
2001
|
setupCommandAsync
|
|
2002
2002
|
};
|
|
2003
|
-
//# sourceMappingURL=chunk-
|
|
2003
|
+
//# sourceMappingURL=chunk-C2VEMJAJ.js.map
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
DEFAULT_TASK_TTL_MS,
|
|
123
123
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
124
124
|
clampTaskTtl
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-IKWTX7PW.js";
|
|
126
126
|
import {
|
|
127
127
|
resolveInsideRoot
|
|
128
128
|
} from "./chunk-NUBSJGQZ.js";
|
|
@@ -35777,6 +35777,12 @@ function lookupExpert(registry, expertId) {
|
|
|
35777
35777
|
}
|
|
35778
35778
|
return { ok: true, expert };
|
|
35779
35779
|
}
|
|
35780
|
+
function extractExpertConfidence(output2) {
|
|
35781
|
+
if (typeof output2 !== "object" || output2 === null) return void 0;
|
|
35782
|
+
const c = output2.confidence;
|
|
35783
|
+
if (typeof c !== "number" || !Number.isFinite(c) || c < 0 || c > 1) return void 0;
|
|
35784
|
+
return c;
|
|
35785
|
+
}
|
|
35780
35786
|
function buildSuccessResponse(params) {
|
|
35781
35787
|
const outputStr = typeof params.output === "string" ? params.output : JSON.stringify(params.output, null, 2);
|
|
35782
35788
|
const response = {
|
|
@@ -35790,6 +35796,10 @@ function buildSuccessResponse(params) {
|
|
|
35790
35796
|
if (params.modelUsed !== void 0) {
|
|
35791
35797
|
response.modelUsed = params.modelUsed;
|
|
35792
35798
|
}
|
|
35799
|
+
const confidence = extractExpertConfidence(params.output);
|
|
35800
|
+
if (confidence !== void 0) {
|
|
35801
|
+
response.confidence = confidence;
|
|
35802
|
+
}
|
|
35793
35803
|
return response;
|
|
35794
35804
|
}
|
|
35795
35805
|
function observeExpertContextIfOk(result, expert, task, durationMs, logger57) {
|
|
@@ -36117,7 +36127,7 @@ function registerExecuteExpertTool(server, deps) {
|
|
|
36117
36127
|
const logger57 = deps.logger ?? createLogger({ tool: "execute_expert" });
|
|
36118
36128
|
const notifier = deps.notifier ?? createMcpNotifier(server);
|
|
36119
36129
|
const depsWithNotifier = { ...deps, notifier };
|
|
36120
|
-
const description = "Run a task through an expert YOU PREVIOUSLY CREATED via `create_expert`. Requires the expertId returned by create_expert; not for ad-hoc execution. Returns the expert analysis including output, status, model used, and
|
|
36130
|
+
const description = "Run a task through an expert YOU PREVIOUSLY CREATED via `create_expert`. Requires the expertId returned by create_expert; not for ad-hoc execution. Returns the expert analysis including output, status, model used, token usage, and the expert's confidence (0-1) when it reports one.";
|
|
36121
36131
|
server.experimental.tasks.registerToolTask(
|
|
36122
36132
|
"execute_expert",
|
|
36123
36133
|
{
|
|
@@ -50479,4 +50489,4 @@ export {
|
|
|
50479
50489
|
shutdownFeedbackSubscriber,
|
|
50480
50490
|
createEventBusBridge
|
|
50481
50491
|
};
|
|
50482
|
-
//# sourceMappingURL=chunk-
|
|
50492
|
+
//# sourceMappingURL=chunk-IFJQPEOV.js.map
|