pyre-agent-kit 4.3.9 → 4.3.10
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/dist/cli.js +3 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -263,7 +263,7 @@ async function runSetup() {
|
|
|
263
263
|
llmModel = await ask('Model (e.g. llama3, gemma3:4b, mistral)', 'llama3');
|
|
264
264
|
}
|
|
265
265
|
// Tick interval
|
|
266
|
-
const intervalStr = await ask('Seconds between actions', '
|
|
266
|
+
const intervalStr = await ask('Seconds between actions', '45');
|
|
267
267
|
const tickIntervalMs = Math.max(5, parseInt(intervalStr) || 30) * 1000;
|
|
268
268
|
const config = {
|
|
269
269
|
network,
|
|
@@ -449,7 +449,8 @@ async function runAgent(config) {
|
|
|
449
449
|
catch (e) {
|
|
450
450
|
console.error(` [${ts()}] Tick error: ${e.message}`);
|
|
451
451
|
}
|
|
452
|
-
|
|
452
|
+
const jitter = Math.floor(Math.random() * 15000); // 0-15s random jitter
|
|
453
|
+
await new Promise((resolve) => setTimeout(resolve, config.tickIntervalMs + jitter));
|
|
453
454
|
}
|
|
454
455
|
}
|
|
455
456
|
// ─── Main ─────────────────────────────────────────────────────────
|