@poe-platform/safe-bash 0.1.827 → 0.1.829
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-bash/chunks/{chunk-VWLQDZFF.js → chunk-C7RBTLYX.js} +12 -5
- package/dist/safe-bash/chunks/{chunk-TZRVK3NU.js → chunk-HWYINF6Y.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-ZJAXMB5M.js → chunk-SGHFQIZB.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-RAFD5ZAH.js → chunk-Y67A2DE4.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-HQIZR6EU.js → chunk-2EEIB5O3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-YSCKOUQP.js → chunk-3ZCABR5P.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-O3FTKLWR.js → chunk-BXOBM4HJ.js} +26 -17
- package/dist/safe-bash/command-chunks/{chunk-2JRHCVMQ.js → chunk-EF3RAQ7M.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QZYEI4N6.js → chunk-EOO3NLD5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-L54KVUSY.js → chunk-KSCVKF7I.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MQCLG2CT.js → chunk-MWPL7AFP.js} +5 -1
- package/dist/safe-bash/command-chunks/{chunk-HUGKO4ZE.js → chunk-N63IGO5F.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-N4SH6QY5.js → chunk-SIAN5LI3.js} +1 -5
- package/dist/safe-bash/command-chunks/{chunk-UJPWPRVB.js → chunk-U5TQVW64.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZYXKW2K7.js → chunk-UGDQSGUZ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-VTH4AORO.js → chunk-VJXPNNBD.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-7M3M6FKC.js → chunk-VQINIBCZ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XTHKXCF2.js → chunk-YK6ZVCA2.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-WKKJJBJQ.js → chunk-YR2A2L4J.js} +8 -8
- package/dist/safe-bash/commands/bc/index.browser.js +1 -1
- package/dist/safe-bash/full-core.browser.js +4 -4
- package/dist/safe-bash/plugins/index.browser.js +3 -3
- package/dist/safe-bash/registry-entry.browser.js +2 -2
- package/dist/safe-bash/search.browser.js +1 -1
- package/dist/safe-bash/shell/runtime.js +18 -7
- package/dist/safe-bash/shell/sync-extra-evaluators.js +2 -0
- package/dist/safe-bash/shell-entry.browser.js +2 -2
- package/dist/safe-bash-command-ffmpeg/index.js +19 -14
- package/dist/safe-bash-command-ffprobe/index.js +2 -2
- package/dist/safe-bash-command-ffprobe/media.js +2 -2
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-imagemagick/index.js +53 -10
- package/dist/safe-bash-command-python/executor.js +3 -3
- package/dist/safe-bash-command-python/index.js +3 -3
- package/dist/safe-bash-command-python/jspi.js +2 -2
- package/dist/safe-bash-command-python/worker.js +1 -1
- package/dist/safe-bash-query-engine/capture.js +3 -3
- package/dist/safe-bash-query-engine/delpaths.js +3 -3
- package/dist/safe-bash-query-engine/formats.js +2 -2
- package/dist/safe-bash-query-engine/index.js +10 -10
- package/dist/safe-bash-query-engine/indices.js +3 -3
- package/dist/safe-bash-query-engine/input.js +1 -1
- package/dist/safe-bash-query-engine/interpreter.js +9 -9
- package/dist/safe-bash-query-engine/query-core.js +10 -10
- package/dist/safe-bash-query-engine/regex.js +4 -4
- package/dist/safe-bash-query-engine/splits.js +5 -5
- package/dist/safe-bash-query-engine/values.js +2 -2
- package/dist/safe-playwright-cloudflare/browser-code-executor.js +2 -2
- package/dist/safe-playwright-cloudflare/browser-guest-source.d.ts +2 -0
- package/dist/safe-playwright-cloudflare/browser-guest-source.js +36 -0
- package/dist/safe-playwright-cloudflare/browser-run-code-contract.d.ts +1 -1
- package/dist/safe-playwright-cloudflare/browser-run-code-guest.generated.d.ts +1 -2
- package/dist/safe-playwright-cloudflare/browser-run-code-guest.generated.js +2 -2
- package/dist/safe-playwright-cloudflare/browser-run-code.js +4 -1
- package/package.json +4 -3
|
@@ -253,12 +253,15 @@ async function runGuest(options, input, metadata, relay, signal, retainGuest, st
|
|
|
253
253
|
const source = statements
|
|
254
254
|
? `export default async (page) => {\n${input.source}\n};`
|
|
255
255
|
: `export default async (page) => {\nconst result = (${input.source}\n);\nreturn typeof result === "function" ? await result(page) : result;\n};`;
|
|
256
|
+
const guestSource = typeof options.guestSource === "string"
|
|
257
|
+
? options.guestSource : await options.guestSource(signal);
|
|
258
|
+
signal.throwIfAborted();
|
|
256
259
|
const worker = options.loader.load({
|
|
257
260
|
compatibilityDate: "2026-07-08",
|
|
258
261
|
compatibilityFlags: [],
|
|
259
262
|
mainModule: "guest.js",
|
|
260
263
|
modules: {
|
|
261
|
-
"guest.js":
|
|
264
|
+
"guest.js": guestSource,
|
|
262
265
|
"browser-user-code.js": source,
|
|
263
266
|
},
|
|
264
267
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-bash",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.829",
|
|
4
4
|
"description": "Extensible virtual shell with pluggable filesystems and streaming commands",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
"access": "public"
|
|
1416
1416
|
},
|
|
1417
1417
|
"dependencies": {
|
|
1418
|
-
"@poe-platform/safe-fs": "0.1.
|
|
1418
|
+
"@poe-platform/safe-fs": "0.1.829",
|
|
1419
1419
|
"pdf-lib": "1.17.1",
|
|
1420
1420
|
"@types/node": "^25.2.2",
|
|
1421
1421
|
"@formatjs/intl-numberformat": "9.4.0",
|
|
@@ -2478,6 +2478,7 @@
|
|
|
2478
2478
|
"./dist/safe-bash/chunks/chunk-5QZXYRUF.js",
|
|
2479
2479
|
"./dist/safe-bash/chunks/chunk-5ZS237LB.js",
|
|
2480
2480
|
"./dist/safe-bash/chunks/chunk-A64DHHCT.js",
|
|
2481
|
+
"./dist/safe-bash/chunks/chunk-C7RBTLYX.js",
|
|
2481
2482
|
"./dist/safe-bash/chunks/chunk-F76MF5GT.js",
|
|
2482
2483
|
"./dist/safe-bash/chunks/chunk-IDPDAAE2.js",
|
|
2483
2484
|
"./dist/safe-bash/chunks/chunk-JQILKYVZ.js",
|
|
@@ -2489,7 +2490,6 @@
|
|
|
2489
2490
|
"./dist/safe-bash/chunks/chunk-Q3BXARJD.js",
|
|
2490
2491
|
"./dist/safe-bash/chunks/chunk-R6ASA7FI.js",
|
|
2491
2492
|
"./dist/safe-bash/chunks/chunk-RJ7D3WML.js",
|
|
2492
|
-
"./dist/safe-bash/chunks/chunk-VWLQDZFF.js",
|
|
2493
2493
|
"./dist/safe-bash/chunks/chunk-ZMTSEPTF.js",
|
|
2494
2494
|
"./dist/safe-bash/commands/apply-patch/index.js",
|
|
2495
2495
|
"./dist/safe-bash/commands/archive/index.js",
|
|
@@ -2524,6 +2524,7 @@
|
|
|
2524
2524
|
"./dist/safe-playwright-cloudflare/browser-code-executor.js",
|
|
2525
2525
|
"./dist/safe-playwright-cloudflare/browser-codegen.generated.js",
|
|
2526
2526
|
"./dist/safe-playwright-cloudflare/browser-codegen.js",
|
|
2527
|
+
"./dist/safe-playwright-cloudflare/browser-guest-source.js",
|
|
2527
2528
|
"./dist/safe-playwright-cloudflare/browser-page-cdp.js",
|
|
2528
2529
|
"./dist/safe-playwright-cloudflare/browser-private-transport.js",
|
|
2529
2530
|
"./dist/safe-playwright-cloudflare/browser-profile-runtime.js",
|