pyre-agent-kit 4.5.5 → 4.5.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 +12 -12
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -259,7 +259,7 @@ const buildCompactModelPrompt = async (kit, agent, factionCtx, solRange, holding
|
|
|
259
259
|
return 'RS';
|
|
260
260
|
};
|
|
261
261
|
// Sentiment label
|
|
262
|
-
const sentLabel = (s) => `${s >= 0 ? '+' : ''}${s.toFixed(
|
|
262
|
+
const sentLabel = (s) => `${s >= 0 ? '+' : ''}${s.toFixed(1)}`;
|
|
263
263
|
// Per-position PnL (numeric, 2 decimal places)
|
|
264
264
|
const pnlValue = (valueSol, bal) => {
|
|
265
265
|
if (totalTokens <= 0 || netInvested <= 0)
|
|
@@ -277,7 +277,7 @@ const buildCompactModelPrompt = async (kit, agent, factionCtx, solRange, holding
|
|
|
277
277
|
if (!f)
|
|
278
278
|
continue;
|
|
279
279
|
seenMints.add(f.mint);
|
|
280
|
-
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(
|
|
280
|
+
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(1)}` : '?';
|
|
281
281
|
const fnr = foundedSet.has(f.mint);
|
|
282
282
|
const sent = kit.state.sentimentMap.get(f.mint) ?? 0;
|
|
283
283
|
factionRows.push(`${f.mint.slice(-8)},${mcap},${statusTag(f)},true,${fnr},${Math.max(v.valueSol, 0.005).toFixed(2)},${pnlValue(v.valueSol, v.bal)},${sentLabel(sent)}`);
|
|
@@ -295,7 +295,7 @@ const buildCompactModelPrompt = async (kit, agent, factionCtx, solRange, holding
|
|
|
295
295
|
if (seenMints.has(f.mint))
|
|
296
296
|
continue;
|
|
297
297
|
seenMints.add(f.mint);
|
|
298
|
-
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(
|
|
298
|
+
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(1)}` : '?';
|
|
299
299
|
const sent = kit.state.sentimentMap.get(f.mint) ?? 0;
|
|
300
300
|
factionRows.push(`${f.mint.slice(-8)},${mcap},${statusTag(f)},false,false,0,0,${sentLabel(sent)}`);
|
|
301
301
|
}
|
|
@@ -347,7 +347,7 @@ SENT: sentiment score. positive = bullish, negative = bearish.
|
|
|
347
347
|
--- YOU ARE:
|
|
348
348
|
NAME: @AP${agent.publicKey.slice(0, 4)}
|
|
349
349
|
BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
|
|
350
|
-
HLTH: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(
|
|
350
|
+
HLTH: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(2)} SOL
|
|
351
351
|
${unrealizedPnl > 1 ? 'YOU ARE UP. consider taking profits.' : unrealizedPnl < -0.5 ? 'YOU ARE DOWN. be conservative. consider downsizing.' : 'BREAKEVEN. look for conviction plays.'}
|
|
352
352
|
--- INTEL:
|
|
353
353
|
${intelSnippet}
|
|
@@ -378,10 +378,10 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
|
378
378
|
- no FACTIONS? (%) to create one.
|
|
379
379
|
- learn about FACTIONS and other agents in INTEL. HLTH is performance. PNL and SENT are per-faction direction. use all three to decide.
|
|
380
380
|
- limit FACTIONS where MBR=true to AT MOST 5.${memberOf.length > 3 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
|
|
381
|
-
- FACTIONS where FNR=true
|
|
381
|
+
- consider (+) FACTIONS where FNR=true. (!) to promote it.
|
|
382
382
|
- FACTIONS where STATUS=RS may have higher reward if you (+) the right one.
|
|
383
383
|
- in FACTIONS where MBR=true, if MCAP increases, your PNL will increase.
|
|
384
|
-
- (+) and (!) strengthen FACTIONS where
|
|
384
|
+
- (+) and (!) strengthen FACTIONS where STATUS=RS and push towards STATUS=ASN.
|
|
385
385
|
- consider (-) FACTIONS where MBR=true and PNL is positive to lock in profits.
|
|
386
386
|
- consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.
|
|
387
387
|
- when HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) ONLY if you see opportunity.
|
|
@@ -438,7 +438,7 @@ const buildMinimumPrompt = async (kit, agent, factionCtx, solRange, holdings) =>
|
|
|
438
438
|
return 'RS';
|
|
439
439
|
};
|
|
440
440
|
// Sentiment label
|
|
441
|
-
const sentLabel = (s) => `${s >= 0 ? '+' : ''}${s.toFixed(
|
|
441
|
+
const sentLabel = (s) => `${s >= 0 ? '+' : ''}${s.toFixed(1)}`;
|
|
442
442
|
// Per-position PnL (numeric, 2 decimal places)
|
|
443
443
|
const pnlValue = (valueSol, bal) => {
|
|
444
444
|
if (totalTokens <= 0 || netInvested <= 0)
|
|
@@ -456,7 +456,7 @@ const buildMinimumPrompt = async (kit, agent, factionCtx, solRange, holdings) =>
|
|
|
456
456
|
if (!f)
|
|
457
457
|
continue;
|
|
458
458
|
seenMints.add(f.mint);
|
|
459
|
-
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(
|
|
459
|
+
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(1)}` : '?';
|
|
460
460
|
const fnr = foundedSet.has(f.mint);
|
|
461
461
|
const sent = kit.state.sentimentMap.get(f.mint) ?? 0;
|
|
462
462
|
factionRows.push(`${f.mint.slice(-8)},${mcap},${statusTag(f)},true,${fnr},${Math.max(v.valueSol, 0.005).toFixed(2)},${pnlValue(v.valueSol, v.bal)},${sentLabel(sent)}`);
|
|
@@ -474,7 +474,7 @@ const buildMinimumPrompt = async (kit, agent, factionCtx, solRange, holdings) =>
|
|
|
474
474
|
if (seenMints.has(f.mint))
|
|
475
475
|
continue;
|
|
476
476
|
seenMints.add(f.mint);
|
|
477
|
-
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(
|
|
477
|
+
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(1)}` : '?';
|
|
478
478
|
const sent = kit.state.sentimentMap.get(f.mint) ?? 0;
|
|
479
479
|
factionRows.push(`${f.mint.slice(-8)},${mcap},${statusTag(f)},false,false,0,0,${sentLabel(sent)}`);
|
|
480
480
|
}
|
|
@@ -525,7 +525,7 @@ SENT: sentiment score. positive = bullish, negative = bearish.
|
|
|
525
525
|
--- YOU ARE:
|
|
526
526
|
NAME: @AP${agent.publicKey.slice(0, 4)}
|
|
527
527
|
BIO: ${gameState.personalitySummary ?? defaults_1.personalityDesc[agent.personality]}
|
|
528
|
-
HLTH: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(
|
|
528
|
+
HLTH: ${pnl >= 0 ? '+' : ''}${pnl.toFixed(1)} SOL
|
|
529
529
|
${unrealizedPnl > 1 ? 'YOU ARE UP. consider taking profits.' : unrealizedPnl < -0.5 ? 'YOU ARE DOWN. be conservative. consider downsizing.' : 'BREAKEVEN. look for conviction plays.'}
|
|
530
530
|
--- INTEL:
|
|
531
531
|
${intelSnippet}
|
|
@@ -556,10 +556,10 @@ REPLACE * with a ONE sentence RESPONSE, always in double quotes.
|
|
|
556
556
|
- no FACTIONS? (%) to create one.
|
|
557
557
|
- learn about FACTIONS and other agents in INTEL. HLTH is performance. PNL and SENT are per-faction direction. use all three to decide.
|
|
558
558
|
- limit FACTIONS where MBR=true to AT MOST 3.${memberOf.length > 1 ? ` MBR=true on ${memberOf.length} FACTIONS — consider (-) from underperformers.` : ''}
|
|
559
|
-
- FACTIONS where FNR=true
|
|
559
|
+
- consider (+) FACTIONS where FNR=true. (!) to promote it.
|
|
560
560
|
- FACTIONS where STATUS=RS may have higher reward if you (+) the right one.
|
|
561
561
|
- in FACTIONS where MBR=true, if MCAP increases, your PNL will increase.
|
|
562
|
-
- (+) and (!) strengthen FACTIONS where
|
|
562
|
+
- (+) and (!) strengthen FACTIONS where STATUS=RS and push towards STATUS=ASN.
|
|
563
563
|
- consider (-) FACTIONS where MBR=true and PNL is positive to lock in profits.
|
|
564
564
|
- consider (-) FACTIONS where MBR=true and PNL is negative unless FNR=true or SENT is positive.
|
|
565
565
|
- when HLTH is negative, consider (_) or (-) weakest FACTIONS where MBR=true. (+) ONLY if you see opportunity.
|