mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:15:59 +00:00
* feat(mcp): support runtime analysis limit recovery * refactor(config): remove unused limit re-exports * fix(android): keep fixture release metadata dependency-free * fix(settings): preserve provider budgets and recovery facts * fix(tests): resolve lint plugins from their repository owner * refactor(mcp): verify guidance delivery without frozen wording * fix(android): align availability with runtime timeout * test(recovery): assert limit facts instead of frozen wording * fix(mcp): share runtime settings with the default JADX provider * test(mcp): bound acknowledgements and release held work on failure * fix(catalog): declare runtime settings tools as MCP-only
26 lines
1.2 KiB
TypeScript
26 lines
1.2 KiB
TypeScript
import { WebNetworkCaptureService } from "../application/WebNetworkCaptureService.js";
|
|
import { HistoricalCaptureDecoder } from "../browser/history/HistoricalCaptureDecoder.js";
|
|
import { NodeCaptureAdapter } from "../browser/history/NodeCaptureAdapter.js";
|
|
import { MitmproxyCaptureAdapter } from "../browser/history/MitmproxyCaptureAdapter.js";
|
|
import type { AnalysisSettingsReader } from "../domain/analysisSettings.js";
|
|
import { runtimeCaptureDecoderHeap } from "../config/runtimeAnalysisSettings.js";
|
|
|
|
/** Compose offline format adapters without import-time reads, installation or process startup. */
|
|
export const createWebNetworkCaptureService = (
|
|
environment: Readonly<NodeJS.ProcessEnv> = process.env,
|
|
settings?: AnalysisSettingsReader,
|
|
): WebNetworkCaptureService => {
|
|
const heap = runtimeCaptureDecoderHeap(environment, settings);
|
|
return new WebNetworkCaptureService(
|
|
new HistoricalCaptureDecoder(
|
|
[
|
|
new NodeCaptureAdapter("har", environment, heap),
|
|
new NodeCaptureAdapter("saz", environment, heap),
|
|
new NodeCaptureAdapter("qlog", environment, heap),
|
|
new MitmproxyCaptureAdapter(environment),
|
|
],
|
|
environment,
|
|
),
|
|
);
|
|
};
|