replicas-mcp 0.1.5 → 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 +8 -2
- package/package.json +1 -1
- package/src/index.ts +0 -2
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 {
|
|
@@ -470,7 +478,6 @@ registerTool(
|
|
|
470
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
package/src/index.ts
CHANGED
|
@@ -70,7 +70,6 @@ registerTool(
|
|
|
70
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) {
|