agent-mp 0.5.26 → 0.5.27
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 +27 -20
- package/package.json +1 -1
package/dist/core/engine.js
CHANGED
|
@@ -411,13 +411,15 @@ export class AgentEngine {
|
|
|
411
411
|
: '\nNo hay features en .agent/docs/ todavía.\n';
|
|
412
412
|
const READY_SENTINEL = '[LISTO_PARA_LANZAR]';
|
|
413
413
|
const specInstructions = hasFeature ? `
|
|
414
|
-
MODO SPEC
|
|
415
|
-
|
|
414
|
+
MODO SPEC — Feature cargada: "${activeFeatureId}"
|
|
415
|
+
Los archivos raw YA ESTÁN en el CONTEXTO DEL PROYECTO arriba.
|
|
416
416
|
|
|
417
|
-
|
|
418
|
-
1.
|
|
419
|
-
2.
|
|
420
|
-
3.
|
|
417
|
+
REGLAS CRÍTICAS:
|
|
418
|
+
1. ANTES DE ESCRIBIR CUALQUIER COSA: leé completo cada archivo raw del contexto.
|
|
419
|
+
2. NO preguntes sobre información que ya está en los archivos raw. Si el lenguaje, stack, objetivo, contexto o requisitos están en los archivos, USÁ ESA INFORMACIÓN directamente.
|
|
420
|
+
3. Solo hacé preguntas sobre información que GENUINAMENTE falta y que no podés inferir de los archivos.
|
|
421
|
+
4. Si los archivos ya tienen suficiente información para entender el objetivo, NO hagas preguntas — generá el spec.md directamente.
|
|
422
|
+
5. Cuando tengas todo claro (o si los archivos ya tienen suficiente info), generá el spec.md con este formato EXACTO:
|
|
421
423
|
|
|
422
424
|
=== SPEC.MD ===
|
|
423
425
|
# Feature: ${activeFeatureId}
|
|
@@ -438,17 +440,20 @@ FLUJO:
|
|
|
438
440
|
[consideraciones de implementación]
|
|
439
441
|
=== END SPEC.MD ===
|
|
440
442
|
|
|
441
|
-
|
|
442
|
-
MODO TAREA LIBRE
|
|
443
|
+
6. Cuando el spec esté aprobado, escribí EXACTAMENTE al final: ${READY_SENTINEL}` : `
|
|
444
|
+
MODO TAREA LIBRE — No se especificó feature todavía.
|
|
443
445
|
${featureListBlock}
|
|
444
446
|
REGLAS:
|
|
445
|
-
- Primero entendé QUÉ quiere hacer el programador.
|
|
446
|
-
- Si hay features disponibles, preguntá si alguna corresponde
|
|
447
|
-
- Si el programador
|
|
448
|
-
-
|
|
449
|
-
-
|
|
450
|
-
|
|
451
|
-
|
|
447
|
+
- Primero entendé QUÉ quiere hacer el programador.
|
|
448
|
+
- Si hay features disponibles, preguntá UNA VEZ si alguna corresponde (mencioná los nombres). No insistas.
|
|
449
|
+
- Si el programador menciona un path o ID de feature, está confirmando esa feature. NO preguntés "¿tiene que ver con X?" — ya lo dijo. Respondé EXACTAMENTE con: CARGAR_FEATURE: <id>
|
|
450
|
+
- Si el programador menciona solo el nombre o fragmento de un ID de feature disponible, igual respondé con: CARGAR_FEATURE: <id>
|
|
451
|
+
- Cuando el objetivo esté claro, escribí EXACTAMENTE al final: ${READY_SENTINEL}
|
|
452
|
+
- NUNCA escribas ${READY_SENTINEL} si solo recibiste un saludo o falta información concreta.`;
|
|
453
|
+
const prompt = `Sos el COORDINADOR de un equipo de desarrollo de software.
|
|
454
|
+
Tu trabajo es entender qué necesita el programador usando la información disponible y haciendo SOLO las preguntas estrictamente necesarias.
|
|
455
|
+
|
|
456
|
+
REGLA DE ORO: ANTES de escribir cualquier respuesta, LEÉ COMPLETO el CONTEXTO DEL PROYECTO que está arriba. Toda la información que necesitás para no hacer preguntas obvias está ahí.
|
|
452
457
|
|
|
453
458
|
CONTEXTO DEL PROYECTO:
|
|
454
459
|
${context}
|
|
@@ -456,11 +461,13 @@ ${context}
|
|
|
456
461
|
CONVERSACION PREVIA:
|
|
457
462
|
${conversationHistory}
|
|
458
463
|
|
|
459
|
-
INSTRUCCIONES:
|
|
460
|
-
-
|
|
461
|
-
-
|
|
462
|
-
- NO
|
|
463
|
-
-
|
|
464
|
+
INSTRUCCIONES GENERALES:
|
|
465
|
+
- Hablá en forma NATURAL, como un compañero de equipo experimentado.
|
|
466
|
+
- ANTES DE RESPONDER: leé todo el CONTEXTO DEL PROYECTO y los archivos raw de la feature. Si algo ya está documentado ahí, NO lo preguntes.
|
|
467
|
+
- NO preguntés cosas que ya están respondidas en los archivos raw o en la conversación.
|
|
468
|
+
- Hacé como máximo UNA pregunta por turno.
|
|
469
|
+
- NO uses JSON, hablá normalmente.
|
|
470
|
+
- Sé directo y eficiente — respetá el tiempo del programador.${specInstructions}`;
|
|
464
471
|
log.info('Coordinador analizando...');
|
|
465
472
|
const envOverride = {};
|
|
466
473
|
let res;
|