mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 20:06:14 +00:00
* refactor(admission): own inspector, web, and CLI state per host Replace the process-global inspector, web-bundle, guidance, and JavaScript counters with objects a host passes in, so independent instances do not share admission or cleanup. * fix(admission): keep worker and file cleanup on the host Web-bundle and JavaScript workers retry only their host registry, and each Inspector admission authorizes and closes its own file scope. Browser providers can share one web-bundle admission. * test(inspector): gate one admission's file cleanup The isolation test delayed the first ArtifactResourceScope.retryCleanup call, so a second call on a shared ElectronFileScope still finished. Hold first.files.retryCleanup until the other admission's close finishes, then release and join before restoring the method. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
9 lines
490 B
TypeScript
9 lines
490 B
TypeScript
import type { BrowserObservationPort } from "../application/BrowserObservationPort.js";
|
|
import { CdpBrowserProvider } from "../browser/CdpBrowserProvider.js";
|
|
import type { WebBundleAnalysisAdmission } from "../browser/IsolatedWebBundleAnalyzer.js";
|
|
|
|
/** Construct a fresh provider without opening a target or acquiring an engine. */
|
|
export const createBrowserObservationProvider = (
|
|
admission?: WebBundleAnalysisAdmission,
|
|
): BrowserObservationPort => new CdpBrowserProvider(admission);
|