nexus-agents 2.131.0 → 2.132.0
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/README.md +1 -1
- package/dist/{child-mcp-config-M7WR4XBB.js → child-mcp-config-R67B2KM6.js} +4 -4
- package/dist/{chunk-5GQMP7QN.js → chunk-27DRQWON.js} +7 -123
- package/dist/chunk-27DRQWON.js.map +1 -0
- package/dist/{chunk-VTTPYENR.js → chunk-2CLFX73Y.js} +2 -2
- package/dist/{chunk-RPT5WZAT.js → chunk-2JZ55G3X.js} +616 -336
- package/dist/chunk-2JZ55G3X.js.map +1 -0
- package/dist/{chunk-ACARS7NG.js → chunk-4CLBJ2NA.js} +3 -3
- package/dist/{chunk-ULIAUMQD.js → chunk-4DLHM6LI.js} +6 -2
- package/dist/{chunk-ULIAUMQD.js.map → chunk-4DLHM6LI.js.map} +1 -1
- package/dist/{chunk-2Z4V5THE.js → chunk-7BONPRR2.js} +2 -2
- package/dist/{chunk-AVRE45DO.js → chunk-CI5KGCX5.js} +3 -3
- package/dist/{chunk-E4LAXVQE.js → chunk-E4IYX7LD.js} +2 -2
- package/dist/{chunk-A4MPCXZ7.js → chunk-ECDJM6UB.js} +2 -2
- package/dist/{chunk-7IMI64LW.js → chunk-EFDXX5MC.js} +3 -3
- package/dist/{chunk-ZM3S6PTN.js → chunk-FKTLAPXJ.js} +3 -3
- package/dist/{chunk-3XLDANPJ.js → chunk-FRHC77VK.js} +8 -8
- package/dist/{chunk-3N7TSFKQ.js → chunk-GET2MTLW.js} +2 -2
- package/dist/{chunk-PM4MZHQK.js → chunk-GYDO2WOR.js} +13 -5
- package/dist/{chunk-PM4MZHQK.js.map → chunk-GYDO2WOR.js.map} +1 -1
- package/dist/{chunk-ZQ5K3PG4.js → chunk-I2SW34K6.js} +403 -84
- package/dist/chunk-I2SW34K6.js.map +1 -0
- package/dist/{chunk-EYD6O5TQ.js → chunk-J435FU54.js} +6 -4
- package/dist/{chunk-EYD6O5TQ.js.map → chunk-J435FU54.js.map} +1 -1
- package/dist/{chunk-OGOE3NW5.js → chunk-K5WBFAR4.js} +4 -4
- package/dist/{chunk-5CADWTFO.js → chunk-MHIJSCPR.js} +446 -162
- package/dist/chunk-MHIJSCPR.js.map +1 -0
- package/dist/{chunk-FDY6YOFG.js → chunk-NZGNOXXW.js} +3 -2
- package/dist/{chunk-FDY6YOFG.js.map → chunk-NZGNOXXW.js.map} +1 -1
- package/dist/{chunk-CMRQR57K.js → chunk-PM63X3QG.js} +3 -3
- package/dist/{chunk-VY5WEC2D.js → chunk-QJIHSQZX.js} +791 -28
- package/dist/chunk-QJIHSQZX.js.map +1 -0
- package/dist/{chunk-FFJEERPZ.js → chunk-QLRH6KOT.js} +2 -2
- package/dist/{chunk-3UXCVSLJ.js → chunk-QMCHVYZB.js} +2 -2
- package/dist/{chunk-YXFQ3L56.js → chunk-RAWF4JOT.js} +8 -8
- package/dist/{chunk-TGDWL7FG.js → chunk-RLYXX3FQ.js} +2 -2
- package/dist/{chunk-KY2QMH3C.js → chunk-RR7Q2HFH.js} +6 -6
- package/dist/{chunk-ZGLIHPGJ.js → chunk-RUSP5PJR.js} +9 -1
- package/dist/chunk-RUSP5PJR.js.map +1 -0
- package/dist/{chunk-YEK3ZHO6.js → chunk-S4U3Z6ZS.js} +9 -6
- package/dist/{chunk-YEK3ZHO6.js.map → chunk-S4U3Z6ZS.js.map} +1 -1
- package/dist/chunk-TGGR6ST5.js +126 -0
- package/dist/chunk-TGGR6ST5.js.map +1 -0
- package/dist/{chunk-IZO437XR.js → chunk-VZCQRLXT.js} +7 -7
- package/dist/{chunk-4A6MSCNJ.js → chunk-WHZD2W6Q.js} +2 -2
- package/dist/{chunk-TA5HYM3H.js → chunk-XIFOAZ5B.js} +4 -4
- package/dist/{chunk-PR4QN5HX.js → chunk-ZPWHCABL.js} +6 -2
- package/dist/{chunk-YHBVFTRG.js → chunk-ZQEQVCIU.js} +2 -2
- package/dist/{chunk-ADIJIYFA.js → chunk-ZTRBMKXK.js} +5 -2
- package/dist/{chunk-ADIJIYFA.js.map → chunk-ZTRBMKXK.js.map} +1 -1
- package/dist/cli-circuit-breaker-J6UFONNE.js +13 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +258 -150
- package/dist/cli.js.map +1 -1
- package/dist/{codebase-search-ZFJUVMVR.js → codebase-search-PWMWLU7O.js} +2 -2
- package/dist/{composite-router-V36PBE7B.js → composite-router-HQUSCJO4.js} +4 -4
- package/dist/consensus-vote-E2WJFEIJ.js +37 -0
- package/dist/{consensus-vote-types-DdruG9-X.d.ts → consensus-vote-types-CYBHW8vY.d.ts} +99 -2
- package/dist/{context-retriever-KCSSXI6X.js → context-retriever-5OVRAWNZ.js} +10 -10
- package/dist/{dist-QZLOLGIK.js → dist-A5STUO26.js} +792 -622
- package/dist/dist-A5STUO26.js.map +1 -0
- package/dist/{dist-OFXI4GYH.js → dist-C4457XNQ.js} +2 -2
- package/dist/doctor-deep-HJ3NQ365.js +12 -0
- package/dist/expert-bridge-MINXBC73.js +17 -0
- package/dist/{expert-config-OIIUMJFB.js → expert-config-53EBA7DT.js} +2 -2
- package/dist/factory-KC7BYHAP.js +21 -0
- package/dist/factory-ZG2FZYVA.js +14 -0
- package/dist/{improvement-review-AMVJW3SI.js → improvement-review-TDC4QH5P.js} +6 -6
- package/dist/index.d.ts +731 -339
- package/dist/index.js +31 -30
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-3UPZL2UQ.js → init-opencode-L3NT524E.js} +8 -7
- package/dist/{init-opencode-3UPZL2UQ.js.map → init-opencode-L3NT524E.js.map} +1 -1
- package/dist/issue-triage-CZPFNGB7.js +16 -0
- package/dist/{learning-persistence-C737Q6EP.js → learning-persistence-QFCQ5POD.js} +7 -3
- package/dist/{outcome-store-adapter-D3UDQFNQ.js → outcome-store-adapter-K4L3RUJE.js} +2 -2
- package/dist/{pr-reviewer-helpers-2WBM5GL7.js → pr-reviewer-helpers-PLKDVWYF.js} +6 -6
- package/dist/{registry-command-AXNA2H35.js → registry-command-HPKNLYUL.js} +4 -4
- package/dist/{repo-analyze-JZEMBE6R.js → repo-analyze-UJOWFGNM.js} +2 -2
- package/dist/{repo-security-plan-P2KJ4FDT.js → repo-security-plan-HSYGGVEJ.js} +5 -5
- package/dist/research-helpers-synthesize-IQHDU27S.js +14 -0
- package/dist/{routing-memory-7RNR6A45.js → routing-memory-OGUOL7UF.js} +4 -4
- package/dist/{session-memory-2J2UBZJA.js → session-memory-HQWAXH3C.js} +5 -5
- package/dist/{setup-command-UF7EQKAL.js → setup-command-CNYIKBY7.js} +13 -13
- package/dist/setup-config-HYX3BRSE.js +10 -0
- package/dist/{setup-custom-api-AZMHKIHE.js → setup-custom-api-W7EDVKWR.js} +5 -5
- package/dist/{tool-memory-MIZVB4ZT.js → tool-memory-Z2B7CAH7.js} +7 -7
- package/dist/unified-registry-UFNSWKZA.js +24 -0
- package/dist/{weather-report-WZKEEAC7.js → weather-report-GX7OIUL2.js} +4 -4
- package/package.json +12 -12
- package/dist/chunk-5CADWTFO.js.map +0 -1
- package/dist/chunk-5GQMP7QN.js.map +0 -1
- package/dist/chunk-RPT5WZAT.js.map +0 -1
- package/dist/chunk-VY5WEC2D.js.map +0 -1
- package/dist/chunk-ZGLIHPGJ.js.map +0 -1
- package/dist/chunk-ZQ5K3PG4.js.map +0 -1
- package/dist/cli-circuit-breaker-XRXLO2V6.js +0 -13
- package/dist/consensus-vote-3REPKLK4.js +0 -36
- package/dist/dist-QZLOLGIK.js.map +0 -1
- package/dist/doctor-deep-WID6FQ2F.js +0 -12
- package/dist/expert-bridge-F4UMZFWS.js +0 -17
- package/dist/factory-B3SPS47O.js +0 -21
- package/dist/factory-YVHULPTE.js +0 -14
- package/dist/issue-triage-U3VC5TKV.js +0 -16
- package/dist/research-helpers-synthesize-UHWT62F2.js +0 -14
- package/dist/setup-config-Y3S2L4RD.js +0 -10
- package/dist/unified-registry-V4AZ6UYA.js +0 -24
- /package/dist/{child-mcp-config-M7WR4XBB.js.map → child-mcp-config-R67B2KM6.js.map} +0 -0
- /package/dist/{chunk-VTTPYENR.js.map → chunk-2CLFX73Y.js.map} +0 -0
- /package/dist/{chunk-ACARS7NG.js.map → chunk-4CLBJ2NA.js.map} +0 -0
- /package/dist/{chunk-2Z4V5THE.js.map → chunk-7BONPRR2.js.map} +0 -0
- /package/dist/{chunk-AVRE45DO.js.map → chunk-CI5KGCX5.js.map} +0 -0
- /package/dist/{chunk-E4LAXVQE.js.map → chunk-E4IYX7LD.js.map} +0 -0
- /package/dist/{chunk-A4MPCXZ7.js.map → chunk-ECDJM6UB.js.map} +0 -0
- /package/dist/{chunk-7IMI64LW.js.map → chunk-EFDXX5MC.js.map} +0 -0
- /package/dist/{chunk-ZM3S6PTN.js.map → chunk-FKTLAPXJ.js.map} +0 -0
- /package/dist/{chunk-3XLDANPJ.js.map → chunk-FRHC77VK.js.map} +0 -0
- /package/dist/{chunk-3N7TSFKQ.js.map → chunk-GET2MTLW.js.map} +0 -0
- /package/dist/{chunk-OGOE3NW5.js.map → chunk-K5WBFAR4.js.map} +0 -0
- /package/dist/{chunk-CMRQR57K.js.map → chunk-PM63X3QG.js.map} +0 -0
- /package/dist/{chunk-FFJEERPZ.js.map → chunk-QLRH6KOT.js.map} +0 -0
- /package/dist/{chunk-3UXCVSLJ.js.map → chunk-QMCHVYZB.js.map} +0 -0
- /package/dist/{chunk-YXFQ3L56.js.map → chunk-RAWF4JOT.js.map} +0 -0
- /package/dist/{chunk-TGDWL7FG.js.map → chunk-RLYXX3FQ.js.map} +0 -0
- /package/dist/{chunk-KY2QMH3C.js.map → chunk-RR7Q2HFH.js.map} +0 -0
- /package/dist/{chunk-IZO437XR.js.map → chunk-VZCQRLXT.js.map} +0 -0
- /package/dist/{chunk-4A6MSCNJ.js.map → chunk-WHZD2W6Q.js.map} +0 -0
- /package/dist/{chunk-TA5HYM3H.js.map → chunk-XIFOAZ5B.js.map} +0 -0
- /package/dist/{chunk-PR4QN5HX.js.map → chunk-ZPWHCABL.js.map} +0 -0
- /package/dist/{chunk-YHBVFTRG.js.map → chunk-ZQEQVCIU.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-XRXLO2V6.js.map → cli-circuit-breaker-J6UFONNE.js.map} +0 -0
- /package/dist/{codebase-search-ZFJUVMVR.js.map → codebase-search-PWMWLU7O.js.map} +0 -0
- /package/dist/{composite-router-V36PBE7B.js.map → composite-router-HQUSCJO4.js.map} +0 -0
- /package/dist/{consensus-vote-3REPKLK4.js.map → consensus-vote-E2WJFEIJ.js.map} +0 -0
- /package/dist/{context-retriever-KCSSXI6X.js.map → context-retriever-5OVRAWNZ.js.map} +0 -0
- /package/dist/{dist-OFXI4GYH.js.map → dist-C4457XNQ.js.map} +0 -0
- /package/dist/{doctor-deep-WID6FQ2F.js.map → doctor-deep-HJ3NQ365.js.map} +0 -0
- /package/dist/{expert-bridge-F4UMZFWS.js.map → expert-bridge-MINXBC73.js.map} +0 -0
- /package/dist/{expert-config-OIIUMJFB.js.map → expert-config-53EBA7DT.js.map} +0 -0
- /package/dist/{factory-B3SPS47O.js.map → factory-KC7BYHAP.js.map} +0 -0
- /package/dist/{factory-YVHULPTE.js.map → factory-ZG2FZYVA.js.map} +0 -0
- /package/dist/{improvement-review-AMVJW3SI.js.map → improvement-review-TDC4QH5P.js.map} +0 -0
- /package/dist/{issue-triage-U3VC5TKV.js.map → issue-triage-CZPFNGB7.js.map} +0 -0
- /package/dist/{learning-persistence-C737Q6EP.js.map → learning-persistence-QFCQ5POD.js.map} +0 -0
- /package/dist/{outcome-store-adapter-D3UDQFNQ.js.map → outcome-store-adapter-K4L3RUJE.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-2WBM5GL7.js.map → pr-reviewer-helpers-PLKDVWYF.js.map} +0 -0
- /package/dist/{registry-command-AXNA2H35.js.map → registry-command-HPKNLYUL.js.map} +0 -0
- /package/dist/{repo-analyze-JZEMBE6R.js.map → repo-analyze-UJOWFGNM.js.map} +0 -0
- /package/dist/{repo-security-plan-P2KJ4FDT.js.map → repo-security-plan-HSYGGVEJ.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-UHWT62F2.js.map → research-helpers-synthesize-IQHDU27S.js.map} +0 -0
- /package/dist/{routing-memory-7RNR6A45.js.map → routing-memory-OGUOL7UF.js.map} +0 -0
- /package/dist/{session-memory-2J2UBZJA.js.map → session-memory-HQWAXH3C.js.map} +0 -0
- /package/dist/{setup-command-UF7EQKAL.js.map → setup-command-CNYIKBY7.js.map} +0 -0
- /package/dist/{setup-config-Y3S2L4RD.js.map → setup-config-HYX3BRSE.js.map} +0 -0
- /package/dist/{setup-custom-api-AZMHKIHE.js.map → setup-custom-api-W7EDVKWR.js.map} +0 -0
- /package/dist/{tool-memory-MIZVB4ZT.js.map → tool-memory-Z2B7CAH7.js.map} +0 -0
- /package/dist/{unified-registry-V4AZ6UYA.js.map → unified-registry-UFNSWKZA.js.map} +0 -0
- /package/dist/{weather-report-WZKEEAC7.js.map → weather-report-GX7OIUL2.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CodebaseIndex
|
|
3
3
|
} from "./chunk-3ACDP4E6.js";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-ZPWHCABL.js";
|
|
5
5
|
export {
|
|
6
6
|
CodebaseIndex
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=codebase-search-
|
|
8
|
+
//# sourceMappingURL=codebase-search-PWMWLU7O.js.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
CompositeRoutingError,
|
|
5
5
|
DEFAULT_COMPOSITE_CONFIG,
|
|
6
6
|
createCompositeRouter
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-QJIHSQZX.js";
|
|
8
|
+
import "./chunk-RUSP5PJR.js";
|
|
9
|
+
import "./chunk-ZPWHCABL.js";
|
|
10
10
|
export {
|
|
11
11
|
CompositeRouter,
|
|
12
12
|
CompositeRouterConfigSchema,
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
DEFAULT_COMPOSITE_CONFIG,
|
|
15
15
|
createCompositeRouter
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=composite-router-
|
|
17
|
+
//# sourceMappingURL=composite-router-HQUSCJO4.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
3
|
+
ConsensusVoteInputSchema,
|
|
4
|
+
VotingStrategySchema,
|
|
5
|
+
createPolicyFailedResult,
|
|
6
|
+
executeVoting,
|
|
7
|
+
registerConsensusVoteTool,
|
|
8
|
+
resetCorrelationTracker,
|
|
9
|
+
runConsensusForGoal
|
|
10
|
+
} from "./chunk-I2SW34K6.js";
|
|
11
|
+
import "./chunk-TGGR6ST5.js";
|
|
12
|
+
import "./chunk-4CLBJ2NA.js";
|
|
13
|
+
import "./chunk-GYDO2WOR.js";
|
|
14
|
+
import "./chunk-NZGNOXXW.js";
|
|
15
|
+
import "./chunk-6T3EPABN.js";
|
|
16
|
+
import "./chunk-PQHVC4BD.js";
|
|
17
|
+
import "./chunk-XIFOAZ5B.js";
|
|
18
|
+
import "./chunk-VZCQRLXT.js";
|
|
19
|
+
import "./chunk-WHZD2W6Q.js";
|
|
20
|
+
import "./chunk-ECDJM6UB.js";
|
|
21
|
+
import "./chunk-ZTRBMKXK.js";
|
|
22
|
+
import "./chunk-7BONPRR2.js";
|
|
23
|
+
import "./chunk-E4IYX7LD.js";
|
|
24
|
+
import "./chunk-QJIHSQZX.js";
|
|
25
|
+
import "./chunk-RUSP5PJR.js";
|
|
26
|
+
import "./chunk-ZPWHCABL.js";
|
|
27
|
+
export {
|
|
28
|
+
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
29
|
+
ConsensusVoteInputSchema,
|
|
30
|
+
VotingStrategySchema,
|
|
31
|
+
createPolicyFailedResult,
|
|
32
|
+
executeVoting,
|
|
33
|
+
registerConsensusVoteTool,
|
|
34
|
+
resetCorrelationTracker,
|
|
35
|
+
runConsensusForGoal
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=consensus-vote-E2WJFEIJ.js.map
|
|
@@ -64,6 +64,96 @@ declare const PricingSchema: z.ZodObject<{
|
|
|
64
64
|
}, z.core.$strip>;
|
|
65
65
|
type Pricing = z.infer<typeof PricingSchema>;
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* decision-cost — per-DECISION cost aggregation over a governed panel's voters.
|
|
69
|
+
*
|
|
70
|
+
* Source: Issue #3855 (epic #3854 child, M4).
|
|
71
|
+
*
|
|
72
|
+
* A governed decision — a `consensus_vote` or `pr_review` run — fans out to N
|
|
73
|
+
* voter calls; each voter is one LLM call. Per-CALL usage telemetry already
|
|
74
|
+
* exists ({@link module:learning/usage-log} — token + cost per model call,
|
|
75
|
+
* PR #2479/#2480 era). This module is the AGGREGATION layer that rolls those
|
|
76
|
+
* per-call numbers UP into a single per-decision answer: "what did this
|
|
77
|
+
* governed decision cost?".
|
|
78
|
+
*
|
|
79
|
+
* It is a PURE rollup (no I/O, no clock, no env reads at the math layer):
|
|
80
|
+
* {@link rollupDecisionCost} takes the per-voter cost inputs + the billing mode
|
|
81
|
+
* and returns a {@link DecisionCostSummary} — total tokens, total USD, a
|
|
82
|
+
* per-voter breakdown, and a per-model breakdown. Persistence + the live
|
|
83
|
+
* `process.env` billing-mode read live in the callers (the store + the tools),
|
|
84
|
+
* mirroring the usage-log split between `computeCostUSD` (pure) and
|
|
85
|
+
* `recordUsageEvent` (I/O).
|
|
86
|
+
*
|
|
87
|
+
* Design decisions that the fixture tests pin (#3855 acceptance criteria):
|
|
88
|
+
*
|
|
89
|
+
* - **Missing cost is UNMEASURED, not zero.** A voter with no token counts
|
|
90
|
+
* (e.g. a CLI-subscription adapter that doesn't report usage, or an error
|
|
91
|
+
* vote that never reached the model) is counted in `unmeasuredVoters` and
|
|
92
|
+
* contributes 0 to the totals — but the summary records that the total is a
|
|
93
|
+
* floor, not an exact figure (`measured` < `voterCount`). Treating unmeasured
|
|
94
|
+
* as a true $0 would silently understate spend; this keeps the honesty.
|
|
95
|
+
* - **Plan mode records 0-cost but keeps tokens.** Under `NEXUS_BILLING_MODE=plan`
|
|
96
|
+
* the spend is pre-covered by a subscription, so cost is recorded as $0 while
|
|
97
|
+
* token counts are preserved (so the operator can still see consumption and
|
|
98
|
+
* a later `api`-mode reprice is possible). This mirrors how plan mode zeroes
|
|
99
|
+
* cost in routing/scoring without dropping the token signal.
|
|
100
|
+
*
|
|
101
|
+
* @module observability/decision-cost
|
|
102
|
+
*/
|
|
103
|
+
/** Billing mode in effect for a decision. Mirrors `NEXUS_BILLING_MODE`. */
|
|
104
|
+
type DecisionBillingMode = 'plan' | 'api';
|
|
105
|
+
/** Per-voter line in the decision rollup. */
|
|
106
|
+
interface VoterCostBreakdown {
|
|
107
|
+
readonly role: string;
|
|
108
|
+
readonly model: string;
|
|
109
|
+
readonly inputTokens: number;
|
|
110
|
+
readonly outputTokens: number;
|
|
111
|
+
readonly totalTokens: number;
|
|
112
|
+
/** Effective cost after billing-mode application (0 in plan mode). */
|
|
113
|
+
readonly costUsd: number;
|
|
114
|
+
/**
|
|
115
|
+
* True when this voter reported NO usage at all (no tokens, no cost). Its
|
|
116
|
+
* zeros are placeholders, not a measured $0 / 0-token call.
|
|
117
|
+
*/
|
|
118
|
+
readonly unmeasured: boolean;
|
|
119
|
+
}
|
|
120
|
+
/** Per-model rollup line within a single decision. */
|
|
121
|
+
interface ModelCostBreakdown {
|
|
122
|
+
readonly model: string;
|
|
123
|
+
readonly voterCount: number;
|
|
124
|
+
readonly inputTokens: number;
|
|
125
|
+
readonly outputTokens: number;
|
|
126
|
+
readonly totalTokens: number;
|
|
127
|
+
readonly costUsd: number;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The per-decision cost rollup. Totals are a FLOOR when `unmeasuredVoters > 0`
|
|
131
|
+
* — read alongside `measuredVoters` / `voterCount` for the confidence.
|
|
132
|
+
*/
|
|
133
|
+
interface DecisionCostSummary {
|
|
134
|
+
/** Billing mode applied to produce `totalCostUsd` (and per-line `costUsd`). */
|
|
135
|
+
readonly billingMode: DecisionBillingMode;
|
|
136
|
+
/** Total voters folded into this decision. */
|
|
137
|
+
readonly voterCount: number;
|
|
138
|
+
/** Voters that reported usage (tokens and/or cost). */
|
|
139
|
+
readonly measuredVoters: number;
|
|
140
|
+
/** Voters that reported no usage at all (counted, not zeroed-as-fact). */
|
|
141
|
+
readonly unmeasuredVoters: number;
|
|
142
|
+
readonly totalInputTokens: number;
|
|
143
|
+
readonly totalOutputTokens: number;
|
|
144
|
+
readonly totalTokens: number;
|
|
145
|
+
/**
|
|
146
|
+
* Total cost in USD. 0 under `plan` mode by construction. A FLOOR when
|
|
147
|
+
* `unmeasuredVoters > 0` (unmeasured voters contribute 0, not their unknown
|
|
148
|
+
* real cost).
|
|
149
|
+
*/
|
|
150
|
+
readonly totalCostUsd: number;
|
|
151
|
+
/** Per-voter breakdown, in input order. */
|
|
152
|
+
readonly perVoter: readonly VoterCostBreakdown[];
|
|
153
|
+
/** Per-model breakdown, sorted by total cost desc then total tokens desc. */
|
|
154
|
+
readonly perModel: readonly ModelCostBreakdown[];
|
|
155
|
+
}
|
|
156
|
+
|
|
67
157
|
/**
|
|
68
158
|
* Types, schemas, and response helpers for the consensus_vote MCP tool.
|
|
69
159
|
* Extracted from consensus-vote.ts for file size compliance (Issue #708).
|
|
@@ -133,12 +223,12 @@ declare const ConsensusVoteInputSchema: z.ZodObject<{
|
|
|
133
223
|
majority: "majority";
|
|
134
224
|
}>>;
|
|
135
225
|
strategy: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
higher_order: "higher_order";
|
|
136
227
|
simple_majority: "simple_majority";
|
|
137
228
|
supermajority: "supermajority";
|
|
138
229
|
unanimous: "unanimous";
|
|
139
230
|
proof_of_learning: "proof_of_learning";
|
|
140
231
|
opinion_wise: "opinion_wise";
|
|
141
|
-
higher_order: "higher_order";
|
|
142
232
|
}>>;
|
|
143
233
|
errorPolicy: z.ZodOptional<z.ZodEnum<{
|
|
144
234
|
reduce_denominator: "reduce_denominator";
|
|
@@ -208,6 +298,13 @@ interface ConsensusVoteResponse {
|
|
|
208
298
|
* Absent when every requested voter returned a real vote.
|
|
209
299
|
*/
|
|
210
300
|
panelWarning?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Per-decision cost rollup (#3855): per-voter / per-model token + USD totals
|
|
303
|
+
* for this governed decision. Rides the existing response — no new MCP tool.
|
|
304
|
+
* Totals are a floor when `costSummary.unmeasuredVoters > 0` (voters whose
|
|
305
|
+
* adapter reported no usage are counted as unmeasured, not a measured $0).
|
|
306
|
+
*/
|
|
307
|
+
costSummary?: DecisionCostSummary;
|
|
211
308
|
}
|
|
212
309
|
|
|
213
|
-
export { type AgentVoteSummary as A, type CliNameLiteral as C, type ErrorPolicy as E, type InputModality as I, type ModelId as M, type OutputModality as O, type Pricing as P, type QualityScores as Q, type SpecialFeature as S, type ToolCapability as T, type VotingStrategy as V, type ConsensusVoteInput as a, ConsensusVoteInputSchema as b, type ConsensusVoteResponse as c, type VoteDecisionStatus as d, type VoteThreshold as e };
|
|
310
|
+
export { type AgentVoteSummary as A, type CliNameLiteral as C, type DecisionCostSummary as D, type ErrorPolicy as E, type InputModality as I, type ModelId as M, type OutputModality as O, type Pricing as P, type QualityScores as Q, type SpecialFeature as S, type ToolCapability as T, type VotingStrategy as V, type ConsensusVoteInput as a, ConsensusVoteInputSchema as b, type ConsensusVoteResponse as c, type VoteDecisionStatus as d, type VoteThreshold as e };
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
inferTaskCategory,
|
|
6
6
|
selectRelevantResearch,
|
|
7
7
|
summarizeContextForPrompt
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-S4U3Z6ZS.js";
|
|
9
|
+
import "./chunk-ZQEQVCIU.js";
|
|
10
|
+
import "./chunk-2CLFX73Y.js";
|
|
11
|
+
import "./chunk-GYDO2WOR.js";
|
|
12
|
+
import "./chunk-NZGNOXXW.js";
|
|
13
13
|
import "./chunk-NUBSJGQZ.js";
|
|
14
14
|
import "./chunk-6T3EPABN.js";
|
|
15
15
|
import "./chunk-PQHVC4BD.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-E4IYX7LD.js";
|
|
17
|
+
import "./chunk-QJIHSQZX.js";
|
|
18
|
+
import "./chunk-RUSP5PJR.js";
|
|
19
|
+
import "./chunk-ZPWHCABL.js";
|
|
20
20
|
export {
|
|
21
21
|
getContextForTask,
|
|
22
22
|
getContextPromptPrefix,
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
selectRelevantResearch,
|
|
26
26
|
summarizeContextForPrompt
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=context-retriever-
|
|
28
|
+
//# sourceMappingURL=context-retriever-5OVRAWNZ.js.map
|