@bd7pil/opencode-deep-memory 0.8.5 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -15815,6 +15815,7 @@ function simpleHash(s) {
15815
15815
  }
15816
15816
  function compressAssistantText(text) {
15817
15817
  if (text.length < ASSISTANT_COMPRESS_MIN_LENGTH) return text;
15818
+ if (text.includes("```")) return text;
15818
15819
  const lines = text.split("\n");
15819
15820
  const head = 3;
15820
15821
  const tail = 3;
@@ -15825,7 +15826,7 @@ function compressAssistantText(text) {
15825
15826
  kept.push(line);
15826
15827
  continue;
15827
15828
  }
15828
- if (/^#{1,3}\s/.test(line) || /error|fail|warning|critical|important/i.test(line) || /^\s*[-*]\s/.test(line) || /^\s*\d+\.\s/.test(line) || line.trim().startsWith("```") || /^\/[^\s:]+/.test(line)) {
15829
+ if (/^#{1,3}\s/.test(line) || /error|fail|warning|critical|important/i.test(line) || /^\s*[-*]\s/.test(line) || /^\s*\d+\.\s/.test(line) || /^\/[^\s:]+/.test(line)) {
15829
15830
  kept.push(line);
15830
15831
  }
15831
15832
  }