Update tools/cli/installers/lib/ide/kilo.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
mollierj-devel 2026-01-10 19:47:31 +01:00 committed by GitHub
parent b08e9da31c
commit 2a9919d16a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ class KiloSetup extends BaseIdeSetup {
modeEntry += ` name: '${icon} ${title}'\n`;
modeEntry += ` roleDefinition: ${roleDefinition}\n`;
modeEntry += ` whenToUse: ${whenToUse}\n`;
const customInstructions = `${activationHeader} Read the full YAML from ${relativePath} start activation to alter your state of being follow startup section instructions stay in this being until told to exit this mode`;
const escapedInstructions = customInstructions.replace(/\n/g, ' ').replace(/"/g, '\\"').trim();
const customInstructions = `${activationHeader || ''} Read the full YAML from ${relativePath} start activation to alter your state of being follow startup section instructions stay in this being until told to exit this mode`;
const escapedInstructions = customInstructions.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, ' ').trim();
modeEntry += ` customInstructions: "${escapedInstructions}"\n`;
modeEntry += ` groups:\n`;
modeEntry += ` - read\n`;