@mrrlin-dev/mcp 0.4.283 → 0.4.285

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 +22 -22
  2. package/package.json +1 -1
package/dist/bin.cjs CHANGED
@@ -17722,15 +17722,7 @@ var init_operatorSettings = __esm({
17722
17722
  // the CLI accepts as `id`, a human label carrying the version the alias resolves to, and that
17723
17723
  // resolved model id as the description. Empty for a provider that lists models live.
17724
17724
  modelCatalog: external_exports.array(external_exports.object({ id: external_exports.string(), displayName: external_exports.string(), description: external_exports.string() })),
17725
- sandboxModes: external_exports.array(external_exports.enum(["read-only", "workspace-write", "danger-full-access"])),
17726
- // Retired with the external-agents pool (ADR 0032): nothing reads it any more. Removal is two steps
17727
- // because the API sends this object and installed bridges (and the web app) parse it with this
17728
- // schema: step 1 (this) makes the field optional and ships in a bridge release. Step 2 stops sending
17729
- // it and deletes it here, from AGENT_CAPABILITIES and from the adapters, but only after bridges at
17730
- // or below @mrrlin-dev/mcp 0.4.162 are gone (nothing enforces a minimum bridge version, and an old
17731
- // bridge would throw on every getOperatorSettings(); execution-consumer and deploy-gate fail open on
17732
- // that and would miss autonomyPaused), and with the web app deployed before the API.
17733
- poolProviderLabels: external_exports.array(external_exports.string()).optional()
17725
+ sandboxModes: external_exports.array(external_exports.enum(["read-only", "workspace-write", "danger-full-access"]))
17734
17726
  });
