@mrrlin-dev/mcp 0.3.8 → 0.3.10
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/bin.cjs +15 -8
- package/package.json +2 -2
package/dist/bin.cjs
CHANGED
|
@@ -36279,6 +36279,7 @@ var openApiOperationIds = {
|
|
|
36279
36279
|
listArtifactFiles: "listArtifactFiles",
|
|
36280
36280
|
getOperatorSettings: "getOperatorSettings",
|
|
36281
36281
|
updateOperatorSettings: "updateOperatorSettings",
|
|
36282
|
+
getConsensusConfig: "getConsensusConfig",
|
|
36282
36283
|
updateWikiPageCas: "updateWikiPageCas",
|
|
36283
36284
|
promoteSpecReadyCas: "promoteSpecReadyCas",
|
|
36284
36285
|
recordSpecConsensusReview: "recordSpecConsensusReview",
|
|
@@ -36319,6 +36320,8 @@ var mrrlinOperatorSettingsUpdateSchema = external_exports.object({ consensusEnab
|
|
|
36319
36320
|
message: "OperatorSettingsUpdate requires at least one field"
|
|
36320
36321
|
});
|
|
36321
36322
|
var operatorSettingsResponseSchema = external_exports.object({ data: mrrlinOperatorSettingsSchema });
|
|
36323
|
+
var mrrlinConsensusConfigSchema = external_exports.object({ consensusEnabled: external_exports.boolean() });
|
|
36324
|
+
var consensusConfigResponseSchema = external_exports.object({ data: mrrlinConsensusConfigSchema });
|
|
36322
36325
|
|
|
36323
36326
|
// ../../packages/schemas/dist/specConsensusReview.js
|
|
36324
36327
|
var mrrlinSpecConsensusReviewSchema = external_exports.object({
|
|
@@ -38145,6 +38148,10 @@ function createMrrlinClient(config2) {
|
|
|
38145
38148
|
});
|
|
38146
38149
|
return operatorSettingsResponseSchema.parse(body).data;
|
|
38147
38150
|
},
|
|
38151
|
+
async getConsensusConfig(projectSlug) {
|
|
38152
|
+
const body = await request(`${projectPath(projectSlug)}/consensus-config`);
|
|
38153
|
+
return consensusConfigResponseSchema.parse(body).data;
|
|
38154
|
+
},
|
|
38148
38155
|
async recordSpecConsensusReview(projectSlug, pageId, input) {
|
|
38149
38156
|
const body = await request(`${projectPath(projectSlug)}/wiki/${encodeURIComponent(pageId)}/consensus-review`, {
|
|
38150
38157
|
body: JSON.stringify(input),
|
|
@@ -38507,7 +38514,7 @@ Do NOT derail the current task \u2014 if the operator has an in-flight question,
|
|
|
38507
38514
|
}
|
|
38508
38515
|
|
|
38509
38516
|
// src/_generated/version.ts
|
|
38510
|
-
var PKG_VERSION = "0.3.
|
|
38517
|
+
var PKG_VERSION = "0.3.10";
|
|
38511
38518
|
|
|
38512
38519
|
// src/api-base-url.ts
|
|
38513
38520
|
var DEFAULT_API_BASE_URL = "http://127.0.0.1:8787";
|
|
@@ -50064,8 +50071,8 @@ function buildSpecGateDeps(args) {
|
|
|
50064
50071
|
rounds,
|
|
50065
50072
|
maxHeadCalls,
|
|
50066
50073
|
async consensusEnabled() {
|
|
50067
|
-
const
|
|
50068
|
-
return
|
|
50074
|
+
const config2 = await client.getConsensusConfig(projectSlug);
|
|
50075
|
+
return config2.consensusEnabled;
|
|
50069
50076
|
},
|
|
50070
50077
|
async readSpec() {
|
|
50071
50078
|
const page = await client.getWikiPage(projectSlug, specPageId);
|
|
@@ -50189,7 +50196,7 @@ ${artifact}`,
|
|
|
50189
50196
|
};
|
|
50190
50197
|
}
|
|
50191
50198
|
function buildCodeGateDeps(args) {
|
|
50192
|
-
const { client, baseRef, cwd, codexExecutable, extraHeads } = args;
|
|
50199
|
+
const { client, projectSlug, baseRef, cwd, codexExecutable, extraHeads } = args;
|
|
50193
50200
|
const rounds = Number(process.env["MRRLIN_CONSENSUS_ROUNDS"] ?? 3);
|
|
50194
50201
|
const heads = ["code-reviewer", ...extraHeads ?? []];
|
|
50195
50202
|
const maxHeadCalls = rounds * (heads.length + 1);
|
|
@@ -50201,8 +50208,8 @@ function buildCodeGateDeps(args) {
|
|
|
50201
50208
|
maxHeadCalls,
|
|
50202
50209
|
heads,
|
|
50203
50210
|
async consensusEnabled() {
|
|
50204
|
-
const
|
|
50205
|
-
return
|
|
50211
|
+
const config2 = await client.getConsensusConfig(projectSlug);
|
|
50212
|
+
return config2.consensusEnabled;
|
|
50206
50213
|
},
|
|
50207
50214
|
changedFiles() {
|
|
50208
50215
|
return changedFiles(gitArgs);
|
|
@@ -51709,8 +51716,8 @@ function createMrrlinTools(options) {
|
|
|
51709
51716
|
// follow-up (see Task D2d notes).
|
|
51710
51717
|
async (c, { projectSlug, pageId, ready }) => {
|
|
51711
51718
|
if (ready !== true) return await c.markSpecReady({ projectSlug, pageId, ready });
|
|
51712
|
-
const
|
|
51713
|
-
if (!
|
|
51719
|
+
const config2 = await c.getConsensusConfig(projectSlug);
|
|
51720
|
+
if (!config2.consensusEnabled) {
|
|
51714
51721
|
throw new McpToolCodedError(
|
|
51715
51722
|
"SPEC_CONSENSUS_REQUIRED",
|
|
51716
51723
|
`Spec ${pageId} cannot be marked ready by the Director while consensus is disabled for this project \u2014 an operator must approve it (web wiki / markSpecReady route). Autonomy is a landing gate, not a license to self-promote.`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrrlin-dev/mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mrrlin-mcp": "dist/bin.cjs"
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"esbuild": "^0.24.0",
|
|
24
24
|
"tsx": "^4.22.3",
|
|
25
25
|
"@mrrlin/client": "0.0.0",
|
|
26
|
+
"@mrrlin/codex-client": "0.0.0",
|
|
26
27
|
"@mrrlin/director-e2e": "0.0.0",
|
|
27
28
|
"@mrrlin/schemas": "0.0.0",
|
|
28
29
|
"@mrrlin/tsconfig": "0.0.0",
|
|
29
|
-
"@mrrlin/codex-client": "0.0.0",
|
|
30
30
|
"@mrrlin/wiki": "0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|