| 249 | 249 | const JOINER = '\n' + MATCHER; |
| 250 | 250 | let result = MATCHER + this.#depthBuffer.slice(this.#startDepth, depth).join(JOINER); |
| 251 | 251 | |
| 252 | 252 | if (entry.matchPersonaDescription && this.#globalScanData.personaDescription) { |
| 253 | 253 | result += JOINER + this.#globalScanDataBufferglobalScanData.personaDescription; |
| 254 | 254 | } |
| 255 | 255 | if (entry.matchCharacterDescription && this.#globalScanData.characterDescription) { |
| 256 | 256 | result += JOINER + this.#globalScanDataBufferglobalScanData.characterDescription; |
| 257 | 257 | } |
| 258 | 258 | if (entry.matchCharacterPersonality && this.#globalScanData.characterPersonality) { |
| 259 | 259 | result += JOINER + this.#globalScanDataBufferglobalScanData.characterPersonality; |
| 260 | 260 | } |
| 261 | 261 | if (entry.matchCharacterDepthPrompt && this.#globalScanData.characterDepthPrompt) { |
| 262 | 262 | result += JOINER + this.#globalScanDataBufferglobalScanData.characterDepthPrompt; |
| 263 | 263 | } |
| 264 | 264 | if (entry.matchScenario && this.#globalScanData.scenario) { |
| 265 | 265 | result += JOINER + this.#globalScanDataBufferglobalScanData.scenario; |
| 266 | 266 | } |
| 267 | 267 | if (entry.matchCreatorNotes && this.#globalScanData.creatorNotes) { |
| 268 | 268 | result += JOINER + this.#globalScanDataBufferglobalScanData.creatorNotes; |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | if (this.#injectBuffer.length > 0) { |