agent-mp 0.3.8 → 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.
- package/dist/core/engine.js +11 -9
- package/dist/ui/input.js +2 -2
- package/package.json +1 -1
package/dist/core/engine.js
CHANGED
|
@@ -840,16 +840,16 @@ INSTRUCCIONES:
|
|
|
840
840
|
7. Al terminar lista todos los archivos creados/actualizados.
|
|
841
841
|
|
|
842
842
|
REGLAS:
|
|
843
|
-
-
|
|
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
|
-
//
|
|
850
|
+
// Overwrite the single last-run report (no timestamp accumulation)
|
|
849
851
|
try {
|
|
850
|
-
|
|
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
|
-
|
|
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/dist/ui/input.js
CHANGED
|
@@ -69,7 +69,7 @@ export class FixedInput {
|
|
|
69
69
|
/** Show or clear the status / spinner line above the input box. */
|
|
70
70
|
setStatus(text) {
|
|
71
71
|
this._statusText = text || '';
|
|
72
|
-
this.
|
|
72
|
+
this._drawBox();
|
|
73
73
|
}
|
|
74
74
|
suspend() {
|
|
75
75
|
console.log = this.origLog;
|
|
@@ -212,7 +212,7 @@ export class FixedInput {
|
|
|
212
212
|
const row = this.scrollBottom + 1;
|
|
213
213
|
process.stdout.write(`\x1b[${row};1H\x1b[2K`);
|
|
214
214
|
if (this._statusText) {
|
|
215
|
-
process.stdout.write(chalk.
|
|
215
|
+
process.stdout.write(chalk.rgb(0, 185, 180)(this._statusText));
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
/** Debounced draw: coalesces rapid calls (e.g. during paste) into a single repaint. */
|