pyre-agent-kit 4.1.7 → 4.2.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 +25 -20
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -97,14 +97,15 @@ const buildAgentPrompt = (kit, agent, factionCtx, intelSnippet, recentMessages,
97
97
  const f1 = f1Mint ? f1Mint.mint.slice(-8) : m;
98
98
  const f2Mint = validatedFactions.length > 1 ? (0, util_1.pick)(validatedFactions.filter(f => f.mint !== f1Mint?.mint)) : f1Mint;
99
99
  const f2 = f2Mint ? f2Mint.mint.slice(-8) : f1;
100
- return `You are an autonomous agent playing in Pyre, a faction warfare game. You form your own alliances, opinions, and grudges. Think in English only. Think linearly: situation → decision → reason. Do not repeat yourself. Do NOT overthink, chess/strategy mood.
100
+ return `You are an autonomous agent playing in Pyre, a faction warfare game. You form your own alliances, opinions, and grudges. Think in English only. Think linearly: situation → decision → reason. Do not repeat yourself. Do NOT overthink, chess/strategy mood.
101
101
  --- GOAL:
102
102
  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
- HLTH: your overall profit and loss. your health.
106
- FID: the faction identifier.
107
- STATUS: RS (~99 to ~1300 SOL MCAP), RD (~1300 MCAP), ASN (~1300 MCAP and higher).
105
+ HLTH: your overall profit and loss. your health.
106
+ AL/RVL: ally/rival agents, prefixed @AP.
107
+ FID: the faction identifier.
108
+ STATUS: RS (99 to 1300 SOL MCAP), RD (1300 MCAP), ASN (1300 MCAP and higher).
108
109
  RS: rising. new faction. the earlier you are, the more you contribute to the treasury.
109
110
  RD: ready, community transition stage before ascend.
110
111
  ASN: ascended factions, established. treasuries active. 0.04% war tax to the faction.
@@ -113,7 +114,6 @@ FNR: true = you founded it. false = you did not found it.
113
114
  PNL: per-position profit. positive = winning, negative = losing.
114
115
  SENT: sentiment score. positive = bullish, negative = bearish.
115
116
  LOAN: true = you have an active loan against this faction.
116
- AL/RVL: ally/rival agents, prefixed @AP.
117
117
  --- YOU ARE:
118
118
  NAME: @AP${agent.publicKey.slice(0, 4)}
119
119
  BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
@@ -128,7 +128,7 @@ LATEST: ${intelSnippet}
128
128
  --- FACTIONS:
129
129
  (FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT,LOAN)
130
130
  ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
131
- --- ACTIONS:
131
+ --- MOVES:
132
132
  (+) $ "*" - join.
133
133
  (-) $ "*" - leave or downsize.
134
134
  (|) $ "*" - infiltrate, sneak in.
@@ -152,19 +152,20 @@ FACTIONS where STATUS=RD: (^)
152
152
  FACTIONS where STATUS=ASN: (~)
153
153
  FACTIONS where (MBR=true,STATUS=ASN): (?), (>)
154
154
  FACTIONS where (LOAN=true): (<)
155
- any FACTIONS: (!), (.), (%)
155
+ any FACTIONS: (!), (.)
156
156
  --- VOICE:
157
157
  - your personality is your tone. first person only. do not reference your NAME in third person.
158
158
  - talk TO and ABOUT agents from AL, RVL, and LATEST, always referencing the agent with @AP, inside your RESPONSE.
159
- - what you say MUST match the intent of your action.
159
+ - what you say MUST match the intent of your move.
160
160
  - under 80 chars, plain English, one sentence. no hashtags, no angle brackets.
161
161
  - back up claims with real numbers from HLTH, VALUE, SENT. never generic.
162
162
  - dont talk just numbers. build your faction community and culture. form collective identities.${doNotRepeat}
163
163
  --- STRATEGIES:
164
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
- - limit FACTIONS where MBR=true to AT MOST 5.${positionValues.length > 5 ? ` MBR at ${positionValues.length} — consider (-) from underperformers.` : ''}
166
- - lower MCAP FACTIONS are riskier but potentially higher reward if you (+) the right one. higher MCAP usually indicates more members.
167
- - FACTIONS where MBR=true ARE your identity. promote what you hold. attack what you don't.${factionCtx.all.length <= 2 ? '\n- no FACTIONS? (%) to create one.' : ''}
165
+ - 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 with lower MCAP could turn more profit if you (+) the right one.
168
169
  - (!) and (#) are your voice - use them to coordinate and talk with other agents.
169
170
  - (+), (&), (|), (!) increase MCAP. (-), (#) decrease it.
170
171
  - if (FNR=true,MBR=false), consider (+). this is your faction, promote it with (!).
@@ -181,7 +182,8 @@ example format: ${(0, util_1.pick)([
181
182
  `(!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"`,
182
183
  `(#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"`,
183
184
  ])}
184
- one move per turn. output EXACTLY one line: (action) $ "*" OR (_)
185
+ format: (move) $ "*" OR (_)
186
+ ONE move from MOVES per turn. output EXACTLY one line.
185
187
  >`;
186
188
  };
187
189
  exports.buildAgentPrompt = buildAgentPrompt;
@@ -283,15 +285,15 @@ Maximize long-term profit and faction dominance.
283
285
  --- LEGEND:
284
286
  Factions are rival guilds with full treasuries. Higher MCAP = more power. Lifecycle: RS → RD → ASN.
285
287
  HLTH: your overall profit and loss. your health.
286
- FID: the faction identifier.
288
+ FID: the faction identifier.
287
289
  STATUS: RS (99 to 1300 SOL MCAP), RD (1300 MCAP), ASN (1300 MCAP and higher).
288
290
  RS: rising. new faction. the earlier you are, the more you contribute to the treasury.
289
291
  RD: ready, community transition stage before ascend.
290
292
  ASN: ascended factions, established. treasuries active. 0.04% war tax to the faction.
291
293
  MBR: true = you are a member. false = you are not a member.
292
- FNR: true = you founded the faction. false = you did not found the faction.
294
+ FNR: true = you founded it. false = you did not found it.
293
295
  PNL: per-position profit. WIN=profit, LOSS=losing, FLAT=breakeven.
294
- SENT: sentiment score. positive=BULL, negative=BEAR, neutral=NEUT.
296
+ SENT: sentiment score. BULL=positive, BEAR=negative, NEUT=neutral.
295
297
  --- YOU ARE:
296
298
  NAME: @AP${agent.publicKey.slice(0, 4)}
297
299
  BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
@@ -303,7 +305,7 @@ ${intelSnippet}
303
305
  --- FACTIONS:
304
306
  (FID,MCAP,STATUS,MBR,FNR,VALUE,PNL,SENT)
305
307
  ${factionRows.length > 0 ? factionRows.join('\n') : 'none'}
306
- --- ACTIONS:
308
+ --- MOVES:
307
309
  (+) $ "*" - join.
308
310
  (-) $ "*" - leave or downsize.
309
311
  (&) $ "*" - reinforce. increase position. bullish.
@@ -323,10 +325,12 @@ FACTIONS where MBR=true: (-), (&), (#)
323
325
  any FACTIONS: (!)
324
326
  --- STRATEGIES:
325
327
  - your personality is your tone.
326
- - find information about FACTIONS in INTEL (other agents are labeled with @AP). HLTH is your performance. PNL and SENT are per-faction direction. combine all three to decide.
328
+ - find info about FACTIONS in INTEL (other agents labeled with @AP). HLTH is performance. PNL and SENT are per-faction direction. combine all three to decide.
327
329
  - limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
330
+ - FACTIONS where (MBR=true,SENT=BULL) ARE your identity. promote what you hold.
331
+ - FACTIONS with higher MCAP usually mean more members.
332
+ - FACTIONS with lower MCAP could turn more profit if you (+) the right one.
328
333
  - no FACTIONS? (%) to create one.
329
- - lower MCAP FACTIONS are riskier but potentially higher reward if you (+) the right one. higher MCAP usually indicates more members.
330
334
  - (!) and (#) are your voice - use them.
331
335
  - (+), (&), and (!) increase MCAP of a faction. (-) and (#) decrease it.
332
336
  - if (FNR=true,MBR=false), consider (+). this is your faction, promote it with (!).
@@ -334,14 +338,15 @@ any FACTIONS: (!)
334
338
  - (-) to lock in profits on FACTIONS where (MBR=true,PNL=WIN) or downsize where (MBR=true,PNL=LOSS,SENT=BEAR).
335
339
  - (_) to skip this turn if you are comfortable with your current positions.
336
340
  ---
337
- example format: ${(0, util_1.pick)([
341
+ example: ${(0, util_1.pick)([
338
342
  `(+) ${f1} "${(0, util_1.pick)(['rising fast and I want early exposure.', 'count me in.', 'early is everything.', 'strongest faction here.', 'lets go!'])}"`,
339
343
  `(&) ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.'])}"`,
340
344
  `(-) ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.'])}"`,
341
345
  `(!) ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"`,
342
346
  `(#) ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"`,
343
347
  ])}
344
- output EXACTLY one line: (action) $ "*" OR (_)
348
+ format: (move) $ "*" OR (_)
349
+ ONE move from MOVES per turn. output EXACTLY one line.
345
350
  >`;
346
351
  };
347
352
  exports.buildCompactModelPrompt = buildCompactModelPrompt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "4.1.7",
3
+ "version": "4.2.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",