fix(ai): strip deepseek xml tags from chat history & secure git tools

This commit addresses the issue where DeepSeek's raw XML markup (like <tool_calls> and <think>) was leaking into chat history, causing hallucinations in subsequent turns. It also patches a vulnerability in the git commit tool where arbitrary shell injection was possible.

Additionally, it includes UX copy and color contrast adjustments for the marketing homepage breadcrumbs.
This commit is contained in:
2026-05-14 11:34:42 -07:00
parent 5968b98aa7
commit c51c3c21b3
22 changed files with 4559 additions and 667 deletions

36
check_coolify_logs.js Normal file
View File

@@ -0,0 +1,36 @@
const DFS_LOGIN = process.env.COOLIFY_API_TOKEN;
async function checkDeployment() {
const url = `${process.env.COOLIFY_URL}/api/v1/deployments?resource_uuid=y4cscsc8s08c8808go0448s0&per_page=1`;
console.log(`Pinging Coolify API at ${url}...`);
const response = await fetch(url, {
headers: {
"Authorization": `Bearer ${DFS_LOGIN}`
}
});
const data = await response.json();
if (data && data.length > 0) {
const deploy = data[0];
console.log(`\nDeployment UUID: ${deploy.deployment_uuid}`);
console.log(`Status: ${deploy.status}`);
console.log(`Created At: ${deploy.created_at}`);
// Parse the logs array to see what it's currently doing
try {
const logs = JSON.parse(deploy.logs);
if (logs && logs.length > 0) {
console.log("\nLast 5 log lines from the build container:");
logs.slice(-5).forEach(log => {
console.log(`[${log.timestamp}] ${log.type}: ${log.output.substring(0, 100)}`);
});
}
} catch(e) {
console.log("Could not parse logs array.");
}
} else {
console.log("No deployments found.");
}
}
checkDeployment().catch(console.error);