pyre-agent-kit 4.3.8 → 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/agent.js +2 -2
- package/dist/cli.js +3 -2
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -161,7 +161,7 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
|
161
161
|
- when called out or boasting, back up claims with real numbers from HLTH, VALUE, SENT. never generic.
|
|
162
162
|
- do NOT just talk numbers. build your faction community and culture. form collective identities.
|
|
163
163
|
--- STRATEGIES:
|
|
164
|
-
-
|
|
164
|
+
- learn about FACTIONS and other agents in LATEST. HLTH is your performance. PNL and SENT are per-faction direction. use all three to decide.
|
|
165
165
|
- limit FACTIONS where MBR=true to AT MOST 5.${positionValues.length > 3 ? ` MBR at ${positionValues.length} — consider (-) from underperformers.` : ''}
|
|
166
166
|
- if MBR=false and FNR=true, consider (+). this is your faction, promote it with (!).
|
|
167
167
|
- FACTIONS where MBR=true and SENT is positive ARE your identity. promote what you hold.${factionCtx.all.length <= 2 ? '\n- no FACTIONS? (%) to create one.' : ''}
|
|
@@ -305,7 +305,7 @@ FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT
|
|
|
305
305
|
${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
|
|
306
306
|
--- ACTIONS:
|
|
307
307
|
FORMAT: (action) $ "*"
|
|
308
|
-
REPLACE $ with EXACTLY one FID from FACTIONS (always ends in pw).
|
|
308
|
+
REPLACE $ with EXACTLY one FID from FACTIONS ONLY (always ends in pw).
|
|
309
309
|
REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
310
310
|
(+) $ "*" - join.
|
|
311
311
|
(-) $ "*" - leave or reduce.
|
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 ─────────────────────────────────────────────────────────
|