@mrrlin-dev/mcp 0.4.112 → 0.4.114

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.
Files changed (2) hide show
  1. package/dist/bin.cjs +26 -14
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -47753,6 +47753,7 @@ function gateCallRecorder(args) {
47753
47753
  function buildSpecGateDeps(args) {
47754
47754
  const { client, projectSlug, specPageId, codexExecutable, extraHeadCount = 0, seat, stateDir } = args;
47755
47755
  const consensusProvider = process.env.MRRLIN_CONSENSUS_PROVIDER?.trim().toLowerCase() || void 0;
47756
+ const execProvider = consensusProvider ?? seat?.id;
47756
47757
  const recordCost = gateCallRecorder({
47757
47758
  stateDir,
47758
47759
  projectSlug,
@@ -47872,7 +47873,7 @@ ${artifact}`,
47872
47873
  codexExecutable
47873
47874
  },
47874
47875
  void 0,
47875
- consensusProvider
47876
+ execProvider
47876
47877
  );
47877
47878
  recordCost("head", personaName, null, startedAt, result);
47878
47879
  return result;
@@ -47892,7 +47893,7 @@ ${artifact}`,
47892
47893
  model: consensusProvider ? void 0 : seat?.model ?? seat?.models?.strong
47893
47894
  },
47894
47895
  void 0,
47895
- consensusProvider
47896
+ execProvider
47896
47897
  );
47897
47898
  recordCost("arbiter", "arbiter", seat?.model ?? seat?.models?.strong ?? null, startedAt, result);
47898
47899
  return result;
@@ -47917,7 +47918,7 @@ ${artifact}`,
47917
47918
  codexExecutable
47918
47919
  },
47919
47920
  void 0,
47920
- consensusProvider
47921
+ execProvider
47921
47922
  );
47922
47923
  recordCost("reviser", null, null, startedAt, result);
47923
47924
  return result;
@@ -47955,7 +47956,7 @@ ${artifact}`,
47955
47956
  const highlights = await curateFindings(Array.isArray(history) ? history : [], {
47956
47957
  runCodexExec: async (execInput) => {
47957
47958
  const startedAt = Date.now();
47958
- const result = await runAgentExec(execInput, void 0, consensusProvider);
47959
+ const result = await runAgentExec(execInput, void 0, execProvider);
47959
47960
  recordCost("findings", "findings-writer", null, startedAt, result);
47960
47961
  return result;
47961
47962
  },
@@ -47994,7 +47995,7 @@ ${artifact}`,
47994
47995
  // call the cost record silently omits.
47995
47996
  runCodexExec: async (input) => {
47996
47997
  const startedAt = Date.now();
47997
- const result = await runAgentExec(input, void 0, consensusProvider);
47998
+ const result = await runAgentExec(input, void 0, execProvider);
47998
47999
  recordCost("findings", "findings-writer", null, startedAt, result);
47999
48000
  return result;
48000
48001
  },
@@ -48024,6 +48025,7 @@ ${artifact}`,
48024
48025
  function buildCodeGateDeps(args) {
48025
48026
  const { client, projectSlug, baseRef, cwd, codexExecutable, extraHeads, seat, stateDir } = args;
48026
48027
  const consensusProvider = process.env.MRRLIN_CONSENSUS_PROVIDER?.trim().toLowerCase() || void 0;
48028
+ const execProvider = consensusProvider ?? seat?.id;
48027
48029
  const recordCost = gateCallRecorder({
48028
48030
  stateDir,
48029
48031
  projectSlug,
@@ -48075,7 +48077,7 @@ ${artifact}`,
48075
48077
  codexExecutable
48076
48078
  },
48077
48079
  void 0,
48078
- consensusProvider
48080
+ execProvider
48079
48081
  );
48080
48082
  recordCost("head", personaName, null, startedAt, result);
48081
48083
  return result;
@@ -48095,7 +48097,7 @@ ${artifact}`,
48095
48097
  model: consensusProvider ? void 0 : seat?.model ?? seat?.models?.strong
48096
48098
  },
48097
48099
  void 0,
48098
- consensusProvider
48100
+ execProvider
48099
48101
  );
48100
48102
  recordCost("arbiter", "arbiter", seat?.model ?? seat?.models?.strong ?? null, startedAt, result);
48101
48103
  return result;
@@ -48121,7 +48123,7 @@ ${artifact}`,
48121
48123
  codexExecutable
48122
48124
  },
48123
48125
  void 0,
48124
- consensusProvider
48126
+ execProvider
48125
48127
  );
48126
48128
  recordCost("reviser", null, null, startedAt, result);
48127
48129
  return result;
@@ -48147,6 +48149,7 @@ function renderCriteriaBlock(criteria) {
48147
48149
  async function buildDeliverableGateDeps(args) {
48148
48150
  const { client, projectSlug, deliverablePageId, attemptOutcome, codexExecutable, runId, seat, stateDir } = args;
48149
48151
  const consensusProvider = process.env.MRRLIN_CONSENSUS_PROVIDER?.trim().toLowerCase() || void 0;
48152
+ const execProvider = consensusProvider ?? seat?.id;
48150
48153
  const recordCost = gateCallRecorder({
48151
48154
  stateDir,
48152
48155
  projectSlug,
@@ -48225,7 +48228,7 @@ ${persona}`,
48225
48228
  codexExecutable
48226
48229
  },
48227
48230
  void 0,
48228
- consensusProvider
48231
+ execProvider
48229
48232
  );
48230
48233
  recordCost("head", personaName, null, startedAt, result);
48231
48234
  return result;
@@ -48245,7 +48248,7 @@ ${persona}`,
48245
48248
  model: consensusProvider ? void 0 : seat?.model ?? seat?.models?.strong
48246
48249
  },
48247
48250
  void 0,
48248
- consensusProvider
48251
+ execProvider
48249
48252
  );
48250
48253
  recordCost("arbiter", "arbiter", seat?.model ?? seat?.models?.strong ?? null, startedAt, result);
48251
48254
  return result;
@@ -48272,7 +48275,7 @@ You revise a deliverable to address the accepted issues so it satisfies the acce
48272
48275
  codexExecutable
48273
48276
  },
48274
48277
  void 0,
48275
- consensusProvider
48278
+ execProvider
48276
48279
  );
48277
48280
  recordCost("reviser", null, null, startedAt, result);
48278
48281
  return result;
@@ -48304,7 +48307,7 @@ You revise a deliverable to address the accepted issues so it satisfies the acce
48304
48307
  const rounds2 = typeof r["rounds"] === "number" ? r["rounds"] : 0;
48305
48308
  const history = r["history"];
48306
48309
  const highlights = await curateFindings(Array.isArray(history) ? history : [], {
48307
- runCodexExec: (execInput) => runAgentExec(execInput, void 0, consensusProvider),
48310
+ runCodexExec: (execInput) => runAgentExec(execInput, void 0, execProvider),
48308
48311
  loadPersona,
48309
48312
  cwd: sterileCwd(),
48310
48313
  timeoutMs,
@@ -58729,7 +58732,7 @@ var mcpToolDescriptions = {
58729
58732
  [mcpToolNames.searchWikiPages]: "Search project Wiki pages using ranked full-text search. Returns excerpts suitable for grounding Director decisions.",
58730
58733
  [mcpToolNames.searchKnowledge]: "Search the rendered Mrrlin docs wiki using the lexical RAG index. Returns cited chunks with stable wiki_url fields.",
58731
58734
  [mcpToolNames.updatePlan]: "Update a plan/epic.",
58732
- [mcpToolNames.updateTask]: "Update a task. Honors DB invariants: closed_no_result requires linked Evidence wiki pages. Set directorThreadId here to persist the worker's resumable provider thread handle.",
58735
+ [mcpToolNames.updateTask]: `Update a task. Honors DB invariants: closed_no_result requires linked Evidence wiki pages. Set directorThreadId here to persist the worker's resumable provider thread handle. specApproved: "approved" requires declaredOutcome (set it in the same call or earlier): an object {sentence, requires, verification} stating what must exist when the task is done.`,
58733
58736
  [mcpToolNames.resetDirectorThread]: "Clear a task's persisted Director execution thread handle so the next execution run starts a fresh provider thread. Records a director_thread_reset task event.",
58734
58737
  [mcpToolNames.archiveTask]: "Archive a task: hides it from default reads, removes it from plan progress and scheduler consideration, cancels its non-terminal execution runs, and closes its open inbox items. Reversible \u2014 the project owner can restore it with unarchive_task. Records an 'archived' task event.",
58735
58738
  [mcpToolNames.unarchiveTask]: "Restore an archived task to its original status and visibility. Owner-only \u2014 refused with NOT_PROJECT_OWNER for any other caller. Does not resurrect the execution runs or inbox items that were cancelled/closed when the task was archived. Records a 'restored' task event.",
@@ -61761,7 +61764,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
61761
61764
  }
61762
61765
 
61763
61766
  // src/_generated/version.ts
61764
- var PKG_VERSION = "0.4.112";
61767
+ var PKG_VERSION = "0.4.114";
61765
61768
 
61766
61769
  // src/receipt-signing.ts
61767
61770
  var import_node_crypto13 = __toESM(require("node:crypto"), 1);
@@ -78548,6 +78551,15 @@ function jsonSchemaPrimitiveType(schema) {
78548
78551
  }
78549
78552
  function jsonSchemaProperty(schema) {
78550
78553
  const unwrapped = unwrapZodSchema(schema);
78554
+ if (unwrapped instanceof external_exports.ZodObject) {
78555
+ try {
78556
+ const objectSchema = external_exports.toJSONSchema(unwrapped, { io: "input", unrepresentable: "any" });
78557
+ delete objectSchema.$schema;
78558
+ return { ...objectSchema, type: "object" };
78559
+ } catch {
78560
+ return { type: "object" };
78561
+ }
78562
+ }
78551
78563
  const property = unwrapped instanceof external_exports.ZodArray ? { items: { type: jsonSchemaPrimitiveType(unwrapped.element) }, type: "array" } : { type: jsonSchemaPrimitiveType(schema) };
78552
78564
  let jsonSchema = {};
78553
78565
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.112",
3
+ "version": "0.4.114",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"