Skip to content

[CLI] Move Blueprints v2 to Playground CLI package #2364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/php-wasm/compile/php/php_wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ EM_JS(int, wasm_poll_socket, (php_socket_t socketd, int events, int timeout), {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/php-wasm/node/asyncify/php_7_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -31943,6 +31943,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/php-wasm/node/asyncify/php_7_3.js
Original file line number Diff line number Diff line change
Expand Up @@ -31943,6 +31943,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/php-wasm/node/asyncify/php_7_4.js
Original file line number Diff line number Diff line change
Expand Up @@ -31943,6 +31943,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
9 changes: 8 additions & 1 deletion packages/php-wasm/node/asyncify/php_8_0.js
Original file line number Diff line number Diff line change
Expand Up @@ -8078,6 +8078,9 @@ export function init(RuntimeName, PHPLoader) {
if ((stream.flags & 2097155) === 1) {
return 256 | 4;
}
if (!pipe.buckets) {
return 0;
}
for (var bucket of pipe.buckets) {
if (bucket.offset - bucket.roffset > 0) {
return 64 | 1;
Expand Down Expand Up @@ -31943,6 +31946,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand All @@ -31961,8 +31967,9 @@ export function init(RuntimeName, PHPLoader) {
if (
typeof FS == 'undefined' ||
!(e.name === 'ErrnoError')
)
) {
throw e;
}
return -e.errno;
}
}
Expand Down
3 changes: 3 additions & 0 deletions packages/php-wasm/node/asyncify/php_8_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -31943,6 +31943,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/php-wasm/node/asyncify/php_8_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -31943,6 +31943,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/php-wasm/node/asyncify/php_8_3.js
Original file line number Diff line number Diff line change
Expand Up @@ -31943,6 +31943,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/php-wasm/node/asyncify/php_8_4.js
Original file line number Diff line number Diff line change
Expand Up @@ -31943,6 +31943,9 @@ export function init(RuntimeName, PHPLoader) {
while (true) {
var mask = POLLNVAL;
mask = SYSCALLS.DEFAULT_POLLMASK;
if (FS.isClosed(stream)) {
return ERRNO_CODES.EBADF;
}
if (stream.stream_ops?.poll) {
mask = stream.stream_ops.poll(stream, -1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function sandboxedSpawnHandlerFactory(
processApi.exit(0);
} else if (binaryName === 'less') {
processApi.on('stdin', (data: Uint8Array) => {
processApi.stdout(data.buffer as ArrayBuffer);
processApi.stdout(data);
});
processApi.exit(0);
} else if (binaryName === 'php') {
Expand All @@ -70,14 +70,14 @@ export function sandboxedSpawnHandlerFactory(
result.stdout.pipeTo(
new WritableStream({
write(chunk) {
processApi.stdout(chunk.buffer as ArrayBuffer);
processApi.stdout(chunk);
},
})
);
result.stderr.pipeTo(
new WritableStream({
write(chunk) {
processApi.stderr(chunk.buffer as ArrayBuffer);
processApi.stderr(chunk);
},
})
);
Expand Down
Binary file not shown.
171 changes: 0 additions & 171 deletions packages/playground/blueprints/src/lib/v2.spec.ts

This file was deleted.

Loading
Loading