Arafat Khan created HDDS-17991:
----------------------------------
Summary: Introduce an isolated browser-based JavaScript execution
runtime for Recon AI Assistant
Key: HDDS-17991
URL: https://issues.apache.org/jira/browse/HDDS-17991
Project: Apache Ozone
Issue Type: Sub-task
Components: Ozone Recon
Reporter: Arafat Khan
Introduce an isolated JavaScript execution environment within the Recon
frontend to execute LLM-generated code.
The implementation will use QuickJS, WebAssembly and Web Workers to provide
controlled code execution without blocking the Recon UI or exposing browser
resources to generated code.
The changes include:
* Integrate QuickJS through WebAssembly.
* Introduce a dedicated Web Worker for code execution.
* Implement a reusable JavaScript execution runtime.
* Support asynchronous execution and controlled host function calls.
* Introduce {{recon.call()}} and {{recon.paginate()}} helpers.
* Restrict access to browser resources and arbitrary network operations.
* Enforce CPU, memory, execution time and output limits.
* Support cancellation and termination of running programs.
* Handle execution errors.
* Validate dependency licensing and frontend build compatibility.
* Add unit and browser-based tests.
The runtime should be independently testable using mocked tool responses
without requiring a running Recon backend.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]