@poe-platform/safe-js 0.1.753 → 0.1.754
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/safe-js/chunks/{chunk-6UP3B5TB.js → chunk-3O7HA6WT.js} +3 -3
- package/dist/safe-js/chunks/{chunk-YYF5R6ML.js → chunk-5NPVS5EY.js} +2 -2
- package/dist/safe-js/chunks/{chunk-5WP5IRMP.js → chunk-A3LXCGMJ.js} +71 -27
- package/dist/safe-js/chunks/{chunk-MZZ4GGSY.js → chunk-KULEMOAE.js} +1 -1
- package/dist/safe-js/chunks/{chunk-MLJ4BKDX.js → chunk-M6S3F3WM.js} +5 -5
- package/dist/safe-js/chunks/{chunk-OQYVEDRN.js → chunk-MDJ7MJYI.js} +3 -3
- package/dist/safe-js/chunks/{chunk-POEMWNHD.js → chunk-OPYN6N5M.js} +1 -1
- package/dist/safe-js/chunks/{chunk-DIMBVKHT.js → chunk-OTVZWRYE.js} +1 -1
- package/dist/safe-js/chunks/{chunk-L265M6OS.js → chunk-QTCPJ7FN.js} +2 -2
- package/dist/safe-js/chunks/{chunk-O3S3JVWS.js → chunk-TBZILU4U.js} +1 -1
- package/dist/safe-js/chunks/{chunk-AB6ERQE5.js → chunk-ULPZIHB5.js} +25 -22
- package/dist/safe-js/chunks/{chunk-6ZVFR4HR.js → chunk-UU4T2KIT.js} +1 -1
- package/dist/safe-js/chunks/{chunk-LRINZRJA.js → chunk-ZKLJW27N.js} +2 -2
- package/dist/safe-js/chunks/{cli-runtime-5DZW4OP4.js → cli-runtime-477PXAC5.js} +10 -10
- package/dist/safe-js/chunks/{dump-M7CMVXW7.js → dump-XDJEF2LG.js} +3 -3
- package/dist/safe-js/chunks/{harness-4CPQ7WKS.js → harness-32OOFC5A.js} +3 -3
- package/dist/safe-js/chunks/{mcp-7SNWIP5H.js → mcp-D3XHUZV7.js} +3 -3
- package/dist/safe-js/chunks/{migration-file-CPBVNMLD.js → migration-file-EEGIOHQB.js} +4 -4
- package/dist/safe-js/chunks/{restore-FLH6OC5F.js → restore-U3CCH36B.js} +4 -4
- package/dist/safe-js/chunks/{run-KFAD7GTT.js → run-Q74MU3QQ.js} +6 -6
- package/dist/safe-js/chunks/{runtime-modules-D6NO4KJW.js → runtime-modules-SL5D6LAJ.js} +3 -3
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +7 -7
- package/dist/safe-js/index.js +13 -13
- package/dist/safe-js/modules/fs.js +3 -3
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
validateMigrationReconciliation,
|
|
11
11
|
validateMigrationSemantics,
|
|
12
12
|
validateSnapshotMigration
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZKLJW27N.js";
|
|
14
14
|
import {
|
|
15
15
|
DUMP_FORMAT_VERSION,
|
|
16
16
|
EXECUTION_SEMANTICS,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
serializeSafeJSSnapshot,
|
|
21
21
|
validateDumpEnvelope,
|
|
22
22
|
validateSnapshotData
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ULPZIHB5.js";
|
|
24
24
|
import {
|
|
25
25
|
parseModule
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
27
27
|
import {
|
|
28
28
|
paths_default
|
|
29
29
|
} from "./chunk-MMN3IESA.js";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
declareHostOperation,
|
|
8
8
|
runResources
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ULPZIHB5.js";
|
|
10
10
|
import {
|
|
11
11
|
hostErrorData
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
13
13
|
|
|
14
14
|
// packages/safe-js/src/modules/mcp.ts
|
|
15
15
|
var DEFAULT_TOOL_BATCH_CONCURRENCY = 4;
|
|
@@ -4671,7 +4671,7 @@ var Parser = class {
|
|
|
4671
4671
|
this.allowIn = previousAllowIn;
|
|
4672
4672
|
}
|
|
4673
4673
|
}
|
|
4674
|
-
|
|
4674
|
+
parseAssignmentPrefix() {
|
|
4675
4675
|
const token = this.currentToken();
|
|
4676
4676
|
if (token.type === "keyword" && token.value === "yield" && !this.isContextualIdentifier(token)) {
|
|
4677
4677
|
if (this.functionContext !== "generator" && this.functionContext !== "async-generator") {
|
|
@@ -4714,7 +4714,14 @@ var Parser = class {
|
|
|
4714
4714
|
parenthesized: false
|
|
4715
4715
|
};
|
|
4716
4716
|
}
|
|
4717
|
-
|
|
4717
|
+
return void 0;
|
|
4718
|
+
}
|
|
4719
|
+
parseAssignmentExpression(initial) {
|
|
4720
|
+
if (initial === void 0) {
|
|
4721
|
+
const prefix = this.parseAssignmentPrefix();
|
|
4722
|
+
if (prefix !== void 0) return prefix;
|
|
4723
|
+
}
|
|
4724
|
+
const left = this.parseConditionalExpression(initial);
|
|
4718
4725
|
const operator = this.consumeAssignmentOperator();
|
|
4719
4726
|
if (operator === void 0) {
|
|
4720
4727
|
return left;
|
|
@@ -4813,34 +4820,71 @@ var Parser = class {
|
|
|
4813
4820
|
return this.conditionalDepths.get(node);
|
|
4814
4821
|
}
|
|
4815
4822
|
parseConditionalExpression(initial) {
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
if (this.
|
|
4819
|
-
return test;
|
|
4820
|
-
}
|
|
4823
|
+
let token = this.currentToken();
|
|
4824
|
+
let expression = initial ?? this.parseCoalesceExpression();
|
|
4825
|
+
if (this.currentToken().type !== "punctuator" || this.currentToken().value !== "?") return expression;
|
|
4821
4826
|
const limit = this.compilation?.owner?.budget.limits.maxCallDepth ?? Infinity;
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
);
|
|
4826
|
-
}
|
|
4827
|
-
this.conditionalExpressionDepth += 1;
|
|
4827
|
+
const previousDepth = this.conditionalExpressionDepth;
|
|
4828
|
+
const previousAllowIn = this.allowIn;
|
|
4829
|
+
const pending = [];
|
|
4828
4830
|
try {
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4831
|
+
while (this.consumePunctuator("?") !== void 0) {
|
|
4832
|
+
if (limit !== Infinity && this.conditionalExpressionDepth + this.conditionalDepth(expression.node) >= limit) {
|
|
4833
|
+
throw new Error(
|
|
4834
|
+
`Conditional expression nesting limit exceeded at line ${token.start.line}, column ${token.start.column}.`
|
|
4835
|
+
);
|
|
4836
|
+
}
|
|
4837
|
+
this.conditionalExpressionDepth += 1;
|
|
4838
|
+
const consequent = this.parseExpression();
|
|
4839
|
+
this.expectPunctuator(":");
|
|
4840
|
+
const frame = { test: expression, consequent, groups: [] };
|
|
4841
|
+
pending.push(frame);
|
|
4842
|
+
while (this.currentToken().type === "punctuator" && this.currentToken().value === "(") {
|
|
4843
|
+
const close = this.closingParentheses.get(this.index);
|
|
4844
|
+
const suffix = close === void 0 ? void 0 : this.readToken(close + 1);
|
|
4845
|
+
if (suffix === void 0 || !(suffix.type === "eof" || suffix.type === "punctuator" && [")", "]", "}", ",", ";", ":"].includes(suffix.value))) break;
|
|
4846
|
+
frame.groups.push({ start: this.expectPunctuator("("), allowIn: this.allowIn });
|
|
4847
|
+
this.allowIn = true;
|
|
4848
|
+
}
|
|
4849
|
+
token = this.currentToken();
|
|
4850
|
+
const prefix = this.parseAssignmentPrefix();
|
|
4851
|
+
if (prefix !== void 0) {
|
|
4852
|
+
expression = prefix;
|
|
4853
|
+
break;
|
|
4854
|
+
}
|
|
4855
|
+
expression = this.parseCoalesceExpression();
|
|
4856
|
+
if (this.currentToken().type !== "punctuator" || this.currentToken().value !== "?") {
|
|
4857
|
+
expression = this.parseAssignmentExpression(expression);
|
|
4858
|
+
break;
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
while (pending.length > 0) {
|
|
4862
|
+
const frame = pending.pop();
|
|
4863
|
+
for (let i = frame.groups.length - 1; i >= 0; i--) {
|
|
4864
|
+
const group = frame.groups[i];
|
|
4865
|
+
expression = this.parseExpression({ allowSequence: true }, expression);
|
|
4866
|
+
const end = this.expectPunctuator(")");
|
|
4867
|
+
expression.node.span = createSpan2(group.start.start, end.end);
|
|
4868
|
+
this.parenthesizedNodes.add(expression.node);
|
|
4869
|
+
expression = { node: expression.node, parenthesized: true };
|
|
4870
|
+
this.allowIn = group.allowIn;
|
|
4871
|
+
}
|
|
4872
|
+
expression = {
|
|
4873
|
+
node: {
|
|
4874
|
+
type: "ConditionalExpression",
|
|
4875
|
+
test: frame.test.node,
|
|
4876
|
+
consequent: frame.consequent.node,
|
|
4877
|
+
alternate: expression.node,
|
|
4878
|
+
span: createSpan2(frame.test.node.span.start, expression.node.span.end)
|
|
4879
|
+
},
|
|
4880
|
+
parenthesized: false
|
|
4881
|
+
};
|
|
4882
|
+
this.conditionalExpressionDepth -= 1;
|
|
4883
|
+
}
|
|
4884
|
+
return expression;
|
|
4842
4885
|
} finally {
|
|
4843
|
-
this.conditionalExpressionDepth
|
|
4886
|
+
this.conditionalExpressionDepth = previousDepth;
|
|
4887
|
+
this.allowIn = previousAllowIn;
|
|
4844
4888
|
}
|
|
4845
4889
|
}
|
|
4846
4890
|
parseArrowFunctionBody(params, async) {
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
} from "./chunk-ONWFPHUI.js";
|
|
8
8
|
import {
|
|
9
9
|
restore
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MDJ7MJYI.js";
|
|
11
11
|
import {
|
|
12
12
|
hashParsedAst,
|
|
13
13
|
hashSource
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZKLJW27N.js";
|
|
15
15
|
import {
|
|
16
16
|
attachDumpController,
|
|
17
17
|
createDumpController
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QTCPJ7FN.js";
|
|
19
19
|
import {
|
|
20
20
|
DUMP_FORMAT_VERSION,
|
|
21
21
|
EXECUTION_SEMANTICS,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
wrapCallerInjectedBindings,
|
|
108
108
|
wrapCancelableBindings,
|
|
109
109
|
wrapHostConstructor
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-ULPZIHB5.js";
|
|
111
111
|
import {
|
|
112
112
|
Budget,
|
|
113
113
|
CompileScope,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
parseSourceModule,
|
|
123
123
|
replaceErrorStack,
|
|
124
124
|
safeAddEvent
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
126
126
|
import {
|
|
127
127
|
dirname
|
|
128
128
|
} from "./chunk-MMN3IESA.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
hashParsedAst,
|
|
3
3
|
hashSource,
|
|
4
4
|
validateSnapshotMigration
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZKLJW27N.js";
|
|
6
6
|
import {
|
|
7
7
|
SnapshotValidationError,
|
|
8
8
|
assertSnapshotInactive,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
validateDumpEnvelope,
|
|
12
12
|
validateGuestHeapSource,
|
|
13
13
|
validateRuntimeSnapshotDescriptors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ULPZIHB5.js";
|
|
15
15
|
import {
|
|
16
16
|
SandboxError,
|
|
17
17
|
parseExecutableModule,
|
|
18
18
|
parseModule,
|
|
19
19
|
replaceErrorStack
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
21
21
|
|
|
22
22
|
// packages/safe-js/src/restore.ts
|
|
23
23
|
var SnapshotMismatchError = class extends Error {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SnapshotNotReadyError,
|
|
3
3
|
serializeSafeJSSnapshot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ULPZIHB5.js";
|
|
5
5
|
import {
|
|
6
6
|
SandboxError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
8
8
|
|
|
9
9
|
// packages/safe-js/src/snapshot/dump.ts
|
|
10
10
|
var RUN_DUMP_CONTROLLER = /* @__PURE__ */ Symbol("SafeJS.run-dump-controller");
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
sandboxErrorTypes,
|
|
42
42
|
syntaxDiagnostics,
|
|
43
43
|
templateRealms
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
45
45
|
import {
|
|
46
46
|
AsyncLocalStorage,
|
|
47
47
|
cloneSharedBufferWrapper,
|
|
@@ -3600,34 +3600,37 @@ function* matchNode(node, state, context, sequenceIndex = 0) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
return;
|
|
3602
3602
|
case "quantifier":
|
|
3603
|
-
yield* matchQuantifier(node, state, context
|
|
3603
|
+
yield* matchQuantifier(node, state, context);
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
|
-
function* matchQuantifier(node, state, context
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
if (
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3606
|
+
function* matchQuantifier(node, state, context) {
|
|
3607
|
+
const pending = [{ state, count: 0, entered: false }];
|
|
3608
|
+
while (pending.length) {
|
|
3609
|
+
const frame = pending[pending.length - 1];
|
|
3610
|
+
if (!frame.entered) {
|
|
3611
|
+
charge(context);
|
|
3612
|
+
frame.entered = true;
|
|
3613
|
+
if (!node.greedy && frame.count >= node.min) yield frame.state;
|
|
3614
|
+
if (node.max === void 0 || frame.count < node.max) {
|
|
3615
|
+
frame.iterator = matchNode(node.body, clearCaptures(node.body, frame.state), context);
|
|
3616
|
+
}
|
|
3617
|
+
}
|
|
3618
|
+
const next2 = frame.iterator?.next();
|
|
3619
|
+
if (next2 && !next2.done) {
|
|
3620
|
+
const result = next2.value;
|
|
3621
|
+
if (result.position === frame.state.position) {
|
|
3622
|
+
if (frame.count >= node.min) continue;
|
|
3623
|
+
if (frame.count + 1 >= node.min) {
|
|
3619
3624
|
yield result;
|
|
3620
|
-
|
|
3621
|
-
yield* matchQuantifier(node, result, context, count + 1);
|
|
3625
|
+
continue;
|
|
3622
3626
|
}
|
|
3623
|
-
continue;
|
|
3624
3627
|
}
|
|
3625
|
-
|
|
3628
|
+
pending.push({ state: result, count: frame.count + 1, entered: false });
|
|
3629
|
+
} else {
|
|
3630
|
+
pending.pop();
|
|
3631
|
+
if (node.greedy && frame.count >= node.min) yield frame.state;
|
|
3626
3632
|
}
|
|
3627
3633
|
}
|
|
3628
|
-
if (node.greedy && count >= node.min) {
|
|
3629
|
-
yield state;
|
|
3630
|
-
}
|
|
3631
3634
|
}
|
|
3632
3635
|
function matchesAnchor(kind, position, context) {
|
|
3633
3636
|
if (kind === "start") {
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
HostCallJournal,
|
|
3
3
|
decodeReplayData,
|
|
4
4
|
validateSnapshotData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ULPZIHB5.js";
|
|
6
6
|
import {
|
|
7
7
|
CompileScope,
|
|
8
8
|
SandboxError,
|
|
9
9
|
functionSources,
|
|
10
10
|
parse,
|
|
11
11
|
parseModule
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
13
13
|
|
|
14
14
|
// packages/safe-js/src/parse/hash.ts
|
|
15
15
|
var FNV_OFFSET_BASIS = 2166136261;
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
parseFsConfig,
|
|
13
13
|
resolveFsConfig,
|
|
14
14
|
splitFrontmatter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KULEMOAE.js";
|
|
16
16
|
import {
|
|
17
17
|
parseMcpConfig
|
|
18
18
|
} from "./chunk-L3MIVH3T.js";
|
|
19
19
|
import {
|
|
20
20
|
lint
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OPYN6N5M.js";
|
|
22
22
|
import {
|
|
23
23
|
createBrokenPipeState,
|
|
24
24
|
createSafeOutputStream,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
parseModule,
|
|
41
41
|
parseSourceModule,
|
|
42
42
|
replaceErrorStack
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-A3LXCGMJ.js";
|
|
44
44
|
import {
|
|
45
45
|
dirname,
|
|
46
46
|
extname,
|
|
@@ -72,7 +72,7 @@ async function runCli(argv, options, usage) {
|
|
|
72
72
|
async () => {
|
|
73
73
|
try {
|
|
74
74
|
if (argv[0] === "migrate") {
|
|
75
|
-
const { migrateSnapshotFile } = await import("./migration-file-
|
|
75
|
+
const { migrateSnapshotFile } = await import("./migration-file-EEGIOHQB.js");
|
|
76
76
|
const result = await migrateSnapshotFile({
|
|
77
77
|
...parseMigrationArgs(argv.slice(1)),
|
|
78
78
|
cwd: options.cwd ?? readCurrentWorkingDirectory(),
|
|
@@ -291,12 +291,12 @@ async function assertHarnessFile(input) {
|
|
|
291
291
|
}
|
|
292
292
|
async function runScriptFile(filepath, parsed, options) {
|
|
293
293
|
const [{ run }, { restore }, { dump, dumpCurrent }, { createLintModulesFromRuntimeRegistry }, { makeFsModule }, { makeMcpModule }] = await Promise.all([
|
|
294
|
-
import("./run-
|
|
295
|
-
import("./restore-
|
|
296
|
-
import("./dump-
|
|
297
|
-
import("./runtime-modules-
|
|
294
|
+
import("./run-Q74MU3QQ.js"),
|
|
295
|
+
import("./restore-U3CCH36B.js"),
|
|
296
|
+
import("./dump-XDJEF2LG.js"),
|
|
297
|
+
import("./runtime-modules-SL5D6LAJ.js"),
|
|
298
298
|
import("../modules/fs.js"),
|
|
299
|
-
import("./mcp-
|
|
299
|
+
import("./mcp-D3XHUZV7.js")
|
|
300
300
|
]);
|
|
301
301
|
const loaded = loadExecutableSource(filepath, await options.readFile(filepath, "utf8"));
|
|
302
302
|
const meta = {
|
|
@@ -534,7 +534,7 @@ async function createRuntime(frontmatter, meta, options) {
|
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
536
|
const [{ makeHarnessModule }, { makeFsModule }] = await Promise.all([
|
|
537
|
-
import("./harness-
|
|
537
|
+
import("./harness-32OOFC5A.js"),
|
|
538
538
|
import("../modules/fs.js")
|
|
539
539
|
]);
|
|
540
540
|
const state = {
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
dump,
|
|
5
5
|
dumpCurrent,
|
|
6
6
|
serializeRunSnapshot
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-QTCPJ7FN.js";
|
|
8
|
+
import "./chunk-ULPZIHB5.js";
|
|
9
|
+
import "./chunk-A3LXCGMJ.js";
|
|
10
10
|
import "./chunk-JCHJGIQA.js";
|
|
11
11
|
import "./chunk-CQ52GEHY.js";
|
|
12
12
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeHarnessModule
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UU4T2KIT.js";
|
|
4
|
+
import "./chunk-ULPZIHB5.js";
|
|
5
|
+
import "./chunk-A3LXCGMJ.js";
|
|
6
6
|
import "./chunk-JCHJGIQA.js";
|
|
7
7
|
import "./chunk-CQ52GEHY.js";
|
|
8
8
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeMcpModule
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5NPVS5EY.js";
|
|
4
4
|
import "./chunk-L3MIVH3T.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-ULPZIHB5.js";
|
|
6
|
+
import "./chunk-A3LXCGMJ.js";
|
|
7
7
|
import "./chunk-JCHJGIQA.js";
|
|
8
8
|
import "./chunk-CQ52GEHY.js";
|
|
9
9
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrateSnapshotFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3O7HA6WT.js";
|
|
4
4
|
import "./chunk-DIG26TEI.js";
|
|
5
5
|
import "./chunk-ONWFPHUI.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-ZKLJW27N.js";
|
|
7
|
+
import "./chunk-ULPZIHB5.js";
|
|
8
|
+
import "./chunk-A3LXCGMJ.js";
|
|
9
9
|
import "./chunk-MMN3IESA.js";
|
|
10
10
|
import "./chunk-JCHJGIQA.js";
|
|
11
11
|
import "./chunk-CQ52GEHY.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SnapshotMismatchError,
|
|
3
3
|
restore
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-MDJ7MJYI.js";
|
|
5
|
+
import "./chunk-ZKLJW27N.js";
|
|
6
|
+
import "./chunk-ULPZIHB5.js";
|
|
7
|
+
import "./chunk-A3LXCGMJ.js";
|
|
8
8
|
import "./chunk-JCHJGIQA.js";
|
|
9
9
|
import "./chunk-CQ52GEHY.js";
|
|
10
10
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnhandledRejectionError,
|
|
3
3
|
run
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M6S3F3WM.js";
|
|
5
5
|
import "./chunk-DHGJSEFX.js";
|
|
6
6
|
import "./chunk-DIG26TEI.js";
|
|
7
7
|
import "./chunk-ONWFPHUI.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MDJ7MJYI.js";
|
|
9
|
+
import "./chunk-ZKLJW27N.js";
|
|
10
|
+
import "./chunk-QTCPJ7FN.js";
|
|
11
|
+
import "./chunk-ULPZIHB5.js";
|
|
12
|
+
import "./chunk-A3LXCGMJ.js";
|
|
13
13
|
import "./chunk-MMN3IESA.js";
|
|
14
14
|
import "./chunk-JCHJGIQA.js";
|
|
15
15
|
import "./chunk-CQ52GEHY.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLintModulesFromRuntimeRegistry
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TBZILU4U.js";
|
|
4
|
+
import "./chunk-ULPZIHB5.js";
|
|
5
|
+
import "./chunk-A3LXCGMJ.js";
|
|
6
6
|
import "./chunk-JCHJGIQA.js";
|
|
7
7
|
import "./chunk-CQ52GEHY.js";
|
|
8
8
|
export {
|
package/dist/safe-js/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import path from "node:path";
|
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
14
|
async function runCli(argv, options = {}) {
|
|
15
15
|
if (!argv.includes("--help") && !argv.includes("-h")) {
|
|
16
|
-
const runtime = await import("./chunks/cli-runtime-
|
|
16
|
+
const runtime = await import("./chunks/cli-runtime-477PXAC5.js");
|
|
17
17
|
return runtime.runCli(argv, options, createUsage());
|
|
18
18
|
}
|
|
19
19
|
const brokenPipe = createBrokenPipeState();
|
|
@@ -32,7 +32,7 @@ async function runCli(argv, options = {}) {
|
|
|
32
32
|
stderr.write(`${error instanceof Error ? error.message : String(error)}
|
|
33
33
|
`);
|
|
34
34
|
if (brokenPipe.closed) return 0;
|
|
35
|
-
const { exitCodeForError } = await import("./chunks/cli-runtime-
|
|
35
|
+
const { exitCodeForError } = await import("./chunks/cli-runtime-477PXAC5.js");
|
|
36
36
|
return exitCodeForError(error);
|
|
37
37
|
}
|
|
38
38
|
}
|
package/dist/safe-js/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lint
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-OPYN6N5M.js";
|
|
4
4
|
import {
|
|
5
5
|
createRootedSourceResolver
|
|
6
6
|
} from "./chunks/chunk-3NFTBEZR.js";
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
createRealm,
|
|
9
9
|
createReplayableRandom,
|
|
10
10
|
run
|
|
11
|
-
} from "./chunks/chunk-
|
|
11
|
+
} from "./chunks/chunk-M6S3F3WM.js";
|
|
12
12
|
import "./chunks/chunk-DHGJSEFX.js";
|
|
13
13
|
import "./chunks/chunk-DIG26TEI.js";
|
|
14
14
|
import "./chunks/chunk-ONWFPHUI.js";
|
|
15
|
-
import "./chunks/chunk-
|
|
16
|
-
import "./chunks/chunk-
|
|
17
|
-
import "./chunks/chunk-
|
|
15
|
+
import "./chunks/chunk-MDJ7MJYI.js";
|
|
16
|
+
import "./chunks/chunk-ZKLJW27N.js";
|
|
17
|
+
import "./chunks/chunk-QTCPJ7FN.js";
|
|
18
18
|
import {
|
|
19
19
|
admitNativePromiseProperties,
|
|
20
20
|
defineExtension
|
|
21
|
-
} from "./chunks/chunk-
|
|
21
|
+
} from "./chunks/chunk-ULPZIHB5.js";
|
|
22
22
|
import {
|
|
23
23
|
Budget
|
|
24
|
-
} from "./chunks/chunk-
|
|
24
|
+
} from "./chunks/chunk-A3LXCGMJ.js";
|
|
25
25
|
import "./chunks/chunk-MMN3IESA.js";
|
|
26
26
|
import "./chunks/chunk-JCHJGIQA.js";
|
|
27
27
|
import "./chunks/chunk-CQ52GEHY.js";
|
package/dist/safe-js/index.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
inspectSnapshotMigration,
|
|
3
3
|
migrateSnapshot,
|
|
4
4
|
migrateSnapshotFile
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-3O7HA6WT.js";
|
|
6
6
|
import {
|
|
7
7
|
createLintModulesFromRuntimeRegistry
|
|
8
|
-
} from "./chunks/chunk-
|
|
8
|
+
} from "./chunks/chunk-TBZILU4U.js";
|
|
9
9
|
import {
|
|
10
10
|
makeHarnessModule
|
|
11
|
-
} from "./chunks/chunk-
|
|
11
|
+
} from "./chunks/chunk-UU4T2KIT.js";
|
|
12
12
|
import {
|
|
13
13
|
makeMcpModule
|
|
14
|
-
} from "./chunks/chunk-
|
|
14
|
+
} from "./chunks/chunk-5NPVS5EY.js";
|
|
15
15
|
import {
|
|
16
16
|
AgentSpawnError,
|
|
17
17
|
EnvAccessError,
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
runWithSpawnUsageAccumulator,
|
|
33
33
|
splitFrontmatter,
|
|
34
34
|
supportsSpawnMode
|
|
35
|
-
} from "./chunks/chunk-
|
|
35
|
+
} from "./chunks/chunk-KULEMOAE.js";
|
|
36
36
|
import {
|
|
37
37
|
parseMcpConfig
|
|
38
38
|
} from "./chunks/chunk-L3MIVH3T.js";
|
|
39
39
|
import {
|
|
40
40
|
lint
|
|
41
|
-
} from "./chunks/chunk-
|
|
41
|
+
} from "./chunks/chunk-OPYN6N5M.js";
|
|
42
42
|
import "./chunks/chunk-X3YCE3ZH.js";
|
|
43
43
|
import {
|
|
44
44
|
makeFsModule
|
|
45
|
-
} from "./chunks/chunk-
|
|
45
|
+
} from "./chunks/chunk-OTVZWRYE.js";
|
|
46
46
|
import {
|
|
47
47
|
createRootedSourceResolver
|
|
48
48
|
} from "./chunks/chunk-3NFTBEZR.js";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
createRealm,
|
|
52
52
|
createReplayableRandom,
|
|
53
53
|
run
|
|
54
|
-
} from "./chunks/chunk-
|
|
54
|
+
} from "./chunks/chunk-M6S3F3WM.js";
|
|
55
55
|
import "./chunks/chunk-DHGJSEFX.js";
|
|
56
56
|
import {
|
|
57
57
|
fsCodec
|
|
@@ -61,11 +61,11 @@ import {
|
|
|
61
61
|
} from "./chunks/chunk-ONWFPHUI.js";
|
|
62
62
|
import {
|
|
63
63
|
restore
|
|
64
|
-
} from "./chunks/chunk-
|
|
65
|
-
import "./chunks/chunk-
|
|
64
|
+
} from "./chunks/chunk-MDJ7MJYI.js";
|
|
65
|
+
import "./chunks/chunk-ZKLJW27N.js";
|
|
66
66
|
import {
|
|
67
67
|
dump
|
|
68
|
-
} from "./chunks/chunk-
|
|
68
|
+
} from "./chunks/chunk-QTCPJ7FN.js";
|
|
69
69
|
import {
|
|
70
70
|
HostCallResumabilityError,
|
|
71
71
|
HostOperationResumePolicyError,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
deepCopyToSandbox,
|
|
78
78
|
defineExtension,
|
|
79
79
|
registerPendingHostCallPolicy
|
|
80
|
-
} from "./chunks/chunk-
|
|
80
|
+
} from "./chunks/chunk-ULPZIHB5.js";
|
|
81
81
|
import {
|
|
82
82
|
Budget,
|
|
83
83
|
SandboxError,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
parse,
|
|
86
86
|
parseModule,
|
|
87
87
|
parseSourceModule
|
|
88
|
-
} from "./chunks/chunk-
|
|
88
|
+
} from "./chunks/chunk-A3LXCGMJ.js";
|
|
89
89
|
import {
|
|
90
90
|
extname
|
|
91
91
|
} from "./chunks/chunk-MMN3IESA.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FS_OPTION_SURFACE,
|
|
3
3
|
makeFsModule
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-OTVZWRYE.js";
|
|
5
5
|
import "../chunks/chunk-DIG26TEI.js";
|
|
6
6
|
import "../chunks/chunk-ONWFPHUI.js";
|
|
7
|
-
import "../chunks/chunk-
|
|
8
|
-
import "../chunks/chunk-
|
|
7
|
+
import "../chunks/chunk-ULPZIHB5.js";
|
|
8
|
+
import "../chunks/chunk-A3LXCGMJ.js";
|
|
9
9
|
import "../chunks/chunk-MMN3IESA.js";
|
|
10
10
|
import "../chunks/chunk-JCHJGIQA.js";
|
|
11
11
|
import "../chunks/chunk-CQ52GEHY.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.754",
|
|
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.
|
|
61
|
+
"@poe-platform/safe-fs": "0.1.754",
|
|
62
62
|
"@petamoriken/float16": "^3.9.3",
|
|
63
63
|
"@noble/hashes": "2.4.0",
|
|
64
64
|
"@formatjs/intl-localematcher": "0.8.13",
|