@stage-labs/metro 0.1.0-beta.188 → 0.1.0-beta.189

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stage-labs/metro",
3
- "version": "0.1.0-beta.188",
3
+ "version": "0.1.0-beta.189",
4
4
  "description": "The metro command line. Sign in once per machine, then hand your MCP connector list to Claude Code without the credentials touching disk, argv or shell history.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metro",
3
- "version": "0.1.0-beta.188",
3
+ "version": "0.1.0-beta.189",
4
4
  "description": "Metro for Claude Code, installed by the metro daemon on this machine: every connector the agent holds as its own MCP server relayed through the daemon, the orchestrator-only guard on the main thread, and the standing rules loaded at each session start. No vendor credential ever sits in a config file.",
5
5
  "author": {
6
6
  "name": "Bonustrack",
@@ -12,6 +12,7 @@ import { listWorkspace, startMove } from './workspace.js';
12
12
  const PATH = '/api/agent-user';
13
13
  const WORKSPACE = '/api/agent-user/workspace';
14
14
  const EXIT_DELAY_MS = 500;
15
+ const NAMES_BODY_MAX = 128 * 1024;
15
16
 
16
17
  export interface AgentUserApiDeps {
17
18
  restart: () => void;
@@ -58,7 +59,7 @@ async function workspaceAnswer(req: IncomingMessage, dir: string): Promise<unkno
58
59
  const user = agentUser(dir);
59
60
  if (user === null) throw new ApiError('switch Claude Code to its own user first', 409);
60
61
  if (req.method === 'GET') return { user: user.name, home: user.home, entries: listWorkspace(user) };
61
- const started = startMove(bodyField(await readJsonBody(req), 'names'), user);
62
+ const started = startMove(bodyField(await readJsonBody(req, NAMES_BODY_MAX), 'names'), user);
62
63
  return { started, entries: listWorkspace(user) };
63
64
  }
64
65
 
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.1.0-beta.188"
2
+ "version": "0.1.0-beta.189"
3
3
  }