# Fix 2: Update the task-mode prompt to include HEARTBEAT.md directives
old_prompt = ''' if (dueTasks.length > 0) {
const taskList = dueTasks.map((task) => `- ${task.name}: ${task.prompt}`).join("\\n");
const prompt = `Run the following periodic tasks (only those due based on their intervals):
${taskList}
After completing all due tasks, reply HEARTBEAT_OK.`; return { prompt, hasExecCompletion: false, hasCronEvents: false };
}'''
new_prompt = ''' if (dueTasks.length > 0) {
const taskList = dueTasks.map((task) => `- ${task.name}: ${task.prompt}`).join("\\n");
let prompt = `Run the following periodic tasks (only those due based on their intervals):
${taskList}
After completing all due tasks, reply HEARTBEAT_OK.`;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.