replicas-mcp 0.1.4 → 0.1.6

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/dist/index.js CHANGED
@@ -5,6 +5,14 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
6
  import { z } from "zod";
7
7
 
8
+ // ../shared/src/sandbox.ts
9
+ var SANDBOX_LIFECYCLE = {
10
+ AUTO_STOP_MINUTES: 60,
11
+ AUTO_ARCHIVE_MINUTES: 60 * 24 * 7,
12
+ AUTO_DELETE_MINUTES: -1,
13
+ SSH_TOKEN_EXPIRATION_MINUTES: 3 * 60
14
+ };
15
+
8
16
  // ../shared/src/display-message/parsers/codex-parser.ts
9
17
  function safeJsonParse(str, fallback) {
10
18
  try {
@@ -467,10 +475,9 @@ registerTool(
467
475
  {
468
476
  description: "Create a new replica workspace and send initial message",
469
477
  inputSchema: {
470
- name: z.string(),
478
+ name: z.string().regex(/^\S+$/, "Name cannot contain spaces"),
471
479
  message: z.string(),
472
480
  repository: z.string(),
473
- instance_type: z.enum(["standard", "large", "power"]).optional(),
474
481
  coding_agent: z.enum(["claude", "codex"]).optional()
475
482
  }
476
483
  },
@@ -481,7 +488,6 @@ registerTool(
481
488
  message: args.message,
482
489
  repository: args.repository
483
490
  };
484
- if (args.instance_type) body.instance_type = args.instance_type;
485
491
  if (args.coding_agent) body.coding_agent = args.coding_agent;
486
492
  return result(await api("POST", "/v1/replica", body));
487
493
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-mcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -67,10 +67,9 @@ registerTool(
67
67
  {
68
68
  description: 'Create a new replica workspace and send initial message',
69
69
  inputSchema: {
70
- name: z.string(),
70
+ name: z.string().regex(/^\S+$/, 'Name cannot contain spaces'),
71
71
  message: z.string(),
72
72
  repository: z.string(),
73
- instance_type: z.enum(['standard', 'large', 'power']).optional(),
74
73
  coding_agent: z.enum(['claude', 'codex']).optional(),
75
74
  },
76
75
  },
@@ -81,7 +80,6 @@ registerTool(
81
80
  message: args.message,
82
81
  repository: args.repository,
83
82
  };
84
- if (args.instance_type) body.instance_type = args.instance_type;
85
83
  if (args.coding_agent) body.coding_agent = args.coding_agent;
86
84
  return result(await api('POST', '/v1/replica', body));
87
85
  } catch (e) {