@evomap/evolver 1.78.1 → 1.78.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evomap/evolver",
3
- "version": "1.78.1",
3
+ "version": "1.78.2",
4
4
  "description": "A GEP-powered self-evolution engine for AI agents. Features automated log analysis and Genome Evolution Protocol (GEP) for auditable, reusable evolution assets.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -38,8 +38,14 @@ function main() {
38
38
  handled = true;
39
39
  try {
40
40
  const input = inputData.trim() ? JSON.parse(inputData) : {};
41
- const content = input.content || input.file_content || input.diff || '';
42
- const filePath = input.path || input.file_path || '';
41
+ // Claude Code's PostToolUse payload nests tool args under tool_input.
42
+ // Older/raw shapes put them at the top level; support both.
43
+ const ti = input.tool_input || {};
44
+ const tr = input.tool_response || {};
45
+ const content = ti.content || ti.new_string || ti.file_content
46
+ || input.content || input.file_content || input.diff || '';
47
+ const filePath = ti.file_path || tr.filePath
48
+ || input.path || input.file_path || '';
43
49
 
44
50
  const signals = detectSignals(content);
45
51