@eventmodelers/cli 0.0.19 → 0.0.20

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
@@ -1042,7 +1042,7 @@ async function runModeling(kitDir, projectDir) {
1042
1042
  body: JSON.stringify({ token: cfg.token, board_id: cfg.boardId, agent_type: 'MODELING', agent_id: cfg.agentId }),
1043
1043
  signal: AbortSignal.timeout(10_000),
1044
1044
  });
1045
- if (!res.ok) log(`ping failed: ${res.status}`);
1045
+ if (!res.ok) log(`ping failed: ${res.status} ${await res.text().catch(() => '')}`);
1046
1046
  } catch (err) {
1047
1047
  log(`ping error: ${err.message}`);
1048
1048
  }
@@ -1234,7 +1234,12 @@ program
1234
1234
  console.error(`❌ --modeling only supports a modeling-kit install (${MODELING_KIT.kitDirName}/) — it subscribes to the org-wide prompt queue, which build-kit stacks don't have. Use \`eventmodelers run\` (optionally with --ollama/--bash) for build-kit's slice-status loop instead.`);
1235
1235
  process.exit(1);
1236
1236
  }
1237
- console.log(`▶ Starting modeling loop (warm Claude process) for ${relative(cwd, kitDir)}...\n`);
1237
+ // Writes to a stdout pipe are asynchronous on POSIX — without waiting for this
1238
+ // write's own flush callback, the heavier synchronous/async work runModeling()
1239
+ // does right after (dynamic imports, config reads) can eat the event-loop tick
1240
+ // this write needed to drain, so a piped watcher sees the ping arrive after
1241
+ // runModeling's own [modeling] log lines instead of before them.
1242
+ await new Promise((res) => process.stdout.write(`▶ Starting modeling loop (warm Claude process) for ${relative(cwd, kitDir)}...\n\n`, res));
1238
1243
  try {
1239
1244
  await runModeling(kitDir, resolve(kitDir, '..'));
1240
1245
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventmodelers/cli",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
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": {
@@ -279,7 +279,7 @@ async function startRealtimeAgent(cfg, kitDir) {
279
279
  body: JSON.stringify({ token: cfg.token, board_id: cfg.boardId, agent_type: 'BUILD', agent_id: cfg.agentId }),
280
280
  signal: AbortSignal.timeout(10_000),
281
281
  });
282
- if (!res.ok) console.error(`[agent] Ping failed: ${res.status}`);
282
+ if (!res.ok) console.error(`[agent] Ping failed: ${res.status} ${await res.text().catch(() => '')}`);
283
283
  } catch (err) {
284
284
  console.error('[agent] Ping error:', err);
285
285
  }