poe-code 11.0.5 → 11.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "11.0.5",
3
+ "version": "11.0.7",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-WC2N7PM5.js";
30
+ } from "./chunk-OPNWSDXC.js";
31
31
 
32
32
  // packages/safejs/src/migrate.ts
33
33
  import { createHash } from "node:crypto";
@@ -473,12 +473,10 @@ function extractBlock(markdown, startLine = 1) {
473
473
  const parts = [];
474
474
  let cursor = first.start;
475
475
  for (const block of blocks) {
476
- let gap = "";
477
- for (let offset = cursor; offset < block.start; offset++) {
478
- const character = markdown[offset];
479
- gap += character === "\n" || character === "\r" ? character : " ";
480
- }
481
- parts.push(gap, markdown.slice(block.start, block.end));
476
+ parts.push(
477
+ maskSource(markdown.slice(cursor, block.start)),
478
+ markdown.slice(block.start, block.end)
479
+ );
482
480
  cursor = block.end;
483
481
  }
484
482
  return {
@@ -489,6 +487,14 @@ function extractBlock(markdown, startLine = 1) {
489
487
  ranges: blocks.map((block) => [block.start, block.end])
490
488
  };
491
489
  }
490
+ function maskSource(source) {
491
+ let masked = "";
492
+ for (let offset = 0; offset < source.length; offset++) {
493
+ const character = source[offset];
494
+ masked += character === "\n" || character === "\r" ? character : " ";
495
+ }
496
+ return masked;
497
+ }
492
498
  function readOpeningFence(line) {
493
499
  const fenceStart = readFenceStart(line);
494
500
  if (fenceStart === void 0) {
@@ -8024,6 +8030,7 @@ export {
8024
8030
  SPAWN_MODES,
8025
8031
  supportsSpawnMode,
8026
8032
  extractBlock,
8033
+ maskSource,
8027
8034
  countLineBreaks,
8028
8035
  splitFrontmatter,
8029
8036
  createLintModulesFromRuntimeRegistry,
@@ -8048,4 +8055,4 @@ export {
8048
8055
  parseMcpConfig,
8049
8056
  makeMcpModule
8050
8057
  };
8051
- //# sourceMappingURL=chunk-EWC7GLGM.js.map
8058
+ //# sourceMappingURL=chunk-M3VDOFN5.js.map