agent-mp 0.3.9 → 0.4.0

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.
@@ -840,16 +840,16 @@ INSTRUCCIONES:
840
840
  7. Al terminar lista todos los archivos creados/actualizados.
841
841
 
842
842
  REGLAS:
843
- - NO modifiques archivos de aplicacion (solo .agent/context/)
843
+ - Escribe UNICAMENTE los archivos indicados: ${archPath} y ${contextDir}/<servicio>/architecture.md
844
+ - NO crees archivos adicionales ni con otros nombres
845
+ - NO modifiques archivos de aplicacion
844
846
  - NO ejecutes comandos que cambien estado (npm install, migraciones, etc.)
845
847
  - Si un directorio esta en node_modules, dist, .git: ignoralo`;
846
848
  const res = await this.runWithFallback('explorer', prompt, 'Exploracion');
847
849
  const text = extractCliText(res);
848
- // Always save a timestamped explorer report
850
+ // Overwrite the single last-run report (no timestamp accumulation)
849
851
  try {
850
- const ts = new Date().toISOString().replace(/[:.]/g, '-').slice(0, 19);
851
- await writeFile(path.join(contextDir, `explorer-${ts}.md`), `# Explorer Report\n\nTask: ${effectiveTask}\nDate: ${new Date().toISOString()}\n\n${text}\n`);
852
- log.ok(`Saved to .agent/context/explorer-${ts}.md`);
852
+ await writeFile(path.join(contextDir, 'explorer-last.md'), `# Explorer Report\n\nTask: ${effectiveTask}\nDate: ${new Date().toISOString()}\n\n${text}\n`);
853
853
  }
854
854
  catch { /* don't fail if save fails */ }
855
855
  return text;
@@ -883,7 +883,11 @@ INSTRUCCIONES:
883
883
  2. Para cada uno: lee package.json/requirements.txt, explora src/, identifica entry point, rutas/endpoints, puerto.
884
884
  3. Identifica dependencias entre servicios.
885
885
  4. Crea/actualiza ${archPath} con tabla resumen y detalle por servicio.
886
- 5. Crea/actualiza ${contextDir}/<servicio>/architecture.md para cada servicio.`);
886
+ 5. Crea/actualiza ${contextDir}/<servicio>/architecture.md para cada servicio.
887
+
888
+ REGLAS:
889
+ - Escribe UNICAMENTE los archivos indicados: ${archPath} y ${contextDir}/<servicio>/architecture.md
890
+ - NO crees archivos adicionales ni con otros nombres en ningun directorio`);
887
891
  let result;
888
892
  const stopSpin = this._startSpinner(`agent-explorer ${role.model}`);
889
893
  try {
@@ -900,9 +904,7 @@ INSTRUCCIONES:
900
904
  throw err;
901
905
  }
902
906
  try {
903
- const ts = new Date().toISOString().replace(/[:.]/g, '-').slice(0, 19);
904
- await writeFile(path.join(contextDir, `explorer-${ts}.md`), `# Explorer Report\n\nTask: ${effectiveTask}\n\n${result}\n`);
905
- log.ok(`Saved to .agent/context/explorer-${ts}.md`);
907
+ await writeFile(path.join(contextDir, 'explorer-last.md'), `# Explorer Report\n\nTask: ${effectiveTask}\nDate: ${new Date().toISOString()}\n\n${result}\n`);
906
908
  }
907
909
  catch { /* ignore */ }
908
910
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-mp",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "description": "Deterministic multi-agent CLI orchestrator — plan, code, review",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",