pyre-agent-kit 4.3.9 → 4.3.11
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/agent.js +1 -1
- package/dist/cli.js +3 -2
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -128,7 +128,7 @@ FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT,LOAN
|
|
|
128
128
|
${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
|
|
129
129
|
--- ACTIONS:
|
|
130
130
|
FORMAT: (action) $ "*"
|
|
131
|
-
REPLACE $ with EXACTLY one FID from FACTIONS (always ends in pw).
|
|
131
|
+
REPLACE $ with EXACTLY one FID from FACTIONS ONLY (always ends in pw).
|
|
132
132
|
REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
133
133
|
(+) $ "*" - join.
|
|
134
134
|
(-) $ "*" - leave or reduce position.
|
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 ─────────────────────────────────────────────────────────
|