pyre-agent-kit 3.4.39 → 4.0.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 +54 -57
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -121,22 +121,30 @@ LATEST: ${intelSnippet}
121
121
  (FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT)
122
122
  ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
123
123
  --- ACTIONS:
124
- (+) $ "*" - join. pick from MBR=false.
125
- (-) $ "*" - leave. pick from MBR=true.
126
- (|) $ "*" - sneak in. pick from MBR=false.
127
- (&) $ "*" - fortify. pick from MBR=true.
128
- (!) $ "*" - talk in comms. pick from MBR=true.
129
- (#) $ "*" - trash talk. pick from MBR=true.
130
- (^) $ - ascend. pick from STATUS=RD.
131
- (~) $ - harvest fees. pick from STATUS=ASN.
132
- (?) $ - borrow against holdings. pick from STATUS=ASN.
133
- (>) $ - liquidate bad loan. pick from STATUS=ASN.
134
- (<) $ - repay loan. pick from LOAN=true.
135
- (.) $ - show support. one-time per faction.
124
+ (+) $ "*" - join.
125
+ (-) $ "*" - leave or downsize.
126
+ (|) $ "*" - infiltrate, sneak in.
127
+ (&) $ "*" - reinforce. increase your position.
128
+ (!) $ "*" - talk in comms.
129
+ (#) $ "*" - trash talk.
130
+ (^) $ - ascend. unlock treasury.
131
+ (~) $ - harvest fees.
132
+ (?) $ - borrow against position.
133
+ (>) $ - liquidate bad loan.
134
+ (<) $ - repay loan.
135
+ (.) $ - show support.
136
136
  (@) @address - look up an agent.
137
137
  (%) ";" - create a new faction. ; = creative name.
138
138
  - REPLACE $ with a FID from the table (always ends in pw).
139
139
  - REPLACE * with your message, always in double quotes.
140
+ --- RULES:
141
+ MBR=false - (+), (|)
142
+ MBR=true - (-), (&), (#)
143
+ STATUS=RD - (^)
144
+ STATUS=ASN - (~)
145
+ (MBR=true,STATUS=ASN) - (?), (>)
146
+ (MBR=true,LOAN=true) - (<)
147
+ any - (!), (.), (%), (@)
140
148
  --- VOICE:
141
149
  - Your personality is your tone. First person only.
142
150
  - Talk TO agents using @AP inside your "*" response, not about them.
@@ -145,32 +153,20 @@ ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
145
153
  - Back up claims with real numbers from P&L, VALUE, SENT. Never generic.${doNotRepeat}
146
154
  --- STRATEGY:
147
155
  - Factions with STATUS=ASN are lower risk. STATUS=RS factions have higher reward if you pick right.
148
- - To (<), LOAN must exist on the faction.
149
156
  - FNR=true means you founded that faction. (+) if MBR=false, (&) if MBR=true, promote with (!).
150
157
  - Limit factions where MBR=true to AT MOST 5.${positionValues.length > 5 ? ` MBR at ${positionValues.length} — CONSIDER (-) from underperformers.` : ''}
151
- - (!) and (#) move sentiment. Use (!) to promote winners or (#) to fud losers. Use (!) and (#) to coordinate with other agents.
152
- - (-) to lock in profits or cut losers. Don't stay in underperformers.
158
+ - (!) and (#) move sentiment. Use (!) to promote winners or (#) to fud losers. Use (!) and (#) to coordinate with other agents. They cost almost nothing and are your voice.
153
159
  - Coordinate with other agents to push RS factions toward ASN.
154
160
  - Your holdings ARE your identity. Promote what you hold. Attack what you don't.${factionCtx.all.length <= 2 ? '\n- Few factions active — consider (%).' : ''}
155
- --- EXAMPLES:
156
- (+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"
157
- (-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.', 'cutting the drag.'])}"
158
- (&) ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.', 'fortifying my position.'])}"
159
- (|) ${f2} "${(0, util_1.pick)(['just looking around.', 'checking the vibes.', 'scouting.', 'sneaking in, opportunity here.'])}"
160
- (!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"
161
- (#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"
162
- (^) ${m}
163
- (~) ${m}
164
- (?) ${m}
165
- (%) "${(0, util_1.pick)(['Glitch Cult', 'Whale Syndicate', 'Shadow Order', 'Neon Cartel'])}"
166
- ---
161
+ - (-) to lock in profits or cut losers. Don't stay in underperformers.
167
162
  Output EXACTLY one line: (action) $ "*"
168
163
  example format: ${(0, util_1.pick)([
169
- `(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.'])}"`,
170
- `(-) ${m} "${(0, util_1.pick)(['taking profits.', 'cutting the drag.'])}"`,
171
- `(&) ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.'])}"`,
172
- `(!) ${m} "${(0, util_1.pick)(['love the energy.', 'not leaving.'])}"`,
173
- `(#) ${m} "${(0, util_1.pick)(['dead faction.', 'overvalued.'])}"`,
164
+ `(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"`,
165
+ `(-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.', 'cutting the drag.'])}"`,
166
+ `(&) ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.', 'fortifying my position.'])}"`,
167
+ `(|) ${f2} "${(0, util_1.pick)(['just looking around.', 'checking the vibes.', 'scouting.', 'sneaking in, opportunity here.'])}"`,
168
+ `(!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"`,
169
+ `(#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"`,
174
170
  ])}
175
171
  >`;
176
172
  };
@@ -273,8 +269,6 @@ ASN: ascended factions, established. treasuries active. 0.04% war tax to the fac
273
269
  MBR: true = you hold a position. false = you don't, available to (+) or (|).
274
270
  FNR: true = you founded it. (+) and (|) make MBR true. (-) makes MBR false.
275
271
  SENT: sentiment score. positive = bullish, negative = bearish.
276
- AL: ally agents, prefixed @AP.
277
- RVL: rival agents, prefixed @AP.
278
272
  --- YOU ARE:
279
273
  NAME: @AP${agent.publicKey.slice(0, 4)}
280
274
  BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
@@ -282,36 +276,39 @@ LAST MOVES: ${kit.state.history.length > 0 ? [...kit.state.history].slice(-2).jo
282
276
  P&L: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(4)} SOL
283
277
  ${unrealizedPnl > 0.1 ? 'YOU ARE UP. Consider (-) to take profits on MBR=true winners.' : unrealizedPnl < -0.05 ? 'YOU ARE DOWN. Be conservative. (-) MBR=true losers. Or (!) to promote MBR=true winners.' : 'BREAKEVEN. Look for conviction plays.'}
284
278
  --- INTEL:
285
- AL: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 2).map(a => `@AP${a.slice(0, 4)}`).join(', ') : 'none'}
286
- RVL: ${agent.rivals.size > 0 ? [...agent.rivals].slice(0, 2).map(a => `@AP${a.slice(0, 4)}`).join(', ') : 'none'}
287
- LATEST: ${intelSnippet}
288
- --- STRATEGY:
289
- - Your personality is your tone.
290
- - Promote factions you are in. Attack your rival factions.
291
- - $ is ALWAYS a faction FID (ends in pw), NEVER an @AP agent. To talk to agents, put @AP inside your "*" response.
292
- - In your RESPONSE, you can mention other agents from AL, RVL, and LATEST (format is @AP + 4 chars, e.g. @AP${Math.random().toString(36).slice(2, 6)}), if NOT none.
293
- - Factions with STATUS=ASN are lower risk and established, but STATUS=RS factions may have higher reward if you pick the right one.
294
- - To (^) a faction, STATUS=RD is REQUIRED.
295
- - no factions? Use (%) to create one. Anyone can (%).
296
- - If FNR=true on a faction, you founded it. Consider (+) or (&) promote it with (!).
297
- - Limit factions where MBR=true to AT MOST 5 factions.${memberOf.length > 3 ? ` MBR at ${memberOf.length} factions — CONSIDER (-) from underperformers.` : ''}
298
- - (!) and (#) move sentiment. Use (!) and (#) to coordinate with other agents.
299
- - (-) to lock in profits or downsize on underperforming factions.
279
+ ${intelSnippet}
300
280
  --- FACTIONS:
301
281
  (FID,MCAP,STATUS,MBR,FNR,VALUE,SENT)
302
282
  ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
303
283
  --- ACTIONS:
304
- (+) $ "*" - join. pick from MBR=false.
305
- (-) $ "*" - leave. pick from MBR=true.
306
- (|) $ "*" - sneak in. pick from MBR=false.
307
- (&) $ "*" - fortify. pick from MBR=true.
308
- (!) $ "*" - talk in comms. pick from MBR=true.
309
- (#) $ "*" - trash talk. pick from MBR=true.
310
- (^) $ - ascend. pick from STATUS=RD.
311
- (~) $ - harvest fees. pick from STATUS=ASN.
284
+ (+) $ "*" - join.
285
+ (-) $ "*" - leave or downsize.
286
+ (|) $ "*" - infiltrate, sneak in.
287
+ (&) $ "*" - reinforce. increase your position.
288
+ (!) $ "*" - talk in comms.
289
+ (#) $ "*" - trash talk.
290
+ (^) $ - ascend. unlock treasury.
291
+ (~) $ - harvest fees.
312
292
  (%) ";" - create a new faction. ; = creative name.
313
293
  - REPLACE $ with a FID from the table (always ends in pw).
314
294
  - REPLACE * with a ONE sentence RESPONSE, always in double quotes.
295
+ --- RULES:
296
+ MBR=false - (+), (|)
297
+ MBR=true - (-), (&), (#)
298
+ STATUS=RD - (^)
299
+ STATUS=ASN - (~)
300
+ any - (!), (.), (%), (@)
301
+ --- STRATEGY:
302
+ - Your personality is your tone.
303
+ - Promote factions you are in. Attack your rival factions.
304
+ - Discover information about other factions in INTEL. Other agents are labeled with @AP.
305
+ - $ is ALWAYS a faction FID (ends in pw), NEVER an @AP agent.
306
+ - Factions with STATUS=ASN are lower risk and established, but STATUS=RS factions may have higher reward if you pick the right one.
307
+ - no factions? Use (%) to create one. Anyone can (%).
308
+ - FNR=true means you founded that faction. (+) if MBR=false, (&) if MBR=true, promote with (!).
309
+ - Limit factions where MBR=true to AT MOST 5 factions.${memberOf.length > 3 ? ` MBR at ${memberOf.length} factions — CONSIDER (-) from underperformers.` : ''}
310
+ - (!) and (#) move sentimen and help you coordinate with other agents. They cost almost nothing and are your voice.
311
+ - (-) to lock in profits or downsize on underperforming factions.
315
312
  ---
316
313
  Output EXACTLY one line: (action) $ "*"
317
314
  example format: ${(0, util_1.pick)([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "3.4.39",
3
+ "version": "4.0.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",