17735
17727
  AGENT_CAPABILITIES = {
17736
17728
  codex: {
@@ -17739,8 +17731,7 @@ var init_operatorSettings = __esm({
17739
17731
  pushesRateLimits: true,
17740
17732
  models: [],
17741
17733
  modelCatalog: [],
17742
- sandboxModes: ["read-only", "workspace-write", "danger-full-access"],
17743
- poolProviderLabels: ["openai"]
17734
+ sandboxModes: ["read-only", "workspace-write", "danger-full-access"]
17744
17735
  },
17745
17736
  claude: {
17746
17737
  listsModels: false,
@@ -17756,8 +17747,7 @@ var init_operatorSettings = __esm({
17756
17747
  { id: "sonnet", displayName: "Sonnet 5.5", description: "claude-sonnet-5-5" },
17757
17748
  { id: "haiku", displayName: "Haiku 5.5", description: "claude-haiku-5-5" }
17758
17749
  ],
17759
- sandboxModes: ["read-only", "workspace-write", "danger-full-access"],
17760
- poolProviderLabels: ["anthropic"]
17750
+ sandboxModes: ["read-only", "workspace-write", "danger-full-access"]
17761
17751
  },
17762
17752
  agy: {
17763
17753
  listsModels: true,
@@ -17795,8 +17785,7 @@ var init_operatorSettings = __esm({
17795
17785
  { id: "claude-opus-4-6-thinking", displayName: "Claude Opus 4.6 (Thinking)", description: "claude-opus-4-6-thinking" },
17796
17786
  { id: "gpt-oss-120b-medium", displayName: "GPT-OSS 120B (Medium)", description: "gpt-oss-120b-medium" }
17797
17787
  ],
17798
- sandboxModes: ["read-only", "workspace-write", "danger-full-access"],
17799
- poolProviderLabels: ["antigravity", "google"]
17788
+ sandboxModes: ["read-only", "workspace-write", "danger-full-access"]
17800
17789
  }
17801
17790
  };
17802
17791
  providerReadinessResultSchema = external_exports.object({
@@ -21946,7 +21935,9 @@ var init_dist = __esm({
21946
21935
  hostname: external_exports.string(),
21947
21936
  os: external_exports.string(),
21948
21937
  cliVersion: external_exports.string(),
21949
- credentialSecret: external_exports.string().optional()
21938
+ credentialSecret: external_exports.string().optional(),
21939
+ // Optional hint from `mrrlin-mcp connect` naming which AI host (codex/claude/agy) actually ran it.
21940
+ detectedProvider: external_exports.string().optional()
21950
21941
  });
21951
21942
  redeemSetupCodeResponseSchema = external_exports.discriminatedUnion("kind", [
21952
21943
  external_exports.object({
@@ -23964,8 +23955,7 @@ var init_adapter = __esm({
23964
23955
  pushesRateLimits: true,
23965
23956
  models: [],
23966
23957
  modelCatalog: [],
23967
- sandboxModes: ["read-only", "workspace-write", "danger-full-access"],
23968
- poolProviderLabels: ["openai"]
23958
+ sandboxModes: ["read-only", "workspace-write", "danger-full-access"]
23969
23959
  };
23970
23960
  }
23971
23961
  async acquireWarm() {
@@ -25363,8 +25353,7 @@ var init_adapter2 = __esm({
25363
25353
  // below is what actually translates a (sandbox, approvalPolicy) pair into this provider's
25364
25354
  // real --permission-mode. Advertised here so a picker never offers a mode this adapter can't
25365
25355
  // honor, mirroring the Codex adapter's own capabilities() literal.
25366
- sandboxModes: ["read-only", "workspace-write", "danger-full-access"],
25367
- poolProviderLabels: ["anthropic"]
25356
+ sandboxModes: ["read-only", "workspace-write", "danger-full-access"]
25368
25357
  };
25369
25358
  }
25370
25359
  // No process-level "warm pool" of our own: unlike Codex's one shared app-server connection,
@@ -108013,7 +108002,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
108013
108002
  }
108014
108003
 
108015
108004
  // src/_generated/version.ts
108016
- var PKG_VERSION = "0.4.283";
108005
+ var PKG_VERSION = "0.4.285";
108017
108006
 
108018
108007
  // src/bridge-allowed-origins.ts
108019
108008
  var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
@@ -133718,6 +133707,15 @@ function parseCode(argv) {
133718
133707
  function isUnauthorized(error51) {
133719
133708
  return typeof error51 === "object" && error51 !== null && error51.status === 401;
133720
133709
  }
133710
+ function detectCallerProvider(env) {
133711
+ const matches = [];
133712
+ if (env.CLAUDECODE === "1" || Boolean(env.CLAUDE_CODE_ENTRYPOINT?.trim())) matches.push("claude");
133713
+ if (Boolean(env.CODEX_THREAD_ID?.trim()) || env.CODEX_CI === "1" || Boolean(env.CODEX_SANDBOX?.trim())) {
133714
+ matches.push("codex");
133715
+ }
133716
+ if (env.ANTIGRAVITY_AGENT === "1" || Boolean(env.ANTIGRAVITY_CONVERSATION_ID?.trim())) matches.push("agy");
133717
+ return matches.length === 1 ? matches[0] : void 0;
133718
+ }
133721
133719
  async function runConnect(argv, deps) {
133722
133720
  const say = (message) => deps.log(`[mrrlin-mcp connect] ${message}`);
133723
133721
  const code = parseCode(argv);
@@ -133725,11 +133723,13 @@ async function runConnect(argv, deps) {
133725
133723
  say("Usage: mrrlin-mcp connect --code <setup code> [--switch-account]");
133726
133724
  return 2;
133727
133725
  }
133726
+ const detectedProvider = detectCallerProvider(deps.env);
133728
133727
  const baseBody = {
133729
133728
  code,
133730
133729
  hostname: deps.hostname,
133731
133730
  os: `${deps.platform} ${deps.osRelease}`.trim(),
133732
- cliVersion: deps.cliVersion
133731
+ cliVersion: deps.cliVersion,
133732
+ ...detectedProvider ? { detectedProvider } : {}
133733
133733
  };
133734
133734
  const stored = deps.readSecret();
133735
133735
  const switchAccount = argv.includes("--switch-account");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.283",
3
+ "version": "0.4.285",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"