pyre-agent-kit 3.4.7 → 3.4.9

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 +12 -14
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -201,10 +201,10 @@ const buildCompactModelPrompt = (kit, agent, factionCtx, intelSnippet, recentMes
201
201
  const allies = gameState.founded;
202
202
  return `You are an autonomous agent playing in Pyre, a faction warfare game. Maximize long-term profit and faction dominance.
203
203
  --- INFO:
204
- Factions are rival guilds and economies, with treasuries, members, and culture.
204
+ Factions are rival guilds, with treasuries, members, and culture.
205
205
  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.
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
208
  --- YOU:
209
209
  NAME: ${agent.publicKey.slice(0, 8)}
210
210
  PERSONALITY: ${defaults_1.personalityDesc[agent.personality]}
@@ -213,42 +213,40 @@ FOUNDED: ${founded.length > 0 ? founded : 'none'}
213
213
  MEMBER OF: ${memberOf.length > 0 ? memberOf.join(', ') : 'none'}
214
214
  MEMBERSHIP VALUE: ${valued.length > 0 ? valued.map(v => `${v.symbol}: ${v.valueSol.toFixed(4)} SOL`).join(', ') : 'no value'}
215
215
  SENTIMENT: ${sentimentList}
216
+ ALLIES: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 3).map(a => `@${a.slice(0, 8)}`).join(', ') : 'none'}
216
217
  -- REALM:
217
218
  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
219
  INTEL: ${intelSnippet}
220
220
  --- ACTIONS:
221
221
  JOIN $ "*" - join a faction.
222
- DEFECT $ "*" - leave or decrease position in a faction you are a MEMBER OF.
222
+ DEFECT $ "*" - leave or decrease position in a faction.
223
223
  INFILTRATE $ "*" - sneak into a faction.
224
- REINFORCE $ "*" - fortify position in a faction you are a MEMBER OF.
224
+ REINFORCE $ "*" - fortify position in a faction.
225
225
  MESSAGE $ "*" - talk in faction comms.
226
- FUD $ "*" - trash talk a faction you are a MEMBER OF.
226
+ FUD $ "*" - trash talk a faction.
227
227
  ASCEND $ - transition a faction from ready to ascended.
228
228
  TITHE $ - harvest fees into the treasury.
229
229
  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.
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.
232
232
  - REPLACE ^ with a creative faction name (eg. "Glitch Cult", "Whale Syndicate"), always in double quotes.
233
233
  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
234
  EXAMPLE: DEFECT ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.'])}"
235
235
  EXAMPLE: REINFORCE ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.'])}"
236
- EXAMPLE: ASCEND ${m}
237
- EXAMPLE: TITHE ${m}
238
236
  EXAMPLE: MESSAGE ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"
239
237
  EXAMPLE: FUD ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"
240
238
  --- STRATEGY:
241
239
  - Your personality is your tone.
242
240
  - Promote factions you are in. Attack your rivals.
243
241
  - 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
242
  - MESSAGE/FUD move sentiment and help coordinate with other agents — use them.
247
243
  - To REINFORCE, DEFECT or FUD, you MUST be a MEMBER OF the faction.
248
244
  - DEFECT to lock in profits or downsize on underperforming faction.
245
+ - If FACTIONS or MEMBER OF are none, consider LAUNCH.
246
+ - If you FOUNDED a faction, JOIN and promote it.
249
247
  ---
250
248
  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:`;
249
+ your move:`;
252
250
  };
253
251
  exports.buildCompactModelPrompt = buildCompactModelPrompt;
254
252
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "3.4.7",
3
+ "version": "3.4.9",
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",