@poe-platform/safe-js 0.1.119 → 0.1.121

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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-6LFWVA64.js";
30
+ } from "./chunk-7HK37H74.js";
31
31
 
32
32
  // packages/safe-js/src/migrate.ts
33
33
  import { createHash } from "node:crypto";
@@ -8245,4 +8245,4 @@ export {
8245
8245
  parseMcpConfig,
8246
8246
  makeMcpModule
8247
8247
  };
8248
- //# sourceMappingURL=chunk-IXR26PKW.js.map
8248
+ //# sourceMappingURL=chunk-NU2O5IK6.js.map
@@ -22,7 +22,7 @@ import {
22
22
  resolveFsConfig,
23
23
  splitFrontmatter,
24
24
  withBrokenPipeGuard
25
- } from "./chunks/chunk-IXR26PKW.js";
25
+ } from "./chunks/chunk-NU2O5IK6.js";
26
26
  import {
27
27
  Budget,
28
28
  SandboxError,
@@ -34,7 +34,7 @@ import {
34
34
  replaceErrorStack,
35
35
  restore,
36
36
  run
37
- } from "./chunks/chunk-6LFWVA64.js";
37
+ } from "./chunks/chunk-7HK37H74.js";
38
38
  import "./chunks/chunk-4YIDX44G.js";
39
39
 
40
40
  // packages/safe-js/src/cli.ts
@@ -5,7 +5,7 @@ import {
5
5
  defineExtension,
6
6
  lint,
7
7
  run
8
- } from "./chunks/chunk-6LFWVA64.js";
8
+ } from "./chunks/chunk-7HK37H74.js";
9
9
  import "./chunks/chunk-4YIDX44G.js";
10
10
  export {
11
11
  Budget,
@@ -26,7 +26,7 @@ import {
26
26
  runWithSpawnUsageAccumulator,
27
27
  splitFrontmatter,
28
28
  supportsSpawnMode
29
- } from "./chunks/chunk-IXR26PKW.js";
29
+ } from "./chunks/chunk-NU2O5IK6.js";
30
30
  import {
31
31
  Budget,
32
32
  FileSnapshotBackend,
@@ -50,7 +50,7 @@ import {
50
50
  registerPendingHostCallPolicy,
51
51
  restore,
52
52
  run
53
- } from "./chunks/chunk-6LFWVA64.js";
53
+ } from "./chunks/chunk-7HK37H74.js";
54
54
  import "./chunks/chunk-4YIDX44G.js";
55
55
 
56
56
  // packages/safe-js/src/parse.ts
@@ -32,7 +32,7 @@ export type SandboxRegex = {
32
32
  readonly kind: "regex";
33
33
  readonly source: string;
34
34
  readonly flags: string;
35
- lastIndex: number;
35
+ lastIndex: SandboxValue;
36
36
  readonly [sandboxRegexBrand]: true;
37
37
  readonly [sandboxRegexPattern]: RegexPattern;
38
38
  };
@@ -121,14 +121,17 @@ export declare function createSandboxGenerator(channel: GeneratorChannel, metada
121
121
  } | undefined): SandboxGenerator;
122
122
  export declare function createSandboxMap(entries?: Iterable<readonly [SandboxValue, SandboxValue]>): SandboxMap;
123
123
  export declare function createSandboxSet(values?: Iterable<SandboxValue>): SandboxSet;
124
- export declare function createSandboxRegex(source: string, flags?: string, lastIndex?: number, compilation?: CompileScope): SandboxRegex;
124
+ export declare function createSandboxRegex(source: string, flags?: string, lastIndex?: SandboxValue, compilation?: CompileScope): SandboxRegex;
125
125
  export declare function getSandboxRegexPattern(regex: SandboxRegex): RegexPattern;
126
126
  export declare function isSandboxClosure(value: unknown): value is SandboxClosure;
127
127
  export declare function isSandboxPromise(value: unknown): value is SandboxPromise;
128
128
  export declare function isSandboxGenerator(value: unknown): value is SandboxGenerator;
129
129
  export declare function isSandboxRegex(value: unknown): value is SandboxRegex;
130
130
  export declare function deepCopyToSandbox(value: unknown): SandboxValue;
131
- export declare function cloneSandboxValue(value: SandboxValue): SandboxValue;
131
+ export declare function cloneSandboxValue(value: SandboxValue, options?: {
132
+ compilation?: CompileScope;
133
+ resetRegexLastIndex?: boolean;
134
+ }): SandboxValue;
132
135
  export declare function allocateProducedSandboxValue(value: SandboxValue, budget: Budget): SandboxValue;
133
136
  export declare function measureSandboxData(values: Iterable<unknown>, options?: {
134
137
  ignoreClosures?: boolean;
@@ -63,7 +63,7 @@ type DataNode = {
63
63
  kind: "regex";
64
64
  source: string;
65
65
  flags: string;
66
- lastIndex: number;
66
+ lastIndex: Atom;
67
67
  };
68
68
  export type ReplayData = {
69
69
  root: Atom;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-js",
3
- "version": "0.1.119",
3
+ "version": "0.1.121",
4
4
  "description": "Budgeted JavaScript interpreter with explicit host capabilities and resumable execution",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -58,7 +58,7 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@poe-platform/safe-fs": "0.1.119",
61
+ "@poe-platform/safe-fs": "0.1.121",
62
62
  "yaml": "^2.8.2",
63
63
  "jose": "^6.1.3",
64
64
  "@types/node": "^25.2.2"