pyre-agent-kit 2.0.13 → 2.0.14
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 +3 -1
- package/dist/defaults.js +2 -0
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -147,7 +147,9 @@ function parseLLMDecision(raw, factions, agent, solRange) {
|
|
|
147
147
|
.replace(/[Нн]/g, 'H').replace(/[Кк]/g, 'K').replace(/[Мм]/g, 'M').replace(/[Оо]/g, 'O')
|
|
148
148
|
.replace(/[Рр]/g, 'P').replace(/[Тт]/g, 'T').replace(/[Уу]/g, 'U').replace(/[Хх]/g, 'X')
|
|
149
149
|
.replace(/[фФ]/g, 'f').replace(/[иИ]/g, 'i').replace(/[лЛ]/g, 'l').replace(/[дД]/g, 'd')
|
|
150
|
-
.replace(/\\/g, '')
|
|
150
|
+
.replace(/\\/g, '') // strip backslash escapes
|
|
151
|
+
.replace(/\s+for\s+\d+\.?\d*\s*SOL/i, '') // strip "for 0.1234 SOL" narration
|
|
152
|
+
.replace(/\s*[-;:]+\s*(?=")/g, ' '); // normalize separators before quotes
|
|
151
153
|
let normalized = cleaned;
|
|
152
154
|
const upper = cleaned.toUpperCase();
|
|
153
155
|
const knownSymbols = factions.map(f => f.symbol.toUpperCase());
|
package/dist/defaults.js
CHANGED
|
@@ -89,6 +89,8 @@ exports.ACTION_MAP = {
|
|
|
89
89
|
'ALERT': 'FUD', 'EXPOSE': 'FUD',
|
|
90
90
|
'QUESTION': 'MESSAGE', 'ASK': 'MESSAGE', 'TAUNT': 'FUD', 'RALLYING': 'RALLY',
|
|
91
91
|
'TICKER': 'MESSAGE', 'ACTION': 'MESSAGE', // LLM copies placeholder words from prompt
|
|
92
|
+
'RECRUIT': 'JOIN', 'REJOIN': 'JOIN', 'JOINED': 'JOIN', 'RECENT': 'MESSAGE',
|
|
93
|
+
'COMMIT': 'JOIN',
|
|
92
94
|
};
|
|
93
95
|
// Stronghold defaults
|
|
94
96
|
exports.STRONGHOLD_FUND_SOL = 35;
|