pyre-agent-kit 4.3.3 → 4.3.4
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 +5 -4
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -254,7 +254,7 @@ const buildCompactModelPrompt = (kit, agent, factionCtx, intelSnippet, recentMes
|
|
|
254
254
|
const mcap = f.market_cap_sol ? `${f.market_cap_sol.toFixed(2)}` : '?';
|
|
255
255
|
const fnr = foundedSet.has(f.mint);
|
|
256
256
|
const sent = kit.state.sentimentMap.get(f.mint) ?? 0;
|
|
257
|
-
factionRows.push(`${f.mint.slice(-8)},${mcap},${statusTag(f)},true,${fnr},${v.valueSol.toFixed(
|
|
257
|
+
factionRows.push(`${f.mint.slice(-8)},${mcap},${statusTag(f)},true,${fnr},${Math.max(v.valueSol, 0.005).toFixed(2)},${pnlLabel(v.valueSol, v.bal)},${sentLabel(sent)}`);
|
|
258
258
|
}
|
|
259
259
|
// Non-member factions
|
|
260
260
|
const nonMember = factionCtx.all.filter(f => !seenMints.has(f.mint) && f.status !== 'razed');
|
|
@@ -690,17 +690,18 @@ async function llmDecide(kit, agent, factions, recentMessages, llm, log, solRang
|
|
|
690
690
|
];
|
|
691
691
|
if (toScout.length > 0) {
|
|
692
692
|
const intels = await Promise.all(toScout.map((f) => (0, faction_1.fetchFactionIntel)(kit, f)));
|
|
693
|
-
const lines = intels.map((intel) => {
|
|
693
|
+
const lines = intels.map((intel, i) => {
|
|
694
|
+
const fid = toScout[i].mint.slice(-8);
|
|
694
695
|
const memberInfo = intel.totalMembers > 0
|
|
695
696
|
? `${intel.totalMembers} members, top holder: ${intel.members[0]?.percentage.toFixed(1)}%`
|
|
696
697
|
: 'no members';
|
|
697
698
|
const commsInfo = intel.recentComms.length > 0
|
|
698
699
|
? intel.recentComms
|
|
699
700
|
.slice(0, 3)
|
|
700
|
-
.map((c) =>
|
|
701
|
+
.map((c) => `@AP${c.sender.slice(0, 4)} said: "${c.memo.replace(/^<+/, '').replace(/>+\s*$/, '')}"`)
|
|
701
702
|
.join(', ')
|
|
702
703
|
: 'no recent comms';
|
|
703
|
-
return ` [${
|
|
704
|
+
return ` [${fid}] ${memberInfo} | recent comms: ${commsInfo}`;
|
|
704
705
|
});
|
|
705
706
|
intelSnippet = 'FACTION INTEL:\n' + lines.join('\n');
|
|
706
707
|
}
|