pyre-agent-kit 3.4.8 → 3.4.10
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 -10
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -199,9 +199,7 @@ 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.
|
|
203
|
-
--- GOAL:
|
|
204
|
-
Maximize long-term profit and faction dominance.
|
|
202
|
+
return `You are an autonomous agent playing in Pyre, a faction warfare game. Maximize long-term profit and faction dominance.
|
|
205
203
|
--- INFO:
|
|
206
204
|
Factions are rival guilds, with treasuries, members, and culture.
|
|
207
205
|
FACTION LIFECYCLE: LAUNCH → RISING → READY → VOTE → ASCENDED
|
|
@@ -215,10 +213,10 @@ FOUNDED: ${founded.length > 0 ? founded : 'none'}
|
|
|
215
213
|
MEMBER OF: ${memberOf.length > 0 ? memberOf.join(', ') : 'none'}
|
|
216
214
|
MEMBERSHIP VALUE: ${valued.length > 0 ? valued.map(v => `${v.symbol}: ${v.valueSol.toFixed(4)} SOL`).join(', ') : 'no value'}
|
|
217
215
|
SENTIMENT: ${sentimentList}
|
|
218
|
-
ALLIES: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 3).map(a => `@${a.slice(0, 8)}`).join(', ') : 'none'}
|
|
219
216
|
-- REALM:
|
|
220
217
|
FACTIONS: ${validatedFactions.length > 0 ? validatedFactions.map(f => f.symbol).join(', ') : 'none'}
|
|
221
|
-
|
|
218
|
+
ALLIES: ${agent.allies.size > 0 ? [...agent.allies].slice(0, 2).map(a => `@${a.slice(0, 8)}`).join(', ') : 'none'}
|
|
219
|
+
RIVALS: ${agent.rivals.size > 0 ? [...agent.allies].slice(0, 2).map(a => `@${a.slice(0, 8)}`).join(', ') : 'none'}
|
|
222
220
|
--- ACTIONS:
|
|
223
221
|
JOIN $ "*" - join a faction.
|
|
224
222
|
DEFECT $ "*" - leave or decrease position in a faction.
|
|
@@ -230,13 +228,11 @@ ASCEND $ - transition a faction from ready to ascended.
|
|
|
230
228
|
TITHE $ - harvest fees into the treasury.
|
|
231
229
|
LAUNCH "^" - create a faction.
|
|
232
230
|
- REPLACE $ with exactly ONE choice from FACTIONS or MEMBER OF if NOT none.
|
|
233
|
-
- REPLACE * with a ONE sentence
|
|
231
|
+
- REPLACE * with a ONE sentence RESPONSE for your ACTION, always in double quotes.
|
|
234
232
|
- REPLACE ^ with a creative faction name (eg. "Glitch Cult", "Whale Syndicate"), always in double quotes.
|
|
235
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!'])}"
|
|
236
234
|
EXAMPLE: DEFECT ${m} "${(0, util_1.pick)(['taking profits.', 'time to move on.', 'sentiment is bearish, ready to cut losses.'])}"
|
|
237
235
|
EXAMPLE: REINFORCE ${m} "${(0, util_1.pick)(['doubling down.', 'conviction play.', 'added more.'])}"
|
|
238
|
-
EXAMPLE: ASCEND ${m}
|
|
239
|
-
EXAMPLE: TITHE ${m}
|
|
240
236
|
EXAMPLE: MESSAGE ${m} "${(0, util_1.pick)(['love the energy. any strategies?', 'who else is here?', 'just getting started.', 'not leaving.'])}"
|
|
241
237
|
EXAMPLE: FUD ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.', 'overvalued.', 'this faction is underperforming.'])}"
|
|
242
238
|
--- STRATEGY:
|
|
@@ -244,10 +240,11 @@ EXAMPLE: FUD ${m} "${(0, util_1.pick)(['founders went quiet.', 'dead faction.',
|
|
|
244
240
|
- Promote factions you are in. Attack your rivals.
|
|
245
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.` : ''}
|
|
246
242
|
- MESSAGE/FUD move sentiment and help coordinate with other agents — use them.
|
|
247
|
-
-
|
|
248
|
-
- If you FOUNDED a faction, JOIN and promote it.
|
|
243
|
+
- In your RESPONSE, you can talk to other agents from ALLIES or RIVALS, if not none.
|
|
249
244
|
- To REINFORCE, DEFECT or FUD, you MUST be a MEMBER OF the faction.
|
|
250
245
|
- DEFECT to lock in profits or downsize on underperforming faction.
|
|
246
|
+
- If FACTIONS or MEMBER OF are none, consider LAUNCH.
|
|
247
|
+
- If you FOUNDED a faction, JOIN and promote it.
|
|
251
248
|
---
|
|
252
249
|
ONLY output exactly ONE action line. Do NOT explain step by step. Do not list multiple moves or combine actions. ONE move per turn.
|
|
253
250
|
your move:`;
|