@poe-platform/safe-bash 0.1.827 → 0.1.828
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-MQCLG2CT.js → chunk-FMXBLKWO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-L54KVUSY.js → chunk-KSCVKF7I.js} +3 -3
- 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 +15 -12
- 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 +43 -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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Interpreter
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-YR2A2L4J.js";
|
|
4
4
|
import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-VJXPNNBD.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
11
|
-
import "../safe-bash/command-chunks/chunk-
|
|
12
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-UGDQSGUZ.js";
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-N63IGO5F.js";
|
|
11
|
+
import "../safe-bash/command-chunks/chunk-EOO3NLD5.js";
|
|
12
|
+
import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
|
|
13
13
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
14
|
-
import "../safe-bash/command-chunks/chunk-
|
|
14
|
+
import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
|
|
15
15
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
16
16
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
17
17
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
YqValueFailure,
|
|
3
3
|
createYqQuerySession
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-EF3RAQ7M.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-DZY7V74W.js";
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-YR2A2L4J.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-VJXPNNBD.js";
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
|
|
11
11
|
import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
|
|
12
|
-
import "../safe-bash/command-chunks/chunk-
|
|
13
|
-
import "../safe-bash/command-chunks/chunk-
|
|
14
|
-
import "../safe-bash/command-chunks/chunk-
|
|
15
|
-
import "../safe-bash/command-chunks/chunk-
|
|
12
|
+
import "../safe-bash/command-chunks/chunk-UGDQSGUZ.js";
|
|
13
|
+
import "../safe-bash/command-chunks/chunk-N63IGO5F.js";
|
|
14
|
+
import "../safe-bash/command-chunks/chunk-EOO3NLD5.js";
|
|
15
|
+
import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
|
|
16
16
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
17
|
-
import "../safe-bash/command-chunks/chunk-
|
|
17
|
+
import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
|
|
18
18
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
19
19
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
20
20
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
regexFlags,
|
|
5
5
|
scanRegex,
|
|
6
6
|
substituteRegex
|
|
7
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
+
} from "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
|
|
10
10
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
11
|
-
import "../safe-bash/command-chunks/chunk-
|
|
11
|
+
import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
|
|
12
12
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
13
13
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
14
14
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
splitRegex
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-VJXPNNBD.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
10
10
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
11
11
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
stringCompare,
|
|
15
15
|
stringCompareMaybeSync,
|
|
16
16
|
type
|
|
17
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
17
|
+
} from "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
|
|
18
18
|
import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
|
|
19
|
-
import "../safe-bash/command-chunks/chunk-
|
|
19
|
+
import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
|
|
20
20
|
import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
|
|
21
21
|
import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
|
|
22
22
|
import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createBrowserRunCode } from "./browser-run-code.js";
|
|
2
|
-
import {
|
|
2
|
+
import { loadBrowserRunCodeGuestSource } from "./browser-run-code-guest.generated.js";
|
|
3
3
|
export function createBrowserCodeExecutor(resource, runtime) {
|
|
4
4
|
const execute = runtime?.loader
|
|
5
5
|
? createBrowserRunCode({
|
|
6
6
|
ownerId: runtime.ownerId,
|
|
7
7
|
loader: runtime.loader,
|
|
8
|
-
guestSource:
|
|
8
|
+
guestSource: loadBrowserRunCodeGuestSource,
|
|
9
9
|
browser: resource.browser,
|
|
10
10
|
connectSocket: resource.connectSocket,
|
|
11
11
|
retire: resource.release,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Trusted build output, inflated only for run-code; cache no request-owned I/O. */
|
|
2
|
+
export function createCompressedGuestSource(base64, byteLength) {
|
|
3
|
+
let source;
|
|
4
|
+
return async (signal) => {
|
|
5
|
+
signal.throwIfAborted();
|
|
6
|
+
if (source !== undefined)
|
|
7
|
+
return source;
|
|
8
|
+
const encoded = atob(base64);
|
|
9
|
+
const compressed = new Uint8Array(encoded.length);
|
|
10
|
+
for (let index = 0; index < encoded.length; index++)
|
|
11
|
+
compressed[index] = encoded.charCodeAt(index);
|
|
12
|
+
const reader = new Blob([compressed]).stream().pipeThrough(new DecompressionStream("gzip"), { signal }).getReader();
|
|
13
|
+
const bytes = new Uint8Array(byteLength);
|
|
14
|
+
let offset = 0;
|
|
15
|
+
try {
|
|
16
|
+
while (true) {
|
|
17
|
+
const { done, value } = await reader.read();
|
|
18
|
+
if (done)
|
|
19
|
+
break;
|
|
20
|
+
if (value.byteLength > byteLength - offset)
|
|
21
|
+
throw new Error("Browser guest source exceeds its build size");
|
|
22
|
+
bytes.set(value, offset);
|
|
23
|
+
offset += value.byteLength;
|
|
24
|
+
}
|
|
25
|
+
signal.throwIfAborted();
|
|
26
|
+
if (offset !== byteLength)
|
|
27
|
+
throw new Error("Browser guest source size mismatch");
|
|
28
|
+
source = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
29
|
+
return source;
|
|
30
|
+
}
|
|
31
|
+
finally {
|
|
32
|
+
await reader.cancel().catch(() => { });
|
|
33
|
+
reader.releaseLock();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -18,7 +18,7 @@ export interface BrowserRunCodeOptions {
|
|
|
18
18
|
ownerId: string;
|
|
19
19
|
browser: Browser;
|
|
20
20
|
loader: WorkerLoader;
|
|
21
|
-
guestSource: string;
|
|
21
|
+
guestSource: string | ((signal: AbortSignal) => Promise<string>);
|
|
22
22
|
/** Opens only the browser acquired for this owner; never accepts a guest ID. */
|
|
23
23
|
connectSocket(signal: AbortSignal): Promise<WebSocket>;
|
|
24
24
|
/** Idempotently destroys the owned browser, including renderer-side work. */
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const browserRunCodeGuestSource: string;
|
|
1
|
+
export const loadBrowserRunCodeGuestSource: (signal: AbortSignal) => Promise<string>;
|