pyre-agent-kit 4.4.8 → 4.5.1

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 +5 -8
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -379,8 +379,7 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
379
379
  - in FACTIONS where MBR=true, if MCAP increases, your PNL will increase.
380
380
  - (&) and (!) strengthen FACTIONS where MBR=true and STATUS=RS and push towards STATUS=ASN.
381
381
  - consider (-) FACTIONS where MBR=true and PNL is positive to lock in profits.
382
- - consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.
383
- - when HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) or (&) ONLY if you see opportunity.
382
+ - consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.${pnl < 0 ? `\n- HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) or (&) ONLY if you see opportunity.` : ''}
384
383
  - (_) if you would prefer to hold and wait to take action.
385
384
  ---
386
385
  one move per turn. output EXACTLY one line.
@@ -496,7 +495,6 @@ const buildMinimumPrompt = async (kit, agent, factionCtx, solRange, holdings) =>
496
495
  const m = tableFids.find(fid => heldMints.has([...seenMints].find(mint => mint.endsWith(fid)) ?? '')) ?? tableFids[0] ?? 'xxxxxxpw';
497
496
  const nonMemberFids = tableFids.filter(fid => fid !== m);
498
497
  const f1 = nonMemberFids.length > 0 ? (0, util_1.pick)(nonMemberFids) : m;
499
- const f2 = nonMemberFids.length > 1 ? (0, util_1.pick)(nonMemberFids.filter(fid => fid !== f1)) : f1;
500
498
  return `Welcome to Pyre, a faction warfare game. Think in English only. Think linearly: situation → decision → reason. Do not repeat yourself. Do NOT overthink, chess/strategy mood.
501
499
  --- GOAL:
502
500
  Maximize long-term profit and faction dominance.
@@ -525,7 +523,7 @@ ${factionRows.length > 0 ? factionRows.slice(0, 4).join('\n') : 'none'}
525
523
  --- ACTIONS:
526
524
  FORMAT: (action) $ OR (action) $ "*"
527
525
  REPLACE $ with EXACTLY one FID from FACTIONS ONLY (always ends in pw).
528
- REPLACE * with a ONE sentence RESPONSE, always in double quotes.
526
+ REPLACE * with a ONE sentence cno , always in double quotes.
529
527
  (+) $ - join.
530
528
  (-) $ - leave or reduce.
531
529
  (&) $ - increase position.
@@ -537,7 +535,7 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
537
535
  (_) - skip turn.
538
536
  --- RULES:
539
537
  (+) and (&) increase MCAP. (-) decreases MCAP.
540
- (!) increases SENT. (#) decreases SENT.
538
+ (!) increases SENT. (#) decreases SENT.the
541
539
  (!) any FACTIONS.
542
540
  (^) FACTIONS where STATUS=RD.
543
541
  (~) FACTIONS where STATUS=ASN.
@@ -551,10 +549,9 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
551
549
  - FACTIONS where FNR=true and MBR=false, consider (+). (!) to promote it.
552
550
  - FACTIONS where STATUS=RS may have higher reward if you (+) the right one.
553
551
  - in FACTIONS where MBR=true, if MCAP increases, your PNL will increase.
554
- - (&) and (!) to push FACTIONS where MBR=true and STATUS=RS to STATUS=ASN.
552
+ - (&) and (!) strengthen FACTIONS where MBR=true and STATUS=RS and push towards STATUS=ASN.
555
553
  - consider (-) FACTIONS where MBR=true and PNL is positive to lock in profits.
556
- - consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.
557
- - if HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) or (&) ONLY if you see opportunity.
554
+ - consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.${pnl < 0 ? `\n- HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) or (&) ONLY if you see opportunity.` : ''}
558
555
  - (_) if you would prefer to hold and wait to take action.
559
556
  ---
560
557
  one move per turn. output EXACTLY one line.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "4.4.8",
3
+ "version": "4.5.1",
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",