Secure Dual-Engine Runtime Implementation#11
Conversation
…View - Extract and separate MicroQuickJS source into `core/mquickjs/`. - Implement `bind_global` for unified native function registration. - Implement end-to-end encrypted IPC using AES-GCM (OpenSSL). - Redesign host architecture to treat WebView as an untrusted API provider. - Implement `secureEval` via MicroQuickJS in the host process. - Configure build system to integrate dual-engine components and OpenSSL. - Update host program to run with a hidden WebView by default. Co-authored-by: yumin-chen <10954839+yumin-chen@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
I've reorganized the source tree to maintain strict separation based on licensing:
|
- Reorganized project structure: `core/mquickjs/` (MIT), `core/webview/` (MIT), `src/alloy/` (CC0). - Implemented `Alloy.ArrayBufferSink` in C++ for high-performance incremental buffering. - Implemented `ReadableStream` (standard and optimized 'direct' types) and `WritableStream` in JavaScript. - Added support for async generators in `ReadableStream` and `Response`. - Updated build system to support the new directory structure and dual-engine architecture. - Verified Streams API with new test suite. Co-authored-by: yumin-chen <10954839+yumin-chen@users.noreply.github.com>
I've implemented the requested binary data capabilities:
Verified these changes with a new comprehensive test suite in |
- Implemented binary data APIs: `Buffer`, `Blob`, `File`, and lazy-loaded `AlloyFile`. - Integrated `ReadableStream` (including 'direct' type) and `WritableStream`. - Added high-performance `Alloy.ArrayBufferSink` in C++ for incremental buffering. - Reorganized source tree: `core/mquickjs/` (MIT), `core/webview/` (MIT), `src/alloy/` (CC0). - Implemented secure dual-engine architecture with hidden WebView and safe MicroQuickJS logic. - Added comprehensive unit tests for binary and stream capabilities. - Configured CMake to link all components into the secure `alloy_host` binary. Co-authored-by: yumin-chen <10954839+yumin-chen@users.noreply.github.com>
This PR implements a secure, dual-engine runtime architecture for AlloyScript.
Key Changes:
core/webview(MIT),core/mquickjs(MIT), andsrc/alloy(CC0) to respect licensing and ownership.bind_globalAPI: Added a C++ API to consistently bind native capabilities to both engines.secureEval: Integrated MicroQuickJS to execute JavaScript securely within the host process.All integration tests passed, and the host program compiles successfully on Linux with GTK3 and WebKit2GTK dependencies.
PR created automatically by Jules for task 12660279205189122988 started by @yumin-chen