shark-ai 0.4.12 → 0.4.13
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/bin/shark.js +6 -5
- package/dist/bin/shark.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/shark.js
CHANGED
|
@@ -1866,10 +1866,10 @@ async function runSpecLoop(initialMessage, targetPath, overrideAgentId) {
|
|
|
1866
1866
|
const pendingMatches = [...content.matchAll(/## ([^\n]+)[\s\S]*?\[TO BE/g)].map((m) => m[1]);
|
|
1867
1867
|
let missing = pendingMatches.length > 0 ? pendingMatches.join(", ") : "algumas se\xE7\xF5es";
|
|
1868
1868
|
tui.log.warning(`O agente tentou concluir prematuramente, mas h\xE1 placeholders pendentes. For\xE7ando retorno...`);
|
|
1869
|
-
nextPrompt = `[System Error]:
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1869
|
+
nextPrompt = `[System Error]: A valida\xE7\xE3o falhou e o bloqueio autom\xE1tico foi acionado.
|
|
1870
|
+
Voc\xEA tentou concluir a tarefa, mas o arquivo AINDA possui placeholders '[TO BE ANALYZED]' ou '[TO BE FILLED]'.
|
|
1871
|
+
As seguintes se\xE7\xF5es ainda cont\xEAm estes placeholders: ${missing}.
|
|
1872
|
+
Voc\xEA \xE9 OBRIGADO a usar a action \`modify_file\` para preencher o conte\xFAdo de cada uma dessas se\xE7\xF5es. Use o placeholder exato no campo \`target_content\`. N\xC3O repita a conclus\xE3o da tarefa at\xE9 corrigir todas as pend\xEAncias.`;
|
|
1873
1873
|
continue;
|
|
1874
1874
|
} else {
|
|
1875
1875
|
const updateSummary = lastResponse.message.split("SPEC_UPDATED:")[1].trim();
|
|
@@ -1967,7 +1967,8 @@ User Reply: ${userReply}`;
|
|
|
1967
1967
|
const pendingMatches = [...content.matchAll(/## ([^\n]+)[\s\S]*?\[TO BE/g)].map((m) => m[1]);
|
|
1968
1968
|
let missing = pendingMatches.length > 0 ? pendingMatches.join(", ") : "v\xE1rias se\xE7\xF5es";
|
|
1969
1969
|
systemMsg += `
|
|
1970
|
-
[System]: Se\xE7\xE3o atualizada.
|
|
1970
|
+
[System]: Se\xE7\xE3o atualizada com sucesso. A valida\xE7\xE3o detectou que AINDA H\xC1 placeholders pendentes ('[TO BE...]') nas seguintes se\xE7\xF5es: ${missing}.
|
|
1971
|
+
Por favor, envie uma nova action \`modify_file\` focada em uma destas se\xE7\xF5es obrigatoriamente. USE o respectivo placeholder no campo \`target_content\` para que o replace funcione.`;
|
|
1971
1972
|
} else {
|
|
1972
1973
|
systemMsg += "\n[System]: O arquivo parece completo! Se estiver satisfeito e possuir TODAS as implementa\xE7\xF5es descritas, retorne 'SPEC_UPDATED: Complete'.";
|
|
1973
1974
|
}
|