@evomap/evolver 1.78.0 → 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/index.js CHANGED
@@ -1134,9 +1134,11 @@ async function main() {
1134
1134
  }
1135
1135
  }
1136
1136
 
1137
- if (allAssets.length === 0 && !exportPath) {
1138
- console.log('[sync] No assets to sync.');
1139
- process.exit(0);
1137
+ if (allAssets.length === 0) {
1138
+ console.log('[sync] No remote assets to sync.');
1139
+ if (!exportPath && !(listUnpublished && doPublished)) {
1140
+ process.exit(0);
1141
+ }
1140
1142
  }
1141
1143
 
1142
1144
  const existingGenes = loadGenes();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evomap/evolver",
3
- "version": "1.78.0",
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