@eventmodelers/cli 0.0.16 → 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 +2 -1
- package/package.json +1 -1
- package/shared/build-kit/lib/ralph.js +2 -1
package/cli.js
CHANGED
|
@@ -1002,6 +1002,7 @@ async function runModeling(kitDir, projectDir) {
|
|
|
1002
1002
|
method: 'POST',
|
|
1003
1003
|
headers: { Authorization: `Bearer ${realtimeToken}`, 'Content-Type': 'application/json' },
|
|
1004
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,
|
|
1013
|
+
setInterval(ping, 15_000);
|
|
1013
1014
|
}
|
|
1014
1015
|
|
|
1015
1016
|
const program = new Command();
|
package/package.json
CHANGED
|
@@ -253,6 +253,7 @@ async function startRealtimeAgent(cfg, kitDir) {
|
|
|
253
253
|
method: 'POST',
|
|
254
254
|
headers: { Authorization: `Bearer ${realtimeToken}`, 'Content-Type': 'application/json' },
|
|
255
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,
|
|
264
|
+
setInterval(ping, 15_000);
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
// ── Ralph loop ────────────────────────────────────────────────────────────────
|