@cccarv82/freya 3.8.2 → 3.8.3
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.
|
@@ -304,7 +304,7 @@ IMPORTANTE: Extraia APENAS informações explícitas do log. NÃO invente dados.
|
|
|
304
304
|
r = await run(sc, sa, workspaceDir, agentEnv);
|
|
305
305
|
try { fs.unlinkSync(tmpFile); } catch { }
|
|
306
306
|
} else {
|
|
307
|
-
const { cmd: sc, args: sa } = copilotSpawnArgs(copilotResolved, [...copilotExtra, '-p', fullPrompt]);
|
|
307
|
+
const { cmd: sc, args: sa } = copilotSpawnArgs(copilotResolved, [...copilotExtra, '--allow-all-tools', '-p', fullPrompt]);
|
|
308
308
|
r = await run(sc, sa, workspaceDir, agentEnv);
|
|
309
309
|
}
|
|
310
310
|
|
|
@@ -330,6 +330,11 @@ IMPORTANTE: Extraia APENAS informações explícitas do log. NÃO invente dados.
|
|
|
330
330
|
} catch {
|
|
331
331
|
try { plan = JSON.parse(escapeJsonControlChars(jsonText)); } catch {
|
|
332
332
|
totalErrors++;
|
|
333
|
+
if (totalErrors <= 2) {
|
|
334
|
+
console.log(`\n ⚠ JSON parse diagnostic for ${date}:`);
|
|
335
|
+
console.log(` Raw output (first 500 chars): ${out.slice(0, 500)}`);
|
|
336
|
+
console.log(` Extracted JSON attempt: ${(jsonText || '').slice(0, 300)}`);
|
|
337
|
+
}
|
|
333
338
|
process.stdout.write(`\r [${i + 1}/${files.length}] ${date} — ❌ invalid JSON `);
|
|
334
339
|
continue;
|
|
335
340
|
}
|
package/package.json
CHANGED