pyre-agent-kit 3.4.34 → 3.4.35

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 +2 -2
  2. package/package.json +1 -1
package/dist/agent.js CHANGED
@@ -410,7 +410,7 @@ function parseLLMDecision(raw, factions, kit, agent, holdings, solRange) {
410
410
  return { action: 'scout', faction: scoutMatch[1], reasoning: line };
411
411
  }
412
412
  // Strip YOUR MOVE: prefix before symbol detection
413
- const stripped = line.trim().replace(/^(?:YOUR MOVE|YOUR MOVE:)\s*:?\s*/i, '');
413
+ const stripped = line.trim().replace(/^(?:YOUR MOVE|YOUR MOVE:|your move>?)\s*:?\s*/i, '');
414
414
  // Compact symbol actions like (+), (-), (#) — skip aggressive cleaning that would mangle them
415
415
  const symbolActionMatch = stripped.match(/^(\([+\-!&#^~=%]\))\s+(.*)/) || stripped.match(/^([+\-!&#^~=%])\s+(.*)/);
416
416
  const cleaned = symbolActionMatch
@@ -418,7 +418,7 @@ function parseLLMDecision(raw, factions, kit, agent, holdings, solRange) {
418
418
  : line
419
419
  .replace(/\*+/g, '')
420
420
  .replace(/^[-•>#\d.)\s]+/, '')
421
- .replace(/^(?:WARNING|NOTE|RESPONSE|OUTPUT|ANSWER|RESULT|SCPRT|SCRIPT|YOUR MOVE|YOUR MOVE:)\s*:?\s*/i, '')
421
+ .replace(/^(?:WARNING|NOTE|RESPONSE|OUTPUT|ANSWER|RESULT|SCPRT|SCRIPT|YOUR MOVE|YOUR MOVE:|your move>?)\s*:?\s*/i, '')
422
422
  .replace(/^ACTION\s+/i, '')
423
423
  .replace(/^I\s+(?=JOIN|DEFECT|RALLY|LAUNCH|MESSAGE|FUD|REINFORCE|INFILTRATE|WAR_LOAN|REPAY_LOAN|SIEGE|ASCEND|RAZE|TITHE|SCOUT)/i, '')
424
424
  .replace(/[АаА]/g, 'A')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-agent-kit",
3
- "version": "3.4.34",
3
+ "version": "3.4.35",
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",