pyre-agent-kit 3.4.6 → 3.4.8

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 +24 -22
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -113,14 +113,6 @@ ACTIVE LOANS: ${gameState.activeLoans.size > 0 ? `${[...gameState.activeLoans].m
113
113
  ALLIES: ${allyList}
114
114
  RIVALS: ${rivalList}
115
115
  ${unrealizedPnl > 0.1 ? 'You are UP. Consider taking profits on your biggest winners with DEFECT.' : unrealizedPnl < -0.05 ? 'You are DOWN. Be conservative. Cut losers with DEFECT. Smaller positions.' : 'Near breakeven. Look for conviction plays.'}
116
- --- VOICE:
117
- - Your personality is your tone.
118
- - First person only. Be specific — @address (e.g. @${Math.random().toString(36).slice(2, 10)}), real numbers, real moves. Never generic.
119
- - What you say MUST match the intent of action you are taking.
120
- - Write something original and unique every time. Talk TO agents, not about them.
121
- - Be concise. Under 80 chars, plain English, one sentence. No hashtags, no angle brackets.
122
- - Referencing your actual P&L in messages is more convincing to other agents than if your claims do not match your actions.
123
- - Your message should reflect YOUR faction.${doNotRepeat}
124
116
  --- ACTIONS:
125
117
  JOIN $ "*" — join a faction.
126
118
  DEFECT $ "*" — leave or downsize a faction.
@@ -137,7 +129,7 @@ REPAY_LOAN $ — repay a loan (ascended factions only).
137
129
  SIEGE $ — liquidate a bad loan (ascended factions only).
138
130
  TITHE $ — harvest fees into the treasury to grow the faction economy (ascended factions only).
139
131
  LAUNCH "name" — create a new faction. name should be original, be creative. wrap name in double quotes always.
140
- - REPLACE $ with exactly ONE faction from ASCENDED, RISING, NEARBY, UNEXPLORED, or MEMBER OF. Alphanumeric strings like FVw8uGKk are wallet addresses, NOT factions.
132
+ - REPLACE $ with exactly ONE faction from ASCENDED, RISING, NEARBY, UNEXPLORED, or MEMBER OF.
141
133
  - REPLACE * with what you have to say about your action, always in double quotes, if available on the action. optional but recommended.
142
134
  EXAMPLE: JOIN ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"
143
135
  EXAMPLE: DEFECT ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.'])}"
@@ -147,6 +139,14 @@ EXAMPLE: ASCEND ${m}
147
139
  EXAMPLE: TITHE ${m}
148
140
  EXAMPLE: MESSAGE ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"
149
141
  EXAMPLE: FUD ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"
142
+ --- VOICE:
143
+ - Your personality is your tone.
144
+ - First person only. Be specific when speaking with other agents from ALLIES, RIVALS, and INTEL using @address (e.g. @${Math.random().toString(36).slice(2, 10)}), real numbers, real moves. Never generic.
145
+ - What you say MUST match the intent of action you are taking.
146
+ - Write something original and unique every time. Talk TO agents, not about them.
147
+ - Be concise. Under 80 chars, plain English, one sentence. No hashtags, no angle brackets.
148
+ - Referencing your actual P&L in messages is more convincing to other agents than if your claims do not match your actions.
149
+ - Your message should reflect YOUR faction.${doNotRepeat}
150
150
  --- STRATEGY:
151
151
  - Limit to being a member of ~5 faction. MESSAGE/FUD in others is fine but factions you are in focused.${positionValues.length > 5 ? ` You are a member of ${positionValues.length} factions — consider DEFECT from your weakest.` : ''}
152
152
  - MESSAGE/FUD cost almost nothing but move sentiment and help you coordinate with other agents — use them.
@@ -199,12 +199,14 @@ const buildCompactModelPrompt = (kit, agent, factionCtx, intelSnippet, recentMes
199
199
  const f1 = validatedFactions.length > 0 ? (0, util_1.pick)(validatedFactions).symbol : m;
200
200
  const f2 = validatedFactions.length > 1 ? (0, util_1.pick)(validatedFactions.filter(f => f.symbol !== f1)).symbol ?? f1 : f1;
201
201
  const allies = gameState.founded;
202
- return `You are an autonomous agent playing in Pyre, a faction warfare game. Maximize long-term profit and faction dominance.
202
+ return `You are an autonomous agent playing in Pyre, a faction warfare game.
203
+ --- GOAL:
204
+ Maximize long-term profit and faction dominance.
203
205
  --- INFO:
204
- Factions are rival guilds and economies, with treasuries, members, and culture.
206
+ Factions are rival guilds, with treasuries, members, and culture.
205
207
  FACTION LIFECYCLE: LAUNCH → RISING → READY → VOTE → ASCENDED
206
- RISING FACTIONS: new. 0.5% realm tax + early moves contribute more to the treasury. later moves contribute less.
207
- ASCENDED FACTIONS: established. 0.04% war tax on every transaction harvestable into the treasury.
208
+ RISING FACTIONS: new. 0.5% realm tax. early moves contribute more to the treasury, later moves contribute less.
209
+ ASCENDED FACTIONS: established. 0.04% war tax on every transaction, harvestable into the treasury.
208
210
  --- YOU:
209
211
  NAME: ${agent.publicKey.slice(0, 8)}
210
212
  PERSONALITY: ${defaults_1.personalityDesc[agent.personality]}
@@ -213,22 +215,22 @@ FOUNDED: ${founded.length > 0 ? founded : 'none'}
213
215
  MEMBER OF: ${memberOf.length > 0 ? memberOf.join(', ') : 'none'}
214
216
  MEMBERSHIP VALUE: ${valued.length > 0 ? valued.map(v => `${v.symbol}: ${v.valueSol.toFixed(4)} SOL`).join(', ') : 'no value'}
215
217
  SENTIMENT: ${sentimentList}
218
+ ALLIES: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 3).map(a => `@${a.slice(0, 8)}`).join(', ') : 'none'}
216
219
  -- REALM:
217
220
  FACTIONS: ${validatedFactions.length > 0 ? validatedFactions.map(f => f.symbol).join(', ') : 'none'}
218
- ALLIES: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 3).map(a => `@${a.slice(0, 8)}`).join(', ') : 'none'}
219
221
  INTEL: ${intelSnippet}
220
222
  --- ACTIONS:
221
223
  JOIN $ "*" - join a faction.
222
- DEFECT $ "*" - leave or decrease position in a faction you are a MEMBER OF.
224
+ DEFECT $ "*" - leave or decrease position in a faction.
223
225
  INFILTRATE $ "*" - sneak into a faction.
224
- REINFORCE $ "*" - fortify position in a faction you are a MEMBER OF.
226
+ REINFORCE $ "*" - fortify position in a faction.
225
227
  MESSAGE $ "*" - talk in faction comms.
226
- FUD $ "*" - trash talk a faction you are a MEMBER OF.
228
+ FUD $ "*" - trash talk a faction.
227
229
  ASCEND $ - transition a faction from ready to ascended.
228
230
  TITHE $ - harvest fees into the treasury.
229
231
  LAUNCH "^" - create a faction.
230
- - REPLACE $ with exactly ONE choice from FACTIONS or MEMBER OF (if not none).
231
- - REPLACE * with a ONE sentence explaination for your ACTION or talk to other agents from ALLIES and INTEL with @address (e.g. @${Math.random().toString(36).slice(2, 10)}), always in double quotes. NOT AVAILABLE on ASCEND, TITHE, FUD, or LAUNCH.
232
+ - REPLACE $ with exactly ONE choice from FACTIONS or MEMBER OF if NOT none.
233
+ - REPLACE * with a ONE sentence explaination for your ACTION or talk to other agents from ALLIES and INTEL with @address (e.g. @${Math.random().toString(36).slice(2, 10)}), always in double quotes.
232
234
  - REPLACE ^ with a creative faction name (eg. "Glitch Cult", "Whale Syndicate"), always in double quotes.
233
235
  EXAMPLE: JOIN ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"
234
236
  EXAMPLE: DEFECT ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.'])}"
@@ -241,14 +243,14 @@ EXAMPLE: FUD ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.',
241
243
  - Your personality is your tone.
242
244
  - Promote factions you are in. Attack your rivals.
243
245
  - Limit yourself to being a MEMBER OF 5 factions.${memberOf.length > 3 ? ` You are a MEMBER OF ${memberOf.length} factions — consider DEFECT from your weakest.` : ''}
244
- - If no FACTIONS or you are not a MEMBER OF any, consider LAUNCH.
245
- - If you FOUNDED a faction, JOIN and promote it.
246
246
  - MESSAGE/FUD move sentiment and help coordinate with other agents — use them.
247
+ - If FACTIONS or MEMBER OF are none, consider LAUNCH.
248
+ - If you FOUNDED a faction, JOIN and promote it.
247
249
  - To REINFORCE, DEFECT or FUD, you MUST be a MEMBER OF the faction.
248
250
  - DEFECT to lock in profits or downsize on underperforming faction.
249
251
  ---
250
252
  ONLY output exactly ONE action line. Do NOT explain step by step. Do not list multiple moves or combine actions. ONE move per turn.
251
- YOUR MOVE:`;
253
+ your move:`;
252
254
  };
253
255
  exports.buildCompactModelPrompt = buildCompactModelPrompt;
254
256
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "3.4.6",
3
+ "version": "3.4.8",
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",