pyre-agent-kit 4.4.6 → 4.4.7

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.
Files changed (2) hide show
  1. package/dist/agent.js +16 -16
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -120,10 +120,10 @@ const buildAgentPrompt = async (kit, agent, factionCtx, solRange, holdings) => {
120
120
  }
121
121
  const memoryEntries = [...kit.state.history].slice(-20);
122
122
  const memoryBlock = memoryEntries.length > 0
123
- ? memoryEntries.slice(0, 7).map((m) => `- ${m}`).join('; ')
123
+ ? memoryEntries.slice(0, 4).map((m) => `- ${m}`).join('; ')
124
124
  : 'none';
125
125
  // Pick example FIDs only from factions actually shown in the table
126
- const tableFids = factionRows.map(r => r.split(',')[0]);
126
+ const tableFids = factionRows.slice(0, 15).map(r => r.split(',')[0]);
127
127
  const m = tableFids.find(fid => heldMints.has([...seenMints].find(mint => mint.endsWith(fid)) ?? '')) ?? tableFids[0] ?? 'xxxxxxpw';
128
128
  const nonMemberFids = tableFids.filter(fid => fid !== m);
129
129
  const f1 = nonMemberFids.length > 0 ? (0, util_1.pick)(nonMemberFids) : m;
@@ -156,7 +156,7 @@ RIVALS: ${agent.rivals.size > 0 ? [...agent.rivals].slice(0, 5).map((a) => `@AP$
156
156
  LATEST: ${intelSnippet}
157
157
  --- FACTIONS:
158
158
  FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT,LOAN
159
- ${factionRows.length > 0 ? factionRows.slice(0, 14).join('\n') : 'none'}
159
+ ${factionRows.length > 0 ? factionRows.slice(0, 15).join('\n') : 'none'}
160
160
  --- ACTIONS:
161
161
  FORMAT: (action) $ "*"
162
162
  REPLACE $ with EXACTLY one FID from FACTIONS ONLY (always ends in pw).
@@ -166,7 +166,7 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
166
166
  (/) $ "*" - infiltrate, sneak in.
167
167
  (&) $ "*" - reinforce. increase position. bullish.
168
168
  (!) $ "*" - talk in comms.
169
- (#) $ "*" - fud or trash talk.
169
+ (#) $ "*" - trash talk.
170
170
  (^) $ - ascend. unlock treasury.
171
171
  (~) $ - harvest fees.
172
172
  (?) $ - borrow against position.
@@ -356,7 +356,7 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
356
356
  (-) $ "*" - leave or reduce.
357
357
  (&) $ "*" - reinforce. increase position.
358
358
  (!) $ "*" - talk in comms.
359
- (#) $ "*" - fud or trash talk.
359
+ (#) $ "*" - trash talk.
360
360
  (^) $ - ascend. unlock treasury.
361
361
  (~) $ - harvest fees.
362
362
  (%) "..." - create new faction. "..." = creative name, in quotes.
@@ -374,7 +374,7 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
374
374
  - no FACTIONS? (%) to create one.
375
375
  - learn about FACTIONS and other agents in INTEL. HLTH is performance. PNL and SENT are per-faction direction. use all three to decide.
376
376
  - limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
377
- - FACTIONS where FNR=true and MBR=false, consider (+). promote it with (!).
377
+ - FACTIONS where FNR=true and MBR=false, consider (+). (!) to promote it.
378
378
  - FACTIONS where STATUS=RS may have higher reward if you (+) the right one.
379
379
  - in FACTIONS where MBR=true, if MCAP increases, your PNL will increase.
380
380
  - (&) and (!) strengthen FACTIONS where MBR=true and STATUS=RS and push towards STATUS=ASN.
@@ -492,7 +492,7 @@ const buildMinimumPrompt = async (kit, agent, factionCtx, solRange, holdings) =>
492
492
  }
493
493
  catch { }
494
494
  // Pick example FIDs only from factions actually shown in the table
495
- const tableFids = factionRows.map(r => r.split(',')[0]);
495
+ const tableFids = factionRows.slice(0, 4).map(r => r.split(',')[0]);
496
496
  const m = tableFids.find(fid => heldMints.has([...seenMints].find(mint => mint.endsWith(fid)) ?? '')) ?? tableFids[0] ?? 'xxxxxxpw';
497
497
  const nonMemberFids = tableFids.filter(fid => fid !== m);
498
498
  const f1 = nonMemberFids.length > 0 ? (0, util_1.pick)(nonMemberFids) : m;
@@ -521,7 +521,7 @@ ${unrealizedPnl > 1 ? 'YOU ARE UP. consider taking profits.' : unrealizedPnl < -
521
521
  ${intelSnippet}
522
522
  --- FACTIONS:
523
523
  FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT
524
- ${factionRows.length > 0 ? factionRows.slice(0, 5).join('\n') : 'none'}
524
+ ${factionRows.length > 0 ? factionRows.slice(0, 4).join('\n') : 'none'}
525
525
  --- ACTIONS:
526
526
  FORMAT: (action) $ OR (action) $ "*"
527
527
  REPLACE $ with EXACTLY one FID from FACTIONS ONLY (always ends in pw).
@@ -529,8 +529,8 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
529
529
  (+) $ - join.
530
530
  (-) $ - leave or reduce.
531
531
  (&) $ - increase position.
532
- (!) $ "*" - talk in comms.
533
- (#) $ "*" - fud or trash talk.
532
+ (!) $ "*" - talk in comms. your voice.
533
+ (#) $ "*" - trash talk.
534
534
  (^) $ - ascend. unlock treasury.
535
535
  (~) $ - harvest fees.
536
536
  (%) "..." - create new faction. "..." = creative name, in quotes.
@@ -548,13 +548,13 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
548
548
  - no FACTIONS? (%) to create one.
549
549
  - learn about FACTIONS and other agents in INTEL. HLTH is performance. PNL and SENT are per-faction direction. use all three to decide.
550
550
  - limit FACTIONS where MBR=true to AT MOST 3.${memberOf.length > 1 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
551
- - FACTIONS where FNR=true and MBR=false, consider (+). promote it with (!).
552
- - FACTIONS where STATUS=RS and MBR=false may have higher reward if you (+) the right one.
551
+ - FACTIONS where FNR=true and MBR=false, consider (+). (!) to promote it.
552
+ - FACTIONS where STATUS=RS may have higher reward if you (+) the right one.
553
553
  - in FACTIONS where MBR=true, if MCAP increases, your PNL will increase.
554
554
  - (&) and (!) to push FACTIONS where MBR=true and STATUS=RS to STATUS=ASN.
555
555
  - consider (-) FACTIONS where MBR=true and PNL is positive to lock in profits.
556
556
  - consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.
557
- - when HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) or (&) ONLY if you see opportunity.
557
+ - if HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) or (&) ONLY if you see opportunity.
558
558
  - (_) if you would prefer to hold and wait to take action.
559
559
  ---
560
560
  one move per turn. output EXACTLY one line.
@@ -562,10 +562,10 @@ example format: ${(0, util_1.pick)([
562
562
  `(+) ${f1}`,
563
563
  `(&) ${m}`,
564
564
  `(-) ${m}`,
565
- `(!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'not leaving.'])}"`,
565
+ `(!) ${m} "${(0, util_1.pick)(['any strategies?', 'not leaving.'])}"`,
566
566
  `(#) ${m} "${(0, util_1.pick)(['dead faction.', 'overvalued.'])}"`,
567
- `(!) ${m} "${(0, util_1.pick)(['who else is here?', 'just getting started.'])}"`,
568
- `(#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'this faction is underperforming.'])}"`,
567
+ `(!) ${m} "${(0, util_1.pick)(['who else is here?', 'love the energy.'])}"`,
568
+ `(#) ${m} "${(0, util_1.pick)(['faction went quiet.', 'underperforming.'])}"`,
569
569
  ])}
570
570
  >`;
571
571
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "4.4.6",
3
+ "version": "4.4.7",
4
4
  "description": "Autonomous agent kit for Pyre — plug in your own LLM and play pyre.world",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",