openzca 0.1.39 → 0.1.40

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -612,19 +612,17 @@ function parseTextStyles(input) {
612
612
  const lines = escapedInput.split("\n");
613
613
  const lineStyles = [];
614
614
  const processedLines = [];
615
- const codeBlockLineIndices = /* @__PURE__ */ new Set();
615
+ const codeOutputLineIndices = /* @__PURE__ */ new Set();
616
616
  let inCodeBlock = false;
617
617
  for (let lineIndex = 0; lineIndex < lines.length; lineIndex += 1) {
618
618
  let line = lines[lineIndex];
619
619
  let baseIndent = 0;
620
620
  if (/^```/.test(line)) {
621
- codeBlockLineIndices.add(lineIndex);
622
- processedLines.push(line);
623
621
  inCodeBlock = !inCodeBlock;
624
622
  continue;
625
623
  }
626
624
  if (inCodeBlock) {
627
- codeBlockLineIndices.add(lineIndex);
625
+ codeOutputLineIndices.add(processedLines.length);
628
626
  processedLines.push(normalizeCodeBlockLeadingWhitespace(line));
629
627
  continue;
630
628
  }
@@ -685,7 +683,7 @@ function parseTextStyles(input) {
685
683
  }
686
684
  processedLines.push(line);
687
685
  }
688
- for (const codeLineIndex of codeBlockLineIndices) {
686
+ for (const codeLineIndex of codeOutputLineIndices) {
689
687
  if (codeLineIndex >= processedLines.length) {
690
688
  continue;
691
689
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openzca",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "Open-source zca-compatible CLI to integrate Zalo with OpenClaw",
5
5
  "type": "module",
6
6
  "bin": {