poe-code 10.0.2 → 10.0.3
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 +14 -2
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-RSK47E4C.js → chunk-A2XBEN3H.js} +14 -2
- package/packages/safejs/dist/chunks/{chunk-RSK47E4C.js.map → chunk-A2XBEN3H.js.map} +2 -2
- package/packages/safejs/dist/chunks/{chunk-EUCMIR4E.js → chunk-MRH5YDMR.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/run.js +14 -1
- /package/packages/safejs/dist/chunks/{chunk-EUCMIR4E.js.map → chunk-MRH5YDMR.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -147882,6 +147882,7 @@ function run(source, options = {}) {
|
|
|
147882
147882
|
const lifecycle = { hostCallbackDepth: 0 };
|
|
147883
147883
|
const dumpController = createDumpController(lifecycle);
|
|
147884
147884
|
const promiseTracker = createSandboxPromiseRejectionTracker();
|
|
147885
|
+
let completedSnapshot;
|
|
147885
147886
|
const execute2 = async () => {
|
|
147886
147887
|
const promiseReplay = new PromiseReplay(options.snapshot?.promiseReplay);
|
|
147887
147888
|
return promiseReplayContext.run(promiseReplay, async () => {
|
|
@@ -148144,6 +148145,7 @@ function run(source, options = {}) {
|
|
|
148144
148145
|
});
|
|
148145
148146
|
if (replayError !== void 0) snapshot2.replayError = replayError;
|
|
148146
148147
|
dumpController.finalize(snapshot2);
|
|
148148
|
+
completedSnapshot = snapshot2;
|
|
148147
148149
|
return {
|
|
148148
148150
|
...result2,
|
|
148149
148151
|
snapshot: snapshot2
|
|
@@ -148180,7 +148182,17 @@ function run(source, options = {}) {
|
|
|
148180
148182
|
const result = withRunResources(
|
|
148181
148183
|
options.signal,
|
|
148182
148184
|
() => withSandboxPromiseRejectionTracker(promiseTracker, execute2)
|
|
148183
|
-
)
|
|
148185
|
+
).catch(async (error3) => {
|
|
148186
|
+
if (completedSnapshot !== void 0) {
|
|
148187
|
+
try {
|
|
148188
|
+
await createSnapshotScheduler(options).write(completedSnapshot);
|
|
148189
|
+
} catch (snapshotError) {
|
|
148190
|
+
console.warn("Failed to write failure snapshot.", snapshotError);
|
|
148191
|
+
}
|
|
148192
|
+
}
|
|
148193
|
+
dumpController.fail(error3);
|
|
148194
|
+
throw error3;
|
|
148195
|
+
});
|
|
148184
148196
|
return attachDumpController(result, dumpController);
|
|
148185
148197
|
}
|
|
148186
148198
|
async function throwIfReturnedPromiseRejected(result) {
|
|
@@ -155205,7 +155217,7 @@ var init_package2 = __esm({
|
|
|
155205
155217
|
"package.json"() {
|
|
155206
155218
|
package_default2 = {
|
|
155207
155219
|
name: "poe-code",
|
|
155208
|
-
version: "10.0.
|
|
155220
|
+
version: "10.0.3",
|
|
155209
155221
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
155210
155222
|
license: "MIT",
|
|
155211
155223
|
type: "module",
|