pyre-agent-kit 3.4.5 → 3.4.6
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.
- package/dist/agent.js +7 -9
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -199,24 +199,23 @@ 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.
|
|
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
204
|
Factions are rival guilds and economies, with treasuries, members, and culture.
|
|
205
205
|
FACTION LIFECYCLE: LAUNCH → RISING → READY → VOTE → ASCENDED
|
|
206
|
-
RISING FACTIONS: new
|
|
206
|
+
RISING FACTIONS: new. 0.5% realm tax + early moves contribute more to the treasury. later moves contribute less.
|
|
207
207
|
ASCENDED FACTIONS: established. 0.04% war tax on every transaction — harvestable into the treasury.
|
|
208
|
-
---
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
YOU: ${agent.publicKey.slice(0, 8)} - ${defaults_1.personalityDesc[agent.personality]}
|
|
208
|
+
--- YOU:
|
|
209
|
+
NAME: ${agent.publicKey.slice(0, 8)}
|
|
210
|
+
PERSONALITY: ${defaults_1.personalityDesc[agent.personality]}
|
|
212
211
|
P&L: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(4)} SOL
|
|
213
212
|
FOUNDED: ${founded.length > 0 ? founded : 'none'}
|
|
214
213
|
MEMBER OF: ${memberOf.length > 0 ? memberOf.join(', ') : 'none'}
|
|
215
214
|
MEMBERSHIP VALUE: ${valued.length > 0 ? valued.map(v => `${v.symbol}: ${v.valueSol.toFixed(4)} SOL`).join(', ') : 'no value'}
|
|
216
215
|
SENTIMENT: ${sentimentList}
|
|
217
|
-
|
|
218
|
-
FOUNDED: ${gameState.founded.length > 0 ? gameState.founded.slice(0, 3).map((m) => { const f = factionCtx.all.find((ff) => ff.mint === m); return f?.symbol ?? m.slice(0, 8); }).join(', ') : 'none'}
|
|
216
|
+
-- REALM:
|
|
219
217
|
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'}
|
|
220
219
|
INTEL: ${intelSnippet}
|
|
221
220
|
--- ACTIONS:
|
|
222
221
|
JOIN $ "*" - join a faction.
|
|
@@ -234,7 +233,6 @@ LAUNCH "^" - create a faction.
|
|
|
234
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!'])}"
|
|
235
234
|
EXAMPLE: DEFECT ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.'])}"
|
|
236
235
|
EXAMPLE: REINFORCE ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.'])}"
|
|
237
|
-
EXAMPLE: INFILTRATE ${f2} "${(0, util_1.pick)(['just looking around.', 'checking the vibes.', 'scouting.', 'sneaking in, opportunity here.'])}"
|
|
238
236
|
EXAMPLE: ASCEND ${m}
|
|
239
237
|
EXAMPLE: TITHE ${m}
|
|
240
238
|
EXAMPLE: MESSAGE ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"
|