@mrrlin-dev/mcp 0.4.163 → 0.4.164

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 +25 -9
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -37751,7 +37751,14 @@ var agentCapabilitiesSchema = external_exports.object({
37751
37751
  // resolved model id as the description. Empty for a provider that lists models live.
37752
37752
  modelCatalog: external_exports.array(external_exports.object({ id: external_exports.string(), displayName: external_exports.string(), description: external_exports.string() })),
37753
37753
  sandboxModes: external_exports.array(external_exports.enum(["read-only", "workspace-write", "danger-full-access"])),
37754
- poolProviderLabels: external_exports.array(external_exports.string())
37754
+ // Retired with the external-agents pool (ADR 0032): nothing reads it any more. Removal is two steps
37755
+ // because the API sends this object and installed bridges (and the web app) parse it with this
37756
+ // schema: step 1 (this) makes the field optional and ships in a bridge release. Step 2 stops sending
37757
+ // it and deletes it here, from AGENT_CAPABILITIES and from the adapters, but only after bridges at
37758
+ // or below @mrrlin-dev/mcp 0.4.162 are gone (nothing enforces a minimum bridge version, and an old
37759
+ // bridge would throw on every getOperatorSettings(); execution-consumer and deploy-gate fail open on
37760
+ // that and would miss autonomyPaused), and with the web app deployed before the API.
37761
+ poolProviderLabels: external_exports.array(external_exports.string()).optional()
37755
37762
  });
37756
37763
  var AGENT_CAPABILITIES = {
37757
37764
  codex: {
@@ -44106,7 +44113,7 @@ async function runCodeGate(_target, deps) {
44106
44113
  const revised = await deps.runReviser(prev, accepted);
44107
44114
  if (!revised.ok) {
44108
44115
  await deps.restore(ref);
44109
- throw new CodeGateUnfixableError("reviser failed to produce a revision", accepted);
44116
+ throw new CodeGateUnfixableError(`reviser failed to produce a revision: ${revised.error}`, accepted);
44110
44117
  }
44111
44118
  try {
44112
44119
  await deps.scopeLimit(changed);
@@ -44143,7 +44150,7 @@ async function runCodeGate(_target, deps) {
44143
44150
  };
44144
44151
  } catch (err) {
44145
44152
  if (err instanceof CodeGateUnfixableError) {
44146
- return { outcome: "CONSENSUS_BLOCKED" };
44153
+ return { outcome: "CONSENSUS_BLOCKED", blockedReason: err.message };
44147
44154
  }
44148
44155
  throw err;
44149
44156
  }
@@ -46708,20 +46715,22 @@ function errMessage2(err) {
46708
46715
 
46709
46716
  // ../../packages/agent-client/dist/providers/agy/exec.js
46710
46717
  var import_node_child_process8 = require("node:child_process");
46718
+ var AGY_READ_ONLY_NOTICE = "Tools are unavailable in this run: do not run commands or read or write files. Work only from this message, answer in exactly the format requested below, and if something you need is missing, say so in that format.";
46719
+ var AGY_CANNOT_EDIT_ERROR = "agy cannot edit files in headless mode, so it cannot apply code review fixes; select the codex or claude provider for the code gate's reviser";
46711
46720
  function runAgyExec(input, deps) {
46712
46721
  const spawn9 = deps?.spawn ?? import_node_child_process8.spawn;
46713
46722
  const executable = input.codexExecutable ?? "agy";
46714
- const args = ["--output-format", "json"];
46715
- if (input.sandbox === "read-only") {
46716
- args.push("--mode", "plan");
46717
- } else if (input.sandbox === "workspace-write") {
46718
- args.push("--mode", "accept-edits");
46723
+ const sandbox = input.sandbox ?? "read-only";
46724
+ if (sandbox === "workspace-write") {
46725
+ return Promise.resolve({ ok: false, error: AGY_CANNOT_EDIT_ERROR });
46719
46726
  }
46727
+ const args = ["--output-format", "json", "--mode", "plan"];
46720
46728
  let prompt = input.prompt;
46721
46729
  const trimmedInstructions = input.developerInstructions.trim();
46722
46730
  if (trimmedInstructions) {
46723
46731
  prompt = trimmedInstructions + "\n\n" + prompt;
46724
46732
  }
46733
+ prompt = AGY_READ_ONLY_NOTICE + "\n\n" + prompt;
46725
46734
  if (input.model) {
46726
46735
  let targetModel = input.model;
46727
46736
  if (targetModel === "gemini-3.1-pro-high" || targetModel === "gemini-3.7-flash-high") {
@@ -46803,6 +46812,13 @@ function extractOneShotResult2(stdout) {
46803
46812
  if (!parsed || parsed.status !== "SUCCESS" || typeof parsed.response !== "string") {
46804
46813
  return { ok: false, error: `agy exec failed or returned invalid response format: ${JSON.stringify(parsed)}` };
46805
46814
  }
46815
+ if (!parsed.response.trim()) {
46816
+ const denied = Array.isArray(parsed.denied_actions) ? parsed.denied_actions.map((a) => a?.display_name || a?.action).filter((name) => Boolean(name)) : [];
46817
+ return {
46818
+ ok: false,
46819
+ error: denied.length ? `agy refused ${denied.join(", ")} in headless mode and returned no answer` : "agy exec returned an empty answer"
46820
+ };
46821
+ }
46806
46822
  return {
46807
46823
  ok: true,
46808
46824
  text: parsed.response,
@@ -64189,7 +64205,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
64189
64205
  }
64190
64206
 
64191
64207
  // src/_generated/version.ts
64192
- var PKG_VERSION = "0.4.163";
64208
+ var PKG_VERSION = "0.4.164";
64193
64209
 
64194
64210
  // src/bridge-allowed-origins.ts
64195
64211
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.163",
3
+ "version": "0.4.164",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"