poe-code 11.0.21 → 11.0.22
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 +4 -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-KWRLKWB3.js → chunk-IB5DSFBQ.js} +4 -3
- package/packages/safejs/dist/chunks/{chunk-KWRLKWB3.js.map → chunk-IB5DSFBQ.js.map} +2 -2
- package/packages/safejs/dist/chunks/{chunk-JLAZPLMH.js → chunk-K3DCXHEE.js} +2 -2
- package/packages/safejs/dist/cli.js +2 -2
- package/packages/safejs/dist/core.js +1 -1
- package/packages/safejs/dist/index.js +2 -2
- package/packages/safejs/dist/interp/methods/string.js +3 -2
- /package/packages/safejs/dist/chunks/{chunk-JLAZPLMH.js.map → chunk-K3DCXHEE.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IB5DSFBQ.js";
|
|
31
31
|
|
|
32
32
|
// packages/safejs/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8055,4 +8055,4 @@ export {
|
|
|
8055
8055
|
parseMcpConfig,
|
|
8056
8056
|
makeMcpModule
|
|
8057
8057
|
};
|
|
8058
|
-
//# sourceMappingURL=chunk-
|
|
8058
|
+
//# sourceMappingURL=chunk-K3DCXHEE.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
parseMcpConfig,
|
|
21
21
|
splitFrontmatter,
|
|
22
22
|
withBrokenPipeGuard
|
|
23
|
-
} from "./chunks/chunk-
|
|
23
|
+
} from "./chunks/chunk-K3DCXHEE.js";
|
|
24
24
|
import {
|
|
25
25
|
Budget,
|
|
26
26
|
SandboxError,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
replaceErrorStack,
|
|
33
33
|
restore,
|
|
34
34
|
run
|
|
35
|
-
} from "./chunks/chunk-
|
|
35
|
+
} from "./chunks/chunk-IB5DSFBQ.js";
|
|
36
36
|
import "./chunks/chunk-4YIDX44G.js";
|
|
37
37
|
|
|
38
38
|
// packages/safejs/src/cli.ts
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
runWithSpawnUsageAccumulator,
|
|
28
28
|
splitFrontmatter,
|
|
29
29
|
supportsSpawnMode
|
|
30
|
-
} from "./chunks/chunk-
|
|
30
|
+
} from "./chunks/chunk-K3DCXHEE.js";
|
|
31
31
|
import {
|
|
32
32
|
Budget,
|
|
33
33
|
FileSnapshotBackend,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
registerPendingHostCallPolicy,
|
|
50
50
|
restore,
|
|
51
51
|
run
|
|
52
|
-
} from "./chunks/chunk-
|
|
52
|
+
} from "./chunks/chunk-IB5DSFBQ.js";
|
|
53
53
|
import "./chunks/chunk-4YIDX44G.js";
|
|
54
54
|
|
|
55
55
|
// packages/safejs/src/runner/run-harness.ts
|
|
@@ -246,7 +246,8 @@ function callSplit(value, args, budget) {
|
|
|
246
246
|
let endedWithZeroWidthMatch = false;
|
|
247
247
|
for (const match of collectRegexMatches(splitter, value, true)) {
|
|
248
248
|
endedWithZeroWidthMatch = match.text.length === 0 && match.index === value.length;
|
|
249
|
-
if (match.text.length === 0 &&
|
|
249
|
+
if (match.text.length === 0 &&
|
|
250
|
+
(match.index === copiedThrough || match.index === value.length))
|
|
250
251
|
continue;
|
|
251
252
|
if (result.length >= limit)
|
|
252
253
|
break;
|
|
@@ -258,7 +259,7 @@ function callSplit(value, args, budget) {
|
|
|
258
259
|
}
|
|
259
260
|
copiedThrough = match.index + match.text.length;
|
|
260
261
|
}
|
|
261
|
-
if (result.length < limit && !endedWithZeroWidthMatch)
|
|
262
|
+
if (result.length < limit && (value.length > 0 || !endedWithZeroWidthMatch))
|
|
262
263
|
result.push(budget.allocateString(value.slice(copiedThrough)));
|
|
263
264
|
budget.allocateArrayLength(result.length);
|
|
264
265
|
return result;
|
|
File without changes
|