ropilot 0.1.37 → 0.1.38

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/lib/proxy.js +27 -0
  2. package/package.json +1 -1
package/lib/proxy.js CHANGED
@@ -231,6 +231,30 @@ async function checkPluginUpdate() {
231
231
  }
232
232
  }
233
233
 
234
+ /**
235
+ * Try to start rojo serve in background (non-blocking, silent on failure)
236
+ */
237
+ function tryStartRojoServe() {
238
+ try {
239
+ // Check if default.project.json exists (indicates a Rojo project)
240
+ if (!existsSync(join(process.cwd(), 'default.project.json'))) {
241
+ return; // Not a Rojo project
242
+ }
243
+
244
+ // Start rojo serve in background, detached from this process
245
+ const child = spawn('rojo', ['serve'], {
246
+ cwd: process.cwd(),
247
+ detached: true,
248
+ stdio: 'ignore'
249
+ });
250
+
251
+ // Unref so parent can exit independently
252
+ child.unref();
253
+ } catch {
254
+ // Silently ignore - rojo not installed or failed to start
255
+ }
256
+ }
257
+
234
258
  /**
235
259
  * Run the stdio MCP server
236
260
  */
@@ -249,6 +273,9 @@ export async function serve() {
249
273
  // Check for plugin updates in background (non-blocking)
250
274
  checkPluginUpdate();
251
275
 
276
+ // Start rojo serve in background if available (non-blocking, silent on failure)
277
+ tryStartRojoServe();
278
+
252
279
  // Read JSON-RPC messages from stdin
253
280
  // Supports both Content-Length framing (LSP-style) and newline-delimited JSON
254
281
  let buffer = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ropilot",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "AI-powered Roblox development assistant - MCP CLI",
5
5
  "author": "whut",
6
6
  "license": "MIT",