@kya-os/create-molti 0.1.0-canary.6 → 0.1.0-canary.7

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.
@@ -23,7 +23,7 @@ export async function ensureMoltbotGateway(
23
23
  env: Record<string, unknown>
24
24
  ): Promise<void> {
25
25
  // Check for existing process
26
- const processes = await sandbox.ps();
26
+ const processes = await sandbox.listProcesses();
27
27
  const existing = processes.find(
28
28
  (p: { command: string; status: string }) =>
29
29
  (p.command.includes("start-moltbot.sh") || p.command.includes("clawdbot gateway")) &&
@@ -39,7 +39,7 @@ export async function ensureMoltbotGateway(
39
39
  const envVars = buildEnvVars(env);
40
40
 
41
41
  // Start the moltbot process
42
- await sandbox.start("/usr/local/bin/start-moltbot.sh", {
42
+ await sandbox.startProcess("/usr/local/bin/start-moltbot.sh", {
43
43
  env: envVars,
44
44
  });
45
45
 
@@ -33,7 +33,7 @@ publicRoutes.get("/api/status", async (c) => {
33
33
  const sandbox = c.get("sandbox");
34
34
 
35
35
  try {
36
- const processes = await sandbox.ps();
36
+ const processes = await sandbox.listProcesses();
37
37
  const moltbot = processes.find(
38
38
  (p: { command: string; status: string }) =>
39
39
  (p.command.includes("start-moltbot.sh") || p.command.includes("clawdbot gateway")) &&
@@ -47,7 +47,7 @@ publicRoutes.get("/api/status", async (c) => {
47
47
  did: c.env.MCP_IDENTITY_AGENT_DID,
48
48
  },
49
49
  gateway: moltbot
50
- ? { pid: moltbot.pid, status: moltbot.status }
50
+ ? { id: moltbot.id, pid: moltbot.pid, status: moltbot.status }
51
51
  : null,
52
52
  });
53
53
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/create-molti",
3
- "version": "0.1.0-canary.6",
3
+ "version": "0.1.0-canary.7",
4
4
  "description": "Scaffold a Moltworker project with MCP-I identity",
5
5
  "type": "module",
6
6
  "main": "./dist/helpers/index.js",
@@ -24,7 +24,7 @@ export async function ensureMoltbotGateway(
24
24
  env: Record<string, unknown>
25
25
  ): Promise<void> {
26
26
  // Check for existing process
27
- const processes = await sandbox.ps();
27
+ const processes = await sandbox.listProcesses();
28
28
  const existing = processes.find(
29
29
  (p: { command: string; status: string }) =>
30
30
  (p.command.includes("start-moltbot.sh") || p.command.includes("clawdbot gateway")) &&
@@ -40,7 +40,7 @@ export async function ensureMoltbotGateway(
40
40
  const envVars = buildEnvVars(env);
41
41
 
42
42
  // Start the moltbot process
43
- await sandbox.start("/usr/local/bin/start-moltbot.sh", {
43
+ await sandbox.startProcess("/usr/local/bin/start-moltbot.sh", {
44
44
  env: envVars,
45
45
  });
46
46
 
@@ -34,7 +34,7 @@ publicRoutes.get("/api/status", async (c) => {
34
34
  const sandbox = c.get("sandbox");
35
35
 
36
36
  try {
37
- const processes = await sandbox.ps();
37
+ const processes = await sandbox.listProcesses();
38
38
  const moltbot = processes.find(
39
39
  (p: { command: string; status: string }) =>
40
40
  (p.command.includes("start-moltbot.sh") || p.command.includes("clawdbot gateway")) &&
@@ -48,7 +48,7 @@ publicRoutes.get("/api/status", async (c) => {
48
48
  did: c.env.MCP_IDENTITY_AGENT_DID,
49
49
  },
50
50
  gateway: moltbot
51
- ? { pid: moltbot.pid, status: moltbot.status }
51
+ ? { id: moltbot.id, pid: moltbot.pid, status: moltbot.status }
52
52
  : null,
53
53
  });
54
54
  } catch (err) {