@mrrlin-dev/mcp 0.4.27 → 0.4.28

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 +24 -1
  2. package/package.json +4 -4
package/dist/bin.cjs CHANGED
@@ -20875,6 +20875,17 @@ function reapOrphanedBrowserProcesses(opts = {}) {
20875
20875
  }
20876
20876
  return { checked: candidates.length, killedPids, killedChildPids };
20877
20877
  }
20878
+ function checkBrowserBusy(opts = {}) {
20879
+ const homeDir = opts.homeDir ?? import_node_os.default.homedir();
20880
+ const { profilePath } = browserPaths(homeDir);
20881
+ const listProcesses = opts.listProcesses ?? defaultListProcesses;
20882
+ const flag = `--user-data-dir=${profilePath}`;
20883
+ const flagSpaced = `--user-data-dir ${profilePath}`;
20884
+ const holder = listProcesses().find(
20885
+ (p) => (p.command.includes(flag) || p.command.includes(flagSpaced)) && !p.command.includes("@playwright/mcp") && !p.command.includes("--type=")
20886
+ );
20887
+ return { busy: holder !== void 0, holderPid: holder?.pid ?? null };
20888
+ }
20878
20889
  function externalAgentsServeArgs() {
20879
20890
  return {
20880
20891
  command: process.execPath,
@@ -41822,7 +41833,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
41822
41833
  }
41823
41834
 
41824
41835
  // src/_generated/version.ts
41825
- var PKG_VERSION = "0.4.27";
41836
+ var PKG_VERSION = "0.4.28";
41826
41837
 
41827
41838
  // src/api-base-url-migrate.ts
41828
41839
  var import_node_fs3 = __toESM(require("node:fs"), 1);
@@ -64699,6 +64710,13 @@ Usage:
64699
64710
  command configure bridge wires for the
64700
64711
  [mcp_servers.mrrlin-browser] block.
64701
64712
 
64713
+ mrrlin-mcp browser-status Read-only check: is the shared browser session
64714
+ actually occupied right now? Prints
64715
+ {"busy":bool,"holderPid":number|null} to stdout.
64716
+ A building block for admission control (not yet
64717
+ wired into the scheduler or Director turn-start
64718
+ \u2014 this only answers the question).
64719
+
64702
64720
  mrrlin-mcp external-agents-serve
64703
64721
  Launch the bundled @mrrlin-dev/external-agents
64704
64722
  MCP server (multi-LLM dispatch pool). This is the
@@ -64883,6 +64901,11 @@ async function main() {
64883
64901
  process.exitCode = r.status ?? 1;
64884
64902
  return;
64885
64903
  }
64904
+ case "browser-status": {
64905
+ process.stdout.write(`${JSON.stringify(checkBrowserBusy())}
64906
+ `);
64907
+ return;
64908
+ }
64886
64909
  case "external-agents-serve": {
64887
64910
  const { command: command2, args } = externalAgentsServeArgs();
64888
64911
  const r = (0, import_node_child_process18.spawnSync)(command2, args, { stdio: "inherit", env: process.env });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.27",
3
+ "version": "0.4.28",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"
@@ -21,12 +21,12 @@
21
21
  "@types/ws": "^8.18.1",
22
22
  "esbuild": "^0.24.0",
23
23
  "tsx": "^4.22.3",
24
- "@mrrlin/client": "0.0.0",
25
24
  "@mrrlin/agent-client": "0.0.0",
26
25
  "@mrrlin/director-e2e": "0.0.0",
26
+ "@mrrlin/client": "0.0.0",
27
+ "@mrrlin/tsconfig": "0.0.0",
27
28
  "@mrrlin/wiki": "0.0.0",
28
- "@mrrlin/schemas": "0.0.0",
29
- "@mrrlin/tsconfig": "0.0.0"
29
+ "@mrrlin/schemas": "0.0.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "@iarna/toml": "^2.2.5",