@eventmodelers/cli 0.0.15 → 0.0.17

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/cli.js CHANGED
@@ -1001,7 +1001,8 @@ async function runModeling(kitDir, projectDir) {
1001
1001
  const res = await fetch(`${cfg.baseUrl}/api/agent-alive`, {
1002
1002
  method: 'POST',
1003
1003
  headers: { Authorization: `Bearer ${realtimeToken}`, 'Content-Type': 'application/json' },
1004
- body: JSON.stringify({ token: cfg.token, board_id: cfg.boardId }),
1004
+ body: JSON.stringify({ token: cfg.token, board_id: cfg.boardId, agent_type: 'MODELING' }),
1005
+ signal: AbortSignal.timeout(10_000),
1005
1006
  });
1006
1007
  if (!res.ok) log(`ping failed: ${res.status}`);
1007
1008
  } catch (err) {
@@ -1009,7 +1010,7 @@ async function runModeling(kitDir, projectDir) {
1009
1010
  }
1010
1011
  };
1011
1012
  await ping();
1012
- setInterval(ping, 30_000);
1013
+ setInterval(ping, 15_000);
1013
1014
  }
1014
1015
 
1015
1016
  const program = new Command();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventmodelers/cli",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Eventmodelers CLI — real-time Claude agent + skills for Claude Code, for any stack (Node, Supabase, Axon, Cratis, or modeling-only)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -252,7 +252,8 @@ async function startRealtimeAgent(cfg, kitDir) {
252
252
  const res = await fetch(`${cfg.baseUrl}/api/agent-alive`, {
253
253
  method: 'POST',
254
254
  headers: { Authorization: `Bearer ${realtimeToken}`, 'Content-Type': 'application/json' },
255
- body: JSON.stringify({ token: cfg.token, board_id: cfg.boardId }),
255
+ body: JSON.stringify({ token: cfg.token, board_id: cfg.boardId, agent_type: 'BUILD' }),
256
+ signal: AbortSignal.timeout(10_000),
256
257
  });
257
258
  if (!res.ok) console.error(`[agent] Ping failed: ${res.status}`);
258
259
  } catch (err) {
@@ -260,7 +261,7 @@ async function startRealtimeAgent(cfg, kitDir) {
260
261
  }
261
262
  };
262
263
  await ping();
263
- setInterval(ping, 30_000);
264
+ setInterval(ping, 15_000);
264
265
  }
265
266
 
266
267
  // ── Ralph loop ────────────────────────────────────────────────────────────────