pyre-agent-kit 3.4.7 → 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 +15 -13
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -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.7",
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",