pyre-agent-kit 4.4.0 → 4.4.1
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 +6 -12
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -260,7 +260,7 @@ const buildCompactModelPrompt = async (kit, agent, factionCtx, recentMessages, s
|
|
|
260
260
|
return 'RS';
|
|
261
261
|
};
|
|
262
262
|
// Sentiment label
|
|
263
|
-
const sentLabel = (s) => s
|
|
263
|
+
const sentLabel = (s) => `${s >= 0 ? '+' : ''}${s.toFixed(2)}`;
|
|
264
264
|
// Per-position PnL (numeric, 2 decimal places)
|
|
265
265
|
const pnlValue = (valueSol, bal) => {
|
|
266
266
|
if (totalTokens <= 0 || netInvested <= 0)
|
|
@@ -269,12 +269,6 @@ const buildCompactModelPrompt = async (kit, agent, factionCtx, recentMessages, s
|
|
|
269
269
|
const posPnl = valueSol - estCost;
|
|
270
270
|
return `${posPnl >= 0 ? '+' : ''}${posPnl.toFixed(2)}`;
|
|
271
271
|
};
|
|
272
|
-
// Discovery tag
|
|
273
|
-
const discoveryTag = (f) => {
|
|
274
|
-
if (nearbyMints.has(f.mint))
|
|
275
|
-
return 'NB';
|
|
276
|
-
return 'UX';
|
|
277
|
-
};
|
|
278
272
|
// Build flat faction rows: FACTION (MCAP) STATUS MBR FNR [NB|UX]
|
|
279
273
|
const factionRows = [];
|
|
280
274
|
const seenMints = new Set();
|
|
@@ -330,7 +324,7 @@ const buildCompactModelPrompt = async (kit, agent, factionCtx, recentMessages, s
|
|
|
330
324
|
const nonMemberFids = tableFids.filter(fid => fid !== m);
|
|
331
325
|
const f1 = nonMemberFids.length > 0 ? (0, util_1.pick)(nonMemberFids) : m;
|
|
332
326
|
const f2 = nonMemberFids.length > 1 ? (0, util_1.pick)(nonMemberFids.filter(fid => fid !== f1)) : f1;
|
|
333
|
-
return `
|
|
327
|
+
return `Welcome to Pyre, a faction warfare game. Think in English only. Think linearly: situation → decision → reason. Do not repeat yourself. Do NOT overthink, chess/strategy mood.
|
|
334
328
|
--- GOAL:
|
|
335
329
|
Maximize long-term profit and faction dominance.
|
|
336
330
|
--- LEGEND:
|
|
@@ -344,7 +338,7 @@ ASN: ascended factions, established, more members. treasuries active. 0.04% war
|
|
|
344
338
|
MBR: true = you are a member. false = you are not a member.
|
|
345
339
|
FNR: true = you created it. false = you did not create it.
|
|
346
340
|
PNL: per-position profit. positive = winning, negative = losing.
|
|
347
|
-
SENT: sentiment score.
|
|
341
|
+
SENT: sentiment score. positive = bullish, negative = bearish.
|
|
348
342
|
--- YOU ARE:
|
|
349
343
|
NAME: @AP${agent.publicKey.slice(0, 4)}
|
|
350
344
|
BIO: ${defaults_1.personalityDesc[agent.personality]}
|
|
@@ -370,7 +364,7 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
|
370
364
|
(_) - skip turn.
|
|
371
365
|
--- RULES:
|
|
372
366
|
(+) and (&) increase MCAP. (-) decreases MCAP.
|
|
373
|
-
(!) and (#) are your voice.
|
|
367
|
+
(!) and (#) are your voice. (!) increases SENT. (#) decreases SENT.
|
|
374
368
|
(!) any FACTIONS.
|
|
375
369
|
(^) FACTIONS where STATUS=RD.
|
|
376
370
|
(~) FACTIONS where STATUS=ASN.
|
|
@@ -386,8 +380,8 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
|
386
380
|
- in FACTIONS where MBR=true, if MCAP increases, your PNL will increase.
|
|
387
381
|
- (&) and (!) to push FACTIONS where MBR=true and STATUS=RS to STATUS=ASN.
|
|
388
382
|
- consider (-) FACTIONS where MBR=true and PNL is positive to lock in profits.
|
|
389
|
-
- consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT
|
|
390
|
-
- when HLTH is negative,
|
|
383
|
+
- consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.
|
|
384
|
+
- when HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) or (&) ONLY if you see opportunity.
|
|
391
385
|
- (_) if holding is the optimal move.
|
|
392
386
|
---
|
|
393
387
|
one move per turn. output EXACTLY one line.
|