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/dist/index.js +8 -3
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-EWC7GLGM.js → chunk-M3VDOFN5.js} +15 -8
- package/packages/safejs/dist/chunks/chunk-M3VDOFN5.js.map +7 -0
- package/packages/safejs/dist/chunks/{chunk-WC2N7PM5.js → chunk-OPNWSDXC.js} +8 -3
- package/packages/safejs/dist/chunks/chunk-OPNWSDXC.js.map +7 -0
- package/packages/safejs/dist/cli.js +9 -12
- package/packages/safejs/dist/cli.js.map +2 -2
- package/packages/safejs/dist/core.js +1 -1
- package/packages/safejs/dist/example-runner.js +6 -6
- package/packages/safejs/dist/index.js +8 -10
- package/packages/safejs/dist/index.js.map +2 -2
- package/packages/safejs/dist/loader/extract-block.d.ts +1 -0
- package/packages/safejs/dist/loader/extract-block.js +9 -6
- package/packages/safejs/dist/parse/parser.js +7 -1
- package/packages/safejs/dist/parse/tokenizer.js +0 -1
- package/packages/safejs/dist/runner/run-harness.js +6 -9
- package/packages/safejs/dist/chunks/chunk-EWC7GLGM.js.map +0 -7
- package/packages/safejs/dist/chunks/chunk-WC2N7PM5.js.map +0 -7
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
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
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
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-
|
|
8058
|
+
//# sourceMappingURL=chunk-M3VDOFN5.js.map
|