poe-code 11.0.10 → 11.0.11
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 +12 -10
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-DF7PY5YX.js → chunk-2M5F6OIT.js} +2 -2
- package/packages/safejs/dist/chunks/{chunk-BESE73VB.js → chunk-QWNCR7EZ.js} +12 -10
- package/packages/safejs/dist/chunks/{chunk-BESE73VB.js.map → chunk-QWNCR7EZ.js.map} +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/modules/registry.js +3 -3
- /package/packages/safejs/dist/chunks/{chunk-DF7PY5YX.js.map → chunk-2M5F6OIT.js.map} +0 -0
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
parseMcpConfig,
|
|
21
21
|
splitFrontmatter,
|
|
22
22
|
withBrokenPipeGuard
|
|
23
|
-
} from "./chunks/chunk-
|
|
23
|
+
} from "./chunks/chunk-2M5F6OIT.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-QWNCR7EZ.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-2M5F6OIT.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-QWNCR7EZ.js";
|
|
53
53
|
import "./chunks/chunk-4YIDX44G.js";
|
|
54
54
|
|
|
55
55
|
// packages/safejs/src/runner/run-harness.ts
|
|
@@ -35,12 +35,12 @@ function bindImportDeclaration(declaration, registry, wrappedModules, bindings,
|
|
|
35
35
|
throw createModuleImportError(createUnknownModuleMessage(moduleName, [...registry.keys()]), declaration.source.span);
|
|
36
36
|
}
|
|
37
37
|
const wrappedExports = wrappedModules.get(moduleName) ??
|
|
38
|
-
wrapCancelableBindings(wrapCallerInjectedBindings(Object.fromEntries(moduleExports), {
|
|
38
|
+
createBindingRecord(wrapCancelableBindings(wrapCallerInjectedBindings(Object.fromEntries(moduleExports), {
|
|
39
39
|
budget: options.budget,
|
|
40
40
|
hostCalls: options.hostCalls,
|
|
41
41
|
moduleId: moduleName,
|
|
42
42
|
signal: options.signal
|
|
43
|
-
}), options.signal);
|
|
43
|
+
}), options.signal));
|
|
44
44
|
wrappedModules.set(moduleName, wrappedExports);
|
|
45
45
|
for (const specifier of declaration.specifiers) {
|
|
46
46
|
const localName = specifier.local.name;
|
|
@@ -57,7 +57,7 @@ function bindImportDeclaration(declaration, registry, wrappedModules, bindings,
|
|
|
57
57
|
}
|
|
58
58
|
function resolveImportSpecifier(moduleName, specifier, wrappedExports) {
|
|
59
59
|
if (specifier.type === "ImportNamespaceSpecifier") {
|
|
60
|
-
return
|
|
60
|
+
return wrappedExports;
|
|
61
61
|
}
|
|
62
62
|
const exportName = specifier.type === "ImportDefaultSpecifier" ? "default" : specifier.imported.name;
|
|
63
63
|
const exportedValue = wrappedExports[exportName];
|
|
File without changes
|