n8n
Version:
n8n Workflow Automation Tool
11 lines • 702 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AUTO_FOLLOW_UP_MESSAGE = void 0;
exports.cleanStoredUserMessage = cleanStoredUserMessage;
exports.AUTO_FOLLOW_UP_MESSAGE = '(continue)';
const TASK_CONTEXT_BLOCK = /^(?:<running-tasks>\n[\s\S]*?\n<\/running-tasks>|<planned-task-follow-up[\s\S]*?\n<\/planned-task-follow-up>|<planning-blueprint>\n[\s\S]*?\n<\/planning-blueprint>|<background-task-completed>\n[\s\S]*?\n<\/background-task-completed>)\n\n/;
function cleanStoredUserMessage(stored) {
const text = stored.replace(TASK_CONTEXT_BLOCK, '');
return text === exports.AUTO_FOLLOW_UP_MESSAGE ? null : text;
}
//# sourceMappingURL=internal-messages.js.map