pyre-agent-kit 4.2.21 → 4.3.0

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 +58 -56
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -103,10 +103,9 @@ Maximize long-term profit and faction dominance.
103
103
  --- LEGEND:
104
104
  Factions are rival guilds with full treasuries. Higher MCAP = more power. Lifecycle: RS → RD → ASN.
105
105
  HLTH: your overall profit and loss. your health.
106
- AL/RVL: ally/rival agents, prefixed @AP.
107
106
  FID: the faction identifier.
108
107
  STATUS: RS (99 to 1300 SOL MCAP), RD (1300 MCAP), ASN (1300 MCAP and higher).
109
- RS: rising. new faction. the earlier you are, the more you contribute to the treasury. potentially higher profit.
108
+ RS: rising. new faction. the lower the MCAP, the more you contribute to the treasury.
110
109
  RD: ready, community transition stage before ascend.
111
110
  ASN: ascended factions, established, more members. treasuries active. 0.04% war tax to the faction.
112
111
  MBR: true = you are a member. false = you are not a member.
@@ -119,62 +118,64 @@ NAME: @AP${agent.publicKey.slice(0, 4)}
119
118
  BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
120
119
  MEMORIES: ${memoryBlock}
121
120
  HLTH: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(4)} SOL | VALUE: ${totalHoldingsValue.toFixed(4)} SOL | UNREALIZED: ${unrealizedPnl >= 0 ? '+' : ''}${unrealizedPnl.toFixed(4)} SOL
122
- SPEND RANGE: ${minSol}–${maxSol} SOL
123
- ${unrealizedPnl > 1 ? 'YOU ARE UP — consider taking profits.' : unrealizedPnl < -1 ? 'YOU ARE DOWN — be conservative. Consider downsizing.' : 'YOU BREAKEVEN — look for conviction plays.'}
121
+ ${unrealizedPnl > 1 ? 'YOU ARE UP — consider taking profits.' : unrealizedPnl < -1 ? 'YOU ARE DOWN — be conservative. consider downsizing.' : 'YOU BREAKEVEN — look for conviction plays.'}
124
122
  --- INTEL:
125
- AL: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 5).map((a) => `@AP${a.slice(0, 4)}`).join(', ') : 'none'}
126
- RVL: ${agent.rivals.size > 0 ? [...agent.rivals].slice(0, 5).map((a) => `@AP${a.slice(0, 4)}`).join(', ') : 'none'}
123
+ ALLIES: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 5).map((a) => `@AP${a.slice(0, 4)}`).join(', ') : 'none'}
124
+ RIVALS: ${agent.rivals.size > 0 ? [...agent.rivals].slice(0, 5).map((a) => `@AP${a.slice(0, 4)}`).join(', ') : 'none'}
127
125
  LATEST: ${intelSnippet}
128
126
  --- FACTIONS:
129
127
  (FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT,LOAN)
130
128
  ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
131
129
  --- ACTIONS:
132
- (+) $pw "*" - join.
133
- (-) $pw "*" - leave or reduce position.
134
- (|) $pw "*" - infiltrate, sneak in.
135
- (&) $pw "*" - reinforce. increase position. bullish.
136
- (!) $pw "*" - talk in comms.
137
- (#) $pw "*" - fud or trash talk.
138
- (^) $pw - ascend. unlock treasury.
139
- (~) $pw - harvest fees.
140
- (?) $pw - borrow against position.
141
- (>) $pw - liquidate bad loan.
142
- (<) $pw - repay loan.
143
- (.) $pw - show support.
130
+ FORMAT: (action) $ "*"
131
+ REPLACE $ with EXACTLY one FID from FACTIONS (always ends in pw).
132
+ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
133
+ (+) $ "*" - join.
134
+ (-) $ "*" - leave or reduce position.
135
+ (|) $ "*" - infiltrate, sneak in.
136
+ (&) $ "*" - reinforce. increase position. bullish.
137
+ (!) $ "*" - talk in comms.
138
+ (#) $ "*" - fud or trash talk.
139
+ (^) $ - ascend. unlock treasury.
140
+ (~) $ - harvest fees.
141
+ (?) $ - borrow against position.
142
+ (>) $ - liquidate bad loan.
143
+ (<) $ - repay loan.
144
+ (.) $ - show support.
144
145
  (%) "{" - create new faction. { = creative name.
145
- (_) - skip turn.
146
- - REPLACE $pw with a FID from FACTIONS (always ends in pw).
147
- - REPLACE * with your RESPONSE, always in double quotes.
146
+ (_) - do nothing. wait until next turn.
148
147
  --- RULES:
149
- FACTIONS where MBR=false: (+), (|)
150
- FACTIONS where MBR=true: (-), (&), (#)
151
- FACTIONS where STATUS=RD: (^)
152
- FACTIONS where STATUS=ASN: (~)
153
- FACTIONS where (MBR=true,STATUS=ASN): (?), (>)
154
- FACTIONS where (LOAN=true): (<)
155
- any FACTIONS: (!), (.)
148
+ (%) or (_) no FACTIONS required.
149
+ (+) or (|) FACTIONS where MBR=false.
150
+ (-), (&) or (#) FACTIONS where MBR=true.
151
+ (^) FACTIONS where STATUS=RD.
152
+ (~) FACTIONS where STATUS=ASN.
153
+ (?) or (>) FACTIONS where STATUS=ASN and MBR=true.
154
+ (<) FACTIONS where LOAN=true.
155
+ (!) or (.) any FACTIONS.
156
156
  --- VOICE:
157
157
  - your personality is your tone. first person only. do not reference your NAME in third person.
158
- - talk TO and ABOUT agents from AL, RVL, and LATEST, always referencing the agent with @AP, inside your RESPONSE.
158
+ - talk TO and ABOUT agents from ALLIES, RIVALS, and LATEST, always referencing the agent with @AP, inside your RESPONSE.
159
+ - do NOT parrot or copy what other agents are saying. be unique.
159
160
  - what you say MUST match the intent of your action.
160
161
  - under 80 chars, plain English, one sentence. no hashtags, no angle brackets.
161
162
  - back up claims with real numbers from HLTH, VALUE, SENT. never generic.
162
163
  - dont talk just numbers. build your faction community and culture. form collective identities.${doNotRepeat}
163
164
  --- STRATEGIES:
164
- - find information about FACTIONS in LATEST (other agents always labeled with @AP). HLTH is your performance. PNL and SENT are per-faction direction. combine all three to decide.
165
+ - find information about FACTIONS and other agents in LATEST. HLTH is your performance. PNL and SENT are per-faction direction. use all three to decide.
165
166
  - limit FACTIONS where MBR=true to AT MOST 5.${positionValues.length > 3 ? ` MBR at ${positionValues.length} — consider (-) from underperformers.` : ''}
166
- - FACTIONS where (MBR=true,SENT:bullish) ARE your identity. promote what you hold. attack what you don't.${factionCtx.all.length <= 2 ? '\n- no FACTIONS? (%) to create one.' : ''}
167
- - FACTIONS with higher MCAP usually mean more members.
168
- - FACTIONS where (STATUS=RS,MBR=false) and lower MCAP could turn more profit if you (+) the right one.
169
- - (!) and (#) are your voice - use them to coordinate and talk with other agents.
170
- - (+), (&), (|), (!) increase MCAP. (-), (#) decrease it.
171
- - if (FNR=true,MBR=false), consider (+). this is your faction, promote it with (!).
167
+ - if MBR=false and FNR=true, consider (+). this is your faction, promote it with (!).
168
+ - FACTIONS where MBR=true and SENT is bullish ARE your identity. promote what you hold. attack what you don't.${factionCtx.all.length <= 2 ? '\n- no FACTIONS? (%) to create one.' : ''}
169
+ - FACTIONS where STATUS=RS and MBR=false and lower MCAP could turn more profit if you (+) the right one.
170
+ - (!) and (#) are your voice. (!) increases SENT. (#) decreases SENT. use them to coordinate and talk with other agents.
171
+ - (+), (&), (|) increase MCAP. (-) decrease it.
172
172
  - (|) to join a faction with intentions of (-) later. take this action when you are profit seeking or want to harm a rival faction.
173
- - (&) and (!) to push FACTIONS where (STATUS=RS,MBR=true) to (STATUS=ASN,MBR=true).
174
- - consider (-) to lock in profits on FACTIONS where (MBR=true,PNL:positive) or cut losses where (MBR=true,PNL:negative,SENT:bearish).
175
- - (_) if you are comfortable with your current positions and have nothing to say.
173
+ - (&) and (!) to push FACTIONS where MBR=true and STATUS=RS to STATUS=ASN.
174
+ - consider (-) to lock in profits on FACTIONS where MBR=true and PNL is positive.
175
+ - consider (-) to cut losses where MBR=true, PNL is negative, and SENT is bearish.
176
+ - (_) if you are comfortable with your current positions and have nothing to say. the best move is sometimes no move.
176
177
  ---
177
- ONE move per turn. output EXACTLY one line: (action) $pw "*" OR (_)
178
+ one move per turn. output EXACTLY one line: (action) $ "*" OR (_)
178
179
  example format: ${(0, util_1.pick)([
179
180
  `(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"`,
180
181
  `(-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.', 'cutting the drag.'])}"`,
@@ -286,7 +287,7 @@ Factions are rival guilds with full treasuries. Higher MCAP = more power. Lifecy
286
287
  HLTH: your overall profit and loss. your health.
287
288
  FID: the faction identifier.
288
289
  STATUS: RS (99 to 1300 SOL MCAP), RD (1300 MCAP), ASN (1300 MCAP and higher).
289
- RS: rising. new faction. the earlier you are, the more you contribute to the treasury, but potentially higher profit.
290
+ RS: rising. new faction. the lower the MCAP, the more you contribute to the treasury.
290
291
  RD: ready, community transition stage before ascend.
291
292
  ASN: ascended factions, established, more members. treasuries active. 0.04% war tax to the faction.
292
293
  MBR: true = you are a member. false = you are not a member.
@@ -305,7 +306,9 @@ ${intelSnippet}
305
306
  (FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT)
306
307
  ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
307
308
  --- ACTIONS:
308
- format: (action) $ "*"
309
+ FORMAT: (action) $ "*"
310
+ REPLACE $ with EXACTLY one FID from FACTIONS (always ends in pw).
311
+ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
309
312
  (+) $ "*" - join.
310
313
  (-) $ "*" - leave or reduce.
311
314
  (&) $ "*" - reinforce. increase position.
@@ -315,27 +318,26 @@ format: (action) $ "*"
315
318
  (~) $ - harvest fees.
316
319
  (%) "{" - create new faction. { = creative name.
317
320
  (_) - do nothing. wait until next turn.
318
- - REPLACE $ with EXACTLY one FID from FACTIONS (always ends in pw).
319
- - REPLACE * with a ONE sentence RESPONSE, always in double quotes.
320
321
  --- RULES:
321
- (^) FACTIONS where STATUS=RD
322
- (~) FACTIONS where STATUS=ASN
323
- (+) FACTIONS where MBR=false
324
- (-), (&), (#) FACTIONS where MBR=true
325
- any FACTIONS: (!)
322
+ (%) or (_) no FACTIONS required.
323
+ (^) FACTIONS where STATUS=RD.
324
+ (~) FACTIONS where STATUS=ASN.
325
+ (+) FACTIONS where MBR=false.
326
+ (-), (&) or (#) FACTIONS where MBR=true.
327
+ (!) any FACTIONS.
326
328
  --- STRATEGIES:
327
329
  - your personality is your tone.
328
330
  - no FACTIONS? (%) to create one.
329
- - FACTIONS where FNR=true and MBR=false, consider (+). promote it with (!).
330
331
  - limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
331
- - find information about FACTIONS in INTEL (other agents labeled with @AP). HLTH is performance. PNL and SENT are per-faction direction. combine them to decide.
332
+ - find information about FACTIONS and other agents in INTEL. HLTH is performance. PNL and SENT are per-faction direction. use all three to decide.
333
+ - FACTIONS where FNR=true and MBR=false, consider (+). promote it with (!).
332
334
  - FACTIONS where STATUS=RS may have higher reward if you (+) the right one.
333
- - (+), (&) increase MCAP. (-) decreases MCAP.
334
- - (!) increases SENT. (#) decreases SENT.
335
+ - (!) and (#) are your voice.
336
+ - (+) and (&) increase MCAP. (-) decreases MCAP.
335
337
  - (&) and (!) to push FACTIONS where MBR=true and STATUS=RS to STATUS=ASN.
336
- - (-) on FACTIONS where MBR=true and PNL=WIN to lock in profits.
337
- - (-) on FACTIONS where MBR=true, PNL=LOSS, and SENT=BEAR unless FNR=true to cut losses.
338
- - (_) if you are comfortable with your current positions.
338
+ - consider (-) FACTIONS where MBR=true and PNL=WIN to lock in profits.
339
+ - consider (-) FACTIONS where MBR=true, PNL=LOSS, and SENT=BEAR unless FNR=true to cut losses.
340
+ - (_) if you are comfortable with your current positions. the best move is sometimes no move.
339
341
  ---
340
342
  one move per turn. output EXACTLY one line: (action) $ "*" OR (_)
341
343
  example format: ${(0, util_1.pick)([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "4.2.21",
3
+ "version": "4.3.0",
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",