From 9f67e44e5d451d705bae9a579ad9802d5c9f097c Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:26:48 +0800 Subject: [PATCH 01/44] fix(javascript): preserve loader-specific package ancestry Require a package directory for bare ESM imports. Continue CommonJS root and subpath lookup through ancestor packages after ordinary misses, while keeping exports authority, unavailable metadata, and failed nonempty main entrypoints terminal. Carry failed-main ownership in the internal resolution result and retain the nearest local miss after exhausting ancestors. Consolidate package selection at its owning boundary and qualify loader differences with real Node 24, CLI, and MCP regressions. --- .../JavaScriptArtifactPathResolution.test.ts | 186 ++++++++++++++++++ .../JavaScriptArtifactPathResolution.ts | 55 ++++-- .../JavaScriptModuleLookupCli.test.ts | 85 ++++++-- 3 files changed, 296 insertions(+), 30 deletions(-) diff --git a/src/application/javascript/JavaScriptArtifactPathResolution.test.ts b/src/application/javascript/JavaScriptArtifactPathResolution.test.ts index 2a05af6eb..e44d2666a 100644 --- a/src/application/javascript/JavaScriptArtifactPathResolution.test.ts +++ b/src/application/javascript/JavaScriptArtifactPathResolution.test.ts @@ -121,7 +121,66 @@ describe("loader-owned path lookup", () => { }), ).toMatchObject({ resolved_path: "app/feature.cjs" }); }); +}); +describe("bare package root file lookup", () => { + it("uses loader-specific bare package roots when only a sibling .js file exists", () => { + const absentDirectory = fileMap([ + file("app/entry.mjs", "root"), + file("app/node_modules/fixture.js", "root"), + ]); + expect( + resolve({ + declaredPath: "fixture", + sourcePath: "app/entry.mjs", + context: "module-specifier", + moduleKind: "import", + files: absentDirectory, + }), + ).toMatchObject({ resolution_status: "external", resolved_path: null }); + expect( + resolve({ + declaredPath: "fixture", + sourcePath: "app/entry.mjs", + context: "module-specifier", + moduleKind: "require", + files: absentDirectory, + }), + ).toMatchObject({ + resolution_status: "resolved", + resolved_path: "app/node_modules/fixture.js", + }); + + const packageDirectory = fileMap([ + file("app/entry.mjs", "root"), + file("app/node_modules/fixture.js", "root"), + file("app/node_modules/fixture/package.json", "root", "{}"), + ]); + expect( + resolve({ + declaredPath: "fixture", + sourcePath: "app/entry.mjs", + context: "module-specifier", + moduleKind: "import", + files: packageDirectory, + }), + ).toMatchObject({ resolution_status: "not-found", resolved_path: null }); + expect( + resolve({ + declaredPath: "fixture", + sourcePath: "app/entry.mjs", + context: "module-specifier", + moduleKind: "require", + files: packageDirectory, + }), + ).toMatchObject({ + resolution_status: "resolved", + resolved_path: "app/node_modules/fixture.js", + }); + }); +}); + +describe("legacy package main lookup", () => { it("treats an empty package main as absent and resolves the root index", () => { const files = fileMap([ file("app/src/entry.cjs", "root"), @@ -208,6 +267,133 @@ describe("loader-owned path lookup", () => { }); }); +describe("CommonJS bare package ancestor lookup", () => { + it.each([ + ["absent metadata", undefined, true], + ["empty metadata", "{}", true], + ["empty main", '{"main":""}', true], + ["truthy missing main", '{"main":"missing"}', false], + ] as const)( + "handles %s before an ancestor package for both loaders", + (_name, packageJson, commonJsUsesAncestor) => { + const files = fileMap([ + file("app/src/entry.js", "root"), + file("app/src/node_modules/fixture/placeholder.js", "root"), + ...(packageJson === undefined + ? [] + : [ + file( + "app/src/node_modules/fixture/package.json", + "root", + packageJson, + ), + ]), + file("app/node_modules/fixture/index.js", "root"), + ]); + for (const moduleKind of ["import", "require"] as const) { + const resolution = resolve({ + declaredPath: "fixture", + sourcePath: "app/src/entry.js", + context: "module-specifier", + moduleKind, + files, + }); + if (moduleKind === "require" && commonJsUsesAncestor) { + expect(resolution).toMatchObject({ + resolution_status: "resolved", + resolved_path: "app/node_modules/fixture/index.js", + }); + } else { + expect(resolution).toMatchObject({ + resolution_status: "not-found", + resolved_path: null, + }); + } + } + }, + ); +}); + +describe("CommonJS bare package subpath ancestor lookup", () => { + it.each([ + ["absent subpath", undefined, true], + ["empty subpath metadata", "{}", true], + ["truthy missing subpath main", '{"main":"missing"}', false], + ] as const)( + "handles %s before an ancestor package for both loaders", + (_name, packageJson, commonJsUsesAncestor) => { + const files = fileMap([ + file("app/src/entry.js", "root"), + file("app/src/node_modules/fixture/placeholder.js", "root"), + ...(packageJson === undefined + ? [] + : [ + file( + "app/src/node_modules/fixture/parser/package.json", + "root", + packageJson, + ), + file( + "app/src/node_modules/fixture/parser/placeholder.js", + "root", + ), + ]), + file("app/node_modules/fixture/parser.js", "root"), + ]); + const commonJsResolution = resolve({ + declaredPath: "fixture/parser", + sourcePath: "app/src/entry.js", + context: "module-specifier", + moduleKind: "require", + files, + }); + expect(commonJsResolution).toMatchObject({ + resolved_path: commonJsUsesAncestor + ? "app/node_modules/fixture/parser.js" + : null, + }); + const esmResolution = resolve({ + declaredPath: "fixture/parser", + sourcePath: "app/src/entry.js", + context: "module-specifier", + moduleKind: "import", + files, + }); + expect(esmResolution.resolved_path).toBeNull(); + }, + ); +}); + +describe("CommonJS bare package exhausted lookup", () => { + it.each([ + ["empty main", "fixture", '{"main":""}', "app/src/node_modules/fixture"], + [ + "missing subpath", + "fixture/parser", + "{}", + "app/src/node_modules/fixture/parser", + ], + ] as const)( + "preserves not-found for an exhausted %s lookup", + (_name, declaredPath, packageJson, packageDirectory) => { + const files = fileMap([ + file("app/src/entry.js", "root"), + file("app/src/node_modules/fixture/package.json", "root", packageJson), + file(`${packageDirectory}/placeholder.js`, "root"), + ]); + expect( + resolve({ + declaredPath, + sourcePath: "app/src/entry.js", + context: "module-specifier", + moduleKind: "require", + files, + }), + ).toMatchObject({ resolution_status: "not-found", resolved_path: null }); + }, + ); +}); + describe("logical path identity", () => { it("resolves an NFD relative import to the NFC inventory path and rejects a root escape", () => { const nfc = "caf\u00e9".normalize("NFC"); diff --git a/src/application/javascript/JavaScriptArtifactPathResolution.ts b/src/application/javascript/JavaScriptArtifactPathResolution.ts index 481a40453..9845e8c03 100644 --- a/src/application/javascript/JavaScriptArtifactPathResolution.ts +++ b/src/application/javascript/JavaScriptArtifactPathResolution.ts @@ -100,6 +100,8 @@ type CandidateResolution = readonly resolvedPath: null; readonly status: UnresolvedArtifactPathStatus; readonly limitations: readonly string[]; + /** A truthy package main failed, so Node must not try ancestor packages. */ + readonly stopsAncestorLookup?: true; }; /** Resolve one declaration while preserving its original input identity. */ @@ -274,23 +276,39 @@ const bareModuleCandidate = ( } const source = input.files.get(input.sourcePath); let directory = posix.dirname(input.sourcePath); + let nearestNotFound: CandidateResolution | null = null; while (true) { const candidate = posix.join(directory, dependencyDirectory); const metadata = readPackageMetadata(input, candidate); - if (request.dependencyExportsEligible && metadata.kind !== "absent") - return resolvePackageDependency(input, candidate, request, metadata); - if (request.packageSubpath === ".") { - const direct = resolveFileCandidates( - input, - fileCandidates(candidate, input.moduleKind), - ); - if (direct !== null) return direct; + const continueCommonJsLookup = + input.moduleKind === "require" && + (metadata.kind === "absent" || + (metadata.kind === "available" && + (!request.dependencyExportsEligible || + metadata.exports === undefined))); + const packageResolution = + metadata.kind !== "absent" || + hasContainerDirectory(input.files, candidate, source?.container_sha256) + ? resolvePackageDependency(input, candidate, request, metadata) + : request.packageSubpath === "." && input.moduleKind !== "import" + ? resolveFileCandidates( + input, + fileCandidates(candidate, input.moduleKind), + ) + : null; + if (packageResolution !== null) { + if ( + continueCommonJsLookup && + packageResolution.status === "not-found" && + packageResolution.stopsAncestorLookup !== true + ) { + nearestNotFound ??= packageResolution; + } else return packageResolution; } - if (hasContainerDirectory(input.files, candidate, source?.container_sha256)) - return resolvePackageDependency(input, candidate, request, metadata); if (directory === "." || directory === "") break; directory = posix.dirname(directory); } + if (nearestNotFound !== null) return nearestNotFound; return unresolvedCandidate("external", [ "No matching bare package was inventoried in an enclosing node_modules directory.", ]); @@ -425,10 +443,12 @@ const resolvePackageDependency = ( if (rawExports === undefined) { if (subpath === ".") return ( - resolveFileCandidates( - input, - fileCandidates(directory, input.moduleKind), - ) ?? resolveDirectory(input, directory, metadata, new Set()) + (input.moduleKind === "import" + ? null + : resolveFileCandidates( + input, + fileCandidates(directory, input.moduleKind), + )) ?? resolveDirectory(input, directory, metadata, new Set()) ); // Resolve legacy ESM subpaths as URLs: suffixes identify the loaded module // but do not belong to its filesystem path. Keep the declared specifier on @@ -831,6 +851,8 @@ const resolveDirectory = ( ]) ?? resolveFileCandidates(input, indexCandidates(directory, input.moduleKind)); if (selected !== null) return selected; + if (input.moduleKind === "require") + return { ...notFoundCandidate(), stopsAncestorLookup: true }; if (input.moduleKind !== undefined) return notFoundCandidate(); return resolveCandidate( entryInput, @@ -1102,7 +1124,10 @@ const packageExportConditions = ( "default", ]); -const notFoundCandidate = (): CandidateResolution => ({ +const notFoundCandidate = (): Extract< + CandidateResolution, + { readonly resolvedPath: null } +> => ({ resolvedPath: null, status: "not-found", limitations: [ diff --git a/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts b/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts index e57f96adb..3e3318327 100644 --- a/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts +++ b/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts @@ -21,6 +21,10 @@ const createModuleLookupFixture = async () => { 'import "./exact.js";', 'import fallback from "empty-main";', 'import "nested-main";', + 'import "file-only";', + 'import "ancestor-empty";', + 'import "ancestor-blocked";', + 'import "ancestor-sub/parser";', "void fallback;", ].join("\n"), "esm/extensionless.js": "module.exports = 1;", @@ -36,6 +40,10 @@ const createModuleLookupFixture = async () => { 'require("./default-node");', 'require("empty-main");', 'require("nested-main");', + 'require("file-only");', + 'require("ancestor-empty");', + 'require("ancestor-blocked");', + 'require("ancestor-sub/parser");', ].join("\n"), "cjs/extensionless.cjs": "module.exports = 1;", "cjs/feature.cjs": "module.exports = 2;", @@ -50,8 +58,12 @@ const createModuleLookupFixture = async () => { main: "other", }), "node_modules/nested-main/sub/other.js": "module.exports = 99;", - "runtime-control.mjs": [ - 'const specifiers = ["./esm/extensionless", "./esm/directory", "./esm/explicit.js", "./esm/exact.js", "empty-main", "nested-main"];', + "node_modules/file-only.js": "module.exports = 7;", + "node_modules/ancestor-empty/index.js": "module.exports = 8;", + "node_modules/ancestor-blocked/index.js": "module.exports = 9;", + "node_modules/ancestor-sub/parser.js": "module.exports = 10;", + "esm/runtime-control.mjs": [ + 'const specifiers = ["./extensionless", "./directory", "./explicit.js", "./exact.js", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', "const results = [];", "for (const specifier of specifiers) {", " try { await import(specifier); results.push({ specifier, ok: true }); }", @@ -59,8 +71,8 @@ const createModuleLookupFixture = async () => { "}", "console.log(JSON.stringify(results));", ].join("\n"), - "runtime-control.cjs": [ - 'const specifiers = ["./cjs/extensionless", "./cjs/feature", "./cjs/feature.cjs", "./cjs/default-js", "./cjs/default-json", "empty-main", "nested-main"];', + "cjs/runtime-control.cjs": [ + 'const specifiers = ["./extensionless", "./feature", "./feature.cjs", "./default-js", "./default-json", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', "const results = [];", "for (const specifier of specifiers) {", " try { require(specifier); results.push({ specifier, ok: true }); }", @@ -69,6 +81,15 @@ const createModuleLookupFixture = async () => { "console.log(JSON.stringify(results));", ].join("\n"), }); + for (const directory of ["esm", "cjs"]) + await writeFixtureFiles(root, { + [`${directory}/node_modules/ancestor-empty/package.json`]: JSON.stringify( + { main: "" }, + ), + [`${directory}/node_modules/ancestor-blocked/package.json`]: + JSON.stringify({ main: "missing" }), + [`${directory}/node_modules/ancestor-sub/package.json`]: "{}", + }); return root; }; @@ -77,11 +98,11 @@ cliTest.for(["CLI", "stdio MCP"] as const)( async (surface, { cli }) => { const root = await createModuleLookupFixture(); const [esmControl, cjsControl] = await Promise.all([ - execute(process.execPath, ["runtime-control.mjs"], { + execute(process.execPath, ["esm/runtime-control.mjs"], { cwd: root, timeout: 5_000, }), - execute(process.execPath, ["runtime-control.cjs"], { + execute(process.execPath, ["cjs/runtime-control.cjs"], { cwd: root, timeout: 5_000, }), @@ -98,40 +119,56 @@ cliTest.for(["CLI", "stdio MCP"] as const)( }>; expect(esmResults).toEqual([ { - specifier: "./esm/extensionless", + specifier: "./extensionless", ok: false, code: "ERR_MODULE_NOT_FOUND", }, { - specifier: "./esm/directory", + specifier: "./directory", ok: false, code: "ERR_UNSUPPORTED_DIR_IMPORT", }, { - specifier: "./esm/explicit.js", + specifier: "./explicit.js", ok: false, code: "ERR_MODULE_NOT_FOUND", }, - { specifier: "./esm/exact.js", ok: true }, + { specifier: "./exact.js", ok: true }, { specifier: "empty-main", ok: true }, { specifier: "nested-main", ok: false, code: "ERR_MODULE_NOT_FOUND" }, + { specifier: "file-only", ok: false, code: "ERR_MODULE_NOT_FOUND" }, + { specifier: "ancestor-empty", ok: false, code: "ERR_MODULE_NOT_FOUND" }, + { + specifier: "ancestor-blocked", + ok: false, + code: "ERR_MODULE_NOT_FOUND", + }, + { + specifier: "ancestor-sub/parser", + ok: false, + code: "ERR_MODULE_NOT_FOUND", + }, ]); expect(cjsResults).toEqual([ { - specifier: "./cjs/extensionless", + specifier: "./extensionless", ok: false, code: "MODULE_NOT_FOUND", }, { - specifier: "./cjs/feature", + specifier: "./feature", ok: false, code: "MODULE_NOT_FOUND", }, - { specifier: "./cjs/feature.cjs", ok: true }, - { specifier: "./cjs/default-js", ok: true }, - { specifier: "./cjs/default-json", ok: true }, + { specifier: "./feature.cjs", ok: true }, + { specifier: "./default-js", ok: true }, + { specifier: "./default-json", ok: true }, { specifier: "empty-main", ok: true }, { specifier: "nested-main", ok: false, code: "MODULE_NOT_FOUND" }, + { specifier: "file-only", ok: true }, + { specifier: "ancestor-empty", ok: true }, + { specifier: "ancestor-blocked", ok: false, code: "MODULE_NOT_FOUND" }, + { specifier: "ancestor-sub/parser", ok: true }, ]); const { graph } = await analyzeJavaScriptDirectory(surface, cli, root); @@ -142,6 +179,10 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ["import", "./exact.js", "esm/exact.js", "resolved"], ["import", "empty-main", "node_modules/empty-main/index.js", "resolved"], ["import", "nested-main", null, "not-found"], + ["import", "file-only", null, "external"], + ["import", "ancestor-empty", null, "not-found"], + ["import", "ancestor-blocked", null, "not-found"], + ["import", "ancestor-sub/parser", null, "not-found"], ["require", "./extensionless", null, "not-found"], ["require", "./feature", null, "not-found"], ["require", "./feature.cjs", "cjs/feature.cjs", "resolved"], @@ -150,6 +191,20 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ["require", "./default-node", "cjs/default-node.node", "resolved"], ["require", "empty-main", "node_modules/empty-main/index.js", "resolved"], ["require", "nested-main", null, "not-found"], + ["require", "file-only", "node_modules/file-only.js", "resolved"], + [ + "require", + "ancestor-empty", + "node_modules/ancestor-empty/index.js", + "resolved", + ], + ["require", "ancestor-blocked", null, "not-found"], + [ + "require", + "ancestor-sub/parser", + "node_modules/ancestor-sub/parser.js", + "resolved", + ], ] as const; for (const [kind, specifier, resolvedPath, status] of expectations) From bd74c7af2bec952c2eea7a17feedd05e6675b719 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:26:56 +0800 Subject: [PATCH 02/44] test(sourcemaps): assert semantic evidence and actual output admission Replace stale closed-property expectations with assertions for the evidence under test. Verify compiler coordinates and declaration indices separately in the real-browser workflow. Consolidate duplicate 50000-map admission cases and derive admission from exact serialized bytes rather than IP-address-specific output shapes. Retain capacity, omission, and aggregate-byte coverage. A bounded Flameox CPU profile completed in about 1.4 seconds and showed no producer bottleneck; targeted admission and real Chrome CLI/MCP verification pass. --- scripts/lib/browser-nested-source-map-e2e.mjs | 11 +- .../applications/sourceMapPrefixCli.test.ts | 4 +- .../browser/webSourceMapFetcher.test.ts | 113 ++++++++++-------- .../javascriptArtifactBomRanges.test.ts | 2 +- 4 files changed, 77 insertions(+), 53 deletions(-) diff --git a/scripts/lib/browser-nested-source-map-e2e.mjs b/scripts/lib/browser-nested-source-map-e2e.mjs index 4e76f4258..0325b69e4 100644 --- a/scripts/lib/browser-nested-source-map-e2e.mjs +++ b/scripts/lib/browser-nested-source-map-e2e.mjs @@ -150,7 +150,16 @@ async function verifyCase(executable, entrypoint, scenario) { phase = "public-map-assertions"; observed = item?.mappings; assert.equal(item.status, "included"); - assert.deepEqual(item.mappings, expected); + assert.equal(item.mappings.length, expected.length); + for (const [index, coordinates] of expected.entries()) { + const mapping = item.mappings[index]; + for (const [key, value] of Object.entries(coordinates)) + assert.deepEqual(mapping[key], value); + // This compiler fixture has one source declaration in one wrapped leaf. + assert.equal(mapping.source_index, 0); + assert.equal(mapping.declaration_index, 0); + } + assert.equal(item.original_sources.length, 1); assert.equal(item.artifact.sha256, sha(site.map)); assert.equal(item.artifact.bytes, Buffer.byteLength(site.map)); assert.equal(item.original_sources[0].artifact.sha256, sha(site.original)); diff --git a/tests/acceptance/applications/sourceMapPrefixCli.test.ts b/tests/acceptance/applications/sourceMapPrefixCli.test.ts index 55d94283f..838e46924 100644 --- a/tests/acceptance/applications/sourceMapPrefixCli.test.ts +++ b/tests/acceptance/applications/sourceMapPrefixCli.test.ts @@ -45,13 +45,13 @@ cliTest.for(["CLI", "stdio MCP"] as const)( source_name: "original.ts", map_path: "bundle.js.map", }), - properties: { + properties: expect.objectContaining({ source_index: 0, declaration_index: 0, source_name_available: true, content_available: true, content_sha256: originalDigest, - }, + }), evidence: expect.objectContaining({ artifact: expect.objectContaining({ sha256: mapDigest }), }), diff --git a/tests/boundary/browser/webSourceMapFetcher.test.ts b/tests/boundary/browser/webSourceMapFetcher.test.ts index 35fc34b6f..b1227fa26 100644 --- a/tests/boundary/browser/webSourceMapFetcher.test.ts +++ b/tests/boundary/browser/webSourceMapFetcher.test.ts @@ -1161,58 +1161,73 @@ describe("source-map output admission", () => { ); }, ); +}); - it.each([ - { localOrigin: "http://[::1]:1", expectedStatus: "included" }, - { localOrigin: "http://127.0.0.1:9222", expectedStatus: "partial" }, - ])( - "admits a maximum-size map set according to its actual output at $localOrigin", - async ({ localOrigin, expectedStatus }) => { - const mapUrl = `${localOrigin}/m`; - const requests = Array.from({ length: 50_000 }, (_, index) => ({ - ...request, - scriptKey: `scr_${index.toString(16).padStart(64, "0")}`, - declaredUrl: mapUrl, - fetchUrl: mapUrl, - })); - const map = JSON.stringify({ - version: 3, - names: [], - sources: ["x"], - mappings: "AAAA", - }); - const result = await fetchWebSourceMaps( - requests, - input({ allowed_origins: [localOrigin] }), - undefined, - { - timeoutMs: 120_000, - fetch: () => Promise.resolve(new Response(map, { status: 200 })), - }, - ); +describe("source-map set output admission", () => { + it("admits a maximum-size map set according to its serialized output size", async () => { + const localOrigin = "http://127.0.0.1:9222"; + const mapUrl = `${localOrigin}/m`; + const requests = Array.from({ length: 50_000 }, (_, index) => ({ + ...request, + scriptKey: `scr_${index.toString(16).padStart(64, "0")}`, + declaredUrl: mapUrl, + fetchUrl: mapUrl, + })); + const map = JSON.stringify({ + version: 3, + names: [], + sources: ["x"], + mappings: "AAAA", + }); + const result = await fetchWebSourceMaps( + requests, + input({ allowed_origins: [localOrigin] }), + undefined, + { + timeoutMs: 120_000, + fetch: () => Promise.resolve(new Response(map, { status: 200 })), + }, + ); - expect(result.status).toBe(expectedStatus); - if (expectedStatus === "included") { - expect(result.limitation).toBeUndefined(); - expect(result.items).toHaveLength(requests.length); - } else { - expect(result.items.length).toBeLessThan(requests.length); - expect(result.limitation).toContain( - `${String(requests.length - result.items.length)} requested maps`, - ); - expect( - (Buffer.byteLength(JSON.stringify(result.items[0])) + 1) * - requests.length, - ).toBeGreaterThan(32 * 1_024 * 1_024); - } - expect(result.processed).toBe(result.items.length); - expect(result.requested).toBe(requests.length); - expect(Buffer.byteLength(JSON.stringify(result))).toBeLessThanOrEqual( - 32 * 1_024 * 1_024, + const outputLimitBytes = 32 * 1_024 * 1_024; + const itemSizes = new Set( + result.items.map((item) => Buffer.byteLength(JSON.stringify(item))), + ); + expect(itemSizes.size).toBe(1); + const firstItem = result.items[0]; + if (firstItem === undefined) throw new Error("no source map was admitted"); + const itemBytes = Buffer.byteLength(JSON.stringify(firstItem)); + const completeEnvelope = JSON.stringify({ + ...result, + status: "included", + processed: requests.length, + items: [], + limitation: undefined, + }); + const projectedCompleteBytes = + Buffer.byteLength(completeEnvelope) + + itemBytes * requests.length + + requests.length - + 1; + const completeOutputFits = projectedCompleteBytes <= outputLimitBytes; + + expect(result.status).toBe(completeOutputFits ? "included" : "partial"); + if (completeOutputFits) { + expect(result.limitation).toBeUndefined(); + expect(result.items).toHaveLength(requests.length); + } else { + expect(result.items.length).toBeLessThan(requests.length); + expect(result.limitation).toContain( + `${String(requests.length - result.items.length)} requested maps`, ); - }, - 120_000, - ); + expect(projectedCompleteBytes).toBeGreaterThan(outputLimitBytes); + } + expect(result.processed).toBe(result.items.length); + expect(result.requested).toBe(requests.length); + expect(Buffer.byteLength(JSON.stringify(result))).toBeLessThanOrEqual( + outputLimitBytes, + ); + }, 120_000); it("reserves large failure contexts and reports unprocessed requests as unknown", async () => { const largeDeclaredUrl = `${origin}/${"u".repeat(8 * 1_024 * 1_024)}`; diff --git a/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts b/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts index dabf98548..52611a2a8 100644 --- a/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts +++ b/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts @@ -79,7 +79,7 @@ for (const format of ["directory", "asar"] as const) { map_path: "app.js.map", resolution: { kind: "artifact-relative", path: "original.js" }, }, - properties: { content_available: true }, + properties: expect.objectContaining({ content_available: true }), }), ); }); From a1b5d51a8dfb7fff6272d91270c16b95555c2643 Mon Sep 17 00:00:00 2001 From: You Wish <29498139+Y0UW1SH@users.noreply.github.com> Date: Sun, 11 Oct 2026 23:34:02 -0400 Subject: [PATCH 03/44] feat(go): inspect embedded binary build metadata (#1363) * feat(go): inspect embedded binary build metadata * fix(go): preserve byte metadata and validate container mappings * fix(go): support moduleless legacy build metadata Recognize optional module string headers in declared zero-filled memory while rejecting ambiguous and unmapped pointers. Preserve the original module-pointer field as the zero-byte source anchor. Classify initial symlink-loop and overlong-path failures as invalid input, with CLI and MCP regressions. * fix(go): reject undersized PE optional headers * fix(native): stabilize ELF memory checks and clean up exec wrappers Use existing parent/group/run-token ownership for caller-selected Python launchers, which can exec through a shell or prlimit. Add cancellation regressions for the valid wrapper and wrong-parent/token cases. Replace the timing-dependent 30,000-section memory workload with a valid 32 MiB padded ELF under a 64 MiB address-space limit. Check the same image successfully through CLI and MCP before requiring a typed memory failure, preserving the production timeout and all error assertions. Validation: npm run check and check:fast passed; 61 focused tests passed including Go CLI/MCP and session snapshots. Real decoder probes with pinned packages passed on Python 3.12.3 and 3.12.14. The full local ELF verifier is blocked by this container's procps/process-ownership boundary; the exact pushed head requires GitHub's real-binary-layout lane. * test: repair Electron fixtures and stabilize catalog startup checks Declare Electron imports in option, preload override, and path-resolution fixtures after upstream began requiring proven API provenance. Retain all option and preload assertions and adjust exact source ranges for the added import line. Use the existing bounded acceptance timeout for the cold catalog lifecycle test instead of a separate 15-second ceiling. This retains the coverage allowance and all catalog, error, and cleanup assertions without retries. Validation: npm run check, final check:fast, formatting and diff checks passed. Source path regression and Go boundary/MCP/service checks passed. All 20 Go CLI cases and both supported-host runtime cases passed on rerun; two macOS-only cases skipped on Linux. A prior contended local run timed out once in a Go CLI diagnostic; that case passed on rerun. Electron process-boundary verification is blocked locally by procps namespace inspection and requires fresh CI. * test(mcp): isolate nested schema references between tool contracts Clear Ajv's non-meta schema registry after each root, including compilation failures. Disabling root registration alone leaves nested IDs available to later tools and can let a dangling reference pass the catalog gate. Add regressions for leakage after successful and failed compilation while retaining shared meta-schema validators. The regression failed before the fix; all 11 schema cases and full npm run check pass. Reviewed independently. * test(ci): align Go effects and source-map verification contracts Audit the Go inspector wording as static metadata inspection. Assert retained source declaration indexes in BOM reconstruction and the compiler-derived nested-map oracle. Keep a 45,000-map admission control below the 32 MiB output budget and the 50,000-map overflow case above it with the expanded representation. Validation: reproduced all four failing assertions, then passed 120 focused tests and the final admission suite. npm run check and real Chrome 154 / esbuild 0.25.10 source-map verification passed, including all four nested-map scenarios and verified process lineage. --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> --- .../skills/reverse-engineer-anything/SKILL.md | 6 + .../references/native-and-artifacts.md | 11 + .github/workflows/real-go-binary.yml | 58 ++ README.md | 1 + docs/.vitepress/config.ts | 1 + docs/cli.md | 11 + docs/go-binaries.md | 99 +++ package.json | 1 + scripts/lib/catalog-builders.mjs | 5 + scripts/lib/catalog-core.mjs | 2 + scripts/lib/module-boundaries.mjs | 1 + scripts/verify-go-binary.mjs | 518 +++++++++++++++ src/application/CapabilityInventory.ts | 2 + src/application/go/GoBinaryPort.ts | 19 + src/application/go/GoBinaryService.test.ts | 178 ++++++ src/application/go/GoBinaryService.ts | 106 ++++ src/cli.ts | 2 + src/cli/goCommands.ts | 31 + src/cliCommandNames.ts | 1 + src/composition/go.ts | 6 + src/contracts/go/goToolContracts.ts | 26 + src/contracts/toolContracts.ts | 2 + src/contracts/toolEffects.test.ts | 1 + src/contracts/toolEffects.ts | 1 + src/domain/go/goBinary.ts | 112 ++++ src/go/GoBinaryContainer.ts | 216 +++++++ src/go/GoBinaryImage.ts | 316 ++++++++++ src/go/GoBinaryProvider.ts | 202 ++++++ src/go/GoElfImage.ts | 246 ++++++++ src/go/GoMachoImage.ts | 168 +++++ src/go/GoModuleText.ts | 226 +++++++ src/go/GoPeImage.ts | 149 +++++ src/native/pwntools/PwntoolsDecoder.ts | 3 + src/server/createServer.ts | 11 + src/server/registerGoTools.ts | 31 + tests/acceptance/applications/runtime.test.ts | 45 +- tests/acceptance/goBinaryCli.test.ts | 223 +++++++ .../pwntoolsDecoderOwnership.test.ts | 101 +++ .../javascriptArtifactBomRanges.test.ts | 7 +- tests/boundary/go/goBinaryImage.test.ts | 595 ++++++++++++++++++ tests/boundary/go/goBinaryMappings.test.ts | 50 ++ tests/boundary/go/goBinaryProvider.test.ts | 98 +++ tests/boundary/go/goModuleText.test.ts | 177 ++++++ tests/boundary/mcp/goBinaryMcp.test.ts | 285 +++++++++ tests/boundary/mcp/toolSchemaValidity.test.ts | 86 ++- tests/fixtures/go/image.ts | 355 +++++++++++ tests/fixtures/localToolsMcp.ts | 5 +- vitest.config.ts | 2 +- 48 files changed, 4777 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/real-go-binary.yml create mode 100644 docs/go-binaries.md create mode 100644 scripts/verify-go-binary.mjs create mode 100644 src/application/go/GoBinaryPort.ts create mode 100644 src/application/go/GoBinaryService.test.ts create mode 100644 src/application/go/GoBinaryService.ts create mode 100644 src/cli/goCommands.ts create mode 100644 src/composition/go.ts create mode 100644 src/contracts/go/goToolContracts.ts create mode 100644 src/domain/go/goBinary.ts create mode 100644 src/go/GoBinaryContainer.ts create mode 100644 src/go/GoBinaryImage.ts create mode 100644 src/go/GoBinaryProvider.ts create mode 100644 src/go/GoElfImage.ts create mode 100644 src/go/GoMachoImage.ts create mode 100644 src/go/GoModuleText.ts create mode 100644 src/go/GoPeImage.ts create mode 100644 src/server/registerGoTools.ts create mode 100644 tests/acceptance/goBinaryCli.test.ts create mode 100644 tests/boundary/binaryDiagnostics/pwntoolsDecoderOwnership.test.ts create mode 100644 tests/boundary/go/goBinaryImage.test.ts create mode 100644 tests/boundary/go/goBinaryMappings.test.ts create mode 100644 tests/boundary/go/goBinaryProvider.test.ts create mode 100644 tests/boundary/go/goModuleText.test.ts create mode 100644 tests/boundary/mcp/goBinaryMcp.test.ts create mode 100644 tests/fixtures/go/image.ts diff --git a/.agents/skills/reverse-engineer-anything/SKILL.md b/.agents/skills/reverse-engineer-anything/SKILL.md index 1960c6d1c..e21de6c0a 100644 --- a/.agents/skills/reverse-engineer-anything/SKILL.md +++ b/.agents/skills/reverse-engineer-anything/SKILL.md @@ -77,6 +77,12 @@ explicit path or endpoint and do not need it. argument strings and mutability as inferred candidates; this performs no chain lookup or target execution. See the [EVM bytecode guide](https://github.com/morluto/rea/blob/main/docs/evm-bytecode.md). +- Embedded Go compiler, module or build-setting metadata: `inspect_go_binary` + with the explicit local file. This built-in target-free inspection requires no + Go installation or disassembler. Preserve raw module bytes and source ranges; + absent metadata does not prove a binary is not Go, and unparsed text records + remain explicit. See the + [Go binary guide](https://github.com/morluto/rea/blob/main/docs/go-binaries.md). - Explicit Linux ELF file for offline layout, symbols, relocations or static mitigation evidence: `inspect_binary_layout`. This target-free operation uses caller-supplied pwntools without opening a disassembler database. Preserve its diff --git a/.agents/skills/reverse-engineer-anything/references/native-and-artifacts.md b/.agents/skills/reverse-engineer-anything/references/native-and-artifacts.md index a045e5a62..2b0def8e4 100644 --- a/.agents/skills/reverse-engineer-anything/references/native-and-artifacts.md +++ b/.agents/skills/reverse-engineer-anything/references/native-and-artifacts.md @@ -1,5 +1,16 @@ # Native, managed, and packaged artifacts +## Go build metadata + +Use `inspect_go_binary` for an explicit local ELF, PE or thin Mach-O when the +question concerns the embedded compiler version, module/dependency versions, +local replacements or build settings. No `open_binary`, Go installation or +target execution is required. The CLI equivalent is `inspect-go-binary PATH`. +Preserve artifact SHA-256, original file ranges, framed module bytes and every +unparsed module-text line. A missing record is an unknown, not proof of a +non-Go binary; observed metadata does not authenticate its claims. Function, +source and type recovery remain a separate native-analysis question. + ## Recorded Linux crashes Use `inspect_recorded_crash` with an explicit Linux x86-64 ELF core path to diff --git a/.github/workflows/real-go-binary.yml b/.github/workflows/real-go-binary.yml new file mode 100644 index 000000000..b886bd70a --- /dev/null +++ b/.github/workflows/real-go-binary.yml @@ -0,0 +1,58 @@ +name: Real Go binary metadata + +on: + workflow_dispatch: + pull_request: + paths: + - ".github/workflows/real-go-binary.yml" + - "src/go/**" + - "src/domain/go/**" + - "src/domain/dosMz.ts" + - "src/application/go/**" + - "src/contracts/go/**" + - "src/composition/go.ts" + - "src/cli/goCommands.ts" + - "src/server/registerGoTools.ts" + - "src/server/createServer.ts" + - "src/cli.ts" + - "src/cliCommandNames.ts" + - "src/contracts/toolContracts.ts" + - "src/contracts/toolEffects.ts" + - "src/artifacts/readStableArtifact*.ts" + - "src/artifacts/ArtifactReader.ts" + - "src/process/PrivateRuntimeRoot.ts" + - "scripts/verify-go-binary.mjs" + - "scripts/lib/mcp-verifier-results.mjs" + - "scripts/rea.mjs" + - "package.json" + - "package-lock.json" + - ".nvmrc" + +permissions: + contents: read + +concurrency: + group: real-go-binary-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + NODE_OPTIONS: --max-old-space-size=768 + HUSKY: "0" + +jobs: + real-go-binary: + runs-on: ubuntu-24.04 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + - uses: actions/setup-go@v5 + with: + go-version: "1.26.1" + cache: false + - run: npm ci + - name: Verify compiler-produced ELF, PE and Mach-O through public CLI and MCP + run: npm run verify:go:binary diff --git a/README.md b/README.md index e4a0cc28b..92303db9b 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,7 @@ Additional tools and host support depend on the target: | ---------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | | Native binaries | Pseudocode, assembly, strings, symbols, calls and references | Hopper, Ghidra or IDA; [native analysis](https://rea.tools/guides/native/) | | Offline ELF layout | Sections, segments, original symbols/relocations and static mitigation candidates | Caller-supplied pwntools on Linux x64; [binary diagnostics](docs/binary-diagnostics.md) | +| Go binaries | Embedded compiler version, modules, replacements and build settings | Built-in static ELF/PE/thin Mach-O inspection; no Go installation required | | WASM artifact | Validation, sections, exact import/export WAT forms and decoded WAT | Caller-supplied WABT 1.0.42; `inspect_wasm_artifact` | | EVM bytecode | Dispatch selectors, byte offsets, inferred arguments and mutability | Local raw/hex carrier on Linux x64; [offline EVM guide](docs/evm-bytecode.md) | | Recorded Linux crashes | Raw notes, every recorded thread's registers/signals and optional mapping candidates | Caller-supplied pwntools on Linux x64; optional GDB/pwndbg; [recorded crashes](docs/recorded-crashes.md) | diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 952266a68..7006478bb 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -26,6 +26,7 @@ export default defineConfig({ text: "Investigation guides", items: [ { text: "Native binaries", link: "/native-investigation" }, + { text: "Go build metadata", link: "/go-binaries" }, { text: "JavaScript and Electron", link: "/javascript-artifact-reconstruction", diff --git a/docs/cli.md b/docs/cli.md index 875c43147..bf6eb211f 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -39,6 +39,17 @@ views, feature traces and comparisons that take the same saved Evidence. ## Native analysis +Inspect embedded Go build metadata without installing Go or configuring a +disassembler: + +```bash +rea inspect-go-binary /absolute/path/to/program --json +``` + +The shared CLI/MCP workflow reports compiler version, modules, replacements, +build settings, original bytes and SHA-256. See [Go binaries](go-binaries.md) +for supported containers and absent or malformed metadata. + Configure [Hopper or Ghidra](installation.md#hopper), or the [IDA adapter](ida-provider.md), before analyzing a native target. Substitute your target, search text and function name or address in these examples: diff --git a/docs/go-binaries.md b/docs/go-binaries.md new file mode 100644 index 000000000..155780984 --- /dev/null +++ b/docs/go-binaries.md @@ -0,0 +1,99 @@ +# Go binary build metadata + +`inspect_go_binary` / `inspect-go-binary` answers which Go compiler version, +modules, replacements and build settings are embedded in one selected local +executable or library. It reads the file without running it and requires no +Go installation, active binary target, Hopper, Ghidra or IDA. + +```bash +rea inspect-go-binary /absolute/path/to/application --json +``` + +The CLI resolves relative paths against the caller's working directory. MCP +requires an absolute filesystem path and preserves that exact selection: + +```json +{ + "name": "inspect_go_binary", + "arguments": { "path": "/artifacts/application" } +} +``` + +## Observations + +The inline Evidence result contains the artifact path, SHA-256, byte length, +container format, architecture, word size and byte order. A recognized +`build_info` record contains: + +- `go_version`, preserved as embedded UTF-8 text rather than forced into a + semantic version, or `null` when the embedded bytes are not UTF-8; +- `go_version_bytes_base64`, preserving the exact compiler-string bytes; +- exact file offsets and byte lengths for the header, compiler string and module + string; +- `module_text`, the decoded module-information body, or `null` when the complete + body cannot be represented as UTF-8; +- `module_bytes_base64`, the original module-string bytes including Go framing; +- `module.path`, the embedded package path; +- `module.main`, the main module's path, version, checksum and optional + replacement; +- `module.dependencies`, with the same fields and their original order; +- `module.settings`, retaining ordered key/value entries and duplicate keys; +- `module.unparsed_lines`, `module.unparsed_line_bytes_base64` and + `module.complete`, so unfamiliar, malformed, conflicting or undecodable records + do not disappear behind a complete result. + +Missing checksums are `null`; empty fields and development/local replacement +versions remain unchanged. Build settings such as `GOOS`, `GOARCH` or `vcs.revision` +are reported when present. Their absence does not establish a build choice. +Go strings may contain arbitrary bytes. Non-UTF-8 records remain available as +base64 while other decodable module records are still reported; the reader does +not insert replacement characters or reject the entire artifact for those +strings. + +## Supported boundary + +The built-in TypeScript reader supports ELF, PE and thin Mach-O images with Go's +inline or historical pointer build-info encoding. Source ranges refer to the +original stable file snapshot, including pointer-backed strings. It does not +scan arbitrary byte strings as compiler metadata or interpret a fat Mach-O +container as one selected architecture. + +Historical moduleless Go binaries can store their empty module-string header in +declared zero-initialized virtual memory rather than file-backed bytes. The reader +recognizes this only when the complete optional module header lies in that memory +without a conflicting file mapping. Its module contents are empty and +`module_location` has zero bytes, anchored at the build-info field containing the +module-header pointer. Compiler strings and other unmapped pointers remain strict +file-backed reads. + +`build_info: null` means no recognized record was found in the inspected image. +It does not prove that the binary is not Go. Stripping, old builds, deliberate +removal and obfuscation can limit metadata. A malformed supported container or +recognized build-info record returns an input-format failure. Unsupported +containers receive a separate unsupported-target failure. + +Symlinks and nonregular files are rejected. The shared stable reader detects +replacement and observed in-place changes during acquisition. Missing files, +host permission denial, changed artifacts and cancellation retain distinct +errors. The selected file is never modified; this inspection creates no +temporary files, starts no subprocesses and accesses no network endpoint. + +Resource guards bound the selected file to 256 MiB, aggregate embedded strings +to 1 MiB, structural table decoding to 16 MiB and the complete normalized metadata +report to 8 MiB. Oversized results fail without partial success. MCP also applies +its [response transport budget](mcp-contracts.md), which counts both text and +structured content; a report within the metadata limit can still require export +from retained Evidence. These limits are not operating-system memory or CPU +isolation. + +Embedded metadata is evidence of file content. It does not authenticate a +compiler, dependency, commit or supply chain, and it does not establish runtime +behavior. Function names, source mappings, types and decompiled code are outside +this tool's coverage. Use the [native workflow](native-investigation.md) when +those questions require a disassembler. + +## Real producer verification + +`npm run verify:go:binary` exercises compiler-built fixtures through the public +CLI and MCP, comparing their metadata with Go's standard `debug/buildinfo` +reader. The verification lane requires Go; normal inspection does not. diff --git a/package.json b/package.json index 4e4c6a7c4..a237362b7 100644 --- a/package.json +++ b/package.json @@ -251,6 +251,7 @@ "verify:browser:runtime": "npm run build:cached && node scripts/verify-browser-runtime.mjs", "verify:web:network-captures": "npm run build:cached && node scripts/verify-web-network-captures.mjs", "verify:binary:layout": "npm run build:cached && node scripts/verify-binary-layout.mjs", + "verify:go:binary": "npm run build:cached && node scripts/verify-go-binary.mjs", "verify:wasm:package": "npm run build:cached && node scripts/verify-packaged-wasm-artifact.mjs", "verify:wasm:artifact": "npm run build:cached && node scripts/verify-wasm-artifact.mjs", "verify:evm:interface": "npm run build:cached && node scripts/verify-evm-interface.mjs", diff --git a/scripts/lib/catalog-builders.mjs b/scripts/lib/catalog-builders.mjs index 83b9a1792..f9e0c0cef 100644 --- a/scripts/lib/catalog-builders.mjs +++ b/scripts/lib/catalog-builders.mjs @@ -27,6 +27,7 @@ export const toolFamilyCatalog = (sources) => { contracts: [ ...sources.artifactContracts.ARTIFACT_TOOL_CONTRACTS, ...sources.evmContracts.EVM_TOOL_CONTRACTS, + ...sources.goContracts.GO_TOOL_CONTRACTS, ...sources.wasmContracts.WASM_TOOL_CONTRACTS, ], }, @@ -188,6 +189,10 @@ export const providerCatalog = (sources) => { identity: sources.evmProvider.EVMOLE_PROVIDER_IDENTITY, contracts: sources.evmContracts.EVM_TOOL_CONTRACTS, }, + { + identity: sources.goProvider.GO_BINARY_PROVIDER_IDENTITY, + contracts: sources.goContracts.GO_TOOL_CONTRACTS, + }, { identity: sources.artifactProviders.ARTIFACT_GRAPH_PROVIDER, contracts: sources.artifactContracts.ARTIFACT_TOOL_CONTRACTS, diff --git a/scripts/lib/catalog-core.mjs b/scripts/lib/catalog-core.mjs index efd55ef8a..56ffd544c 100644 --- a/scripts/lib/catalog-core.mjs +++ b/scripts/lib/catalog-core.mjs @@ -49,6 +49,8 @@ const SOURCE_PATHS = { wasmProvider: "dist/wasm/WabtRelease.js", evmContracts: "dist/contracts/evm/evmToolContracts.js", evmProvider: "dist/evm/EvmoleRelease.js", + goContracts: "dist/contracts/go/goToolContracts.js", + goProvider: "dist/go/GoBinaryProvider.js", artifactContracts: "dist/contracts/artifactToolContracts.js", managedContracts: "dist/contracts/managed/managedToolContracts.js", firmwareContracts: "dist/contracts/firmware/firmwareToolContracts.js", diff --git a/scripts/lib/module-boundaries.mjs b/scripts/lib/module-boundaries.mjs index 94f714dff..a7a6bbf91 100644 --- a/scripts/lib/module-boundaries.mjs +++ b/scripts/lib/module-boundaries.mjs @@ -6,6 +6,7 @@ import { fileURLToPath, pathToFileURL } from "node:url"; const PURE_LAYERS = new Set(["domain", "contracts"]); const MIGRATED_PROVIDER_ROOTS = new Set([ "evm", + "go", "wasm", "android", "firmware", diff --git a/scripts/verify-go-binary.mjs b/scripts/verify-go-binary.mjs new file mode 100644 index 000000000..3652c35f8 --- /dev/null +++ b/scripts/verify-go-binary.mjs @@ -0,0 +1,518 @@ +#!/usr/bin/env node +import assert from "node:assert/strict"; +import { isUtf8 } from "node:buffer"; +import { execFile } from "node:child_process"; +import { createHash } from "node:crypto"; +import { mkdir, readFile, writeFile } from "node:fs/promises"; +import { isAbsolute, join } from "node:path"; +import { fileURLToPath } from "node:url"; +import { promisify } from "node:util"; +import { Client } from "@modelcontextprotocol/client"; +import { StdioClientTransport } from "@modelcontextprotocol/client/stdio"; +import { parseEvidence } from "../dist/domain/evidence.js"; +import { goBinarySchema } from "../dist/domain/go/goBinary.js"; +import { PrivateRuntimeRoot } from "../dist/process/PrivateRuntimeRoot.js"; +import { mcpTextValue } from "./lib/mcp-verifier-results.mjs"; +import { createVerifierRun, completeVerifierRun } from "./lib/verifier-run.mjs"; + +const execute = promisify(execFile); +const compiler = process.env.REA_VERIFY_GO_COMMAND ?? "go"; +if (process.env.REA_VERIFY_GO_COMMAND !== undefined && !isAbsolute(compiler)) + throw new Error( + "REA_VERIFY_GO_COMMAND must be an absolute Go compiler path.", + ); +let compilerVersion = null; +const run = createVerifierRun(); +const root = await PrivateRuntimeRoot.create({ prefix: "rea-go-verifier-" }); +const entrypoint = fileURLToPath(new URL("./rea.mjs", import.meta.url)); +const environment = Object.fromEntries( + Object.entries(process.env).filter(([, value]) => typeof value === "string"), +); +delete environment.HOPPER_TARGET_PATH; +const goEnvironment = { + ...environment, + CGO_ENABLED: "0", + GOCACHEPROG: "", + GO111MODULE: "on", + GOENV: "off", + GOFLAGS: "", + GOMAXPROCS: "2", + GOTOOLCHAIN: "local", + GOWORK: "off", + GOPROXY: "off", + GOSUMDB: "off", + GOPATH: join(root.path, "gopath"), + GOCACHE: join(root.path, "cache"), + GOMODCACHE: join(root.path, "modules"), + GOTMPDIR: join(root.path, "tmp"), + // Go's own verifier seam isolates telemetry; no global configuration is changed. + TEST_TELEMETRY_DIR: join(root.path, "telemetry"), +}; +const client = new Client({ name: "go-binary-verifier", version: "1" }); +const transport = new StdioClientTransport({ + command: process.execPath, + args: [entrypoint, "mcp"], + env: environment, + stderr: "pipe", +}); +const targets = [ + ["linux", "amd64", "elf", 64, "little"], + ["linux", "386", "elf", 32, "little"], + ["linux", "arm64", "elf", 64, "little"], + ["linux", "ppc64", "elf", 64, "big"], + ["linux", "mips", "elf", 32, "big"], + ["windows", "amd64", "pe", 64, "little"], + ["windows", "386", "pe", 32, "little"], + ["darwin", "amd64", "macho", 64, "little"], + ["darwin", "arm64", "macho", 64, "little"], +]; +const verified = []; +const omittedCoverage = []; +const failures = []; +try { + await prepareFixture(); + try { + compilerVersion = ( + await execute(compiler, ["version"], { + cwd: root.path, + env: goEnvironment, + timeout: 10_000, + }) + ).stdout.trim(); + } catch (cause) { + throw new Error( + "verify:go:binary requires Go on PATH or absolute REA_VERIFY_GO_COMMAND; Go is only a fixture producer, not a REA runtime dependency.", + { cause }, + ); + } + const host = (await go(["env", "GOHOSTOS", "GOHOSTARCH"])).stdout + .trim() + .split("\n"); + const oracle = join( + root.path, + host[0] === "windows" ? "buildinfo-oracle.exe" : "buildinfo-oracle", + ); + await go( + ["build", "-trimpath", "-buildvcs=false", "-o", oracle, "./oracle"], + { GOOS: host[0], GOARCH: host[1] }, + ); + await client.connect(transport); + for (const target of targets) { + const [os, arch] = target; + const path = join( + root.path, + `${os}-${arch}${os === "windows" ? ".exe" : ""}`, + ); + await go( + [ + "build", + "-trimpath", + "-buildvcs=false", + "-ldflags=-s -w", + "-o", + path, + ".", + ], + { GOOS: os, GOARCH: arch }, + ); + await verify(path, target, oracle); + if (os === "linux" && arch === "amd64") { + const sectionless = join(root.path, "linux-amd64-sectionless"); + const bytes = Buffer.from(await readFile(path)); + bytes.fill(0, 40, 48); // ELF64 e_shoff. + bytes.fill(0, 58, 64); // e_shentsize, e_shnum and e_shstrndx. + await writeFile(sectionless, bytes); + await verify(sectionless, target, oracle); + } + } + if (process.platform === "win32") + omittedCoverage.push( + "Compiler-produced non-UTF-8 argv strings were not verified on Windows; Windows argv cannot preserve arbitrary byte arguments.", + ); + else { + const path = join(root.path, "linux-amd64-byte-strings"); + const expected = JSON.parse( + ( + await execute(oracle, ["--build-byte-fixture", compiler, path], { + cwd: root.path, + env: { ...goEnvironment, GOOS: "linux", GOARCH: "amd64" }, + timeout: 120_000, + maxBuffer: 1024 * 1024, + }) + ).stdout, + ); + await verify(path, targets[0], oracle, expected); + } +} catch (cause) { + failures.push(cause); +} finally { + for (const close of [ + () => client.close(), + () => transport.close(), + () => root.close(), + ]) { + try { + await close(); + } catch (cause) { + failures.push(cause); + } + } +} +const verifier = await completeVerifierRun(run); +try { + await assert.rejects(readFile(join(root.path, "go.mod")), { code: "ENOENT" }); + if (verifier.process_lineage.status === "verified") + assert.deepEqual(verifier.process_lineage.descendants, []); +} catch (cause) { + failures.push(cause); +} +if (failures.length > 0) { + console.error( + JSON.stringify( + { + status: "failed", + compiler: compilerVersion, + verified, + omitted_coverage: omittedCoverage, + verifier, + }, + null, + 2, + ), + ); + throw new AggregateError( + failures, + "Real Go metadata verification failed; cleanup failures are retained.", + ); +} +console.log( + JSON.stringify( + { + status: "passed", + compiler: compilerVersion, + binaries: verified.length, + public_cases: verified.length * 2, + verified, + omitted_coverage: omittedCoverage, + fixture_execution: + "not-requested; only the Go fixture producer and test-owned buildinfo oracle/helper were executed", + verifier, + }, + null, + 2, + ), +); + +async function go(args, overrides = {}) { + return execute(compiler, args, { + cwd: root.path, + env: { ...goEnvironment, ...overrides }, + timeout: 120_000, + maxBuffer: 1024 * 1024, + }); +} + +async function prepareFixture() { + await mkdir(join(root.path, "tmp")); + await mkdir(join(root.path, "telemetry")); + await writeFile(join(root.path, "telemetry", "mode"), "off\n"); + await mkdir(join(root.path, "dependency")); + await mkdir(join(root.path, "oracle")); + await writeFile( + join(root.path, "go.mod"), + "module example.test/rea-go-fixture\n\ngo 1.20\n\nrequire example.test/dependency v1.2.3\nreplace example.test/dependency => ./dependency\n", + ); + await writeFile( + join(root.path, "dependency", "go.mod"), + "module example.test/dependency\n\ngo 1.20\n", + ); + await writeFile( + join(root.path, "dependency", "dependency.go"), + 'package dependency\nfunc Value() string { return "REA fixture" }\n', + ); + await writeFile( + join(root.path, "main.go"), + 'package main\nimport ("fmt"; "example.test/dependency")\nfunc main() { fmt.Println(dependency.Value()) }\n', + ); + await writeFile( + join(root.path, "oracle", "main.go"), + String.raw`package main + +import ( + "context" + "debug/buildinfo" + "encoding/base64" + "encoding/json" + "os" + "os/exec" + "time" + "unicode/utf8" +) + +func main() { + byteFixture := len(os.Args) == 4 && os.Args[1] == "--build-byte-fixture" + path := os.Args[1] + if byteFixture { + path = os.Args[3] + ctx, cancel := context.WithTimeout(context.Background(), 100*time.Second) + defer cancel() + cmd := exec.CommandContext(ctx, os.Args[2], "build", "-buildvcs=false", + "-tags=" + string([]byte{0xff}), + "-ldflags=-X runtime.buildVersion=custom" + string([]byte{0xff}), + "-o", path, ".") + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + if err := cmd.Run(); err != nil { panic(err) } + } + info, err := buildinfo.ReadFile(path) + if err != nil { panic(err) } + var result interface{} = info + if byteFixture { + settings := make([]map[string]string, 0) + byteSettings := make([]map[string]string, 0) + for _, setting := range info.Settings { + if utf8.ValidString(setting.Key) && utf8.ValidString(setting.Value) { + settings = append(settings, map[string]string{"Key": setting.Key, "Value": setting.Value}) + } else { + byteSettings = append(byteSettings, map[string]string{ + "KeyBytesBase64": base64.StdEncoding.EncodeToString([]byte(setting.Key)), + "ValueBytesBase64": base64.StdEncoding.EncodeToString([]byte(setting.Value)), + }) + } + } + result = map[string]interface{}{ + "GoVersion": nil, + "GoVersionBytesBase64": base64.StdEncoding.EncodeToString([]byte(info.GoVersion)), + "Path": info.Path, "Main": info.Main, "Deps": info.Deps, + "Settings": settings, "ByteSettings": byteSettings, + } + } + if err := json.NewEncoder(os.Stdout).Encode(result); err != nil { panic(err) } +} +`, + ); +} + +async function inspect(mode, path) { + let envelope; + if (mode === "cli") { + const { stdout } = await execute( + process.execPath, + [entrypoint, "inspect-go-binary", path, "--json"], + { env: environment, timeout: 30_000, maxBuffer: 8 * 1024 * 1024 }, + ); + envelope = JSON.parse(stdout); + } else { + const response = await client.callTool( + { name: "inspect_go_binary", arguments: { path } }, + { timeout: 30_000 }, + ); + assert.notEqual(response.isError, true, mcpTextValue(response)); + envelope = JSON.parse(mcpTextValue(response)); + } + const evidence = parseEvidence(envelope); + assert.equal(evidence.subject.local_path, path); + const report = goBinarySchema.parse(evidence.normalized_result); + assert.equal(evidence.subject.digest.sha256, report.artifact.sha256); + return { evidence, report }; +} + +async function verify(path, target, oracle, byteExpected = null) { + const bytes = await readFile(path); + const expected = + byteExpected ?? + JSON.parse( + ( + await execute(oracle, [path], { + timeout: 10_000, + maxBuffer: 1024 * 1024, + }) + ).stdout, + ); + const reports = []; + for (const mode of ["cli", "mcp"]) { + const { evidence, report } = await inspect(mode, path); + assert.equal(report.format, target[2]); + assert.equal(report.architecture, target[1]); + assert.equal( + evidence.subject.architecture, + { amd64: "x86_64", 386: "x86", arm64: "arm64", mips: "mips" }[ + target[1] + ] ?? null, + ); + assert.equal(report.bits, target[3]); + assert.equal(report.byte_order, target[4]); + assert.equal(report.artifact.path, path); + assert.equal(report.artifact.bytes, bytes.length); + assert.equal( + report.artifact.sha256, + createHash("sha256").update(bytes).digest("hex"), + ); + const info = report.build_info; + assert.notEqual(info, null); + assert.equal(info.go_version, expected.GoVersion); + assert.equal(info.module.path, expected.Path); + assert.deepEqual( + normalizeObservedModule(info.module.main), + normalizeModule(expected.Main), + ); + assert.deepEqual( + info.module.dependencies.map(normalizeObservedModule), + (expected.Deps ?? []).map(normalizeModule), + ); + assert.deepEqual( + info.module.settings, + (expected.Settings ?? []).map(({ Key, Value }) => ({ + key: Key, + value: Value, + })), + ); + assert.equal(info.module.complete, byteExpected === null); + if (byteExpected === null) { + assert.deepEqual(info.module.unparsed_lines, []); + assert.deepEqual(info.module.unparsed_line_bytes_base64, []); + } else verifyByteStrings(info, expected); + verifySource(info, bytes); + reports.push(report); + assert.deepEqual( + await readFile(path), + bytes, + `${mode} changed source bytes`, + ); + } + assert.deepEqual( + reports[0], + reports[1], + "Public CLI and MCP projections disagree", + ); + verified.push({ + target: `${target[0]}/${target[1]}`, + file: + byteExpected === null + ? path.endsWith("sectionless") + ? "sectionless" + : "stripped" + : "byte-valued-strings", + go_version: expected.GoVersion, + ...(byteExpected === null + ? {} + : { go_version_bytes_base64: expected.GoVersionBytesBase64 }), + }); +} + +function verifyByteStrings(info, expected) { + const rawByte = Buffer.from([0xff]); + const compilerBytes = Buffer.concat([Buffer.from("custom"), rawByte]); + const ldflagsBytes = Buffer.concat([ + Buffer.from("-X runtime.buildVersion=custom"), + rawByte, + ]); + assert.equal(info.go_version, null); + assert.equal(info.module_text, null); + assert.equal(info.go_version_bytes_base64, compilerBytes.toString("base64")); + assert.equal(info.go_version_bytes_base64, expected.GoVersionBytesBase64); + assert.deepEqual(expected.ByteSettings, [ + { + KeyBytesBase64: Buffer.from("-ldflags").toString("base64"), + ValueBytesBase64: ldflagsBytes.toString("base64"), + }, + { + KeyBytesBase64: Buffer.from("-tags").toString("base64"), + ValueBytesBase64: rawByte.toString("base64"), + }, + ]); + assert.deepEqual(info.module.unparsed_lines, [ + 'build\t-ldflags="-X runtime.buildVersion=custom\\xff"', + ]); + assert.deepEqual(info.module.unparsed_line_bytes_base64, [ + Buffer.concat([Buffer.from("build\t-tags="), rawByte]).toString("base64"), + ]); +} + +function normalizeModule(module) { + const identity = ({ Path, Version, Sum }) => ({ + path: Path, + version: Version, + sum: Sum === "" || Sum === undefined ? null : Sum, + }); + return { + ...identity(module), + replacement: module.Replace == null ? null : identity(module.Replace), + }; +} + +function normalizeObservedModule(module) { + // debug/buildinfo JSON represents both absent and explicitly empty sums as "". + const identity = (value) => ({ + ...value, + sum: value.sum === "" ? null : value.sum, + }); + return { + ...identity(module), + replacement: + module.replacement === null ? null : identity(module.replacement), + }; +} + +function verifySource(info, bytes) { + assert.deepEqual( + bytes.subarray(info.header_offset, info.header_offset + 14), + Buffer.from("ff20476f206275696c64696e663a", "hex"), + ); + assert.equal( + info.encoding, + "inline", + "Current compiler fixture must use inline string encoding", + ); + const version = inlineString(bytes, info.header_offset + 32); + const module = inlineString(bytes, version.offset + version.bytes.length); + assert.deepEqual(info.version_location, { + offset: version.offset, + bytes: version.bytes.length, + }); + assert.deepEqual(info.module_location, { + offset: module.offset, + bytes: module.bytes.length, + }); + assert.equal( + isUtf8(version.bytes) ? version.bytes.toString("utf8") : null, + info.go_version, + ); + assert.equal(version.bytes.toString("base64"), info.go_version_bytes_base64); + assert.equal(module.bytes.toString("base64"), info.module_bytes_base64); + assert.deepEqual( + module.bytes.subarray(0, 16), + Buffer.from("3077af0c9274080241e1c107e6d618e6", "hex"), + ); + assert.deepEqual( + module.bytes.subarray(-16), + Buffer.from("f932433186182072008242104116d8f2", "hex"), + ); + const moduleBody = module.bytes.subarray(16, -16); + assert.equal( + isUtf8(moduleBody) ? moduleBody.toString("utf8") : null, + info.module_text, + ); + assert.equal(moduleBody.at(-1), 10); +} + +function inlineString(bytes, start) { + let length = 0; + let offset = start; + let shift = 0; + for (;;) { + assert.ok( + offset < bytes.length && shift < 49, + "Fixture string length is invalid", + ); + const byte = bytes[offset++]; + length += (byte & 127) * 2 ** shift; + if ((byte & 128) === 0) break; + shift += 7; + } + assert.ok( + length <= bytes.length - offset, + "Fixture string contents are truncated", + ); + return { offset, bytes: bytes.subarray(offset, offset + length) }; +} diff --git a/src/application/CapabilityInventory.ts b/src/application/CapabilityInventory.ts index 1bf51884e..7c9d3910c 100644 --- a/src/application/CapabilityInventory.ts +++ b/src/application/CapabilityInventory.ts @@ -334,6 +334,8 @@ const workflowAvailabilityFor = ({ kind, policy, }: AvailabilityContext): Availability | null => { + if (name === "inspect_go_binary") + return { reason: "available", remediation: null }; if (name === "trace_web_module_imports") return { reason: "available", diff --git a/src/application/go/GoBinaryPort.ts b/src/application/go/GoBinaryPort.ts new file mode 100644 index 000000000..2094e9109 --- /dev/null +++ b/src/application/go/GoBinaryPort.ts @@ -0,0 +1,19 @@ +import type { + ExecutionOptions, + ProviderIdentity, +} from "../AnalysisProvider.js"; +import type { AnalysisError } from "../../domain/analysisErrorBase.js"; +import type { + GoBinary, + InspectGoBinaryInput, +} from "../../domain/go/goBinary.js"; +import type { Result } from "../../domain/result.js"; + +/** Replaceable offline build-information reader with no target-execution authority. */ +export interface GoBinaryPort { + readonly identity: ProviderIdentity; + inspect( + input: InspectGoBinaryInput, + options?: ExecutionOptions, + ): Promise>; +} diff --git a/src/application/go/GoBinaryService.test.ts b/src/application/go/GoBinaryService.test.ts new file mode 100644 index 000000000..127fe9413 --- /dev/null +++ b/src/application/go/GoBinaryService.test.ts @@ -0,0 +1,178 @@ +import { expect, it } from "vitest"; +import { GoBinaryService } from "./GoBinaryService.js"; +import { + AnalysisCancelledError, + AnalysisInputError, + AnalysisOutputError, +} from "../../domain/analysisErrorCore.js"; +import type { GoBinary } from "../../domain/go/goBinary.js"; +import { ok } from "../../domain/result.js"; + +const identity = { + id: "fixture-go", + name: "Source-owned Go reader seam", + version: "1", +}; +const report: GoBinary = { + artifact: { path: "/artifacts/program", sha256: "a".repeat(64), bytes: 1024 }, + format: "elf", + architecture: "riscv64", + bits: 64, + byte_order: "little", + build_info: null, + limitations: ["Build information unavailable."], +}; + +it("rejects invalid paths and extra caller arguments before invoking the reader", async () => { + let calls = 0; + const service = new GoBinaryService({ + identity, + inspect: () => { + calls += 1; + return Promise.resolve(ok(report)); + }, + }); + for (const input of [ + { path: "relative" }, + { path: "/artifacts/\0program" }, + { path: report.artifact.path, execute: true }, + ]) { + const result = await service.inspect(input); + expect(result.ok).toBe(false); + if (!result.ok) expect(result.error).toBeInstanceOf(AnalysisInputError); + } + expect(calls).toBe(0); +}); + +it("preserves unsupported subject architectures and does not duplicate metadata", async () => { + const service = new GoBinaryService({ + identity, + inspect: () => Promise.resolve(ok(report)), + }); + const result = await service.inspect({ path: report.artifact.path }); + expect(result.ok).toBe(true); + if (!result.ok) throw result.error; + expect(result.value.subject).toMatchObject({ + architecture: null, + local_path: report.artifact.path, + digest: { sha256: report.artifact.sha256 }, + }); + expect(result.value.normalized_result).toEqual(report); + expect(result.value.raw_result).toBeNull(); +}); + +it("preserves byte-valued build metadata and validates compiler source lengths", async () => { + const moduleBytes = Buffer.concat([ + Buffer.from("3077af0c9274080241e1c107e6d618e6", "hex"), + Buffer.from([0xff, 10]), + Buffer.from("f932433186182072008242104116d8f2", "hex"), + ]); + const buildInfo: NonNullable = { + header_offset: 64, + encoding: "inline", + go_version: null, + go_version_bytes_base64: "/w==", + module_text: null, + module_bytes_base64: moduleBytes.toString("base64"), + version_location: { offset: 128, bytes: 1 }, + module_location: { offset: 256, bytes: moduleBytes.length }, + module: { + path: null, + main: null, + dependencies: [], + settings: [], + unparsed_lines: [], + unparsed_line_bytes_base64: ["/w=="], + complete: false, + }, + }; + const partial: GoBinary = { + ...report, + build_info: buildInfo, + limitations: ["Some embedded strings contain non-UTF-8 bytes."], + }; + const result = await new GoBinaryService({ + identity, + inspect: () => Promise.resolve(ok(partial)), + }).inspect({ path: report.artifact.path }); + expect(result.ok).toBe(true); + if (!result.ok) throw result.error; + expect(result.value.normalized_result).toEqual(partial); + + const mismatched: GoBinary = { + ...partial, + build_info: { + ...buildInfo, + version_location: { offset: 128, bytes: 2 }, + }, + }; + const invalid = await new GoBinaryService({ + identity, + inspect: () => Promise.resolve(ok(mismatched)), + }).inspect({ path: report.artifact.path }); + expect(invalid.ok).toBe(false); + if (!invalid.ok) expect(invalid.error).toBeInstanceOf(AnalysisOutputError); +}); + +it("refuses reader identity changes and invalid original source ranges", async () => { + const outside: GoBinary = { + ...report, + build_info: { + header_offset: 1000, + encoding: "inline", + go_version: "go1.26.0", + go_version_bytes_base64: Buffer.from("go1.26.0").toString("base64"), + module_text: "", + module_bytes_base64: "", + version_location: { offset: 2000, bytes: 8 }, + module_location: { offset: 0, bytes: 0 }, + module: { + path: null, + main: null, + dependencies: [], + settings: [], + unparsed_lines: [], + unparsed_line_bytes_base64: [], + complete: true, + }, + }, + }; + for (const value of [ + { ...report, artifact: { ...report.artifact, path: "/artifacts/other" } }, + outside, + ]) { + const result = await new GoBinaryService({ + identity, + inspect: () => Promise.resolve(ok(value)), + }).inspect({ path: report.artifact.path }); + expect(result.ok).toBe(false); + if (!result.ok) expect(result.error).toBeInstanceOf(AnalysisOutputError); + } +}); + +it("honors cancellation before reading and after a completed observation", async () => { + const controller = new AbortController(); + let calls = 0; + const service = new GoBinaryService({ + identity, + inspect: () => { + calls += 1; + controller.abort(); + return Promise.resolve(ok(report)); + }, + }); + const completed = await service.inspect( + { path: report.artifact.path }, + { signal: controller.signal }, + ); + expect(completed.ok).toBe(false); + if (!completed.ok) + expect(completed.error).toBeInstanceOf(AnalysisCancelledError); + const before = await service.inspect( + { path: report.artifact.path }, + { signal: controller.signal }, + ); + expect(before.ok).toBe(false); + if (!before.ok) expect(before.error).toBeInstanceOf(AnalysisCancelledError); + expect(calls).toBe(1); +}); diff --git a/src/application/go/GoBinaryService.ts b/src/application/go/GoBinaryService.ts new file mode 100644 index 000000000..f5642c96c --- /dev/null +++ b/src/application/go/GoBinaryService.ts @@ -0,0 +1,106 @@ +import { isAbsolute } from "node:path"; +import type { ExecutionOptions } from "../AnalysisProvider.js"; +import type { GoBinaryPort } from "./GoBinaryPort.js"; +import type { AnalysisError } from "../../domain/analysisErrorBase.js"; +import { + AnalysisCancelledError, + AnalysisInputError, + AnalysisOutputError, +} from "../../domain/analysisErrorCore.js"; +import { createEvidence, type Evidence } from "../../domain/evidence.js"; +import { BINARY_ARCHITECTURES } from "../../domain/binaryTargetTypes.js"; +import { + goBinarySchema, + inspectGoBinaryInputSchema, +} from "../../domain/go/goBinary.js"; +import { analysisInputErrorFromIssues } from "../../domain/inputIssueProjection.js"; +import { err, ok, type Result } from "../../domain/result.js"; + +const OPERATION = "inspect_go_binary"; +const architectureForSubject = (architecture: string) => { + switch (architecture) { + case "386": + return "x86"; + case "amd64": + return "x86_64"; + default: + return BINARY_ARCHITECTURES.find( + (supported) => supported === architecture, + ); + } +}; + +/** Shared exact input validation and artifact-bound Evidence for CLI and MCP. */ +export class GoBinaryService { + constructor(readonly provider: GoBinaryPort) {} + + /** Inspect one explicitly selected file without acquiring a binary session. */ + async inspect( + rawInput: unknown, + options?: ExecutionOptions, + ): Promise> { + if (options?.signal?.aborted) + return err(new AnalysisCancelledError(OPERATION)); + const input = inspectGoBinaryInputSchema.safeParse(rawInput); + if (!input.success) + return err( + analysisInputErrorFromIssues(OPERATION, input.error.issues, rawInput, { + cause: input.error, + }), + ); + if (!isAbsolute(input.data.path)) + return err( + new AnalysisInputError(OPERATION, undefined, [ + { + path: ["path"], + reason: "invalid_format", + message: "Expected an absolute filesystem path on this host.", + }, + ]), + ); + const inspected = await this.provider.inspect(input.data, options); + if (!inspected.ok) return inspected; + if (options?.signal?.aborted) + return err(new AnalysisCancelledError(OPERATION)); + const report = goBinarySchema.safeParse(inspected.value); + if (!report.success || report.data.artifact.path !== input.data.path) + return err( + new AnalysisOutputError( + OPERATION, + "Go build-information reader returned malformed metadata or changed the selected artifact identity.", + ), + ); + const value = report.data; + const architecture = architectureForSubject(value.architecture); + return ok( + createEvidence( + { + path: value.artifact.path, + sha256: value.artifact.sha256, + format: value.format === "macho" ? "mach-o" : value.format, + ...(architecture === undefined ? {} : { architecture }), + }, + this.provider.identity, + { + operation: OPERATION, + parameters: input.data, + result: value, + confidence: "observed", + limitations: value.limitations, + locations: [ + { kind: "artifact-path", path: value.artifact.path }, + ...(value.build_info === null + ? [] + : [ + { + kind: "file-offset-range" as const, + start: value.build_info.header_offset, + end: value.build_info.header_offset + 32, + }, + ]), + ], + }, + ), + ); + } +} diff --git a/src/cli.ts b/src/cli.ts index 2d520f33d..1cbe3b896 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -2,6 +2,7 @@ import { registerWasmCommands } from "./cli/wasmCommands.js"; import { snapshotEnvironment } from "./process/snapshotEnvironment.js"; import { createDirectAnalysis } from "./composition/directAnalysis.js"; import { registerEvmCommands } from "./cli/evmCommands.js"; +import { registerGoCommands } from "./cli/goCommands.js"; import { registerAnalysisViewCommands } from "./cli/analysisViewCommands.js"; import { registerBinaryDiagnosticsCommands } from "./cli/binaryDiagnosticsCommands.js"; import { Cli } from "incur"; @@ -75,6 +76,7 @@ export const createCli = ( registerUtilityCommands(cli, logger, environment, analysis); registerWasmCommands(cli, logger, environment); registerEvmCommands(cli, logger, environment); + registerGoCommands(cli, logger); registerArtifactCommands(cli, logger, analysis.runProviderAnalysis); registerManagedCommands(cli, logger, analysis.runProviderAnalysis); registerAndroidCommands(cli, logger, environment); diff --git a/src/cli/goCommands.ts b/src/cli/goCommands.ts new file mode 100644 index 000000000..d67a344e0 --- /dev/null +++ b/src/cli/goCommands.ts @@ -0,0 +1,31 @@ +import { z } from "incur"; +import { resolve } from "node:path"; +import { createGoBinaryService } from "../composition/go.js"; +import { CLI_COMMANDS } from "../cliCommandNames.js"; +import { logCliCommand } from "../cliLogging.js"; +import { projectAnalysisError } from "../domain/analysisErrorProjection.js"; +import type { Logger } from "pino"; +import type { CliInstance } from "./types.js"; +import { withCommandCancellation } from "./commandCancellation.js"; + +/** Resolve caller paths and inspect static build metadata through the shared workflow. */ +export const registerGoCommands = (cli: CliInstance, logger: Logger): void => { + const service = createGoBinaryService(); + cli.command(CLI_COMMANDS.inspectGoBinary, { + description: + "Inspect embedded Go compiler, modules and build settings without target execution", + args: z.object({ + path: z.string().describe("Local ELF, PE or thin Mach-O image"), + }), + run: ({ args }) => + withCommandCancellation((signal) => + logCliCommand(logger, CLI_COMMANDS.inspectGoBinary, async () => { + const result = await service.inspect( + { path: resolve(args.path) }, + { signal }, + ); + return result.ok ? result.value : projectAnalysisError(result.error); + }), + ), + }); +}; diff --git a/src/cliCommandNames.ts b/src/cliCommandNames.ts index c2415fccf..aa2a463bf 100644 --- a/src/cliCommandNames.ts +++ b/src/cliCommandNames.ts @@ -42,6 +42,7 @@ export const CLI_COMMANDS = Object.freeze({ inspectManagedArtifact: "inspect-managed-artifact", inspectRecordedCrash: "inspect-recorded-crash", inspectBinaryLayout: "inspect-binary-layout", + inspectGoBinary: "inspect-go-binary", inspectPeResources: "inspect-pe-resources", inspectAnalysisView: "inspect-analysis-view", inspectEvidenceBundle: "inspect-evidence-bundle", diff --git a/src/composition/go.ts b/src/composition/go.ts new file mode 100644 index 000000000..5033c2787 --- /dev/null +++ b/src/composition/go.ts @@ -0,0 +1,6 @@ +import { GoBinaryService } from "../application/go/GoBinaryService.js"; +import { GoBinaryProvider } from "../go/GoBinaryProvider.js"; + +/** Compose bundled offline inspection without acquiring a toolchain or starting any process. */ +export const createGoBinaryService = (): GoBinaryService => + new GoBinaryService(new GoBinaryProvider()); diff --git a/src/contracts/go/goToolContracts.ts b/src/contracts/go/goToolContracts.ts new file mode 100644 index 000000000..d2593a2d3 --- /dev/null +++ b/src/contracts/go/goToolContracts.ts @@ -0,0 +1,26 @@ +import { + goBinarySchema, + inspectGoBinaryInputSchema, +} from "../../domain/go/goBinary.js"; +import type { ToolContract } from "../toolContractTypes.js"; +import { toolContractMetadata } from "../toolEffects.js"; +import { evidenceResultOf } from "../toolOutputSchemaPrimitives.js"; + +/** Static Go metadata is independent of active native-analysis providers and host toolchains. */ +export const GO_TOOL_CONTRACTS = [ + { + name: "inspect_go_binary", + ...toolContractMetadata("inspect_go_binary"), + kind: "artifact-provider", + description: + "Inspect embedded Go compiler version, main module, dependency/replacement versions and build settings in an explicit local ELF, PE or thin Mach-O image. Returns original artifact SHA-256, exact build-info source ranges, raw framed module bytes and unparsed module-text lines inline as observed Evidence. Supports inline and historical pointer encodings without installing Go, opening a disassembler, executing the target, writing temporary files or accessing the network. Missing metadata is reported as unknown, not proof that an image is not Go. Does not recover functions, source mappings, types or runtime behavior. Resource guards bound files to 256 MiB, aggregate embedded strings to 1 MiB, structural table decoding to 16 MiB and complete inline metadata to 8 MiB; malformed, unsupported and oversized inputs receive typed failures rather than partial success.", + inputSchema: inspectGoBinaryInputSchema, + outputSchema: evidenceResultOf(goBinarySchema), + examples: [ + { + title: "Inspect embedded build provenance", + input: { path: "/artifacts/application" }, + }, + ], + }, +] as const satisfies readonly ToolContract[]; diff --git a/src/contracts/toolContracts.ts b/src/contracts/toolContracts.ts index 9361cbffc..574cbb2a5 100644 --- a/src/contracts/toolContracts.ts +++ b/src/contracts/toolContracts.ts @@ -1,5 +1,6 @@ import { WASM_TOOL_CONTRACTS } from "./wasm/wasmToolContracts.js"; import { EVM_TOOL_CONTRACTS } from "./evm/evmToolContracts.js"; +import { GO_TOOL_CONTRACTS } from "./go/goToolContracts.js"; import { ANALYSIS_VIEW_TOOL_CONTRACTS } from "./analysisViewToolContracts.js"; import { BINARY_DIAGNOSTICS_TOOL_CONTRACTS } from "./native/binaryDiagnosticsToolContracts.js"; import { NATIVE_TOOL_CONTRACTS } from "./native/nativeToolContracts.js"; @@ -32,6 +33,7 @@ export const TOOL_CONTRACTS = [ ...ANALYSIS_VIEW_TOOL_CONTRACTS, ...ARTIFACT_TOOL_CONTRACTS, ...EVM_TOOL_CONTRACTS, + ...GO_TOOL_CONTRACTS, ...WASM_TOOL_CONTRACTS, ...MANAGED_TOOL_CONTRACTS, ...ANDROID_TOOL_CONTRACTS, diff --git a/src/contracts/toolEffects.test.ts b/src/contracts/toolEffects.test.ts index f5043d240..135d96ef8 100644 --- a/src/contracts/toolEffects.test.ts +++ b/src/contracts/toolEffects.test.ts @@ -16,6 +16,7 @@ const EXECUTION_WORDING_EXCEPTIONS: Readonly> = { inspect_native_load_image: "states that it does not execute the target", resolve_native_call_targets: "states that it does not execute code", inspect_pe_resources: "states that it does not execute the image", + inspect_go_binary: "reads embedded metadata without executing the target", inspect_binary_layout: "parses the binary offline with operator-configured pwntools", inspect_recorded_crash: "inspects a core file without launching its target", diff --git a/src/contracts/toolEffects.ts b/src/contracts/toolEffects.ts index 90edfaf18..38a5633f9 100644 --- a/src/contracts/toolEffects.ts +++ b/src/contracts/toolEffects.ts @@ -53,6 +53,7 @@ const sessionEvidence = effects({ mutatesSession: true }); /** Explicit effect audit for every public tool. */ export const TOOL_EFFECTS: Readonly> = { + inspect_go_binary: evidence, inspect_wasm_artifact: effects({ mutatesSession: true, writesFilesystem: true, diff --git a/src/domain/go/goBinary.ts b/src/domain/go/goBinary.ts new file mode 100644 index 000000000..8714159c3 --- /dev/null +++ b/src/domain/go/goBinary.ts @@ -0,0 +1,112 @@ +import { z } from "zod"; +import { digestSchema } from "../digests.js"; +import { localPathStringSchema } from "../localPath.js"; +import { CANONICAL_BASE64_PATTERN } from "../stringPatterns.js"; + +const sourceRangeSchema = z.strictObject({ + offset: z.number().int().nonnegative(), + bytes: z.number().int().nonnegative(), +}); +const moduleIdentitySchema = z.strictObject({ + path: z.string(), + version: z.string(), + sum: z.string().nullable(), +}); + +/** Module identities retain development versions, local replacements and missing sums verbatim. */ +export const goModuleSchema = moduleIdentitySchema.extend({ + replacement: moduleIdentitySchema.nullable(), +}); + +/** Parsed records alongside unrecognized text lines and exact non-UTF-8 line bytes. */ +export const goModuleMetadataSchema = z.strictObject({ + path: z.string().nullable(), + main: goModuleSchema.nullable(), + dependencies: z.array(goModuleSchema), + settings: z.array(z.strictObject({ key: z.string(), value: z.string() })), + unparsed_lines: z.array(z.string()), + unparsed_line_bytes_base64: z.array( + z.string().regex(CANONICAL_BASE64_PATTERN), + ), + complete: z.boolean(), +}); + +/** One exact local artifact, independent of any active disassembler target. */ +export const inspectGoBinaryInputSchema = z.strictObject({ + path: localPathStringSchema.describe( + "Absolute filesystem path to the selected executable or library", + ), +}); + +/** Compiler-written build information and its original file-backed source ranges. */ +export const goBuildInfoSchema = z.strictObject({ + header_offset: z.number().int().nonnegative(), + encoding: z.enum(["inline", "pointer"]), + go_version: z.string().nullable(), + go_version_bytes_base64: z.string().regex(CANONICAL_BASE64_PATTERN), + module_text: z.string().nullable(), + module_bytes_base64: z.string().regex(CANONICAL_BASE64_PATTERN), + version_location: sourceRangeSchema, + module_location: sourceRangeSchema, + module: goModuleMetadataSchema, +}); + +/** Complete bounded build-metadata observation; absence does not identify a binary as non-Go. */ +export const goBinarySchema = z + .strictObject({ + artifact: z.strictObject({ + path: localPathStringSchema, + sha256: digestSchema, + bytes: z.number().int().nonnegative(), + }), + format: z.enum(["elf", "pe", "macho"]), + architecture: z.string(), + bits: z.union([z.literal(32), z.literal(64)]), + byte_order: z.enum(["little", "big"]), + build_info: goBuildInfoSchema.nullable(), + limitations: z.array(z.string()), + }) + .superRefine((report, context) => { + const info = report.build_info; + if (info === null) return; + if (info.header_offset > report.artifact.bytes - 32) + context.addIssue({ + code: "custom", + path: ["build_info", "header_offset"], + message: "Build-info header is outside the selected artifact.", + }); + for (const field of ["version_location", "module_location"] as const) { + const range = info[field]; + if ( + range.offset > report.artifact.bytes || + range.bytes > report.artifact.bytes - range.offset + ) + context.addIssue({ + code: "custom", + path: ["build_info", field], + message: "Build-info source range is outside the selected artifact.", + }); + } + for (const [field, range, description] of [ + ["go_version_bytes_base64", info.version_location, "compiler"], + ["module_bytes_base64", info.module_location, "module"], + ] as const) { + const encoded = info[field]; + const padding = encoded.endsWith("==") + ? 2 + : encoded.endsWith("=") + ? 1 + : 0; + if ((encoded.length / 4) * 3 - padding !== range.bytes) + context.addIssue({ + code: "custom", + path: ["build_info", field], + message: `Encoded ${description} bytes do not match their reported source length.`, + }); + } + }); + +export type GoModule = z.infer; +export type GoModuleMetadata = z.infer; +export type GoBinary = z.infer; +export type InspectGoBinaryInput = z.infer; diff --git a/src/go/GoBinaryContainer.ts b/src/go/GoBinaryContainer.ts new file mode 100644 index 000000000..56fcb2b74 --- /dev/null +++ b/src/go/GoBinaryContainer.ts @@ -0,0 +1,216 @@ +/** Distinguish corrupt recognized binaries from containers outside parser coverage. */ +export class GoBinaryFormatFailure extends Error { + constructor( + readonly kind: "malformed" | "unsupported", + message: string, + ) { + super(message); + this.name = "GoBinaryFormatFailure"; + } +} + +/** Resource boundary exceeded while decoding metadata or native container structure. */ +export class GoBinaryResourceFailure extends Error { + constructor( + readonly boundary: "build-info" | "structure", + readonly maximum_bytes: number, + message: string, + ) { + super(message); + this.name = "GoBinaryResourceFailure"; + } +} + +/** One file-backed virtual range; addresses stay exact until mapped to file offsets. */ +export interface GoFileMapping { + readonly address: bigint; + readonly offset: number; + readonly size: number; +} + +/** Declared zero-initialized virtual memory with no corresponding file bytes. */ +export interface GoZeroFillMapping { + readonly address: bigint; + readonly size: bigint; +} + +/** Native container facts and its producer-defined build-info search area. */ +export interface GoBinaryContainer { + readonly format: "elf" | "pe" | "macho"; + readonly architecture: string; + readonly bits: 32 | 64; + readonly byte_order: "little" | "big"; + readonly mappings: readonly GoFileMapping[]; + readonly zero_fills: readonly GoZeroFillMapping[]; + readonly search: GoFileMapping | null; +} + +/** Reader that checks every structural range before decoding numeric fields. */ +export class GoBinaryReader { + constructor( + readonly bytes: Buffer, + readonly little: boolean, + ) {} + + range(offset: number, size: number, label: string): Buffer { + if ( + !Number.isSafeInteger(offset) || + !Number.isSafeInteger(size) || + offset < 0 || + size < 0 || + offset > this.bytes.length || + size > this.bytes.length - offset + ) + throw new GoBinaryFormatFailure( + "malformed", + `${label} range is truncated or outside the file`, + ); + return this.bytes.subarray(offset, offset + size); + } + + u16(offset: number): number { + const value = this.range(offset, 2, "16-bit field"); + return this.little ? value.readUInt16LE() : value.readUInt16BE(); + } + + u32(offset: number): number { + const value = this.range(offset, 4, "32-bit field"); + return this.little ? value.readUInt32LE() : value.readUInt32BE(); + } + + word(offset: number, bits: 32 | 64): bigint { + if (bits === 32) return BigInt(this.u32(offset)); + const value = this.range(offset, 8, "64-bit field"); + return this.little ? value.readBigUInt64LE() : value.readBigUInt64BE(); + } + + fileRange(offset: bigint, size: bigint, label: string): GoFileMapping { + if ( + offset > BigInt(this.bytes.length) || + size > BigInt(this.bytes.length) - offset + ) + throw new GoBinaryFormatFailure( + "malformed", + `${label} range is outside the file`, + ); + const result = { address: 0n, offset: Number(offset), size: Number(size) }; + this.range(result.offset, result.size, label); + return result; + } + + table(offset: bigint, count: number, width: number, label: string): number { + const size = BigInt(count) * BigInt(width); + if (size > 16n * 1024n * 1024n) + throw new GoBinaryResourceFailure( + "structure", + 16 * 1024 * 1024, + `${label} exceeds the 16 MiB structural decoding budget`, + ); + return this.fileRange(offset, size, label).offset; + } +} + +/** Map a virtual span without losing precision or selecting an ambiguous alias. */ +export const mappedFileOffset = ( + mappings: readonly GoFileMapping[], + address: bigint, + size: number, + zeroFills: readonly GoZeroFillMapping[] = [], +): number => { + let found: number | undefined; + for (const mapping of mappings) { + const delta = address - mapping.address; + if ( + delta < 0n || + delta > BigInt(mapping.size) || + BigInt(size) > BigInt(mapping.size) - delta + ) + continue; + const offset = mapping.offset + Number(delta); + if (found !== undefined && found !== offset) + throw new GoBinaryFormatFailure( + "malformed", + "Virtual address has ambiguous file mappings", + ); + found = offset; + } + if (found === undefined) + throw new GoBinaryFormatFailure( + "malformed", + "Virtual address or string range is not file mapped", + ); + for (const zeroFill of zeroFills) { + if (spansOverlap(address, BigInt(size), zeroFill.address, zeroFill.size)) + throw new GoBinaryFormatFailure( + "malformed", + "Virtual address has ambiguous file and zero-fill mappings", + ); + } + const end = address + BigInt(size); + for (const mapping of mappings) { + const start = address > mapping.address ? address : mapping.address; + const mappingEnd = mapping.address + BigInt(mapping.size); + const overlapEnd = end < mappingEnd ? end : mappingEnd; + if (start >= overlapEnd) continue; + if ( + BigInt(found) + start - address !== + BigInt(mapping.offset) + start - mapping.address + ) + throw new GoBinaryFormatFailure( + "malformed", + "Virtual address has ambiguous file mappings", + ); + } + return found; +}; + +/** Recognize a wholly zero-filled span while refusing even partial file aliases. */ +export const isZeroFilledSpan = ( + mappings: readonly GoFileMapping[], + zeroFills: readonly GoZeroFillMapping[], + address: bigint, + size: number, +): boolean => { + const bytes = BigInt(size); + if ( + !zeroFills.some( + (mapping) => + address >= mapping.address && + address + bytes <= mapping.address + mapping.size, + ) + ) + return false; + for (const mapping of mappings) { + if (spansOverlap(address, bytes, mapping.address, BigInt(mapping.size))) + throw new GoBinaryFormatFailure( + "malformed", + "Virtual address has ambiguous file and zero-fill mappings", + ); + } + return true; +}; + +const spansOverlap = ( + address: bigint, + size: bigint, + otherAddress: bigint, + otherSize: bigint, +): boolean => + size > 0n && + otherSize > 0n && + address < otherAddress + otherSize && + otherAddress < address + size; + +/** Decode metadata text without replacing invalid bytes or stripping an initial BOM. */ +export const goUtf8 = (bytes: Buffer, label: string): string => { + try { + return new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode( + bytes, + ); + } catch (cause) { + throw new GoBinaryFormatFailure( + "malformed", + `${label} contains malformed UTF-8: ${String(cause)}`, + ); + } +}; diff --git a/src/go/GoBinaryImage.ts b/src/go/GoBinaryImage.ts new file mode 100644 index 000000000..03d0866ab --- /dev/null +++ b/src/go/GoBinaryImage.ts @@ -0,0 +1,316 @@ +import { + GoBinaryFormatFailure, + GoBinaryResourceFailure, + GoBinaryReader, + goUtf8, + mappedFileOffset, + isZeroFilledSpan, + type GoBinaryContainer, + type GoFileMapping, +} from "./GoBinaryContainer.js"; +import { readGoElfImage } from "./GoElfImage.js"; +import { readGoMachoImage } from "./GoMachoImage.js"; +import { readGoPeImage } from "./GoPeImage.js"; + +export { + GoBinaryFormatFailure, + GoBinaryResourceFailure, +} from "./GoBinaryContainer.js"; + +const MAGIC = Buffer.from("ff20476f206275696c64696e663a", "hex"); +const MODULE_START = Buffer.from("3077af0c9274080241e1c107e6d618e6", "hex"); +const MODULE_END = Buffer.from("f932433186182072008242104116d8f2", "hex"); +const MAX_BUILD_INFO_BYTES = 1024 * 1024; + +/** Exact file span of one embedded string's contents, excluding its length/header. */ +export interface GoStringLocation { + readonly offset: number; + readonly bytes: number; +} + +/** Observed compiler string and validated module body with its original framing bytes. */ +export interface GoBuildInfo { + readonly header_offset: number; + readonly encoding: "inline" | "pointer"; + readonly go_version: string | null; + readonly go_version_bytes_base64: string; + readonly module_text: string | null; + readonly module_bytes_base64: string; + readonly version_location: GoStringLocation; + readonly module_location: GoStringLocation; +} + +/** Native image identity and optional Go build information; absence is not a language verdict. */ +export interface GoBinaryImage { + readonly format: "elf" | "pe" | "macho"; + readonly architecture: string; + readonly bits: 32 | 64; + readonly byte_order: "little" | "big"; + readonly build_info: GoBuildInfo | null; +} + +/** Inspect bounded executable bytes using native mappings, without loading or executing code. */ +export const readGoBinaryImage = (bytes: Buffer): GoBinaryImage => { + const container = readContainer(bytes); + const { format, architecture, bits, byte_order } = container; + const search = container.search; + const header = findHeader(bytes, search); + if (header === null || search === null) + return { format, architecture, bits, byte_order, build_info: null }; + const verifyMapping = (size: number): void => { + const address = search.address + BigInt(header - search.offset); + if ( + mappedFileOffset( + container.mappings, + address, + size, + container.zero_fills, + ) !== header + ) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info bytes disagree with their virtual mapping", + ); + }; + verifyMapping(32); + const reader = new GoBinaryReader(bytes, byte_order === "little"); + const ptrSize = bytes[header + 14]; + const flags = bytes[header + 15] ?? 0; + if ((flags & ~3) !== 0) + throw new GoBinaryFormatFailure( + "unsupported", + "Go build-info flags contain an unsupported format bit", + ); + if ((flags & 2) === 0 && (flags & 1) !== (byte_order === "big" ? 1 : 0)) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info byte order disagrees with the image", + ); + const encoding = (flags & 2) !== 0 ? "inline" : "pointer"; + const readInline = (offset: number, remaining: number) => + readInlineString(reader, offset, remaining); + const sourceEnd = search.offset + search.size; + let version: LocatedString; + let module: LocatedString; + if (encoding === "inline") { + version = readInline(header + 32, sourceEnd - header - 32); + const next = version.location.offset + version.location.bytes; + module = readInline(next, sourceEnd - next); + verifyMapping(module.location.offset + module.location.bytes - header); + } else { + if (ptrSize !== 4 && ptrSize !== 8) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info pointer width must be 4 or 8", + ); + if (ptrSize * 8 !== bits) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info pointer width disagrees with the image", + ); + const pointerBits = ptrSize === 8 ? 64 : 32; + version = readPointerString( + reader, + container, + reader.word(header + 16, pointerBits), + ); + const moduleField = header + 16 + ptrSize; + module = readOptionalModuleString( + reader, + container, + reader.word(moduleField, pointerBits), + moduleField, + ); + } + if (version.location.bytes + module.location.bytes > MAX_BUILD_INFO_BYTES) + throw new GoBinaryResourceFailure( + "build-info", + MAX_BUILD_INFO_BYTES, + "Go build-info strings exceed the aggregate 1 MiB limit", + ); + if (version.bytes.length === 0) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info compiler version is empty", + ); + const goVersion = observedText(version.bytes); + let moduleText: string | null = ""; + if (module.bytes.length !== 0) { + if ( + module.bytes.length < 33 || + !module.bytes.subarray(0, 16).equals(MODULE_START) || + !module.bytes.subarray(-16).equals(MODULE_END) || + module.bytes[module.bytes.length - 17] !== 10 + ) + throw new GoBinaryFormatFailure( + "malformed", + "Go module string framing is invalid", + ); + moduleText = observedText(module.bytes.subarray(16, -16)); + } + return { + format, + architecture, + bits, + byte_order, + build_info: { + header_offset: header, + encoding, + go_version: goVersion, + go_version_bytes_base64: version.bytes.toString("base64"), + module_text: moduleText, + module_bytes_base64: module.bytes.toString("base64"), + version_location: version.location, + module_location: module.location, + }, + }; +}; + +const observedText = (bytes: Buffer): string | null => { + try { + return goUtf8(bytes, "Go build string"); + } catch (cause) { + if (cause instanceof GoBinaryFormatFailure) return null; + throw cause; + } +}; + +interface LocatedString { + readonly bytes: Buffer; + readonly location: GoStringLocation; +} + +const readContainer = (bytes: Buffer): GoBinaryContainer => { + if (bytes.subarray(0, 4).equals(Buffer.from([0x7f, 0x45, 0x4c, 0x46]))) + return readGoElfImage(bytes); + if (bytes.subarray(0, 2).equals(Buffer.from("MZ"))) + return readGoPeImage(bytes); + if (bytes.length >= 4) { + const magic = bytes.readUInt32BE(); + if ([0xcafebabe, 0xcafebabf, 0xbebafeca, 0xbfbafeca].includes(magic)) + throw new GoBinaryFormatFailure( + "unsupported", + "Universal/fat Mach-O containers require selecting a thin slice", + ); + if ([0xfeedface, 0xfeedfacf, 0xcefaedfe, 0xcffaedfe].includes(magic)) + return readGoMachoImage(bytes); + } + throw new GoBinaryFormatFailure( + "unsupported", + "Only ELF, PE, and thin Mach-O native images are supported", + ); +}; + +const findHeader = ( + bytes: Buffer, + search: GoFileMapping | null, +): number | null => { + if (search === null || search.size === 0) return null; + const end = search.offset + search.size; + const selected = bytes.subarray(search.offset, end); + let offset = Number((16n - (search.address % 16n)) % 16n); + while (offset < selected.length) { + const match = selected.indexOf(MAGIC, offset); + if (match < 0) return null; + const candidate = search.offset + match; + const address = search.address + BigInt(candidate - search.offset); + if (address % 16n === 0n) { + if (end - candidate < 32) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info header is truncated", + ); + return candidate; + } + offset = match + 1; + } + return null; +}; + +const readInlineString = ( + reader: GoBinaryReader, + offset: number, + remaining: number, +): LocatedString => { + let length = 0n; + for (let index = 0; index < 10; index++) { + if (index >= remaining) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info varint is truncated", + ); + const byte = reader.bytes[offset + index] ?? 0; + if (index === 9 && byte > 1) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info varint overflows 64 bits", + ); + length |= BigInt(byte & 127) << BigInt(index * 7); + if ((byte & 128) === 0) { + if (length > BigInt(MAX_BUILD_INFO_BYTES)) + throw new GoBinaryResourceFailure( + "build-info", + MAX_BUILD_INFO_BYTES, + "Go build-info string length exceeds the 1 MiB limit", + ); + const size = Number(length); + if (size > remaining - index - 1) + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info string range is truncated", + ); + const start = offset + index + 1; + return { + bytes: reader.range(start, size, "Go build-info string"), + location: { offset: start, bytes: size }, + }; + } + } + throw new GoBinaryFormatFailure( + "malformed", + "Go build-info varint is unterminated", + ); +}; + +const readPointerString = ( + reader: GoBinaryReader, + container: GoBinaryContainer, + address: bigint, +): LocatedString => { + const { mappings, zero_fills: zeroFills, bits } = container; + const width = bits / 8; + const header = mappedFileOffset(mappings, address, width * 2, zeroFills); + const valueAddress = reader.word(header, bits); + const length = reader.word(header + width, bits); + if (length > BigInt(MAX_BUILD_INFO_BYTES)) + throw new GoBinaryResourceFailure( + "build-info", + MAX_BUILD_INFO_BYTES, + "Go build-info pointer string length exceeds the 1 MiB limit", + ); + const size = Number(length); + // Zero-length Go strings may carry a zero data pointer. + const offset = + size === 0 && valueAddress === 0n + ? header + : mappedFileOffset(mappings, valueAddress, size, zeroFills); + return { + bytes: reader.range(offset, size, "Go build-info pointer string"), + location: { offset, bytes: size }, + }; +}; + +const readOptionalModuleString = ( + reader: GoBinaryReader, + container: GoBinaryContainer, + address: bigint, + pointerField: number, +): LocatedString => + isZeroFilledSpan( + container.mappings, + container.zero_fills, + address, + (container.bits / 8) * 2, + ) + ? { bytes: Buffer.alloc(0), location: { offset: pointerField, bytes: 0 } } + : readPointerString(reader, container, address); diff --git a/src/go/GoBinaryProvider.ts b/src/go/GoBinaryProvider.ts new file mode 100644 index 000000000..a1c0cc6a3 --- /dev/null +++ b/src/go/GoBinaryProvider.ts @@ -0,0 +1,202 @@ +import { readStableArtifact } from "../artifacts/readStableArtifact.js"; +import { ArtifactReaderFailure } from "../artifacts/ArtifactReader.js"; +import type { ExecutionOptions } from "../application/AnalysisProvider.js"; +import type { GoBinaryPort } from "../application/go/GoBinaryPort.js"; +import { AnalysisError } from "../domain/analysisErrorBase.js"; +import { + AnalysisAccessDeniedError, + AnalysisArtifactChangedError, + AnalysisCancelledError, + AnalysisInputError, + AnalysisOutputError, + AnalysisResourceConstraintError, + AnalysisUnsupportedTargetError, +} from "../domain/analysisErrorCore.js"; +import { + goBinarySchema, + type GoBinary, + type InspectGoBinaryInput, +} from "../domain/go/goBinary.js"; +import { ProviderAdapterError } from "../domain/providerAdapterError.js"; +import { err, ok, type Result } from "../domain/result.js"; +import { + readGoBinaryImage, + GoBinaryFormatFailure, + GoBinaryResourceFailure, +} from "./GoBinaryImage.js"; +import { parseGoModuleBytes, parseGoModuleText } from "./GoModuleText.js"; + +/** Bundled format reader identity; embedded compiler versions are separate observed facts. */ +export const GO_BINARY_PROVIDER_IDENTITY = { + id: "go-build-info", + name: "REA Go build-information reader", + version: "1", +} as const; +const OPERATION = "inspect_go_binary"; +const INPUT_BYTES = 256 * 1024 * 1024; +const OUTPUT_BYTES = 8 * 1024 * 1024; + +const failureFor = ( + cause: unknown, + path: string, + signal?: AbortSignal, +): AnalysisError => { + if (cause instanceof AnalysisError) return cause; + if (signal?.aborted) return new AnalysisCancelledError(OPERATION); + if (cause instanceof GoBinaryResourceFailure) + return new AnalysisResourceConstraintError( + OPERATION, + "memory", + `Selected artifact ${path}: ${cause.message}`, + { boundary: cause.boundary, maximum_bytes: cause.maximum_bytes }, + { cause }, + ); + if (cause instanceof GoBinaryFormatFailure) + return cause.kind === "unsupported" + ? new AnalysisUnsupportedTargetError(OPERATION, path, cause.message, { + cause, + }) + : new AnalysisInputError(OPERATION, { cause }, [ + { + path: ["path"], + reason: "invalid_format", + message: `Selected artifact ${path}: ${cause.message}`, + }, + ]); + if (cause instanceof ArtifactReaderFailure) { + if (cause.reason === "integrity") + return new AnalysisArtifactChangedError(OPERATION, path, cause.message, { + cause, + }); + if (cause.reason === "cancelled") + return new AnalysisCancelledError(OPERATION); + if (cause.reason === "limit") + return new AnalysisResourceConstraintError( + OPERATION, + "file-size", + cause.message, + { maximum_input_bytes: INPUT_BYTES }, + { cause }, + ); + if (cause.reason === "path") + return new AnalysisInputError(OPERATION, { cause }, [ + { path: ["path"], reason: "invalid_format", message: cause.message }, + ]); + } + if (cause instanceof Error && "code" in cause) { + if (cause.code === "EACCES" || cause.code === "EPERM") + return new AnalysisAccessDeniedError(OPERATION, path, cause.code, { + cause, + }); + if ( + ["ENOENT", "ENOTDIR", "ELOOP", "ENAMETOOLONG"].includes( + String(cause.code), + ) + ) + return new AnalysisInputError(OPERATION, { cause }, [ + { + path: ["path"], + reason: "invalid_value", + message: `Selected artifact could not be read (${String(cause.code)}): ${path}.`, + }, + ]); + } + return new ProviderAdapterError(GO_BINARY_PROVIDER_IDENTITY.id, OPERATION, { + cause, + diagnostics: { + path, + reason: cause instanceof Error ? cause.message : String(cause), + }, + }); +}; + +const outputLimit = (path: string) => + new AnalysisResourceConstraintError( + OPERATION, + "transport", + `Complete Go metadata for ${path} exceeds the inline output budget; no partial success is returned.`, + { maximum_output_bytes: OUTPUT_BYTES }, + ); + +/** Stable in-process metadata inspection without subprocesses, temporary files or Go installation. */ +export class GoBinaryProvider implements GoBinaryPort { + readonly identity = GO_BINARY_PROVIDER_IDENTITY; + + /** Read complete compiler/module metadata while preserving original byte identity and source ranges. */ + async inspect( + input: InspectGoBinaryInput, + options?: ExecutionOptions, + ): Promise> { + try { + const snapshot = await readStableArtifact( + input.path, + INPUT_BYTES, + options?.signal, + ); + options?.signal?.throwIfAborted(); + const image = readGoBinaryImage(snapshot.bytes); + const info = image.build_info; + if ( + info !== null && + ((info.module_text !== null && + Buffer.byteLength(info.module_text) > OUTPUT_BYTES) || + Buffer.byteLength(info.module_bytes_base64) > OUTPUT_BYTES) + ) + throw outputLimit(input.path); + const module = + info === null + ? null + : info.module_text === null + ? parseGoModuleBytes( + Buffer.from(info.module_bytes_base64, "base64").subarray( + 16, + -16, + ), + ) + : parseGoModuleText(info.module_text); + const report = { + ...image, + artifact: { + path: input.path, + sha256: snapshot.sha256, + bytes: snapshot.bytes.length, + }, + build_info: info === null ? null : { ...info, module }, + limitations: [ + "Embedded build metadata is observed file content, not proof of compiler identity, dependency authenticity or runtime behavior.", + "Only Go build information is inspected; function names, source mappings, type metadata and decompiled code are not recovered.", + "Resource guards bound stable artifact reads to 256 MiB, aggregate embedded strings to 1 MiB, structural table decoding to 16 MiB and complete metadata payloads to 8 MiB; these are not operating-system memory or CPU limits.", + ...(info !== null && + (info.go_version === null || info.module_text === null) + ? [ + "Some embedded Go strings contain non-UTF8 bytes; undecodable text is null and exact source bytes are preserved as base64.", + ] + : []), + ...(info === null + ? [ + "No recognized Go build-info record was found in the inspected image; absent metadata does not establish that the binary is not Go.", + ] + : []), + ...(module?.complete === false + ? [ + "Some embedded module-text records could not be parsed completely; their original lines are preserved and additional metadata remains unknown.", + ] + : []), + ], + }; + if (Buffer.byteLength(JSON.stringify(report), "utf8") > OUTPUT_BYTES) + throw outputLimit(input.path); + const parsed = goBinarySchema.safeParse(report); + if (!parsed.success) + throw new AnalysisOutputError( + OPERATION, + "Go reader produced invalid source ranges or report values.", + { cause: parsed.error }, + ); + options?.signal?.throwIfAborted(); + return ok(parsed.data); + } catch (cause: unknown) { + return err(failureFor(cause, input.path, options?.signal)); + } + } +} diff --git a/src/go/GoElfImage.ts b/src/go/GoElfImage.ts new file mode 100644 index 000000000..f02473aae --- /dev/null +++ b/src/go/GoElfImage.ts @@ -0,0 +1,246 @@ +import { + GoBinaryFormatFailure, + GoBinaryReader, + mappedFileOffset, + type GoBinaryContainer, + type GoFileMapping, + type GoZeroFillMapping, +} from "./GoBinaryContainer.js"; + +/** Read ELF build-info sections and file-backed program mappings. */ +export const readGoElfImage = (bytes: Buffer): GoBinaryContainer => { + if (bytes.length < 16) + throw new GoBinaryFormatFailure( + "malformed", + "ELF identification is truncated", + ); + const bits = bytes[4] === 1 ? 32 : bytes[4] === 2 ? 64 : null; + if (bits === null || ![1, 2].includes(bytes[5] ?? 0) || bytes[6] !== 1) + throw new GoBinaryFormatFailure( + "malformed", + "ELF class, byte order, or version is invalid", + ); + const reader = new GoBinaryReader(bytes, bytes[5] === 1); + const wide = bits === 64; + const minimum = wide ? 64 : 52; + reader.range(0, minimum, "ELF header"); + if (reader.u32(20) !== 1 || reader.u16(wide ? 52 : 40) < minimum) + throw new GoBinaryFormatFailure( + "malformed", + "ELF header version or size is invalid", + ); + const headerSize = reader.u16(wide ? 52 : 40); + reader.range(0, headerSize, "ELF declared header"); + const phOffset = reader.word(wide ? 32 : 28, bits); + const shOffset = reader.word(wide ? 40 : 32, bits); + const phWidth = reader.u16(wide ? 54 : 42); + const shWidth = reader.u16(wide ? 58 : 46); + let phCount = reader.u16(wide ? 56 : 44); + let shCount = reader.u16(wide ? 60 : 48); + let namesIndex = reader.u16(wide ? 62 : 50); + if ( + (phCount !== 0 && phOffset < BigInt(headerSize)) || + (shOffset !== 0n && shOffset < BigInt(headerSize)) + ) + throw new GoBinaryFormatFailure( + "malformed", + "ELF header table overlaps the native header", + ); + if ( + shOffset !== 0n && + (shCount === 0 || phCount === 0xffff || namesIndex === 0xffff) + ) { + if (shWidth < (wide ? 64 : 40)) + throw new GoBinaryFormatFailure( + "malformed", + "ELF extended section header width is invalid", + ); + const first = reader.fileRange( + shOffset, + BigInt(shWidth), + "ELF section zero", + ).offset; + if (reader.u32(first + 4) !== 0) + throw new GoBinaryFormatFailure( + "malformed", + "ELF initial section for extended numbering must have SHT_NULL type", + ); + if (shCount === 0) { + const count = reader.word(first + (wide ? 32 : 20), bits); + if (count < 0xff00n || count > BigInt(Number.MAX_SAFE_INTEGER)) + throw new GoBinaryFormatFailure( + "malformed", + "ELF extended section count is invalid", + ); + shCount = Number(count); + } + if (phCount === 0xffff) { + phCount = reader.u32(first + (wide ? 44 : 28)); + if (phCount < 0xffff) + throw new GoBinaryFormatFailure( + "malformed", + "ELF extended program count is below its reserved range", + ); + } + if (namesIndex === 0xffff) { + namesIndex = reader.u32(first + (wide ? 40 : 24)); + if (namesIndex < 0xff00) + throw new GoBinaryFormatFailure( + "malformed", + "ELF extended section name index is below its reserved range", + ); + } + } else if ( + shOffset === 0n && + (shCount !== 0 || namesIndex !== 0 || phCount === 0xffff) + ) { + throw new GoBinaryFormatFailure( + "malformed", + "ELF section table is missing", + ); + } + if (phCount !== 0 && phWidth < (wide ? 56 : 32)) + throw new GoBinaryFormatFailure( + "malformed", + "ELF program header width is invalid", + ); + const phStart = reader.table( + phOffset, + phCount, + phWidth, + "ELF program headers", + ); + const mappings: GoFileMapping[] = []; + const zeroFills: GoZeroFillMapping[] = []; + let fallback: GoFileMapping | null = null; + for (let index = 0; index < phCount; index++) { + const offset = phStart + index * phWidth; + if (reader.u32(offset) !== 1) continue; + const flags = reader.u32(offset + (wide ? 4 : 24)); + const fileOffset = reader.word(offset + (wide ? 8 : 4), bits); + const address = reader.word(offset + (wide ? 16 : 8), bits); + const size = reader.word(offset + (wide ? 32 : 16), bits); + const memorySize = reader.word(offset + (wide ? 40 : 20), bits); + if (size > memorySize || address + memorySize > 1n << BigInt(bits)) + throw new GoBinaryFormatFailure( + "malformed", + "ELF load segment sizes or addresses are invalid", + ); + const mapping = { + ...(size === 0n + ? { offset: 0, size: 0 } + : reader.fileRange(fileOffset, size, "ELF load segment")), + address, + }; + if (mapping.size !== 0) mappings.push(mapping); + if (memorySize > size) + zeroFills.push({ address: address + size, size: memorySize - size }); + if (fallback === null && (flags & 3) === 2) fallback = mapping; + } + let search: GoFileMapping | null = null; + if (shCount !== 0) { + if (shWidth < (wide ? 64 : 40) || namesIndex >= shCount) + throw new GoBinaryFormatFailure( + "malformed", + "ELF section width or name-table index is invalid", + ); + const shStart = reader.table( + shOffset, + shCount, + shWidth, + "ELF section headers", + ); + if (namesIndex !== 0) { + const namesHeader = shStart + namesIndex * shWidth; + if (reader.u32(namesHeader + 4) !== 3) + throw new GoBinaryFormatFailure( + "malformed", + "ELF section name table is not a string table", + ); + const names = reader.fileRange( + reader.word(namesHeader + (wide ? 24 : 16), bits), + reader.word(namesHeader + (wide ? 32 : 20), bits), + "ELF section names", + ); + for (let index = 0; index < shCount; index++) { + const offset = shStart + index * shWidth; + const nameOffset = reader.u32(offset); + if (nameOffset >= names.size) + throw new GoBinaryFormatFailure( + "malformed", + "ELF section name offset is outside its string table", + ); + // Comparing the complete fixed name avoids quadratic scans through malicious string tables. + const expectedName = Buffer.from(".go.buildinfo\0"); + if ( + expectedName.length > names.size - nameOffset || + !bytes + .subarray( + names.offset + nameOffset, + names.offset + nameOffset + expectedName.length, + ) + .equals(expectedName) + ) + continue; + if (search !== null) + throw new GoBinaryFormatFailure( + "malformed", + "ELF contains ambiguous build-info sections", + ); + if (reader.u32(offset + 4) !== 1) + throw new GoBinaryFormatFailure( + "malformed", + "ELF build-info section is not file-backed data", + ); + if ((reader.word(offset + 8, bits) & 0x800n) !== 0n) + throw new GoBinaryFormatFailure( + "unsupported", + "Compressed ELF build-info sections are unsupported", + ); + const address = reader.word(offset + (wide ? 16 : 12), bits); + search = { + ...reader.fileRange( + reader.word(offset + (wide ? 24 : 16), bits), + reader.word(offset + (wide ? 32 : 20), bits), + "ELF build-info section", + ), + address, + }; + if ( + mappedFileOffset(mappings, address, search.size, zeroFills) !== + search.offset + ) + throw new GoBinaryFormatFailure( + "malformed", + "ELF build-info section disagrees with its load mapping", + ); + } + } + } + const machine = reader.u16(18); + return { + format: "elf", + architecture: elfArchitecture(machine), + bits, + byte_order: reader.little ? "little" : "big", + mappings, + zero_fills: zeroFills, + search: search ?? fallback, + }; +}; + +const elfArchitecture = (machine: number): string => { + const names = new Map([ + [3, "386"], + [8, "mips"], + [20, "ppc"], + [21, "ppc64"], + [22, "s390"], + [40, "arm"], + [62, "amd64"], + [183, "arm64"], + [243, "riscv"], + [258, "loongarch"], + ]); + return names.get(machine) ?? `elf-machine-${machine}`; +}; diff --git a/src/go/GoMachoImage.ts b/src/go/GoMachoImage.ts new file mode 100644 index 000000000..3a2a2eab7 --- /dev/null +++ b/src/go/GoMachoImage.ts @@ -0,0 +1,168 @@ +import { + GoBinaryFormatFailure, + GoBinaryReader, + mappedFileOffset, + type GoBinaryContainer, + type GoFileMapping, + type GoZeroFillMapping, +} from "./GoBinaryContainer.js"; + +/** Read thin Mach-O images, retaining the slice's exact file-backed mappings. */ +export const readGoMachoImage = (bytes: Buffer): GoBinaryContainer => { + const magic = bytes.readUInt32BE(0); + const little = magic === 0xcefaedfe || magic === 0xcffaedfe; + const bits = magic === 0xfeedfacf || magic === 0xcffaedfe ? 64 : 32; + const reader = new GoBinaryReader(bytes, little); + const headerSize = bits === 64 ? 32 : 28; + reader.range(0, headerSize, "Mach-O header"); + const count = reader.u32(16); + const commandBytes = reader.u32(20); + const commandStart = reader.table( + BigInt(headerSize), + commandBytes, + 1, + "Mach-O load commands", + ); + if (count > Math.floor(commandBytes / 8)) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O command count exceeds its load-command range", + ); + const mappings: GoFileMapping[] = []; + const zeroFills: GoZeroFillMapping[] = []; + const named: GoFileMapping[] = []; + let fallback: GoFileMapping | null = null; + let offset = commandStart; + const end = commandStart + commandBytes; + for (let index = 0; index < count; index++) { + const command = reader.u32(offset); + const size = reader.u32(offset + 4); + if (size < 8 || size % 4 !== 0 || size > end - offset) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O load command size is invalid or truncated", + ); + if (command === 1 || command === 0x19) { + const wide = command === 0x19; + if (wide !== (bits === 64)) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O segment command does not match the header width", + ); + const segmentHeader = wide ? 72 : 56; + const sectionWidth = wide ? 80 : 68; + if (size < segmentHeader) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O segment header is truncated", + ); + const address = reader.word(offset + 24, bits); + const memorySize = reader.word(offset + (wide ? 32 : 28), bits); + const fileOffset = reader.word(offset + (wide ? 40 : 32), bits); + const fileSize = reader.word(offset + (wide ? 48 : 36), bits); + const maxProtection = reader.u32(offset + (wide ? 56 : 40)); + const protection = reader.u32(offset + (wide ? 60 : 44)); + const sectionCount = reader.u32(offset + (wide ? 64 : 48)); + if (fileSize > memorySize || address + memorySize > 1n << BigInt(bits)) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O segment addresses or sizes are invalid", + ); + if (sectionCount > Math.floor((size - segmentHeader) / sectionWidth)) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O section table exceeds its segment command", + ); + const mapping = { + ...(fileSize === 0n + ? { offset: 0, size: 0 } + : reader.fileRange(fileOffset, fileSize, "Mach-O segment")), + address, + }; + const name = fixedName( + reader.range(offset + 8, 16, "Mach-O segment name"), + ); + if (mapping.size !== 0 && name !== "__PAGEZERO") mappings.push(mapping); + if (memorySize > fileSize && name !== "__PAGEZERO") + zeroFills.push({ + address: address + fileSize, + size: memorySize - fileSize, + }); + if ( + fallback === null && + address !== 0n && + mapping.size !== 0 && + protection === 3 && + maxProtection === 3 + ) + fallback = mapping; + for (let sectionIndex = 0; sectionIndex < sectionCount; sectionIndex++) { + const section = offset + segmentHeader + sectionIndex * sectionWidth; + if ( + fixedName(reader.range(section, 16, "Mach-O section name")) !== + "__go_buildinfo" + ) + continue; + const sectionFlags = reader.u32(section + (wide ? 64 : 56)); + if ([1, 0xc, 0x12].includes(sectionFlags & 0xff)) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O build-info section is zero-fill data", + ); + const sectionAddress = reader.word(section + 32, bits); + const sectionSize = reader.word(section + (wide ? 40 : 36), bits); + const sectionOffset = BigInt(reader.u32(section + (wide ? 48 : 40))); + const info = { + ...reader.fileRange( + sectionOffset, + sectionSize, + "Mach-O build-info section", + ), + address: sectionAddress, + }; + if ( + mappedFileOffset([mapping], sectionAddress, info.size) !== info.offset + ) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O build-info section disagrees with its segment", + ); + named.push(info); + } + } + offset += size; + } + if (offset !== end) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O load-command byte count does not match its commands", + ); + if (named.length > 1) + throw new GoBinaryFormatFailure( + "malformed", + "Mach-O has ambiguous build-info sections", + ); + const cpu = reader.u32(4); + const names = new Map([ + [7, "386"], + [0x01000007, "amd64"], + [12, "arm"], + [0x0100000c, "arm64"], + [18, "ppc"], + [0x01000012, "ppc64"], + ]); + return { + format: "macho", + architecture: names.get(cpu) ?? `macho-cpu-${cpu}`, + bits, + byte_order: little ? "little" : "big", + mappings, + zero_fills: zeroFills, + search: named[0] ?? fallback, + }; +}; + +const fixedName = (bytes: Buffer): string => { + const nul = bytes.indexOf(0); + return bytes.subarray(0, nul < 0 ? bytes.length : nul).toString("latin1"); +}; diff --git a/src/go/GoModuleText.ts b/src/go/GoModuleText.ts new file mode 100644 index 000000000..615587910 --- /dev/null +++ b/src/go/GoModuleText.ts @@ -0,0 +1,226 @@ +import type { GoModule, GoModuleMetadata } from "../domain/go/goBinary.js"; + +const utf8 = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }); +const escapes = new Map([ + ["a", 7], + ["b", 8], + ["f", 12], + ["n", 10], + ["r", 13], + ["t", 9], + ["v", 11], + ["\\", 92], + ['"', 34], +]); + +const quoted = (input: string): { value: string; end: number } | null => { + if (input.startsWith("`")) { + const end = input.indexOf("`", 1); + return end < 0 + ? null + : { value: input.slice(1, end).replace(/\r/g, ""), end: end + 1 }; + } + if (!input.startsWith('"')) return null; + const output = Buffer.alloc(input.length * 3); + let length = 0; + for (let index = 1; index < input.length;) { + const character = input[index]; + if (character === '"') { + try { + return { + value: utf8.decode(output.subarray(0, length)), + end: index + 1, + }; + } catch { + return null; + } + } + if (character === "\n") return null; + if (character !== "\\") { + const point = input.codePointAt(index); + if (point === undefined) return null; + length += output.write(String.fromCodePoint(point), length, "utf8"); + index += point > 0xffff ? 2 : 1; + continue; + } + const escaped = input[index + 1]; + if (escaped === undefined) return null; + const simple = escapes.get(escaped); + if (simple !== undefined) { + output[length++] = simple; + index += 2; + continue; + } + const digits = + escaped === "x" ? 2 : escaped === "u" ? 4 : escaped === "U" ? 8 : 0; + if (digits > 0) { + const encoded = input.slice(index + 2, index + 2 + digits); + if (encoded.length !== digits || !/^[a-f\d]+$/i.test(encoded)) + return null; + const point = Number.parseInt(encoded, 16); + if (escaped === "x") output[length++] = point; + else { + if (point > 0x10ffff || (point >= 0xd800 && point <= 0xdfff)) + return null; + length += output.write(String.fromCodePoint(point), length, "utf8"); + } + index += 2 + digits; + continue; + } + const octal = input.slice(index + 1, index + 4); + if (!/^[0-7]{3}$/.test(octal)) return null; + const byte = Number.parseInt(octal, 8); + if (byte > 255) return null; + output[length++] = byte; + index += 4; + } + return null; +}; + +const setting = (input: string): { key: string; value: string } | null => { + let key: string; + let rawValue: string; + if (input.startsWith('"') || input.startsWith("`")) { + const decoded = quoted(input); + if (decoded === null || input[decoded.end] !== "=") return null; + key = decoded.value; + rawValue = input.slice(decoded.end + 1); + } else { + const separator = input.indexOf("="); + if (separator < 1) return null; + key = input.slice(0, separator); + if (/[= \t\r\n"`]/.test(key)) return null; + rawValue = input.slice(separator + 1); + } + if (rawValue.startsWith('"') || rawValue.startsWith("`")) { + const decoded = quoted(rawValue); + return decoded !== null && decoded.end === rawValue.length + ? { key, value: decoded.value } + : null; + } + return /[ \t\r\n"`]/.test(rawValue) ? null : { key, value: rawValue }; +}; + +const moduleLine = (fields: string[]): GoModule | null => { + const [path, version] = fields; + if ( + (fields.length !== 2 && fields.length !== 3) || + path === undefined || + version === undefined + ) + return null; + return { path, version, sum: fields[2] ?? null, replacement: null }; +}; + +interface ModuleSourceLine { + readonly line: string | Buffer; + readonly terminated: boolean; +} + +function* moduleSourceLines( + source: string | Buffer, +): Generator { + let start = 0; + while (start < source.length) { + const newline = + typeof source === "string" + ? source.indexOf("\n", start) + : source.indexOf(10, start); + const end = newline < 0 ? source.length : newline; + let line: string | Buffer; + if (typeof source === "string") line = source.slice(start, end); + else { + const bytes = source.subarray(start, end); + try { + line = utf8.decode(bytes); + } catch { + line = bytes; + } + } + yield { line, terminated: newline >= 0 }; + if (newline < 0) return; + start = newline + 1; + } +} + +const modulePrefixes = ["mod\t", "dep\t", "=>\t"].map((prefix) => + Buffer.from(prefix), +); + +const parseModuleRecords = (source: string | Buffer): GoModuleMetadata => { + let path: string | null = null; + let main: GoModule | null = null; + const dependencies: GoModule[] = []; + const settings: { key: string; value: string }[] = []; + const unparsed_lines: string[] = []; + const unparsed_line_bytes_base64: string[] = []; + let last: GoModule | null = null; + for (const { line, terminated } of moduleSourceLines(source)) { + if (typeof line !== "string") { + unparsed_line_bytes_base64.push(line.toString("base64")); + if ( + modulePrefixes.some((prefix) => + line.subarray(0, prefix.length).equals(prefix), + ) + ) + last = null; + continue; + } + if (line === "") continue; + if (!terminated) { + unparsed_lines.push(line); + continue; + } + if (line.startsWith("path\t") && path === null) { + path = line.slice(5); + continue; + } + if (line.startsWith("mod\t") || line.startsWith("dep\t")) { + const value = moduleLine(line.slice(4).split("\t")); + last = null; + if (value !== null && (!line.startsWith("mod\t") || main === null)) { + if (line.startsWith("mod\t")) main = value; + else dependencies.push(value); + last = value; + continue; + } + } else if (line.startsWith("=>\t")) { + const fields = line.slice(3).split("\t"); + const value = moduleLine(fields); + if (fields.length === 3 && value !== null && last !== null) { + last.replacement = { + path: value.path, + version: value.version, + sum: value.sum, + }; + last = null; + continue; + } + last = null; + } else if (line.startsWith("build\t")) { + const value = setting(line.slice(6)); + if (value !== null) { + settings.push(value); + continue; + } + } + unparsed_lines.push(line); + } + return { + path, + main, + dependencies, + settings, + unparsed_lines, + unparsed_line_bytes_base64, + complete: unparsed_lines.length + unparsed_line_bytes_base64.length === 0, + }; +}; + +/** Decode Go's module records while preserving unsupported/malformed source lines. */ +export const parseGoModuleText = (text: string): GoModuleMetadata => + parseModuleRecords(text); + +/** Decode an unframed Go module body while retaining non-UTF-8 line bytes exactly. */ +export const parseGoModuleBytes = (bytes: Buffer): GoModuleMetadata => + parseModuleRecords(bytes); diff --git a/src/go/GoPeImage.ts b/src/go/GoPeImage.ts new file mode 100644 index 000000000..6db583245 --- /dev/null +++ b/src/go/GoPeImage.ts @@ -0,0 +1,149 @@ +import { mzWindowsHeaderOffset, parseDosMzHeader } from "../domain/dosMz.js"; +import { + GoBinaryFormatFailure, + GoBinaryReader, + type GoBinaryContainer, + type GoFileMapping, + type GoZeroFillMapping, +} from "./GoBinaryContainer.js"; + +const peHeaderOffset = (reader: GoBinaryReader): number => { + const pe = mzWindowsHeaderOffset(reader.bytes); + if (pe === null) { + const dos = parseDosMzHeader(reader.bytes); + if (!dos.ok) throw new GoBinaryFormatFailure("malformed", dos.error); + throw new GoBinaryFormatFailure( + "unsupported", + "DOS MZ images are outside the supported ELF, PE and thin Mach-O formats", + ); + } + if (pe < 64) + throw new GoBinaryFormatFailure( + "malformed", + "PE signature overlaps the DOS header", + ); + const signature = reader + .range(pe, 2, "Windows new-header signature") + .toString("latin1"); + if (["NE", "LE", "LX"].includes(signature)) + throw new GoBinaryFormatFailure( + "unsupported", + `${signature} images are outside the supported ELF, PE and thin Mach-O formats`, + ); + return pe; +}; + +const optionalHeaderMagic = ( + reader: GoBinaryReader, + offset: number, + size: number, +): number => { + reader.range(offset, size, "PE optional header"); + if (size < 2) + throw new GoBinaryFormatFailure( + "malformed", + "PE optional header is missing its complete magic field", + ); + return reader.u16(offset); +}; + +/** Read PE32/PE32+ native image mappings and the linker data section. */ +export const readGoPeImage = (bytes: Buffer): GoBinaryContainer => { + const reader = new GoBinaryReader(bytes, true); + const pe = peHeaderOffset(reader); + if ( + !reader + .range(pe, 24, "PE signature and COFF header") + .subarray(0, 4) + .equals(Buffer.from("PE\0\0")) + ) + throw new GoBinaryFormatFailure( + "malformed", + "PE signature is invalid or overlaps the DOS header", + ); + const optional = pe + 24; + const optionalSize = reader.u16(pe + 20); + const magic = optionalHeaderMagic(reader, optional, optionalSize); + const bits = magic === 0x10b ? 32 : magic === 0x20b ? 64 : null; + if (bits === null) + throw new GoBinaryFormatFailure( + "unsupported", + "Only PE32 and PE32+ image optional headers are supported", + ); + if (optionalSize < (bits === 64 ? 112 : 96)) + throw new GoBinaryFormatFailure( + "malformed", + "PE optional header is truncated", + ); + const directoriesOffset = bits === 64 ? 112 : 96; + const directories = reader.u32(optional + directoriesOffset - 4); + if (directories * 8 > optionalSize - directoriesOffset) + throw new GoBinaryFormatFailure( + "malformed", + "PE data directories extend beyond the optional header", + ); + const imageBase = reader.word(optional + (bits === 64 ? 24 : 28), bits); + const count = reader.u16(pe + 6); + const start = reader.table( + BigInt(optional + optionalSize), + count, + 40, + "PE sections", + ); + const mappings: GoFileMapping[] = []; + const zeroFills: GoZeroFillMapping[] = []; + let search: GoFileMapping | null = null; + for (let index = 0; index < count; index++) { + const entry = start + index * 40; + const virtualSize = reader.u32(entry + 8); + const virtualAddress = reader.u32(entry + 12); + const size = reader.u32(entry + 16); + const offset = reader.u32(entry + 20); + const characteristics = reader.u32(entry + 36); + const address = imageBase + BigInt(virtualAddress); + if (address + BigInt(Math.max(size, virtualSize)) > 1n << BigInt(bits)) + throw new GoBinaryFormatFailure( + "malformed", + "PE section virtual address overflows its address width", + ); + const mapping = { + ...(size === 0 + ? { offset: 0, size: 0 } + : reader.fileRange(BigInt(offset), BigInt(size), "PE section")), + address, + }; + if (size !== 0) mappings.push(mapping); + if (virtualSize > size) + zeroFills.push({ + address: address + BigInt(size), + size: BigInt(virtualSize - size), + }); + // Match debug/buildinfo's first initialized, readable, writable data section. + if ( + search === null && + virtualAddress !== 0 && + size !== 0 && + (characteristics & ~0x00600000) >>> 0 === 0xc0000040 + ) { + search = { ...mapping, size: Math.min(size, virtualSize) }; + } + } + const machine = reader.u16(pe + 4); + const names = new Map([ + [0x014c, "386"], + [0x8664, "amd64"], + [0x01c0, "arm"], + [0x01c2, "arm"], + [0x01c4, "arm"], + [0xaa64, "arm64"], + ]); + return { + format: "pe", + architecture: names.get(machine) ?? `pe-machine-${machine}`, + bits, + byte_order: "little", + mappings, + zero_fills: zeroFills, + search, + }; +}; diff --git a/src/native/pwntools/PwntoolsDecoder.ts b/src/native/pwntools/PwntoolsDecoder.ts index fef52bff9..273f7d4b5 100644 --- a/src/native/pwntools/PwntoolsDecoder.ts +++ b/src/native/pwntools/PwntoolsDecoder.ts @@ -177,6 +177,9 @@ export class PwntoolsDecoder< requestPath, ], cwd: root.path, + // Caller-selected Python launchers can exec through prlimit or a + // shell wrapper. Keep parent/group/run-token ownership across exec. + expectedCommand: null, runId: `rea-artifact-decoder-${randomUUID()}`, hostEnvironment: { ...this.environment, diff --git a/src/server/createServer.ts b/src/server/createServer.ts index e7b6a880c..5c738f4bc 100644 --- a/src/server/createServer.ts +++ b/src/server/createServer.ts @@ -9,6 +9,9 @@ import { createEvmInterfaceService } from "../composition/evm.js"; import { registerEvmTools } from "./registerEvmTools.js"; import { registerRecordedCrashTools } from "./registerRecordedCrashTools.js"; import { createRecordedCrashService } from "../composition/binaryDiagnostics.js"; +import { createGoBinaryService } from "../composition/go.js"; +import type { GoBinaryService } from "../application/go/GoBinaryService.js"; +import { registerGoTools } from "./registerGoTools.js"; import type { RecordedCrashService } from "../application/binaryDiagnostics/RecordedCrashService.js"; import { registerAnalysisViewTool } from "./registerAnalysisViewTool.js"; import { registerBinaryDiagnosticsTools } from "./registerBinaryDiagnosticsTools.js"; @@ -110,6 +113,7 @@ export interface CreateServerOptions { readonly evmInterface?: EvmInterfaceService; readonly logger?: Logger; readonly binaryLayout?: BinaryLayoutService; + readonly goBinary?: GoBinaryService; readonly recordedCrash?: RecordedCrashService; readonly firmwareAnalysis?: FirmwareAnalysisPort; readonly javascriptRecovery?: JavaScriptRecoveryPort; @@ -435,6 +439,13 @@ const registerConfiguredAnalysisTools = ( recordEvidence, withAdmittedAnalysis, ); + registerGoTools( + server, + options.goBinary ?? createGoBinaryService(), + toolLogger, + recordEvidence, + withAdmittedAnalysis, + ); registerWasmTools( server, wasmArtifact, diff --git a/src/server/registerGoTools.ts b/src/server/registerGoTools.ts new file mode 100644 index 000000000..42927dead --- /dev/null +++ b/src/server/registerGoTools.ts @@ -0,0 +1,31 @@ +import type { EvidenceMcpServer } from "./EvidenceMcpServer.js"; +import type { GoBinaryService } from "../application/go/GoBinaryService.js"; +import type { EvidenceWriter } from "../application/investigation/InvestigationRecordPort.js"; +import { toolContract } from "../contracts/toolContracts.js"; +import type { Logger } from "pino"; +import type { WithAdmittedAnalysis } from "./analysisAdmission.js"; +import { createEvidenceToolHandler } from "./contractToolHandler.js"; +import { toolRegistrationOptions } from "./toolRegistrationOptions.js"; + +/** Bind the exact Go contract to its shared workflow and owning session Evidence ledger. */ +export const registerGoTools = ( + server: EvidenceMcpServer, + service: GoBinaryService, + logger: Logger, + recordEvidence?: EvidenceWriter["recordEvidence"], + withAdmittedAnalysis?: WithAdmittedAnalysis, +): void => { + const contract = toolContract("inspect_go_binary"); + const handler = createEvidenceToolHandler( + server, + (input, options) => service.inspect(input, options), + logger, + recordEvidence, + withAdmittedAnalysis, + ); + server.registerTool( + contract.name, + toolRegistrationOptions(contract), + handler(contract), + ); +}; diff --git a/tests/acceptance/applications/runtime.test.ts b/tests/acceptance/applications/runtime.test.ts index cd9f2c312..80989478c 100644 --- a/tests/acceptance/applications/runtime.test.ts +++ b/tests/acceptance/applications/runtime.test.ts @@ -21,12 +21,19 @@ const fixturePath = fileURLToPath( new URL("../../fixtures/fakeLauncher.mjs", import.meta.url), ); -const expectAvailableToolInventory = async (client: Client) => { - const listed = await client.listTools(); - const status = await client.callTool({ - name: "binary_session", - arguments: {}, - }); +const expectAvailableToolInventory = async ( + client: Client, + listed: Awaited>, +) => { + const binarySession = listed.tools.find( + ({ name }) => name === "binary_session", + ); + if (binarySession === undefined) + throw new Error("The compiled catalog omitted binary_session"); + const status = await client.callTool( + { name: "binary_session", arguments: {} }, + { toolDefinition: binarySession }, + ); expect(status.isError).not.toBe(true); const inventory = z .object({ @@ -164,6 +171,9 @@ describe("production stdio runtime", () => { 15_000, ); + // Use the suite's bounded acceptance deadline, including its coverage allowance. + // This cold-start workflow computes the growing catalog's schema digests; it + // verifies catalog and lifecycle behavior, not a 15-second performance target. it("serves the compiled catalog without an initial target or fatal record", async () => { const transport = new StdioClientTransport({ command: process.execPath, @@ -183,7 +193,10 @@ describe("production stdio runtime", () => { try { await client.connect(transport); // Keep catalog parity independent of initial target/provider startup. - const status = await expectAvailableToolInventory(client); + // Validate each called tool against its advertised definition without + // asking the SDK to compile every unrelated output schema in the catalog. + const listed = await client.listTools(); + const status = await expectAvailableToolInventory(client, listed); expect( z .object({ result: z.object({ open: z.boolean() }) }) @@ -191,10 +204,15 @@ describe("production stdio runtime", () => { ).toEqual({ open: false }); // Closing the empty session produces a structured lifecycle record, // making the fatal-record check observable without launching a provider. - const closed = await client.callTool({ - name: "close_binary", - arguments: {}, - }); + const closeBinary = listed.tools.find( + ({ name }) => name === "close_binary", + ); + if (closeBinary === undefined) + throw new Error("The compiled catalog omitted close_binary"); + const closed = await client.callTool( + { name: "close_binary", arguments: {} }, + { toolDefinition: closeBinary }, + ); expect(closed.isError).not.toBe(true); } finally { await client.close(); @@ -221,10 +239,7 @@ describe("production stdio runtime", () => { record.level >= 50, ); expect(fatal).toEqual([]); - // Full catalog discovery and first-call SDK schema compilation take about - // 8–9 seconds on one local CPU; the 15-second budget repeatedly expired in - // parallel CI shards. Keep a finite budget for the complete workflow. - }, 30_000); + }); it.runIf(process.platform === "darwin")( "serves a database-kind initial target without a fatal record on macOS", diff --git a/tests/acceptance/goBinaryCli.test.ts b/tests/acceptance/goBinaryCli.test.ts new file mode 100644 index 000000000..fd6cd648e --- /dev/null +++ b/tests/acceptance/goBinaryCli.test.ts @@ -0,0 +1,223 @@ +import { writeFile } from "node:fs/promises"; +import { join } from "node:path"; +import { createHash } from "node:crypto"; +import { expect } from "vitest"; +import { toolContract } from "../../src/contracts/toolContracts.js"; +import { + createGoBinaryByteStringFixture, + createGoBinaryDiagnosticFixtures, + createGoBinaryFixture, + createGoBinaryPathFailureFixture, + GO_MODULE_TEXT, +} from "../fixtures/go/image.js"; +import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js"; +import { cliTest } from "../support/cli/cliFixture.js"; + +for (const expectedErrno of ["ELOOP", "ENAMETOOLONG"] as const) { + cliTest.skipIf(expectedErrno === "ELOOP" && process.platform === "win32")( + `reports native ${expectedErrno} path failure as invalid selected-path input through the public Go CLI`, + async ({ cli }) => { + const root = await createTestTempDirectory("rea-go-cli-path-failure-"); + const { path, errno } = await createGoBinaryPathFailureFixture( + root, + expectedErrno, + ); + const result = await cli.run({ + arguments: ["inspect-go-binary", path, "--json"], + }); + expect(result.exitCode).toBe(1); + expect(result.json).toMatchObject({ + code: "invalid_request", + details: { + operation: "inspect_go_binary", + issues: [ + { + path: ["path"], + reason: "invalid_value", + message: expect.stringContaining(errno), + }, + ], + }, + }); + expect(result.json).toMatchObject({ + details: { issues: [{ message: expect.stringContaining(path) }] }, + }); + }, + ); +} + +cliTest( + "preserves invalid embedded Go text bytes through the public CLI", + async ({ cli }) => { + const root = await createTestTempDirectory("rea-go-cli-byte-strings-"); + const path = join(root, "byte-strings.elf"); + const fixture = createGoBinaryByteStringFixture(); + await writeFile(path, fixture.bytes); + const result = await cli.run({ + arguments: ["inspect-go-binary", path, "--json"], + }); + expect(result.exitCode, result.stderr).toBe(0); + const evidence = toolContract("inspect_go_binary").outputSchema.parse( + result.json, + ); + expect(evidence.normalized_result.build_info).toEqual( + fixture.expectedBuildInfo, + ); + }, +); + +for (const fixture of createGoBinaryDiagnosticFixtures()) { + cliTest( + `reports ${fixture.code} for ${fixture.name} through the public Go CLI`, + async ({ cli }) => { + const root = await createTestTempDirectory("rea-go-cli-mz-"); + const path = join(root, `${fixture.name}.exe`); + await writeFile(path, fixture.bytes); + const result = await cli.run({ + arguments: ["inspect-go-binary", path, "--json"], + }); + expect(result.exitCode).toBe(1); + expect(result.json).toMatchObject({ + code: fixture.code, + details: { + ...fixture.details, + ...(fixture.code === "unsupported_target" ? { path } : {}), + }, + }); + }, + ); +} + +cliTest( + "reports a readable unsupported carrier through the public Go CLI", + async ({ cli }) => { + const root = await createTestTempDirectory("rea-go-cli-"); + const path = join(root, "text.bin"); + await writeFile(path, "This is not an executable container."); + const result = await cli.run({ + arguments: ["inspect-go-binary", path, "--json"], + }); + expect(result.exitCode).toBe(1); + expect(result.json).toMatchObject({ + code: "unsupported_target", + details: { operation: "inspect_go_binary", path }, + }); + }, +); + +for (const format of ["elf", "pe", "macho"] as const) { + for (const encoding of ["inline", "pointer"] as const) { + cliTest( + `inspects authored ${format} ${encoding} build metadata through the compiled CLI`, + async ({ cli }) => { + const root = await createTestTempDirectory("rea-go-cli-"); + const fixture = createGoBinaryFixture({ format, encoding }); + const path = join(root, "application.bin"); + await writeFile(path, fixture.bytes); + const result = await cli.run({ + arguments: ["inspect-go-binary", "application.bin", "--json"], + cwd: root, + }); + expect(result.exitCode, result.stderr).toBe(0); + const evidence = toolContract("inspect_go_binary").outputSchema.parse( + result.json, + ); + expect(evidence.raw_result).toBeNull(); + expect(evidence.subject?.local_path).toBe(path); + expect(evidence.subject?.digest.sha256).toBe( + createHash("sha256").update(fixture.bytes).digest("hex"), + ); + const report = evidence.normalized_result; + expect(report).toMatchObject({ + format, + bits: 64, + byte_order: "little", + artifact: { path, bytes: fixture.bytes.length }, + }); + expect(report.build_info).toMatchObject({ + header_offset: fixture.headerOffset, + encoding, + go_version: "go1.26.0", + module_text: GO_MODULE_TEXT, + module_bytes_base64: fixture.moduleBytes.toString("base64"), + module: { + path: "example.com/tool/cmd/tool", + main: { + path: "example.com/tool", + version: "(devel)", + sum: "", + replacement: null, + }, + dependencies: [ + { + path: "example.com/dependency", + version: "v1.2.3", + sum: "h1:sample", + replacement: { path: "../dependency", version: "", sum: "" }, + }, + ], + complete: true, + unparsed_lines: [], + }, + }); + expect(report.build_info?.module.settings).toContainEqual({ + key: "-ldflags", + value: "-s -w", + }); + if (report.build_info === null) + throw new Error("Fixture build metadata must be present"); + const version = report.build_info.version_location; + const module = report.build_info.module_location; + expect( + fixture.bytes + .subarray(version.offset, version.offset + version.bytes) + .toString("utf8"), + ).toBe(report.build_info.go_version); + expect( + fixture.bytes.subarray(module.offset, module.offset + module.bytes), + ).toEqual(Buffer.from(report.build_info.module_bytes_base64, "base64")); + }, + ); + } +} + +cliTest("preserves MIPS identity in Go CLI Evidence", async ({ cli }) => { + const root = await createTestTempDirectory("rea-go-cli-mips-"); + const fixture = createGoBinaryFixture(); + fixture.bytes.writeUInt16LE(8, 18); // ELF EM_MIPS. + const path = join(root, "application.elf"); + await writeFile(path, fixture.bytes); + const result = await cli.run({ + arguments: ["inspect-go-binary", path, "--json"], + }); + expect(result.exitCode, result.stderr).toBe(0); + const evidence = toolContract("inspect_go_binary").outputSchema.parse( + result.json, + ); + expect(evidence.subject?.architecture).toBe("mips"); + expect(evidence.normalized_result).toMatchObject({ + architecture: "mips", + bits: 64, + byte_order: "little", + }); +}); + +cliTest( + "reports missing build information as unknown and preserves unsupported carriers distinctly", + async ({ cli }) => { + const root = await createTestTempDirectory("rea-go-cli-"); + const path = join(root, "metadata-free.elf"); + await writeFile(path, createGoBinaryFixture({ omitBuildInfo: true }).bytes); + const result = await cli.run({ + arguments: ["inspect-go-binary", path, "--json"], + }); + expect(result.exitCode).toBe(0); + const report = toolContract("inspect_go_binary").outputSchema.parse( + result.json, + ).normalized_result; + expect(report.build_info).toBeNull(); + expect(report.limitations.join(" ")).toContain( + "does not establish that the binary is not Go", + ); + }, +); diff --git a/tests/boundary/binaryDiagnostics/pwntoolsDecoderOwnership.test.ts b/tests/boundary/binaryDiagnostics/pwntoolsDecoderOwnership.test.ts new file mode 100644 index 000000000..a4ecc4fe8 --- /dev/null +++ b/tests/boundary/binaryDiagnostics/pwntoolsDecoderOwnership.test.ts @@ -0,0 +1,101 @@ +import { EventEmitter } from "node:events"; +import { writeFile } from "node:fs/promises"; +import { join } from "node:path"; +import { PassThrough } from "node:stream"; +import { expect, it, onTestFinished, vi } from "vitest"; +import { PwntoolsLayoutProvider } from "../../../src/native/pwntools/PwntoolsLayoutProvider.js"; +import { cleanupOwnedProcessGroup } from "../../../src/process/ProcessOwnership.js"; +import { + createTestWorkspace, + removeTestWorkspace, +} from "../../support/workspace/workspaceFixture.js"; + +// Exercise the decoder's launch/cleanup contract independently of the host's +// process table. The interpreter has exec'd over its caller-selected wrapper. +it + .runIf(process.platform === "linux" && process.arch === "x64") + .each(["owned", "wrong-token", "wrong-parent"] as const)( + "cancels an exec wrapper only with current ownership: %s", + async (identity) => { + const { root } = await createTestWorkspace("rea-pwntools-wrapper-"); + onTestFinished(() => removeTestWorkspace(root)); + const path = join(root, "input"); + await writeFile(path, "source-owned-seam-bytes"); + const controller = new AbortController(); + class DecoderProcess extends EventEmitter { + readonly pid = 41234; + readonly stdout = new PassThrough(); + readonly stderr = new PassThrough(); + exitCode: number | null = null; + signalCode: NodeJS.Signals | null = null; + kill(): boolean { + throw new Error("Cleanup must validate ownership before signaling"); + } + } + const child = new DecoderProcess(); + let live = true; + const signalGroup = vi.fn(() => { + live = false; + child.signalCode = "SIGTERM"; + child.stdout.end(); + child.stderr.end(); + child.emit("exit", null, "SIGTERM"); + child.emit("close", null, "SIGTERM"); + }); + const provider = new PwntoolsLayoutProvider( + { REA_PWNTOOLS_PYTHON: process.execPath }, + async (spawn) => { + const ownership = { + runId: spawn.runId, + leaderPid: child.pid, + processGroupId: child.pid, + expectedParentPid: process.pid, + ...(spawn.expectedCommand === null + ? {} + : { expectedCommand: spawn.expectedCommand ?? spawn.command }), + }; + setImmediate(() => controller.abort()); + return { + process: child, + ownership, + cleanup: () => + cleanupOwnedProcessGroup(ownership, { + listProcesses: async () => + live + ? [ + { + pid: child.pid, + parentPid: + identity === "wrong-parent" + ? process.pid + 1 + : process.pid, + processGroupId: child.pid, + state: "S", + command: + "/selected/python -I bridge/pwntools/layout.py", + }, + ] + : [], + environment: async () => ({ + REA_PROCESS_RUN_ID: + identity === "wrong-token" ? "another-run" : spawn.runId, + }), + signalGroup, + }), + }; + }, + ); + const result = await provider.inspect( + { path }, + { signal: controller.signal }, + ); + expect(result).toMatchObject({ + ok: false, + error: + identity === "owned" + ? { _tag: "AnalysisCancelledError" } + : { _tag: "ProviderAdapterError", cleanupIncomplete: true }, + }); + expect(signalGroup).toHaveBeenCalledTimes(identity === "owned" ? 1 : 0); + }, +); diff --git a/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts b/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts index 52611a2a8..e44356d76 100644 --- a/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts +++ b/tests/boundary/filesystem/javascriptArtifactBomRanges.test.ts @@ -79,7 +79,12 @@ for (const format of ["directory", "asar"] as const) { map_path: "app.js.map", resolution: { kind: "artifact-relative", path: "original.js" }, }, - properties: expect.objectContaining({ content_available: true }), + properties: expect.objectContaining({ + content_available: true, + source_name_available: true, + source_index: 0, + declaration_index: 0, + }), }), ); }); diff --git a/tests/boundary/go/goBinaryImage.test.ts b/tests/boundary/go/goBinaryImage.test.ts new file mode 100644 index 000000000..f3793335d --- /dev/null +++ b/tests/boundary/go/goBinaryImage.test.ts @@ -0,0 +1,595 @@ +import { expect, it } from "vitest"; +import { readGoBinaryImage } from "../../../src/go/GoBinaryImage.js"; +import { + createGoBinaryFixture, + GO_MODULE_TEXT, +} from "../../fixtures/go/image.js"; + +it.each([ + ["elf", 32, "little"], + ["elf", 32, "big"], + ["elf", 64, "little"], + ["elf", 64, "big"], + ["pe", 32, "little"], + ["pe", 64, "little"], + ["macho", 32, "little"], + ["macho", 32, "big"], + ["macho", 64, "little"], + ["macho", 64, "big"], +] as const)( + "reads %s %d-bit %s inline build metadata", + (format, bits, byteOrder) => { + const fixture = createGoBinaryFixture({ format, bits, byteOrder }); + expect(readGoBinaryImage(fixture.bytes)).toMatchObject({ + format, + bits, + byte_order: byteOrder, + build_info: { + header_offset: fixture.headerOffset, + encoding: "inline", + go_version: "go1.26.0", + module_text: GO_MODULE_TEXT, + module_bytes_base64: fixture.moduleBytes.toString("base64"), + version_location: { offset: fixture.versionOffset, bytes: 8 }, + module_location: { + offset: fixture.moduleOffset, + bytes: fixture.moduleBytes.length, + }, + }, + }); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "follows mapped pointers in legacy %s metadata", + (format) => { + const fixture = createGoBinaryFixture({ + format, + encoding: "pointer", + goVersion: "go1.17", + }); + expect(readGoBinaryImage(fixture.bytes).build_info).toMatchObject({ + encoding: "pointer", + go_version: "go1.17", + module_text: GO_MODULE_TEXT, + version_location: { offset: fixture.versionOffset, bytes: 6 }, + }); + }, +); + +it.each(["elf", "macho"] as const)( + "finds sectionless %s metadata in its writable data mapping", + (format) => { + const fixture = createGoBinaryFixture({ format, sectionless: true }); + expect(readGoBinaryImage(fixture.bytes).build_info?.go_version).toBe( + "go1.26.0", + ); + }, +); + +it("does not treat a code/overlay decoy or unaligned marker as Go metadata", () => { + const absent = createGoBinaryFixture({ omitBuildInfo: true }); + const decoy = createGoBinaryFixture(); + decoy.bytes + .subarray(decoy.headerOffset, decoy.headerOffset + 512) + .copy(absent.bytes, 3072); + expect(readGoBinaryImage(absent.bytes).build_info).toBeNull(); + const unaligned = createGoBinaryFixture({ + sectionless: true, + omitBuildInfo: true, + }); + decoy.bytes + .subarray(decoy.headerOffset, decoy.headerOffset + 512) + .copy(unaligned.bytes, 1025); + expect(readGoBinaryImage(unaligned.bytes).build_info).toBeNull(); +}); + +it("refuses mapped pointer lengths outside the file instead of rounding 64-bit addresses", () => { + const fixture = createGoBinaryFixture({ encoding: "pointer" }); + fixture.bytes.writeBigUInt64LE(0x20000000000001n, 1536); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError( + /mapped|address/i, + ); + const length = createGoBinaryFixture({ encoding: "pointer" }); + length.bytes.writeBigUInt64LE(0xffffffffffffffffn, 1544); + expect(() => readGoBinaryImage(length.bytes)).toThrowError(/limit|length/i); +}); + +it("refuses overlong or truncated varints before decoding or allocating strings", () => { + const fixture = createGoBinaryFixture(); + fixture.bytes.fill( + 0xff, + fixture.headerOffset + 32, + fixture.headerOffset + 42, + ); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/varint/i); + const truncated = createGoBinaryFixture(); + truncated.bytes.writeBigUInt64LE(33n, 256 + 64 * 2 + 32); + truncated.bytes[truncated.headerOffset + 32] = 0x80; + expect(() => readGoBinaryImage(truncated.bytes)).toThrowError( + /truncated|range|varint/i, + ); +}); + +it("refuses invalid module framing and preserves BOMs without replacement decoding", () => { + const fixture = createGoBinaryFixture(); + fixture.bytes[fixture.moduleOffset] = 0; + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/framing/i); + const bom = createGoBinaryFixture({ + goVersion: "\ufeffgo1.26.0", + moduleText: "\ufeffpath\tx\n", + }); + expect(readGoBinaryImage(bom.bytes).build_info).toMatchObject({ + go_version: "\ufeffgo1.26.0", + module_text: "\ufeffpath\tx\n", + }); +}); + +it("rejects future encodings and invalid pointer widths explicitly", () => { + const flags = createGoBinaryFixture(); + flags.bytes[flags.headerOffset + 15] = 0x82; + expect(() => readGoBinaryImage(flags.bytes)).toThrowError(/flags/i); + const width = createGoBinaryFixture({ encoding: "pointer" }); + width.bytes[width.headerOffset + 14] = 16; + expect(() => readGoBinaryImage(width.bytes)).toThrowError(/pointer/i); +}); + +it("preserves non-UTF8 compiler and module bytes without rejecting other observed metadata", () => { + const version = createGoBinaryFixture(); + version.bytes[version.versionOffset] = 0xff; + expect(readGoBinaryImage(version.bytes).build_info).toMatchObject({ + go_version: null, + go_version_bytes_base64: version.bytes + .subarray(version.versionOffset, version.versionOffset + 8) + .toString("base64"), + module_text: GO_MODULE_TEXT, + }); + const module = createGoBinaryFixture({ moduleText: "build\t-tags=x\n" }); + module.bytes[module.moduleOffset + 16 + Buffer.byteLength("build\t-tags=")] = + 0xff; + expect(readGoBinaryImage(module.bytes).build_info).toMatchObject({ + go_version: "go1.26.0", + module_text: null, + module_bytes_base64: module.bytes + .subarray( + module.moduleOffset, + module.moduleOffset + module.moduleBytes.length, + ) + .toString("base64"), + }); +}); + +it.each([0, 4, 16])("ignores unused inline pointer width %s", (width) => { + const fixture = createGoBinaryFixture(); + fixture.bytes[fixture.headerOffset + 14] = width; + expect(readGoBinaryImage(fixture.bytes).build_info?.go_version).toBe( + "go1.26.0", + ); +}); + +it.each(["pe", "macho"] as const)( + "refuses ambiguous inline %s header mappings", + (format) => { + const fixture = createGoBinaryFixture({ format }); + if (format === "pe") { + fixture.bytes.writeUInt16LE(2, 134); + fixture.bytes.copy(fixture.bytes, 304, 264, 304); + fixture.bytes.writeUInt32LE(512, 324); + } else { + fixture.bytes.writeUInt32LE(2, 16); + fixture.bytes.writeUInt32LE(224, 20); + fixture.bytes.writeUInt32LE(0x19, 184); + fixture.bytes.writeUInt32LE(72, 188); + fixture.bytes.write("__ALIAS", 192); + fixture.bytes.writeBigUInt64LE(0x10000n, 208); + fixture.bytes.writeBigUInt64LE(4096n, 216); + fixture.bytes.writeBigUInt64LE(16n, 224); + fixture.bytes.writeBigUInt64LE(4080n, 232); + } + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/ambiguous/i); + }, +); + +it("refuses a contradictory mapping that overlaps only inline string bytes", () => { + const fixture = createGoBinaryFixture({ format: "pe" }); + fixture.bytes.writeUInt16LE(2, 134); + fixture.bytes.copy(fixture.bytes, 304, 264, 304); + fixture.bytes.writeUInt32LE(16, 312); + fixture.bytes.writeUInt32LE(fixture.moduleOffset + 32, 316); + fixture.bytes.writeUInt32LE(16, 320); + fixture.bytes.writeUInt32LE(512, 324); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/ambiguous/i); +}); + +it("ignores the endian flag for pointer-free strings in a big-endian image", () => { + const fixture = createGoBinaryFixture({ byteOrder: "big" }); + fixture.bytes[fixture.headerOffset + 15] = 2; + expect(readGoBinaryImage(fixture.bytes).build_info?.go_version).toBe( + "go1.26.0", + ); +}); + +it("distinguishes unsupported containers from malformed recognized images", () => { + expect(() => + readGoBinaryImage(Buffer.from([0xca, 0xfe, 0xba, 0xbe])), + ).toThrowError(/universal|fat/i); + expect(() => readGoBinaryImage(Buffer.from("\x7fELF"))).toThrowError( + /truncated/i, + ); + const pe = createGoBinaryFixture({ format: "pe" }); + pe.bytes.writeUInt32LE(0xfffffff0, 60); + expect(() => readGoBinaryImage(pe.bytes)).toThrowError(/range|truncated/i); +}); + +it("rejects ELF header tables overlapping the native header", () => { + const fixture = createGoBinaryFixture({ sectionless: true }); + fixture.bytes.writeBigUInt64LE(0n, 32); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError( + /header|overlap/i, + ); + const declaredSize = createGoBinaryFixture(); + declaredSize.bytes.writeUInt16LE(8192, 52); + expect(() => readGoBinaryImage(declaredSize.bytes)).toThrowError( + /truncated|range/i, + ); +}); + +it("rejects contradictory aliases when a metadata address maps to different file bytes", () => { + const fixture = createGoBinaryFixture(); + fixture.bytes.writeUInt16LE(2, 56); + fixture.bytes.writeUInt32LE(1, 184); + fixture.bytes.writeUInt32LE(6, 188); + fixture.bytes.writeBigUInt64LE(16n, 192); + fixture.bytes.writeBigUInt64LE(0x10000n, 200); + fixture.bytes.writeBigUInt64LE(4080n, 216); + fixture.bytes.writeBigUInt64LE(4080n, 224); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/ambiguous/i); +}); + +it.each(["pe", "elf"] as const)( + "ignores a marker extending past the selected %s data boundary", + (format) => { + const fixture = createGoBinaryFixture({ format, omitBuildInfo: true }); + if (format === "pe") fixture.bytes.writeUInt32LE(2040, 264 + 8); + else fixture.bytes.writeBigUInt64LE(2040n, 256 + 64 * 2 + 32); + Buffer.from("ff20476f206275696c64696e663a", "hex").copy( + fixture.bytes, + 3056, + ); + expect(readGoBinaryImage(fixture.bytes).build_info).toBeNull(); + }, +); + +it.each([0n, 3n])( + "rejects reserved extended ELF section counts containing %s", + (count) => { + const fixture = createGoBinaryFixture(); + fixture.bytes.writeUInt16LE(0, 60); + fixture.bytes.writeBigUInt64LE(count, 256 + 32); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError( + /extended|section count/i, + ); + }, +); + +it.each(["names", "programs"] as const)( + "rejects extended ELF %s values below their reserved ranges", + (field) => { + const fixture = createGoBinaryFixture(); + fixture.bytes.writeUInt16LE(0xffff, field === "names" ? 62 : 56); + fixture.bytes.writeUInt32LE(1, 256 + (field === "names" ? 40 : 44)); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/extended/i); + }, +); + +it("requires SHT_NULL for the initial section carrying extended ELF numbering", () => { + const bytes = extendedElfFixture(); + bytes.writeUInt32LE(1, 4096 + 4); + expect(() => readGoBinaryImage(bytes)).toThrowError( + /initial|section zero|SHT_NULL/i, + ); +}); + +it("reads a valid 65,536-entry ELF section table with an extended name-table index", () => { + const bytes = extendedElfFixture(); + expect(readGoBinaryImage(bytes).build_info).toMatchObject({ + go_version: "go1.26.0", + module_text: GO_MODULE_TEXT, + }); +}); + +const extendedElfFixture = (): Buffer => { + const fixture = createGoBinaryFixture(); + const tableOffset = 4096; + const count = 65536; + const bytes = Buffer.alloc(tableOffset + count * 64); + fixture.bytes.copy(bytes); + bytes.writeBigUInt64LE(BigInt(tableOffset), 40); + bytes.writeUInt16LE(0, 60); + bytes.writeUInt16LE(0xffff, 62); + bytes.writeBigUInt64LE(BigInt(count), tableOffset + 32); + bytes.writeUInt32LE(count - 1, tableOffset + 40); + fixture.bytes.subarray(384, 448).copy(bytes, tableOffset + 64); + fixture.bytes.subarray(320, 384).copy(bytes, tableOffset + (count - 1) * 64); + return bytes; +}; + +const legacyLayouts = [ + ["elf", 32, "little"], + ["elf", 32, "big"], + ["elf", 64, "little"], + ["elf", 64, "big"], + ["pe", 32, "little"], + ["pe", 64, "little"], + ["macho", 32, "little"], + ["macho", 32, "big"], + ["macho", 64, "little"], + ["macho", 64, "big"], +] as const; + +it.each(legacyLayouts)( + "reads moduleless legacy %s %d-bit %s metadata with a zero-filled module header", + (format, bits, byteOrder) => { + const fixture = zeroFilledModuleFixture(format, bits, byteOrder); + expect(readGoBinaryImage(fixture.bytes).build_info).toMatchObject({ + encoding: "pointer", + go_version: "go1.17", + module_text: "", + module_bytes_base64: "", + module_location: { offset: fixture.moduleField, bytes: 0 }, + }); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "recognizes a module header in a %s segment containing only zero-filled memory", + (format) => { + const fixture = zeroFilledModuleFixture(format, 64, "little", true); + expect(readGoBinaryImage(fixture.bytes).build_info).toMatchObject({ + go_version: "go1.17", + module_text: "", + module_location: { offset: fixture.moduleField, bytes: 0 }, + }); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "keeps unmapped and partial zero-filled %s module headers invalid", + (format) => { + const fixture = zeroFilledModuleFixture(format, 64, "little"); + fixture.bytes.writeBigUInt64LE( + fixture.moduleAddress + 8n, + fixture.moduleField, + ); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError( + /mapped|range/i, + ); + fixture.bytes.writeBigUInt64LE(0x30000n, fixture.moduleField); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError( + /mapped|range/i, + ); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "keeps compiler headers in zero-filled %s memory invalid", + (format) => { + const fixture = zeroFilledModuleFixture(format, 64, "little"); + fixture.bytes.writeBigUInt64LE( + fixture.moduleAddress, + fixture.headerOffset + 16, + ); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError( + /mapped|range/i, + ); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "keeps nonempty string contents in zero-filled %s memory invalid", + (format) => { + const version = zeroFilledModuleFixture(format, 64, "little"); + version.bytes.writeBigUInt64LE(version.moduleAddress, 1536); + expect(() => readGoBinaryImage(version.bytes)).toThrowError( + /mapped|range/i, + ); + const module = zeroFilledModuleFixture(format, 64, "little"); + module.bytes.writeBigUInt64LE(0x10000n + 1552n, module.moduleField); + module.bytes.writeBigUInt64LE(module.moduleAddress, 1552); + expect(() => readGoBinaryImage(module.bytes)).toThrowError(/mapped|range/i); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "rejects zero-filled %s extents overflowing the image address width", + (format) => { + const fixture = zeroFilledModuleFixture(format, 64, "little", true); + if (format === "elf") + fixture.bytes.writeBigUInt64LE(0xfffffffffffffff8n, 184 + 16); + else if (format === "pe") + fixture.bytes.writeBigUInt64LE(0xfffffffffffeffffn, 152 + 24); + else fixture.bytes.writeBigUInt64LE(0xfffffffffffffff8n, 184 + 24); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError( + /overflow|addresses/i, + ); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "ignores unused file offsets for %s memory with no file bytes", + (format) => { + const fixture = zeroFilledModuleFixture(format, 64, "little", true); + if (format === "elf") + fixture.bytes.writeBigUInt64LE(0xffffffffffffffffn, 184 + 8); + else if (format === "pe") fixture.bytes.writeUInt32LE(0xffffffff, 304 + 20); + else fixture.bytes.writeBigUInt64LE(0xffffffffffffffffn, 184 + 40); + expect(readGoBinaryImage(fixture.bytes).build_info?.go_version).toBe( + "go1.17", + ); + }, +); + +it("does not treat Mach-O __PAGEZERO as a module string header", () => { + const fixture = zeroFilledModuleFixture("macho", 64, "little", true); + fixture.bytes.fill(0, 184 + 8, 184 + 24); + fixture.bytes.write("__PAGEZERO", 184 + 8); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/mapped|range/i); +}); + +it.each(["elf", "pe", "macho"] as const)( + "refuses file aliases overlapping only part of a zero-filled %s module header", + (format) => { + const fixture = zeroFilledModuleFixture(format, 64, "little"); + addLegacyMapping(fixture.bytes, format, { + address: fixture.moduleAddress + 8n, + fileOffset: 512, + fileSize: 8, + memorySize: 8, + }); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/ambiguous/i); + }, +); + +it.each(["elf", "pe", "macho"] as const)( + "refuses a file alias covering a zero-filled %s module header even when file bytes are zero", + (format) => { + const fixture = zeroFilledModuleFixture(format, 64, "little"); + addLegacyMapping(fixture.bytes, format, { + address: fixture.moduleAddress, + fileOffset: 512, + fileSize: 16, + memorySize: 16, + }); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/ambiguous/i); + }, +); + +it("does not infer PE zero-fill from raw padding beyond a smaller virtual size", () => { + const fixture = createGoBinaryFixture({ format: "pe", encoding: "pointer" }); + fixture.bytes.writeUInt32LE(1024, 264 + 8); + expect(readGoBinaryImage(fixture.bytes).build_info?.go_version).toBe( + "go1.26.0", + ); +}); + +it.each(["inline", "pointer"] as const)( + "refuses zero-filled aliases overlapping only %s string bytes", + (encoding) => { + const fixture = createGoBinaryFixture({ format: "pe", encoding }); + addLegacyMapping(fixture.bytes, "pe", { + address: 0x10000n + BigInt(fixture.moduleOffset + 32), + fileOffset: 0, + fileSize: 0, + memorySize: 8, + }); + expect(() => readGoBinaryImage(fixture.bytes)).toThrowError(/ambiguous/i); + }, +); + +const zeroFilledModuleFixture = ( + format: "elf" | "pe" | "macho", + bits: 32 | 64, + byteOrder: "little" | "big", + separateSegment = false, +) => { + const fixture = createGoBinaryFixture({ + format, + bits, + byteOrder, + encoding: "pointer", + goVersion: "go1.17", + }); + const view = new DataView( + fixture.bytes.buffer, + fixture.bytes.byteOffset, + fixture.bytes.byteLength, + ); + const little = byteOrder === "little"; + const moduleAddress = separateSegment + ? 0x20000n + : format === "pe" + ? 0x10c00n + : 0x11000n; + const moduleField = fixture.headerOffset + 16 + bits / 8; + if (bits === 64) view.setBigUint64(moduleField, moduleAddress, little); + else view.setUint32(moduleField, Number(moduleAddress), little); + if (separateSegment) { + addLegacyMapping( + fixture.bytes, + format, + { address: moduleAddress, fileOffset: 0, fileSize: 0, memorySize: 16 }, + { bits, little }, + ); + } else if (format === "elf") { + if (bits === 64) view.setBigUint64(168, 4112n, little); + else view.setUint32(148, 4112, little); + } else if (format === "pe") { + view.setUint32(152 + (bits === 64 ? 112 : 96) + 8, 2064, little); + } else if (bits === 64) { + view.setBigUint64(32 + 32, 4112n, little); + } else { + view.setUint32(28 + 28, 4112, little); + } + return { ...fixture, moduleAddress, moduleField }; +}; + +const addLegacyMapping = ( + bytes: Buffer, + format: "elf" | "pe" | "macho", + { + address, + fileOffset, + fileSize, + memorySize, + }: { + address: bigint; + fileOffset: number; + fileSize: number; + memorySize: number; + }, + { bits, little }: { bits: 32 | 64; little: boolean } = { + bits: 64, + little: true, + }, +): void => { + const wide = bits === 64; + const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength); + const u32 = (offset: number, value: number) => + view.setUint32(offset, value, little); + const word = (offset: number, value: bigint) => { + if (wide) view.setBigUint64(offset, value, little); + else u32(offset, Number(value)); + }; + if (format === "elf") { + view.setUint16(wide ? 56 : 44, 2, little); + const entry = 128 + (wide ? 56 : 32); + u32(entry, 1); + u32(entry + (wide ? 4 : 24), 6); + word(entry + (wide ? 8 : 4), BigInt(fileOffset)); + word(entry + (wide ? 16 : 8), address); + word(entry + (wide ? 32 : 16), BigInt(fileSize)); + word(entry + (wide ? 40 : 20), BigInt(memorySize)); + } else if (format === "pe") { + view.setUint16(134, 2, little); + const entry = 152 + (wide ? 112 : 96) + 40; + u32(entry + 8, memorySize); + u32(entry + 12, Number(address - 0x10000n)); + u32(entry + 16, fileSize); + u32(entry + 20, fileOffset); + u32(entry + 36, 0xc0000040); + } else { + const entry = wide ? 32 + 72 + 80 : 28 + 56 + 68; + const size = wide ? 72 : 56; + u32(16, 2); + u32(20, entry + size - (wide ? 32 : 28)); + u32(entry, wide ? 0x19 : 1); + u32(entry + 4, size); + bytes.write("__EXTRA", entry + 8); + word(entry + 24, address); + word(entry + (wide ? 32 : 28), BigInt(memorySize)); + word(entry + (wide ? 40 : 32), BigInt(fileOffset)); + word(entry + (wide ? 48 : 36), BigInt(fileSize)); + u32(entry + (wide ? 56 : 40), 3); + u32(entry + (wide ? 60 : 44), 3); + } +}; diff --git a/tests/boundary/go/goBinaryMappings.test.ts b/tests/boundary/go/goBinaryMappings.test.ts new file mode 100644 index 000000000..96a850e48 --- /dev/null +++ b/tests/boundary/go/goBinaryMappings.test.ts @@ -0,0 +1,50 @@ +import { expect, it } from "vitest"; +import { mappedFileOffset } from "../../../src/go/GoBinaryContainer.js"; + +const selected = { address: 100n, offset: 16, size: 64 }; + +it.each([ + { address: 132n, offset: 4, size: 4 }, + { address: 112n, offset: 4, size: 12 }, +])( + "rejects a contradictory alias overlapping only part of the selected bytes", + (alias) => { + expect(() => mappedFileOffset([selected, alias], 120n, 24)).toThrowError( + /ambiguous/i, + ); + }, +); + +it("accepts overlapping aliases that identify exactly the same file bytes", () => { + expect( + mappedFileOffset( + [selected, { address: 132n, offset: 48, size: 4 }], + 120n, + 24, + ), + ).toBe(36); +}); + +it("does not confuse adjacent mappings with overlapping byte spans", () => { + const adjacent = { address: 164n, offset: 80, size: 32 }; + expect(mappedFileOffset([selected, adjacent], 140n, 24)).toBe(56); + expect(mappedFileOffset([selected, adjacent], 164n, 0)).toBe(80); +}); + +it.each([ + { address: 132n, size: 4n }, + { address: 112n, size: 12n }, +])( + "rejects zero-fill aliases overlapping part of file-backed bytes", + (zeroFill) => { + expect(() => + mappedFileOffset([selected], 120n, 24, [zeroFill]), + ).toThrowError(/ambiguous/i); + }, +); + +it("keeps adjacent zero-filled memory outside the selected file span", () => { + expect( + mappedFileOffset([selected], 140n, 24, [{ address: 164n, size: 32n }]), + ).toBe(56); +}); diff --git a/tests/boundary/go/goBinaryProvider.test.ts b/tests/boundary/go/goBinaryProvider.test.ts new file mode 100644 index 000000000..9ee3ad4b4 --- /dev/null +++ b/tests/boundary/go/goBinaryProvider.test.ts @@ -0,0 +1,98 @@ +import { writeFile, symlink } from "node:fs/promises"; +import { join } from "node:path"; +import { expect, it } from "vitest"; +import { GoBinaryProvider } from "../../../src/go/GoBinaryProvider.js"; +import { + AnalysisInputError, + AnalysisResourceConstraintError, + AnalysisUnsupportedTargetError, +} from "../../../src/domain/analysisErrorCore.js"; +import { + createGoBinaryDiagnosticFixtures, + createGoBinaryFixture, +} from "../../fixtures/go/image.js"; +import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; + +it("distinguishes unsupported MZ carriers from damaged PE declarations", async () => { + const root = await createTestTempDirectory("rea-go-mz-"); + for (const fixture of createGoBinaryDiagnosticFixtures()) { + const path = join(root, `${fixture.name}.exe`); + await writeFile(path, fixture.bytes); + const result = await new GoBinaryProvider().inspect({ path }); + expect(result.ok).toBe(false); + if (!result.ok) + expect(result.error).toBeInstanceOf( + fixture.code === "unsupported_target" + ? AnalysisUnsupportedTargetError + : AnalysisInputError, + ); + } +}); + +it.each([32, 64] as const)( + "rejects advertised PE%d data directories outside the optional header", + async (bits) => { + const root = await createTestTempDirectory("rea-go-pe-directories-"); + const fixture = createGoBinaryFixture({ format: "pe", bits }); + fixture.bytes.writeUInt32LE(1, 152 + (bits === 64 ? 108 : 92)); + const path = join(root, `truncated-pe${String(bits)}.exe`); + await writeFile(path, fixture.bytes); + const result = await new GoBinaryProvider().inspect({ path }); + expect(result.ok).toBe(false); + if (!result.ok) { + expect(result.error).toBeInstanceOf(AnalysisInputError); + if (!(result.error instanceof AnalysisInputError)) throw result.error; + expect(result.error.issues).toContainEqual( + expect.objectContaining({ reason: "invalid_format" }), + ); + } + }, +); + +it.each([{ signature: [0xce, 0xc5] }, { signature: [0xcc, 0xd8] }])( + "rejects high-bit lookalikes of Windows signatures %j", + async ({ signature }) => { + const root = await createTestTempDirectory("rea-go-pe-signature-"); + const fixture = createGoBinaryFixture({ format: "pe" }); + fixture.bytes.set(signature, 128); + const path = join(root, "corrupt-signature.exe"); + await writeFile(path, fixture.bytes); + const result = await new GoBinaryProvider().inspect({ path }); + expect(result.ok).toBe(false); + if (!result.ok) expect(result.error).toBeInstanceOf(AnalysisInputError); + }, +); + +it("preserves the actual build-info byte guard as a resource failure", async () => { + const fixture = createGoBinaryFixture(); + fixture.bytes.set([0x81, 0x80, 0x40], fixture.headerOffset + 32); + const root = await createTestTempDirectory("rea-go-resource-"); + const path = join(root, "oversized-metadata.elf"); + await writeFile(path, fixture.bytes); + const result = await new GoBinaryProvider().inspect({ path }); + expect(result.ok).toBe(false); + if (result.ok) + throw new Error("Oversized embedded metadata must not succeed"); + expect(result.error).toBeInstanceOf(AnalysisResourceConstraintError); + if (!(result.error instanceof AnalysisResourceConstraintError)) + throw result.error; + expect(result.error.reason).toContain(path); + expect(result.error.reportedLimits).toEqual({ + boundary: "build-info", + maximum_bytes: 1024 * 1024, + }); +}); + +it.skipIf(process.platform === "win32")( + "rejects a symlink without replacing its selected file identity", + async () => { + const root = await createTestTempDirectory("rea-go-symlink-"); + const selected = join(root, "selected"); + const original = join(root, "original.elf"); + await writeFile(original, createGoBinaryFixture().bytes); + await symlink(original, selected); + const result = await new GoBinaryProvider().inspect({ path: selected }); + expect(result.ok).toBe(false); + if (!result.ok) expect(result.error).toBeInstanceOf(AnalysisInputError); + }, +); diff --git a/tests/boundary/go/goModuleText.test.ts b/tests/boundary/go/goModuleText.test.ts new file mode 100644 index 000000000..2cbb9a8b7 --- /dev/null +++ b/tests/boundary/go/goModuleText.test.ts @@ -0,0 +1,177 @@ +import { describe, expect, it } from "vitest"; +import { + parseGoModuleBytes, + parseGoModuleText, +} from "../../../src/go/GoModuleText.js"; + +describe("Go producer module text", () => { + it("preserves local replacements, empty fields and ordered duplicate build settings", () => { + const parsed = parseGoModuleText( + "path\texample.invalid/app\nmod\texample.invalid/app\t(devel)\t\ndep\texample.invalid/lib\tv1.2.3\th1:bytes\n=>\t../local lib\t\t\nbuild\tGOOS=linux\nbuild\tGOOS=custom\nbuild\t__proto__=kept\n", + ); + expect(parsed).toMatchObject({ + path: "example.invalid/app", + main: { version: "(devel)", sum: "" }, + dependencies: [ + { + path: "example.invalid/lib", + version: "v1.2.3", + sum: "h1:bytes", + replacement: { path: "../local lib", version: "", sum: "" }, + }, + ], + settings: [ + { key: "GOOS", value: "linux" }, + { key: "GOOS", value: "custom" }, + { key: "__proto__", value: "kept" }, + ], + complete: true, + unparsed_lines: [], + unparsed_line_bytes_base64: [], + }); + }); + + it("decodes Go quoting including byte, octal and Unicode escapes without JSON substitution", () => { + const text = + String.raw`build\t"key=quoted"="\a\v\xC3\xA9\303\251\u263a\U0001F680"`.replace( + "\\t", + "\t", + ) + + "\n" + + "build\traw=`a\rb`\n"; + expect(parseGoModuleText(text)).toMatchObject({ + settings: [ + { key: "key=quoted", value: "\x07\x0béé☺🚀" }, + { key: "raw", value: "ab" }, + ], + complete: true, + }); + }); + + it("reports unparsed records and malformed escaped bytes while retaining observed fields", () => { + const text = + 'path\tapp\nmod\tapp\t(devel)\nbuild\tbad="\\xff"\nfuture\tdata\nbuild\tGOARCH=amd64'; + expect(parseGoModuleText(text)).toMatchObject({ + path: "app", + main: { sum: null }, + settings: [], + complete: false, + unparsed_lines: [ + 'build\tbad="\\xff"', + "future\tdata", + "build\tGOARCH=amd64", + ], + }); + }); + + it("does not attach a replacement after a malformed module declaration", () => { + const parsed = parseGoModuleText( + "dep\tfirst\tv1\ndep\tmalformed\n=>\tlocal\t\t\n", + ); + expect(parsed.dependencies).toEqual([ + { path: "first", version: "v1", sum: null, replacement: null }, + ]); + expect(parsed.complete).toBe(false); + }); + + it("preserves duplicate singleton declarations as unknown instead of silently overwriting", () => { + expect( + parseGoModuleText( + "path\tfirst\npath\tsecond\nmod\tfirst\tv1\nmod\tsecond\tv2\n", + ), + ).toMatchObject({ + path: "first", + main: { path: "first", version: "v1" }, + unparsed_lines: ["path\tsecond", "mod\tsecond\tv2"], + complete: false, + }); + }); +}); + +describe("Go producer module bytes", () => { + it("retains byte-valued producer settings and parses surrounding UTF-8 records", () => { + const setting = Buffer.concat([ + Buffer.from("build\t-tags="), + Buffer.from([0xff]), + ]); + const trailing = Buffer.from([0xfe]); + const parsed = parseGoModuleBytes( + Buffer.concat([ + Buffer.from("path\tapp\nmod\tapp\t(devel)\t\nbuild\tGOOS=linux\n"), + setting, + Buffer.from("\nbuild\tGOARCH=amd64\n"), + trailing, + ]), + ); + expect(parsed).toEqual({ + path: "app", + main: { path: "app", version: "(devel)", sum: "", replacement: null }, + dependencies: [], + settings: [ + { key: "GOOS", value: "linux" }, + { key: "GOARCH", value: "amd64" }, + ], + unparsed_lines: [], + unparsed_line_bytes_base64: [ + setting.toString("base64"), + trailing.toString("base64"), + ], + complete: false, + }); + }); + + it.each(["mod", "dep", "=>"])( + "does not bind a replacement through an undecodable %s record", + (record) => { + const invalid = Buffer.concat([ + Buffer.from(`${record}\t`), + Buffer.from([0xff]), + Buffer.from("\tv2\t"), + ]); + expect( + parseGoModuleBytes( + Buffer.concat([ + Buffer.from("dep\tfirst\tv1\n"), + invalid, + Buffer.from("\n=>\tlocal\t\t\n"), + ]), + ), + ).toMatchObject({ + dependencies: [ + { path: "first", version: "v1", sum: null, replacement: null }, + ], + unparsed_lines: ["=>\tlocal\t\t"], + unparsed_line_bytes_base64: [invalid.toString("base64")], + complete: false, + }); + }, + ); + + it.each(["build\t-tags=", "future\t"])( + "preserves replacement context through an undecodable %s record", + (prefix) => { + const invalid = Buffer.concat([Buffer.from(prefix), Buffer.from([0xff])]); + expect( + parseGoModuleBytes( + Buffer.concat([ + Buffer.from("dep\tfirst\tv1\n"), + invalid, + Buffer.from("\n=>\tlocal\t\t\n"), + ]), + ), + ).toMatchObject({ + dependencies: [ + { + path: "first", + version: "v1", + sum: null, + replacement: { path: "local", version: "", sum: "" }, + }, + ], + unparsed_lines: [], + unparsed_line_bytes_base64: [invalid.toString("base64")], + complete: false, + }); + }, + ); +}); diff --git a/tests/boundary/mcp/goBinaryMcp.test.ts b/tests/boundary/mcp/goBinaryMcp.test.ts new file mode 100644 index 000000000..5de16386b --- /dev/null +++ b/tests/boundary/mcp/goBinaryMcp.test.ts @@ -0,0 +1,285 @@ +import type { Client } from "@modelcontextprotocol/client"; +import { Ajv2020 } from "ajv/dist/2020.js"; +import { writeFile } from "node:fs/promises"; +import { join } from "node:path"; +import { expect } from "vitest"; +import { readAnalysisSnapshot } from "../../../src/application/binary/AnalysisSnapshotFiles.js"; +import { GoBinaryService } from "../../../src/application/go/GoBinaryService.js"; +import { toolContract } from "../../../src/contracts/toolContracts.js"; +import { expandToolAvailability } from "../../../src/contracts/toolOutputSchemaPrimitives.js"; +import { parseEvidence } from "../../../src/domain/evidence.js"; +import { GoBinaryProvider } from "../../../src/go/GoBinaryProvider.js"; +import { createServer } from "../../../src/server/createServer.js"; +import { + createCacheProvider, + createDeferred, + createTestBinarySession, +} from "../../fixtures/binarySession.js"; +import { + createGoBinaryByteStringFixture, + createGoBinaryDiagnosticFixtures, + createGoBinaryFixture, + createGoBinaryPathFailureFixture, +} from "../../fixtures/go/image.js"; +import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; +import { parseMcpToolError } from "../../fixtures/mcpToolError.js"; +import { mcpTest } from "../../support/mcp/mcpFixture.js"; + +const goMcpTest = mcpTest.extend<{ + go: { + client: Client; + session: ReturnType; + }; +}>({ + go: async ({ mcp }, use) => { + const session = createTestBinarySession(() => { + throw new Error("Go metadata must not start a deep provider"); + }); + try { + const client = await mcp.connect( + createServer({ kind: "session", session }), + ); + await use({ client, session }); + } finally { + await session.close(); + } + }, +}); + +mcpTest( + "retains MIPS identity and in-flight Go inspection in the saved session snapshot", + async ({ mcp }) => { + const root = await createTestTempDirectory("rea-go-mcp-close-"); + const path = join(root, "application"); + const snapshotPath = join(root, "analysis.json"); + const fixture = createGoBinaryFixture({ bits: 32, byteOrder: "big" }); + fixture.bytes.writeUInt16BE(8, 18); // ELF EM_MIPS. + await writeFile(path, fixture.bytes); + const entered = createDeferred(); + const release = createDeferred(); + const closeStarted = createDeferred(); + const provider = new GoBinaryProvider(); + const session = createTestBinarySession(createCacheProvider([])); + const service = new GoBinaryService({ + identity: provider.identity, + inspect: async (input, options) => { + const result = await provider.inspect(input, options); + entered.resolve(); + await release.promise; + return result; + }, + }); + try { + const client = await mcp.connect( + createServer({ kind: "session", session }, { goBinary: service }), + ); + const opened = await client.callTool({ + name: "open_binary", + arguments: { path }, + }); + expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true); + client.setNotificationHandler("notifications/progress", () => { + closeStarted.resolve(); + }); + const inspection = client.callTool({ + name: "inspect_go_binary", + arguments: { path }, + }); + await entered.promise; + const closing = client.callTool({ + name: "close_binary", + arguments: { snapshot_path: snapshotPath }, + _meta: { progressToken: "go-close-race" }, + }); + await closeStarted.promise; + release.resolve(); + const inspected = await inspection; + expect(inspected.isError, JSON.stringify(inspected.content)).not.toBe( + true, + ); + const evidence = toolContract("inspect_go_binary").outputSchema.parse( + inspected.structuredContent, + ); + expect(evidence.subject?.architecture).toBe("mips"); + expect(evidence.normalized_result).toMatchObject({ + architecture: "mips", + bits: 32, + byte_order: "big", + }); + const closed = await closing; + expect(closed.isError, JSON.stringify(closed.content)).not.toBe(true); + const snapshot = await readAnalysisSnapshot(snapshotPath); + if (!snapshot.ok) throw snapshot.error; + expect(snapshot.value.evidence_bundle.records).toContainEqual(evidence); + expect(session.evidenceById(evidence.evidence_id)).toBeUndefined(); + } finally { + release.resolve(); + await session.close(); + } + }, +); + +for (const expectedErrno of ["ELOOP", "ENAMETOOLONG"] as const) { + goMcpTest.skipIf(expectedErrno === "ELOOP" && process.platform === "win32")( + `reports native ${expectedErrno} path failure as invalid selected-path input through Go MCP`, + async ({ go: { client } }) => { + const root = await createTestTempDirectory("rea-go-mcp-path-failure-"); + const { path, errno } = await createGoBinaryPathFailureFixture( + root, + expectedErrno, + ); + const response = await client.callTool({ + name: "inspect_go_binary", + arguments: { path }, + }); + const diagnostic = parseMcpToolError(response); + expect(diagnostic.error).toMatchObject({ + code: "invalid_request", + details: { + operation: "inspect_go_binary", + issues: [ + { + path: ["path"], + reason: "invalid_value", + message: expect.stringContaining(errno), + }, + ], + }, + }); + expect(diagnostic.error.details).toMatchObject({ + issues: [{ message: expect.stringContaining(path) }], + }); + }, + ); +} + +goMcpTest( + "preserves invalid embedded Go text bytes through MCP", + async ({ go: { client, session } }) => { + const root = await createTestTempDirectory("rea-go-mcp-byte-strings-"); + const path = join(root, "byte-strings.elf"); + const fixture = createGoBinaryByteStringFixture(); + await writeFile(path, fixture.bytes); + const response = await client.callTool({ + name: "inspect_go_binary", + arguments: { path }, + }); + expect(response.isError).not.toBe(true); + const evidence = toolContract("inspect_go_binary").outputSchema.parse( + response.structuredContent, + ); + expect(evidence.normalized_result.build_info).toEqual( + fixture.expectedBuildInfo, + ); + expect(session.evidenceById(evidence.evidence_id)).toEqual(evidence); + }, +); + +goMcpTest( + "distinguishes unsupported MZ carriers from malformed PE through MCP", + async ({ go: { client } }) => { + const root = await createTestTempDirectory("rea-go-mcp-mz-"); + for (const fixture of createGoBinaryDiagnosticFixtures()) { + const path = join(root, `${fixture.name}.exe`); + await writeFile(path, fixture.bytes); + const response = await client.callTool({ + name: "inspect_go_binary", + arguments: { path }, + }); + expect(response.isError).toBe(true); + expect(parseMcpToolError(response)).toMatchObject({ + error: { + code: fixture.code, + details: { + ...fixture.details, + ...(fixture.code === "unsupported_target" ? { path } : {}), + }, + }, + }); + } + }, +); + +goMcpTest( + "advertises valid schemas and inspects real file bytes through MCP without an active target", + async ({ go: { client, session } }) => { + const status = await client.callTool({ + name: "binary_session", + arguments: {}, + }); + const availability = expandToolAvailability( + toolContract("binary_session").outputSchema.parse( + status.structuredContent, + ).result.tool_availability, + ); + expect(availability).toContainEqual( + expect.objectContaining({ + name: "inspect_go_binary", + available: true, + reason: "available", + }), + ); + const advertised = (await client.listTools()).tools.find( + (tool) => tool.name === "inspect_go_binary", + ); + if (advertised?.outputSchema === undefined) + throw new Error("Go metadata must publish both schemas"); + const ajv = new Ajv2020({ strict: false, validateFormats: false }); + const inputSchema: Record = advertised.inputSchema; + const outputSchema: Record = advertised.outputSchema; + expect(ajv.validateSchema(inputSchema)).toBe(true); + expect(ajv.validateSchema(outputSchema)).toBe(true); + expect( + ajv.validate(inputSchema, { path: "/artifacts/program", execute: true }), + ).toBe(false); + expect(ajv.validate(inputSchema, { path: "/artifacts/\0program" })).toBe( + false, + ); + expect(advertised.annotations).toMatchObject({ + readOnlyHint: false, + destructiveHint: false, + idempotentHint: true, + openWorldHint: false, + }); + const root = await createTestTempDirectory("rea-go-mcp-"); + const path = join(root, "application"); + const fixture = createGoBinaryFixture({ + moduleText: "path\texample.com/tool\nnew-record\tfuture\n", + }); + await writeFile(path, fixture.bytes); + const response = await client.callTool({ + name: "inspect_go_binary", + arguments: { path }, + }); + expect(response.isError).not.toBe(true); + expect( + ajv.validate(outputSchema, response.structuredContent), + JSON.stringify(ajv.errors), + ).toBe(true); + const parsed = toolContract("inspect_go_binary").outputSchema.parse( + response.structuredContent, + ); + const evidence = parseEvidence(parsed); + expect(evidence.confidence).toBe("observed"); + expect(parsed.normalized_result.build_info?.module).toMatchObject({ + path: "example.com/tool", + complete: false, + unparsed_lines: ["new-record\tfuture"], + }); + expect(evidence.limitations.join(" ")).toContain( + "could not be parsed completely", + ); + expect(session.evidenceById(evidence.evidence_id)).toEqual(evidence); + const invalid = await client.callTool({ + name: "inspect_go_binary", + arguments: { path: "relative.bin" }, + }); + expect(invalid.isError).toBe(true); + expect(parseMcpToolError(invalid)).toMatchObject({ + error: { + code: "invalid_request", + details: { issues: [{ path: ["path"], reason: "invalid_format" }] }, + }, + }); + }, +); diff --git a/tests/boundary/mcp/toolSchemaValidity.test.ts b/tests/boundary/mcp/toolSchemaValidity.test.ts index adb5f83e9..b833310c3 100644 --- a/tests/boundary/mcp/toolSchemaValidity.test.ts +++ b/tests/boundary/mcp/toolSchemaValidity.test.ts @@ -19,13 +19,30 @@ interface ToolSchemas { } function schemaErrors(tools: readonly ToolSchemas[]): string[] { - const ajv = new Ajv2020({ strict: false, validateFormats: false }); + // Reuse Ajv's meta-schema validators, then clear each root's reference + // namespace, including nested IDs, before validating the next schema. + const ajv = new Ajv2020({ + strict: false, + validateFormats: false, + addUsedSchema: false, + }); return tools.flatMap((tool) => ["inputSchema", "outputSchema"].flatMap((kind) => { const schema = kind === "inputSchema" ? tool.inputSchema : tool.outputSchema; - if (schema === undefined || ajv.validateSchema(schema)) return []; - return [`${tool.name}.${kind}: ${ajv.errorsText(ajv.errors)}`]; + if (schema === undefined) return []; + try { + if (!ajv.validateSchema(schema)) + return [`${tool.name}.${kind}: ${ajv.errorsText(ajv.errors)}`]; + ajv.compile(schema); + return []; + } catch (cause: unknown) { + return [ + `${tool.name}.${kind}: ${cause instanceof Error ? cause.message : String(cause)}`, + ]; + } finally { + ajv.removeSchema(); + } }), ); } @@ -628,6 +645,69 @@ it("ships nonrecursive input and output schemas in the generated catalog", () => expect(recursiveReferences(GENERATED_MCP_TOOL_CATALOG)).toEqual([]); }); +it("rejects unresolved output-schema references even for uncalled tools", () => { + const errors = schemaErrors([ + { + name: "dangling", + inputSchema: { type: "object" }, + outputSchema: { $ref: "#/$defs/missing" }, + }, + ]); + expect(errors).toHaveLength(1); + expect(errors[0]).toContain("dangling.outputSchema"); +}); + +it("validates each tool independently when output schema IDs repeat", () => { + const outputSchema = { $id: "urn:rea:test:shared-output", type: "string" }; + const errors = schemaErrors([ + { name: "first", inputSchema: { type: "object" }, outputSchema }, + { + name: "second", + inputSchema: { type: "object" }, + outputSchema: { ...outputSchema }, + }, + { + name: "broken", + inputSchema: { type: "object" }, + outputSchema: { $id: outputSchema.$id, $ref: "#/$defs/missing" }, + }, + ]); + expect(errors).toHaveLength(1); + expect(errors[0]).toContain("broken.outputSchema"); + expect(errors[0]).toContain("missing"); +}); + +it.each([false, true])( + "rejects references to another tool's nested IDs (earlier compilation fails: %s)", + (invalidPrevious) => { + const nestedId = "urn:rea:test:nested-output"; + const errors = schemaErrors([ + { + name: "first", + inputSchema: { type: "object" }, + outputSchema: { + $defs: { shared: { $id: nestedId, type: "string" } }, + ...(invalidPrevious ? { pattern: "[" } : {}), + }, + }, + { + name: "broken", + inputSchema: { type: "object" }, + outputSchema: { + $ref: nestedId, + $defs: { shared: { type: "number" } }, + }, + }, + ]); + expect(errors).toHaveLength(invalidPrevious ? 2 : 1); + const brokenErrors = errors.filter((error) => + error.startsWith("broken.outputSchema:"), + ); + expect(brokenErrors).toHaveLength(1); + expect(brokenErrors[0]).toContain(nestedId); + }, +); + it("distinguishes recursive references from shared definitions", () => { const diamond = { type: "object", diff --git a/tests/fixtures/go/image.ts b/tests/fixtures/go/image.ts new file mode 100644 index 000000000..009c92917 --- /dev/null +++ b/tests/fixtures/go/image.ts @@ -0,0 +1,355 @@ +import { dosMz } from "../../../src/domain/binaryTarget.fixture.js"; +import { lstat, symlink } from "node:fs/promises"; +import { join } from "node:path"; + +/** Actual filesystem paths that fail before Go artifact acquisition begins. */ +export const createGoBinaryPathFailureFixture = async ( + root: string, + expectedErrno: "ELOOP" | "ENAMETOOLONG", +): Promise<{ path: string; errno: string }> => { + let path = join(root, "a".repeat(256)); + if (expectedErrno === "ELOOP") { + const loop = join(root, "loop"); + await symlink(loop, loop, "dir"); + path = join(loop, "application"); + } + try { + await lstat(path); + } catch (cause: unknown) { + if ( + !(cause instanceof Error) || + !("code" in cause) || + typeof cause.code !== "string" + ) + throw cause; + if ( + (expectedErrno === "ELOOP" || process.platform === "linux") && + cause.code !== expectedErrno + ) + throw new Error( + `Path fixture expected ${expectedErrno}, but native lstat returned ${cause.code}.`, + { cause }, + ); + return { path, errno: cause.code }; + } + throw new Error(`Expected native lstat to reject path fixture: ${path}`); +}; + +/** Producer-shaped Go metadata used for portable binary format regressions. */ +export const GO_MODULE_TEXT = + "path\texample.com/tool/cmd/tool\n" + + "mod\texample.com/tool\t(devel)\t\n" + + "dep\texample.com/dependency\tv1.2.3\th1:sample\n" + + "=>\t../dependency\t\t\n" + + "build\t-compiler=gc\n" + + "build\tGOOS=linux\n" + + 'build\t-ldflags="-s -w"\n'; + +const MODULE_START = Buffer.from("3077af0c9274080241e1c107e6d618e6", "hex"); +const MODULE_END = Buffer.from("f932433186182072008242104116d8f2", "hex"); + +/** Build an authored, file-backed ELF/PE/Mach-O image without executing code. */ +export const createGoBinaryFixture = ( + options: { + format?: "elf" | "pe" | "macho"; + bits?: 32 | 64; + byteOrder?: "little" | "big"; + encoding?: "inline" | "pointer"; + sectionless?: boolean; + goVersion?: string; + moduleText?: string; + omitBuildInfo?: boolean; + } = {}, +): { + bytes: Buffer; + headerOffset: number; + versionOffset: number; + moduleOffset: number; + moduleBytes: Buffer; +} => { + const format = options.format ?? "elf"; + const bits = options.bits ?? 64; + const little = (options.byteOrder ?? "little") === "little"; + const encoding = options.encoding ?? "inline"; + const bytes = Buffer.alloc(4096); + const headerOffset = 1024; + const base = 0x10000; + const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength); + const u16 = (offset: number, value: number) => + view.setUint16(offset, value, little); + const u32 = (offset: number, value: number) => + view.setUint32(offset, value, little); + const word = (offset: number, value: number) => { + if (bits === 64) view.setBigUint64(offset, BigInt(value), little); + else u32(offset, value); + }; + writeFixtureContainer(format, options.sectionless ?? false, { + bytes, + bits, + little, + base, + headerOffset, + u16, + u32, + word, + }); + const version = Buffer.from(options.goVersion ?? "go1.26.0"); + const moduleBytes = Buffer.concat([ + MODULE_START, + Buffer.from(options.moduleText ?? GO_MODULE_TEXT), + MODULE_END, + ]); + let versionOffset: number; + let moduleOffset: number; + if (encoding === "inline") { + const versionLength = encodeVarint(version.length); + versionOffset = headerOffset + 32 + versionLength.length; + const moduleLength = encodeVarint(moduleBytes.length); + moduleOffset = versionOffset + version.length + moduleLength.length; + versionLength.copy(bytes, headerOffset + 32); + version.copy(bytes, versionOffset); + moduleLength.copy(bytes, versionOffset + version.length); + moduleBytes.copy(bytes, moduleOffset); + } else { + const width = bits / 8; + word(headerOffset + 16, base + 1536); + word(headerOffset + 16 + width, base + 1536 + width * 2); + versionOffset = 2048; + moduleOffset = 2304; + word(1536, base + versionOffset); + word(1536 + width, version.length); + word(1536 + width * 2, base + moduleOffset); + word(1536 + width * 3, moduleBytes.length); + version.copy(bytes, versionOffset); + moduleBytes.copy(bytes, moduleOffset); + } + if (!options.omitBuildInfo) { + Buffer.from("ff20476f206275696c64696e663a", "hex").copy( + bytes, + headerOffset, + ); + bytes[headerOffset + 14] = bits / 8; + bytes[headerOffset + 15] = + (little ? 0 : 1) | (encoding === "inline" ? 2 : 0); + } + return { bytes, headerOffset, versionOffset, moduleOffset, moduleBytes }; +}; + +/** Embedded invalid UTF-8 alongside valid records, with exact independent byte expectations. */ +export const createGoBinaryByteStringFixture = () => { + const version = Buffer.from("xgo1.26.0"); + const invalidLine = Buffer.from("build\t-tags=x"); + const fixture = createGoBinaryFixture({ + goVersion: version.toString("utf8"), + moduleText: + "path\texample.com/tool/cmd/tool\n" + + "mod\texample.com/tool\t(devel)\t\n" + + "build\tGOARCH=amd64\n" + + `${invalidLine.toString("utf8")}\n`, + }); + version[0] = 0xff; + version.copy(fixture.bytes, fixture.versionOffset); + const lineOffset = fixture.moduleBytes.indexOf(invalidLine); + fixture.moduleBytes[lineOffset + invalidLine.length - 1] = 0xff; + invalidLine[invalidLine.length - 1] = 0xff; + fixture.moduleBytes.copy(fixture.bytes, fixture.moduleOffset); + return { + bytes: fixture.bytes, + expectedBuildInfo: { + header_offset: fixture.headerOffset, + encoding: "inline", + go_version: null, + go_version_bytes_base64: version.toString("base64"), + module_text: null, + module_bytes_base64: fixture.moduleBytes.toString("base64"), + version_location: { + offset: fixture.versionOffset, + bytes: version.length, + }, + module_location: { + offset: fixture.moduleOffset, + bytes: fixture.moduleBytes.length, + }, + module: { + path: "example.com/tool/cmd/tool", + main: { + path: "example.com/tool", + version: "(devel)", + sum: "", + replacement: null, + }, + dependencies: [], + settings: [{ key: "GOARCH", value: "amd64" }], + unparsed_lines: [], + unparsed_line_bytes_base64: [invalidLine.toString("base64")], + complete: false, + }, + }, + }; +}; + +/** Unsupported DOS/Windows carriers and damaged PE records for public diagnostics. */ +export const createGoBinaryDiagnosticFixtures = () => { + const unsupported = [ + { name: "dos-short", bytes: dosMz(16) }, + { name: "dos", bytes: dosMz() }, + ]; + for (const signature of ["NE", "LE", "LX"]) { + const bytes = dosMz(); + bytes.writeUInt16LE(4, 8); + bytes.writeUInt32LE(64, 60); + bytes.write(signature, 64, "ascii"); + unsupported.push({ name: signature.toLowerCase(), bytes }); + } + const damagedPe = createGoBinaryFixture({ format: "pe" }).bytes; + damagedPe.write("NO", 128, "ascii"); + const absentDirectories = createGoBinaryFixture({ format: "pe" }).bytes; + absentDirectories.writeUInt32LE(1, 152 + 108); + const shortOptionalHeaders = [0, 1].map((size) => { + const bytes = createGoBinaryFixture({ format: "pe" }).bytes; + bytes.writeUInt16LE(size, 148); + // Bytes following the declared header must not supply its magic field. + bytes.fill(0xff, 152 + size, 154); + return { name: `optional-header-${String(size)}-bytes`, bytes }; + }); + return [ + ...unsupported.map((fixture) => ({ + ...fixture, + code: "unsupported_target" as const, + details: { operation: "inspect_go_binary" }, + })), + ...[ + { name: "damaged-pe", bytes: damagedPe }, + { name: "absent-directories", bytes: absentDirectories }, + ...shortOptionalHeaders, + ].map((fixture) => ({ + ...fixture, + code: "invalid_request" as const, + details: { + operation: "inspect_go_binary", + issues: [{ path: ["path"], reason: "invalid_format" }], + }, + })), + ]; +}; + +const encodeVarint = (input: number): Buffer => { + let value = BigInt(input); + const bytes: number[] = []; + while (value >= 128n) { + bytes.push(Number(value & 127n) | 128); + value >>= 7n; + } + bytes.push(Number(value)); + return Buffer.from(bytes); +}; + +const writeFixtureContainer = ( + format: "elf" | "pe" | "macho", + sectionless: boolean, + context: { + bytes: Buffer; + bits: 32 | 64; + little: boolean; + base: number; + headerOffset: number; + u16: (offset: number, value: number) => void; + u32: (offset: number, value: number) => void; + word: (offset: number, value: number) => void; + }, +): void => { + const { bytes, bits, little, base, headerOffset, u16, u32, word } = context; + if (format === "elf") { + bytes.set([0x7f, 0x45, 0x4c, 0x46, bits === 64 ? 2 : 1, little ? 1 : 2, 1]); + u16(16, 2); + u16(18, bits === 64 ? 62 : 3); + u32(20, 1); + const wide = bits === 64; + word(wide ? 32 : 28, 128); + word(wide ? 40 : 32, sectionless ? 0 : 256); + u16(wide ? 52 : 40, wide ? 64 : 52); + u16(wide ? 54 : 42, wide ? 56 : 32); + u16(wide ? 56 : 44, 1); + u16(wide ? 58 : 46, wide ? 64 : 40); + u16(wide ? 60 : 48, sectionless ? 0 : 3); + u16(wide ? 62 : 50, sectionless ? 0 : 1); + u32(128, 1); + if (wide) { + u32(132, 6); + word(136, 0); + word(144, base); + word(160, bytes.length); + word(168, bytes.length); + } else { + word(132, 0); + word(136, base); + word(144, bytes.length); + word(148, bytes.length); + u32(152, 6); + } + if (!sectionless) { + const entrySize = wide ? 64 : 40; + const strings = Buffer.from("\0.shstrtab\0.go.buildinfo\0"); + strings.copy(bytes, 768); + const names = 256 + entrySize; + u32(names, 1); + u32(names + 4, 3); + word(names + (wide ? 24 : 16), 768); + word(names + (wide ? 32 : 20), strings.length); + const info = 256 + entrySize * 2; + u32(info, 11); + u32(info + 4, 1); + word(info + (wide ? 16 : 12), base + headerOffset); + word(info + (wide ? 24 : 16), headerOffset); + word(info + (wide ? 32 : 20), 2048); + } + } else if (format === "pe") { + if (!little) throw new Error("PE fixtures are little endian"); + bytes.write("MZ", 0, "ascii"); + u32(60, 128); + bytes.write("PE\0\0", 128, "ascii"); + u16(132, bits === 64 ? 0x8664 : 0x14c); + u16(134, 1); + const optionalSize = bits === 64 ? 112 : 96; + u16(148, optionalSize); + u16(152, bits === 64 ? 0x20b : 0x10b); + word(152 + (bits === 64 ? 24 : 28), base); + const section = 152 + optionalSize; + bytes.write(".data", section, "ascii"); + u32(section + 8, 2048); + u32(section + 12, headerOffset); + u32(section + 16, 2048); + u32(section + 20, headerOffset); + u32(section + 36, 0xc0000040); + } else { + const wide = bits === 64; + u32(0, wide ? 0xfeedfacf : 0xfeedface); + u32(4, wide ? 0x01000007 : 7); + u32(8, 3); + u32(12, 2); + u32(16, 1); + const segmentSize = wide ? 72 : 56; + const sectionSize = wide ? 80 : 68; + const commandSize = segmentSize + (sectionless ? 0 : sectionSize); + u32(20, commandSize); + const command = wide ? 32 : 28; + u32(command, wide ? 0x19 : 1); + u32(command + 4, commandSize); + bytes.write("__DATA", command + 8, "ascii"); + word(command + 24, base); + word(command + (wide ? 32 : 28), bytes.length); + word(command + (wide ? 40 : 32), 0); + word(command + (wide ? 48 : 36), bytes.length); + u32(command + (wide ? 56 : 40), 3); + u32(command + (wide ? 60 : 44), 3); + u32(command + (wide ? 64 : 48), sectionless ? 0 : 1); + if (!sectionless) { + const section = command + segmentSize; + bytes.write("__go_buildinfo", section, "ascii"); + bytes.write("__DATA", section + 16, "ascii"); + word(section + 32, base + headerOffset); + word(section + (wide ? 40 : 36), 2048); + u32(section + (wide ? 48 : 40), headerOffset); + } + } +}; diff --git a/tests/fixtures/localToolsMcp.ts b/tests/fixtures/localToolsMcp.ts index a7b1b0d10..bdfc3b84c 100644 --- a/tests/fixtures/localToolsMcp.ts +++ b/tests/fixtures/localToolsMcp.ts @@ -72,7 +72,10 @@ export async function connectLocalToolsMcp() { const call = async (name: string, arguments_: Record) => { const definition = definitions.get(name); if (definition !== undefined) compileValidator(definition.inputSchema); - const response = await client.callTool({ name, arguments: arguments_ }); + const response = await client.callTool( + { name, arguments: arguments_ }, + definition === undefined ? undefined : { toolDefinition: definition }, + ); if ( response.structuredContent !== undefined && definition?.outputSchema !== undefined diff --git a/vitest.config.ts b/vitest.config.ts index 7a9485c4e..716b3b0e5 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -51,7 +51,7 @@ const TEST_PROJECTS = [ name: "adapters", include: [ "src/*.test.ts", - "src/{apktool,jeb,adb,artifacts,browser,dotnet,evm,firmware,ghidra,hopper,ida,inspector,javascript,native,process,reference,server,wasm,windows}/**/*.test.ts", + "src/{apktool,jeb,adb,artifacts,browser,dotnet,evm,firmware,ghidra,go,hopper,ida,inspector,javascript,native,process,reference,server,wasm,windows}/**/*.test.ts", ], pool: "forks" as const, maxWorkers: MAX_TEST_WORKERS, From d0249282c64882329a6acab8f3b477552da53499 Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Sun, 11 Oct 2026 20:56:19 -0700 Subject: [PATCH 04/44] docs(install): explain Claude Code upfront tool loading on third-party endpoints (#2029) Claude Code turns MCP tool search off when ANTHROPIC_BASE_URL points to a non-first-party host, so every REA tool definition is sent with every request. On main at 04089d5be the forwarded names, descriptions and input schemas measure about 496 KB (~120k tokens) with the full profile and about 290 KB (~68k tokens) with the compact profile. When Claude Code assumes a smaller window than the model has, as with `deepseek-v4-flash` without the `[1m]` suffix, autocompact thrashes because compaction cannot remove tool definitions. Document the window, tool-search and compact-profile remedies, and that DeepSeek's Anthropic API does not list `tool_reference` blocks. Refs #2019 Co-authored-by: Claude Opus 5.5 --- docs/installation.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 3c12d299b..ff6210f8f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -189,6 +189,35 @@ schema constraints; REA still validates complete canonical inputs. Full-profile `gpt-5.4` metadata is also verified locally. Live model API acceptance and Windows remain unverified; see [native client verification](testing.md). +Claude Code normally defers MCP tool definitions through tool search. It +[turns tool search off](https://code.claude.com/docs/en/mcp#configure-tool-search) +when `ANTHROPIC_BASE_URL` points to a non-first-party host, such as DeepSeek's +Anthropic-compatible endpoint. It then sends every REA tool's name, description +and input schema with every request +([#2019](https://github.com/morluto/rea/issues/2019)). On main at 04089d5be, +with 172 tools, that payload measured about 496 KB with the default profile and +about 290 KB with `compact`. By the o200k and cl100k tokenizers, that is roughly +120k and 68k tokens. Compaction cannot remove tool definitions. If they nearly +fill the window Claude Code assumes, the context refills after every compaction +and Claude Code reports that autocompact is thrashing. To avoid this: + +- Make Claude Code assume the model's actual context window. DeepSeek's Claude + Code guide selects `deepseek-flash[1m]`; the `[1m]` suffix makes Claude Code + assume a one-million-token window. For other unrecognized model IDs, set + `CLAUDE_CODE_MAX_CONTEXT_TOKENS` to the window the provider documents. +- If the endpoint forwards `tool_reference` blocks, set `ENABLE_TOOL_SEARCH=true` + to restore deferred loading. DeepSeek's Anthropic API guide does not list + `tool_reference` among its supported content blocks, so this setting may cause + its requests to fail. +- To shrink the upfront catalog, add + `"REA_MCP_INPUT_SCHEMA_PROFILE": "compact"` to the `env` object of the + `mcpServers.rea` entry in `~/.claude.json` (`$CLAUDE_CONFIG_DIR/.claude.json` + when that variable is set), then restart Claude Code. Setup keeps this + override. + +The sizes above come from REA's own `tools/list`. A live Claude Code session +against DeepSeek's API is unverified. + For [Pi](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/mcp.md), setup writes a `type: "stdio"` entry under `mcpServers.rea` in the user-level `~/.pi/agent/mcp.json` and installs the bundled skill under `~/.agents/skills`. From 4a4d36f881861bbab3c734b0dd459f805766caec Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:51:33 +0800 Subject: [PATCH 05/44] fix(evidence): retain unreadable PE and Darwin process facts Distinguish absent CLI directories from unreadable directory counts and truncated slots while preserving known PE headers and readable CLI data. Retain environment-entry coverage in the Darwin parser and classify restricted empty, unavailable and ambiguous environments at the native boundary. Keep cleanup fail-closed; code-signing flags do not establish ownership. Validation: 116 managed source tests, 13 ownership tests, native Swift parser probe and two live Darwin run-token tests; build, static checks and docs checks pass. Restricted-flag cases use parser fixtures; no real restricted capture is claimed. Related to #2035. --- bridge/process/ProcessRunTokenReader.swift | 110 ++++++++---- src/dotnet/ManagedArtifactInspector.test.ts | 157 ++++++++++++++++++ src/dotnet/ManagedArtifactInspector.ts | 2 +- src/dotnet/ManagedNativeBoundaryInspector.ts | 2 +- src/dotnet/ManagedPeReader.ts | 62 +++++-- src/process/ProcessOwnership.test.ts | 13 +- src/process/ProcessOwnership.ts | 2 + .../darwinProcessRunTokenReader.test.ts | 32 ++++ .../fixtures/processRunTokenParserProbe.swift | 130 ++++++++++++--- 9 files changed, 426 insertions(+), 84 deletions(-) diff --git a/bridge/process/ProcessRunTokenReader.swift b/bridge/process/ProcessRunTokenReader.swift index 21a2726fb..d4b21fe51 100644 --- a/bridge/process/ProcessRunTokenReader.swift +++ b/bridge/process/ProcessRunTokenReader.swift @@ -112,6 +112,11 @@ enum RunTokenReadError: Error { case ambiguousEnvironmentBoundary } +struct ParsedRunToken { + let runId: String? + let environmentEntryCount: Int +} + @_silgen_name("csops") private func csops( _ pid: Int32, @@ -122,19 +127,67 @@ private func csops( private let csOpsStatus: UInt32 = 0 private let csPlatformBinary: UInt32 = 0x0400_0000 +private let csRestrict: UInt32 = 0x0000_0800 -/** - * Whether the target image is an Apple platform binary. Current macOS omits - * the environment of platform binaries from KERN_PROCARGS2 for every caller, - * so this distinguishes a policy-withheld environment from a process whose - * environment is genuinely absent or transiently unreadable. - */ -func isPlatformBinary(pid: Int32) -> Bool { +/** Read the target's current code-signing flags when csops permits inspection. */ +private func codeSigningFlags(pid: Int32) -> UInt32? { var flags: UInt32 = 0 let result = withUnsafeMutablePointer(to: &flags) { pointer in csops(pid, csOpsStatus, UnsafeMutableRawPointer(pointer), MemoryLayout.size) } - return result == 0 && (flags & csPlatformBinary) != 0 + return result == 0 ? flags : nil +} + +/** Derive one process-token observation from parser facts and native flags. */ +func processRunTokenObservation( + pid: Int32, + parse: Result, + codeSigningFlags: () -> UInt32? +) -> RunTokenObservation { + switch parse { + case .success(let parsed): + if let runId = parsed.runId { + return RunTokenObservation(pid: pid, state: "readable", run_id: runId, reason: nil) + } + // A non-empty environment without REA's token proves this candidate is + // unrelated. CS_RESTRICT cannot turn that readable fact into uncertainty. + if parsed.environmentEntryCount > 0 { + return RunTokenObservation(pid: pid, state: "readable", run_id: nil, reason: nil) + } + let flags = codeSigningFlags() + if let flags, (flags & csPlatformBinary) != 0 { + return unavailable(pid: pid, reason: "platform_binary_environment_withheld") + } + if let flags, (flags & csRestrict) != 0 { + return unavailable(pid: pid, reason: "restricted_process_environment_withheld") + } + return RunTokenObservation(pid: pid, state: "readable", run_id: nil, reason: nil) + case .failure(let failure): + switch failure { + case .environmentUnavailable: + let flags = codeSigningFlags() + if let flags, (flags & csPlatformBinary) != 0 { + return unavailable(pid: pid, reason: "platform_binary_environment_withheld") + } + if let flags, (flags & csRestrict) != 0 { + return unavailable(pid: pid, reason: "restricted_process_environment_withheld") + } + return unavailable(pid: pid, reason: "environment_unavailable") + case .ambiguousEnvironmentBoundary: + if let flags = codeSigningFlags(), (flags & csRestrict) != 0 { + return unavailable(pid: pid, reason: "restricted_process_environment_withheld") + } + return unavailable(pid: pid, reason: "ambiguous_environment_boundary") + case .duplicateToken: + return unavailable(pid: pid, reason: "duplicate_run_token") + case .invalidTokenEncoding: + return unavailable(pid: pid, reason: "invalid_run_token_encoding") + case .appleVectorUnavailable: + return unavailable(pid: pid, reason: "apple_vector_unavailable") + case .invalidBuffer: + return unavailable(pid: pid, reason: "malformed_procargs") + } + } } private func readRunToken(pid: Int32, pointerSize: Int) -> RunTokenObservation { @@ -151,33 +204,19 @@ private func readRunToken(pid: Int32, pointerSize: Int) -> RunTokenObservation { return unavailable(pid: pid, reason: "sysctl_failed_\(errno)") } bytes = Array(bytes.prefix(size)) + let parse: Result do { - let runId = try token(in: bytes, pointerSize: pointerSize) - // A complete empty environment is readable for an ordinary image. Apple - // platform images can expose the same layout after the kernel withholds - // their environment, so they remain explicitly unverified without a token. - if runId == nil && isPlatformBinary(pid: pid) { - return unavailable(pid: pid, reason: "platform_binary_environment_withheld") - } - return RunTokenObservation(pid: pid, state: "readable", run_id: runId, reason: nil) - } catch RunTokenReadError.duplicateToken { - return unavailable(pid: pid, reason: "duplicate_run_token") - } catch RunTokenReadError.invalidTokenEncoding { - return unavailable(pid: pid, reason: "invalid_run_token_encoding") - } catch RunTokenReadError.environmentUnavailable { - return unavailable( - pid: pid, - reason: isPlatformBinary(pid: pid) - ? "platform_binary_environment_withheld" - : "environment_unavailable" - ) - } catch RunTokenReadError.appleVectorUnavailable { - return unavailable(pid: pid, reason: "apple_vector_unavailable") - } catch RunTokenReadError.ambiguousEnvironmentBoundary { - return unavailable(pid: pid, reason: "ambiguous_environment_boundary") + parse = .success(try parseProcessEnvironment(in: bytes, pointerSize: pointerSize)) + } catch let failure as RunTokenReadError { + parse = .failure(failure) } catch { - return unavailable(pid: pid, reason: "malformed_procargs") + parse = .failure(.invalidBuffer) } + return processRunTokenObservation( + pid: pid, + parse: parse, + codeSigningFlags: { codeSigningFlags(pid: pid) } + ) } func readRunTokens(pids: [Int32]) -> [RunTokenObservation] { @@ -201,7 +240,10 @@ func readRunTokens(pids: [Int32]) -> [RunTokenObservation] { } } -func token(in bytes: [UInt8], pointerSize: Int = MemoryLayout.size) throws -> String? { +func parseProcessEnvironment( + in bytes: [UInt8], + pointerSize: Int = MemoryLayout.size +) throws -> ParsedRunToken { guard bytes.count >= MemoryLayout.size else { throw RunTokenReadError.invalidBuffer } let argc = bytes.withUnsafeBytes { $0.loadUnaligned(as: Int32.self).littleEndian } guard argc >= 0, Int(argc) <= bytes.count else { throw RunTokenReadError.invalidBuffer } @@ -277,7 +319,7 @@ func token(in bytes: [UInt8], pointerSize: Int = MemoryLayout. found = decoded } } - return found + return ParsedRunToken(runId: found, environmentEntryCount: environmentEntries.count) } private func readString( diff --git a/src/dotnet/ManagedArtifactInspector.test.ts b/src/dotnet/ManagedArtifactInspector.test.ts index 3fc74337e..2d30bf580 100644 --- a/src/dotnet/ManagedArtifactInspector.test.ts +++ b/src/dotnet/ManagedArtifactInspector.test.ts @@ -22,6 +22,163 @@ const metadataLayoutFor = (bytes: Buffer) => { ); }; +const resizedOptionalHeader = ( + size: number, + magic: number, +): { readonly bytes: Buffer; readonly optional: number } => { + const bytes = buildManagedPeFixture(); + const coff = bytes.readUInt32LE(0x3c) + 4; + const optional = coff + 20; + const originalSize = bytes.readUInt16LE(coff + 16); + const section = Buffer.from( + bytes.subarray(optional + originalSize, optional + originalSize + 40), + ); + section.copy(bytes, optional + size); + bytes.writeUInt16LE(size, coff + 16); + bytes.writeUInt16LE(magic, optional); + return { bytes, optional }; +}; + +describe("managed PE optional-header directory count", () => { + it.each([96, 108, 111])( + "retains an unreadable PE32+ directory count at optional size %i", + (optionalSize) => { + const { bytes, optional } = resizedOptionalHeader(optionalSize, 0x020b); + // The section's first four bytes look like a count that excludes CLI. + bytes.writeUInt32LE(14, optional + optionalSize); + + const layout = readManagedPeLayout(bytes); + expect(layout).toMatchObject({ + optionalHeader: "pe32-plus", + machine: 0x014c, + cli: null, + cliDirectoryState: "unreadable", + cliIssue: { + code: "invalid-directory", + scope: "pe.optional-header", + }, + }); + const result = inspectManagedArtifactBytes( + bytes, + managedPeFixtureTarget(bytes), + ); + expect(result.classification.status).toBe("malformed"); + expect(result.metadata.status).toBe("malformed"); + expect(result.coverage.issues).toContainEqual( + expect.objectContaining({ + code: "invalid-directory", + scope: "pe.optional-header", + }), + ); + }, + ); + + it.each([ + { size: 96, magic: 0x010b, countOffset: 92, header: "pe32" }, + { size: 112, magic: 0x020b, countOffset: 108, header: "pe32-plus" }, + ])("accepts a minimum $header header with no CLI directory", (fixture) => { + const { bytes, optional } = resizedOptionalHeader( + fixture.size, + fixture.magic, + ); + bytes.writeUInt32LE(0, optional + fixture.countOffset); + + expect(readManagedPeLayout(bytes)).toMatchObject({ + optionalHeader: fixture.header, + cli: null, + cliDirectoryState: "absent", + cliIssue: null, + }); + }); +}); + +describe("managed CLI directory availability", () => { + it("keeps a declared but truncated CLI directory malformed", () => { + const bytes = buildManagedPeFixture(); + const peOffset = bytes.readUInt32LE(0x3c); + const coff = peOffset + 4; + const optional = coff + 20; + const originalOptionalSize = bytes.readUInt16LE(coff + 16); + const truncatedOptionalSize = 96 + 14 * 8 + 7; + const sectionHeader = Buffer.from( + bytes.subarray( + optional + originalOptionalSize, + optional + originalOptionalSize + 40, + ), + ); + sectionHeader.copy(bytes, optional + truncatedOptionalSize); + bytes.writeUInt16LE(truncatedOptionalSize, coff + 16); + bytes.writeUInt32LE(15, optional + 92); + + const layout = readManagedPeLayout(bytes); + expect(layout).toMatchObject({ + cli: null, + cliDirectoryState: "unreadable", + cliIssue: { + code: "invalid-directory", + scope: "pe.data-directories", + }, + }); + + const target = managedPeFixtureTarget(bytes); + const results = [ + inspectManagedArtifactBytes(bytes, target), + inspectManagedMembersBytes(bytes, target), + inspectManagedNativeBoundariesBytes(bytes, target), + ]; + for (const [index, result] of results.entries()) { + expect(result.metadata.status).toBe("malformed"); + expect(result.coverage).toMatchObject({ + state: index === 0 ? "partial" : "unavailable", + issues: [ + expect.objectContaining({ + code: "invalid-directory", + scope: "pe.data-directories", + }), + ], + }); + } + }); + + it("treats a CLI directory excluded by NumberOfRvaAndSizes as absent", () => { + const bytes = buildManagedPeFixture(); + const peOffset = bytes.readUInt32LE(0x3c); + const optional = peOffset + 4 + 20; + bytes.writeUInt32LE(14, optional + 92); + + const layout = readManagedPeLayout(bytes); + expect(layout).toMatchObject({ + cli: null, + cliDirectoryState: "absent", + cliIssue: null, + }); + const result = inspectManagedArtifactBytes( + bytes, + managedPeFixtureTarget(bytes), + ); + expect(result.classification.status).toBe("not-managed"); + expect(result.metadata.status).toBe("absent"); + }); + + it("retains an in-range CLI directory when the count overstates later entries", () => { + const bytes = buildManagedPeFixture(); + const peOffset = bytes.readUInt32LE(0x3c); + const optional = peOffset + 4 + 20; + bytes.writeUInt32LE(17, optional + 92); + + const layout = readManagedPeLayout(bytes); + expect(layout.cliDirectoryState).toBe("present"); + expect(layout.cliIssue).toBeNull(); + expect(layout.cli).not.toBeNull(); + const result = inspectManagedArtifactBytes( + bytes, + managedPeFixtureTarget(bytes), + ); + expect(result.classification.status).toBe("managed"); + expect(result.metadata.status).toBe("complete"); + }); +}); + describe("managed artifact inventory", () => { it.each([ { moduleRowCount: 0, assemblyRowCount: 1, scope: "metadata.Module" }, diff --git a/src/dotnet/ManagedArtifactInspector.ts b/src/dotnet/ManagedArtifactInspector.ts index cd0d627b0..7df8aae83 100644 --- a/src/dotnet/ManagedArtifactInspector.ts +++ b/src/dotnet/ManagedArtifactInspector.ts @@ -102,7 +102,7 @@ const unavailableResult = ( bytes: Buffer, layout: ManagedPeLayout, ): ManagedArtifactInspection => { - const malformed = layout.cliDirectoryPresent; + const malformed = layout.cliDirectoryState !== "absent"; const issues = layout.cliIssue === null ? [] : [layout.cliIssue]; const limitations = malformed ? [ diff --git a/src/dotnet/ManagedNativeBoundaryInspector.ts b/src/dotnet/ManagedNativeBoundaryInspector.ts index 22fd92ea0..773a95c07 100644 --- a/src/dotnet/ManagedNativeBoundaryInspector.ts +++ b/src/dotnet/ManagedNativeBoundaryInspector.ts @@ -134,7 +134,7 @@ export const inspectManagedNativeBoundariesBytes = ( return emptyInspection( target, bytes, - pe.cliDirectoryPresent ? "malformed" : "not-managed", + pe.cliDirectoryState !== "absent" ? "malformed" : "not-managed", { issues: pe.cliIssue === null ? [] : [pe.cliIssue] }, ); const issues: ManagedParseIssue[] = []; diff --git a/src/dotnet/ManagedPeReader.ts b/src/dotnet/ManagedPeReader.ts index 6f11cc491..2f9bc3151 100644 --- a/src/dotnet/ManagedPeReader.ts +++ b/src/dotnet/ManagedPeReader.ts @@ -39,7 +39,7 @@ export interface ManagedPeLayout { readonly characteristics: number; readonly sections: readonly PeSection[]; readonly cli: ManagedCliHeader | null; - readonly cliDirectoryPresent: boolean; + readonly cliDirectoryState: "absent" | "present" | "unreadable"; readonly cliIssue: ManagedParseIssue | null; rvaToOffset(rva: number, size: number, scope: string): number; rvaAvailableBytes(rva: number, scope: string): number; @@ -68,6 +68,11 @@ interface OptionalHeader { readonly directoryOffset: number; } +type CliDirectoryRead = + | { readonly kind: "absent" } + | { readonly kind: "present"; readonly directory: PeDataDirectory } + | { readonly kind: "unreadable"; readonly issue: ManagedParseIssue }; + const requireRange = ( bytes: Buffer, offset: number, @@ -355,15 +360,38 @@ const readCliDirectory = ( bytes: Buffer, coff: CoffHeader, optional: OptionalHeader, -): PeDataDirectory => { - requireRange(bytes, optional.directoryCountOffset, 4, "pe.data-directories"); +): CliDirectoryRead => { + const countOffset = optional.directoryCountOffset - optional.optionalOffset; + if (countOffset + 4 > coff.optionalSize) + return { + kind: "unreadable", + issue: { + code: "invalid-directory", + scope: "pe.optional-header", + detail: "PE optional header does not contain its directory count", + offset: optional.directoryCountOffset, + }, + }; const directoryCount = bytes.readUInt32LE(optional.directoryCountOffset); - if ( - directoryCount <= 14 || - coff.optionalSize < optional.directoryOffset - optional.optionalOffset + 120 - ) - return { rva: 0, size: 0 }; - return readDirectory(bytes, optional.directoryOffset + 14 * 8); + if (directoryCount <= 14) return { kind: "absent" }; + const availableDirectoryCount = Math.floor( + (coff.optionalSize - (optional.directoryOffset - optional.optionalOffset)) / + 8, + ); + if (availableDirectoryCount < 15) + return { + kind: "unreadable", + issue: { + code: "invalid-directory", + scope: "pe.data-directories", + detail: "PE data-directory count exceeds the optional-header extent", + offset: optional.directoryCountOffset, + }, + }; + const directory = readDirectory(bytes, optional.directoryOffset + 14 * 8); + return directory.rva !== 0 || directory.size !== 0 + ? { kind: "present", directory } + : { kind: "absent" }; }; /** Parse the file-backed PE and CLI layout without loading target code. */ @@ -379,26 +407,28 @@ export const readManagedPeLayout = (bytes: Buffer): ManagedPeLayout => { const coff = readCoffHeader(bytes); const optional = readOptionalHeader(bytes, coff); const sections = readSections(bytes, coff, optional); - const cliDirectory = readCliDirectory(bytes, coff, optional); - const cliDirectoryPresent = cliDirectory.rva !== 0 || cliDirectory.size !== 0; + const cliDirectoryRead = readCliDirectory(bytes, coff, optional); + const cliDirectoryState = cliDirectoryRead.kind; let cli: ManagedCliHeader | null = null; - let cliIssue: ManagedParseIssue | null = null; - if (cliDirectoryPresent) + let cliIssue: ManagedParseIssue | null = + cliDirectoryRead.kind === "unreadable" ? cliDirectoryRead.issue : null; + if (cliDirectoryRead.kind === "present") { try { - cli = readCliHeader(bytes, sections, cliDirectory); + cli = readCliHeader(bytes, sections, cliDirectoryRead.directory); } catch (cause: unknown) { if (!(cause instanceof ManagedReaderFailure)) throw cause; cliIssue = cause.issue; } + } return { machine: coff.machine, - architecture: architectureFor(coff.machine, cliDirectoryPresent), + architecture: architectureFor(coff.machine, cliDirectoryState !== "absent"), optionalHeader: optional.optionalHeader, sectionCount: coff.sectionCount, characteristics: coff.characteristics, sections, cli, - cliDirectoryPresent, + cliDirectoryState, cliIssue, rvaToOffset: (rva, size, scope) => mapRva({ bytes, sections, rva, size, scope }), diff --git a/src/process/ProcessOwnership.test.ts b/src/process/ProcessOwnership.test.ts index 5f1906a3a..0aa644add 100644 --- a/src/process/ProcessOwnership.test.ts +++ b/src/process/ProcessOwnership.test.ts @@ -138,7 +138,10 @@ describe("opaque process neighbors during cleanup", () => { expect(signalGroup).not.toHaveBeenCalledWith(900, "SIGKILL"); }); - it("fails closed for an unrelated unreadable candidate the OS should expose", async () => { + it.each([ + "environment_unavailable", + "restricted_process_environment_withheld", + ])("fails closed for an unrelated candidate with %s", async (diagnostic) => { const processes = [ { pid: 100, parentPid: 1, processGroupId: 100, command: "capture" }, { @@ -171,7 +174,7 @@ describe("opaque process neighbors during cleanup", () => { pid === 900 ? { state: "unavailable" as const, - reason: "environment_unavailable", + reason: diagnostic, } : { state: "readable" as const, runId: "run-token" }, ]), @@ -191,13 +194,11 @@ describe("opaque process neighbors during cleanup", () => { expect(result).toMatchObject({ cleaned: false, - reason: expect.stringContaining("environment_unavailable=1"), + reason: expect.stringContaining(`${diagnostic}=1`), }); if (result.cleaned) throw new Error("Expected unknown ownership to fail closed"); - expect(result.reason).toContain( - "live candidates 900=environment_unavailable", - ); + expect(result.reason).toContain(`live candidates 900=${diagnostic}`); expect(result.reason).not.toContain("unowned"); expect(result.reason).not.toContain("run-token"); expect(signalGroup.mock.calls).toEqual([[100, "SIGKILL"]]); diff --git a/src/process/ProcessOwnership.ts b/src/process/ProcessOwnership.ts index 983d840e5..5b181fe76 100644 --- a/src/process/ProcessOwnership.ts +++ b/src/process/ProcessOwnership.ts @@ -642,6 +642,8 @@ const cleanupValidationFailure = ( const sanitizedTokenReadFailure = (diagnostic: string | undefined): string => { if (diagnostic === "environment_unavailable") return diagnostic; if (diagnostic === "platform_binary_environment_withheld") return diagnostic; + if (diagnostic === "restricted_process_environment_withheld") + return diagnostic; const environmentErrno = /^(EACCES|EPERM|ENOENT|ESRCH):/u.exec( diagnostic ?? "", ); diff --git a/tests/boundary/process/darwinProcessRunTokenReader.test.ts b/tests/boundary/process/darwinProcessRunTokenReader.test.ts index db492df83..caae8b2be 100644 --- a/tests/boundary/process/darwinProcessRunTokenReader.test.ts +++ b/tests/boundary/process/darwinProcessRunTokenReader.test.ts @@ -875,6 +875,38 @@ it.skipIf(!onDarwin)( }); expect(JSON.parse(stdout)).toEqual({ argvDecoyIgnored: true, + readableEnvironmentWithoutToken: { + runId: null, + environmentEntryCount: 1, + }, + restrictedReadableEnvironmentWithoutToken: { + state: "readable", + reason: null, + }, + restrictedEmptyEnvironment: { + state: "unavailable", + reason: "restricted_process_environment_withheld", + }, + platformEmptyEnvironment: { + state: "unavailable", + reason: "platform_binary_environment_withheld", + }, + restrictedUnavailableEnvironment: { + state: "unavailable", + reason: "restricted_process_environment_withheld", + }, + restrictedAmbiguousEnvironment: { + state: "unavailable", + reason: "restricted_process_environment_withheld", + }, + ordinaryAmbiguousEnvironment: { + state: "unavailable", + reason: "ambiguous_environment_boundary", + }, + ordinaryUnavailableEnvironment: { + state: "unavailable", + reason: "environment_unavailable", + }, alternatePaddingRead: true, appleVectorTokenFailsClosed: true, clearedAppleVectorTokenFailsClosed: true, diff --git a/tests/fixtures/processRunTokenParserProbe.swift b/tests/fixtures/processRunTokenParserProbe.swift index a753511f9..db046ea09 100644 --- a/tests/fixtures/processRunTokenParserProbe.swift +++ b/tests/fixtures/processRunTokenParserProbe.swift @@ -26,38 +26,42 @@ func fixture( @main struct ProcessRunTokenParserProbe { static func main() throws { - let argvDecoy = try token(in: fixture( + let argvDecoy = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable", "REA_PROCESS_RUN_ID=argv-decoy", "trailing"], environment: ["DECOY=words REA_PROCESS_RUN_ID=synthetic-decoy"] )) - let realToken = try token(in: fixture( + let realToken = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable"], environment: ["DECOY=words REA_PROCESS_RUN_ID=synthetic-decoy", "REA_PROCESS_RUN_ID=owned-token"] )) - let emptyLaterArgument = try token(in: fixture( + let readableNoToken = try parseProcessEnvironment(in: fixture( + arguments: ["/fixture/executable"], + environment: ["PATH=/usr/bin"] + )) + let emptyLaterArgument = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable", "", "after-empty"], environment: ["REA_PROCESS_RUN_ID=empty-argument-token"], pointerSize: 8 )) - let alternatePadding = try token(in: fixture( + let alternatePadding = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable", "argument"], environment: ["REA_PROCESS_RUN_ID=alternate-padding-token"], pointerSize: 4 ), pointerSize: 4) - let emptyArgv0Read = try token(in: fixture( + let emptyArgv0Read = try parseProcessEnvironment(in: fixture( arguments: ["", "", "after-empty"], environment: ["REA_PROCESS_RUN_ID=empty-argv0-token"], pointerSize: 8 )) - let finalAssignmentArgumentRead = try token(in: fixture( + let finalAssignmentArgumentRead = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable", "FOO=bar"], environment: ["REA_PROCESS_RUN_ID=final-assignment-token"] )) - let reservedArgumentIgnored = try token(in: fixture( + let reservedArgumentIgnored = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable", "REA_PROCESS_RUN_ID=argv-decoy"], environment: ["DECOY=words REA_PROCESS_RUN_ID=synthetic-decoy"] )) - let nonAsciiPathRead = try token(in: fixture( + let nonAsciiPathRead = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/é", "FOO=bar"], environment: ["REA_PROCESS_RUN_ID=utf8-path-token"], pointerSize: 8, @@ -65,7 +69,7 @@ struct ProcessRunTokenParserProbe { )) let appleVectorTokenFailsClosed: Bool do { - _ = try token(in: fixture( + _ = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable"], environment: ["pfz=user-value", "PATH=/usr/bin"], appleRecords: ["pfz=synthetic", "REA_PROCESS_RUN_ID=apple-decoy"] @@ -76,7 +80,7 @@ struct ProcessRunTokenParserProbe { } let clearedAppleVectorTokenFailsClosed: Bool do { - _ = try token(in: fixture( + _ = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable"], environment: ["REA_PROCESS_RUN_ID=cleared-pfz-owned-token"], appleRecords: ["REA_PROCESS_RUN_ID=apple-decoy"], @@ -86,14 +90,14 @@ struct ProcessRunTokenParserProbe { } catch RunTokenReadError.ambiguousEnvironmentBoundary { clearedAppleVectorTokenFailsClosed = true } - let callerPfzBeforeTokenRead = try token(in: fixture( + let callerPfzBeforeTokenRead = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable"], environment: ["pfz=caller-value", "REA_PROCESS_RUN_ID=cleared-pfz-owned-token"], zeroedPfz: true )) let emptyEnvironmentRecordsBeforeTokenFailClosed: Bool do { - _ = try token(in: fixture( + _ = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable"], environment: ["DECOY=value", "", "", "REA_PROCESS_RUN_ID=synthetic-decoy"], appleRecords: [], @@ -103,7 +107,7 @@ struct ProcessRunTokenParserProbe { } catch RunTokenReadError.ambiguousEnvironmentBoundary { emptyEnvironmentRecordsBeforeTokenFailClosed = true } - let zeroArgumentsRead = try token(in: fixture( + let zeroArgumentsRead = try parseProcessEnvironment(in: fixture( arguments: [], environment: ["REA_PROCESS_RUN_ID=zero-argc-token"], pointerSize: 4 @@ -117,14 +121,14 @@ struct ProcessRunTokenParserProbe { truncatedArgv.append(contentsOf: Array("REA_PROCESS_RUN_ID=synthetic-decoy".utf8)) let truncatedArgvFailsClosed: Bool do { - _ = try token(in: truncatedArgv) + _ = try parseProcessEnvironment(in: truncatedArgv) truncatedArgvFailsClosed = false } catch { truncatedArgvFailsClosed = true } let duplicateTokenFailsClosed: Bool do { - _ = try token(in: fixture( + _ = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable"], environment: ["REA_PROCESS_RUN_ID=first", "REA_PROCESS_RUN_ID=second"] )) @@ -134,7 +138,7 @@ struct ProcessRunTokenParserProbe { } let missingAppleBoundaryFailsClosed: Bool do { - _ = try token(in: fixture( + _ = try parseProcessEnvironment(in: fixture( arguments: ["/fixture/executable"], environment: ["REA_PROCESS_RUN_ID=synthetic-decoy"], appleRecords: [] @@ -144,23 +148,97 @@ struct ProcessRunTokenParserProbe { missingAppleBoundaryFailsClosed = true } + let restrictedReadableNoToken = processRunTokenObservation( + pid: 1, + parse: .success(readableNoToken), + codeSigningFlags: { 0x0000_0800 } + ) + let restrictedEmptyEnvironment = processRunTokenObservation( + pid: 1, + parse: .success(try parseProcessEnvironment(in: fixture( + arguments: ["/fixture/executable"], + environment: [] + ))), + codeSigningFlags: { 0x0000_0800 } + ) + let platformEmptyEnvironment = processRunTokenObservation( + pid: 1, + parse: .success(try parseProcessEnvironment(in: fixture( + arguments: ["/fixture/executable"], + environment: [] + ))), + codeSigningFlags: { 0x0400_0000 } + ) + let restrictedUnavailableEnvironment = processRunTokenObservation( + pid: 1, + parse: .failure(.environmentUnavailable), + codeSigningFlags: { 0x0000_0800 } + ) + let restrictedAmbiguousEnvironment = processRunTokenObservation( + pid: 1, + parse: .failure(.ambiguousEnvironmentBoundary), + codeSigningFlags: { 0x0000_0800 } + ) + let ordinaryAmbiguousEnvironment = processRunTokenObservation( + pid: 1, + parse: .failure(.ambiguousEnvironmentBoundary), + codeSigningFlags: { 0 } + ) + let ordinaryUnavailableEnvironment = processRunTokenObservation( + pid: 1, + parse: .failure(.environmentUnavailable), + codeSigningFlags: { 0 } + ) + let result: [String: Any] = [ - "argvDecoyIgnored": argvDecoy == nil, - "realTokenRead": realToken == "owned-token", - "emptyLaterArgumentRead": emptyLaterArgument == "empty-argument-token", - "alternatePaddingRead": alternatePadding == "alternate-padding-token", + "argvDecoyIgnored": argvDecoy.runId == nil && argvDecoy.environmentEntryCount == 1, + "realTokenRead": realToken.runId == "owned-token", + "readableEnvironmentWithoutToken": [ + "runId": readableNoToken.runId as Any? ?? NSNull(), + "environmentEntryCount": readableNoToken.environmentEntryCount, + ], + "restrictedReadableEnvironmentWithoutToken": [ + "state": restrictedReadableNoToken.state, + "reason": restrictedReadableNoToken.reason as Any? ?? NSNull(), + ], + "restrictedEmptyEnvironment": [ + "state": restrictedEmptyEnvironment.state, + "reason": restrictedEmptyEnvironment.reason as Any? ?? NSNull(), + ], + "platformEmptyEnvironment": [ + "state": platformEmptyEnvironment.state, + "reason": platformEmptyEnvironment.reason as Any? ?? NSNull(), + ], + "restrictedUnavailableEnvironment": [ + "state": restrictedUnavailableEnvironment.state, + "reason": restrictedUnavailableEnvironment.reason as Any? ?? NSNull(), + ], + "restrictedAmbiguousEnvironment": [ + "state": restrictedAmbiguousEnvironment.state, + "reason": restrictedAmbiguousEnvironment.reason as Any? ?? NSNull(), + ], + "ordinaryAmbiguousEnvironment": [ + "state": ordinaryAmbiguousEnvironment.state, + "reason": ordinaryAmbiguousEnvironment.reason as Any? ?? NSNull(), + ], + "ordinaryUnavailableEnvironment": [ + "state": ordinaryUnavailableEnvironment.state, + "reason": ordinaryUnavailableEnvironment.reason as Any? ?? NSNull(), + ], + "emptyLaterArgumentRead": emptyLaterArgument.runId == "empty-argument-token", + "alternatePaddingRead": alternatePadding.runId == "alternate-padding-token", "truncatedArgvFailsClosed": truncatedArgvFailsClosed, "duplicateTokenFailsClosed": duplicateTokenFailsClosed, "missingAppleBoundaryFailsClosed": missingAppleBoundaryFailsClosed, - "emptyArgv0Read": emptyArgv0Read == "empty-argv0-token", - "finalAssignmentArgumentRead": finalAssignmentArgumentRead == "final-assignment-token", - "reservedArgumentIgnored": reservedArgumentIgnored == nil, - "nonAsciiPathRead": nonAsciiPathRead == "utf8-path-token", + "emptyArgv0Read": emptyArgv0Read.runId == "empty-argv0-token", + "finalAssignmentArgumentRead": finalAssignmentArgumentRead.runId == "final-assignment-token", + "reservedArgumentIgnored": reservedArgumentIgnored.runId == nil && reservedArgumentIgnored.environmentEntryCount == 1, + "nonAsciiPathRead": nonAsciiPathRead.runId == "utf8-path-token", "appleVectorTokenFailsClosed": appleVectorTokenFailsClosed, "clearedAppleVectorTokenFailsClosed": clearedAppleVectorTokenFailsClosed, - "callerPfzBeforeTokenRead": callerPfzBeforeTokenRead == "cleared-pfz-owned-token", + "callerPfzBeforeTokenRead": callerPfzBeforeTokenRead.runId == "cleared-pfz-owned-token", "emptyEnvironmentRecordsBeforeTokenFailClosed": emptyEnvironmentRecordsBeforeTokenFailClosed, - "zeroArgumentsRead": zeroArgumentsRead == "zero-argc-token", + "zeroArgumentsRead": zeroArgumentsRead.runId == "zero-argc-token", ] let output = try JSONSerialization.data(withJSONObject: result, options: [.sortedKeys]) FileHandle.standardOutput.write(output) From b7f563e15f854061dc1507896181b7b24ac3b5f0 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:51:59 +0800 Subject: [PATCH 06/44] test: strengthen public input and module lookup controls Incorporate the independent query-bearing ESM and cjs-only directory cases from #2031 and #2032 into existing Node-backed CLI/MCP tests. Their production patches are already superseded on main. Make invalid Swift-symbol validation prove it precedes artifact access, and bound the test child so failures retain output before the outer test deadline. Clarify that network API content types project only the type/subtype essence. Validation: module lookup CLI/MCP and native demangle CLI tests pass. A bounded Flameox reproduction passed in under one second; the CI timeout was not reproduced and no provider hang fix is claimed. Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com> --- docs/web-network-captures.md | 5 +++-- .../JavaScriptModuleLookupCli.test.ts | 16 ++++++++++++++-- tests/boundary/cli/nativeDemangleCli.test.ts | 7 ++++++- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/docs/web-network-captures.md b/docs/web-network-captures.md index 1edb4993a..d49f1dcc3 100644 --- a/docs/web-network-captures.md +++ b/docs/web-network-captures.md @@ -143,8 +143,9 @@ origin, and exact segment rules match. The view does not infer further cross-sample patterns. Groups cite parent record ordinals and distinct statuses and MIME types (lowercase -type/subtype without parameters). A malformed media type is unknown, not a content -type. Flags report single samples, mixed statuses or mixed content types. +type/subtype without parameters). An invalid type/subtype essence is unknown; +parameters do not affect this projection. Flags report single samples, mixed +statuses or mixed content types. `coverage` pages groups; `records` separately reports examined, total and excluded parent records. Ordinal subsets carry a limitation. Null URLs are excluded as `url-redacted`; unparseable URLs, URLs without an origin, spellings without diff --git a/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts b/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts index 3e3318327..5222681ce 100644 --- a/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts +++ b/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts @@ -19,6 +19,7 @@ const createModuleLookupFixture = async () => { 'import "./directory";', 'import "./explicit.js";', 'import "./exact.js";', + 'import "./actual.cjs?cache=1";', 'import fallback from "empty-main";', 'import "nested-main";', 'import "file-only";', @@ -31,8 +32,10 @@ const createModuleLookupFixture = async () => { "esm/directory/index.js": "module.exports = 2;", "esm/explicit.js.js": "module.exports = 3;", "esm/exact.js": "module.exports = 4;", + "esm/actual.cjs": "module.exports = 5;", "cjs/entry.cjs": [ 'require("./extensionless");', + 'require("./directory");', 'require("./feature");', 'require("./feature.cjs");', 'require("./default-js");', @@ -45,6 +48,7 @@ const createModuleLookupFixture = async () => { 'require("ancestor-blocked");', 'require("ancestor-sub/parser");', ].join("\n"), + "cjs/directory/index.cjs": "module.exports = 6;", "cjs/extensionless.cjs": "module.exports = 1;", "cjs/feature.cjs": "module.exports = 2;", "cjs/default-js.js": "module.exports = 3;", @@ -63,7 +67,7 @@ const createModuleLookupFixture = async () => { "node_modules/ancestor-blocked/index.js": "module.exports = 9;", "node_modules/ancestor-sub/parser.js": "module.exports = 10;", "esm/runtime-control.mjs": [ - 'const specifiers = ["./extensionless", "./directory", "./explicit.js", "./exact.js", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', + 'const specifiers = ["./extensionless", "./directory", "./explicit.js", "./exact.js", "./actual.cjs?cache=1", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', "const results = [];", "for (const specifier of specifiers) {", " try { await import(specifier); results.push({ specifier, ok: true }); }", @@ -72,7 +76,7 @@ const createModuleLookupFixture = async () => { "console.log(JSON.stringify(results));", ].join("\n"), "cjs/runtime-control.cjs": [ - 'const specifiers = ["./extensionless", "./feature", "./feature.cjs", "./default-js", "./default-json", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', + 'const specifiers = ["./extensionless", "./directory", "./feature", "./feature.cjs", "./default-js", "./default-json", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', "const results = [];", "for (const specifier of specifiers) {", " try { require(specifier); results.push({ specifier, ok: true }); }", @@ -134,6 +138,7 @@ cliTest.for(["CLI", "stdio MCP"] as const)( code: "ERR_MODULE_NOT_FOUND", }, { specifier: "./exact.js", ok: true }, + { specifier: "./actual.cjs?cache=1", ok: true }, { specifier: "empty-main", ok: true }, { specifier: "nested-main", ok: false, code: "ERR_MODULE_NOT_FOUND" }, { specifier: "file-only", ok: false, code: "ERR_MODULE_NOT_FOUND" }, @@ -155,6 +160,11 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ok: false, code: "MODULE_NOT_FOUND", }, + { + specifier: "./directory", + ok: false, + code: "MODULE_NOT_FOUND", + }, { specifier: "./feature", ok: false, @@ -177,6 +187,7 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ["import", "./directory", null, "not-found"], ["import", "./explicit.js", null, "not-found"], ["import", "./exact.js", "esm/exact.js", "resolved"], + ["import", "./actual.cjs?cache=1", "esm/actual.cjs", "resolved"], ["import", "empty-main", "node_modules/empty-main/index.js", "resolved"], ["import", "nested-main", null, "not-found"], ["import", "file-only", null, "external"], @@ -184,6 +195,7 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ["import", "ancestor-blocked", null, "not-found"], ["import", "ancestor-sub/parser", null, "not-found"], ["require", "./extensionless", null, "not-found"], + ["require", "./directory", null, "not-found"], ["require", "./feature", null, "not-found"], ["require", "./feature.cjs", "cjs/feature.cjs", "resolved"], ["require", "./default-js", "cjs/default-js.js", "resolved"], diff --git a/tests/boundary/cli/nativeDemangleCli.test.ts b/tests/boundary/cli/nativeDemangleCli.test.ts index d62f414b5..fe905cbbf 100644 --- a/tests/boundary/cli/nativeDemangleCli.test.ts +++ b/tests/boundary/cli/nativeDemangleCli.test.ts @@ -44,15 +44,20 @@ describe.skipIf(process.platform !== "darwin")( }); cliTest("rejects a symbol spanning lines as input", async ({ cli }) => { + const missingTarget = join( + await createTestTempDirectory("rea-demangle-invalid-input-"), + "absent", + ); const result = await cli.run({ arguments: [ "demangle-swift", - await evidenceTarget(), + missingTarget, "$s4main3FooV", "$s4main\n3FooV", "--json", ], environment, + timeoutMs: 20_000, }); expect(result.exitCode).not.toBe(0); expect(result.json).toMatchObject({ code: "VALIDATION_ERROR" }); From 21eff3bae10f58711a35ad44f86e9f96f9bb4790 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:58:49 +0800 Subject: [PATCH 07/44] fix(setup): preserve Cordis ownership across uncertain patch structure Separate stable registration ownership from setup editability. Keep group-owned rows removable, retain expression-backed structures without edits, and reject malformed literal patches before setup writes. Preserve foreign rows and backups during uninstall. Correct stale alias fixtures to use valid Harness patch rows and remove redundant alias coverage. Validation: 78 configuration boundary tests, 6 public setup/uninstall CLI tests, full static checks, and docs checks passed. Harness behavior was verified from pinned source; no real Harness runtime verification is claimed. --- src/application/ClientRegistrationStatus.ts | 14 ++ src/application/DshCordisPatch.ts | 88 +++++++-- src/application/SetupClientConfiguration.ts | 24 ++- src/application/Uninstall.ts | 9 + tests/acceptance/setup/dshClientSetup.test.ts | 67 +++++++ .../filesystem/dshClientConfiguration.test.ts | 183 +++++++++++++----- 6 files changed, 310 insertions(+), 75 deletions(-) diff --git a/src/application/ClientRegistrationStatus.ts b/src/application/ClientRegistrationStatus.ts index 588b0f9af..dc246d5e6 100644 --- a/src/application/ClientRegistrationStatus.ts +++ b/src/application/ClientRegistrationStatus.ts @@ -154,6 +154,20 @@ export const readClientRegistrationStatuses = async ( const policyBlock = policy.value; const raw = effectiveClientServer(parsed, PRODUCT_IDENTITY.mcpServerKey); if (raw === undefined) { + const editabilityError = + parsed.dialect === "dsh" + ? dshDocument(parsed.document).editabilityError + : undefined; + if (editabilityError !== undefined) { + statuses.push({ + client: client.name, + config_path: client.configPath, + command: [], + state: "invalid", + remediation: editabilityError.message, + }); + continue; + } statuses.push( unavailableStatus(client.name, client.configPath, "missing"), ); diff --git a/src/application/DshCordisPatch.ts b/src/application/DshCordisPatch.ts index 81f7428fb..5e0fc10ec 100644 --- a/src/application/DshCordisPatch.ts +++ b/src/application/DshCordisPatch.ts @@ -19,6 +19,7 @@ interface PatchOperation { readonly map: YAMLMap; readonly ownedRows: readonly number[]; readonly direct: boolean; + readonly unknownApplicability: boolean; } /** One interpretation of identity, ordered patch applicability and source nodes. */ @@ -29,6 +30,8 @@ export class DshCordisDocument { #entryNode: YAMLMap | undefined; readonly #insertions: number; #unknownSelector = false; + #unknownStructure = false; + readonly #editabilityError: ConfigurationError | undefined; readonly config: Record | undefined; constructor(text: string) { @@ -38,22 +41,39 @@ export class DshCordisDocument { throw new ConfigurationError("Cordis patches must be a list"); const operations: PatchOperation[] = []; let insertions = 0; + let malformedStructure = false; for (const source of root.items) { const map = this.#map(source); - if (map === undefined) continue; + if (map === undefined) { + if (this.#yaml.value(source) instanceof CordisExpression) + this.#unknownStructure = true; + else malformedStructure = true; + continue; + } const inserted = this.#yaml.resolve(this.#yaml.field(map, "insert")); const targetId = this.#id(map); + const unknownApplicability = targetId !== undefined; + const insertedValue = this.#yaml.value(inserted); + const invalidEntries = isSeq(inserted) + ? inserted.items.filter((entry) => this.#map(entry) === undefined) + : []; + if ( + insertedValue instanceof CordisExpression || + invalidEntries.some( + (entry) => this.#yaml.value(entry) instanceof CordisExpression, + ) + ) + this.#unknownStructure = true; + else if (insertedValue != null && !isSeq(inserted)) + malformedStructure = true; + else if (invalidEntries.length > 0) malformedStructure = true; const ownedRows = isSeq(inserted) ? inserted.items.flatMap((entry, index) => this.#id(entry) === DSH_ENTRY_ID ? [index] : [], ) : []; const direct = !isSeq(inserted) && targetId === DSH_ENTRY_ID; - if (ownedRows.length > 0 && targetId) - throw new ConfigurationError( - "Cannot establish the target group for a Cordis REA insertion from the home patch alone", - ); - operations.push({ source, map, ownedRows, direct }); + operations.push({ source, map, ownedRows, direct, unknownApplicability }); if (isSeq(inserted)) { for (const index of ownedRows) { const entry = this.#map(inserted.items[index]); @@ -81,6 +101,33 @@ export class DshCordisDocument { } this.#operations = operations; this.#insertions = insertions; + this.#editabilityError = this.#unknownStructure + ? new ConfigurationError( + "Expression-backed Cordis patches have unknown structure; use literal patches before setup", + ) + : malformedStructure + ? new ConfigurationError( + "Malformed Cordis patches cannot be edited safely; use mapping entries and insert lists before setup", + ) + : operations.some( + (op) => op.unknownApplicability && op.ownedRows.length > 0, + ) + ? new ConfigurationError( + "Cordis REA insertion targets a group with unknown activity; use a direct insertion before setup", + ) + : this.#unknownSelector + ? new ConfigurationError( + "Expression-backed Cordis name selectors have unknown applicability; use literal selectors before setup", + { + settings: [ + { + setting: "name", + constraint: "Use literal selectors before setup", + }, + ], + }, + ) + : undefined; const config = this.#field("config"); // Ownership survives malformed config so uninstall can remove the source row. this.config = insertions === 0 ? undefined : isRecord(config) ? config : {}; @@ -114,11 +161,17 @@ export class DshCordisDocument { get carriesEntry(): boolean { return this.#operations.some((op) => op.direct || op.ownedRows.length > 0); } + get hasUnknownStructure(): boolean { + return this.#unknownStructure; + } + get editabilityError(): ConfigurationError | undefined { + return this.#editabilityError; + } get ready(): boolean { const disabled = this.#field("disabled"); return ( this.#insertions === 1 && - !this.#unknownSelector && + this.#editabilityError === undefined && this.#field("name") === DSH_CLIENT_PACKAGE && (disabled === undefined || disabled === false) ); @@ -128,20 +181,6 @@ export class DshCordisDocument { environment( overrides: Readonly> = {}, ): Result>, ConfigurationError> { - if (this.#unknownSelector) - return err( - new ConfigurationError( - "Expression-backed Cordis name selectors have unknown applicability; use literal selectors before setup", - { - settings: [ - { - setting: "name", - constraint: "Use literal selectors before setup", - }, - ], - }, - ), - ); const config = this.#field("config"); if (config instanceof CordisExpression) return err( @@ -200,6 +239,8 @@ export class DshCordisDocument { command: readonly string[], overrides: Readonly>, ): Result, ConfigurationError> { + if (this.#editabilityError !== undefined) + return err(this.#editabilityError); const environment = this.environment(overrides); if (!environment.ok) return environment; const env = { @@ -214,6 +255,11 @@ export class DshCordisDocument { /** Plan every replacement from source snapshots before changing an output tree. */ serialize(desired?: Record): string { + if ( + this.#editabilityError !== undefined && + (this.#unknownStructure || desired !== undefined) + ) + throw this.#editabilityError; const root = this.#yaml.document.contents; if (!isSeq(root)) throw new ConfigurationError("Cordis patches must be a list"); diff --git a/src/application/SetupClientConfiguration.ts b/src/application/SetupClientConfiguration.ts index ac493282a..a4f4e837e 100644 --- a/src/application/SetupClientConfiguration.ts +++ b/src/application/SetupClientConfiguration.ts @@ -59,6 +59,13 @@ const configureClientDocument = async ( throwCleanupFailure(files.error); return { status: "failed", reason: "readback" }; } + const existing = files.value.at(-1); + const editabilityError = + existing?.dialect === "dsh" + ? dshDocument(existing.document).editabilityError + : undefined; + if (editabilityError !== undefined) + return { status: "failed", reason: "readback" }; const policy = await readClientPolicyBlock( client, undefined, @@ -284,15 +291,20 @@ export const inspectClientConfiguration = async ( remediation: files.error.detail, }; } + const existing = files.value.at(-1); + const editabilityError = + existing?.dialect === "dsh" + ? dshDocument(existing.document).editabilityError + : undefined; + if (editabilityError !== undefined) + return { + status: "invalid", + remediation: editabilityError.message, + }; const policy = await readClientPolicyBlock( client, undefined, - clientConfigurationDesired( - client, - providerEnvironment, - command, - files.value.at(-1), - ), + clientConfigurationDesired(client, providerEnvironment, command, existing), ); if (!policy.ok) { throwCleanupFailure(policy.error); diff --git a/src/application/Uninstall.ts b/src/application/Uninstall.ts index d474419a8..9880c8cb9 100644 --- a/src/application/Uninstall.ts +++ b/src/application/Uninstall.ts @@ -310,6 +310,15 @@ const removeClient = async ( // still belongs to that id, and so does a direct patch that projects no row. const carriesDshEntry = parsed.dialect === "dsh" && dshDocument(parsed.document).carriesEntry; + if ( + parsed.dialect === "dsh" && + dshDocument(parsed.document).hasUnknownStructure + ) + return item( + client.name, + "retained", + "A Cordis expression may produce registration rows, so the patch was retained without changes.", + ); if (!hasNative && legacyPath === undefined && !carriesDshEntry) return item(client.name, "skipped", "REA registration is absent."); const removeNative = diff --git a/tests/acceptance/setup/dshClientSetup.test.ts b/tests/acceptance/setup/dshClientSetup.test.ts index 1ee935da6..4010369cd 100644 --- a/tests/acceptance/setup/dshClientSetup.test.ts +++ b/tests/acceptance/setup/dshClientSetup.test.ts @@ -230,3 +230,70 @@ cliTest.for(["null", "caller-value", "[caller-value]"])( expect(await readFile(`${config}.rea.backup`, "utf8")).toBe(initial); }, ); + +cliTest.for([ + { + label: "group-owned rows", + patch: `- id: tools + insert: + - id: other + name: caller-plugin + - id: rea-mcp + name: '@deepseek-ai/dsh-mcp-client' + config: {serverName: rea, transport: stdio, command: stale, args: [mcp]} +`, + remediation: "group with unknown activity", + removal: "removed", + }, + { + label: "expression-backed inserts", + patch: "- insert: !!js process.env.DSH_ROWS\n", + remediation: "unknown structure", + removal: "retained", + }, +])( + "DSH CLI rejects setup and preserves ownership for $label", + async ({ patch, remediation, removal }, { cli }) => { + const home = await createTestTempDirectory("rea-dsh-ownership-"); + const profile = join(home, ".dsh"); + const config = join(profile, "cordis.patch.yml"); + await mkdir(profile); + await writeFile(config, patch); + const run = (args: readonly string[]) => + cli.run({ + arguments: [...args, "--json"], + cwd: home, + environment: { HOME: home, USERPROFILE: home, DSH_HOME: profile }, + }); + const setup = await run(["setup", "--client", "dsh", "--yes"]); + expect(setup.exitCode).not.toBe(0); + expect(setup.json).toMatchObject({ + status: "needs_human", + appliedActions: [], + remediation: expect.stringContaining(remediation), + }); + expect(await readFile(config, "utf8")).toBe(patch); + await expect(readFile(`${config}.rea.backup`)).rejects.toMatchObject({ + code: "ENOENT", + }); + const uninstall = await run(["uninstall"]); + expect(uninstall.exitCode).toBe(0); + expect(uninstall.json).toMatchObject({ + status: "complete", + items: expect.arrayContaining([ + expect.objectContaining({ name: "dsh", status: removal }), + ]), + }); + if (removal === "removed") { + expect(parse(await readFile(config, "utf8"))).toEqual([ + { id: "tools", insert: [{ id: "other", name: "caller-plugin" }] }, + ]); + expect(await readFile(`${config}.rea.backup`, "utf8")).toBe(patch); + } else { + expect(await readFile(config, "utf8")).toBe(patch); + await expect(readFile(`${config}.rea.backup`)).rejects.toMatchObject({ + code: "ENOENT", + }); + } + }, +); diff --git a/tests/boundary/filesystem/dshClientConfiguration.test.ts b/tests/boundary/filesystem/dshClientConfiguration.test.ts index c33354b40..72dbded9e 100644 --- a/tests/boundary/filesystem/dshClientConfiguration.test.ts +++ b/tests/boundary/filesystem/dshClientConfiguration.test.ts @@ -12,7 +12,10 @@ import { import { readClientRegistrationStatuses } from "../../../src/application/ClientRegistrationStatus.js"; import { npxRegistrationCommand } from "../../../src/application/ClientRegistrationIdentity.js"; -import { configureClientConfiguration } from "../../../src/application/SetupClientConfiguration.js"; +import { + configureClientConfiguration, + inspectClientConfiguration, +} from "../../../src/application/SetupClientConfiguration.js"; import { clientSkillDirectories, supportedClients, @@ -398,18 +401,134 @@ describe("DeepSeek Harness repair boundaries", () => { ]); }); - it("refuses a group-targeted insertion whose applicability is unknown", async () => { + it("keeps group-targeted ownership for uninstall while setup rejects unknown activity", async () => { const { home, client } = await harnessClient(); const initial = stringifyYaml([ - { id: "missing-group", insert: [canonicalEntry()] }, + { + id: "tools", + insert: [ + canonicalEntry(), + { id: "foreign-peer", name: "caller-plugin", config: { keep: true } }, + ], + }, ]); await writeFile(client.configPath, initial); + expect(await inspectClientConfiguration(client, {}, command)).toMatchObject( + { + status: "invalid", + remediation: expect.stringContaining("targets a group"), + }, + ); expect( (await configureClientConfiguration(client, {}, command)).status, ).toBe("failed"); - expect(await dshStatus(home)).not.toMatchObject({ state: "aligned" }); + expect(await dshStatus(home)).toMatchObject({ + state: "stale", + command: [...command], + }); expect(await readFile(client.configPath, "utf8")).toBe(initial); + const host = systemUninstallHost(home); + expect(await host.inspectClient(client)).toBeUndefined(); + expect((await host.removeClient(client)).status).toBe("removed"); + expect(parseYaml(await readFile(client.configPath, "utf8"))).toEqual([ + { + id: "tools", + insert: [ + { id: "foreign-peer", name: "caller-plugin", config: { keep: true } }, + ], + }, + ]); + expect(await readFile(`${client.configPath}.rea.backup`, "utf8")).toBe( + initial, + ); }); + + it("blocks malformed literal patches but still uninstalls a known owned sibling", async () => { + const { home, client } = await harnessClient(); + const initial = stringifyYaml([ + { insert: [canonicalEntry()] }, + "foreign-invalid-row", + ]); + await writeFile(client.configPath, initial); + + expect(await inspectClientConfiguration(client, {}, command)).toMatchObject( + { + status: "invalid", + remediation: expect.stringContaining("Malformed Cordis patches"), + }, + ); + expect( + (await configureClientConfiguration(client, {}, command)).status, + ).toBe("failed"); + expect(await readFile(client.configPath, "utf8")).toBe(initial); + + const host = systemUninstallHost(home); + expect(await host.inspectClient(client)).toBeUndefined(); + expect((await host.removeClient(client)).status).toBe("removed"); + expect(parseYaml(await readFile(client.configPath, "utf8"))).toEqual([ + "foreign-invalid-row", + ]); + }); + + it.each(["{ id: rea-mcp }", "7", "false", "''", "[null]"])( + "blocks a non-list literal insert value %s before setup edits the file", + async (insert) => { + const { client } = await harnessClient(); + const initial = `- insert: ${insert}\n`; + await writeFile(client.configPath, initial); + + expect( + await inspectClientConfiguration(client, {}, command), + ).toMatchObject({ + status: "invalid", + remediation: expect.stringContaining("Malformed Cordis patches"), + }); + expect( + (await configureClientConfiguration(client, {}, command)).status, + ).toBe("failed"); + expect(await readFile(client.configPath, "utf8")).toBe(initial); + }, + ); + + it("keeps Harness's null insert no-op editable", async () => { + const { client } = await harnessClient(); + await writeFile(client.configPath, "- insert: null\n"); + + expect( + (await configureClientConfiguration(client, {}, command)).status, + ).toBe("configured"); + }); +}); + +describe("DeepSeek Harness expression-backed structure", () => { + it.each([ + `- !!js process.env.DSH_PATCH\n`, + `- insert: !!js process.env.DSH_ROWS\n`, + `- insert: [!!js process.env.DSH_ROW]\n`, + ])( + "retains dynamic insertion structure without appending or removing rows: %s", + async (initial) => { + const { home, client } = await harnessClient(); + await writeFile(client.configPath, initial); + expect(await dshStatus(home)).toMatchObject({ state: "invalid" }); + expect( + await inspectClientConfiguration(client, {}, command), + ).toMatchObject({ + status: "invalid", + remediation: expect.stringContaining("unknown structure"), + }); + expect( + (await configureClientConfiguration(client, {}, command)).status, + ).toBe("failed"); + expect(await readFile(client.configPath, "utf8")).toBe(initial); + const host = systemUninstallHost(home); + expect((await host.removeClient(client)).status).toBe("retained"); + expect(await readFile(client.configPath, "utf8")).toBe(initial); + await expect( + readFile(`${client.configPath}.rea.backup`, "utf8"), + ).rejects.toMatchObject({ code: "ENOENT" }); + }, + ); }); describe("DeepSeek Harness registration state", () => { @@ -993,7 +1112,7 @@ describe("DeepSeek Harness alias targets", () => { const { client } = await harnessClient(); await writeFile( client.configPath, - `- insert: &rows + `- holder: &rows - id: other-tool name: other config: @@ -1015,7 +1134,7 @@ describe("DeepSeek Harness alias targets", () => { const text = await readFile(client.configPath, "utf8"); expect(text).toContain("other-tool"); expect(text).not.toContain("*rows"); - expect(text).not.toContain("stale-launcher"); + expect(text).toContain("stale-launcher"); const patches = parseYaml(text) as { insert?: { id?: string }[] }[]; expect( patches.flatMap(({ insert }) => @@ -1063,11 +1182,11 @@ describe("DeepSeek Harness alias targets", () => { }); describe("DeepSeek Harness alias identity", () => { - it("keeps unrelated rows when the insert list is anchored outside an operation", async () => { + it("keeps unrelated rows when a valid insertion list is aliased", async () => { const { client } = await harnessClient(); await writeFile( client.configPath, - `- &rows + `- holder: &rows - id: other-tool name: other config: @@ -1107,7 +1226,8 @@ describe("DeepSeek Harness alias identity", () => { const { client } = await harnessClient(); await writeFile( client.configPath, - `- &expr !!js process.env.TOKEN + `- insert: [] + callerExpression: &expr !!js process.env.TOKEN - insert: - id: rea-mcp name: "@deepseek-ai/dsh-mcp-client" @@ -1137,7 +1257,8 @@ describe("DeepSeek Harness alias identity", () => { const { home, client } = await harnessClient(); await writeFile( client.configPath, - `- &entryId rea-mcp + `- insert: [] + holder: &entryId rea-mcp - insert: - id: *entryId name: "@deepseek-ai/dsh-mcp-client" @@ -1201,7 +1322,8 @@ describe("DeepSeek Harness alias cleanup", () => { const { home, client } = await harnessClient(); await writeFile( client.configPath, - `- &expr !!js process.env.GHIDRA_INSTALL_DIR + `- insert: [] + callerExpression: &expr !!js process.env.GHIDRA_INSTALL_DIR - insert: - id: rea-mcp name: "@deepseek-ai/dsh-mcp-client" @@ -1475,46 +1597,11 @@ describe("DeepSeek Harness alias anchors", () => { ).toBe("unchanged"); }); - it("edits a root alias whose insert list is itself an alias", async () => { - const { client } = await harnessClient(); - await writeFile( - client.configPath, - `- &rows - - id: other-tool - name: other - config: - command: keep-me - - id: rea-mcp - name: "@deepseek-ai/dsh-mcp-client" - config: - serverName: rea - transport: stdio - command: stale-launcher - args: [mcp] -- holder: &op - insert: *rows -- *op -`, - ); - - expect( - (await configureClientConfiguration(client, {}, command)).status, - ).toBe("configured"); - const inserted = loadedInserts(await readFile(client.configPath, "utf8")); - expect(inserted.filter((entry) => entry.id === "other-tool")).toHaveLength( - 1, - ); - expect(inserted.filter((entry) => entry.id === "rea-mcp")).toHaveLength(1); - expect( - (await configureClientConfiguration(client, {}, command)).status, - ).toBe("unchanged"); - }); - it("drops a replayed root alias after its insert alias is emptied", async () => { const { home, client } = await harnessClient(); await writeFile( client.configPath, - `- &rows + `- holder: &rows - id: rea-mcp name: "@deepseek-ai/dsh-mcp-client" config: @@ -1866,7 +1953,7 @@ describe("DeepSeek Harness ownership and editability", () => { ); const initial = yaml.toString(); await writeFile(client.configPath, initial); - expect(await dshStatus(home)).toMatchObject({ state: "invalid" }); + expect(await dshStatus(home)).toMatchObject({ state: "stale" }); expect( (await configureClientConfiguration(client, {}, command)).status, ).toBe("failed"); From 0d78c99c11efee66570772efe6eb88dfd0e1c694 Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Sun, 11 Oct 2026 21:06:25 -0700 Subject: [PATCH 08/44] =?UTF-8?q?docs:=20celebrate=20110,000=20GitHub=20st?= =?UTF-8?q?ars=20=F0=9F=8E=89=20(#2042)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the star milestone in the English README and all 18 translated READMEs, keeping each locale's number formatting. Co-authored-by: Claude Opus 5.5 --- README.md | 2 +- README_ar.md | 2 +- README_de.md | 2 +- README_es.md | 2 +- README_fa.md | 2 +- README_fr.md | 2 +- README_id.md | 2 +- README_it.md | 2 +- README_ja.md | 2 +- README_ko.md | 2 +- README_pl.md | 2 +- README_pt-BR.md | 2 +- README_ru.md | 2 +- README_th.md | 2 +- README_tr.md | 2 +- README_uk.md | 2 +- README_vi.md | 2 +- README_zh-TW.md | 2 +- README_zh.md | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 92303db9b..18343b9ba 100644 --- a/README.md +++ b/README.md @@ -317,7 +317,7 @@ Report vulnerabilities through [SECURITY.md](SECURITY.md). ## Star history -🎉 **90,000 GitHub stars — thank you!** +🎉 **110,000 GitHub stars — thank you!** Thanks to everyone using REA, reporting bugs, requesting features, testing builds, and contributing fixes. diff --git a/README_ar.md b/README_ar.md index 05f698afc..81b7a9c81 100644 --- a/README_ar.md +++ b/README_ar.md @@ -260,7 +260,7 @@ npx rea-agents@latest setup ## سجل النجوم -🎉 **90,000 نجمة على GitHub — شكرًا لكم!** +🎉 **110,000 نجمة على GitHub — شكرًا لكم!** شكرًا لكل من يستخدم REA، ويبلّغ عن الأخطاء، ويقترح ميزات، ويختبر إصدارات البناء، ويساهم بالإصلاحات. diff --git a/README_de.md b/README_de.md index a4c12062f..87e625852 100644 --- a/README_de.md +++ b/README_de.md @@ -258,7 +258,7 @@ Melde Sicherheitslücken gemäß [SECURITY.md](SECURITY.md). ## Sternverlauf -🎉 **90.000 GitHub-Sterne – vielen Dank!** +🎉 **110.000 GitHub-Sterne – vielen Dank!** Danke an alle, die REA nutzen, Fehler melden, Funktionswünsche äußern, Builds testen und Fehlerbehebungen beitragen. diff --git a/README_es.md b/README_es.md index 228ac8cac..4c27ff12a 100644 --- a/README_es.md +++ b/README_es.md @@ -258,7 +258,7 @@ Informa de vulnerabilidades siguiendo [SECURITY.md](SECURITY.md). ## Historial de estrellas -🎉 **90.000 estrellas en GitHub: ¡gracias!** +🎉 **110.000 estrellas en GitHub: ¡gracias!** Gracias a quienes usan REA, informan de errores, solicitan funciones, prueban compilaciones y contribuyen con correcciones. diff --git a/README_fa.md b/README_fa.md index 2e0fef793..eaf018b05 100644 --- a/README_fa.md +++ b/README_fa.md @@ -243,7 +243,7 @@ npx rea-agents@latest setup ## تاریخچهٔ ستاره‌ها -🎉 **۹۰٬۰۰۰ ستارهٔ GitHub — سپاسگزاریم!** +🎉 **۱۱۰٬۰۰۰ ستارهٔ GitHub — سپاسگزاریم!** از همهٔ کسانی که از REA استفاده می‌کنند، خطاها را گزارش می‌دهند، قابلیت‌های جدید پیشنهاد می‌کنند، buildها را آزمایش می‌کنند و در بهبود پروژه مشارکت دارند سپاسگزاریم. diff --git a/README_fr.md b/README_fr.md index 06a8dba76..f2b8a03c4 100644 --- a/README_fr.md +++ b/README_fr.md @@ -262,7 +262,7 @@ Signalez les vulnérabilités via [SECURITY.md](SECURITY.md). ## Historique des étoiles -🎉 **90 000 étoiles GitHub — merci !** +🎉 **110 000 étoiles GitHub — merci !** Merci à toutes les personnes qui utilisent REA, signalent des bugs, proposent des fonctionnalités, testent les builds et contribuent des correctifs. diff --git a/README_id.md b/README_id.md index c2c372473..1976c7e76 100644 --- a/README_id.md +++ b/README_id.md @@ -283,7 +283,7 @@ Laporkan kerentanan melalui [SECURITY.md](SECURITY.md). ## Riwayat Bintang -🎉 **90.000 bintang GitHub, terima kasih!** +🎉 **110.000 bintang GitHub, terima kasih!** Terima kasih kepada semua orang yang menggunakan REA, melaporkan bug, meminta fitur, menguji build, dan berkontribusi dalam perbaikan. diff --git a/README_it.md b/README_it.md index dd3ee065e..e472d0c81 100644 --- a/README_it.md +++ b/README_it.md @@ -262,7 +262,7 @@ Segnala vulnerabilità tramite [SECURITY.md](SECURITY.md). ## Cronologia delle stelle -🎉 **90.000 stelle su GitHub — grazie!** +🎉 **110.000 stelle su GitHub — grazie!** Grazie a tutti coloro che usano REA, segnalano bug, propongono funzionalità, testano le build e contribuiscono con correzioni. diff --git a/README_ja.md b/README_ja.md index 501a844ef..51c997038 100644 --- a/README_ja.md +++ b/README_ja.md @@ -260,7 +260,7 @@ npx rea-agents@latest setup ## スター履歴 -🎉 **GitHub スター 90,000 件、ありがとうございます!** +🎉 **GitHub スター 110,000 件、ありがとうございます!** REA の利用、バグ報告、機能の要望、ビルドのテスト、修正への貢献に感謝します。 diff --git a/README_ko.md b/README_ko.md index a79b04acc..0cad1695c 100644 --- a/README_ko.md +++ b/README_ko.md @@ -260,7 +260,7 @@ npx rea-agents@latest setup ## 스타 기록 -🎉 **GitHub 스타 90,000개, 감사합니다!** +🎉 **GitHub 스타 110,000개, 감사합니다!** REA를 사용하고, 버그를 보고하고, 기능을 요청하고, 빌드를 테스트하고, 수정에 기여해 주신 모든 분께 감사드립니다. diff --git a/README_pl.md b/README_pl.md index 798afb78c..68600ace3 100644 --- a/README_pl.md +++ b/README_pl.md @@ -258,7 +258,7 @@ Zgłaszaj podatności zgodnie z [SECURITY.md](SECURITY.md). ## Historia gwiazdek -🎉 **90 000 gwiazdek na GitHubie — dziękujemy!** +🎉 **110 000 gwiazdek na GitHubie — dziękujemy!** Dziękujemy wszystkim, którzy używają REA, zgłaszają błędy, proponują nowe funkcje, testują kompilacje i przesyłają poprawki. diff --git a/README_pt-BR.md b/README_pt-BR.md index 2f0502eaa..7923100ba 100644 --- a/README_pt-BR.md +++ b/README_pt-BR.md @@ -258,7 +258,7 @@ Relate vulnerabilidades conforme [SECURITY.md](SECURITY.md). ## Histórico de estrelas -🎉 **90.000 estrelas no GitHub — muito obrigado!** +🎉 **110.000 estrelas no GitHub — muito obrigado!** Obrigado a todos que usam o REA, relatam bugs, sugerem funcionalidades, testam builds e contribuem com correções. diff --git a/README_ru.md b/README_ru.md index d1058f139..5e45f9f33 100644 --- a/README_ru.md +++ b/README_ru.md @@ -258,7 +258,7 @@ npx rea-agents@latest setup ## История звёзд -🎉 **90 000 звёзд на GitHub — спасибо!** +🎉 **110 000 звёзд на GitHub — спасибо!** Спасибо всем, кто использует REA, сообщает об ошибках, предлагает новые функции, тестирует сборки и помогает с исправлениями. diff --git a/README_th.md b/README_th.md index 55a1f8ab9..0c1b22297 100644 --- a/README_th.md +++ b/README_th.md @@ -258,7 +258,7 @@ npx rea-agents@latest setup ## ประวัติดาว -🎉 **90,000 ดาวบน GitHub — ขอบคุณทุกคน!** +🎉 **110,000 ดาวบน GitHub — ขอบคุณทุกคน!** ขอบคุณทุกคนที่ใช้ REA รายงานบั๊ก เสนอฟีเจอร์ ทดสอบบิลด์ และช่วยแก้ไข diff --git a/README_tr.md b/README_tr.md index fbc7799e4..c032547c3 100644 --- a/README_tr.md +++ b/README_tr.md @@ -258,7 +258,7 @@ Güvenlik açıklarını [SECURITY.md](SECURITY.md) üzerinden bildirin. ## Yıldız geçmişi -🎉 **GitHub'da 90.000 yıldız — teşekkürler!** +🎉 **GitHub'da 110.000 yıldız — teşekkürler!** REA'yı kullanan, hata bildiren, özellik talep eden, derlemeleri test eden ve düzeltmelere katkıda bulunan herkese teşekkürler. diff --git a/README_uk.md b/README_uk.md index 806980a7f..d40815253 100644 --- a/README_uk.md +++ b/README_uk.md @@ -258,7 +258,7 @@ npx rea-agents@latest setup ## Історія зірок -🎉 **90 000 зірок на GitHub — дякуємо!** +🎉 **110 000 зірок на GitHub — дякуємо!** Дякуємо всім, хто використовує REA, повідомляє про помилки, пропонує нові функції, тестує збірки й допомагає з виправленнями. diff --git a/README_vi.md b/README_vi.md index ec7a6e0ac..e0f6d2f78 100644 --- a/README_vi.md +++ b/README_vi.md @@ -258,7 +258,7 @@ Báo cáo lỗ hổng theo [SECURITY.md](SECURITY.md). ## Lịch sử sao -🎉 **90.000 sao trên GitHub — xin cảm ơn!** +🎉 **110.000 sao trên GitHub — xin cảm ơn!** Cảm ơn mọi người đã sử dụng REA, báo lỗi, đề xuất tính năng, kiểm thử bản dựng và đóng góp bản sửa lỗi. diff --git a/README_zh-TW.md b/README_zh-TW.md index 5f4452597..ca659a42a 100644 --- a/README_zh-TW.md +++ b/README_zh-TW.md @@ -260,7 +260,7 @@ npx rea-agents@latest setup ## Star 歷史 -🎉 **GitHub Star 達到 90,000 個,感謝大家!** +🎉 **GitHub Star 達到 110,000 個,感謝大家!** 感謝每一位使用 REA、報告錯誤、提出功能需求、測試建置和貢獻修復的朋友。 diff --git a/README_zh.md b/README_zh.md index f0c765c29..3d0ffcec6 100644 --- a/README_zh.md +++ b/README_zh.md @@ -260,7 +260,7 @@ npx rea-agents@latest setup ## Star 历史 -🎉 **GitHub Star 达到 90,000 个,感谢大家!** +🎉 **GitHub Star 达到 110,000 个,感谢大家!** 感谢每一位使用 REA、报告错误、提出功能需求、测试构建和贡献修复的朋友。 From 538f8cc7224dba44b728cf6c000920f911957fc4 Mon Sep 17 00:00:00 2001 From: Alessandro Costa <108879955+sandr01@users.noreply.github.com> Date: Sun, 11 Oct 2026 23:09:06 -0500 Subject: [PATCH 09/44] docs(cli): add a managed assembly inspection workflow (#2037) --- docs/cli.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/cli.md b/docs/cli.md index bf6eb211f..16afe0f56 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -37,6 +37,31 @@ module page. See [JavaScript application workflows](javascript-application-workflows.md) for views, feature traces and comparisons that take the same saved Evidence. +## Managed assemblies (.NET) + +For a .NET PE/CLI assembly, inspect its identity and deployment form before +inspecting members. These commands read metadata and Common Intermediate +Language (CIL) without loading or executing the assembly and require no native +analysis engine: + +```bash +rea inspect-managed-artifact /absolute/path/Assembly.dll --json +rea inspect-managed-members /absolute/path/Assembly.dll --json +rea inspect-managed-members /absolute/path/Assembly.dll --type Example.Parser --json +``` + +Replace `Example.Parser` with an exact `full_name` from the member inspection, +or a declaring type name you already know. Omit `--type` to inspect all members, +or repeat it to select several types. +Selection limits decoding to the selected types; member references remain an +assembly-wide inventory, so the output can still be large. + +Choose the workflow from the artifact's contents rather than its `.exe` or +`.dll` extension. The managed parser requires PE/CLI metadata; it does not +unpack .NET single-file hosts or decode IL2CPP metadata. NativeAOT method bodies +require native analysis. See the [managed-code guide](managed-code-analysis.md) +for supported deployment forms, selection semantics, and coverage limits. + ## Native analysis Inspect embedded Go build metadata without installing Go or configuring a From 1c64fe3eff48679c6880f42d2f0a4af46686ade7 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 12:34:39 +0800 Subject: [PATCH 10/44] fix(session): invalidate snapshots before metadata write dispatch Stop cached metadata replay before a provider write starts, including while its reply is pending or fails after applying the mutation. Keep snapshot import and export disabled until the target is reopened. Validate failed replies, conflicting provider identity, and overlapping reads through the shared session boundary. --- docs/cli.md | 4 + src/application/binary/BinarySession.ts | 5 +- .../binary/BinarySessionRecords.ts | 8 +- .../analysis-sessions/binarySession.test.ts | 111 +++++++++++++++++- 4 files changed, 118 insertions(+), 10 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index 16afe0f56..48e061c66 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -150,6 +150,10 @@ an exact result when the target bytes, operation, parameters, provider and settings match. Mutations and cursor-dependent calls are excluded from the cache. Snapshot files are local and use owner-only permissions. +Dispatching a metadata write invalidates the active session's snapshot cache, +even if its reply fails: the provider may already have applied the write. +Close and reopen the target before importing or saving another snapshot. + Snapshots retain eligible target-scoped question histories in full, including mutation Evidence recorded while another target was active. Observations and related questions must still belong to the saved target. If those dependencies diff --git a/src/application/binary/BinarySession.ts b/src/application/binary/BinarySession.ts index da8d8e679..9eff0e0b8 100644 --- a/src/application/binary/BinarySession.ts +++ b/src/application/binary/BinarySession.ts @@ -588,6 +588,9 @@ export class BinarySession if (!prepared.ok) return prepared; const { active, capability, profile, cacheable, cached } = prepared.value; if (cached !== undefined) return ok(cached); + // A failed reply cannot prove that a dispatched metadata write rolled back. + // Stop replay before dispatch, including reads overlapping the write. + if (capability.effects.mutatesArtifact) this.invalidateSnapshot(); const call = active.client.execute(name, arguments_, options); const result = await call; const profiled = bindExecutionTarget( @@ -645,8 +648,6 @@ export class BinarySession parameters: arguments_, execution: execution.value, }); - } else if (profiled.ok && capability.effects.mutatesArtifact) { - this.invalidateSnapshot(); } return execution; } diff --git a/src/application/binary/BinarySessionRecords.ts b/src/application/binary/BinarySessionRecords.ts index 182d5892f..cfa0fa3b2 100644 --- a/src/application/binary/BinarySessionRecords.ts +++ b/src/application/binary/BinarySessionRecords.ts @@ -144,9 +144,9 @@ export abstract class BinarySessionRecords { if (this.#snapshotInvalidated) return err( new EvidenceIntegrityError( - "Analysis snapshots are unavailable after analysis metadata mutations", + "Analysis snapshots are unavailable because analysis metadata may have changed", { - userMessage: `Analysis snapshots are unavailable after analysis metadata mutations. ${SNAPSHOT_MUTATION_RECOVERY}`, + userMessage: `Analysis snapshots are unavailable because analysis metadata may have changed. ${SNAPSHOT_MUTATION_RECOVERY}`, }, ), ); @@ -177,9 +177,9 @@ export abstract class BinarySessionRecords { if (active !== undefined && this.#snapshotInvalidated) return err( new EvidenceIntegrityError( - "Analysis snapshots cannot be imported after analysis metadata mutations", + "Analysis snapshots cannot be imported because analysis metadata may have changed", { - userMessage: `Analysis snapshots cannot be imported after analysis metadata mutations. ${SNAPSHOT_MUTATION_RECOVERY}`, + userMessage: `Analysis snapshots cannot be imported because analysis metadata may have changed. ${SNAPSHOT_MUTATION_RECOVERY}`, }, ), ); diff --git a/tests/composition/analysis-sessions/binarySession.test.ts b/tests/composition/analysis-sessions/binarySession.test.ts index 302d51d50..27e591a17 100644 --- a/tests/composition/analysis-sessions/binarySession.test.ts +++ b/tests/composition/analysis-sessions/binarySession.test.ts @@ -1,6 +1,7 @@ -import type { - AnalysisClient, - AnalysisProvider, +import { + createAnalysisExecution, + type AnalysisClient, + type AnalysisProvider, } from "../../../src/application/AnalysisProvider.js"; import type { BinarySession } from "../../../src/application/binary/BinarySession.js"; import { parseBinaryTarget } from "../../../src/application/BinaryTargetResolver.js"; @@ -374,7 +375,7 @@ describe("evidence metadata imports and snapshot cache", () => { ok: false, error: { message: expect.stringContaining( - "Analysis snapshots are unavailable after analysis metadata mutations", + "Analysis snapshots are unavailable because analysis metadata may have changed", ), }, }); @@ -408,6 +409,108 @@ describe("evidence metadata imports and snapshot cache", () => { }); }); +describe("snapshot invalidation at mutation dispatch", () => { + it.each(["provider failure", "invalid reply identity"] as const)( + "does not replay metadata after a write followed by %s", + async (failure) => { + const [target] = await createBinarySessionTargets(); + const provider = createCacheProvider([]); + let name = "before"; + provider.createClient = () => ({ + execute: (operation) => { + if (operation === "health") return Promise.resolve(ok(null)); + if (operation === "address_name") return Promise.resolve(ok(name)); + if (operation !== "set_address_name") + throw new Error(`Unexpected operation: ${operation}`); + name = "after"; + return Promise.resolve( + failure === "provider failure" + ? err(new ProviderAdapterError("fixture", operation)) + : resultOk( + createAnalysisExecution(true, { + id: "wrong", + name: "Wrong", + version: "1", + }), + ), + ); + }, + close: () => Promise.resolve(resultOk(null)), + }); + const session = createTestBinarySession(provider); + try { + const opened = await session.open(target); + if (!opened.ok) throw opened.error; + const parameters = { address: "0x1000", document: "first" }; + const before = await session.execute("address_name", parameters); + if (!before.ok) throw before.error; + expect(before.value.result).toBe("before"); + const baseline = session.exportAnalysisSnapshot(); + if (!baseline.ok) throw baseline.error; + + const written = await session.execute("set_address_name", { + ...parameters, + name: "after", + }); + expect(written).toMatchObject({ ok: false }); + const after = await session.execute("address_name", parameters); + if (!after.ok) throw after.error; + expect(after.value.result).toBe("after"); + expect(session.exportAnalysisSnapshot()).toMatchObject({ ok: false }); + expect(session.importAnalysisSnapshot(baseline.value)).toMatchObject({ + ok: false, + }); + } finally { + expect(await session.close()).toEqual({ ok: true, value: null }); + } + }, + ); + + it("stops replay while a dispatched write is still awaiting its reply", async () => { + const [target] = await createBinarySessionTargets(); + const provider = createCacheProvider([]); + const started = createDeferred(); + const reply = createDeferred>(); + let name = "before"; + provider.createClient = () => ({ + execute: (operation) => { + if (operation === "health") return Promise.resolve(ok(null)); + if (operation === "address_name") return Promise.resolve(ok(name)); + if (operation !== "set_address_name") + throw new Error(`Unexpected operation: ${operation}`); + name = "after"; + started.resolve(); + return reply.promise; + }, + close: () => Promise.resolve(resultOk(null)), + }); + const session = createTestBinarySession(provider); + try { + const opened = await session.open(target); + if (!opened.ok) throw opened.error; + const parameters = { address: "0x1000", document: "first" }; + const before = await session.execute("address_name", parameters); + if (!before.ok) throw before.error; + const writing = session.execute("set_address_name", { + ...parameters, + name: "after", + }); + await started.promise; + try { + const during = await session.execute("address_name", parameters); + if (!during.ok) throw during.error; + expect(during.value.result).toBe("after"); + expect(session.exportAnalysisSnapshot()).toMatchObject({ ok: false }); + } finally { + reply.resolve(ok(true)); + expect(await writing).toMatchObject({ ok: true }); + } + } finally { + expect(await session.close()).toEqual({ ok: true, value: null }); + } + }); +}); + describe("replay of exact immutable calls", () => { it("replays exact immutable calls from a matching provider-neutral snapshot", async () => { const [first, second] = await createBinarySessionTargets(); From 6fb3a345fe952b8e8f59221aec993acc37ccbf31 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 12:35:01 +0800 Subject: [PATCH 11/44] fix(analysis): preserve producer identity and partial evidence Reconcile Mach-O UUID observations without hiding malformed or conflicting sources. Require source-map identity digests to be supported by consistent observations. Keep truncated Android manifests as partial raw evidence, validate WABT section framing, and reject missing JEB inventories or error-marked success replies. Consolidate native UUID parsing and simplify capacity and malformed-input fixtures. Focused source and public workflow checks pass, including native arm64e inspection and real WABT framing probes; a successful real JEB GUI project opening remains unverified. --- src/apktool/ApktoolDecodeOutput.test.ts | 6 + src/apktool/ApktoolDecodeOutput.ts | 3 +- src/apktool/ApktoolProvider.test.ts | 73 +++++- src/apktool/ApktoolProvider.ts | 4 +- .../javascriptApplicationGraph.test.ts | 77 +++++++ .../javascript/javascriptApplicationGraph.ts | 21 ++ .../sourceToBundleComparison.test.ts | 3 +- src/jeb/JebMcpConnection.test.ts | 34 +++ src/jeb/JebMcpConnection.ts | 37 +-- src/jeb/JebProvider.test.ts | 57 +++++ src/jeb/JebProvider.ts | 22 +- src/native/NativeMachoInspection.test.ts | 115 ++++++++++ src/native/NativeMachoInspection.ts | 17 +- src/native/parsers/machoUuid.ts | 212 ++++++++++++++++++ src/wasm/WabtOutput.test.ts | 38 ++++ src/wasm/WabtOutput.ts | 5 +- .../native/nativeSelectedArchitecture.test.ts | 4 +- tests/fixtures/nativeCommands.ts | 2 +- 18 files changed, 680 insertions(+), 50 deletions(-) create mode 100644 src/native/parsers/machoUuid.ts diff --git a/src/apktool/ApktoolDecodeOutput.test.ts b/src/apktool/ApktoolDecodeOutput.test.ts index fb258b221..6ee69ec18 100644 --- a/src/apktool/ApktoolDecodeOutput.test.ts +++ b/src/apktool/ApktoolDecodeOutput.test.ts @@ -126,6 +126,12 @@ describe("parseManifestPackage", () => { it("reports null when no package attribute exists", () => { expect(parseManifestPackage("\n\n")).toBeNull(); }); + + it("rejects a well-formed document with the wrong root element", () => { + expect(() => parseManifestPackage("")).toThrowError( + new TypeError("AndroidManifest.xml root must be "), + ); + }); }); describe("parseDecodedStrings", () => { diff --git a/src/apktool/ApktoolDecodeOutput.ts b/src/apktool/ApktoolDecodeOutput.ts index 05bb54acb..05c5f8af1 100644 --- a/src/apktool/ApktoolDecodeOutput.ts +++ b/src/apktool/ApktoolDecodeOutput.ts @@ -59,7 +59,8 @@ export const parseApktoolYml = (yml: string): ApktoolMetadata => { export const parseManifestPackage = (manifest: string): string | null => { const document = parseXml(manifest, "AndroidManifest.xml"); const root = document.documentElement; - if (root === null || root.nodeName !== "manifest") return null; + if (root === null || root.nodeName !== "manifest") + throw new TypeError("AndroidManifest.xml root must be "); return root.getAttribute("package") || null; }; diff --git a/src/apktool/ApktoolProvider.test.ts b/src/apktool/ApktoolProvider.test.ts index 3cd86b72a..5b2a32114 100644 --- a/src/apktool/ApktoolProvider.test.ts +++ b/src/apktool/ApktoolProvider.test.ts @@ -1,7 +1,14 @@ import { createHash } from "node:crypto"; -import { chmod, mkdtemp, readFile, rm, writeFile } from "node:fs/promises"; +import { + chmod, + mkdtemp, + readFile, + rm, + truncate, + writeFile, +} from "node:fs/promises"; import { join } from "node:path"; -import { expect, onTestFinished, test } from "vitest"; +import { describe, expect, onTestFinished, test } from "vitest"; import { ApktoolProvider } from "./ApktoolProvider.js"; import { projectAnalysisError } from "../domain/analysisErrorProjection.js"; @@ -69,7 +76,7 @@ const evidenceResult = async ( request: ApktoolRequest, ): Promise> => { const result = await provider.execute(request); - if (!result.ok) throw new Error(result.error.message); + if (!result.ok) throw result.error; return result.value.result as Record; }; @@ -89,21 +96,31 @@ const decodeStub = ( readonly withStrings?: boolean; readonly withGerman?: boolean; readonly failDecode?: boolean; + readonly manifestFile?: string; + readonly stringsFile?: string; readonly stringsXml?: string; } = {}, ): ((root: string) => string) => { const withStrings = options.withStrings ?? true; const withGerman = options.withGerman ?? true; const stringsXml = options.stringsXml ?? REAL_STRINGS; + const manifestWrite = + options.manifestFile === undefined + ? `printf '%s\\n' '${REAL_MANIFEST.replace(/'/gu, "'\\''")}' > "$5/AndroidManifest.xml"` + : `cp '${options.manifestFile}' "$5/AndroidManifest.xml"`; + const stringsWrite = + options.stringsFile === undefined + ? `printf '%s\\n' '${stringsXml.replace(/'/gu, "'\\''")}' > "$5/res/values/strings.xml"` + : `cp '${options.stringsFile}' "$5/res/values/strings.xml"`; return () => `if [ "$1" = "--version" ]; then ${VERSION_BLOCK}; exit 0; fi if [ "$1" = "d" ]; then ${ options.failDecode === true ? `printf 'Exception in thread "main" brut.androlib.AndrolibException: Could not decode the APK\\n' >&2; exit 1;` : `printf '%s\\n' '${REAL_YML.replace(/'/gu, "'\\''")}' > "$5/apktool.yml" - printf '%s\\n' '${REAL_MANIFEST.replace(/'/gu, "'\\''")}' > "$5/AndroidManifest.xml" + ${manifestWrite} mkdir -p "$5/res/values"${withGerman ? ' "$5/res/values-de"' : ""} - ${withStrings ? `printf '%s\\n' '${stringsXml.replace(/'/gu, "'\\''")}' > "$5/res/values/strings.xml"` : ""} + ${withStrings ? stringsWrite : ""} ${withGerman ? `printf '%s\\n' '${DE_STRINGS.replace(/'/gu, "'\\''")}' > "$5/res/values-de/strings.xml"` : ""} printf 'I: Using Apktool on stub\\n' exit 0` @@ -326,18 +343,16 @@ it("uses an owned APK snapshot and framework cache and resolves regional locales it("marks an oversized strings document partial without claiming it is missing", async () => { const { command, root } = await writeApktoolStub((root) => - decodeStub()(root).replace( - " printf 'I: Using Apktool on stub", - ' dd if=/dev/zero of="$5/res/values/strings.xml" bs=1048576 count=9 2>/dev/null\n printf \'I: Using Apktool on stub', - ), + decodeStub({ stringsFile: join(root, "large-strings.xml") })(root), ); + await writeFile(join(root, "large-strings.xml"), ""); + await truncate(join(root, "large-strings.xml"), 9 * 1024 * 1024); const apk = await apkFixture(root); const result = await providerOver(command).execute({ operation: "decode_android_resources", input: { path: apk.path, include_strings: true }, }); - expect(result.ok).toBe(true); - if (!result.ok) return; + if (!result.ok) throw result.error; expect(result.value.result).toMatchObject({ coverage: "partial", strings: [], @@ -346,6 +361,42 @@ it("marks an oversized strings document partial without claiming it is missing", expect(result.value.limitations.join(" ")).not.toContain("No default"); }); +describe("truncated manifest prefixes", () => { + it.each([ + { + name: "a retained prefix ending after the root element", + manifest: `${" ".repeat(512 * 1024 + 1)}`, + }, + { + name: "a retained prefix ending before the root element closes", + manifest: `${" ".repeat(512 * 1024 + 1)}`, + }, + ])("retains $name without parsing its package", async ({ manifest }) => { + const { command, root } = await writeApktoolStub((root) => + decodeStub({ manifestFile: join(root, "large-AndroidManifest.xml") })( + root, + ), + ); + await writeFile(join(root, "large-AndroidManifest.xml"), manifest); + const apk = await apkFixture(root); + + const result = await providerOver(command).execute({ + operation: "decode_android_resources", + input: { path: apk.path, include_strings: false }, + }); + if (!result.ok) throw result.error; + + expect(result.value.result).toMatchObject({ + coverage: "partial", + manifest: manifest.slice(0, 512 * 1024), + metadata: { package_name: null, version_name: "1.2.3" }, + }); + expect(result.value.limitations.join(" ")).toContain( + "manifest is truncated", + ); + }); +}); + it("retains failed workspace cleanup and retries it on close", async () => { const { command, root } = await writeApktoolStub( decodeStub({ failDecode: true }), diff --git a/src/apktool/ApktoolProvider.ts b/src/apktool/ApktoolProvider.ts index eaf21c3e6..682e2f2ea 100644 --- a/src/apktool/ApktoolProvider.ts +++ b/src/apktool/ApktoolProvider.ts @@ -649,7 +649,9 @@ export class ApktoolProvider { ); const manifest = manifestRead.text; const packageName = - manifest === null ? null : parseManifestPackage(manifest); + manifest === null || manifestRead.truncated + ? null + : parseManifestPackage(manifest); const stringsDirectory = input.locale === undefined ? "values" diff --git a/src/domain/javascript/javascriptApplicationGraph.test.ts b/src/domain/javascript/javascriptApplicationGraph.test.ts index 58f127928..5e396a545 100644 --- a/src/domain/javascript/javascriptApplicationGraph.test.ts +++ b/src/domain/javascript/javascriptApplicationGraph.test.ts @@ -513,7 +513,84 @@ describe("JavaScript Application Graph: source maps and observations", () => { ), ).toThrow(/Source-map observation/u); }); +}); +describe("JavaScript Application Graph: source-map digest consistency", () => { + it("rejects source-map observations that contradict a known original digest", () => { + const sourceMapNode = ( + identityDigest: string | null, + observedDigest: unknown, + contentAvailable?: boolean, + ) => + createJavaScriptApplicationNode({ + kind: "source-module", + identity: { + strategy: "source-map-original", + source_root: null, + stability: "source-map-exact", + source_map_sha256: APPLICATION_GRAPH_DIGESTS.asar, + original_source: "src/editor.ts", + source_sha256: identityDigest, + }, + observations: [ + { + label: null, + source_map_reference: resolveJavaScriptSourceMapReference( + "src/editor.ts", + null, + "dist/app.js.map", + ), + properties: { + ...(contentAvailable === undefined + ? {} + : { content_available: contentAvailable }), + ...(observedDigest === undefined + ? {} + : { content_sha256: observedDigest }), + }, + evidence: artifactEvidence( + APPLICATION_GRAPH_DIGESTS.asar, + "dist/app.js.map", + "ast-static-analysis", + ), + }, + ], + }); + + expect(() => + graphForNode(sourceMapNode("2".repeat(64), "3".repeat(64))), + ).toThrow(/Source-map observation/u); + expect(() => graphForNode(sourceMapNode(null, "3".repeat(64)))).toThrow( + /Source-map observation/u, + ); + expect(() => graphForNode(sourceMapNode(null, 7))).toThrow( + /Source-map observation/u, + ); + expect(() => + graphForNode(sourceMapNode("3".repeat(64), "3".repeat(64))), + ).not.toThrow(); + expect(() => + graphForNode(sourceMapNode("3".repeat(64), "3".repeat(64), false)), + ).toThrow(/Source-map observation/u); + expect(() => + graphForNode(sourceMapNode("3".repeat(64), null, false)), + ).toThrow(/Source-map observation/u); + expect(() => + graphForNode(sourceMapNode("3".repeat(64), null, true)), + ).toThrow(/Source-map observation/u); + expect(() => + graphForNode(sourceMapNode("3".repeat(64), undefined)), + ).toThrow(/Source-map observation/u); + expect(() => graphForNode(sourceMapNode(null, null, true))).toThrow( + /Source-map observation/u, + ); + expect(() => + graphForNode(sourceMapNode("3".repeat(64), "3".repeat(64), undefined)), + ).not.toThrow(); + }); +}); + +describe("JavaScript Application Graph: commitments and schemas", () => { it("rejects unknown fields and stale commitments", () => { const graph = buildSyntheticJavaScriptApplicationGraph(); expect(() => diff --git a/src/domain/javascript/javascriptApplicationGraph.ts b/src/domain/javascript/javascriptApplicationGraph.ts index f4b53503b..22504a12b 100644 --- a/src/domain/javascript/javascriptApplicationGraph.ts +++ b/src/domain/javascript/javascriptApplicationGraph.ts @@ -172,7 +172,28 @@ const sourceMapObservationMatchesIdentity = ( observation: ApplicationNode["observations"][number], ): boolean => { const { evidence, source_map_reference: reference } = observation; + const sourceDigests = [ + observation.properties.content_sha256, + // Older graph producers used `source_sha256` for the same source-map fact. + observation.properties.source_sha256, + ]; + const hasKnownSourceDigest = identity.source_sha256 !== null; + const sourceDigestMatches = + sourceDigests.every( + (digest) => + digest === undefined || + digest === null || + digest === identity.source_sha256, + ) && + (!hasKnownSourceDigest || sourceDigests.includes(identity.source_sha256)); + const contentAvailabilityMatches = + (observation.properties.content_available !== true || + hasKnownSourceDigest) && + (observation.properties.content_available !== false || + !hasKnownSourceDigest); return ( + sourceDigestMatches && + contentAvailabilityMatches && reference !== null && evidence.state === "observed" && evidence.artifact.available && diff --git a/src/domain/javascript/sourceToBundleComparison.test.ts b/src/domain/javascript/sourceToBundleComparison.test.ts index f6179d901..f488ee598 100644 --- a/src/domain/javascript/sourceToBundleComparison.test.ts +++ b/src/domain/javascript/sourceToBundleComparison.test.ts @@ -159,7 +159,8 @@ describe("source to bundle digest changes", () => { "dist/main.js.map", ), properties: { - source_sha256: HASH.unchanged, + content_available: true, + content_sha256: HASH.unchanged, source: "src/removed.ts", }, evidence: artifactEvidence(HASH.artifact, "dist/main.js.map"), diff --git a/src/jeb/JebMcpConnection.test.ts b/src/jeb/JebMcpConnection.test.ts index 23e3c9778..284f04f07 100644 --- a/src/jeb/JebMcpConnection.test.ts +++ b/src/jeb/JebMcpConnection.test.ts @@ -23,6 +23,40 @@ describe("decodeJebToolResult", () => { }); }); + it.each([ + [ + "structured content", + { + isError: true, + structuredContent: { + success: true, + input_files: [], + units: [], + }, + }, + ], + [ + "JSON text", + { + isError: true, + content: [{ type: "text", text: '{"success":true}' }], + }, + ], + ] as const)("rejects error-marked success in %s", (_source, result) => { + expect(() => decodeJebToolResult(result)).toThrow(AnalysisProtocolError); + }); + + it("preserves an explicit JEB failure envelope returned as JSON text", () => { + expect( + decodeJebToolResult({ + isError: true, + content: [ + { type: "text", text: '{"success":false,"message":"missing"}' }, + ], + }), + ).toEqual({ success: false, message: "missing" }); + }); + it("decodes a single JSON text block", () => { expect( decodeJebToolResult({ diff --git a/src/jeb/JebMcpConnection.ts b/src/jeb/JebMcpConnection.ts index ece06007b..137d0f32d 100644 --- a/src/jeb/JebMcpConnection.ts +++ b/src/jeb/JebMcpConnection.ts @@ -38,26 +38,35 @@ export const decodeJebToolResult = (input: unknown): JsonValue => { const blocks = result.content.flatMap((block) => block.type === "text" && block.text !== undefined ? [block.text] : [], ); + let decoded: JsonValue; if (result.structuredContent !== undefined) { - // isError envelopes carry JEB's {success:false, message} refusal semantics; - // decode them so the provider can preserve the engine's own reason. - return jsonValueSchema.parse(result.structuredContent); - } - if (blocks.length !== 1) - throw new AnalysisProtocolError( - "JEB MCP omitted a single structured or text result; unsupported content cannot establish an empty observation.", - ); - try { - return jsonValueSchema.parse(JSON.parse(blocks[0] ?? "null")); - } catch { - if (result.isError === true) + decoded = jsonValueSchema.parse(result.structuredContent); + } else { + if (blocks.length !== 1) throw new AnalysisProtocolError( - `JEB MCP tool failed: ${blocks[0] ?? "unexplained engine failure"}`, + "JEB MCP omitted a single structured or text result; unsupported content cannot establish an empty observation.", ); - return blocks[0] ?? null; + const text = blocks[0] ?? "null"; + try { + decoded = jsonValueSchema.parse(JSON.parse(text)); + } catch { + decoded = text; + } } + if (result.isError === true && !isJebFailureEnvelope(decoded)) + throw new AnalysisProtocolError( + `JEB MCP tool failed: ${blocks[0] ?? "error-marked result without a JEB failure envelope"}`, + { cause: decoded }, + ); + return decoded; }; +const isJebFailureEnvelope = (value: JsonValue): boolean => + typeof value === "object" && + value !== null && + !Array.isArray(value) && + value.success === false; + export type JebMcpConnectionFactory = (endpoint: URL) => JebMcpConnection; /** Serve JEB requests from a running engine client over streamable HTTP. */ diff --git a/src/jeb/JebProvider.test.ts b/src/jeb/JebProvider.test.ts index 677b7ccb6..c6bd8c6ec 100644 --- a/src/jeb/JebProvider.test.ts +++ b/src/jeb/JebProvider.test.ts @@ -165,6 +165,63 @@ describe("JebProvider boundary", () => { }); }); +describe("JebProvider open project inventories", () => { + it.each(["input_files", "units"] as const)( + "rejects an omitted %s inventory from a successful project response", + async (omitted) => { + const project = { + success: true, + name: "empty-project", + creation_datetime: "2026-10-12T00:00:00", + input_files: [], + units: [], + }; + const response = { ...project }; + delete response[omitted]; + const provider = providerWith( + scriptedConnection({ + get_client_information: { success: true, version: "5.48.0" }, + open_project: response, + }), + ); + + const result = await provider.execute({ + operation: "open_jeb_project", + input: { path: "probe.apk" }, + }); + + if (result.ok) throw new Error("Expected an omitted inventory failure"); + expect(result.error).toBeInstanceOf(AnalysisProtocolError); + }, + ); + + it("preserves explicitly empty project inventories", async () => { + const provider = providerWith( + scriptedConnection({ + get_client_information: { success: true, version: "5.48.0" }, + open_project: { + success: true, + name: "empty-project", + creation_datetime: "2026-10-12T00:00:00", + input_files: [], + units: [], + }, + }), + ); + + const result = await provider.execute({ + operation: "open_jeb_project", + input: { path: "probe.apk" }, + }); + + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ + input_files: [], + units: [], + }); + }); +}); + describe("JebProvider target and endpoint selection", () => { it("keeps the implicitly selected unit unknown when unit_path is omitted", async () => { const provider = providerWith( diff --git a/src/jeb/JebProvider.ts b/src/jeb/JebProvider.ts index 9d9797d3a..bf62598a5 100644 --- a/src/jeb/JebProvider.ts +++ b/src/jeb/JebProvider.ts @@ -69,16 +69,14 @@ const openProject = z success: z.literal(true), name: z.string().nullish(), creation_datetime: z.string().nullish(), - input_files: z - .array( - z.object({ - file_name: z.string(), - file_size: z.number().int().nonnegative(), - contents_sha256_hash: z.string(), - }), - ) - .optional(), - units: z.array(unitEntry).optional(), + input_files: z.array( + z.object({ + file_name: z.string(), + file_size: z.number().int().nonnegative(), + contents_sha256_hash: z.string(), + }), + ), + units: z.array(unitEntry), }) .passthrough(); const listUnits = z @@ -292,8 +290,8 @@ export class JebProvider implements JebAnalysisPort { engine, project_name: opened.name ?? null, creation_datetime: opened.creation_datetime ?? null, - input_files: opened.input_files ?? [], - units: opened.units ?? [], + input_files: opened.input_files, + units: opened.units, }); return ok( createAnalysisExecution(result, this.#identity, { diff --git a/src/native/NativeMachoInspection.test.ts b/src/native/NativeMachoInspection.test.ts index 939f61099..4ed533c2e 100644 --- a/src/native/NativeMachoInspection.test.ts +++ b/src/native/NativeMachoInspection.test.ts @@ -4,6 +4,11 @@ import { AnalysisCancelledError } from "../domain/analysisErrorCore.js"; import { err, ok } from "../domain/result.js"; import type { NativeCommandCapture } from "./CommandRunner.js"; import { inspectNativeMacho } from "./NativeMachoInspection.js"; +import { + NativeFixtureRunner, + nativeMachoTarget, + withOtoolMachHeader, +} from "../../tests/fixtures/nativeCommands.js"; const capture = (tool: string, stdout: string): NativeCommandCapture => ({ tool, @@ -71,3 +76,113 @@ describe("Mach-O tool architecture selection", () => { ]); }); }); + +describe("Mach-O UUID reconciliation", () => { + const validUuid = "01234567-89AB-CDEF-0123-456789ABCDEF"; + + const runInspection = async ( + dwarfdump: string, + otoolUuids: readonly string[] = [validUuid], + targetPath = "/fixture/app", + ) => { + const runner = new NativeFixtureRunner({ + dwarfdump, + otool: withOtoolMachHeader( + otoolUuids + .map( + (uuid, index) => + `Load command ${index}\n cmd LC_UUID\n cmdsize 24\n uuid ${uuid}`, + ) + .join("\n"), + ), + }); + const result = await inspectNativeMacho({ + target: nativeMachoTarget(targetPath), + run: (tool, args) => runner.run(tool, args), + invocation: (capture) => ({ + tool: capture.tool, + command: [capture.executable, ...capture.arguments], + tool_version: capture.toolVersion, + version_reason: capture.versionReason, + executable_sha256: capture.executableSha256, + exit: { code: capture.exitCode, signal: capture.signal }, + stdout_bytes: capture.stdoutBytes, + stderr_bytes: capture.stderrBytes, + }), + }); + return result; + }; + + it("keeps a valid otool UUID when dwarfdump is malformed and reports the limitation", async () => { + const result = await runInspection("UUID: A (arm64) /fixture/app\n"); + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ uuid: validUuid }); + expect(result.value.limitations).toContain( + 'dwarfdump --uuid returned malformed UUID "A"; using the unambiguous otool LC_UUID.', + ); + }); + + it("does not choose between conflicting valid UUIDs", async () => { + const result = await runInspection( + `UUID: FEDCBA98-7654-3210-FEDC-BA9876543210 (arm64) /fixture/app\n`, + ); + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ uuid: null }); + expect(result.value.limitations).toContain( + `dwarfdump --uuid (FEDCBA98-7654-3210-FEDC-BA9876543210) conflicts with otool LC_UUID (${validUuid}); the image UUID is unknown.`, + ); + }); + + it("accepts matching UUIDs with different case and preserves dwarfdump spelling", async () => { + const lower = validUuid.toLowerCase(); + const result = await runInspection(`UUID: ${lower} (arm64) /fixture/app\n`); + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ uuid: lower }); + }); + + it("uses a valid dwarfdump UUID when otool has no UUID observation", async () => { + const result = await runInspection( + `UUID: ${validUuid} (arm64) /fixture/app\n`, + [], + ); + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ uuid: validUuid }); + }); + + it("frames a path containing a newline and UUID-like text as one dwarfdump row", async () => { + const path = + "/fixture/\nUUID: FEDCBA98-7654-3210-FEDC-BA9876543210 (arm64) fake"; + const result = await runInspection( + `UUID: ${validUuid} (arm64) ${path}\n`, + [validUuid], + path, + ); + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ uuid: validUuid }); + }); + + it("keeps a conflict between duplicate valid LC_UUID commands unknown despite dwarfdump", async () => { + const result = await runInspection( + `UUID: ${validUuid} (arm64) /fixture/app\n`, + [validUuid, "FEDCBA98-7654-3210-FEDC-BA9876543210"], + "/fixture/app", + ); + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ uuid: null }); + expect(result.value.limitations).toContain( + `otool returned conflicting LC_UUID values ${JSON.stringify(validUuid)} and ${JSON.stringify("FEDCBA98-7654-3210-FEDC-BA9876543210")}`, + ); + }); + + it("keeps conflicting duplicate dwarfdump rows unknown despite otool", async () => { + const conflictingUuid = "FEDCBA98-7654-3210-FEDC-BA9876543210"; + const result = await runInspection( + `UUID: ${validUuid} (arm64) /fixture/app\nUUID: ${conflictingUuid} (arm64) /fixture/app\n`, + ); + if (!result.ok) throw result.error; + expect(result.value.result).toMatchObject({ uuid: null }); + expect(result.value.limitations).toContain( + "dwarfdump --uuid returned conflicting UUIDs for selected architecture arm64", + ); + }); +}); diff --git a/src/native/NativeMachoInspection.ts b/src/native/NativeMachoInspection.ts index 9980fc241..2ec6cd4a9 100644 --- a/src/native/NativeMachoInspection.ts +++ b/src/native/NativeMachoInspection.ts @@ -13,6 +13,7 @@ import { parseDyldSymbols } from "./parsers/dyldInfo.js"; import { parseLipoArchitectures } from "./parsers/lipo.js"; import { withoutEchoedPathHeader } from "./parsers/echoedPath.js"; import { parseOtoolLoadCommands } from "./parsers/otool.js"; +import { reconcileMachoUuid } from "./parsers/machoUuid.js"; import { compareUnicodeCodePoints } from "../domain/unicodeCodePointOrder.js"; interface NativeMachoObservation { @@ -50,7 +51,6 @@ const REQUIRED_SLICE_COMMANDS = [ const OPTIONAL_VTOOL_COMMAND = ["vtool", ["-show-build"]] as const; const VTOOL_UNAVAILABLE_LIMITATION = "vtool is unavailable; build metadata is normalized from otool only."; - /** Inspect one Mach-O with the required native commands and normalized output. */ export const inspectNativeMacho = async ( context: NativeMachoInspectionContext, @@ -148,6 +148,7 @@ export const inspectNativeMacho = async ( limitations, load, architectures, + context.target.path, { name: selectedArchitectureName, container_file_offset: containerOffset ?? null, @@ -178,6 +179,7 @@ const normalizeMacho = ( additionalLimitations: readonly string[], load: ReturnType, architectures: ReturnType, + artifactPath: string, selectedArchitecture: { readonly name: string | null; readonly container_file_offset: number | null; @@ -200,9 +202,13 @@ const normalizeMacho = ( new Set(nmExports.map(({ name }) => name)), ); const exports = uniqueSymbols([...dyldExports, ...nmExports]); - const uuid = - /UUID:\s*([A-Fa-f0-9-]+)/u.exec(byTool("dwarfdump").stdout)?.[1] ?? - load.uuid; + const dwarfdump = byTool("dwarfdump"); + const uuid = reconcileMachoUuid( + load.commands, + dwarfdump.stdout, + artifactPath, + selectedArchitecture.name, + ); const provenance = captures.map(toInvocation); // A thread-state command carries the entrypoint in architecture-specific // register state, so an absent decoded offset means unknown, not absent. @@ -222,6 +228,7 @@ const normalizeMacho = ( ] : []), ...additionalLimitations, + ...uuid.limitations, ...(threadEntrypoint ? [threadEntrypointLimitation] : []), ...(imageBase === null && /^\s*offset\s+symbol\s*$/mu.test(sliceOutput(byTool("dyld_info", 1))) @@ -237,7 +244,7 @@ const normalizeMacho = ( word_size: parseWordSize(byTool("file").stdout), file_type: load.fileType, flags: load.flags, - uuid: uuid ?? null, + uuid: uuid.value, entrypoints: covered( load.entrypoints, !threadEntrypoint, diff --git a/src/native/parsers/machoUuid.ts b/src/native/parsers/machoUuid.ts new file mode 100644 index 000000000..a555d119d --- /dev/null +++ b/src/native/parsers/machoUuid.ts @@ -0,0 +1,212 @@ +import type { parseOtoolLoadCommands } from "./otool.js"; + +const MACHO_UUID = /^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/iu; + +type UuidObservation = + | { readonly kind: "absent" } + | { readonly kind: "valid"; readonly value: string } + | { readonly kind: "invalid" | "conflict"; readonly reason: string }; + +/** Reconcile the selected slice's UUID observations from otool and dwarfdump. */ +export const reconcileMachoUuid = ( + commands: ReturnType["commands"], + dwarfdumpOutput: string, + artifactPath: string, + selectedArchitecture: string | null, +): { + readonly value: string | null; + readonly limitations: readonly string[]; +} => + reconcileObservations( + loadCommandUuid(commands), + parseDwarfdumpUuid(dwarfdumpOutput, artifactPath, selectedArchitecture), + ); + +const parseDwarfdumpUuid = ( + output: string, + artifactPath: string, + selectedArchitecture: string | null, +): UuidObservation => { + const parsed = parseDwarfdumpRows(output, artifactPath); + return parsed.kind === "invalid" + ? parsed + : selectDwarfdumpRow(parsed.rows, selectedArchitecture); +}; + +interface DwarfdumpUuidRow { + readonly value: string; + readonly architecture: string; +} + +type DwarfdumpRows = + | { readonly kind: "rows"; readonly rows: readonly DwarfdumpUuidRow[] } + | { readonly kind: "invalid"; readonly reason: string }; + +const parseDwarfdumpRows = ( + output: string, + artifactPath: string, +): DwarfdumpRows => { + if (output.trim().length === 0) return { kind: "rows", rows: [] }; + + // Frame the documented row header, then consume the exact operand path. + // Paths may contain newlines and text that resembles another UUID row. + const header = /UUID:[ \t]*([^\s]+)[ \t]+\(([^)\r\n]+)\) /uy; + const rows: DwarfdumpUuidRow[] = []; + let offset = 0; + while (offset < output.length) { + if (output.startsWith("\r\n", offset)) { + offset += 2; + continue; + } + if (output[offset] === "\n") { + offset += 1; + continue; + } + header.lastIndex = offset; + const match = header.exec(output); + if (match === null) + return { + kind: "invalid", + reason: "dwarfdump --uuid output contains an unrecognized row", + }; + const value = match[1] ?? ""; + const architecture = match[2] ?? ""; + offset = header.lastIndex; + if (!output.startsWith(artifactPath, offset)) + return { + kind: "invalid", + reason: `dwarfdump --uuid row does not match the selected artifact path (UUID ${JSON.stringify(value)})`, + }; + offset += artifactPath.length; + if (offset < output.length && output.startsWith("\r\n", offset)) + offset += 2; + else if (output[offset] === "\n") offset += 1; + else if (offset !== output.length) + return { + kind: "invalid", + reason: `dwarfdump --uuid returned malformed UUID row ${JSON.stringify(value)}`, + }; + rows.push({ value, architecture }); + } + + return { kind: "rows", rows }; +}; + +const selectDwarfdumpRow = ( + rows: readonly DwarfdumpUuidRow[], + selectedArchitecture: string | null, +): UuidObservation => { + if (rows.length === 0) return { kind: "absent" }; + const selectedRows = + selectedArchitecture === null + ? rows + : rows.filter( + ({ architecture }) => architecture === selectedArchitecture, + ); + const validRows = selectedRows.filter(({ value }) => MACHO_UUID.test(value)); + const distinctValid = new Set( + validRows.map(({ value }) => value.toLowerCase()), + ); + if (distinctValid.size > 1) + return { + kind: "conflict", + reason: `dwarfdump --uuid returned conflicting UUIDs for selected architecture ${selectedArchitecture ?? "unknown"}`, + }; + if (selectedRows.length !== 1) + return { + kind: "invalid", + reason: + selectedRows.length > 1 + ? `dwarfdump --uuid returned multiple rows for selected architecture ${selectedArchitecture}` + : `dwarfdump --uuid returned no row for selected architecture ${selectedArchitecture}`, + }; + const [row] = selectedRows; + if (row === undefined) return { kind: "absent" }; + if (!MACHO_UUID.test(row.value)) + return { + kind: "invalid", + reason: `dwarfdump --uuid returned malformed UUID ${JSON.stringify(row.value)}`, + }; + return { kind: "valid", value: row.value }; +}; + +const loadCommandUuid = ( + commands: ReturnType["commands"], +): UuidObservation => { + const loadCommands = commands.filter(({ kind }) => kind === "LC_UUID"); + if (loadCommands.length === 0) return { kind: "absent" }; + if (loadCommands.length > 1) { + const observed = loadCommands + .map(({ fields }) => fields.uuid) + .filter( + (value): value is string => + typeof value === "string" && MACHO_UUID.test(value), + ); + const distinct = new Set(observed.map((value) => value.toLowerCase())); + return { + kind: distinct.size > 1 ? "conflict" : "invalid", + reason: + distinct.size > 1 + ? `otool returned conflicting LC_UUID values ${observed.map((value) => JSON.stringify(value)).join(" and ")}` + : `otool returned ${String(loadCommands.length)} LC_UUID commands`, + }; + } + const value = loadCommands[0]?.fields.uuid; + return typeof value === "string" && MACHO_UUID.test(value) + ? { kind: "valid", value } + : { + kind: "invalid", + reason: `otool LC_UUID contains malformed UUID ${JSON.stringify(value ?? null)}`, + }; +}; + +const reconcileObservations = ( + loadUuid: UuidObservation, + dwarfdump: UuidObservation, +): { + readonly value: string | null; + readonly limitations: readonly string[]; +} => { + if (dwarfdump.kind === "valid" && loadUuid.kind === "valid") { + if (dwarfdump.value.toLowerCase() === loadUuid.value.toLowerCase()) + return { value: dwarfdump.value, limitations: [] }; + return { + value: null, + limitations: [ + `dwarfdump --uuid (${dwarfdump.value}) conflicts with otool LC_UUID (${loadUuid.value}); the image UUID is unknown.`, + ], + }; + } + if (dwarfdump.kind === "valid" && loadUuid.kind === "conflict") + return { value: null, limitations: [loadUuid.reason] }; + if (loadUuid.kind === "valid" && dwarfdump.kind === "conflict") + return { value: null, limitations: [dwarfdump.reason] }; + if (dwarfdump.kind === "valid") + return { + value: dwarfdump.value, + limitations: + loadUuid.kind === "invalid" + ? [`${loadUuid.reason}; using the unambiguous dwarfdump UUID.`] + : [], + }; + if (loadUuid.kind === "valid") + return { + value: loadUuid.value, + limitations: + dwarfdump.kind === "invalid" + ? [`${dwarfdump.reason}; using the unambiguous otool LC_UUID.`] + : [], + }; + + return { + value: null, + limitations: [ + ...(dwarfdump.kind === "invalid" || dwarfdump.kind === "conflict" + ? [dwarfdump.reason] + : []), + ...(loadUuid.kind === "invalid" || loadUuid.kind === "conflict" + ? [loadUuid.reason] + : []), + ], + }; +}; diff --git a/src/wasm/WabtOutput.test.ts b/src/wasm/WabtOutput.test.ts index 655dd5dab..8c58fc475 100644 --- a/src/wasm/WabtOutput.test.ts +++ b/src/wasm/WabtOutput.test.ts @@ -138,6 +138,44 @@ it("accepts an unpadded DataCount row and still rejects malformed output and bad ), ).toThrow(/header/u); }); +it("bounds section header bytes while accepting a five-byte size LEB", () => { + const paddedCustomDump = [ + "", + "module.wasm:\tfile format wasm 0x1", + "", + "Sections:", + "", + ' Custom start=0x0000000e end=0x0000000f (size=0x00000001) ""', + "", + "Section Details:", + "", + "Custom:", + ' - name: ""', + "", + ].join("\n"); + expect(parseWabtOutput(paddedCustomDump, 15, [""]).sections).toMatchObject([ + { kind: "Custom", start: 14, end: 15, bytes: 1 }, + ]); + + for (const gap of [0, 1, 7]) { + const start = 11 + gap; + const malformed = [ + "", + "module.wasm:\tfile format wasm 0x1", + "", + "Sections:", + "", + " Type start=0x0000000a end=0x0000000b (size=0x00000001) count: 0", + ` Custom start=0x${start.toString(16).padStart(8, "0")} end=0x${(start + 1).toString(16).padStart(8, "0")} (size=0x00000001) "\"`, + "", + "Section Details:", + "", + ].join("\n"); + expect(() => parseWabtOutput(malformed, start + 1, [""])).toThrow( + /ranges/u, + ); + } +}); it.each([ { displayed: [], decoded: ["named"] }, { displayed: ["named"], decoded: [] }, diff --git a/src/wasm/WabtOutput.ts b/src/wasm/WabtOutput.ts index 23883510d..db5dd610a 100644 --- a/src/wasm/WabtOutput.ts +++ b/src/wasm/WabtOutput.ts @@ -49,11 +49,12 @@ export const parseWabtOutput = ( bytes: Number.parseInt(match[4] ?? "", 16), description, }; + const sectionHeaderBytes = section.start - (sections.at(-1)?.end ?? 8); if ( section.end > artifactBytes || section.end - section.start !== section.bytes || - section.start < 8 || - section.start < (sections.at(-1)?.end ?? 8) + sectionHeaderBytes < 2 || + sectionHeaderBytes > 6 ) throw new Error("WABT section ranges do not match selected artifact."); sections.push(section); diff --git a/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts b/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts index 0fd9e6f17..006b13003 100644 --- a/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts +++ b/tests/boundary/providers/native/nativeSelectedArchitecture.test.ts @@ -15,7 +15,7 @@ it("does not attribute the first universal slice's UUID and segments to the sele const universal = new NativeFixtureRunner({ "otool:-h": `${singleSlice}\n${singleSlice}`, dwarfdump: - "UUID: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (x86_64) fixture\nUUID: 01234567-89AB-CDEF-0123-456789ABCDEF (arm64) fixture\n", + "UUID: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (x86_64) /owned/universal\nUUID: 01234567-89AB-CDEF-0123-456789ABCDEF (arm64) /owned/universal\n", }); const client = new NativeMacOSProvider( {}, @@ -73,7 +73,7 @@ it.each([ .join("\n"); const fixtures = new NativeFixtureRunner({ lipo, - dwarfdump: `UUID: 01234567-89AB-CDEF-0123-456789ABCDEF (${dyldArchitecture}) fixture\n`, + dwarfdump: `UUID: 01234567-89AB-CDEF-0123-456789ABCDEF (${dyldArchitecture}) /owned/universal\n`, }); const client = new NativeMacOSProvider( {}, diff --git a/tests/fixtures/nativeCommands.ts b/tests/fixtures/nativeCommands.ts index 5945d79ad..34af395f9 100644 --- a/tests/fixtures/nativeCommands.ts +++ b/tests/fixtures/nativeCommands.ts @@ -38,7 +38,7 @@ const outputFor = async ( arguments_[0] === "-imports" ? "dyld-imports.txt" : "dyld-exports.txt", ); if (tool === "dwarfdump") - return "UUID: 01234567-89AB-CDEF-0123-456789ABCDEF (arm64) fixture\n"; + return `UUID: 01234567-89AB-CDEF-0123-456789ABCDEF (arm64) ${arguments_.at(-1)}\n`; if (tool === "file") return arguments_.at(-1)?.endsWith(".plist") === true ? "XML 1.0 document text\n" From 48c352b6bfa34c820a530272cd36600158c37b1e Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 12:36:20 +0800 Subject: [PATCH 12/44] fix(cli): reuse firmware and web module input constraints Derive extraction limits and web module fields from the shared contracts. Reject empty or NUL-containing local paths before CLI path resolution, preserve firmware relative-path handling, and apply the advertised extraction defaults. Validate advertised JSON Schemas with Ajv and check the registered parser defaults; prune redundant schema-shape and description assertions. --- src/cli/firmwareCommands.ts | 54 +++++--------- src/cli/webModuleCommands.ts | 29 ++++---- .../cli/cliInputSchemaRequired.test.ts | 70 +++++++++++++++++++ 3 files changed, 102 insertions(+), 51 deletions(-) diff --git a/src/cli/firmwareCommands.ts b/src/cli/firmwareCommands.ts index 9c59711e2..3921d8521 100644 --- a/src/cli/firmwareCommands.ts +++ b/src/cli/firmwareCommands.ts @@ -4,6 +4,8 @@ import { FirmwareAnalysisService } from "../application/firmware/FirmwareAnalysi import { createFirmwareAnalysisProvider } from "../composition/firmware.js"; import { CLI_COMMANDS } from "../cliCommandNames.js"; import { logCliCommand } from "../cliLogging.js"; +import { firmwareInputSchemas } from "../domain/firmware/firmwareAnalysis.js"; +import { localPathStringSchema } from "../domain/localPath.js"; import { projectAnalysisError } from "../domain/analysisErrorProjection.js"; import type { FirmwareOperation } from "../domain/firmware/firmwareAnalysis.js"; import type { Logger } from "pino"; @@ -19,6 +21,8 @@ export const registerFirmwareCommands = ( const service = new FirmwareAnalysisService( createFirmwareAnalysisProvider(environment), ); + const extractInput = firmwareInputSchemas.extract_firmware.shape; + const range = extractInput.range.unwrap().shape; const execute = ( name: string, operation: FirmwareOperation, @@ -34,7 +38,9 @@ export const registerFirmwareCommands = ( } }), ); - const path = z.string().describe("Local firmware path; never executed"); + const path = localPathStringSchema.describe( + "Local firmware path; never executed", + ); cli.command(CLI_COMMANDS.inspectFirmwareRegions, { description: "Inspect firmware signature candidates without extracting them", @@ -52,38 +58,20 @@ export const registerFirmwareCommands = ( "Extract selected firmware bytes and return verified files and provenance", args: z.object({ path, - outputDirectory: z - .string() - .describe("Absolute absent output directory; parent must exist"), + outputDirectory: localPathStringSchema.describe( + "Absent output directory; parent must exist", + ), }), options: z.object({ - offset: z - .number() - .int() - .nonnegative() + offset: range.offset .optional() .describe("Selected byte offset; requires length"), - length: z - .number() - .int() - .positive() + length: range.length .optional() .describe("Selected byte length; requires offset"), - maxDepth: z - .number() - .int() - .optional() - .describe("Extraction depth, 1–10; default 3"), - maxOutputBytes: z - .number() - .int() - .optional() - .describe("Staging byte budget; default 256 MiB, maximum 512 MiB"), - maxOutputFiles: z - .number() - .int() - .optional() - .describe("Staging entry budget; default 10000"), + maxDepth: extractInput.max_depth, + maxOutputBytes: extractInput.max_output_bytes, + maxOutputFiles: extractInput.max_output_files, }), run: ({ args, options }) => execute(CLI_COMMANDS.extractFirmware, "extract_firmware", { @@ -92,15 +80,9 @@ export const registerFirmwareCommands = ( ...(options.offset === undefined && options.length === undefined ? {} : { range: { offset: options.offset, length: options.length } }), - ...(options.maxDepth === undefined - ? {} - : { max_depth: options.maxDepth }), - ...(options.maxOutputBytes === undefined - ? {} - : { max_output_bytes: options.maxOutputBytes }), - ...(options.maxOutputFiles === undefined - ? {} - : { max_output_files: options.maxOutputFiles }), + max_depth: options.maxDepth, + max_output_bytes: options.maxOutputBytes, + max_output_files: options.maxOutputFiles, }), }); }; diff --git a/src/cli/webModuleCommands.ts b/src/cli/webModuleCommands.ts index 3297f3454..b14f23da5 100644 --- a/src/cli/webModuleCommands.ts +++ b/src/cli/webModuleCommands.ts @@ -3,10 +3,14 @@ import { createWebModuleTraceService } from "../composition/webModules.js"; import { CLI_COMMANDS } from "../cliCommandNames.js"; import { logCliCommand } from "../cliLogging.js"; import { projectAnalysisError } from "../domain/analysisErrorProjection.js"; +import { webModuleTraceInputSchema } from "../domain/webModuleTrace.js"; import type { Logger } from "pino"; import type { CliInstance } from "./types.js"; import { withCommandCancellation } from "./commandCancellation.js"; +const importMapInputSchema = + webModuleTraceInputSchema.shape.import_map.unwrap(); + /** Expose the same selected-context module trace through the CLI. */ export const registerWebModuleCommands = ( cli: CliInstance, @@ -18,9 +22,7 @@ export const registerWebModuleCommands = ( description: "Trace one captured script's native imports to URLs and captured source candidates", args: z.object({ - manifestPath: z - .string() - .describe("Absolute export_web_scripts manifest path"), + manifestPath: webModuleTraceInputSchema.shape.manifest_path, scriptIndex: z.coerce .number() .int() @@ -28,18 +30,15 @@ export const registerWebModuleCommands = ( .describe("Zero-based manifest script index"), }), options: z.object({ - importerUrl: z - .string() - .optional() - .describe("Explicit HTTP(S) importer URL"), - importMapPath: z - .string() - .optional() - .describe("Absolute local import-map JSON"), - importMapBaseUrl: z - .string() - .optional() - .describe("HTTP(S) import-map base URL"), + importerUrl: webModuleTraceInputSchema.shape.importer_url, + importMapPath: importMapInputSchema.shape.path + .describe( + "Absolute local import-map JSON path; requires --import-map-base-url", + ) + .optional(), + importMapBaseUrl: importMapInputSchema.shape.base_url + .describe("HTTP(S) import-map base URL; requires --import-map-path") + .optional(), }), run: ({ args, options }) => withCommandCancellation(async (signal) => { diff --git a/tests/boundary/cli/cliInputSchemaRequired.test.ts b/tests/boundary/cli/cliInputSchemaRequired.test.ts index 023b7dc4a..82f72af10 100644 --- a/tests/boundary/cli/cliInputSchemaRequired.test.ts +++ b/tests/boundary/cli/cliInputSchemaRequired.test.ts @@ -131,3 +131,73 @@ describe("CLI advertised input schemas", () => { ); }); }); + +describe("firmware CLI advertised input schema", () => { + it("keeps limits and defaults from its shared input contract", async () => { + const cli = createCli({}); + const advertised = await advertisedSchema(cli, "extract-firmware"); + const ajv = new Ajv2020({ strict: false }); + const args = ajv.compile(advertised.args ?? {}); + const options = ajv.compile(advertised.options ?? {}); + + expect(args({ path: "firmware.bin", outputDirectory: "output" })).toBe( + true, + ); + expect(args({ path: "", outputDirectory: "output" })).toBe(false); + expect(args({ path: "firmware.bin", outputDirectory: "" })).toBe(false); + expect(options({})).toBe(true); + expect(options({ maxDepth: 0 })).toBe(false); + expect(options({ maxDepth: 11 })).toBe(false); + expect(options({ maxOutputBytes: 0 })).toBe(false); + expect(options({ maxOutputBytes: 512 * 1024 * 1024 + 1 })).toBe(false); + expect(options({ maxOutputFiles: 100_001 })).toBe(false); + expect(advertised.options?.properties?.["maxDepth"]).toMatchObject({ + default: 3, + }); + expect(advertised.options?.properties?.["maxOutputBytes"]).toMatchObject({ + default: 256 * 1024 * 1024, + }); + expect(advertised.options?.properties?.["maxOutputFiles"]).toMatchObject({ + default: 10_000, + }); + + const maxOffset = Number.MAX_SAFE_INTEGER; + expect(options({ offset: maxOffset + 1 })).toBe(false); + expect(options({ length: maxOffset + 1 })).toBe(false); + + expect( + parserSchema(cli, "extract-firmware", "options")?.parse({}), + ).toMatchObject({ + maxDepth: 3, + maxOutputBytes: 256 * 1024 * 1024, + maxOutputFiles: 10_000, + }); + }); +}); + +describe("web module CLI advertised input schema", () => { + it("advertises the shared path and URL constraints", async () => { + const cli = createCli({}); + const advertised = await advertisedSchema(cli, "trace-web-module-imports"); + const ajv = new Ajv2020({ strict: false }); + const args = ajv.compile(advertised.args ?? {}); + const options = ajv.compile(advertised.options ?? {}); + + expect( + args({ manifestPath: resolve("manifest.json"), scriptIndex: 0 }), + ).toBe(true); + expect(args({ manifestPath: "", scriptIndex: 0 })).toBe(false); + expect(args({ manifestPath: "manifest\u0000.json", scriptIndex: 0 })).toBe( + false, + ); + expect(args({ manifestPath: "./manifest.json", scriptIndex: -1 })).toBe( + false, + ); + expect(options({})).toBe(true); + expect(options({ importerUrl: "" })).toBe(false); + expect(options({ importMapPath: "" })).toBe(false); + expect(options({ importMapPath: "map\u0000.json" })).toBe(false); + expect(options({ importMapBaseUrl: "" })).toBe(false); + }); +}); +import { resolve } from "node:path"; From e55ef7213515ba204c3d88a4487b4ee6a2773b06 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 12:36:39 +0800 Subject: [PATCH 13/44] fix(runtime)!: preserve unknown debugger attachment state Keep omitted discovery attachment state as null through Node, browser, Electron, and reconciliation evidence. Report the uncertainty while retaining Node observation unless discovery explicitly marks the target attached. Reject worker TargetInfo records missing the required boolean with partial coverage. Validate omitted and explicit states through provider, CLI, and MCP boundaries and real Node 24 Inspector workflows. Consolidate Electron regression coverage into the existing list-and-inspect workflow. BREAKING CHANGE: attached fields in JavaScript runtime, browser, and Electron target discovery and inspection results may be null when discovery does not report attachment state. --- docs/javascript-runtime-observation.md | 4 +- .../verify/inspector/runtime-observation.mjs | 21 ++++++- src/browser/CdpBrowserProvider.ts | 5 ++ src/browser/CdpElectronInspection.ts | 5 ++ src/browser/CdpElectronProvider.ts | 5 ++ src/browser/CdpElectronWorkers.ts | 6 +- src/browser/CdpEndpoint.ts | 6 +- src/browser/CdpPageCapture.ts | 5 ++ src/browser/CdpPageCaptureWorkers.ts | 6 +- src/domain/browserObservationSchemas.ts | 7 ++- src/domain/javascript/electronObservation.ts | 7 ++- .../javascriptRuntimeObservation.ts | 7 ++- ...riptRuntimeReconciliationCaptureParsing.ts | 6 +- src/inspector/V8InspectorCaptureProjection.ts | 11 +++- src/inspector/V8InspectorEndpoint.ts | 6 +- src/inspector/V8InspectorProvider.ts | 6 +- ...cdpBrowserProvider.targetInventory.test.ts | 10 ++- .../browser/cdpElectronProvider.test.ts | 13 ++++ .../cdpWorkerAttachmentProtocol.test.ts | 46 ++++++++++++++ .../javascriptRuntimeObservation.test.ts | 62 +++++++++++++++++++ tests/fixtures/fakeCdpBrowserTargets.ts | 4 +- tests/fixtures/fakeCdpBrowserTypes.ts | 2 + tests/fixtures/inspector/fakeV8Inspector.ts | 39 +++++++----- 23 files changed, 249 insertions(+), 40 deletions(-) create mode 100644 tests/boundary/browser/cdpWorkerAttachmentProtocol.test.ts diff --git a/docs/javascript-runtime-observation.md b/docs/javascript-runtime-observation.md index ecfed708f..9a0e90b1f 100644 --- a/docs/javascript-runtime-observation.md +++ b/docs/javascript-runtime-observation.md @@ -36,7 +36,9 @@ application starts, and REA never resumes it or sends `Runtime.runIfWaitingForDebugger`. Resume a paused target with a separate caller-owned debugger before requesting application runtime observations. -The caller supplies the literal-loopback HTTP endpoint directly. Selecting an endpoint exposes all targets it serves and their local script locations or renderer origins. A target must match the exact requested target ID and expose a same-port WebSocket reported by that endpoint. Targets already marked attached are rejected rather than displacing another debugger. Local paths are canonicalized after symlink resolution. +The caller supplies the literal-loopback HTTP endpoint directly. Selecting an endpoint exposes all targets it serves and their local script locations or renderer origins. A target must match the exact requested target ID and expose a same-port WebSocket reported by that endpoint. Targets explicitly marked attached are rejected rather than displacing another debugger. Node's `/json/list` omits attachment state, so REA preserves it as `null` (unknown), reports that limitation, and permits observation unless the endpoint explicitly reports `attached: true`. Local paths are canonicalized after symlink resolution. + +The `attached` field in JavaScript runtime and browser target results is nullable: `true` and `false` are reported only when discovery supplied a boolean; `null` means the endpoint omitted or could not report the state. CDP `TargetInfo` worker records require an `attached` boolean; REA excludes a worker record with a missing or malformed value as an invalid protocol value. `list_javascript_runtime_targets` returns every available target in one inline array. diff --git a/scripts/verify/inspector/runtime-observation.mjs b/scripts/verify/inspector/runtime-observation.mjs index 70224312d..6485ed3cb 100644 --- a/scripts/verify/inspector/runtime-observation.mjs +++ b/scripts/verify/inspector/runtime-observation.mjs @@ -77,6 +77,8 @@ async function verifyTarget(child, targetPath, name) { assert.equal(discovery.length, 1); const raw = discovery[0]; assert.equal(typeof raw.id, "string"); + const expectedAttached = + typeof raw.attached === "boolean" ? raw.attached : null; // Independent oracle: the fixture owns the pathname, and Node's discovery // serialization loses quotes/backslashes. Never decode underscores into it. const unresolved = process.platform === "win32" || /[_"\\]/u.test(targetPath); @@ -96,6 +98,7 @@ async function verifyTarget(child, targetPath, name) { const inventory = listed.normalized_result; assert.equal(inventory.targets.length, 1); assert.equal(inventory.targets[0].target_id, raw.id); + assert.equal(inventory.targets[0].attached, expectedAttached); assert.deepEqual(inventory.targets[0].location, expectedLocation); assert.equal(inventory.excluded.unsupported_location, 0); const mcpList = await runMcp("list_javascript_runtime_targets", { @@ -122,7 +125,13 @@ async function verifyTarget(child, targetPath, name) { observation_ms: 100, }); for (const result of [observed.normalized_result, mcpObservation]) - verifyObservation(result, raw.id, expectedLocation, targetPath); + verifyObservation( + result, + raw.id, + expectedLocation, + targetPath, + expectedAttached, + ); assert.deepEqual(mcpObservation.target, observed.normalized_result.target); process.stdout.write( `${JSON.stringify({ @@ -133,6 +142,7 @@ async function verifyTarget(child, targetPath, name) { target_id: raw.id, discovery_url: raw.url, target_location: expectedLocation, + attached: inventory.targets[0].attached, cli_scripts: observed.normalized_result.scripts.items.length, mcp_scripts: mcpObservation.scripts.items.length, listed_evidence_id: listed.evidence_id, @@ -141,9 +151,16 @@ async function verifyTarget(child, targetPath, name) { ); } -function verifyObservation(result, targetId, expectedLocation, targetPath) { +function verifyObservation( + result, + targetId, + expectedLocation, + targetPath, + expectedAttached, +) { assert.equal(result.target.target_id, targetId); assert.equal(result.target.runtime_kind, "node"); + assert.equal(result.target.attached, expectedAttached); assert.deepEqual(result.target.location, expectedLocation); assert.equal(result.capture.truncated, false); assert.ok(Array.isArray(result.directly_observed)); diff --git a/src/browser/CdpBrowserProvider.ts b/src/browser/CdpBrowserProvider.ts index 642373af5..f4d898a68 100644 --- a/src/browser/CdpBrowserProvider.ts +++ b/src/browser/CdpBrowserProvider.ts @@ -107,6 +107,11 @@ export class CdpBrowserProvider implements BrowserObservationPort { : [ `${String(selected.unconnectable)} otherwise allowed page target(s) lacked a validated direct CDP WebSocket and were excluded.`, ]), + ...(selected.allowed.some((target) => target.attached === null) + ? [ + "CDP discovery omitted attachment state for one or more targets; attached is reported as unknown.", + ] + : []), ], }), ); diff --git a/src/browser/CdpElectronInspection.ts b/src/browser/CdpElectronInspection.ts index 5aa9d95b8..e1eb616f9 100644 --- a/src/browser/CdpElectronInspection.ts +++ b/src/browser/CdpElectronInspection.ts @@ -57,6 +57,11 @@ export const inspectCdpElectronPage = async ( "Local file paths exposed by the selected CDP target are retained in the observation.", "REA does not evaluate renderer JavaScript, invoke Electron APIs, navigate, click, or close the page.", "Select include_script_sources to retain script contents.", + ...(context.target.attached === null + ? [ + "CDP discovery omitted the target attachment state; attached is reported as unknown.", + ] + : []), ], mainFrameId: undefined, navigationDuringCapture: false, diff --git a/src/browser/CdpElectronProvider.ts b/src/browser/CdpElectronProvider.ts index 8257d4974..9cf63a32d 100644 --- a/src/browser/CdpElectronProvider.ts +++ b/src/browser/CdpElectronProvider.ts @@ -91,6 +91,11 @@ export class CdpElectronProvider implements ElectronObservationPort { : [ `${String(unconnectable)} otherwise allowed page target(s) lacked a validated direct CDP WebSocket and were excluded.`, ]), + ...(allowed.some((target) => target.attached === null) + ? [ + "CDP discovery omitted attachment state for one or more targets; attached is reported as unknown.", + ] + : []), ], }), ); diff --git a/src/browser/CdpElectronWorkers.ts b/src/browser/CdpElectronWorkers.ts index b4e3d102f..aa254e6d5 100644 --- a/src/browser/CdpElectronWorkers.ts +++ b/src/browser/CdpElectronWorkers.ts @@ -61,11 +61,15 @@ export const captureElectronWorkers = async (input: { input.completeness.exclude("workers", "invalid_protocol_value"); continue; } + if (typeof target.attached !== "boolean") { + input.completeness.exclude("workers", "invalid_protocol_value"); + continue; + } workers.push({ target_id: targetId, type, file_path: path, - attached: target.attached === true, + attached: target.attached, opener_target_id: openerTargetId, parent_frame_id: parentFrameId, }); diff --git a/src/browser/CdpEndpoint.ts b/src/browser/CdpEndpoint.ts index 1d1b8c14b..1c9abfefa 100644 --- a/src/browser/CdpEndpoint.ts +++ b/src/browser/CdpEndpoint.ts @@ -23,7 +23,7 @@ const endpointTargetSchema = z.object({ type: z.string().min(1), title: z.string().default(""), url: z.string(), - attached: z.boolean().default(false), + attached: z.boolean().nullable().optional(), webSocketDebuggerUrl: z.string().min(1).optional(), }); const endpointTargetsSchema = z.array(endpointTargetSchema); @@ -46,7 +46,7 @@ export interface CdpEndpointTarget { readonly type: string; readonly title: string; readonly url: string; - readonly attached: boolean; + readonly attached: boolean | null; readonly webSocket?: CdpPageWebSocketEndpoint; } @@ -106,7 +106,7 @@ export const discoverCdpEndpoint = async ( type: target.type, title: sanitizeTargetTitle(target.title, target.url), url: target.url, - attached: target.attached, + attached: target.attached ?? null, ...targetWebSocket(endpoint, target, operation), })), }; diff --git a/src/browser/CdpPageCapture.ts b/src/browser/CdpPageCapture.ts index 2e3fa11af..4de472660 100644 --- a/src/browser/CdpPageCapture.ts +++ b/src/browser/CdpPageCapture.ts @@ -84,6 +84,11 @@ export const capturePage = async ( "Raw network headers, bodies, cookies, storage values, console objects, and WebSocket payloads are never retained; explicitly requested primitive console text is retained verbatim, while payload captures retain value-free shapes.", "Source maps are reported only as declarative URLs and are not fetched.", "URL-less scripts and console events without an allowed source URL are excluded because their origin cannot be proven.", + ...(context.target.attached === null + ? [ + "CDP discovery omitted the target attachment state; attached is reported as unknown.", + ] + : []), ], startedAt: new Date().toISOString(), }; diff --git a/src/browser/CdpPageCaptureWorkers.ts b/src/browser/CdpPageCaptureWorkers.ts index eb9c0501f..3a564c888 100644 --- a/src/browser/CdpPageCaptureWorkers.ts +++ b/src/browser/CdpPageCaptureWorkers.ts @@ -55,12 +55,16 @@ export const captureWorkers = async ( ); continue; } + if (typeof target.attached !== "boolean") { + completeness.exclude("workers", "invalid_protocol_value"); + continue; + } items.push({ target_id: cdpStringValue(target.targetId) ?? "", type, url: url.url, origin: url.origin, - attached: target.attached === true, + attached: target.attached, opener_target_id: cdpStringValue(target.openerId) ?? null, parent_frame_id: cdpStringValue(target.parentFrameId) ?? null, }); diff --git a/src/domain/browserObservationSchemas.ts b/src/domain/browserObservationSchemas.ts index bfa25117b..e79a90328 100644 --- a/src/domain/browserObservationSchemas.ts +++ b/src/domain/browserObservationSchemas.ts @@ -20,7 +20,12 @@ const browserTargetSchema = z.object({ title: z.string(), url: z.string(), origin: z.string(), - attached: z.boolean(), + attached: z + .boolean() + .nullable() + .describe( + "Discovery-reported debugger attachment state; null means unknown", + ), }); /** Complete policy-filtered browser target discovery result. */ diff --git a/src/domain/javascript/electronObservation.ts b/src/domain/javascript/electronObservation.ts index 339badd25..6258c90c3 100644 --- a/src/domain/javascript/electronObservation.ts +++ b/src/domain/javascript/electronObservation.ts @@ -43,7 +43,12 @@ const electronTargetSchema = z.object({ type: z.string(), title: z.string(), file_path: z.string(), - attached: z.boolean(), + attached: z + .boolean() + .nullable() + .describe( + "Discovery-reported debugger attachment state; null means unknown", + ), }); /** Complete local file target inventory from one Electron CDP endpoint. */ diff --git a/src/domain/javascript/javascriptRuntimeObservation.ts b/src/domain/javascript/javascriptRuntimeObservation.ts index 41a0c8e43..82efee240 100644 --- a/src/domain/javascript/javascriptRuntimeObservation.ts +++ b/src/domain/javascript/javascriptRuntimeObservation.ts @@ -89,7 +89,12 @@ export type JavaScriptRuntimeTargetLocation = z.infer< const javascriptRuntimeTargetSchema = z.strictObject({ target_id: z.string().min(1), protocol_type: z.string().min(1), - attached: z.boolean(), + attached: z + .boolean() + .nullable() + .describe( + "Discovery-reported debugger attachment state; null means unknown", + ), location: javascriptRuntimeTargetLocationSchema, }); diff --git a/src/domain/javascript/javascriptRuntimeReconciliationCaptureParsing.ts b/src/domain/javascript/javascriptRuntimeReconciliationCaptureParsing.ts index 7b609b9d9..baba3395d 100644 --- a/src/domain/javascript/javascriptRuntimeReconciliationCaptureParsing.ts +++ b/src/domain/javascript/javascriptRuntimeReconciliationCaptureParsing.ts @@ -44,21 +44,21 @@ interface NormalizedV8Inspection { readonly target_id: string; readonly type: string; readonly title: string; - readonly attached: boolean; + readonly attached: boolean | null; readonly file_path: string; } | { readonly target_id: string; readonly type: string; readonly title: string; - readonly attached: boolean; + readonly attached: boolean | null; readonly url: string; } | { readonly target_id: string; readonly type: string; readonly title: string; - readonly attached: boolean; + readonly attached: boolean | null; readonly unresolved_location: Extract< JavaScriptRuntimeObservation["target"]["location"], { kind: "unresolved" } diff --git a/src/inspector/V8InspectorCaptureProjection.ts b/src/inspector/V8InspectorCaptureProjection.ts index c1cf384b7..ec2c58e78 100644 --- a/src/inspector/V8InspectorCaptureProjection.ts +++ b/src/inspector/V8InspectorCaptureProjection.ts @@ -26,12 +26,19 @@ export const createInspectorExclusionCounts = (): Record< }); /** Stable safety and protocol limitations shared by target-list Evidence. */ -export const describeInspectorTargetLimitations = (): string[] => [ +export const describeInspectorTargetLimitations = ( + attachmentStateUnknown = false, +): string[] => [ "REA attaches to an already-running exact target and never launches, resumes, evaluates, pauses, or mutates it.", "Only Runtime.enable and Debugger.enable are sent; source text, object values, EventEmitter activity, and Electron IPC are not inspected.", "The selected endpoint and target ID authorize observation; discovery file locations can remain unresolved and do not prove filesystem identity.", "Node discovery reports a best-effort pathname rather than an encoded file URL; lossy Windows paths and ambiguous underscores are preserved without guessing a file path.", "Every target exposed by the selected Inspector endpoint is eligible for observation; target IDs and locations are not authenticated as operating-system process identity.", + ...(attachmentStateUnknown + ? [ + "Inspector discovery did not report the target's current debugger attachment state; it is retained as unknown, and observation rejects only targets explicitly marked attached.", + ] + : []), "No runtime graph depth is traversed because passive Inspector events do not establish require/import caller edges.", ]; @@ -215,7 +222,7 @@ export const finalizeInspectorCapture = async ({ "A bounded observation window cannot establish that an unobserved script or behavior never occurs.", "The declared Node/Electron process role is not authenticated by the Inspector protocol.", ], - limitations: describeInspectorTargetLimitations(), + limitations: describeInspectorTargetLimitations(target.attached === null), }; }; diff --git a/src/inspector/V8InspectorEndpoint.ts b/src/inspector/V8InspectorEndpoint.ts index fdb172591..c6718baf2 100644 --- a/src/inspector/V8InspectorEndpoint.ts +++ b/src/inspector/V8InspectorEndpoint.ts @@ -21,7 +21,7 @@ const targetSchema = z id: z.string().min(1), type: z.string().min(1), url: z.string(), - attached: z.boolean().default(false), + attached: z.boolean().nullable().optional(), webSocketDebuggerUrl: z.string().min(1), }) .passthrough(); @@ -31,7 +31,7 @@ export interface V8InspectorTarget { readonly id: string; readonly type: string; readonly url: string; - readonly attached: boolean; + readonly attached: boolean | null; readonly webSocketUrl: string; } @@ -62,7 +62,7 @@ export const discoverV8Inspector = async ( id: target.id, type: target.type, url: target.url, - attached: target.attached, + attached: target.attached ?? null, webSocketUrl: validatedInspectorWebSocket( endpoint, target.id, diff --git a/src/inspector/V8InspectorProvider.ts b/src/inspector/V8InspectorProvider.ts index 33a011651..06a413871 100644 --- a/src/inspector/V8InspectorProvider.ts +++ b/src/inspector/V8InspectorProvider.ts @@ -117,7 +117,9 @@ export class V8InspectorProvider implements JavaScriptRuntimeObservationPort { runtime: discovery.runtime, targets: allowed.map(projectTarget), excluded: { ...excluded, unconnectable: 0 }, - limitations: describeInspectorTargetLimitations(), + limitations: describeInspectorTargetLimitations( + allowed.some((target) => target.attached === null), + ), }), ); } catch (cause: unknown) { @@ -357,7 +359,7 @@ const authorizedTarget = async ( product, }); if ( - target.attached || + target.attached === true || !decision.allowed || decision.location.kind === "builtin" ) diff --git a/tests/boundary/browser/cdpBrowserProvider.targetInventory.test.ts b/tests/boundary/browser/cdpBrowserProvider.targetInventory.test.ts index cae84925e..81fe60759 100644 --- a/tests/boundary/browser/cdpBrowserProvider.targetInventory.test.ts +++ b/tests/boundary/browser/cdpBrowserProvider.targetInventory.test.ts @@ -14,7 +14,7 @@ describe("CDP target inventory", () => { type: "page", title: `Page ${String(index)}`, url: `https://allowed.example/page/${String(index)}`, - attached: false, + ...(index === 0 ? {} : { attached: index === 1 ? false : true }), webSocketDebuggerUrl: `ws://127.0.0.1:${String(port)}/devtools/page/${id}`, }; }); @@ -60,6 +60,14 @@ describe("CDP target inventory", () => { expect(result.value.targets).toHaveLength(targets.length); expect(result.value.targets[0]?.target_id).toBe("target-0000"); expect(result.value.targets.at(-1)?.target_id).toBe("target-1100"); + expect( + result.value.targets.slice(0, 3).map(({ attached }) => attached), + ).toEqual([null, false, true]); + expect( + result.value.limitations.some((item) => + item.includes("attachment state"), + ), + ).toBe(true); } finally { if (server.listening) await new Promise((resolve, reject) => { diff --git a/tests/boundary/browser/cdpElectronProvider.test.ts b/tests/boundary/browser/cdpElectronProvider.test.ts index 8af69a4da..f11584610 100644 --- a/tests/boundary/browser/cdpElectronProvider.test.ts +++ b/tests/boundary/browser/cdpElectronProvider.test.ts @@ -83,6 +83,7 @@ describe("CdpElectronProvider target selection", () => { const browser = await startFakeCdpBrowser({ electronFileUrl: pathToFileURL(index).href, duplicateElectronInventory: true, + omitElectronTargetAttachmentState: true, }); browsers.push(browser); const provider = new CdpElectronProvider(); @@ -96,8 +97,14 @@ describe("CdpElectronProvider target selection", () => { expect.objectContaining({ target_id: "electron-page", file_path: index, + attached: null, }), ]); + expect( + listed.value.limitations.some((item) => + item.includes("attachment state"), + ), + ).toBe(true); expect(listed.value.excluded).toEqual({ unsupported_url: 3, non_page: 2, @@ -112,6 +119,12 @@ describe("CdpElectronProvider target selection", () => { ); if (!inspected.ok) throw inspected.error; expect(inspected.value.target.file_path).toBe(index); + expect(inspected.value.target.attached).toBeNull(); + expect( + inspected.value.limitations.some((item) => + item.includes("attachment state"), + ), + ).toBe(true); expect(inspected.value.frames).toEqual([ expect.objectContaining({ file_path: index }), ]); diff --git a/tests/boundary/browser/cdpWorkerAttachmentProtocol.test.ts b/tests/boundary/browser/cdpWorkerAttachmentProtocol.test.ts new file mode 100644 index 000000000..82f082349 --- /dev/null +++ b/tests/boundary/browser/cdpWorkerAttachmentProtocol.test.ts @@ -0,0 +1,46 @@ +import { expect, it } from "vitest"; + +import { CdpBrowserProvider } from "../../../src/browser/CdpBrowserProvider.js"; +import { inspectWebPageInputSchema } from "../../../src/domain/browserObservation.js"; +import { startFakeCdpBrowser } from "../../fixtures/fakeCdpBrowser.js"; + +it.each(["omitted", "null"] as const)( + "excludes TargetInfo workers with %s required attached state", + async (attachmentState) => { + const browser = await startFakeCdpBrowser({ + commandResult: (command, origin) => { + if (command.method !== "Target.getTargets") return undefined; + return { + targetInfos: [ + { + targetId: "worker-1", + type: "service_worker", + url: `${origin}/worker.js`, + openerId: "allowed-page", + ...(attachmentState === "null" ? { attached: null } : {}), + }, + ], + }; + }, + }); + try { + const result = await new CdpBrowserProvider().inspectPage( + inspectWebPageInputSchema.parse({ + cdp_endpoint: browser.endpoint, + allowed_origins: [browser.allowedOrigin], + target_id: "allowed-page", + observation_ms: 0, + }), + ); + if (!result.ok) throw result.error; + expect(result.value.workers).toEqual([]); + expect(result.value.completeness.excluded).toContainEqual({ + section: "workers", + reason: "invalid_protocol_value", + count: 1, + }); + } finally { + await browser.close(); + } + }, +); diff --git a/tests/boundary/inspector/javascriptRuntimeObservation.test.ts b/tests/boundary/inspector/javascriptRuntimeObservation.test.ts index 4dd561240..293c9aa1f 100644 --- a/tests/boundary/inspector/javascriptRuntimeObservation.test.ts +++ b/tests/boundary/inspector/javascriptRuntimeObservation.test.ts @@ -235,6 +235,68 @@ test("returns every target exposed by the selected Inspector endpoint inline", a } }); +test.each([ + { label: "omitted", attached: undefined, expected: null }, + { label: "explicitly detached", attached: false, expected: false }, +] as const)( + "preserves $label V8 attachment state through listing and observation", + async ({ attached, expected }) => { + const fixture = await runtimeFixture(); + const fake = await startFakeV8Inspector({ + targetUrl: pathToFileURL(fixture.entry).href, + ...(attached === undefined ? {} : { attached }), + }); + try { + const provider = new V8InspectorProvider(); + const listed = await provider.listTargets({ + inspector_endpoint: fake.endpoint, + }); + if (!listed.ok) throw listed.error; + expect(listed.value.targets[0]?.attached).toBe(expected); + if (expected === null) + expect( + listed.value.limitations.some((item) => + item.includes("attachment state"), + ), + ).toBe(true); + + const observed = await provider.observe( + observeInput(fake.endpoint, fake.targetId, "node"), + ); + if (!observed.ok) throw observed.error; + expect(observed.value.target.attached).toBe(expected); + if (expected === null) + expect( + observed.value.limitations.some((item) => + item.includes("attachment state"), + ), + ).toBe(true); + } finally { + await fake.close(); + } + }, +); + +test("rejects a V8 target explicitly marked attached", async () => { + const fixture = await runtimeFixture(); + const fake = await startFakeV8Inspector({ + targetUrl: pathToFileURL(fixture.entry).href, + attached: true, + }); + try { + const result = await new V8InspectorProvider().observe( + observeInput(fake.endpoint, fake.targetId, "node"), + ); + expect(result).toMatchObject({ + ok: false, + error: { reason: "target_not_allowed" }, + }); + expect(fake.commands).toEqual([]); + } finally { + await fake.close(); + } +}); + test("includes targets outside the old caller root filter", async () => { const fixture = await runtimeFixture(); const outside = await temporaryFile("outside.js"); diff --git a/tests/fixtures/fakeCdpBrowserTargets.ts b/tests/fixtures/fakeCdpBrowserTargets.ts index e9725a572..dd0323fdf 100644 --- a/tests/fixtures/fakeCdpBrowserTargets.ts +++ b/tests/fixtures/fakeCdpBrowserTargets.ts @@ -101,7 +101,9 @@ export const targets = ( type: "page", title: "Electron application", url: options.electronFileUrl, - attached: false, + ...(options.omitElectronTargetAttachmentState === true + ? {} + : { attached: false }), ...(options.omitTargetWebSocket === true ? {} : { diff --git a/tests/fixtures/fakeCdpBrowserTypes.ts b/tests/fixtures/fakeCdpBrowserTypes.ts index 31b75fc51..07a882a1e 100644 --- a/tests/fixtures/fakeCdpBrowserTypes.ts +++ b/tests/fixtures/fakeCdpBrowserTypes.ts @@ -114,6 +114,8 @@ export interface FakeOptions { readonly webMcpChildRecoversAfterTransient?: boolean; readonly webMcpChildNavigatesAllowed?: boolean; readonly electronFileUrl?: string; + /** Omit attached from the Electron page's HTTP discovery target. */ + readonly omitElectronTargetAttachmentState?: boolean; readonly duplicateElectronInventory?: boolean; readonly electronInventoryCount?: number; readonly urlShapedAllowedTitle?: diff --git a/tests/fixtures/inspector/fakeV8Inspector.ts b/tests/fixtures/inspector/fakeV8Inspector.ts index b853227aa..9852f1429 100644 --- a/tests/fixtures/inspector/fakeV8Inspector.ts +++ b/tests/fixtures/inspector/fakeV8Inspector.ts @@ -10,6 +10,7 @@ interface InspectorCommand { interface FakeV8InspectorOptions { readonly targetUrl: string; + readonly attached?: boolean | null; readonly targetType?: "node" | "page"; readonly runtimeProduct?: string; readonly scriptUrls?: readonly string[]; @@ -60,21 +61,19 @@ export const startFakeV8Inspector = async ( if (request.url === "/json/list") { response.end( JSON.stringify([ - target( - targetId, - options.targetUrl, - options.targetType ?? "node", + target(targetId, options.targetUrl, { + type: options.targetType ?? "node", port, - ), + attached: options.attached, + }), ...(options.additionalTargetUrl === undefined ? [] : [ - target( - otherTargetId, - options.additionalTargetUrl, - options.targetType ?? "node", + target(otherTargetId, options.additionalTargetUrl, { + type: options.targetType ?? "node", port, - ), + attached: options.attached, + }), ]), ...Array.from( { length: options.additionalTargetCount ?? 0 }, @@ -82,8 +81,11 @@ export const startFakeV8Inspector = async ( target( `00000000-0000-4000-8000-${String(index + 3).padStart(12, "0")}`, options.targetUrl, - options.targetType ?? "node", - port, + { + type: options.targetType ?? "node", + port, + attached: options.attached, + }, ), ), ]), @@ -220,15 +222,18 @@ const sendScriptEvents = ( const target = ( id: string, url: string, - type: "node" | "page", - port: number, + options: { + readonly type: "node" | "page"; + readonly port: number; + readonly attached: boolean | null | undefined; + }, ) => ({ id, - type, + type: options.type, title: "redacted-by-provider", url, - attached: false, - webSocketDebuggerUrl: `ws://localhost:${String(port)}/${id}`, + ...(options.attached === undefined ? {} : { attached: options.attached }), + webSocketDebuggerUrl: `ws://localhost:${String(options.port)}/${id}`, }); const parseCommand = (raw: string): InspectorCommand => { From 783fcb06a4bd0444be214822fed60a3786932782 Mon Sep 17 00:00:00 2001 From: hhang <17309584214@163.com> Date: Mon, 12 Oct 2026 12:44:43 +0800 Subject: [PATCH 14/44] test(javascript): consolidate module lookup regressions (#2031) fix(javascript): resolve relative ESM URLs as exact files Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com> --- .../JavaScriptModuleLookupCli.test.ts | 53 ++++++++++++++----- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts b/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts index 5222681ce..cd045a00a 100644 --- a/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts +++ b/tests/acceptance/applications/JavaScriptModuleLookupCli.test.ts @@ -13,7 +13,10 @@ const execute = promisify(execFile); const createModuleLookupFixture = async () => { const root = await createTestTempDirectory("rea-module-lookup-"); await writeFixtureFiles(root, { - "package.json": JSON.stringify({ name: "module-lookup-fixture" }), + "package.json": JSON.stringify({ + name: "module-lookup-fixture", + type: "commonjs", + }), "esm/entry.mjs": [ 'import "./extensionless";', 'import "./directory";', @@ -33,11 +36,15 @@ const createModuleLookupFixture = async () => { "esm/explicit.js.js": "module.exports = 3;", "esm/exact.js": "module.exports = 4;", "esm/actual.cjs": "module.exports = 5;", + "esm/typed.mts": 'import value from "./typed-dep.js"; void value;', + "esm/typed-dep.ts": "export default 42;", "cjs/entry.cjs": [ 'require("./extensionless");', 'require("./directory");', 'require("./feature");', 'require("./feature.cjs");', + 'require("./module-only");', + 'require("./valid-directory");', 'require("./default-js");', 'require("./default-json");', 'require("./default-node");', @@ -51,6 +58,11 @@ const createModuleLookupFixture = async () => { "cjs/directory/index.cjs": "module.exports = 6;", "cjs/extensionless.cjs": "module.exports = 1;", "cjs/feature.cjs": "module.exports = 2;", + "cjs/module-only.mjs": "export default 42;", + "cjs/valid-directory/index.js": "module.exports = 42;", + "cjs/typed.cts": + 'const value = require("./typed-dep.cjs"); module.exports = value;', + "cjs/typed-dep.cts": "module.exports = 42;", "cjs/default-js.js": "module.exports = 3;", "cjs/default-json.json": JSON.stringify({ value: 4 }), // Inventory-only placeholder: never pass this path to Node's runtime. @@ -70,16 +82,16 @@ const createModuleLookupFixture = async () => { 'const specifiers = ["./extensionless", "./directory", "./explicit.js", "./exact.js", "./actual.cjs?cache=1", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', "const results = [];", "for (const specifier of specifiers) {", - " try { await import(specifier); results.push({ specifier, ok: true }); }", + " try { const value = (await import(specifier)).default; results.push({ specifier, ok: true, value }); }", " catch (error) { results.push({ specifier, ok: false, code: error.code }); }", "}", "console.log(JSON.stringify(results));", ].join("\n"), "cjs/runtime-control.cjs": [ - 'const specifiers = ["./extensionless", "./directory", "./feature", "./feature.cjs", "./default-js", "./default-json", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', + 'const specifiers = ["./extensionless", "./directory", "./feature", "./feature.cjs", "./module-only", "./valid-directory", "./default-js", "./default-json", "empty-main", "nested-main", "file-only", "ancestor-empty", "ancestor-blocked", "ancestor-sub/parser"];', "const results = [];", "for (const specifier of specifiers) {", - " try { require(specifier); results.push({ specifier, ok: true }); }", + " try { const value = require(specifier); results.push({ specifier, ok: true, value }); }", " catch (error) { results.push({ specifier, ok: false, code: error.code }); }", "}", "console.log(JSON.stringify(results));", @@ -115,11 +127,13 @@ cliTest.for(["CLI", "stdio MCP"] as const)( readonly specifier: string; readonly ok: boolean; readonly code?: string; + readonly value?: unknown; }>; const cjsResults = JSON.parse(cjsControl.stdout) as Array<{ readonly specifier: string; readonly ok: boolean; readonly code?: string; + readonly value?: unknown; }>; expect(esmResults).toEqual([ { @@ -137,9 +151,9 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ok: false, code: "ERR_MODULE_NOT_FOUND", }, - { specifier: "./exact.js", ok: true }, - { specifier: "./actual.cjs?cache=1", ok: true }, - { specifier: "empty-main", ok: true }, + { specifier: "./exact.js", ok: true, value: 4 }, + { specifier: "./actual.cjs?cache=1", ok: true, value: 5 }, + { specifier: "empty-main", ok: true, value: 42 }, { specifier: "nested-main", ok: false, code: "ERR_MODULE_NOT_FOUND" }, { specifier: "file-only", ok: false, code: "ERR_MODULE_NOT_FOUND" }, { specifier: "ancestor-empty", ok: false, code: "ERR_MODULE_NOT_FOUND" }, @@ -170,15 +184,17 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ok: false, code: "MODULE_NOT_FOUND", }, - { specifier: "./feature.cjs", ok: true }, - { specifier: "./default-js", ok: true }, - { specifier: "./default-json", ok: true }, - { specifier: "empty-main", ok: true }, + { specifier: "./feature.cjs", ok: true, value: 2 }, + { specifier: "./module-only", ok: false, code: "MODULE_NOT_FOUND" }, + { specifier: "./valid-directory", ok: true, value: 42 }, + { specifier: "./default-js", ok: true, value: 3 }, + { specifier: "./default-json", ok: true, value: { value: 4 } }, + { specifier: "empty-main", ok: true, value: 42 }, { specifier: "nested-main", ok: false, code: "MODULE_NOT_FOUND" }, - { specifier: "file-only", ok: true }, - { specifier: "ancestor-empty", ok: true }, + { specifier: "file-only", ok: true, value: 7 }, + { specifier: "ancestor-empty", ok: true, value: 8 }, { specifier: "ancestor-blocked", ok: false, code: "MODULE_NOT_FOUND" }, - { specifier: "ancestor-sub/parser", ok: true }, + { specifier: "ancestor-sub/parser", ok: true, value: 10 }, ]); const { graph } = await analyzeJavaScriptDirectory(surface, cli, root); @@ -188,6 +204,7 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ["import", "./explicit.js", null, "not-found"], ["import", "./exact.js", "esm/exact.js", "resolved"], ["import", "./actual.cjs?cache=1", "esm/actual.cjs", "resolved"], + ["import", "./typed-dep.js", "esm/typed-dep.ts", "resolved"], ["import", "empty-main", "node_modules/empty-main/index.js", "resolved"], ["import", "nested-main", null, "not-found"], ["import", "file-only", null, "external"], @@ -198,6 +215,14 @@ cliTest.for(["CLI", "stdio MCP"] as const)( ["require", "./directory", null, "not-found"], ["require", "./feature", null, "not-found"], ["require", "./feature.cjs", "cjs/feature.cjs", "resolved"], + ["require", "./module-only", null, "not-found"], + [ + "require", + "./valid-directory", + "cjs/valid-directory/index.js", + "resolved", + ], + ["require", "./typed-dep.cjs", "cjs/typed-dep.cts", "resolved"], ["require", "./default-js", "cjs/default-js.js", "resolved"], ["require", "./default-json", "cjs/default-json.json", "resolved"], ["require", "./default-node", "cjs/default-node.node", "resolved"], From 83a4445f440fab978ad9376b4260acae3f5fb189 Mon Sep 17 00:00:00 2001 From: hhang <17309584214@163.com> Date: Mon, 12 Oct 2026 12:44:58 +0800 Subject: [PATCH 15/44] test(sourcemap): consolidate source map regressions (#2034) fix(sourcemap): retain named originals beside unknown source names Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com> --- .../applications/sourceMapPrefixCli.test.ts | 100 ++++++++++++++++-- .../javascriptArtifactReconstruction.test.ts | 1 - 2 files changed, 90 insertions(+), 11 deletions(-) diff --git a/tests/acceptance/applications/sourceMapPrefixCli.test.ts b/tests/acceptance/applications/sourceMapPrefixCli.test.ts index 838e46924..af5f8eaec 100644 --- a/tests/acceptance/applications/sourceMapPrefixCli.test.ts +++ b/tests/acceptance/applications/sourceMapPrefixCli.test.ts @@ -2,6 +2,7 @@ import { createHash } from "node:crypto"; import { readFile, writeFile } from "node:fs/promises"; import { join } from "node:path"; +import { TraceMap, originalPositionFor } from "@jridgewell/trace-mapping"; import { expect } from "vitest"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { cliTest } from "../../support/cli/cliFixture.js"; @@ -85,6 +86,13 @@ cliTest.for(["CLI", "stdio MCP"] as const)( names: [], mappings: "ACAA", }), + "unnamed-empty.js.map": JSON.stringify({ + version: 3, + sources: [null, "original.ts"], + sourcesContent: [null, original], + names: [], + mappings: "ACAA", + }), }; await writeFixtureFiles(root, { ...maps, @@ -92,13 +100,32 @@ cliTest.for(["CLI", "stdio MCP"] as const)( "export const absent = 1;\n//# sourceMappingURL=absent.js.map\n", "mixed.js": "export const answer = 42;\n//# sourceMappingURL=mixed.js.map\n", + "unnamed-empty.js": + "export const answer = 42;\n//# sourceMappingURL=unnamed-empty.js.map\n", }); + for (const [mapPath, expectedSource] of [ + ["absent.js.map", "unembedded.ts"], + ["mixed.js.map", "original.ts"], + ["unnamed-empty.js.map", "original.ts"], + ] as const) + expect( + originalPositionFor(new TraceMap(maps[mapPath], `file:///${mapPath}`), { + line: 1, + column: 0, + }).source, + ).toBe(`file:///${expectedSource}`); const { graph } = await analyzeJavaScriptDirectory(surface, cli, root); const digest = (text: string) => createHash("sha256").update(text).digest("hex"); - for (const [name, mapPath, content] of [ - ["unembedded.ts", "absent.js.map", null], - ["original.ts", "mixed.js.map", original], + expect( + graph.nodes.filter( + (node) => node.identity.strategy === "source-map-original", + ), + ).toHaveLength(3); + for (const [name, mapPath, content, sourceIndex] of [ + ["unembedded.ts", "absent.js.map", null, 0], + ["original.ts", "mixed.js.map", original, 1], + ["original.ts", "unnamed-empty.js.map", original, 1], ] as const) { const mapDigest = digest(maps[mapPath]); expect(graph.nodes).toContainEqual( @@ -117,6 +144,9 @@ cliTest.for(["CLI", "stdio MCP"] as const)( map_path: mapPath, }), properties: expect.objectContaining({ + source_index: sourceIndex, + declaration_index: sourceIndex, + source_name_available: true, content_available: content !== null, }), evidence: expect.objectContaining({ @@ -127,27 +157,77 @@ cliTest.for(["CLI", "stdio MCP"] as const)( }), ); } + for (const [mapPath, content] of [ + ["mixed.js.map", unnamed], + ["unnamed-empty.js.map", null], + ] as const) + expect(graph.nodes).toContainEqual( + expect.objectContaining({ + kind: "unknown", + observations: expect.arrayContaining([ + expect.objectContaining({ + source_map_reference: null, + properties: expect.objectContaining({ + source_index: 0, + declaration_index: 0, + source_name_available: false, + content_available: content !== null, + content_sha256: content === null ? null : digest(content), + }), + evidence: expect.objectContaining({ + artifact: expect.objectContaining({ + sha256: digest(maps[mapPath]), + }), + }), + }), + ]), + }), + ); + expect(graph.coverage.status).toBe("complete"); + for (const [path, text] of Object.entries(maps)) + expect(await readFile(join(root, path), "utf8")).toBe(text); + }, +); + +cliTest.for(["CLI", "stdio MCP"] as const)( + "rejects non-string source-map names without inventing originals through %s", + async (surface, { cli }) => { + const root = await createTestTempDirectory("rea-invalid-map-source-"); + const mapText = JSON.stringify({ + version: 3, + sources: [42, "discarded.ts"], + sourcesContent: [null, "export const answer: number = 42;"], + names: [], + mappings: "ACAA", + }); + await writeFixtureFiles(root, { "invalid.js.map": mapText }); + const { graph } = await analyzeJavaScriptDirectory(surface, cli, root); + expect(graph.coverage.status).toBe("partial"); + expect( + graph.nodes.some( + (node) => node.identity.strategy === "source-map-original", + ), + ).toBe(false); expect(graph.nodes).toContainEqual( expect.objectContaining({ kind: "unknown", observations: expect.arrayContaining([ expect.objectContaining({ properties: expect.objectContaining({ - source_name_available: false, - content_available: true, - content_sha256: digest(unnamed), + operation: "parse-local-source-map", }), evidence: expect.objectContaining({ artifact: expect.objectContaining({ - sha256: digest(maps["mixed.js.map"]), + sha256: createHash("sha256").update(mapText).digest("hex"), }), + limitations: expect.arrayContaining([ + "Source map contains a non-string source name.", + ]), }), }), ]), }), ); - expect(graph.coverage.status).toBe("complete"); - for (const [path, text] of Object.entries(maps)) - expect(await readFile(join(root, path), "utf8")).toBe(text); + expect(await readFile(join(root, "invalid.js.map"), "utf8")).toBe(mapText); }, ); diff --git a/tests/boundary/filesystem/javascriptArtifactReconstruction.test.ts b/tests/boundary/filesystem/javascriptArtifactReconstruction.test.ts index 7f0a44c1d..aabfdd19b 100644 --- a/tests/boundary/filesystem/javascriptArtifactReconstruction.test.ts +++ b/tests/boundary/filesystem/javascriptArtifactReconstruction.test.ts @@ -136,7 +136,6 @@ it.each([ ["a non-array sourcesContent value", { sourcesContent: "source" }], ["a non-string, non-null source entry", { sourcesContent: [42] }], ["a source-content array with the wrong length", { sourcesContent: [] }], - ["a non-string source name", { sources: [42] }], ])( "reports %s as an invalid local source map", async (_description, content) => { From 3bcc68c037e9415c78093cb286069c1fcca6a2f8 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 13:06:30 +0800 Subject: [PATCH 16/44] fix(evidence): enforce managed identity and cancel bundle reads Validate managed reconstruction through the shared artifact and MVID scope boundary, including known/unknown identity contradictions. Forward MCP comparison cancellation into both bundle reads and consolidate pre-cancel coverage. Verified managed graph/reconstruction and filesystem/MCP cancellation workflows. A controlled missing-signal mutation reads 130 chunks instead of the expected one; cancellation leaves the session unchanged and retry succeeds. --- src/application/EvidenceBundleFiles.ts | 3 +- .../ManagedReconstructionService.test.ts | 27 +++ .../managed/managedInspectionEvidence.ts | 11 +- src/domain/managed/managedReconstruction.ts | 22 +- src/server/registerBundleComparisonTool.ts | 4 +- .../filesystem/evidenceBundleFiles.test.ts | 39 ++-- .../mcp/bundleComparisonCancellation.test.ts | 217 ++++++++++++++++++ .../managedApplicationGraph.test.ts | 44 ++++ 8 files changed, 329 insertions(+), 38 deletions(-) create mode 100644 tests/boundary/mcp/bundleComparisonCancellation.test.ts diff --git a/src/application/EvidenceBundleFiles.ts b/src/application/EvidenceBundleFiles.ts index a9ff27990..1f1a0a0b7 100644 --- a/src/application/EvidenceBundleFiles.ts +++ b/src/application/EvidenceBundleFiles.ts @@ -36,8 +36,9 @@ type EvidenceWriteFailure = /** Read and validate an evidence bundle at the caller-supplied path. */ export const readEvidenceBundle = ( path: string, + signal?: AbortSignal, ): Promise> => - readBundle(path, parseEvidenceBundle); + readBundle(path, parseEvidenceBundle, signal); /** Read an authenticated immutable snapshot for a subsequent session import. */ export const readImmutableEvidenceBundle = ( diff --git a/src/application/managed/ManagedReconstructionService.test.ts b/src/application/managed/ManagedReconstructionService.test.ts index 6e7a28c27..56b9d9442 100644 --- a/src/application/managed/ManagedReconstructionService.test.ts +++ b/src/application/managed/ManagedReconstructionService.test.ts @@ -53,6 +53,33 @@ describe("managed decompiler reconstruction import", () => { ).toThrow(/does not match/u); }); + it("rejects static Evidence with a token MVID but no module identity", () => { + const input = exampleInput(); + const members = managedMemberInspectionSchema.parse( + input.static_members.normalized_result, + ); + if (members.module === null || members.module.mvid === null) + throw new Error("Expected fixture module identity and MVID"); + const inconsistentEvidence = createEvidence( + undefined, + input.static_members.provider, + { + operation: "inspect_managed_members", + parameters: {}, + result: { ...members, module: null }, + rawResult: null, + limitations: members.limitations, + }, + ); + + expect(() => + importManagedReconstruction({ + ...input, + static_members: inconsistentEvidence, + }), + ).toThrow(/token scope MVID/u); + }); + it("rejects reconstruction locks for partial CIL without normalized identity", () => { const input = exampleInput(); const observed = managedMemberInspectionSchema.parse( diff --git a/src/domain/managed/managedInspectionEvidence.ts b/src/domain/managed/managedInspectionEvidence.ts index fa4712b5d..84b64ca25 100644 --- a/src/domain/managed/managedInspectionEvidence.ts +++ b/src/domain/managed/managedInspectionEvidence.ts @@ -43,15 +43,14 @@ export const parseManagedInspectionEvidence = < throw new TypeError( `Managed Evidence ${operation} (${evidence.evidence_id}) token scope SHA-256 ${scope.requires_artifact_sha256} does not match normalized artifact SHA-256 ${artifactSha256}`, ); + const moduleMvid = result.module?.mvid ?? null; + const scopedMvid = scope?.requires_mvid; if ( - scope?.requires_mvid !== undefined && - scope.requires_mvid !== null && - result.module?.mvid !== undefined && - result.module.mvid !== null && - scope.requires_mvid.toLowerCase() !== result.module.mvid.toLowerCase() + scopedMvid !== undefined && + scopedMvid?.toLowerCase() !== moduleMvid?.toLowerCase() ) throw new TypeError( - `Managed Evidence ${operation} (${evidence.evidence_id}) token scope MVID ${scope.requires_mvid} does not match module MVID ${result.module.mvid}`, + `Managed Evidence ${operation} (${evidence.evidence_id}) token scope MVID ${String(scopedMvid)} does not match module MVID ${String(moduleMvid)}`, ); return { evidence, result }; }; diff --git a/src/domain/managed/managedReconstruction.ts b/src/domain/managed/managedReconstruction.ts index dc8863ace..e10be0ffd 100644 --- a/src/domain/managed/managedReconstruction.ts +++ b/src/domain/managed/managedReconstruction.ts @@ -3,15 +3,15 @@ import { createHash } from "node:crypto"; import canonicalize from "canonicalize"; import { z } from "zod"; -import { evidenceSchema, parseEvidence } from "../evidence.js"; +import { evidenceSchema, type Evidence } from "../evidence.js"; import { cliMetadataGuidSchema, managedMemberInspectionSchema, type ManagedMemberInspection, } from "./managedArtifact.js"; import type { JsonValue } from "../jsonValue.js"; -import { digestSchema } from "../digests.js"; -import { prefixedDigestSchema } from "../digests.js"; +import { digestSchema, prefixedDigestSchema } from "../digests.js"; +import { parseManagedInspectionEvidence } from "./managedInspectionEvidence.js"; const evidenceIdSchema = prefixedDigestSchema("ev"); const tokenSchema = z.string().regex(/^0x[0-9a-f]{8}$/u); @@ -210,7 +210,7 @@ const buildReconstructionSummary = ( }); const buildStaticObservation = ( - staticEvidence: ReturnType, + staticEvidence: Evidence, members: ManagedMemberInspection, ): StaticObservation => ({ evidence_id: staticEvidence.evidence_id, @@ -238,7 +238,7 @@ const RECONSTRUCTION_LIMITATIONS = [ const buildReconstructionWithoutId = ( input: ManagedReconstructionImportInput, - staticEvidence: ReturnType, + staticEvidence: Evidence, members: ManagedMemberInspection, methods: readonly ImportedMethod[], ): Omit => ({ @@ -257,12 +257,12 @@ const buildReconstructionWithoutId = ( export const importManagedReconstruction = ( input: ManagedReconstructionImportInput, ): ManagedReconstructionImportResult => { - const staticEvidence = parseEvidence(input.static_members); - if (staticEvidence.operation !== "inspect_managed_members") - throw new TypeError("Evidence operation is not inspect_managed_members"); - const members = managedMemberInspectionSchema.parse( - staticEvidence.normalized_result, - ); + const { evidence: staticEvidence, result: members } = + parseManagedInspectionEvidence( + input.static_members, + "inspect_managed_members", + managedMemberInspectionSchema, + ); const methods = input.methods.map((candidate) => { const observed = findObservedMethod(members, candidate); if (observed === undefined) diff --git a/src/server/registerBundleComparisonTool.ts b/src/server/registerBundleComparisonTool.ts index bedb65c44..18e734cf5 100644 --- a/src/server/registerBundleComparisonTool.ts +++ b/src/server/registerBundleComparisonTool.ts @@ -31,8 +31,8 @@ export const registerBundleComparisonTool = ( context.mcpReq.signal, async () => { const [left, right] = await Promise.all([ - readEvidenceBundle(input.left_bundle_path), - readEvidenceBundle(input.right_bundle_path), + readEvidenceBundle(input.left_bundle_path, context.mcpReq.signal), + readEvidenceBundle(input.right_bundle_path, context.mcpReq.signal), ]); if (!left.ok) return server.delivery.toCallToolResult(left, contract); if (!right.ok) diff --git a/tests/boundary/filesystem/evidenceBundleFiles.test.ts b/tests/boundary/filesystem/evidenceBundleFiles.test.ts index d93afe620..856a545aa 100644 --- a/tests/boundary/filesystem/evidenceBundleFiles.test.ts +++ b/tests/boundary/filesystem/evidenceBundleFiles.test.ts @@ -39,24 +39,27 @@ const bundle = (result = true) => ), ]); -it("returns import cancellation before inspecting a selected path", async () => { - const root = await createTestTempDirectory("rea-import-pre-cancel-"); - const controller = new AbortController(); - controller.abort(new Error("cancel before import")); - expect( - await readImmutableEvidenceBundle( - join(root, "missing.json"), - controller.signal, - ), - ).toMatchObject({ - ok: false, - error: { - _tag: "AnalysisCancelledError", - operation: "import_evidence_bundle", - }, - }); - expect(await readdir(root)).toEqual([]); -}); +it.each([ + ["immutable", readImmutableEvidenceBundle], + ["mutable", readEvidenceBundle], +] as const)( + "cancels a %s bundle read before opening its selected path", + async (_, read) => { + const root = await createTestTempDirectory("rea-bundle-pre-cancel-"); + const controller = new AbortController(); + controller.abort(new Error("cancel before bundle read")); + expect( + await read(join(root, "missing.json"), controller.signal), + ).toMatchObject({ + ok: false, + error: { + _tag: "AnalysisCancelledError", + operation: "import_evidence_bundle", + }, + }); + expect(await readdir(root)).toEqual([]); + }, +); it("preserves the failed-close owner when import is also cancelled", async () => { const root = await createTestTempDirectory("rea-import-cancel-cleanup-"); diff --git a/tests/boundary/mcp/bundleComparisonCancellation.test.ts b/tests/boundary/mcp/bundleComparisonCancellation.test.ts new file mode 100644 index 000000000..b665c54e1 --- /dev/null +++ b/tests/boundary/mcp/bundleComparisonCancellation.test.ts @@ -0,0 +1,217 @@ +import { Client, InMemoryTransport } from "@modelcontextprotocol/client"; +import { open, writeFile, type FileHandle } from "node:fs/promises"; +import { join } from "node:path"; +import { expect, it, onTestFinished, vi } from "vitest"; + +import { AnalysisCancelledError } from "../../../src/domain/analysisErrorCore.js"; +import { createEvidence } from "../../../src/domain/evidence.js"; +import { + createEvidenceBundle, + serializeEvidenceBundle, +} from "../../../src/domain/evidenceBundle.js"; +import { createServer } from "../../../src/server/createServer.js"; +import { ToolResultDelivery } from "../../../src/server/toolResult.js"; +import { createTestBinarySession } from "../../fixtures/binarySession.js"; +import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; + +it("leaves the session unchanged after bundle comparison cancellation and permits a retry", async () => { + const root = await createTestTempDirectory("rea-mcp-compare-cancel-"); + const leftPath = join(root, "left.json"); + const rightPath = join(root, "right.json"); + const provider = { id: "fixture", name: "Fixture", version: "1" }; + const left = createEvidence(undefined, provider, { + operation: "observation", + parameters: { side: "left" }, + result: { side: "left" }, + }); + const right = createEvidence(undefined, provider, { + operation: "observation", + parameters: { side: "right" }, + result: { side: "right" }, + }); + const leftContents = + " ".repeat(8 * 1024 * 1024) + + serializeEvidenceBundle(createEvidenceBundle([left])); + await Promise.all([ + // Just over the native-parse budget, without a large JSON tree. + writeFile(leftPath, leftContents), + writeFile( + rightPath, + serializeEvidenceBundle(createEvidenceBundle([right])), + ), + ]); + + const session = createTestBinarySession(() => { + throw new Error("Bundle comparison must not start a binary provider"); + }); + const existing = createEvidence(undefined, provider, { + operation: "existing_observation", + parameters: {}, + result: { retained: true }, + }); + const recorded = session.recordEvidence(existing); + if (!recorded.ok) throw recorded.error; + const before = session.exportEvidenceBundle(); + const server = createServer({ kind: "session", session }); + const client = new Client({ + name: "bundle-comparison-cancellation", + version: "1", + }); + const controller = new AbortController(); + onTestFinished(async () => { + controller.abort(); + vi.restoreAllMocks(); + await client.close(); + await server.close(); + await session.close(); + }); + const [clientTransport, serverTransport] = + InMemoryTransport.createLinkedPair(); + await server.connect(serverTransport); + await client.connect(clientTransport); + + const reader = await holdFirstRead(leftPath); + onTestFinished(reader.release); + + let resolveDispatched: (() => void) | undefined; + const dispatched = new Promise((resolve) => { + resolveDispatched = resolve; + }); + const send = clientTransport.send.bind(clientTransport); + vi.spyOn(clientTransport, "send").mockImplementation( + async (message, ...args) => { + await send(message, ...args); + if ("method" in message && message.method === "tools/call") + resolveDispatched?.(); + }, + ); + let resolveCompleted: (() => void) | undefined; + const completed = new Promise((resolve) => { + resolveCompleted = resolve; + }); + let settledResult: unknown; + const deliver = ToolResultDelivery.prototype.toCallToolResult; + vi.spyOn(ToolResultDelivery.prototype, "toCallToolResult").mockImplementation( + function (this: ToolResultDelivery, result, contract) { + const reply = deliver.call(this, result, contract); + if (contract.name === "compare_bundles") { + settledResult = result; + resolveCompleted?.(); + } + return reply; + }, + ); + + const args = { + left_bundle_path: leftPath, + right_bundle_path: rightPath, + record_pairs: [ + { + left_evidence_id: left.evidence_id, + right_evidence_id: right.evidence_id, + }, + ], + }; + const cancellation = client + .callTool( + { name: "compare_bundles", arguments: args }, + { signal: controller.signal }, + ) + .then( + () => "completed", + (error: unknown) => error, + ); + await dispatched; + await reader.firstRead; + await client.ping(); + controller.abort(new Error("SDK bundle comparison cancellation")); + reader.release(); + expect(await cancellation).toMatchObject({ + message: expect.stringContaining("SDK bundle comparison cancellation"), + }); + // Wait for the handler's delivered Result as well as the client's rejection. + await completed; + expect(settledResult).toMatchObject({ + ok: false, + error: expect.any(AnalysisCancelledError), + }); + expect(reader.readCount).toBe(1); + expect(reader.totalReadBytes).toBeLessThan(leftContents.length); + expect(session.exportEvidenceBundle()).toEqual(before); + + await client.ping(); + const retry = await client.callTool({ + name: "compare_bundles", + arguments: args, + }); + expect(retry.isError, JSON.stringify(retry)).not.toBe(true); + expect(retry.structuredContent).toMatchObject({ + normalized_result: { status: "changed" }, + }); + const after = session.exportEvidenceBundle(); + expect(after.unknowns).toEqual(before.unknowns); + expect(after.records).toEqual( + expect.arrayContaining([ + ...before.records, + left, + right, + expect.objectContaining({ + operation: "compare_bundles", + evidence_links: [left.evidence_id, right.evidence_id], + }), + ]), + ); +}); + +const holdFirstRead = async (path: string) => { + // Hold the first streamed read after it reaches the operating system. + const probe = await open(path, "r"); + const identity = await probe.stat(); + const fileHandlePrototype = Object.getPrototypeOf(probe) as { + read( + buffer: Buffer, + offset: number, + length: number, + position: number | null, + ): Promise<{ readonly bytesRead: number; readonly buffer: Buffer }>; + }; + await probe.close(); + let totalReadBytes = 0; + let readCount = 0; + let resolveFirstRead: (() => void) | undefined; + const firstRead = new Promise((resolve) => { + resolveFirstRead = resolve; + }); + let releaseRead: (() => void) | undefined; + const readGate = new Promise((resolve) => { + releaseRead = resolve; + }); + const read = fileHandlePrototype.read; + vi.spyOn(fileHandlePrototype, "read").mockImplementation(async function ( + this: FileHandle, + ...args: [Buffer, number, number, number | null] + ) { + const current = await this.stat(); + const isTarget = + current.dev === identity.dev && current.ino === identity.ino; + const result = await read.call(this, ...args); + if (!isTarget) return result; + totalReadBytes += result.bytesRead; + readCount += 1; + if (readCount === 1) { + resolveFirstRead?.(); + await readGate; + } + return result; + }); + return { + firstRead, + release: () => releaseRead?.(), + get readCount() { + return readCount; + }, + get totalReadBytes() { + return totalReadBytes; + }, + }; +}; diff --git a/tests/composition/analysis-sessions/managedApplicationGraph.test.ts b/tests/composition/analysis-sessions/managedApplicationGraph.test.ts index cd60028d4..c23535643 100644 --- a/tests/composition/analysis-sessions/managedApplicationGraph.test.ts +++ b/tests/composition/analysis-sessions/managedApplicationGraph.test.ts @@ -507,6 +507,50 @@ describe("managed application graph token scope", () => { "token scope SHA-256", ); }); + + it.each([ + "module identity absent", + "module MVID unknown", + "token scope MVID unknown", + ] as const)("rejects inconsistent identity when %s", (variant) => { + const { memberEvidence, boundaryEvidence } = createManagedInteropEvidence(); + const members = managedMemberInspectionSchema.parse( + parseEvidence(memberEvidence).normalized_result, + ); + if (members.module === null || members.module.mvid === null) + throw new Error("Expected fixture module identity and MVID"); + const module = + variant === "module identity absent" + ? null + : variant === "module MVID unknown" + ? { ...members.module, mvid: null } + : members.module; + const identity_scope = + variant === "token scope MVID unknown" + ? { ...members.identity_scope, requires_mvid: null } + : members.identity_scope; + const inconsistentMembers = createEvidence( + undefined, + MANAGED_STATIC_PROVIDER, + { + operation: "inspect_managed_members", + parameters: {}, + result: { ...members, module, identity_scope }, + rawResult: null, + limitations: members.limitations, + }, + ); + + const projected = projectManagedApplicationGraphEvidence({ + managed_members: inconsistentMembers, + managed_native_boundaries: boundaryEvidence, + }); + + expect(projected.ok).toBe(false); + if (projected.ok) + throw new Error("An inconsistent token scope was accepted"); + expect(JSON.stringify(projected.error)).toContain("token scope MVID"); + }); }); describe("unknown managed application graph token scope", () => { From 3bdc8730bd98e073522bcb8ba86527be402c0cbe Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 13:06:51 +0800 Subject: [PATCH 17/44] fix(adb): preserve directory identities and share byte capture Use Android 8-compatible batched find/stat with NUL-framed names and raw symlink targets. Preserve malformed or invalid UTF-8 records as partial evidence with exact source bytes. List hidden direct children without synthetic navigation entries. Share process byte capture with UTF-8 callers and screenshots, removing duplicate timeout and cancellation supervision. Verified 35 focused process, ADB, CLI and MCP tests; compatibility checked against AOSP Oreo sources. Live Android device/emulator verification was not run. --- docs/adb-device-analysis.md | 5 +- src/adb/AdbDirectoryListing.ts | 108 +++++++ src/adb/AdbProvider.test.ts | 106 ++++--- src/adb/AdbProvider.ts | 121 +++----- src/adb/AdbShellOutput.ts | 59 ---- src/contracts/adb/adbToolContracts.ts | 2 +- src/domain/adb/adbDeviceAnalysis.ts | 4 +- src/process/ExecFileOutput.test.ts | 12 +- src/process/ExecFileOutput.ts | 27 +- .../process/adbDirectoryListing.test.ts | 288 ++++++++++++++++++ 10 files changed, 552 insertions(+), 180 deletions(-) create mode 100644 src/adb/AdbDirectoryListing.ts create mode 100644 tests/boundary/process/adbDirectoryListing.test.ts diff --git a/docs/adb-device-analysis.md b/docs/adb-device-analysis.md index 416e78161..fb2ce9aac 100644 --- a/docs/adb-device-analysis.md +++ b/docs/adb-device-analysis.md @@ -88,7 +88,7 @@ existing analysis families directly, for example | `list_adb_packages` | read | `pm list packages -f` with scope; base APK device paths | | `resolve_adb_packages` | read | Case-insensitive package-name substring search with exact-match flag | | `inspect_adb_package` | read | `dumpsys package` projection: versions, install times, installer, flags, permission count | -| `list_adb_directory` | read | `ls -la`: kinds, permissions, owner, group, sizes, symlink targets | +| `list_adb_directory` | read | NUL-framed immediate children, including hidden entries: kinds, permissions, owner, group, sizes, symlink targets | | `pull_adb_package` | read | Complete split APK set from `pm path`, each file digested | | `pull_adb_file` | read | One absolute device path pulled and digested | | `capture_adb_screen` | read | One `screencap -p` frame (exec-out, no device-side file) with dimensions | @@ -102,6 +102,9 @@ existing analysis families directly, for example ## Interpret the result +- **Directory names retain whitespace and newlines.** Symlink targets do too, + including trailing newlines. Records containing invalid UTF-8 remain as + labelled hex in `unparsed_lines` and make directory coverage partial. - **Inferences carry their basis.** Device `kind` reports `kind_basis` (serial prefix or USB transport); APK `role` reports `role_basis: file_name`; `emulator_observed` is the build's own diff --git a/src/adb/AdbDirectoryListing.ts b/src/adb/AdbDirectoryListing.ts new file mode 100644 index 000000000..a8c055ad6 --- /dev/null +++ b/src/adb/AdbDirectoryListing.ts @@ -0,0 +1,108 @@ +import { isUtf8 } from "node:buffer"; + +interface AdbDirectoryEntry { + readonly name: string; + readonly kind: "directory" | "file" | "symlink" | "other"; + readonly permissions: string | null; + readonly owner: string | null; + readonly group: string | null; + readonly bytes: number | null; + readonly date: string | null; + readonly link_target: string | null; +} + +/** + * List direct children with Android 8 Toybox's batched `find -exec` and + * `stat -c` support. Names and link targets are NUL-framed; neither is ever + * inserted into a line-oriented metadata record or command substitution. + */ +export const ADB_DIRECTORY_BATCH_SCRIPT = String.raw`metadata=$(stat -c '%A|%U|%G|%s|%y' "$@") || exit +printf '%s\n' "$metadata" | { + while IFS= read -r metadata; do + [ "$#" -gt 0 ] || exit 1 + path=$1 + shift + printf '%s\000%s\000' "$metadata" "${"${path##*/}"}" + case "$metadata" in + l*) readlink -n "$path" || exit 1 ;; + esac + printf '\000' + done + [ "$#" -eq 0 ] +}`; + +const METADATA = + /^([bcdlps-][rwxstST-]{9})\|([^|\n]+)\|([^|\n]+)\|(\d+)\|([^|\n]+)$/u; + +const parseEntry = ( + metadata: string, + name: string, + linkTarget: string, +): AdbDirectoryEntry | null => { + const match = METADATA.exec(metadata); + if (match === null || name === "" || name.includes("/")) return null; + const permissions = match[1]!; + const bytes = Number(match[4]!); + if (!Number.isSafeInteger(bytes)) return null; + + const isSymlink = permissions.startsWith("l"); + if (isSymlink ? linkTarget === "" : linkTarget !== "") return null; + + return { + name, + kind: permissions.startsWith("d") + ? "directory" + : isSymlink + ? "symlink" + : permissions.startsWith("-") + ? "file" + : "other", + permissions, + owner: match[2]!, + group: match[3]!, + bytes, + date: match[5]!, + link_target: isSymlink ? linkTarget : null, + }; +}; + +/** Parse metadata/name/target NUL triples from `ADB_DIRECTORY_BATCH_SCRIPT`. */ +export const parseAdbDirectoryListing = ( + stdout: Buffer, +): { + entries: readonly AdbDirectoryEntry[]; + unparsedLines: readonly string[]; +} => { + const entries: AdbDirectoryEntry[] = []; + const unparsedLines: string[] = []; + let offset = 0; + while (offset < stdout.length) { + const metadataEnd = stdout.indexOf(0, offset); + const nameEnd = metadataEnd < 0 ? -1 : stdout.indexOf(0, metadataEnd + 1); + const targetEnd = nameEnd < 0 ? -1 : stdout.indexOf(0, nameEnd + 1); + if (targetEnd < 0) { + unparsedLines.push(describeUnparsedRecord(stdout.subarray(offset))); + break; + } + const rawRecord = stdout.subarray(offset, targetEnd + 1); + if (!isUtf8(rawRecord)) { + unparsedLines.push(describeUnparsedRecord(rawRecord)); + } else { + const entry = parseEntry( + stdout.toString("utf8", offset, metadataEnd), + stdout.toString("utf8", metadataEnd + 1, nameEnd), + stdout.toString("utf8", nameEnd + 1, targetEnd), + ); + if (entry === null) unparsedLines.push(rawRecord.toString("utf8")); + else entries.push(entry); + } + offset = targetEnd + 1; + } + + return { entries, unparsedLines }; +}; + +const describeUnparsedRecord = (record: Buffer): string => + isUtf8(record) + ? record.toString("utf8") + : `Invalid UTF-8 directory record (hex): ${record.toString("hex")}`; diff --git a/src/adb/AdbProvider.test.ts b/src/adb/AdbProvider.test.ts index 9ea0f026b..f9fb6f520 100644 --- a/src/adb/AdbProvider.test.ts +++ b/src/adb/AdbProvider.test.ts @@ -199,7 +199,7 @@ const shellStub = ( second === undefined ? `[ "$4" = "${first}" ]` : `[ "$4" = "${first}" ] && [ "$5" = "${second}" ]`; - return ` if ${guard}; then printf '%b' '${output.replace(/'/gu, "'\\''")}'; exit 0; fi`; + return ` if ${guard}; then printf '%b' '${output.replaceAll("\\", "\\\\").replaceAll("\0", "\\000").replace(/'/gu, "'\\''")}'; exit 0; fi`; }) .join("\n"); return () => `if [ "$1" = "version" ]; then ${VERSION_BLOCK}; exit 0; fi @@ -780,42 +780,74 @@ it("lists processes, features, and services through fixed commands", async () => ]); }); -it("lists a device directory with kinds and symlink targets", async () => { - const { binary } = await writeAdbStub( - shellStub({ - ls: "total 4\n-rw-rw---- u0_a1 u0_a1 4096 2026-01-02 11:00 app.db\nlrwxrwxrwx root root 2026-01-01 10:00 lib -> /apex/com.android.art/lib\n", - }), - ); - const result = await evidenceResult(providerOver(binary), { - operation: "list_adb_directory", - input: { - serial: "emulator-5554", - device_path: "/data/data/com.example.app", - }, - }); - expect(result.entries).toEqual([ - { - name: "app.db", - kind: "file", - permissions: "-rw-rw----", - owner: "u0_a1", - group: "u0_a1", - bytes: 4096, - date: "2026-01-02 11:00", - link_target: null, - }, - { - name: "lib", - kind: "symlink", - permissions: "lrwxrwxrwx", - owner: "root", - group: "root", - bytes: null, - date: "2026-01-01 10:00", - link_target: "/apex/com.android.art/lib", - }, - ]); -}); +it.each(["complete", "truncated"] as const)( + "preserves framed directory identities with %s output", + async (variant) => { + const date = "2026-01-02 11:00:00.000000000 +0000"; + const names = [ + "app.db", + " app.db ", + " ", + "one -> two -> three", + "line\r", + "line\u2028break", + "foo\n-rw-rw---- root root 0 2026-01-01 10:00 ghost", + "literal\\n", + ]; + const links = [ + ["lib", "/apex/com.android.art/lib"], + [" lib ", " /apex/lib "], + ["one -> two\n", "three -> four\n\n"], + ] as const; + const truncated = `-rw-rw----|u0_a1|u0_a1|4096|${date}\0unfinished`; + const output = [ + ...names.map( + (name) => `-rw-rw----|u0_a1|u0_a1|4096|${date}\0${name}\0\0`, + ), + ...links.map( + ([name, target]) => + `lrwxrwxrwx|root|root|${Buffer.byteLength(target)}|${date}\0${name}\0${target}\0`, + ), + ...(variant === "truncated" ? [truncated] : []), + ].join(""); + const { binary } = await writeAdbStub(shellStub({ sh: output })); + const result = await evidenceResult(providerOver(binary), { + operation: "list_adb_directory", + input: { + serial: "emulator-5554", + device_path: "/data/data/com.example.app", + }, + }); + expect(result.entries).toEqual([ + ...names.map((name) => ({ + name, + kind: "file", + permissions: "-rw-rw----", + owner: "u0_a1", + group: "u0_a1", + bytes: 4096, + date, + link_target: null, + })), + ...links.map(([name, target]) => ({ + name, + kind: "symlink", + permissions: "lrwxrwxrwx", + owner: "root", + group: "root", + bytes: Buffer.byteLength(target), + date, + link_target: target, + })), + ]); + expect(result.unparsed_lines).toEqual( + variant === "truncated" ? [truncated] : [], + ); + expect(result.coverage).toBe( + variant === "truncated" ? "partial" : "complete", + ); + }, +); it("inspects the display and window focus", async () => { const { binary } = await writeAdbStub( diff --git a/src/adb/AdbProvider.ts b/src/adb/AdbProvider.ts index eec316978..2a64930a5 100644 --- a/src/adb/AdbProvider.ts +++ b/src/adb/AdbProvider.ts @@ -1,4 +1,3 @@ -import { execFile } from "node:child_process"; import { createHash } from "node:crypto"; import { constants as fsConstants } from "node:fs"; import { @@ -38,7 +37,7 @@ import { err, ok, type Result } from "../domain/result.js"; import { hashStableFile } from "../filesystem/StableFileHash.js"; import { ProviderCleanupError } from "../domain/providerCleanupError.js"; import { - execFileOutput, + execFileBytes, execFileOutputFailure, } from "../process/ExecFileOutput.js"; import { @@ -56,12 +55,15 @@ import { parsePmPathOutput, } from "./AdbDeviceOutput.js"; import { adbHostFileName } from "./AdbHostFileName.js"; +import { + ADB_DIRECTORY_BATCH_SCRIPT, + parseAdbDirectoryListing, +} from "./AdbDirectoryListing.js"; import { parseAmStartOutput, parseBugreportCopiedPath, parseDumpsysPackageOutput, parseFeatureListOutput, - parseLsOutput, parsePackageChangeOutput, parseProcessListOutput, parsePngDimensions, @@ -105,7 +107,6 @@ const BUGREPORT_TIMEOUT_MS = 600_000; const BUGREPORT_MAX_OUTPUT_BYTES = 1024 * 1024; const STDERR_EXCERPT_BYTES = 512; const UNPARSED_LINES_REPORTED = 10; -const STOP_GRACE_MS = 5_000; const hashAdbFile = async ( path: string, @@ -144,19 +145,19 @@ interface AdbRunLimits { } /** Run one bounded adb invocation and keep its exact failure shape. */ -const runAdb = async ( +const runAdbCapture = async ( operation: string, targetPath: string, binary: string, arguments_: readonly string[], limits: AdbRunLimits, signal: AbortSignal | undefined, -): Promise> => { +): Promise> => { if (signal?.aborted === true) return err(new AnalysisCancelledError(operation)); try { return ok( - await execFileOutput(binary, arguments_, { + await execFileBytes(binary, arguments_, { timeout: limits.timeoutMs, maxBuffer: limits.maxOutputBytes, stopSignal: "SIGTERM", @@ -223,61 +224,17 @@ const runAdb = async ( } }; -/** Capture one adb invocation's raw binary stdout (screencap PNG). */ -const runAdbBinary = ( - operation: string, - binary: string, - arguments_: readonly string[], - limits: AdbRunLimits, - signal: AbortSignal | undefined, -): Promise> => - new Promise((settle) => { - if (signal?.aborted === true) - return settle(err(new AnalysisCancelledError(operation))); - let stopped: "abort" | "timeout" | undefined; - let deadline: NodeJS.Timeout | undefined; - let grace: NodeJS.Timeout | undefined; - const child = execFile( - binary, - [...arguments_], - { - encoding: "buffer" as const, - maxBuffer: limits.maxOutputBytes, - killSignal: "SIGTERM", - timeout: 0, - }, - (error, stdout) => { - signal?.removeEventListener("abort", onAbort); - clearTimeout(deadline); - clearTimeout(grace); - if (stopped === "abort") - return settle(err(new AnalysisCancelledError(operation))); - if (stopped === "timeout") - return settle( - err(new AnalysisTimeoutError(operation, limits.timeoutMs)), - ); - if (error !== null) - return settle( - err( - new AnalysisProtocolError( - `adb failed for ${operation}: ${error.message}`, - { cause: error }, - ), - ), - ); - settle(ok(stdout as Buffer)); - }, - ); - const stop = (reason: "abort" | "timeout"): void => { - if (stopped !== undefined) return; - stopped = reason; - child.kill("SIGTERM"); - grace = setTimeout(() => child.kill("SIGKILL"), STOP_GRACE_MS); - }; - const onAbort = (): void => stop("abort"); - signal?.addEventListener("abort", onAbort, { once: true }); - deadline = setTimeout(() => stop("timeout"), limits.timeoutMs); +/** Decode textual adb protocols after the shared byte capture and error boundary. */ +const runAdb = async ( + ...arguments_: Parameters +): Promise> => { + const captured = await runAdbCapture(...arguments_); + if (!captured.ok) return captured; + return ok({ + stdout: captured.value.stdout.toString("utf8"), + stderr: captured.value.stderr.toString("utf8"), }); +}; const clientIdentityResult = ( selection: AdbBinarySelection, @@ -947,12 +904,29 @@ export class AdbProvider { ); } case "list_adb_directory": { - const ran = await shell(["ls", "-la", request.input.device_path], { - timeoutMs: LISTING_TIMEOUT_MS, - maxOutputBytes: LISTING_MAX_OUTPUT_BYTES, - }); + const ran = await runAdbCapture( + operation, + request.input.serial, + selection.binary, + adbArguments(request.input.serial, [ + "shell", + "sh", + "-c", + 'cd "$1" || exit\nexec find . -mindepth 1 -maxdepth 1 -exec sh -c "$2" rea-list-directory {} +', + "rea-list-directory", + request.input.device_path, + ADB_DIRECTORY_BATCH_SCRIPT, + ]), + { + timeoutMs: LISTING_TIMEOUT_MS, + maxOutputBytes: LISTING_MAX_OUTPUT_BYTES, + }, + signal, + ); if (!ran.ok) return ran; - const { entries, unparsedLines } = parseLsOutput(ran.value.stdout); + const { entries, unparsedLines } = parseAdbDirectoryListing( + ran.value.stdout, + ); return ok( createAnalysisExecution( { @@ -965,7 +939,7 @@ export class AdbProvider { provider, { limitations: [ - "Entry kinds derive from the permission string's type character", + "Entry kinds derive from stat permission mode; directory contents and link targets may change during capture", ...unparsedOverflowLimitation(unparsedLines), ], }, @@ -2046,15 +2020,16 @@ export class AdbProvider { const localPath = join(directory.value, "screen.png"); const existing = await refuseExistingTarget(operation, localPath); if (existing !== undefined) return err(existing); - const captured = await runAdbBinary( + const captured = await runAdbCapture( operation, + input.serial, selection.binary, adbArguments(input.serial, ["exec-out", "screencap", "-p"]), { timeoutMs: SCREEN_TIMEOUT_MS, maxOutputBytes: SCREEN_MAX_OUTPUT_BYTES }, signal, ); if (!captured.ok) return captured; - const dimensions = parsePngDimensions(captured.value); + const dimensions = parsePngDimensions(captured.value.stdout); if (dimensions.width === null) return err( new AnalysisProtocolError( @@ -2062,7 +2037,7 @@ export class AdbProvider { ), ); try { - await writeFile(localPath, captured.value, { flag: "wx" }); + await writeFile(localPath, captured.value.stdout, { flag: "wx" }); } catch (cause) { return err( new AnalysisOutputError( @@ -2072,14 +2047,16 @@ export class AdbProvider { ), ); } - const sha256 = createHash("sha256").update(captured.value).digest("hex"); + const sha256 = createHash("sha256") + .update(captured.value.stdout) + .digest("hex"); return ok( createAnalysisExecution( { client, serial: input.serial, local_path: localPath, - bytes: captured.value.byteLength, + bytes: captured.value.stdout.byteLength, sha256, width: dimensions.width, height: dimensions.height, diff --git a/src/adb/AdbShellOutput.ts b/src/adb/AdbShellOutput.ts index a67cf8e89..97720366f 100644 --- a/src/adb/AdbShellOutput.ts +++ b/src/adb/AdbShellOutput.ts @@ -53,65 +53,6 @@ export const parseProcessListOutput = ( return { columns, processes, unparsedLines }; }; -export interface AdbDirectoryEntry { - readonly name: string; - readonly kind: "directory" | "file" | "symlink" | "other"; - readonly permissions: string | null; - readonly owner: string | null; - readonly group: string | null; - readonly bytes: number | null; - readonly date: string | null; - readonly link_target: string | null; -} - -const LS_LINE = - /^([bcdlps-][rwxstST-]{9})\s+(?:(\d+)\s+)?(\S+)\s+(\S+)\s+(?:(\d+)\s+)?([\d-]{10})\s+([\d:]{4,8})\s+(.+)$/u; - -/** Parse `ls -la` output, including `total` headers and symlink targets. */ -export const parseLsOutput = ( - stdout: string, -): { - entries: readonly AdbDirectoryEntry[]; - unparsedLines: readonly string[]; -} => { - const entries: AdbDirectoryEntry[] = []; - const unparsedLines: string[] = []; - for (const rawLine of stdout.split(/\r?\n/u)) { - const line = rawLine.trimEnd(); - if (line === "" || line.startsWith("total ")) continue; - const match = LS_LINE.exec(line); - if (match === null) { - if (line.trim() !== "") unparsedLines.push(line); - continue; - } - const permissions = match[1]!; - let name = match[8]!.trim(); - let linkTarget: string | null = null; - const linkArrow = name.indexOf(" -> "); - if (linkArrow !== -1 && permissions.startsWith("l")) { - linkTarget = name.slice(linkArrow + 4); - name = name.slice(0, linkArrow); - } - entries.push({ - name, - kind: permissions.startsWith("d") - ? "directory" - : permissions.startsWith("l") - ? "symlink" - : permissions.startsWith("-") - ? "file" - : "other", - permissions, - owner: match[3] ?? null, - group: match[4] ?? null, - bytes: match[5] === undefined ? null : Number(match[5]), - date: `${match[6] ?? ""} ${match[7] ?? ""}`.trim() || null, - link_target: linkTarget, - }); - } - return { entries, unparsedLines }; -}; - export interface AdbFeatureEntry { readonly name: string; readonly version: number | null; diff --git a/src/contracts/adb/adbToolContracts.ts b/src/contracts/adb/adbToolContracts.ts index 30377069a..0ebd39790 100644 --- a/src/contracts/adb/adbToolContracts.ts +++ b/src/contracts/adb/adbToolContracts.ts @@ -174,7 +174,7 @@ export const ADB_TOOL_CONTRACTS = [ name: "list_adb_directory", ...toolContractMetadata("list_adb_directory"), description: - "List one absolute device directory (`ls -la`): names, kinds, permissions, owner, group, sizes, dates, and symlink targets. Recognizes the standard errors for absent paths and denied reads. Read-only.", + "List the immediate children of one absolute device directory, including hidden entries: names, kinds, permissions, owner, group, sizes, dates, and symlink targets. Names and targets preserve embedded newlines. Recognizes the standard errors for absent paths and denied reads. Read-only.", kind: "adb-provider", inputSchema: adbInputSchemas.list_adb_directory, outputSchema: evidenceResultOf(adbResultSchemas.list_adb_directory), diff --git a/src/domain/adb/adbDeviceAnalysis.ts b/src/domain/adb/adbDeviceAnalysis.ts index 37c72dbca..fd956dde9 100644 --- a/src/domain/adb/adbDeviceAnalysis.ts +++ b/src/domain/adb/adbDeviceAnalysis.ts @@ -149,7 +149,9 @@ export const adbInputSchemas = { .string() .min(1) .regex(/^\/[^\x00]*$/u, "Device path must be absolute") - .describe("Absolute device directory path to list (ls -la)"), + .describe( + "Absolute device directory path to list, including hidden children", + ), }), list_adb_features: z.strictObject({ serial: deviceSerialSchema.describe( diff --git a/src/process/ExecFileOutput.test.ts b/src/process/ExecFileOutput.test.ts index f4d690e33..78d87800a 100644 --- a/src/process/ExecFileOutput.test.ts +++ b/src/process/ExecFileOutput.test.ts @@ -5,9 +5,19 @@ import { describe, expect, it } from "vitest"; import { createTestTempDirectory } from "../../tests/fixtures/temporaryDirectory.js"; -import { execFileOutput } from "./ExecFileOutput.js"; +import { execFileBytes, execFileOutput } from "./ExecFileOutput.js"; describe("execFileOutput", () => { + it("preserves captured bytes for callers that own the output format", async () => { + const result = await execFileBytes(process.execPath, [ + "-e", + "process.stdout.write(Buffer.from([0x00, 0xff, 0x41])); process.stderr.write(Buffer.from([0xfe]));", + ]); + + expect(result.stdout).toEqual(Buffer.from([0x00, 0xff, 0x41])); + expect(result.stderr).toEqual(Buffer.from([0xfe])); + }); + it("captures output larger than Node's default execFile limit", async () => { const marker = "tail-marker"; const result = await execFileOutput(process.execPath, [ diff --git a/src/process/ExecFileOutput.ts b/src/process/ExecFileOutput.ts index dd6aaae62..08046d83d 100644 --- a/src/process/ExecFileOutput.ts +++ b/src/process/ExecFileOutput.ts @@ -1,10 +1,10 @@ import { execFile, - type ExecFileOptionsWithStringEncoding, + type ExecFileOptionsWithBufferEncoding, } from "node:child_process"; type ExecFileOutputOptions = Omit< - ExecFileOptionsWithStringEncoding, + ExecFileOptionsWithBufferEncoding, "encoding" | "maxBuffer" > & { readonly maxBuffer?: number; @@ -100,12 +100,12 @@ export const execFileOutputFailure = ( }; }; -/** Run a shell-free command while capturing its complete UTF-8 output. */ -export const execFileOutput = ( +/** Run a shell-free command while capturing its complete output bytes. */ +export const execFileBytes = ( command: string, arguments_: readonly string[], options: ExecFileOutputOptions = {}, -): Promise<{ readonly stdout: string; readonly stderr: string }> => +): Promise<{ readonly stdout: Buffer; readonly stderr: Buffer }> => new Promise((resolve, reject) => { const { stopSignal, signal, timeout, ...execOptions } = options; const invalid = timeout === undefined ? undefined : invalidTimeout(timeout); @@ -134,7 +134,7 @@ export const execFileOutput = ( ...(timeout === undefined ? {} : { timeout }), } : { killSignal: stopSignal }), - encoding: "utf8", + encoding: "buffer", maxBuffer: options.maxBuffer ?? Number.POSITIVE_INFINITY, }, (error, stdout, stderr) => { @@ -148,8 +148,8 @@ export const execFileOutput = ( ? timeoutError(command, timeout, error) : error; if (failure !== null) { - Reflect.set(failure, "stdout", stdout); - Reflect.set(failure, "stderr", stderr); + Reflect.set(failure, "stdout", stdout.toString("utf8")); + Reflect.set(failure, "stderr", stderr.toString("utf8")); reject(failure); return; } @@ -173,3 +173,14 @@ export const execFileOutput = ( stop("timeout"); }, timeout); }); + +/** Run a shell-free command while capturing its complete UTF-8 output. */ +export const execFileOutput = ( + command: string, + arguments_: readonly string[], + options: ExecFileOutputOptions = {}, +): Promise<{ readonly stdout: string; readonly stderr: string }> => + execFileBytes(command, arguments_, options).then(({ stdout, stderr }) => ({ + stdout: stdout.toString("utf8"), + stderr: stderr.toString("utf8"), + })); diff --git a/tests/boundary/process/adbDirectoryListing.test.ts b/tests/boundary/process/adbDirectoryListing.test.ts new file mode 100644 index 000000000..e060144db --- /dev/null +++ b/tests/boundary/process/adbDirectoryListing.test.ts @@ -0,0 +1,288 @@ +import { execFile } from "node:child_process"; +import { chmod, mkdir, readFile, symlink, writeFile } from "node:fs/promises"; +import { join } from "node:path"; +import { promisify } from "node:util"; +import { expect, it } from "vitest"; +import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; +import { AdbProvider } from "../../../src/adb/AdbProvider.js"; +import { adbResultSchemas } from "../../../src/domain/adb/adbDeviceAnalysis.js"; +import { + ADB_DIRECTORY_BATCH_SCRIPT, + parseAdbDirectoryListing, +} from "../../../src/adb/AdbDirectoryListing.js"; + +const execFileAsync = promisify(execFile); +const itPosix = it.skipIf(process.platform === "win32"); + +// AOSP Toybox stat's documented %A/%U/%G/%s/%y conversions are fixed-format +// metadata fields. This shim models those fields from host lstat data; it does +// not claim to exercise an Android device's Toybox binary. +const statShim = String.raw`#!${process.execPath} +const fs = require('node:fs'); +const args = process.argv.slice(2); +fs.appendFileSync(process.env.STAT_CALLS, args.slice(2).length + '\n'); +const fail = process.env.STAT_FAIL_PATH; +for (const path of args.slice(2)) { + if (path === fail) { + process.stdout.write('-rw-r--r--|1000|1000|1|2026-10-12 00:00:00\n'); + process.exit(1); + } + const stat = fs.lstatSync(path); + const kind = stat.isSymbolicLink() ? 'l' : stat.isDirectory() ? 'd' : '-'; + const permissions = kind + 'rw-r--r--'; + process.stdout.write(permissions + '|1000|1000|' + stat.size + '|2026-10-12 00:00:00\n'); +}`; + +const readlinkShim = String.raw`#!${process.execPath} +const fs = require('node:fs'); +fs.appendFileSync(process.env.READLINK_CALLS, 'called\n'); +process.stdout.write(fs.readlinkSync(process.argv[3])); +`; + +const makeTool = async (directory: string, name: string, contents: string) => { + const path = join(directory, name); + await writeFile(path, contents); + await chmod(path, 0o755); + return path; +}; + +const shellQuote = (value: string): string => + "'" + value.replaceAll("'", "'\\''") + "'"; + +const makeFakeAdb = async ( + directory: string, + toolDirectory: string, + calls: string, + linkCalls: string, +) => { + const path = join(directory, "fakeadb"); + await writeFile( + path, + `#!/bin/sh +if [ "$1" = version ]; then + printf 'Android Debug Bridge version 1.0.41\\nVersion 34.0.5-stub\\nInstalled as %s\\n' "$0" + exit 0 +fi +if [ "$1" = -s ]; then shift 2; fi +[ "$1" = shell ] || exit 90 +shift +export PATH=${shellQuote(`${toolDirectory}:` + (process.env.PATH ?? ""))} +export STAT_CALLS=${shellQuote(calls)} +export READLINK_CALLS=${shellQuote(linkCalls)} +exec /bin/sh -c "$*" +`, + { mode: 0o755 }, + ); + await chmod(path, 0o755); + return path; +}; + +const makeRawOutputFakeAdb = async ( + directory: string, + rawOutput: Buffer, +): Promise => { + const path = join(directory, "fakeadb-raw-output"); + const encoded = rawOutput.toString("base64"); + await writeFile( + path, + `#!/bin/sh +if [ "$1" = version ]; then + printf 'Android Debug Bridge version 1.0.41\\nVersion 34.0.5-stub\\nInstalled as %s\\n' "$0" + exit 0 +fi +if [ "$1" = -s ]; then shift 2; fi +[ "$1" = shell ] || exit 90 +exec ${shellQuote(process.execPath)} -e 'process.stdout.write(Buffer.from("${encoded}", "base64"))' +`, + { mode: 0o755 }, + ); + await chmod(path, 0o755); + return path; +}; + +const runScript = async ( + script: string, + paths: readonly string[], + environment: NodeJS.ProcessEnv, +) => { + const { stdout } = await execFileAsync( + "/bin/sh", + ["-c", script, "rea-list-directory", ...paths], + { encoding: "buffer", env: environment, maxBuffer: 64 * 1024 }, + ); + return stdout; +}; + +itPosix( + "lists adversarial names through the complete adb provider command", + async () => { + const root = await createTestTempDirectory("rea-adb-directory-listing-"); + const bin = join(root, "bin"); + const deviceDirectory = join(root, "device dir ' $"); + await mkdir(bin); + await mkdir(deviceDirectory); + const calls = join(root, "stat-calls"); + const linkCalls = join(root, "readlink-calls"); + await writeFile(calls, ""); + await writeFile(linkCalls, ""); + await makeTool(bin, "stat", statShim); + await makeTool(bin, "readlink", readlinkShim); + + const names = [ + "line\nbreak", + "arrow -> tick` quote' space", + "carriage\r雪", + "tail\n", + ".hidden", + ]; + const paths: string[] = []; + for (const name of names) { + const path = join(deviceDirectory, name); + await writeFile(path, "x"); + paths.push(path); + } + const nested = join(deviceDirectory, "nested"); + await mkdir(nested); + await writeFile(join(nested, "ghost"), "not a direct child"); + paths.push(nested); + const target = "target -> `quoted'\n雪\n"; + const link = join(deviceDirectory, "link\nname"); + await symlink(target, link); + paths.push(link); + const binary = await makeFakeAdb(root, bin, calls, linkCalls); + + const execution = await new AdbProvider({ + environment: { REA_ADB_PATH: binary }, + }).execute({ + operation: "list_adb_directory", + input: { serial: "test-device", device_path: deviceDirectory }, + }); + if (!execution.ok) throw execution.error; + const result = adbResultSchemas.list_adb_directory.parse( + execution.value.result, + ); + expect(result.device_path).toBe(deviceDirectory); + expect(result.unparsed_lines).toEqual([]); + expect(result.coverage).toBe("complete"); + expect(result.entries.map((entry) => entry.name).sort()).toEqual( + [...names, "nested", "link\nname"].sort(), + ); + expect( + result.entries.find((entry) => entry.name === "link\nname"), + ).toMatchObject({ + kind: "symlink", + bytes: expect.any(Number), + link_target: target, + }); + expect( + result.entries.filter((entry) => entry.kind !== "symlink"), + ).toHaveLength(names.length + 1); + expect( + result.entries.some((entry) => entry.name === "." || entry.name === ".."), + ).toBe(false); + expect((await readFile(calls, "utf8")).trim().split("\n")).toEqual([ + String(paths.length), + ]); + expect((await readFile(linkCalls, "utf8")).trim().split("\n")).toEqual([ + "called", + ]); + }, +); + +itPosix( + "discards a failed stat batch instead of pairing shortened rows with later names", + async () => { + const root = await createTestTempDirectory( + "rea-adb-directory-stat-failure-", + ); + const bin = join(root, "bin"); + await mkdir(bin); + const calls = join(root, "stat-calls"); + const linkCalls = join(root, "readlink-calls"); + await writeFile(calls, ""); + await writeFile(linkCalls, ""); + await makeTool(bin, "stat", statShim); + await makeTool(bin, "readlink", readlinkShim); + const first = join(root, "first"); + const omitted = join(root, "omitted"); + const last = join(root, "last"); + await Promise.all( + [first, omitted, last].map((path) => writeFile(path, "x")), + ); + + const output = await runScript( + ADB_DIRECTORY_BATCH_SCRIPT, + [first, omitted, last], + { + ...process.env, + PATH: `${bin}:${process.env.PATH ?? ""}`, + STAT_CALLS: calls, + READLINK_CALLS: linkCalls, + STAT_FAIL_PATH: omitted, + }, + ).catch((cause: unknown) => { + if ( + cause instanceof Error && + "stdout" in cause && + Buffer.isBuffer(cause.stdout) + ) + return cause.stdout; + throw cause; + }); + expect(parseAdbDirectoryListing(output)).toEqual({ + entries: [], + unparsedLines: [], + }); + expect((await readFile(calls, "utf8")).trim()).toBe("3"); + }, +); + +itPosix( + "preserves distinct invalid UTF-8 filenames as partial evidence", + async () => { + const root = await createTestTempDirectory( + "rea-adb-directory-invalid-utf8-", + ); + const deviceDirectory = join(root, "device"); + await mkdir(deviceDirectory); + const invalidNames = [Buffer.from([0xff]), Buffer.from([0xfe])]; + + // macOS rejects raw invalid-UTF-8 path bytes with EILSEQ, so fake adb + // returns the exact producer bytes while U+FFFD remains a valid record. + const metadata = Buffer.from( + "-rw-r--r--|1000|1000|1|2026-10-12 00:00:00\0", + ); + const records = [ + ...invalidNames.map((name) => + Buffer.concat([metadata, name, Buffer.from("\0\0")]), + ), + Buffer.concat([metadata, Buffer.from("\ufffd"), Buffer.from("\0\0")]), + ]; + const rawOutput = Buffer.concat(records); + const binary = await makeRawOutputFakeAdb(root, rawOutput); + const execution = await new AdbProvider({ + environment: { REA_ADB_PATH: binary }, + }).execute({ + operation: "list_adb_directory", + input: { serial: "test-device", device_path: deviceDirectory }, + }); + if (!execution.ok) throw execution.error; + const result = adbResultSchemas.list_adb_directory.parse( + execution.value.result, + ); + + expect(result.entries.map((entry) => entry.name)).toEqual(["\ufffd"]); + expect(result.coverage).toBe("partial"); + expect(result.unparsed_lines).toHaveLength(2); + for (const invalidName of invalidNames) { + const malformedRecord = Buffer.concat([ + metadata, + invalidName, + Buffer.from("\0\0"), + ]).toString("hex"); + expect( + result.unparsed_lines.some((line) => line.includes(malformedRecord)), + ).toBe(true); + } + }, +); From 69e097a8ca256ab97ee4b2883739447784a5f90e Mon Sep 17 00:00:00 2001 From: astralyx0129 Date: Mon, 12 Oct 2026 02:54:57 -0300 Subject: [PATCH 18/44] fix(scripts, install): honor test:fast "without build" promise and orient Node.js engine mismatches (#2026) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(scripts): defer dist/ imports in verifier helpers so test:fast runs without build Two helpers under scripts/lib/ reached into ../../dist/ at module load even though the top-level import was only needed by one of their exports. That turned mocked, dist-free tests into failing tests under `npm run test:fast`, which docs/testing.md § test scripts explicitly promises runs "without build": - tests/conformance/providers/hopper/realHopperSemantic.test.ts only calls requireCurrentDocument and resolveFixtureProcedure (both mock-only), but scripts/lib/real-hopper-semantic.mjs eagerly imported requireFunctionDossierOracle from dist/application/RealHopperAssertions.js. Moved the dist-dependent dossier oracle into a lazy loader called from verifyRealHopperFixture, which is where it is actually used (against the real Hopper bridge, after build:cached). - tests/evaluation/package/packagePlatformDiagnostics.test.ts only uses assertLinuxPackageProviderFailure, which depends on `json`, but scripts/lib/verify-package-core.mjs eagerly re-exported helpers from mcp-verifier-results.mjs, which in turn pulls four dist/ modules. Moved that import into verifyCompleteToolCatalog (the only consumer in this file). Downstream scripts (verify-recorded-crash.mjs, verify-package-mcp.mjs, verify-windows-package.mjs) are unaffected because they already run after build:cached. Reproduction before fix: rm -rf dist && npm run test:fast → 2 failed (both import-time errors) Reproduction after fix: rm -rf dist && npm run test:fast → 388 passed, 4924 tests, 0 failed npm run build:cached && npm run test:fast → 388 passed, 4924 tests, 0 failed Co-Authored-By: Claude Opus 4.7 * fix(install): orient Node.js version mismatch failures with actionable remediation install.sh previously told operators "use Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+" without saying how to install one. The curl|bash onboarding path then left the operator to guess between nvm, fnm, n, Volta, system packages, or nodejs.org — a lookup that bounces across search engines for a first-time user. Replace the one-line failure with a block that: - Names the detected Node.js version (so the operator confirms it is theirs). - Shows the three most common install paths (nvm, fnm, direct tarball). - Pins the Node.js release line (24) that satisfies the engine, so copy-paste commands produce a supported runtime instead of whichever "latest" is on top. - Maps uname -m / uname -s to the Node.js tarball label pair for this host (e.g. darwin/arm64, linux/x64), so the operator can grab the right archive from https://nodejs.org/dist/latest-v24.x/ without a second lookup. Verified with four Node.js versions (24.18 compatible, 25.9/20.11 outside the supported ranges, 22.18 below the minor floor) that remediation triggers only on real mismatches and names the host labels correctly. shellcheck install.sh and npm run check:fast remain clean. Co-Authored-By: Claude Opus 4.7 --------- Co-authored-by: Claude Opus 4.7 --- docs/user-visible-errors.csv | 18 ++++++++-- install.sh | 34 ++++++++++++++++++- scripts/lib/real-hopper-semantic.mjs | 15 +++++++- scripts/lib/verify-package-core.mjs | 17 +++++++--- .../boundary/filesystem/installScript.test.ts | 15 +++++++- 5 files changed, 90 insertions(+), 9 deletions(-) diff --git a/docs/user-visible-errors.csv b/docs/user-visible-errors.csv index f4934b80b..a9dd0d05d 100644 --- a/docs/user-visible-errors.csv +++ b/docs/user-visible-errors.csv @@ -86,8 +86,22 @@ harm_rank,location,trigger,current_copy,user_risk,proposed_replacement,implement 77,install.sh:node missing,node is absent,"Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+ is required; install it from nodejs.org and retry.",Low risk; exact versions and recovery,Keep current copy,unchanged,verified by shell branch inspection 78,install.sh:npm missing,npm is absent,npm is required; install it with Node.js and retry.,Low risk; exact recovery,Keep current copy,unchanged,verified by shell branch inspection 79,install.sh:node unreadable,node exists but does not report a parseable version,could not determine the active Node.js version.,No cause-local recovery,"The active Node.js version could not be read. Check that node works and is on PATH, then retry.",implemented,verified by exact unreadable-Node-version installer test -80,install.sh:Node 22 floor,Node 22 minor version is below 19,"Node.js VERSION is unsupported; use Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+.",Low risk; exact detected version and supported alternatives,Keep current copy,unchanged,verified by exact installer test using Node 20 and branch inspection -81,install.sh:Node 24 floor,Node 24 minor version is below 11,"Node.js VERSION is unsupported; use Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+.",Low risk; exact detected version and floor,Keep current copy,unchanged,verified by shell branch inspection +80,install.sh:Node 22 floor,Node 22 minor version is below 19,"Node.js VERSION is unsupported; use Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+.",No install guidance; operator must guess between nvm/fnm/system packages/nodejs.org,"Node.js VERSION is unsupported. + +REA requires Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+. Install one via: + nvm: nvm install 24 && nvm use 24 (https://github.com/nvm-sh/nvm) + fnm: fnm install 24 && fnm use 24 (https://github.com/Schniz/fnm) + Direct download for OS/ARCH: + https://nodejs.org/dist/latest-v24.x/ (grab the OS-ARCH tarball) +Then rerun this installer.",implemented,verified by exact installer test using Node 20 against the `linux/x64` fake host and by shell branch inspection +81,install.sh:Node 24 floor,Node 24 minor version is below 11,"Node.js VERSION is unsupported; use Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+.",No install guidance; operator must guess between nvm/fnm/system packages/nodejs.org,"Node.js VERSION is unsupported. + +REA requires Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+. Install one via: + nvm: nvm install 24 && nvm use 24 (https://github.com/nvm-sh/nvm) + fnm: fnm install 24 && fnm use 24 (https://github.com/Schniz/fnm) + Direct download for OS/ARCH: + https://nodejs.org/dist/latest-v24.x/ (grab the OS-ARCH tarball) +Then rerun this installer.",implemented,verified by shell branch inspection 82,install.sh:version syntax,Explicit version is not exact semantic version,version must be an exact semantic version.,Low risk; exact correction,Keep current copy,unchanged,verified by shell branch inspection 83,install.sh:release lookup,Latest GitHub release request fails,could not resolve the latest GitHub release.,No fallback despite supporting pinned versions,"The latest REA release could not be resolved. Check network access or pass --version VERSION, then retry.",implemented,verified by exact release-lookup installer test 84,install.sh:release response,Latest release response is not valid expected JSON,Node JSON parser stack followed by the safe release-response message,Leaks a parser stack and buries recovery guidance,The release response was invalid. Retry later or pass --version VERSION.,implemented,verified by exact malformed-release test with parser stderr suppressed diff --git a/install.sh b/install.sh index 5ed7cafc7..8790bb8df 100755 --- a/install.sh +++ b/install.sh @@ -25,6 +25,38 @@ fail() { exit 1 } +# Resolve the current host's Node.js tarball label pair; a label we cannot map +# is kept verbatim so the operator can still read it. Falls back on the raw +# `uname` outputs rather than inventing a label the Node.js release index does +# not publish, so a mismatch is obvious instead of silently wrong. +node_host_labels() { + case "$(uname -m)" in + arm64|aarch64) node_arch_label="arm64" ;; + x86_64|amd64) node_arch_label="x64" ;; + *) node_arch_label="$(uname -m)" ;; + esac + case "$(uname -s)" in + Darwin) node_os_label="darwin" ;; + Linux) node_os_label="linux" ;; + *) node_os_label="$(uname -s | tr '[:upper:]' '[:lower:]')" ;; + esac +} + +# Exit with actionable remediation when the active Node.js is unsupported. +# The engine floor stays in sync with package.json#engines.node — change both. +fail_node_version() { + local observed="$1" + node_host_labels + printf 'REA installation failed: Node.js %s is unsupported.\n\n' "$observed" >&2 + printf 'REA requires Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+. Install one via:\n' >&2 + printf ' nvm: nvm install 24 && nvm use 24 (https://github.com/nvm-sh/nvm)\n' >&2 + printf ' fnm: fnm install 24 && fnm use 24 (https://github.com/Schniz/fnm)\n' >&2 + printf ' Direct download for %s/%s:\n' "$node_os_label" "$node_arch_label" >&2 + printf ' https://nodejs.org/dist/latest-v24.x/ (grab the %s-%s tarball)\n' "$node_os_label" "$node_arch_label" >&2 + printf 'Then rerun this installer.\n' >&2 + exit 1 +} + usage() { cat <<'EOF' Usage: install.sh [--version VERSION] [--dry-run] [--no-setup] [--no-prompt] [--verbose] @@ -78,7 +110,7 @@ main() { [[ "$node_major" =~ ^[0-9]+$ && "$node_minor" =~ ^[0-9]+$ ]] || fail "the active Node.js version could not be read. Check that node works and is on PATH, then retry." if ! [[ "$_node_patch" =~ ^[0-9]+(\+[0-9A-Za-z.-]+)?$ ]] || ! ((node_major == 22 && node_minor >= 19 || node_major == 24 && node_minor >= 11 || node_major >= 26)); then - fail "Node.js $node_version is unsupported; use Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+." + fail_node_version "$node_version" fi if [[ -n "$version" ]]; then diff --git a/scripts/lib/real-hopper-semantic.mjs b/scripts/lib/real-hopper-semantic.mjs index 000b806d0..cb11b433c 100644 --- a/scripts/lib/real-hopper-semantic.mjs +++ b/scripts/lib/real-hopper-semantic.mjs @@ -1,5 +1,17 @@ import assert from "node:assert/strict"; -import { requireFunctionDossierOracle } from "../../dist/application/RealHopperAssertions.js"; + +/** + * `requireFunctionDossierOracle` is only used inside `verifyRealHopperFixture`, + * which runs against the real Hopper bridge after `build:cached`. Loading it + * lazily keeps this module importable from `test:fast` (which docs promise to + * run "without build" — see docs/testing.md § test scripts) so that mock-only + * callers such as `requireCurrentDocument` and `resolveFixtureProcedure` do + * not require `dist/`. + */ +const loadFunctionDossierOracle = () => + import("../../dist/application/RealHopperAssertions.js").then( + (module) => module.requireFunctionDossierOracle, + ); /** Require truthful tri-state permissions from real Hopper memory regions. */ export const requireTruthfulMemoryRegions = (segments) => { @@ -87,6 +99,7 @@ export async function verifyRealHopperFixture({ oracle, normalizedResult, }) { + const requireFunctionDossierOracle = await loadFunctionDossierOracle(); const main = await resolveFixtureProcedure( client, options, diff --git a/scripts/lib/verify-package-core.mjs b/scripts/lib/verify-package-core.mjs index a78b516da..cd543ead8 100644 --- a/scripts/lib/verify-package-core.mjs +++ b/scripts/lib/verify-package-core.mjs @@ -2,10 +2,17 @@ import { execFile } from "node:child_process"; import { lstat } from "node:fs/promises"; import { promisify } from "node:util"; import { Ajv2020 } from "ajv/dist/2020.js"; -import { - requireMcpLifecycleResult, - sortVerifierNames, -} from "./mcp-verifier-results.mjs"; + +/** + * `mcp-verifier-results.mjs` reaches into `dist/` at module load, so eager + * importing it propagates that build dependency to every consumer in this + * file. `verifyCompleteToolCatalog` is the only consumer, so we lazy-load + * the module there and keep the other helpers (`exec`, `run`, `json`, + * `pathExists`) usable from `test:fast` callers that only need `dist/`-free + * utilities — see docs/testing.md § test scripts, which promises `test:fast` + * runs "without build". + */ +const loadMcpVerifierResults = () => import("./mcp-verifier-results.mjs"); /** Promisified child_process execution helper. */ export const exec = promisify(execFile); @@ -35,6 +42,8 @@ export const json = (text) => JSON.parse(text); /** Verify schema validity and that the MCP catalog matches session metadata. */ export const verifyCompleteToolCatalog = async (client, options) => { + const { requireMcpLifecycleResult, sortVerifierNames } = + await loadMcpVerifierResults(); const listed = await client.listTools(undefined, options); const ajv = new Ajv2020({ strict: false, validateFormats: false }); for (const tool of listed.tools) { diff --git a/tests/boundary/filesystem/installScript.test.ts b/tests/boundary/filesystem/installScript.test.ts index 30af7d61d..0c45c1234 100644 --- a/tests/boundary/filesystem/installScript.test.ts +++ b/tests/boundary/filesystem/installScript.test.ts @@ -17,6 +17,19 @@ import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; const execFileAsync = promisify(execFile); +// install.sh:fail_node_version emits this recovery block verbatim. The fake +// `uname` in createFixture reports `x86_64` / `Linux`, so the host labels +// resolve to `linux/x64`. +const UNSUPPORTED_NODE_RECOVERY_LINUX_X64 = + "REA installation failed: Node.js 20.0.0 is unsupported.\n" + + "\n" + + "REA requires Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+. Install one via:\n" + + " nvm: nvm install 24 && nvm use 24 (https://github.com/nvm-sh/nvm)\n" + + " fnm: fnm install 24 && fnm use 24 (https://github.com/Schniz/fnm)\n" + + " Direct download for linux/x64:\n" + + " https://nodejs.org/dist/latest-v24.x/ (grab the linux-x64 tarball)\n" + + "Then rerun this installer.\n"; + describe("curl installer scenarios", { timeout: 20_000 }, () => { it("installs only a pinned REA CLI with closed stdin", async () => { const fixture = await createFixture(); @@ -87,7 +100,7 @@ describe("curl installer scenarios", { timeout: 20_000 }, () => { "unsupported Node", ["--version", "0.3.0"], { FAKE_NODE_VERSION: "20.0.0" }, - "REA installation failed: Node.js 20.0.0 is unsupported; use Node.js 22.x (>=22.19), 24.x (>=24.11), or 26+.\n", + UNSUPPORTED_NODE_RECOVERY_LINUX_X64, ], [ "unreadable Node version", From 4573e8cf35de822bfc5feabcc89ec3717c247c8c Mon Sep 17 00:00:00 2001 From: lyly Date: Mon, 12 Oct 2026 14:06:52 +0800 Subject: [PATCH 19/44] fix(ghidra): recover stale clients on same-target reopen (#2014) * fix(ghidra): recover stale clients on same-target reopen * test(ghidra): allow supervised shutdown in health regression * fix(ghidra): read process exit without diagnostic snapshots Health and startup exit checks called the supervisor snapshot, which concatenates retained launcher output only to read the exit code. * test(adb): align fixtures with literal output and directory commands --------- Co-authored-by: Cursor Agent Co-authored-by: morluto <76467478+morluto@users.noreply.github.com> --- src/adb/AdbProvider.test.ts | 21 +- src/cli/webModuleCommands.ts | 8 +- src/ghidra/GhidraClient.ts | 32 +- src/ghidra/GhidraProviderClient.ts | 6 +- src/process/ProviderProcess.ts | 28 +- src/process/ProviderProcessOutput.test.ts | 53 ++- tests/boundary/mcp/ghidraReopen.test.ts | 346 ++++++++++++++++++ .../providers/ghidra/ghidraClient.test.ts | 20 +- tests/fixtures/fakeGhidra.mjs | 8 + 9 files changed, 498 insertions(+), 24 deletions(-) create mode 100644 tests/boundary/mcp/ghidraReopen.test.ts diff --git a/src/adb/AdbProvider.test.ts b/src/adb/AdbProvider.test.ts index f9fb6f520..4d6c13001 100644 --- a/src/adb/AdbProvider.test.ts +++ b/src/adb/AdbProvider.test.ts @@ -495,7 +495,7 @@ it("reads a bounded logcat dump with the caller count and buffer", async () => { const { binary } = await writeAdbStub( shellStub({ logcat: - "08-10 13:00:00.000 I/Tag( 123): first\\n08-10 13:00:01.000 I/Tag( 123): second\\n", + "08-10 13:00:00.000 I/Tag( 123): first\n08-10 13:00:01.000 I/Tag( 123): second\n", }), ); const result = await evidenceResult(providerOver(binary), { @@ -903,7 +903,7 @@ it("resolves packages by case-insensitive substring", async () => { const { binary } = await writeAdbStub( shellStub({ "pm:list": - "package:/data/app/x/base.apk=com.whatsapp\\npackage:/data/app/y/base.apk=com.whatsapp.w4b\\npackage:/data/app/z/base.apk=com.example\\n", + "package:/data/app/x/base.apk=com.whatsapp\npackage:/data/app/y/base.apk=com.whatsapp.w4b\npackage:/data/app/z/base.apk=com.example\n", }), ); const result = await evidenceResult(providerOver(binary), { @@ -1109,20 +1109,23 @@ exit 1`, it("quotes caller text before adb joins the remote shell command", async () => { const { binary, root } = await writeAdbStub( - (root) => `if [ "$1" = "version" ]; then ${VERSION_BLOCK}; exit 0; fi + () => `if [ "$1" = "version" ]; then ${VERSION_BLOCK}; exit 0; fi shift 3 # Model adb's remote command joining, then execute the resulting shell string. -printf '#!/bin/sh\nprintf "%%s" "$@" > "${join(root, "observed")}"\n' > "${join(root, "ls")}" -chmod +x "${join(root, "ls")}" -PATH="${root}:$PATH" sh -c "$*" +sh -c "$*" `, ); - const value = `/sdcard/a 'quoted'; touch ${join(root, "injected")}`; - await providerOver(binary).execute({ + const value = join(root, `device 'quoted'; touch ${join(root, "injected")}`); + await mkdir(value, { recursive: true }); + const result = await evidenceResult(providerOver(binary), { operation: "list_adb_directory", input: { serial: "device", device_path: value }, }); - expect(await readFile(join(root, "observed"), "utf8")).toContain(value); + expect(result).toMatchObject({ + device_path: value, + entries: [], + coverage: "complete", + }); await expect(readFile(join(root, "injected"))).rejects.toThrow(); }); diff --git a/src/cli/webModuleCommands.ts b/src/cli/webModuleCommands.ts index b14f23da5..0e58ea804 100644 --- a/src/cli/webModuleCommands.ts +++ b/src/cli/webModuleCommands.ts @@ -32,13 +32,13 @@ export const registerWebModuleCommands = ( options: z.object({ importerUrl: webModuleTraceInputSchema.shape.importer_url, importMapPath: importMapInputSchema.shape.path + .optional() .describe( "Absolute local import-map JSON path; requires --import-map-base-url", - ) - .optional(), + ), importMapBaseUrl: importMapInputSchema.shape.base_url - .describe("HTTP(S) import-map base URL; requires --import-map-path") - .optional(), + .optional() + .describe("HTTP(S) import-map base URL; requires --import-map-path"), }), run: ({ args, options }) => withCommandCancellation(async (signal) => { diff --git a/src/ghidra/GhidraClient.ts b/src/ghidra/GhidraClient.ts index f2ccd381d..7731cf872 100644 --- a/src/ghidra/GhidraClient.ts +++ b/src/ghidra/GhidraClient.ts @@ -7,6 +7,10 @@ import type { ProgressReporter } from "../application/ProgressReporter.js"; import { AnalysisError } from "../domain/analysisErrorBase.js"; import type { JsonValue } from "../domain/jsonValue.js"; import { ProviderCleanupError } from "../domain/providerCleanupError.js"; +import { + providerRetryAction, + type ProviderOperationHealth, +} from "../domain/providerOperationHealth.js"; import { err, ok, type Result } from "../domain/result.js"; import { silentLogger } from "../logger.js"; import type { Logger } from "pino"; @@ -477,6 +481,32 @@ export class GhidraClient { }); } + /** Observed failures that prevent a retained session from being reused. */ + operationHealthSnapshot(): ProviderOperationHealth | undefined { + const exit = this.#process?.observedExit(); + const state = + exit !== undefined + ? "exited" + : this.#socket?.destroyed === true + ? "unreachable" + : this.#startPromise === undefined && + (this.#process !== undefined || + this.#socket !== undefined || + this.#runtimeRoot !== undefined || + this.#socketRoot !== undefined || + this.#snapshotOwners.size > 0) + ? "unknown" + : undefined; + if (state === undefined) return undefined; + return { + state, + stage: null, + retryAction: providerRetryAction(state), + exitCode: exit?.code ?? null, + requests: [], + }; + } + /** Latest bounded local diagnostics, with bearer material redacted. */ diagnostics(): Readonly> { return structuredClone(this.#diagnostics()); @@ -633,7 +663,7 @@ export class GhidraClient { deadline, failure: this.#failure, isClosed: () => this.#closing, - processExited: () => this.#process?.snapshot().exitCode !== undefined, + processExited: () => this.#process?.observedExit() !== undefined, startupTimeoutMs: this.#options.startupTimeoutMs, handlers: { data: this.#onSocketData, diff --git a/src/ghidra/GhidraProviderClient.ts b/src/ghidra/GhidraProviderClient.ts index b7ba24e0a..d2b963e52 100644 --- a/src/ghidra/GhidraProviderClient.ts +++ b/src/ghidra/GhidraProviderClient.ts @@ -108,7 +108,10 @@ export type GhidraProviderClientFactory = ( Partial< Pick< GhidraClient, - "runtimeLineage" | "readTargetSnapshot" | "hashTargetSnapshot" + | "operationHealthSnapshot" + | "runtimeLineage" + | "readTargetSnapshot" + | "hashTargetSnapshot" > >; @@ -840,6 +843,7 @@ export const createGhidraProviderClient = (input: { }), ); }, + operationHealthSnapshot: () => client.operationHealthSnapshot?.(), runtimeLineageSnapshots: () => { const observation = client.runtimeLineage?.() ?? null; return observation === null diff --git a/src/process/ProviderProcess.ts b/src/process/ProviderProcess.ts index 1768c6c5b..d7b95613f 100644 --- a/src/process/ProviderProcess.ts +++ b/src/process/ProviderProcess.ts @@ -78,6 +78,15 @@ export type ProviderProcessLaunch = readonly cleanup?: () => Promise; }; +/** + * Process exit recorded by the supervisor. + * Independent of retained stream diagnostics. + */ +export interface ProviderProcessExitObservation { + readonly code: number | null; + readonly signal: NodeJS.Signals | null; +} + /** Detached diagnostics captured for one supervised provider process. */ export interface ProviderProcessSnapshot { /** True only when a configured diagnostic budget excluded output bytes. */ @@ -233,10 +242,7 @@ export class ProviderProcessSupervisor { readonly #options: ProviderProcessSupervisorOptions; readonly #stdout = new ProcessOutputCapture(); readonly #stderr = new ProcessOutputCapture(); - readonly #exit = deferred<{ - readonly code: number | null; - readonly signal: NodeJS.Signals | null; - }>(); + readonly #exit = deferred(); readonly #outputClose = deferred(); #outputClosed = false; #stdoutObservedBytes = 0; @@ -271,9 +277,7 @@ export class ProviderProcessSupervisor { readonly #onError = (cause: Error): void => { this.#options.onDiagnostic?.({ type: "error", message: cause.message }); }; - #exitObservation: - | { readonly code: number | null; readonly signal: NodeJS.Signals | null } - | undefined; + #exitObservation: ProviderProcessExitObservation | undefined; #stopPromise: Promise | undefined; #disposed = false; @@ -292,6 +296,16 @@ export class ProviderProcessSupervisor { this.#recordExit(launch.process.exitCode, launch.process.signalCode); } + /** + * Recorded process exit without concatenating retained stream diagnostics. + * Undefined until exit or close is observed. + */ + observedExit(): ProviderProcessExitObservation | undefined { + const exit = this.#exitObservation; + if (exit === undefined) return undefined; + return { code: exit.code, signal: exit.signal }; + } + /** Latest retained output and exit observation, with explicit configured truncation. */ snapshot(): ProviderProcessSnapshot { return { diff --git a/src/process/ProviderProcessOutput.test.ts b/src/process/ProviderProcessOutput.test.ts index b24f7646e..28dc87dff 100644 --- a/src/process/ProviderProcessOutput.test.ts +++ b/src/process/ProviderProcessOutput.test.ts @@ -1,6 +1,6 @@ import { EventEmitter } from "node:events"; import { PassThrough } from "node:stream"; -import { expect, it } from "vitest"; +import { expect, it, vi } from "vitest"; import { ProviderProcessSupervisor } from "./ProviderProcess.js"; it("exit does not establish complete output when a producer closes its streams later", async () => { @@ -34,6 +34,57 @@ it("exit does not establish complete output when a producer closes its streams l } }); +it("reads an observed exit without materializing stream diagnostics", () => { + const producer = Object.assign(new EventEmitter(), { + stdout: new PassThrough(), + stderr: new PassThrough(), + exitCode: null, + signalCode: null, + kill: () => false, + }); + const supervisor = new ProviderProcessSupervisor({ + process: producer, + ownsProcessLifetime: false, + }); + try { + producer.stdout.write("retained-diagnostic"); + const snapshot = vi.spyOn(supervisor, "snapshot"); + expect(supervisor.observedExit()).toBeUndefined(); + producer.emit("exit", null, "SIGKILL"); + expect(supervisor.observedExit()).toEqual({ + code: null, + signal: "SIGKILL", + }); + expect(snapshot).not.toHaveBeenCalled(); + expect(supervisor.snapshot()).toMatchObject({ + stdout: { text: "retained-diagnostic" }, + exitCode: null, + signal: "SIGKILL", + }); + } finally { + supervisor.dispose(); + } +}); + +it("observes an exit that completed before supervision", () => { + const producer = Object.assign(new EventEmitter(), { + stdout: new PassThrough(), + stderr: new PassThrough(), + exitCode: 2, + signalCode: null, + kill: () => false, + }); + const supervisor = new ProviderProcessSupervisor({ + process: producer, + ownsProcessLifetime: false, + }); + try { + expect(supervisor.observedExit()).toEqual({ code: 2, signal: null }); + } finally { + supervisor.dispose(); + } +}); + it("reports a reached process memory limit only when the handle observed one", () => { let reached = false; const producer = Object.assign(new EventEmitter(), { diff --git a/tests/boundary/mcp/ghidraReopen.test.ts b/tests/boundary/mcp/ghidraReopen.test.ts new file mode 100644 index 000000000..bdac57233 --- /dev/null +++ b/tests/boundary/mcp/ghidraReopen.test.ts @@ -0,0 +1,346 @@ +import { spawn, type ChildProcess } from "node:child_process"; +import { access, mkdir, readFile, writeFile } from "node:fs/promises"; +import { join } from "node:path"; +import { fileURLToPath } from "node:url"; + +import { Client, InMemoryTransport } from "@modelcontextprotocol/client"; +import { describe, expect, it } from "vitest"; + +import { AnalysisProviderRegistry } from "../../../src/application/binary/AnalysisProviderRegistry.js"; +import { composeBinarySession } from "../../../src/application/binary/BinarySessionComposition.js"; +import { LazyAnalysisProvider } from "../../../src/application/binary/LazyAnalysisProvider.js"; +import { parseConfig } from "../../../src/config/parseConfig.js"; +import { elf } from "../../../src/domain/binaryTarget.fixture.js"; +import { ok } from "../../../src/domain/result.js"; +import { GhidraClient } from "../../../src/ghidra/GhidraClient.js"; +import type { GhidraInstallationHost } from "../../../src/ghidra/GhidraInstallation.js"; +import type { + GhidraLaunchSession, + GhidraLauncher, +} from "../../../src/ghidra/GhidraLauncher.js"; +import { GhidraProvider } from "../../../src/ghidra/GhidraProvider.js"; +import { silentLogger } from "../../../src/logger.js"; +import { createServer } from "../../../src/server/createServer.js"; +import { parseMcpToolError } from "../../fixtures/mcpToolError.js"; +import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; +import { waitForExit } from "../../support/process/processFixture.js"; + +const fixturePath = fileURLToPath( + new URL("../../fixtures/fakeGhidra.mjs", import.meta.url), +); + +type FixtureLaunch = { + child: ChildProcess; + runtimeRoot: string; + endpointPath: string; +}; + +class FixtureLauncher implements GhidraLauncher { + readonly launches: FixtureLaunch[] = []; + readonly requests: string[] = []; + cleanupAllowed = true; + cleanupAttempts = 0; + + async launch(session: GhidraLaunchSession) { + const projectRoot = join(session.runtimeRoot, "project"); + await mkdir(projectRoot, { recursive: true }); + const child = spawn(process.execPath, [fixturePath], { + stdio: ["ignore", "pipe", "pipe", "ipc"], + env: { + ...process.env, + REA_GHIDRA_FIXTURE_CONFIG: JSON.stringify({ + endpointPath: session.endpointPath, + token: session.token, + runId: session.runId, + providerVersion: session.providerVersion, + profileDigest: session.profileDigest, + targetSha256: session.targetSha256, + transport: session.transport, + }), + }, + }); + this.launches.push({ + child, + runtimeRoot: session.runtimeRoot, + endpointPath: session.endpointPath, + }); + child.on("message", (value: unknown) => { + if ( + typeof value === "object" && + value !== null && + "method" in value && + typeof value.method === "string" + ) + this.requests.push(value.method); + }); + return ok({ + process: child, + ownsProcessLifetime: true as const, + projectRoot, + ghidraLogPath: join(session.runtimeRoot, "ghidra.log"), + scriptLogPath: join(session.runtimeRoot, "script.log"), + cleanup: async () => { + this.cleanupAttempts += 1; + if (!this.cleanupAllowed) + return { + cleaned: false as const, + reason: "fixture cleanup is not yet confirmed", + }; + const signaled = child.exitCode === null && child.signalCode === null; + if (signaled) child.kill("SIGTERM"); + return (await waitForExit(child, 2_000)) + ? { cleaned: true as const, signaled } + : { cleaned: false as const, reason: "fixture child did not exit" }; + }, + }); + } +} + +const installationHost: GhidraInstallationHost = { + platform: "linux", + architecture: "x64", + readText: () => "application.version=12.1.4\n", + executable: () => true, + probeJava: () => ({ + version: "21.0.11", + major: 21, + home: "/fixture/jdk-21", + bits: 64, + runtime: "jdk", + }), +}; + +// Only installation discovery and the Java bridge are simulated. Requests use +// the production client, real child/socket and public MCP session routing. +const connectGhidra = async () => { + const directory = await createTestTempDirectory("rea-ghidra-reopen-"); + const target = join(directory, "target.elf"); + const source = elf(2, 1, 62); + await writeFile(target, source); + const config = parseConfig({ + GHIDRA_INSTALL_DIR: "/fixture/ghidra_12.1.4_PUBLIC", + }); + if (!config.ok) throw config.error; + const launcher = new FixtureLauncher(); + const clients: GhidraClient[] = []; + const provider = new GhidraProvider( + config.value, + silentLogger, + {}, + installationHost, + (options) => { + const client = new GhidraClient({ + ...options, + launcher, + platform: process.platform, + startupTimeoutMs: 5_000, + }); + clients.push(client); + return client; + }, + ); + const lazy = new LazyAnalysisProvider({ + identity: provider.identity(), + capabilities: provider.capabilities(), + load: () => Promise.resolve(provider), + }); + const session = composeBinarySession( + new AnalysisProviderRegistry([ + { + identity: () => provider.identity(), + capabilities: () => provider.capabilities(), + inspectAvailability: () => provider.inspectAvailability(), + inspectTargetSupport: (value) => provider.inspectTargetSupport(value), + resolveAnalysisProfile: (value, options) => + provider.resolveAnalysisProfile(value, options), + createClient: (value, profile, context) => + lazy.createClient(value, profile, context), + }, + ]), + ); + const server = createServer( + { kind: "session", session }, + { logger: silentLogger }, + ); + const mcp = new Client({ name: "ghidra-reopen", version: "1.0.0" }); + const [clientTransport, serverTransport] = + InMemoryTransport.createLinkedPair(); + const close = async () => { + launcher.cleanupAllowed = true; + await Promise.allSettled([mcp.close(), server.close()]); + const closed = await session.close(); + try { + for (const client of clients) + expect((await client.close()).ok).toBe(true); + expect(closed.ok).toBe(true); + } finally { + for (const { child } of launcher.launches) { + if (child.exitCode === null && child.signalCode === null) + child.kill("SIGTERM"); + expect(await waitForExit(child, 2_000)).toBe(true); + } + } + for (const launched of launcher.launches) await expectReleased(launched); + expect(await readFile(target)).toEqual(source); + }; + try { + await server.connect(serverTransport); + await mcp.connect(clientTransport); + } catch (cause) { + await close(); + throw cause; + } + return { + clients, + launcher, + close, + open: () => + mcp.callTool({ name: "open_binary", arguments: { path: target } }), + query: (addressSuffix: number) => + mcp.callTool({ + name: "list_strings", + arguments: { address: `0x200${addressSuffix}` }, + }), + }; +}; + +const firstLaunch = (launcher: FixtureLauncher): FixtureLaunch => { + const first = launcher.launches[0]; + if (first === undefined) throw new Error("Expected a running Ghidra fixture"); + return first; +}; + +const expectReleased = async ({ + child, + runtimeRoot, + endpointPath, +}: FixtureLaunch) => { + expect(await waitForExit(child, 2_000)).toBe(true); + await expect(access(runtimeRoot)).rejects.toMatchObject({ code: "ENOENT" }); + await expect(access(endpointPath)).rejects.toMatchObject({ code: "ENOENT" }); +}; + +const disconnect = async ( + child: ChildProcess, + client: GhidraClient | undefined, +) => { + if (client === undefined) + throw new Error("Expected a connected Ghidra client"); + await new Promise((resolve, reject) => { + const timer = setTimeout(() => { + child.off("message", received); + reject(new Error("Fixture did not acknowledge socket disconnection")); + }, 2_000); + const received = (message: unknown) => { + if ( + typeof message !== "object" || + message === null || + !("event" in message) || + message.event !== "disconnected" + ) + return; + clearTimeout(timer); + child.off("message", received); + resolve(); + }; + child.on("message", received); + child.send("disconnect"); + }); + await expect + .poll(async () => (await client.ping({ timeoutMs: 200 })).ok) + .toBe(false); + expect(child.exitCode).toBeNull(); + expect(child.signalCode).toBeNull(); +}; + +describe.skipIf(process.platform === "win32")( + "Ghidra MCP session recovery over Unix sockets", + () => { + it("keeps open lazy, reuses a live child, and replaces an exited child on reopen", async () => { + const harness = await connectGhidra(); + try { + expect((await harness.open()).isError).not.toBe(true); + expect((await harness.open()).isError).not.toBe(true); + expect(harness.clients).toHaveLength(0); + expect(harness.launcher.launches).toHaveLength(0); + expect((await harness.query(1)).isError).not.toBe(true); + const old = firstLaunch(harness.launcher); + expect((await harness.open()).isError).not.toBe(true); + expect((await harness.query(2)).isError).not.toBe(true); + expect(harness.launcher.launches).toHaveLength(1); + await expect + .poll( + () => + harness.launcher.requests.filter( + (method) => method === "list_strings", + ).length, + ) + .toBe(2); + expect(old.child.kill("SIGTERM")).toBe(true); + expect(await waitForExit(old.child, 2_000)).toBe(true); + expect(old.child.signalCode).toBe("SIGTERM"); + expect((await harness.open()).isError).not.toBe(true); + await expectReleased(old); + expect(harness.clients).toHaveLength(1); + expect(harness.launcher.launches).toHaveLength(1); + expect((await harness.query(3)).isError).not.toBe(true); + expect(harness.clients).toHaveLength(2); + expect(harness.launcher.launches).toHaveLength(2); + } finally { + await harness.close(); + } + }); + + it("retires a disconnected live child before lazily starting a replacement", async () => { + const harness = await connectGhidra(); + try { + expect((await harness.open()).isError).not.toBe(true); + expect((await harness.query(1)).isError).not.toBe(true); + const old = firstLaunch(harness.launcher); + await disconnect(old.child, harness.clients[0]); + expect((await harness.open()).isError).not.toBe(true); + await expectReleased(old); + expect(harness.clients).toHaveLength(1); + expect(harness.launcher.launches).toHaveLength(1); + expect((await harness.query(2)).isError).not.toBe(true); + expect(harness.clients).toHaveLength(2); + expect(harness.launcher.launches).toHaveLength(2); + } finally { + await harness.close(); + } + }); + + it("retains failed cleanup and refuses replacement until cleanup can be retried", async () => { + const harness = await connectGhidra(); + try { + expect((await harness.open()).isError).not.toBe(true); + expect((await harness.query(1)).isError).not.toBe(true); + const old = firstLaunch(harness.launcher); + await disconnect(old.child, harness.clients[0]); + harness.launcher.cleanupAllowed = false; + for (let attempt = 1; attempt <= 2; attempt += 1) { + expect(parseMcpToolError(await harness.open())).toMatchObject({ + error: { code: "cleanup_incomplete" }, + }); + expect(harness.launcher.cleanupAttempts).toBe(attempt); + expect(harness.clients).toHaveLength(1); + expect(harness.launcher.launches).toHaveLength(1); + expect(old.child.exitCode).toBeNull(); + expect(old.child.signalCode).toBeNull(); + await access(old.runtimeRoot); + } + harness.launcher.cleanupAllowed = true; + expect((await harness.open()).isError).not.toBe(true); + await expectReleased(old); + expect(harness.launcher.cleanupAttempts).toBe(3); + expect(harness.clients).toHaveLength(1); + expect(harness.launcher.launches).toHaveLength(1); + expect((await harness.query(2)).isError).not.toBe(true); + expect(harness.clients).toHaveLength(2); + expect(harness.launcher.launches).toHaveLength(2); + } finally { + await harness.close(); + } + }); + }, +); diff --git a/tests/boundary/providers/ghidra/ghidraClient.test.ts b/tests/boundary/providers/ghidra/ghidraClient.test.ts index 5b04f6c47..43abedb3d 100644 --- a/tests/boundary/providers/ghidra/ghidraClient.test.ts +++ b/tests/boundary/providers/ghidra/ghidraClient.test.ts @@ -232,6 +232,7 @@ describe("GhidraClient captured source snapshot", () => { if (!started.ok) throw started.error; const close = vi .spyOn(OwnedFileHandle.prototype, "close") + .mockRejectedValueOnce(new Error("snapshot descriptor close failed")) .mockRejectedValueOnce(new Error("snapshot descriptor close failed")); try { await expect(client.hashTargetSnapshot()).resolves.toMatchObject({ @@ -240,11 +241,19 @@ describe("GhidraClient captured source snapshot", () => { }); const owner = close.mock.contexts[0]; expect(owner).toBeInstanceOf(OwnedFileHandle); + await expect(client.close()).resolves.toMatchObject({ + ok: false, + error: { cleanupIncomplete: true }, + }); + expect(client.operationHealthSnapshot()).toMatchObject({ + state: "unknown", + }); const closed = await client.close(); if (!closed.ok) throw closed.error; + expect(client.operationHealthSnapshot()).toBeUndefined(); expect( close.mock.contexts.filter((context) => context === owner), - ).toHaveLength(2); + ).toHaveLength(3); } finally { close.mockRestore(); } @@ -591,11 +600,15 @@ describe("GhidraClient runtime removal failures", () => { }, }); await expect(access(runtimeRoot)).resolves.toBeUndefined(); + expect(client.operationHealthSnapshot()).toMatchObject({ + state: "unknown", + }); } finally { await chmod(runtimeRoot, 0o700); } await expect(client.close()).resolves.toEqual({ ok: true, value: null }); + expect(client.operationHealthSnapshot()).toBeUndefined(); await expect(access(runtimeRoot)).rejects.toMatchObject({ code: "ENOENT", }); @@ -626,16 +639,21 @@ describe("GhidraClient cleanup and diagnostics", () => { const client = clientFor(launcher, { runId: "11111111-1111-4111-8111-111111111111", }); + expect(client.operationHealthSnapshot()).toBeUndefined(); await expect(client.start()).resolves.toMatchObject({ ok: true }); + expect(client.operationHealthSnapshot()).toBeUndefined(); + const child = await launcher.started; await client.close(); + expect(client.operationHealthSnapshot()).toBeUndefined(); expect(client.diagnostics()).toMatchObject({ runtime_root: launcher.runtimeRoots[0], transport: HOST_TRANSPORT, endpoint_path: launcher.endpointPaths[0], project_root: join(launcher.runtimeRoots[0] ?? "", "project"), process_id: expect.any(Number), + exit_code: child.exitCode, run_id: "11111111-1111-4111-8111-111111111111", }); await expect(access(launcher.runtimeRoots[0] ?? "")).rejects.toMatchObject({ diff --git a/tests/fixtures/fakeGhidra.mjs b/tests/fixtures/fakeGhidra.mjs index 92f698001..b08410793 100644 --- a/tests/fixtures/fakeGhidra.mjs +++ b/tests/fixtures/fakeGhidra.mjs @@ -31,7 +31,10 @@ if (mode === "exit") process.exit(73); if (mode === "silent") setInterval(() => undefined, 1_000); else { await rm(endpointPath, { force: true }); + const sockets = new Set(); const server = createServer((socket) => { + sockets.add(socket); + socket.once("close", () => sockets.delete(socket)); socket.setEncoding("utf8"); const state = { buffer: { value: "" }, @@ -45,6 +48,11 @@ else { }; socket.on("data", (chunk) => onSocketData(socket, server, chunk, state)); }); + process.on("message", (message) => { + if (message !== "disconnect") return; + for (const socket of sockets) socket.destroy(); + process.send?.({ event: "disconnected" }); + }); if (transport === "unix-socket") server.listen(endpointPath); else { server.listen(0, "127.0.0.1", async () => { From 6bae774328724403255590aa2ddad4d7a2aa727f Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:07:46 +0800 Subject: [PATCH 20/44] fix(evidence): authenticate identities and retain extraction provenance Authenticate residual unknown IDs against their immutable identity fields. Permit valid empty ZIP extraction manifests and join firmware child provenance to parent-owned chunk and multi-file reports without inventing missing source ranges. Validated with focused identity, archive, cleanup, and firmware normalization tests. Firmware joins were checked against the pinned Unblob producer; no real Unblob extraction was run. --- .../EvidenceLedger.residualUnknown.test.ts | 47 ++++ src/domain/artifactGraph.ts | 2 +- src/domain/residualUnknown.ts | 31 ++- src/firmware/FirmwareReports.test.ts | 202 +++++++++++++++++- src/firmware/FirmwareReports.ts | 38 +++- .../filesystem/artifactZipIntegrity.test.ts | 29 ++- .../safeOutputTreeCloseFailures.test.ts | 12 +- ...rtifactProvider.extractionIdentity.test.ts | 14 +- 8 files changed, 334 insertions(+), 41 deletions(-) diff --git a/src/application/investigation/EvidenceLedger.residualUnknown.test.ts b/src/application/investigation/EvidenceLedger.residualUnknown.test.ts index 67edd8a6f..bb81f97ce 100644 --- a/src/application/investigation/EvidenceLedger.residualUnknown.test.ts +++ b/src/application/investigation/EvidenceLedger.residualUnknown.test.ts @@ -1,3 +1,6 @@ +import { createHash } from "node:crypto"; + +import canonicalize from "canonicalize"; import { describe, expect, it } from "vitest"; import { EvidenceLedger } from "./EvidenceLedger.js"; @@ -373,3 +376,47 @@ describe("residual unknown registry resolution and history", () => { expect(serializeEvidenceBundle(base.export())).toBe(before); }); }); + +describe("residual unknown imported identity", () => { + it("rejects a rehashed wrong ID atomically and accepts valid history", () => { + const store = ledger(); + const created = store.recordUnknown( + input("Stable question?"), + mutation("stable"), + ); + if (!created.ok) throw created.error; + const initialBundle = store.export(); + const mutationEvidenceId = created.value.mutation_evidence_ids[0]; + if (mutationEvidenceId === undefined) + throw new Error("Missing mutation Evidence ID"); + const otherId = createResidualUnknown( + input("Different question?"), + mutationEvidenceId, + created.value.scope_digest, + ).unknown_id; + const { revision_digest: _revisionDigest, ...revision } = created.value; + const incorrectIdentity = { ...revision, unknown_id: otherId }; + const encoded = canonicalize(incorrectIdentity); + if (encoded === undefined) throw new Error("Could not encode revision"); + const tampered = { + ...incorrectIdentity, + revision_digest: createHash("sha256").update(encoded).digest("hex"), + }; + const invalidBundle = createEvidenceBundle(initialBundle.records, [ + tampered, + ]); + const before = serializeEvidenceBundle(initialBundle); + + expect(() => parseEvidenceBundle(invalidBundle)).toThrow(); + expect(store.import(invalidBundle).ok).toBe(false); + expect(serializeEvidenceBundle(store.export())).toBe(before); + + expect( + store.updateUnknown(update(created.value), mutation("stable-update")).ok, + ).toBe(true); + const validHistory = store.export(); + const imported = ledger(); + expect(imported.import(validHistory).ok).toBe(true); + expect(imported.export()).toEqual(validHistory); + }); +}); diff --git a/src/domain/artifactGraph.ts b/src/domain/artifactGraph.ts index a3f301c09..fd5d0177d 100644 --- a/src/domain/artifactGraph.ts +++ b/src/domain/artifactGraph.ts @@ -212,7 +212,7 @@ const extractedArtifactSchema = z.object({ const artifactExtractionManifestSchema = z.object({ extraction_id: extractionIdSchema, source_manifest_id: manifestIdSchema, - selected_occurrence_ids: z.array(occurrenceIdSchema).min(1), + selected_occurrence_ids: z.array(occurrenceIdSchema), files_sha256: sha256Schema, output_root_alias: z.literal("$OUTPUT_ROOT"), }); diff --git a/src/domain/residualUnknown.ts b/src/domain/residualUnknown.ts index bf0d09289..88e0da49e 100644 --- a/src/domain/residualUnknown.ts +++ b/src/domain/residualUnknown.ts @@ -19,6 +19,21 @@ const environmentRequirementSchema = z.object({ .enum(["none", "process", "container", "virtual-machine"]) .nullable(), }); +const stableUnknownId = ( + question: string, + domain: string, + scopeDigest: string | null, +): string => + `unk_${createHash("sha256") + .update( + canonicalJson({ + domain: domain.trim(), + question: question.replace(/\s+/gu, " ").trim(), + scope_digest: scopeDigest, + }), + ) + .digest("hex")}`; + const probeSchema = z.object({ operation: z.string().min(1), rationale: text, @@ -88,6 +103,15 @@ type UnknownRevision = Omit< >; const refineRevision = (value: UnknownRevision, context: z.RefinementCtx) => { + if ( + value.unknown_id !== + stableUnknownId(value.question, value.domain, value.scope_digest) + ) + context.addIssue({ + code: "custom", + message: "Residual unknown ID does not match its immutable identity", + path: ["unknown_id"], + }); if ((value.revision === 1) !== (value.previous_revision_digest === null)) context.addIssue({ code: "custom", @@ -213,13 +237,8 @@ export const createResidualUnknown = ( ): ResidualUnknown => { const question = input.question.replace(/\s+/gu, " ").trim(); const domain = input.domain.trim(); - const identity = canonicalJson({ - domain, - question, - scope_digest: scopeDigest, - }); const revision = { - unknown_id: `unk_${createHash("sha256").update(identity).digest("hex")}`, + unknown_id: stableUnknownId(question, domain, scopeDigest), revision: 1, previous_revision_digest: null, scope_digest: scopeDigest, diff --git a/src/firmware/FirmwareReports.test.ts b/src/firmware/FirmwareReports.test.ts index 5ffd5a722..b924180ba 100644 --- a/src/firmware/FirmwareReports.test.ts +++ b/src/firmware/FirmwareReports.test.ts @@ -117,14 +117,17 @@ describe("Unblob multi-file extraction diagnostics", () => { }, ]); }); +}); - it("retains nested MultiFile extraction failures in partial coverage", () => { +describe("Unblob task derivation identities", () => { + it("joins chunk and MultiFile derivations to their producer blob reports", () => { const outputPath = `${context.outputRoot}/multi`; + const chunkPath = `${context.outputRoot}/chunk-child`; const childTask = { path: outputPath, depth: 1, blob_id: "multi-id", - is_multi_file: true, + is_multi_file: false, }; const extractionFailure = { __typename__: "ExtractorDependencyNotFoundReport", @@ -144,10 +147,51 @@ describe("Unblob multi-file extraction diagnostics", () => { [ { ...parent, - reports: parent.reports.filter( - (item) => item.__typename__ !== "UnknownChunkReport", - ), - subtasks: [childTask], + reports: [ + ...parent.reports.filter( + (item) => item.__typename__ !== "UnknownChunkReport", + ), + { + __typename__: "ChunkReport", + id: "chunk-id", + start_offset: 4, + end_offset: 10, + size: 6, + handler_name: "gzip", + is_encrypted: false, + extraction_reports: [], + }, + multiFileReport, + ], + subtasks: [ + { + path: chunkPath, + depth: 1, + blob_id: "chunk-id", + is_multi_file: false, + }, + childTask, + ], + }, + { + task: { + path: chunkPath, + depth: 1, + blob_id: "chunk-id", + is_multi_file: false, + }, + reports: [ + { + __typename__: "StatReport", + path: chunkPath, + size: 4, + is_file: true, + is_dir: false, + is_link: false, + link_target: null, + }, + ], + subtasks: [], }, { task: childTask, @@ -161,7 +205,6 @@ describe("Unblob multi-file extraction diagnostics", () => { is_link: false, link_target: null, }, - multiFileReport, ], subtasks: [], }, @@ -170,9 +213,25 @@ describe("Unblob multi-file extraction diagnostics", () => { ); expect(normalized.coverage).toBe("partial"); + expect(normalized.derivations).toEqual([ + { + parent_path: "$input", + child_path: "$output/chunk-child", + provider_blob_id: "chunk-id", + handler: "gzip", + parent_file_range: { offset: 4, length: 6 }, + }, + { + parent_path: "$input", + child_path: "$output/multi", + provider_blob_id: "multi-id", + handler: "multipart-firmware", + parent_file_range: null, + }, + ]); expect(normalized.diagnostics).toEqual([ { - input_path: "$output/multi", + input_path: "$input", stage: "multipart-firmware", missing_dependencies: ["sasquatch"], report: multiFileReport, @@ -181,6 +240,133 @@ describe("Unblob multi-file extraction diagnostics", () => { }); }); +describe("Unblob blob identity validation", () => { + it("joins reports within each parent, allows missing provenance and rejects local duplicates", () => { + const rootChild = { + path: `${context.outputRoot}/root-child`, + depth: 1, + blob_id: "shared-id", + is_multi_file: false, + }; + const containerTask = { + path: `${context.outputRoot}/container`, + depth: 1, + blob_id: "container-id", + is_multi_file: false, + }; + const nestedChild = { + path: `${context.outputRoot}/container/nested-child`, + depth: 2, + blob_id: "shared-id", + is_multi_file: false, + }; + const fileRecord = (task: T) => ({ + task, + reports: [ + { + __typename__: "StatReport", + path: task.path, + size: 1, + is_file: true, + is_dir: false, + is_link: false, + link_target: null, + }, + ], + subtasks: [], + }); + const chunk = ( + id: string, + handler: string, + start: number, + end: number, + ) => ({ + __typename__: "ChunkReport", + id, + start_offset: start, + end_offset: end, + size: end - start, + handler_name: handler, + is_encrypted: false, + extraction_reports: [], + }); + const base = root(); + const rootReports = [ + ...base.reports.filter( + (report) => report.__typename__ !== "UnknownChunkReport", + ), + chunk("shared-id", "root-handler", 0, 4), + chunk("container-id", "container-handler", 4, 10), + ]; + const normalized = normalizeUnblobReport( + [ + { + ...base, + reports: rootReports, + subtasks: [rootChild, containerTask], + }, + fileRecord(rootChild), + { + task: containerTask, + reports: [ + { + __typename__: "StatReport", + path: containerTask.path, + size: 10, + is_file: true, + is_dir: false, + is_link: false, + link_target: null, + }, + chunk("shared-id", "nested-handler", 2, 5), + ], + subtasks: [nestedChild], + }, + fileRecord(nestedChild), + ], + context, + ); + + expect(normalized.derivations).toMatchObject([ + { handler: "root-handler", parent_file_range: { offset: 0, length: 4 } }, + { + handler: "container-handler", + parent_file_range: { offset: 4, length: 6 }, + }, + { + handler: "nested-handler", + parent_file_range: { offset: 2, length: 3 }, + }, + ]); + + const noOrigin = { + ...base, + reports: base.reports.filter( + (report) => report.__typename__ !== "UnknownChunkReport", + ), + subtasks: [rootChild], + }; + expect( + normalizeUnblobReport([noOrigin, fileRecord(rootChild)], context) + .derivations[0], + ).toMatchObject({ handler: null, parent_file_range: null }); + + expect(() => + normalizeUnblobReport( + [ + { + ...base, + reports: [...rootReports, chunk("shared-id", "duplicate", 10, 12)], + subtasks: [rootChild], + }, + fileRecord(rootChild), + ], + context, + ), + ).toThrow("Duplicate blob identity in parent task"); + }); +}); + describe("firmware producer boundaries", () => { it("rejects unknown tasks outside the owned output and disconnected task graphs", () => { const record = root(); diff --git a/src/firmware/FirmwareReports.ts b/src/firmware/FirmwareReports.ts index 782c52a89..90857de84 100644 --- a/src/firmware/FirmwareReports.ts +++ b/src/firmware/FirmwareReports.ts @@ -57,6 +57,10 @@ const region = z.object({ end_offset: integer, size: integer, }); +type BlobOrigin = { + readonly handler: string | null; + readonly range: { readonly offset: number; readonly length: number } | null; +}; const known = new Set([ "StatReport", "HashReport", @@ -191,6 +195,20 @@ export const normalizeUnblobReport = ( const sizes = new Map(); const depths: string[] = []; const diagnostics: JsonValue[] = []; + const blobOrigins = new Map(); + const addBlobOrigin = ( + parentPath: string, + id: string, + origin: BlobOrigin, + ) => { + const key = JSON.stringify([parentPath, id]); + if (blobOrigins.has(key)) + throw new AnalysisOutputError( + "extract_firmware", + `Duplicate blob identity in parent task: ${parentPath} (${id})`, + ); + blobOrigins.set(key, origin); + }; const chunks: { input_path: string; provider_id: string; @@ -288,6 +306,10 @@ export const normalizeUnblobReport = ( jsonValueSchema.parse(problem), ), ); + addBlobOrigin(path, parsed.id, { + handler: detail?.handler_name ?? null, + range: { offset: parsed.start_offset, length: parsed.size }, + }); chunks.push({ input_path: path, provider_id: parsed.id, @@ -305,6 +327,10 @@ export const normalizeUnblobReport = ( } if (item.__typename__ === "MultiFileReport") { const parsed = multiFile.parse(item); + addBlobOrigin(path, parsed.id, { + handler: parsed.handler_name, + range: null, + }); if (parsed.extraction_reports.length > 0) diagnostics.push( extractionDiagnostic( @@ -319,16 +345,6 @@ export const normalizeUnblobReport = ( const recordsByPath = new Map( records.map((record) => [record.task.path, record.task]), ); - const chunksByOrigin = new Map(); - for (const item of chunks) { - const key = JSON.stringify([item.input_path, item.provider_id]); - if (chunksByOrigin.has(key)) - throw new AnalysisOutputError( - "extract_firmware", - `Duplicate chunk identity in ${item.input_path}`, - ); - chunksByOrigin.set(key, item); - } const derivations = records.flatMap((record) => record.subtasks.map((child) => { const parentPath = logical(record.task.path); @@ -348,7 +364,7 @@ export const normalizeUnblobReport = ( "extract_firmware", `Child task identity disagrees with its analysis: ${childPath}`, ); - const origin = chunksByOrigin.get( + const origin = blobOrigins.get( JSON.stringify([parentPath, child.blob_id]), ); return { diff --git a/tests/boundary/filesystem/artifactZipIntegrity.test.ts b/tests/boundary/filesystem/artifactZipIntegrity.test.ts index 6f84a1782..0bb475518 100644 --- a/tests/boundary/filesystem/artifactZipIntegrity.test.ts +++ b/tests/boundary/filesystem/artifactZipIntegrity.test.ts @@ -1,4 +1,4 @@ -import { readFile, writeFile } from "node:fs/promises"; +import { readFile, readdir, writeFile } from "node:fs/promises"; import { join } from "node:path"; import { TextReader, Uint8ArrayWriter, ZipWriter } from "@zip.js/zip.js"; @@ -11,7 +11,32 @@ import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { parseBinaryTarget } from "../../../src/application/BinaryTargetResolver.js"; import { ZipArtifactReader } from "../../../src/artifacts/ZipArtifactReader.js"; import { withArtifactClient } from "../../support/artifactClientScope.js"; -import { artifactInventoryResultSchema } from "../../../src/domain/artifactGraph.js"; +import { + artifactExtractionResultSchema, + artifactInventoryResultSchema, +} from "../../../src/domain/artifactGraph.js"; + +it("completes an empty ZIP extraction with an empty identity", async () => { + const root = await createTestTempDirectory("rea-empty-artifact-extraction-"); + const archive = join(root, "empty.zip"); + await writeOrderedZip(archive, []); + const archiveTarget = await parseBinaryTarget(archive); + if (!archiveTarget.ok) throw archiveTarget.error; + + const output = join(root, "output"); + const result = await withArtifactClient(archiveTarget.value, (client) => + client.execute("extract_artifact", { output_root: output }), + ); + if (!result.ok) throw result.error; + const extraction = artifactExtractionResultSchema.parse(result.value.result); + expect(extraction.extraction_manifest).toMatchObject({ + source_manifest_id: extraction.manifest.manifest_id, + selected_occurrence_ids: [], + }); + expect(extraction.artifacts).toEqual([]); + expect(extraction.containment_verified).toBe(true); + expect(await readdir(output)).toEqual([]); +}); it.each([ ["legacy CP437", Buffer.from([0x82, 0x2e, 0x74, 0x78, 0x74]), false, "é.txt"], diff --git a/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts b/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts index a58d12312..ee285dbd5 100644 --- a/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts +++ b/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts @@ -1,8 +1,9 @@ import { createHash } from "node:crypto"; -import { access, mkdir, readFile, rm, writeFile } from "node:fs/promises"; +import { access, readFile, rm, writeFile } from "node:fs/promises"; import { join } from "node:path"; import { Readable } from "node:stream"; +import { TextReader, Uint8ArrayWriter, ZipWriter } from "@zip.js/zip.js"; import { describe, expect, it, onTestFinished, vi } from "vitest"; const injectedFilesystemFailures = vi.hoisted(() => ({ @@ -140,16 +141,17 @@ it.skipIf(process.platform === "win32").each([false, true])( "preserves extracted output when commit close fails (persistent: %s)", async (persistent) => { const root = await createTestTempDirectory("rea-extraction-commit-close-"); - const source = join(root, "source"); + const source = join(root, "source.zip"); const output = join(root, "published"); - await mkdir(source); - await writeFile(join(source, "payload.txt"), "committed bytes"); + const writer = new ZipWriter(new Uint8ArrayWriter()); + await writer.add("payload.txt", new TextReader("committed bytes")); + await writeFile(source, await writer.close()); const client = new ArtifactProvider(process.env).createClient({ path: source, sourcePath: source, sha256: "0".repeat(64), kind: "archive", - format: "asar", + format: "zip", }); onTestFinished(async () => { injectedFilesystemFailures.blockCloseRetries = false; diff --git a/tests/boundary/providers/native/artifactProvider.extractionIdentity.test.ts b/tests/boundary/providers/native/artifactProvider.extractionIdentity.test.ts index fa0081f46..7f47b030c 100644 --- a/tests/boundary/providers/native/artifactProvider.extractionIdentity.test.ts +++ b/tests/boundary/providers/native/artifactProvider.extractionIdentity.test.ts @@ -1,8 +1,8 @@ -import { mkdir, writeFile } from "node:fs/promises"; import { join } from "node:path"; import { describe, expect, it } from "vitest"; +import { writeOrderedZip } from "../../../fixtures/artifactEntryOrder.js"; import { createTestTempDirectory } from "../../../fixtures/temporaryDirectory.js"; import { ArtifactProvider } from "../../../../src/artifacts/ArtifactProvider.js"; @@ -13,12 +13,10 @@ import type { BinaryTarget } from "../../../../src/domain/binaryTargetTypes.js"; describe("artifact extraction identity", () => { it("uses code-point order for path-independent extraction identities", async () => { const root = await createTestTempDirectory("rea-extract-order-"); - const source = join(root, "source"); - await mkdir(source); - for (const name of ["ä.js", "a.js", "Z.js"]) - await writeFile(join(source, name), `${name}\n`); + const source = join(root, "source.zip"); + await writeOrderedZip(source, ["ä.js", "a.js", "Z.js"]); const result = await new ArtifactProvider(process.env) - .createClient(directoryTarget(source)) + .createClient(archiveTarget(source)) .execute( "extract_artifact", artifactExtractionExecutionSchema.parse({ @@ -36,10 +34,10 @@ describe("artifact extraction identity", () => { }); }); -const directoryTarget = (path: string): BinaryTarget => ({ +const archiveTarget = (path: string): BinaryTarget => ({ path, sourcePath: path, sha256: "0".repeat(64), kind: "archive", - format: "asar", + format: "zip", }); From 966f7cc84b4a8bb0043641cb64d7a7aaf8715e05 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:07:58 +0800 Subject: [PATCH 21/44] fix(browser): preserve body API provenance through script export Label new captured response bytes as Playwright body API results and retain the possibility of a credentialed follow-up load. Preserve legacy representations and source limitations through export without treating body-origin uncertainty as missing event coverage. Validated source and filesystem boundary tests plus real Chrome CLI and MCP network workflows covering binary, compressed, empty, unfinished, and same-URL responses and profile cleanup. --- docs/browser-scenario-contract.md | 9 +- docs/website-script-export.md | 16 ++- scripts/lib/browser-network-assertions.mjs | 4 +- .../BrowserScenarioPartialObservation.ts | 117 +++++++++++------- .../PlaywrightBrowserScenarioProvider.test.ts | 65 ++++++++++ src/browser/assets/PublishWebScripts.ts | 20 ++- src/browser/assets/ScenarioScriptCapture.ts | 5 +- .../assets/ScriptCaptureAdapters.test.ts | 2 + .../network/PlaywrightNetworkContent.ts | 4 +- .../network/PlaywrightScenarioNetwork.test.ts | 3 + .../network/PlaywrightScenarioNetwork.ts | 2 +- src/domain/browserNetworkEvidence.test.ts | 6 + src/domain/browserNetworkEvidence.ts | 6 + src/domain/webScriptExport.ts | 10 +- .../filesystem/webScriptExport.test.ts | 93 +++++++++----- 15 files changed, 270 insertions(+), 92 deletions(-) diff --git a/docs/browser-scenario-contract.md b/docs/browser-scenario-contract.md index 16aaa2f36..b994d2936 100644 --- a/docs/browser-scenario-contract.md +++ b/docs/browser-scenario-contract.md @@ -262,8 +262,13 @@ Capturing more data alone does not establish a website change. states. Captured bodies retain base64 bytes, byte count, media type, and SHA-256 of the retained bytes. Request bytes are those exposed by Playwright; a `not_exposed` request body does not prove absence or complete multipart file -coverage. Response bytes are decoded by the browser, not the compressed wire -representation. No later fetch is substituted for the original response. +coverage. Response bytes are the result of Playwright's `Response.body()` API. +Playwright may satisfy that API with a credentialed follow-up load of the +request URL when CDP has no response body. Event and transaction references +identify the associated Playwright response object, but do not verify that the +retained bytes came from the original network transaction. Successful selected +response bodies include this limitation in the capture. These bytes are not +the compressed wire representation. Headers preserve producer order and duplicates. Authorization, Proxy-Authorization, Cookie, and Set-Cookie values are null with `redacted: true`; ordinary values remain intact. Declared UTF-8 secret values diff --git a/docs/website-script-export.md b/docs/website-script-export.md index 31ffaff45..1af4ad295 100644 --- a/docs/website-script-export.md +++ b/docs/website-script-export.md @@ -48,9 +48,14 @@ its own descriptor. It does not duplicate script bytes. - Passive sources are the Debugger-exposed text encoded as UTF-8, with the verified source digest and source-map declaration retained. Unavailable or explicitly non-JavaScript sources remain unavailable. -- Scenario sources use observed requests classified as `script`, matched to - completed response bytes by transaction and event identity. URLs never select - the response. Binary and empty retained bytes are written exactly. +- Scenario sources use observed requests classified as `script`, associated + with one response event and the bytes returned by Playwright's + `Response.body()` API for its response object. URLs never select the response. + Playwright may load the request URL again with credentials when CDP has no + response body, so transaction and event references do not verify that + exported bytes came from the original network transaction. The capture and + export manifest retain this limitation. Binary and empty retained bytes are + written exactly. - Ordinary query-free `.js`, `.mjs`, and `.cjs` URL paths are arranged under a directory for each origin, preserving their relative module layout when it is unambiguous. @@ -62,8 +67,9 @@ its own descriptor. It does not duplicate script bytes. ## Interpretation and limits Export does not fetch URLs or execute JavaScript. Retained Debugger sources and -response bytes do not establish execution or a complete website. Response bytes -are browser-decoded bytes; they do not represent transfer encoding. Declared +response bytes do not establish execution or a complete website. Scenario +response bytes preserve Playwright's body API result; see the source-body +identity limitation above. Declared redaction is preserved and can change JavaScript syntax; passive captures do not report a byte-redaction flag, so that value remains unknown. diff --git a/scripts/lib/browser-network-assertions.mjs b/scripts/lib/browser-network-assertions.mjs index 7f99ca0b5..015a71854 100644 --- a/scripts/lib/browser-network-assertions.mjs +++ b/scripts/lib/browser-network-assertions.mjs @@ -117,7 +117,7 @@ export function assertBrowserNetworkEvidence( assert.deepEqual(retained(responseFor("/compressed")), networkFixtureDecoded); assert.equal( responseFor("/compressed").body.representation, - "browser-decoded-response-bytes", + "playwright-response-body-bytes", ); const formRequest = requestEvents.find( (event) => event.url.url === `${origin}/form`, @@ -149,7 +149,7 @@ export function assertBrowserNetworkEvidence( return { same_url_markers: markers, binary_bytes: networkFixtureBinary.length, - compressed_representation: "browser-decoded-response-bytes", + compressed_representation: "playwright-response-body-bytes", unfinished_stream: "response-unfinished", empty_response_state: responseFor("/empty").body.state, }; diff --git a/src/browser/BrowserScenarioPartialObservation.ts b/src/browser/BrowserScenarioPartialObservation.ts index 23408f410..1fd395a64 100644 --- a/src/browser/BrowserScenarioPartialObservation.ts +++ b/src/browser/BrowserScenarioPartialObservation.ts @@ -1,9 +1,13 @@ import type { BrowserScenario } from "../domain/browserScenario.js"; +import { PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION } from "../domain/browserNetworkEvidence.js"; import type { BrowserScenarioCaptureData, BrowserScenarioPartialObservation, } from "../domain/browserScenarioCapture.js"; -import type { BrowserScenarioStep } from "../domain/browserScenarioCaptureValues.js"; +import type { + BrowserScenarioEvent, + BrowserScenarioStep, +} from "../domain/browserScenarioCaptureValues.js"; import type { BrowserScenarioSessionPort } from "./BrowserScenarioSessionPort.js"; import { AnalysisError } from "../domain/analysisErrorBase.js"; import { @@ -20,26 +24,42 @@ const OPERATION = "capture_browser_scenario" as const; const browserScenarioLimitations = ( session: BrowserScenarioSessionPort, scenario: BrowserScenario, -): string[] => [ - "Event sequence records provider receipt order; simultaneous browser causality is not inferred.", - "Network content is retained only when selected; response bytes are browser-decoded, not compressed wire bytes.", - "Request bytes are limited to what Playwright exposes; not_exposed does not establish body absence or multipart file coverage.", - "Network content reads settle within 5 seconds each and never wait for unfinished responses or refetch them.", - "Playwright scenario events do not expose request initiator stacks; receipt order does not prove causality.", - "Storage values are hashed only after declared-secret redaction.", - ...(scenario.storage.local_storage.length === 0 && - scenario.storage.session_storage.length === 0 - ? [] - : [ - "Non-cookie storage seeds use CDP pre-script instrumentation; only pauses in the scenario's private seed script are resumed by this observer.", - ]), - ...(session.eventLimitations?.() ?? []), - ...(session.mode === "connect" - ? [ - "CDP attachment cannot recover pre-attach events or guarantee launch-time context options.", - ] - : []), -]; + events: readonly BrowserScenarioEvent[], +): string[] => { + const capturedResponseBody = + scenario.capture.network.response_body && + events.some( + (event) => + event.kind === "network-content" && + event.phase === "response" && + event.body.state === "captured" && + (event.body.representation === "playwright-response-body-bytes" || + event.body.representation === "browser-decoded-response-bytes"), + ); + return [ + "Event sequence records provider receipt order; simultaneous browser causality is not inferred.", + "Network content is retained only when selected; Playwright response-body bytes are API results and are not guaranteed to match wire bytes.", + "Request bytes are limited to what Playwright exposes; not_exposed does not establish body absence or multipart file coverage.", + "Network content reads settle within 5 seconds each and the observer does not request bodies from unfinished responses.", + ...(capturedResponseBody + ? [PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION] + : []), + "Playwright scenario events do not expose request initiator stacks; receipt order does not prove causality.", + "Storage values are hashed only after declared-secret redaction.", + ...(scenario.storage.local_storage.length === 0 && + scenario.storage.session_storage.length === 0 + ? [] + : [ + "Non-cookie storage seeds use CDP pre-script instrumentation; only pauses in the scenario's private seed script are resumed by this observer.", + ]), + ...(session.eventLimitations?.() ?? []), + ...(session.mode === "connect" + ? [ + "CDP attachment cannot recover pre-attach events or guarantee launch-time context options.", + ] + : []), + ]; +}; /** Project one session into the common capture fields used by success and failure. */ export const browserScenarioCaptureData = (input: { @@ -52,30 +72,37 @@ export const browserScenarioCaptureData = (input: { | "disconnected-external" | "incomplete"; readonly limitations?: readonly string[]; -}): BrowserScenarioCaptureData => ({ - browser: { - mode: input.session.mode, - process_ownership: input.session.processOwnership, - cleanup: input.cleanup, - product: input.session.product, - version: input.session.version, - }, - scenario: { - start_origin: new URL(input.scenario.start_url.url).origin, - action_count: input.scenario.actions.length, - secret_references: input.scenario.secrets - .map(({ secret_id: id }) => id) - .sort(), - network_content: input.scenario.capture.network, - }, - duration_ms: Date.now() - input.startedAt, - steps: [...input.steps], - events: input.session.events(), - limitations: [ - ...browserScenarioLimitations(input.session, input.scenario), - ...(input.limitations ?? []), - ], -}); +}): BrowserScenarioCaptureData => { + const events = input.session.events(); + return { + browser: { + mode: input.session.mode, + process_ownership: input.session.processOwnership, + cleanup: input.cleanup, + product: input.session.product, + version: input.session.version, + }, + scenario: { + start_origin: new URL(input.scenario.start_url.url).origin, + action_count: input.scenario.actions.length, + secret_references: input.scenario.secrets + .map(({ secret_id: id }) => id) + .sort(), + network_content: input.scenario.capture.network, + }, + duration_ms: Date.now() - input.startedAt, + steps: [...input.steps], + events, + limitations: [ + ...browserScenarioLimitations( + input.session, + input.scenario, + events.items, + ), + ...(input.limitations ?? []), + ], + }; +}; /** Describe the cleanup failure without discarding its resource evidence. */ export const browserScenarioCleanupObservation = ( diff --git a/src/browser/PlaywrightBrowserScenarioProvider.test.ts b/src/browser/PlaywrightBrowserScenarioProvider.test.ts index af94b7f90..6d4e284db 100644 --- a/src/browser/PlaywrightBrowserScenarioProvider.test.ts +++ b/src/browser/PlaywrightBrowserScenarioProvider.test.ts @@ -16,6 +16,7 @@ import { type BrowserScenarioEvent, type BrowserStepArtifacts, } from "../domain/browserScenarioCaptureValues.js"; +import { PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION } from "../domain/browserNetworkEvidence.js"; import { projectAnalysisError } from "../domain/analysisErrorProjection.js"; import { AnalysisCancelledError, @@ -218,6 +219,70 @@ class FakeSession implements BrowserScenarioSessionPort { } describe("PlaywrightBrowserScenarioProvider", () => { + it("reports response-body provenance uncertainty without marking event coverage missing", async () => { + const session = new FakeSession("launch"); + const selected = scenario(); + session.eventItems = [ + { + sequence: 1, + step_index: 0, + kind: "response", + transaction_id: "request-1", + redirected_from_transaction_id: null, + method: "GET", + url: sanitizeBrowserUrl("https://app.example.test/main.js"), + resource_type: "script", + header_names: [], + status: 200, + failure: null, + }, + { + sequence: 2, + step_index: 0, + kind: "network-content", + transaction_id: "request-1", + source_event_sequence: 1, + phase: "response", + headers: { state: "not_requested" }, + body: { + state: "captured", + representation: "playwright-response-body-bytes", + encoding: "base64", + content: "", + bytes: 0, + sha256: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + media_type: "text/javascript", + redacted: false, + }, + }, + ]; + const input = browserScenarioSchema.parse({ + ...selected, + capture: { + ...selected.capture, + network: { ...selected.capture.network, response_body: true }, + }, + }); + const provider = new PlaywrightBrowserScenarioProvider(() => + Promise.resolve(session), + ); + + const result = await provider.captureScenario(input); + if (!result.ok) throw result.error; + expect(result.value.limitations).toContain( + PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION, + ); + expect(result.value.completeness.missing_sections).not.toContain("events"); + expect(result.value.events.items[1]).toMatchObject({ + kind: "network-content", + body: { + state: "captured", + representation: "playwright-response-body-bytes", + }, + }); + }); + it("makes reported event gaps ineligible for equality even in launch mode", async () => { const session = new FakeSession("launch"); session.eventGaps = ["Popup frames before discovery are unavailable"]; diff --git a/src/browser/assets/PublishWebScripts.ts b/src/browser/assets/PublishWebScripts.ts index 5d6bac53c..2db5d7dcf 100644 --- a/src/browser/assets/PublishWebScripts.ts +++ b/src/browser/assets/PublishWebScripts.ts @@ -7,6 +7,7 @@ import { ArtifactResourceScope } from "../../artifacts/ArtifactResourceScope.js" import { DESTINATION_CASE_COLLISION_PREFIX } from "../../artifacts/ArtifactPaths.js"; import { SafeOutputTree } from "../../artifacts/SafeOutputTree.js"; import { SafeOutputTreeCreationFailure } from "../../artifacts/SafeOutputTreeCreationFailure.js"; +import { PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION } from "../../domain/browserNetworkEvidence.js"; import { webScriptExportManifestSchema, webScriptExportResultSchema, @@ -26,7 +27,7 @@ const LIMITATIONS = [ "Ordinary unambiguous URL paths preserve relative module layouts by origin, including case-distinct spellings. Query variants, exact path collisions, file/directory prefixes, inline sources, and unrepresentable paths are isolated. A case-distinct pair is isolated only when the destination filesystem cannot store both spellings; the record names that pair. Browser module relationships of isolated paths remain unknown.", "Local JavaScript analysis does not implement browser import maps, root-relative URL resolution, remote URL loading, or browser runtime behavior. It may strip import queries and fragments; isolated variants are not canonical targets.", "Source-map declarations are retained as metadata. No source maps or missing dependencies are fetched or reconstructed.", - "Captured response bytes are browser-decoded bytes; Debugger sources are the exposed text encoded as UTF-8. Redacted bytes are exported exactly as retained, and may no longer parse as JavaScript.", + "Scenario response bytes preserve the output of Playwright's Response.body() API; any source-body provenance caveat from the capture is retained in this manifest. Debugger sources are the exposed text encoded as UTF-8. Redacted bytes are exported exactly as retained, and may no longer parse as JavaScript.", ]; interface PublishWebScriptsOptions { @@ -43,6 +44,22 @@ export const publishWebScripts = async ( ): Promise => options.resources.run(async () => { const planned = planWebScriptExport(capture.scripts); + const scenarioResponseBodyCaptured = + capture.kind === "browser-scenario" && + capture.scripts.some( + (script) => + script.source.kind === "scenario-response" && + script.content.state === "captured" && + (script.content.representation === "playwright-response-body-bytes" || + script.content.representation === "browser-decoded-response-bytes"), + ); + const responseBodyProvenanceLimitations = + scenarioResponseBodyCaptured && + !capture.limitations.includes( + PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION, + ) + ? [PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION] + : []; let tree: SafeOutputTree | undefined; let result: WebScriptExportResult | undefined; try { @@ -70,6 +87,7 @@ export const publishWebScripts = async ( scripts: records, limitations: [ ...capture.limitations, + ...responseBodyProvenanceLimitations, ...LIMITATIONS, ...(records.some(({ content }) => content.state === "exported") ? [] diff --git a/src/browser/assets/ScenarioScriptCapture.ts b/src/browser/assets/ScenarioScriptCapture.ts index 642dd01f9..9bb08fbc9 100644 --- a/src/browser/assets/ScenarioScriptCapture.ts +++ b/src/browser/assets/ScenarioScriptCapture.ts @@ -98,7 +98,10 @@ const projectBody = ( body.state, "No selected, completed script response bytes were retained for this request.", ); - if (body.representation !== "browser-decoded-response-bytes") + if ( + body.representation !== "playwright-response-body-bytes" && + body.representation !== "browser-decoded-response-bytes" + ) return unavailable( "unsupported-body-representation", `Captured representation ${body.representation} is not script response bytes.`, diff --git a/src/browser/assets/ScriptCaptureAdapters.test.ts b/src/browser/assets/ScriptCaptureAdapters.test.ts index 6cb010fee..7e5996186 100644 --- a/src/browser/assets/ScriptCaptureAdapters.test.ts +++ b/src/browser/assets/ScriptCaptureAdapters.test.ts @@ -152,9 +152,11 @@ describe("script capture identity and response projection", () => { ) throw new Error("Missing response bytes"); content.body.redacted = true; + content.body.representation = "playwright-response-body-bytes"; expect(selectScriptCapture(capture).scripts[0]?.content).toMatchObject({ state: "captured", redacted: true, + representation: "playwright-response-body-bytes", }); content.body.representation = "browser-exposed-request-bytes"; expect(selectScriptCapture(capture).scripts[0]?.content).toMatchObject({ diff --git a/src/browser/network/PlaywrightNetworkContent.ts b/src/browser/network/PlaywrightNetworkContent.ts index f74fbd3b9..9a35d179f 100644 --- a/src/browser/network/PlaywrightNetworkContent.ts +++ b/src/browser/network/PlaywrightNetworkContent.ts @@ -72,7 +72,7 @@ export const captureNetworkHeaders = async ( } }; -/** Retain only bytes exposed by the browser; no fetch or wire-byte reconstruction occurs. */ +/** Retain bytes returned by Playwright's body API, after declared-secret redaction. */ export const captureNetworkBody = async ( read: () => Promise, phase: "request" | "response", @@ -94,7 +94,7 @@ export const captureNetworkBody = async ( representation: phase === "request" ? "browser-exposed-request-bytes" - : "browser-decoded-response-bytes", + : "playwright-response-body-bytes", encoding: "base64", content: retained.toString("base64"), bytes: retained.length, diff --git a/src/browser/network/PlaywrightScenarioNetwork.test.ts b/src/browser/network/PlaywrightScenarioNetwork.test.ts index 80ea58317..0c67c7c3a 100644 --- a/src/browser/network/PlaywrightScenarioNetwork.test.ts +++ b/src/browser/network/PlaywrightScenarioNetwork.test.ts @@ -178,6 +178,9 @@ it("associates out-of-order same-URL responses by request identity", async () => (event) => event.phase === "response" && bodyText(event) === `reply:${marker}`, ); + expect(response).toMatchObject({ + body: { representation: "playwright-response-body-bytes" }, + }); expect(request?.transaction_id).toBe(response?.transaction_id); expect(request?.source_event_sequence).not.toBe( response?.source_event_sequence, diff --git a/src/browser/network/PlaywrightScenarioNetwork.ts b/src/browser/network/PlaywrightScenarioNetwork.ts index ca2b22517..45129cb95 100644 --- a/src/browser/network/PlaywrightScenarioNetwork.ts +++ b/src/browser/network/PlaywrightScenarioNetwork.ts @@ -128,7 +128,7 @@ export class PlaywrightScenarioNetwork { transaction.response = { source: response, sequence }; } - /** Record completion and read the original completed response, never a later refetch. */ + /** Record completion and read selected content through the response API. */ finished(request: ScenarioNetworkRequest): void { if (!this.accepting) return; const transaction = this.transaction(request); diff --git a/src/domain/browserNetworkEvidence.test.ts b/src/domain/browserNetworkEvidence.test.ts index df2afe1d0..c46915540 100644 --- a/src/domain/browserNetworkEvidence.test.ts +++ b/src/domain/browserNetworkEvidence.test.ts @@ -17,6 +17,12 @@ const retained = { it("validates the actual retained bytes against canonical base64, count, and digest", () => { expect(browserNetworkBodySchema.safeParse(retained).success).toBe(true); + expect( + browserNetworkBodySchema.safeParse({ + ...retained, + representation: "playwright-response-body-bytes", + }).success, + ).toBe(true); for (const mutation of [ { bytes: 4 }, { sha256: "0".repeat(64) }, diff --git a/src/domain/browserNetworkEvidence.ts b/src/domain/browserNetworkEvidence.ts index bf6adf3e0..08df3aaaf 100644 --- a/src/domain/browserNetworkEvidence.ts +++ b/src/domain/browserNetworkEvidence.ts @@ -1,6 +1,9 @@ import { createHash } from "node:crypto"; import { z } from "zod"; +export const PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION = + "Captured response-body bytes are the result of Playwright's Response.body() API. Playwright may satisfy that API with a credentialed follow-up load of the request URL when CDP has no body, so transaction and event links do not verify that retained bytes came from the original network transaction."; + /** Resolved network content selection recorded by a capture. */ export const browserNetworkContentSelectionValuesSchema = z.strictObject({ request_body: z.boolean(), @@ -43,6 +46,9 @@ export const browserNetworkBodySchema = z.union([ state: z.literal("captured"), representation: z.enum([ "browser-exposed-request-bytes", + "playwright-response-body-bytes", + // Retained for captures produced before response-body provenance was + // narrowed to the bytes Playwright exposes through Response.body(). "browser-decoded-response-bytes", ]), encoding: z.literal("base64"), diff --git a/src/domain/webScriptExport.ts b/src/domain/webScriptExport.ts index a5524a110..68788b9fc 100644 --- a/src/domain/webScriptExport.ts +++ b/src/domain/webScriptExport.ts @@ -52,6 +52,9 @@ export const exportedWebScriptSchema = z.strictObject({ redacted: z.boolean().nullable(), representation: z.enum([ "debugger-source-utf8", + "playwright-response-body-bytes", + // Accept already-saved exports from before the response representation + // was narrowed to the Playwright API result. "browser-decoded-response-bytes", ]), }), @@ -116,9 +119,10 @@ export interface CapturedWebScript { readonly sha256: string; readonly media_type: string | null; readonly redacted: boolean | null; - readonly representation: - | "debugger-source-utf8" - | "browser-decoded-response-bytes"; + readonly representation: Extract< + ExportedWebScript["content"], + { readonly state: "exported" } + >["representation"]; } | Extract; } diff --git a/tests/boundary/filesystem/webScriptExport.test.ts b/tests/boundary/filesystem/webScriptExport.test.ts index 7dcf0f68f..c624ba7a2 100644 --- a/tests/boundary/filesystem/webScriptExport.test.ts +++ b/tests/boundary/filesystem/webScriptExport.test.ts @@ -32,7 +32,11 @@ import { SafeOutputTreeCreationFailure } from "../../../src/artifacts/SafeOutput import { selectScriptCapture } from "../../../src/browser/assets/ScriptCaptureAdapters.js"; import { javascriptApplicationAnalysisResultSchema } from "../../../src/domain/javascript/javascriptApplicationAnalysis.js"; import { projectAnalysisError } from "../../../src/domain/analysisErrorProjection.js"; -import { webScriptExportResultSchema } from "../../../src/domain/webScriptExport.js"; +import { PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION } from "../../../src/domain/browserNetworkEvidence.js"; +import { + webScriptExportManifestSchema, + webScriptExportResultSchema, +} from "../../../src/domain/webScriptExport.js"; import { readWithoutFifoWriter } from "../../fixtures/fifoInput.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { @@ -137,43 +141,72 @@ describe("captured script publication boundary", () => { ); }); - it("links authenticated input Evidence and preserves binary and empty source bytes", async () => { + it("links authenticated input Evidence", async () => { const { input, resources } = await setup(); const result = await exportWebScripts(input, resources); if (!result.ok) throw result.error; expect(result.value.evidence_links).toEqual([ scriptCaptureEvidenceFixture().evidence_id, ]); - const binary = Buffer.from([255, 0, 254, 1]); - const { input: binaryInput, resources: binaryResources } = await setup( - scriptScenarioFixture([ + }); + + it.each([ + "playwright-response-body-bytes", + "browser-decoded-response-bytes", + ] as const)( + "preserves binary and empty response bytes and provenance for %s", + async (representation) => { + const binary = Buffer.from([255, 0, 254, 1]); + const capture = scriptScenarioFixture([ { url: "https://fixture.test/binary.js", bytes: binary }, { url: "https://fixture.test/empty.js", bytes: Buffer.alloc(0) }, - ]), - ); - const binaryExport = await exportWebScripts(binaryInput, binaryResources); - if (!binaryExport.ok) throw binaryExport.error; - const parsed = webScriptExportResultSchema.parse( - binaryExport.value.normalized_result, - ); - const [first, second] = parsed.scripts; - if ( - first?.content.state !== "exported" || - second?.content.state !== "exported" || - parsed.analysis_input === null - ) - throw new Error("Missing exported bytes"); - expect( - await readFile( - join(parsed.analysis_input.input_path, first.content.relative_path), - ), - ).toEqual(binary); - expect( - await readFile( - join(parsed.analysis_input.input_path, second.content.relative_path), - ), - ).toHaveLength(0); - }); + ]); + for (const event of capture.events.items) { + if (event.kind === "network-content" && event.body.state === "captured") + event.body.representation = representation; + } + const { input: binaryInput, resources: binaryResources } = + await setup(capture); + const binaryExport = await exportWebScripts(binaryInput, binaryResources); + if (!binaryExport.ok) throw binaryExport.error; + const parsed = webScriptExportResultSchema.parse( + binaryExport.value.normalized_result, + ); + const [first, second] = parsed.scripts; + if ( + first?.content.state !== "exported" || + second?.content.state !== "exported" || + parsed.analysis_input === null + ) + throw new Error("Missing exported bytes"); + expect(first.content.representation).toBe(representation); + expect(second.content.representation).toBe(representation); + expect(parsed.limitations).toContain( + PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION, + ); + const persisted = webScriptExportManifestSchema.parse( + JSON.parse(await readFile(parsed.manifest.path, "utf8")), + ); + expect( + persisted.scripts.map(({ content }) => + content.state === "exported" ? content.representation : undefined, + ), + ).toEqual([representation, representation]); + expect(persisted.limitations).toContain( + PLAYWRIGHT_RESPONSE_BODY_PROVENANCE_LIMITATION, + ); + expect( + await readFile( + join(parsed.analysis_input.input_path, first.content.relative_path), + ), + ).toEqual(binary); + expect( + await readFile( + join(parsed.analysis_input.input_path, second.content.relative_path), + ), + ).toHaveLength(0); + }, + ); it("retains missing sources in a manifest without inventing an analysis directory", async () => { const capture = scriptScenarioFixture(); From e4532b537663026c3e5b784380eecd009c959a36 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:08:09 +0800 Subject: [PATCH 22/44] fix(javascript): preserve TypeScript loader and dependency semantics Share loader selection across static findings and module relationships: CTS static imports and re-exports use CommonJS lookup while dynamic imports retain ESM lookup. Retain runtime import-equals dependencies, bindings, and exported names; do not resolve require file-URL strings as local artifacts. Restore import-map descriptions in CLI help. Validated resolver and semantic tests, application reconstruction boundaries, and CLI help. Installed TypeScript NodeNext emission and Node require behavior were checked independently. Refs #2056, #2057, #2058, #2053. --- .../JavaScriptArtifactGraphFindings.ts | 16 ++-- .../JavaScriptArtifactPathResolution.test.ts | 21 +++++ .../JavaScriptArtifactPathResolution.ts | 18 +++- .../JavaScriptModuleRelationships.ts | 11 ++- ...riptSemanticAnalysis.require_links.test.ts | 45 ++++++++++ .../javascript/javascriptSemanticAnalysis.ts | 22 +++++ .../javascriptSemanticProjection.ts | 38 ++++++++- .../javascriptModuleRelationships.test.ts | 84 +++++++++++++++++++ 8 files changed, 242 insertions(+), 13 deletions(-) diff --git a/src/application/javascript/JavaScriptArtifactGraphFindings.ts b/src/application/javascript/JavaScriptArtifactGraphFindings.ts index bbe2adead..95dbab319 100644 --- a/src/application/javascript/JavaScriptArtifactGraphFindings.ts +++ b/src/application/javascript/JavaScriptArtifactGraphFindings.ts @@ -22,7 +22,10 @@ import { astObservationEvidence, staticInferenceEvidence, } from "./JavaScriptArtifactGraphEvidence.js"; -import { resolveArtifactPathByContext } from "./JavaScriptArtifactPathResolution.js"; +import { + moduleKindForJavaScriptReference, + resolveArtifactPathByContext, +} from "./JavaScriptArtifactPathResolution.js"; type StaticReference = JavaScriptStaticAnalysis["references"][number]; type StaticEndpoint = JavaScriptStaticAnalysis["endpoints"][number]; @@ -400,12 +403,11 @@ const resolveReference = ( specifier, sourcePath, context.filesByPath, - reference.kind === "require" - ? "require" - : reference.kind === "static-import" || - reference.kind === "dynamic-import" - ? "import" - : undefined, + reference.kind === "require" || + reference.kind === "static-import" || + reference.kind === "dynamic-import" + ? moduleKindForJavaScriptReference(sourcePath, reference.kind) + : undefined, ); if (path === null) return null; const file = context.filesByPath.get(path); diff --git a/src/application/javascript/JavaScriptArtifactPathResolution.test.ts b/src/application/javascript/JavaScriptArtifactPathResolution.test.ts index e44d2666a..7b4a15f50 100644 --- a/src/application/javascript/JavaScriptArtifactPathResolution.test.ts +++ b/src/application/javascript/JavaScriptArtifactPathResolution.test.ts @@ -576,6 +576,27 @@ describe("contextual JavaScript artifact path resolution", () => { }); }); +describe("CommonJS file URL resolution", () => { + it("keeps file URL resolution specific to the import loader", () => { + const files = fileMap([file("entry.cjs", "root"), file("dep.cjs", "root")]); + const input = { + declaredPath: "file:///dep.cjs", + sourcePath: "entry.cjs", + context: "module-specifier" as const, + files, + }; + + expect(resolve({ ...input, moduleKind: "require" })).toMatchObject({ + resolution_status: "external", + resolved_path: null, + }); + expect(resolve({ ...input, moduleKind: "import" })).toMatchObject({ + resolution_status: "resolved", + resolved_path: "dep.cjs", + }); + }); +}); + describe("contextual JavaScript package path resolution", () => { it("follows package entrypoints beyond the former recursion ceiling", () => { const files = fileMap([ diff --git a/src/application/javascript/JavaScriptArtifactPathResolution.ts b/src/application/javascript/JavaScriptArtifactPathResolution.ts index 9845e8c03..2f1539eb2 100644 --- a/src/application/javascript/JavaScriptArtifactPathResolution.ts +++ b/src/application/javascript/JavaScriptArtifactPathResolution.ts @@ -64,6 +64,17 @@ export interface ResolveArtifactPathInput { readonly moduleKind?: "import" | "require"; } +/** Loader selected by a source-level JavaScript module reference. */ +export const moduleKindForJavaScriptReference = ( + sourcePath: string, + referenceKind: "static-import" | "dynamic-import" | "require", +): "import" | "require" => + referenceKind === "require" || + (referenceKind === "static-import" && + posix.extname(sourcePath).toLowerCase() === ".cts") + ? "require" + : "import"; + const EXTENSIONS = [ ".js", ".cjs", @@ -189,7 +200,12 @@ const contextualCandidate = ( if (context === "html-reference") return htmlCandidate(input); if (context === "module-specifier") { const fileUrl = fileUrlPath(declared); - if (fileUrl !== undefined) return fileUrl; + if (fileUrl !== undefined) + return input.moduleKind === "require" + ? unresolvedCandidate("external", [ + "Node CommonJS require specifiers do not resolve file URLs as local artifacts.", + ]) + : fileUrl; if (hasScheme(declared)) return unresolvedCandidate("external", [ "URL and Node builtin schemes are outside static artifact module resolution.", diff --git a/src/application/javascript/JavaScriptModuleRelationships.ts b/src/application/javascript/JavaScriptModuleRelationships.ts index fcbd5b3d3..3468762f4 100644 --- a/src/application/javascript/JavaScriptModuleRelationships.ts +++ b/src/application/javascript/JavaScriptModuleRelationships.ts @@ -30,6 +30,7 @@ import { staticInferenceEvidence, } from "./JavaScriptArtifactGraphEvidence.js"; import { + moduleKindForJavaScriptReference, resolveArtifactPathByContext, type ArtifactPathResolution, } from "./JavaScriptArtifactPathResolution.js"; @@ -275,10 +276,12 @@ const resolveModuleTarget = ( sourcePath: input.file.path, context: "module-specifier", files: input.context.filesByPath, - moduleKind: + moduleKind: moduleKindForJavaScriptReference( + input.file.path, input.link.kind === "require" || input.link.kind === "commonjs-export" ? "require" - : "import", + : "static-import", + ), }); if (resolution.resolution_status !== "resolved") return { @@ -423,8 +426,8 @@ const moduleFormat = ( ir: JavaScriptModuleSemanticIr, ): "commonjs" | "esm" | "mixed" | "unknown" => { const extension = posix.extname(path).toLowerCase(); - if (extension === ".mjs") return "esm"; - if (extension === ".cjs") return "commonjs"; + if (extension === ".mjs" || extension === ".mts") return "esm"; + if (extension === ".cjs" || extension === ".cts") return "commonjs"; const esm = ir.moduleLinks.some(({ kind }) => ["import", "export", "re-export"].includes(kind), ); diff --git a/src/domain/javascript/javascriptSemanticAnalysis.require_links.test.ts b/src/domain/javascript/javascriptSemanticAnalysis.require_links.test.ts index 830bc08ba..19e7b2fd2 100644 --- a/src/domain/javascript/javascriptSemanticAnalysis.require_links.test.ts +++ b/src/domain/javascript/javascriptSemanticAnalysis.require_links.test.ts @@ -6,6 +6,51 @@ import { topLevelBinding, } from "./javascriptSemanticAnalysis.fixture.js"; +describe("TypeScript import-equals links", () => { + it("retains runtime external import-equals as a require dependency", () => { + const links = analyzeJavaScriptSemantics(` + import dependency = require("./dependency.cjs"); + import type types = require("./types"); + import alias = Namespace.Dependency; + `).moduleLinks; + + expect(links).toEqual([ + expect.objectContaining({ + kind: "require", + specifier: "./dependency.cjs", + importedName: null, + localName: "dependency", + exportedName: null, + }), + ]); + }); + + it("keeps the exported binding for exported import-equals", () => { + const source = 'export import dependency = require("./dependency");'; + const links = analyzeJavaScriptSemantics(source).moduleLinks; + + expect(links).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + kind: "require", + specifier: "./dependency", + localName: "dependency", + exportedName: null, + }), + expect.objectContaining({ + kind: "export", + specifier: null, + localName: "dependency", + exportedName: "dependency", + }), + ]), + ); + expect( + links.find(({ kind }) => kind === "require")?.location.start, + ).toEqual({ line: 1, column: 7 }); + }); +}); + describe("CommonJS dependency links", () => { it.each([ 'require("dependency");', diff --git a/src/domain/javascript/javascriptSemanticAnalysis.ts b/src/domain/javascript/javascriptSemanticAnalysis.ts index b8e2a24ae..cff8d0458 100644 --- a/src/domain/javascript/javascriptSemanticAnalysis.ts +++ b/src/domain/javascript/javascriptSemanticAnalysis.ts @@ -10,6 +10,7 @@ import { import { collectSemanticModuleLink, collectSemanticCallable, + semanticImportEqualsSpecifier, collectSemanticReferences, collectSemanticReferencesSteps, immutableSemanticBindings, @@ -752,6 +753,8 @@ const bindInnerDeclaration = ( state: JavaScriptSemanticAnalysisState, ): void => { if (t.isImportDeclaration(node)) bindImports(node, scope, state); + else if (t.isTSImportEqualsDeclaration(node)) + bindImportEquals(node, scope, state); else if (t.isVariableDeclarator(node)) bindPattern({ pattern: node.id, @@ -785,6 +788,25 @@ const bindInnerDeclaration = ( }); }; +const bindImportEquals = ( + node: t.TSImportEqualsDeclaration, + scope: JavaScriptSemanticScopeState, + state: JavaScriptSemanticAnalysisState, +): void => { + const specifier = semanticImportEqualsSpecifier(node); + if (specifier === null) return; + addBinding({ + state, + scope, + name: node.id.name, + kind: "import", + mutable: false, + definitionNode: node.id, + initializer: null, + directOrigin: { specifier, importedPath: [] }, + }); +}; + const bindAssignment = ( node: t.Node, scope: JavaScriptSemanticScopeState, diff --git a/src/domain/javascript/javascriptSemanticProjection.ts b/src/domain/javascript/javascriptSemanticProjection.ts index 4488f584f..42601888a 100644 --- a/src/domain/javascript/javascriptSemanticProjection.ts +++ b/src/domain/javascript/javascriptSemanticProjection.ts @@ -69,7 +69,8 @@ export const collectSemanticModuleLink = ( node: t.Node, state: JavaScriptSemanticAnalysisState, ): void => { - if (t.isImportDeclaration(node)) collectImports(node, state); + if (t.isTSImportEqualsDeclaration(node)) collectImportEquals(node, state); + else if (t.isImportDeclaration(node)) collectImports(node, state); else if (t.isExportAllDeclaration(node)) addModuleLink( state, @@ -103,6 +104,36 @@ export const collectSemanticModuleLink = ( else if (t.isCallExpression(node)) collectUnboundRequireLink(node, state); }; +const collectImportEquals = ( + node: t.TSImportEqualsDeclaration, + state: JavaScriptSemanticAnalysisState, +): void => { + const specifier = semanticImportEqualsSpecifier(node); + if (specifier === null) return; + addModuleLink( + state, + { + kind: "require", + specifier, + importedName: null, + localName: node.id.name, + exportedName: null, + location: range(node), + }, + node, + ); +}; + +/** Runtime external-module target for a value import-equals declaration. */ +export const semanticImportEqualsSpecifier = ( + node: t.TSImportEqualsDeclaration, +): string | null => + node.importKind !== "type" && + t.isTSExternalModuleReference(node.moduleReference) && + t.isStringLiteral(node.moduleReference.expression) + ? node.moduleReference.expression.value + : null; + /** Collect lexical references after definitions exist, optionally for one name. */ export const collectSemanticReferences = ( program: t.Program, @@ -707,6 +738,11 @@ const declarationNames = (declaration: t.Declaration): string[] => { t.isIdentifier(declaration.id) ) return [declaration.id.name]; + if ( + t.isTSImportEqualsDeclaration(declaration) && + semanticImportEqualsSpecifier(declaration) !== null + ) + return [declaration.id.name]; return []; }; diff --git a/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts b/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts index 756a350dd..be51b9bb4 100644 --- a/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts +++ b/tests/boundary/filesystem/javascript-applications/javascriptModuleRelationships.test.ts @@ -14,6 +14,90 @@ import { writeFixtureFiles, } from "../../../support/javascriptApplicationFixture.js"; +describe("TypeScript source module loader semantics", () => { + it("uses emitted TypeScript loader semantics without changing dynamic imports", async () => { + const root = await createTestTempDirectory("rea-cts-module-loader-"); + await writeFixtureFiles(root, { + "package.json": '{"type":"module"}', + "main.cts": ` + import local = require("./local"); + import selected from "conditional"; + export { retained } from "conditional"; + void import("conditional"); + void local; + void selected; + `, + "consumer.mts": ` + import local = require("./local"); + export { local }; + `, + "local.js": "module.exports = 42;", + "node_modules/conditional/package.json": JSON.stringify({ + exports: { + ".": { + import: "./esm.mjs", + require: "./cjs.cjs", + }, + }, + }), + "node_modules/conditional/esm.mjs": "export const retained = 'esm';", + "node_modules/conditional/cjs.cjs": "exports.retained = 'cjs';", + }); + + const { graph } = await reconstructJavaScriptFixture(root); + const localRequireEdge = (sourcePath: string) => { + const source = findSourceModule(graph, sourcePath); + return graph.edges.find( + ({ source_node_id, relation, properties }) => + source_node_id === source?.node_id && + relation === "imports" && + properties.module_link_kind === "require" && + properties.specifier === "./local", + ); + }; + + expect( + findSourceModule(graph, "main.cts")?.observations[0]?.properties, + ).toMatchObject({ module_format: "commonjs" }); + expect(localRequireEdge("main.cts")).toMatchObject({ + properties: { resolved_path: "local.js", local_name: "local" }, + }); + expect( + findRelationshipEdge(graph, { + kind: "import", + specifier: "conditional", + resolvedPath: "node_modules/conditional/cjs.cjs", + localName: "selected", + }), + ).toBeDefined(); + expect( + findRelationshipEdge(graph, { + kind: "re-export", + specifier: "conditional", + resolvedPath: "node_modules/conditional/cjs.cjs", + }), + ).toBeDefined(); + expect( + graph.edges.find( + ({ relation, properties }) => + relation === "imports" && + properties.kind === "dynamic-import" && + properties.specifier === "conditional", + ), + ).toMatchObject({ + properties: { + resolved_path: "node_modules/conditional/esm.mjs", + }, + }); + expect( + findSourceModule(graph, "consumer.mts")?.observations[0]?.properties, + ).toMatchObject({ module_format: "esm" }); + expect(localRequireEdge("consumer.mts")).toMatchObject({ + properties: { resolved_path: "local.js", local_name: "local" }, + }); + }); +}); + describe("CommonJS and ESM module relationships", () => { it("composes bindings, re-exports, dynamic imports, and JSON modules", async () => { const root = await moduleFixture(); From d8c76b629639bda4405afa9ae2f7676b694f2f10 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:08:31 +0800 Subject: [PATCH 23/44] fix(io): retain cleanup ownership and honor cancellation Keep failed JSON read handles in the existing server resource scope and fail admission until cleanup succeeds. Thread cancellation through every process CLI input read and replace timer-driven cancellation checks with a shared first-read gate. Classify authenticated standalone Evidence as wrong-kind input while preserving tampered-record integrity failures and actionable messages across ledger, CLI, and MCP consumers. Record unrelated CS_RESTRICT process neighbors as unverified without weakening related-process ownership checks. Update stale ADB fixtures for the actual shell protocol. Validated focused CLI, MCP, filesystem, ownership, and error projection tests; static, docs, and duplication gates pass. The host-level CS_RESTRICT load reproduction was not run. Refs #2050, #2035, #2064. --- src/application/EvidenceBundleFiles.ts | 43 ++- src/application/JsonFiles.ts | 15 +- src/application/JsonInputFile.ts | 13 +- src/application/RegularFileRead.ts | 10 +- .../binary/AnalysisSnapshotCache.ts | 3 +- .../binary/AnalysisSnapshotFiles.ts | 4 + .../binary/BinarySessionRecords.ts | 3 +- .../investigation/EvidenceLedger.test.ts | 27 ++ .../investigation/EvidenceLedger.ts | 16 +- .../investigation/InvestigationRecordPort.ts | 5 +- .../investigation/InvestigationRecords.ts | 3 +- src/application/process/ProcessCli.ts | 42 ++- src/cli/processCommands.ts | 19 +- src/domain/analysisErrorCore.ts | 4 +- src/domain/analysisErrorPresentation.ts | 6 +- src/domain/evidenceBundle.test.ts | 19 ++ src/domain/evidenceBundle.ts | 27 +- src/domain/evidenceErrors.ts | 11 +- src/process/ProcessOwnership.test.ts | 288 +++++++++--------- src/process/ProcessOwnership.ts | 19 +- src/server/registerBundleComparisonTool.ts | 14 +- src/server/registerSessionRecordTools.ts | 3 +- src/server/registerSessionTools.ts | 94 +++--- .../cli/evidenceBundleCommands.test.ts | 21 ++ .../filesystem/analysisSnapshot.test.ts | 56 +++- .../filesystem/evidenceBundleFiles.test.ts | 50 ++- .../jsonFileResourceOwnership.test.ts | 75 +++++ .../filesystem/processCliFileInput.test.ts | 195 +++++++++++- .../mcp/bundleComparisonCancellation.test.ts | 62 +--- .../boundary/mcp/bundleComparisonMcp.test.ts | 4 +- .../mcp/evidenceImportCancellation.test.ts | 119 ++++++++ tests/support/holdFirstFileRead.ts | 55 ++++ 32 files changed, 1007 insertions(+), 318 deletions(-) create mode 100644 tests/boundary/filesystem/jsonFileResourceOwnership.test.ts create mode 100644 tests/support/holdFirstFileRead.ts diff --git a/src/application/EvidenceBundleFiles.ts b/src/application/EvidenceBundleFiles.ts index 1f1a0a0b7..83f2f65d9 100644 --- a/src/application/EvidenceBundleFiles.ts +++ b/src/application/EvidenceBundleFiles.ts @@ -1,3 +1,5 @@ +import { resolve } from "node:path"; + import { createImmutableEvidenceBundle, describeEvidenceBundleFailure, @@ -37,13 +39,15 @@ type EvidenceWriteFailure = export const readEvidenceBundle = ( path: string, signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise> => - readBundle(path, parseEvidenceBundle, signal); + readBundle(path, parseEvidenceBundle, signal, resources); /** Read an authenticated immutable snapshot for a subsequent session import. */ export const readImmutableEvidenceBundle = ( path: string, signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise> => readBundle( path, @@ -52,26 +56,30 @@ export const readImmutableEvidenceBundle = ( return createImmutableEvidenceBundle(bundle.records, bundle.unknowns); }, signal, + resources, ); const readBundle = async ( path: string, parseBundle: (input: unknown) => EvidenceBundle, signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise> => { if (signal?.aborted) return err(new AnalysisCancelledError("import_evidence_bundle")); - const loaded = await readJsonFile(path, signal).catch((cause: unknown) => { - // A failed close transfers a live handle owner; preserve that failure. - if ( - signal?.aborted === true && - !(cause instanceof RegularFileCleanupFailure) - ) - return err( - new AnalysisCancelledError("import_evidence_bundle", { cause }), - ); - throw cause; - }); + const loaded = await readJsonFile(path, signal, resources).catch( + (cause: unknown) => { + // A failed close transfers a live handle owner; preserve that failure. + if ( + signal?.aborted === true && + !(cause instanceof RegularFileCleanupFailure) + ) + return err( + new AnalysisCancelledError("import_evidence_bundle", { cause }), + ); + throw cause; + }, + ); if (!loaded.ok) return loaded; if (signal?.aborted) return err(new AnalysisCancelledError("import_evidence_bundle")); @@ -79,10 +87,19 @@ const readBundle = async ( try { bundle = parseBundle(loaded.value); } catch (cause: unknown) { + const failure = describeEvidenceBundleFailure(loaded.value, cause); + if (failure.kind === "single-record") + return err( + new EvidenceFileError("read", "wrong-kind", { + path: resolve(path), + cause, + userMessage: failure.message, + }), + ); return err( new EvidenceIntegrityError("Evidence bundle validation failed", { cause, - userMessage: describeEvidenceBundleFailure(loaded.value, cause), + userMessage: failure.message, }), ); } diff --git a/src/application/JsonFiles.ts b/src/application/JsonFiles.ts index 76a05f9cb..6bd1d66c8 100644 --- a/src/application/JsonFiles.ts +++ b/src/application/JsonFiles.ts @@ -24,6 +24,7 @@ import { type JsonObjectMemberReader, } from "./JsonInputFile.js"; import { NonRegularFileReadError } from "../filesystem/RegularFile.js"; +import { RegularFileCleanupFailure } from "./RegularFileRead.js"; import type { ArtifactResourceScope } from "../artifacts/ArtifactResourceScope.js"; import { ArtifactReaderFailure } from "../artifacts/ArtifactReader.js"; import { OwnedFileHandle } from "../filesystem/OwnedFileHandle.js"; @@ -42,12 +43,14 @@ type TextWriteResult = export const readJsonFile = async ( path: string, signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise< Result > => readJsonFileInput( path, - (selected) => readJsonInputFile(selected, "read_evidence_file", signal), + (selected) => + readJsonInputFile(selected, "read_evidence_file", signal, resources), signal, ); @@ -56,6 +59,7 @@ export const readJsonObjectMembersFile = ( path: string, scans: readonly ReadonlyMap[], signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise< Result< void, @@ -65,7 +69,13 @@ export const readJsonObjectMembersFile = ( readJsonFileInput( path, (selected) => - readJsonObjectFile(selected, "read_evidence_file", scans, signal), + readJsonObjectFile( + selected, + "read_evidence_file", + scans, + signal, + resources, + ), signal, ); @@ -103,6 +113,7 @@ const readJsonFileInput = async ( } return ok(decoded.value); } catch (cause: unknown) { + if (cause instanceof RegularFileCleanupFailure) throw cause; if (cause instanceof AnalysisResourceConstraintError) return err(cause); if (signal?.aborted === true) throw cause; return err( diff --git a/src/application/JsonInputFile.ts b/src/application/JsonInputFile.ts index bceb482d2..a226cb0cc 100644 --- a/src/application/JsonInputFile.ts +++ b/src/application/JsonInputFile.ts @@ -11,6 +11,7 @@ import streamValues from "stream-json/streamers/stream-values.js"; import streamArray from "stream-json/streamers/stream-array.js"; import { RegularFileChangedError } from "../filesystem/RegularFile.js"; +import type { ArtifactResourceScope } from "../artifacts/ArtifactResourceScope.js"; import { withRegularFile } from "./RegularFileRead.js"; import { JSON_BYTE_ORDER_MARK_MESSAGE, @@ -55,6 +56,7 @@ export const readJsonObjectFile = ( operation: string, scans: readonly ReadonlyMap[], signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise> => withRegularFile( path, @@ -188,7 +190,10 @@ export const readJsonObjectFile = ( throw cause; } }, - { signal }, + { + signal, + ...(resources === undefined ? {} : { resources }), + }, ); const memberConsumer = ( @@ -236,6 +241,7 @@ export const readJsonInputFile = ( path: string, operation: string, signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise> => withRegularFile( path, @@ -294,7 +300,10 @@ export const readJsonInputFile = ( throw cause; } }, - { signal }, + { + signal, + ...(resources === undefined ? {} : { resources }), + }, ); const jsonReadFailure = ( diff --git a/src/application/RegularFileRead.ts b/src/application/RegularFileRead.ts index 9183c9f8a..f09f4c192 100644 --- a/src/application/RegularFileRead.ts +++ b/src/application/RegularFileRead.ts @@ -95,7 +95,8 @@ const withRegularFileOwned = async ( cause.cleanupCause, ); if (options.resources === undefined) throw failure; - await retryRegularFileCleanup(failure, options.resources); + const retry = await retryRegularFileCleanup(failure, options.resources); + if (retry.cleanup !== undefined) throw failure; throw cause.cause; } const owner = new OwnedFileHandle(handle); @@ -128,9 +129,10 @@ const withRegularFileOwned = async ( cleanupCause, ); if (options.resources === undefined) throw failure; - const cleanup = await retryRegularFileCleanup(failure, options.resources); - if (cleanup.outcome.kind === "failed") throw cleanup.outcome.cause; - return cleanup.outcome.value; + const retry = await retryRegularFileCleanup(failure, options.resources); + if (retry.cleanup !== undefined) throw failure; + if (retry.outcome.kind === "failed") throw retry.outcome.cause; + return retry.outcome.value; } if (outcome.kind === "failed") throw outcome.cause; return outcome.value; diff --git a/src/application/binary/AnalysisSnapshotCache.ts b/src/application/binary/AnalysisSnapshotCache.ts index 6440ccf6a..bdaa9f68d 100644 --- a/src/application/binary/AnalysisSnapshotCache.ts +++ b/src/application/binary/AnalysisSnapshotCache.ts @@ -8,6 +8,7 @@ import { } from "../../domain/evidenceErrors.js"; import { NoBinaryOpenError } from "../../domain/configurationErrors.js"; import type { AnalysisError } from "../../domain/analysisErrorBase.js"; +import type { AnalysisInputError } from "../../domain/analysisErrorCore.js"; import { rebindEvidenceSubjectTargetPath } from "../../domain/evidence.js"; import { err, ok, type Result } from "../../domain/result.js"; import { @@ -190,7 +191,7 @@ export class AnalysisSnapshotCache { | undefined, mergeEvidence: ( bundle: EvidenceBundle, - ) => Result, + ) => Result, ): Result { let validated: AnalysisSnapshot; try { diff --git a/src/application/binary/AnalysisSnapshotFiles.ts b/src/application/binary/AnalysisSnapshotFiles.ts index 174b58bfc..e4b69953a 100644 --- a/src/application/binary/AnalysisSnapshotFiles.ts +++ b/src/application/binary/AnalysisSnapshotFiles.ts @@ -15,6 +15,7 @@ import { err, ok, type Result } from "../../domain/result.js"; import type { AnalysisResourceConstraintError } from "../../domain/analysisErrorCore.js"; import { AnalysisCancelledError } from "../../domain/analysisErrorCore.js"; import { readJsonObjectMembersFile, writeTextFile } from "../JsonFiles.js"; +import { RegularFileCleanupFailure } from "../RegularFileRead.js"; import type { JsonObjectMemberReader } from "../JsonInputFile.js"; import type { ArtifactResourceScope } from "../../artifacts/ArtifactResourceScope.js"; @@ -24,6 +25,7 @@ type SnapshotFailure = EvidenceFileError | EvidenceIntegrityError; export const readAnalysisSnapshot = async ( path: string, signal?: AbortSignal, + resources?: ArtifactResourceScope, ): Promise< Result< AnalysisSnapshot, @@ -61,6 +63,7 @@ export const readAnalysisSnapshot = async ( metadata, ], signal, + resources, ); if (!loaded.ok) return loaded; signal?.throwIfAborted(); @@ -74,6 +77,7 @@ export const readAnalysisSnapshot = async ( signal?.throwIfAborted(); return ok(snapshot); } catch (cause: unknown) { + if (cause instanceof RegularFileCleanupFailure) throw cause; if (signal?.aborted === true) return err(new AnalysisCancelledError("read_evidence_file", { cause })); return err( diff --git a/src/application/binary/BinarySessionRecords.ts b/src/application/binary/BinarySessionRecords.ts index cfa0fa3b2..5a6bb4dd0 100644 --- a/src/application/binary/BinarySessionRecords.ts +++ b/src/application/binary/BinarySessionRecords.ts @@ -11,6 +11,7 @@ import { AnalysisSnapshotMismatchError, } from "../../domain/evidenceErrors.js"; import type { AnalysisError } from "../../domain/analysisErrorBase.js"; +import type { AnalysisInputError } from "../../domain/analysisErrorCore.js"; import type { UnknownRegistryError } from "../../domain/unknownRegistryError.js"; import type { RecordUnknownInput, @@ -129,7 +130,7 @@ export abstract class BinarySessionRecords { importEvidenceBundle( bundle: unknown, - ): Result { + ): Result { const imported = this.#records.mergeEvidenceBundle(bundle); if (!imported.ok) return imported; if (imported.value.metadataChanged) this.invalidateSnapshot(); diff --git a/src/application/investigation/EvidenceLedger.test.ts b/src/application/investigation/EvidenceLedger.test.ts index d4750f9c8..995580194 100644 --- a/src/application/investigation/EvidenceLedger.test.ts +++ b/src/application/investigation/EvidenceLedger.test.ts @@ -4,6 +4,7 @@ import type { BinaryTarget } from "../../domain/binaryTargetTypes.js"; import { createEvidence } from "../../domain/evidence.js"; import { createEvidenceBundle } from "../../domain/evidenceBundle.js"; import { recordUnknownInputSchema } from "../../domain/residualUnknown.js"; +import { projectAnalysisError } from "../../domain/analysisErrorProjection.js"; import { EvidenceLedger } from "./EvidenceLedger.js"; const TARGET: BinaryTarget = { @@ -234,6 +235,32 @@ describe("evidence ledger metadata imports", () => { }); describe("evidence bundle imports", () => { + it("classifies an authenticated Evidence record as the wrong import kind", () => { + const record = createEvidence(TARGET, PROVIDER, { + operation: "health", + parameters: {}, + result: true, + }); + const result = new EvidenceLedger().import(record); + expect(result).toMatchObject({ + ok: false, + error: { + _tag: "AnalysisInputError", + userMessage: expect.stringContaining( + `this JSON is one Evidence record (${record.evidence_id})`, + ), + }, + }); + if (result.ok) throw new Error("Expected a wrong-kind import failure"); + expect(projectAnalysisError(result.error)).toMatchObject({ + code: "invalid_request", + category: "invalid_input", + message: expect.stringContaining( + `this JSON is one Evidence record (${record.evidence_id})`, + ), + }); + }); + it("rejects conflicting duplicate IDs without mutating the ledger", () => { const ledger = new EvidenceLedger(); const first = createEvidence(TARGET, PROVIDER, { diff --git a/src/application/investigation/EvidenceLedger.ts b/src/application/investigation/EvidenceLedger.ts index fb27d40c8..7a5cd9f63 100644 --- a/src/application/investigation/EvidenceLedger.ts +++ b/src/application/investigation/EvidenceLedger.ts @@ -8,6 +8,7 @@ import { validateResidualUnknownAddition, type EvidenceBundle, } from "../../domain/evidenceBundle.js"; +import { AnalysisInputError } from "../../domain/analysisErrorCore.js"; import { EvidenceIntegrityError } from "../../domain/evidenceErrors.js"; import { UnknownRegistryError } from "../../domain/unknownRegistryError.js"; import { @@ -37,7 +38,10 @@ export interface EvidenceImportDelta { readonly metadataChanged: boolean; } -type ImportResult = Result; +type ImportResult = Result< + EvidenceImportDelta, + EvidenceLedgerFailure | AnalysisInputError +>; /** Session-owned set of immutable evidence records. */ export class EvidenceLedger { @@ -76,10 +80,18 @@ export class EvidenceLedger { try { bundle = parseEvidenceBundle(input); } catch (cause: unknown) { + const failure = describeEvidenceBundleFailure(input, cause); + if (failure.kind === "single-record") + return err( + new AnalysisInputError("import_evidence_bundle", { + cause, + userMessage: failure.message, + }), + ); return err( new EvidenceIntegrityError("Evidence bundle validation failed", { cause, - userMessage: describeEvidenceBundleFailure(input, cause), + userMessage: failure.message, }), ); } diff --git a/src/application/investigation/InvestigationRecordPort.ts b/src/application/investigation/InvestigationRecordPort.ts index aacf8fa26..efaf9700b 100644 --- a/src/application/investigation/InvestigationRecordPort.ts +++ b/src/application/investigation/InvestigationRecordPort.ts @@ -2,6 +2,7 @@ import type { Evidence } from "../../domain/evidence.js"; import type { EvidenceBundle } from "../../domain/evidenceBundle.js"; import type { EvidenceIntegrityError } from "../../domain/evidenceErrors.js"; import type { AnalysisError } from "../../domain/analysisErrorBase.js"; +import type { AnalysisInputError } from "../../domain/analysisErrorCore.js"; import type { UnknownRegistryError } from "../../domain/unknownRegistryError.js"; import type { RecordUnknownInput, @@ -67,5 +68,7 @@ export interface InvestigationRecordPort EvidenceWriter, EvidenceUnknownWriter, UnknownRegistryPort { - importEvidenceBundle(bundle: unknown): Result; + importEvidenceBundle( + bundle: unknown, + ): Result; } diff --git a/src/application/investigation/InvestigationRecords.ts b/src/application/investigation/InvestigationRecords.ts index 9f10f14bd..29b93e246 100644 --- a/src/application/investigation/InvestigationRecords.ts +++ b/src/application/investigation/InvestigationRecords.ts @@ -3,6 +3,7 @@ import type { Evidence } from "../../domain/evidence.js"; import type { EvidenceBundle } from "../../domain/evidenceBundle.js"; import type { EvidenceIntegrityError } from "../../domain/evidenceErrors.js"; import type { AnalysisError } from "../../domain/analysisErrorBase.js"; +import type { AnalysisInputError } from "../../domain/analysisErrorCore.js"; import type { UnknownRegistryError } from "../../domain/unknownRegistryError.js"; import type { RecordUnknownInput, @@ -65,7 +66,7 @@ export class InvestigationRecords /** Atomically merge a bundle and report changes for the owner's post-commit observers. */ mergeEvidenceBundle( bundle: unknown, - ): Result { + ): Result { return this.#evidence.import(bundle); } diff --git a/src/application/process/ProcessCli.ts b/src/application/process/ProcessCli.ts index c353af622..94cc05c70 100644 --- a/src/application/process/ProcessCli.ts +++ b/src/application/process/ProcessCli.ts @@ -1,7 +1,10 @@ import { z } from "zod"; import { AnalysisError } from "../../domain/analysisErrorBase.js"; -import { AnalysisInputError } from "../../domain/analysisErrorCore.js"; +import { + AnalysisCancelledError, + AnalysisInputError, +} from "../../domain/analysisErrorCore.js"; import { projectAnalysisError } from "../../domain/analysisErrorProjection.js"; import { createEvidence, parseEvidence } from "../../domain/evidence.js"; import { describeValidationFailure } from "../../domain/evidenceBundle.js"; @@ -23,6 +26,7 @@ import { } from "../../domain/process/processEvidenceProvider.js"; import { createProcessCaptureEvidence } from "./ProcessEvidence.js"; import { readJsonFile } from "../JsonFiles.js"; +import { RegularFileCleanupFailure } from "../RegularFileRead.js"; /** Safe process-command failure returned to the CLI adapter. */ export interface ProcessCliErrorOutput { @@ -51,7 +55,7 @@ export const captureProcessScenarioFile = async ( signal?: AbortSignal, ) => { try { - const input = await readJson(path); + const input = await readJson(path, "capture_process_scenario", signal); const parsed = processScenarioSchema.safeParse(input); if (!parsed.success) throw analysisInputErrorFromIssues( @@ -86,6 +90,7 @@ export const captureProcessScenarioFile = async ( if (!captured.ok) return cliAnalysisError(captured.error); return createProcessCaptureEvidence(parsed.data, captured.value); } catch (cause: unknown) { + if (cause instanceof RegularFileCleanupFailure) throw cause; return projectProcessCliError(cause); } }; @@ -95,14 +100,23 @@ export const compareProcessEvidenceFiles = async ( leftPath: string, rightPath: string, traceSpecPath?: string, + signal?: AbortSignal, ) => { try { - const left = parseCaptureEvidence(await readJson(leftPath), "left"); - const right = parseCaptureEvidence(await readJson(rightPath), "right"); + const left = parseCaptureEvidence( + await readJson(leftPath, "compare_process_captures", signal), + "left", + ); + const right = parseCaptureEvidence( + await readJson(rightPath, "compare_process_captures", signal), + "right", + ); const traceSpecification = traceSpecPath === undefined ? undefined - : parseTraceSpecification(await readJson(traceSpecPath)); + : parseTraceSpecification( + await readJson(traceSpecPath, "compare_process_captures", signal), + ); const comparison = traceSpecification === undefined ? compareProcessCaptures(left.capture, right.capture) @@ -129,6 +143,7 @@ export const compareProcessEvidenceFiles = async ( evidenceLinks: [left.id, right.id], }); } catch (cause: unknown) { + if (cause instanceof RegularFileCleanupFailure) throw cause; return projectProcessCliError(cause); } }; @@ -194,8 +209,21 @@ const invalidCaptureEvidence = (cause: unknown): ProcessCliFailure => `Capture evidence is malformed (${describeValidationFailure(cause)}). Create new capture evidence, then try again.`, ); -const readJson = async (path: string): Promise => { - const loaded = await readJsonFile(path); +const readJson = async ( + path: string, + operation: "capture_process_scenario" | "compare_process_captures", + signal?: AbortSignal, +): Promise => { + if (signal?.aborted) throw new AnalysisCancelledError(operation); + const loaded = await readJsonFile(path, signal).catch((cause: unknown) => { + if ( + signal?.aborted === true && + !(cause instanceof RegularFileCleanupFailure) + ) + throw new AnalysisCancelledError(operation, { cause }); + throw cause; + }); + if (signal?.aborted) throw new AnalysisCancelledError(operation); if (loaded.ok) return loaded.value; if (loaded.error._tag !== "EvidenceFileError") throw loaded.error; const detail = describeValidationFailure(loaded.error.cause); diff --git a/src/cli/processCommands.ts b/src/cli/processCommands.ts index d58a4f059..09538a6c4 100644 --- a/src/cli/processCommands.ts +++ b/src/cli/processCommands.ts @@ -40,12 +40,19 @@ export const registerProcessCommands = ( .describe("Optional partial-order or finite-trace specification path"), }), run: ({ args }) => - logCliCommand( - logger, - "compare-process-captures", - () => - compareProcessEvidenceFiles(args.left, args.right, args.traceSpec), - isProcessCliFailure, + withCommandCancellation((signal) => + logCliCommand( + logger, + "compare-process-captures", + () => + compareProcessEvidenceFiles( + args.left, + args.right, + args.traceSpec, + signal, + ), + isProcessCliFailure, + ), ), }); }; diff --git a/src/domain/analysisErrorCore.ts b/src/domain/analysisErrorCore.ts index c13ba891d..8e1138f19 100644 --- a/src/domain/analysisErrorCore.ts +++ b/src/domain/analysisErrorCore.ts @@ -45,13 +45,15 @@ export class AnalysisProtocolError extends AnalysisError { /** Caller input failed provider-neutral application parsing. */ export class AnalysisInputError extends AnalysisError { readonly _tag = "AnalysisInputError"; + override readonly userMessage: string | undefined; constructor( readonly operation: string, - options?: AnalysisErrorOptions, + options?: AnalysisErrorOptions & { readonly userMessage?: string }, readonly issues: readonly AnalysisInputIssue[] = [], ) { super(`Invalid analysis input for ${operation}`, options); + this.userMessage = options?.userMessage; } } diff --git a/src/domain/analysisErrorPresentation.ts b/src/domain/analysisErrorPresentation.ts index 3e6aa049c..fd5db4823 100644 --- a/src/domain/analysisErrorPresentation.ts +++ b/src/domain/analysisErrorPresentation.ts @@ -148,6 +148,7 @@ export const analysisErrorCategory = ( error instanceof EvidenceFileError && (error.reason === "missing" || error.reason === "not-file" || + error.reason === "wrong-kind" || error.reason === "exists") ) return "invalid_input"; @@ -210,7 +211,10 @@ export const analysisErrorUserMessage = (error: AnalysisError): string => { if (error instanceof AnalysisArtifactChangedError) return "The selected artifact changed during acquisition; no stable snapshot was decoded."; if (error instanceof AnalysisInputError) - return "Analysis input is invalid. Check the arguments and try again."; + return ( + error.userMessage ?? + "Analysis input is invalid. Check the arguments and try again." + ); const hopperMessage = hopperErrorUserMessage(error); if (hopperMessage !== undefined) return hopperMessage; if (error.userMessage !== undefined) return error.userMessage; diff --git a/src/domain/evidenceBundle.test.ts b/src/domain/evidenceBundle.test.ts index c0a322fe6..d2f90cbf6 100644 --- a/src/domain/evidenceBundle.test.ts +++ b/src/domain/evidenceBundle.test.ts @@ -5,6 +5,7 @@ import { ANALYSIS_SNAPSHOT_TARGET } from "./analysisSnapshot.fixture.js"; import { createEvidenceBundle, createImmutableEvidenceBundle, + describeEvidenceBundleFailure, evidenceBundleForTarget, parseEvidenceBundle, } from "./evidenceBundle.js"; @@ -18,6 +19,24 @@ const provider = { id: "fixture", name: "Fixture", version: "1" }; const targetDigest = "a".repeat(64); const foreignDigest = "b".repeat(64); +describe("evidence bundle failure classification", () => { + it("treats only authenticated standalone Evidence as the wrong input kind", () => { + const record = createEvidence(undefined, provider, { + operation: "observe", + parameters: {}, + result: { observed: true }, + }); + const single = describeEvidenceBundleFailure(record, new Error("bundle")); + expect(single).toMatchObject({ kind: "single-record" }); + + const tampered = describeEvidenceBundleFailure( + { ...record, normalized_result: { observed: false } }, + new Error("bundle"), + ); + expect(tampered).toMatchObject({ kind: "invalid-bundle" }); + }); +}); + const makeUnknown = ( question: string, scopeDigest: string, diff --git a/src/domain/evidenceBundle.ts b/src/domain/evidenceBundle.ts index 5e94620c7..c1fa3ce1c 100644 --- a/src/domain/evidenceBundle.ts +++ b/src/domain/evidenceBundle.ts @@ -208,16 +208,29 @@ const referencedEvidenceIds = (unknown: ResidualUnknown): readonly string[] => [ * Name the bundle constraint that failed and how to recover. A single * Evidence record, such as one command result, is not a bundle. */ +export type EvidenceBundleFailureDescription = + | { readonly kind: "single-record"; readonly message: string } + | { readonly kind: "invalid-bundle"; readonly message: string }; + export const describeEvidenceBundleFailure = ( input: unknown, cause: unknown, -): string => { - const record = evidenceSchema.safeParse(input); - if (record.success) - return `Expected an Evidence bundle with records and manifest arrays, but this JSON is one Evidence record (${record.data.evidence_id}). Export a session bundle with the MCP export_evidence_bundle tool and supply that file.`; - return cause instanceof z.ZodError - ? `Evidence bundle does not match the bundle schema ${describeValidationFailure(cause)}. Supply an unmodified bundle written by export_evidence_bundle or rea evidence-export.` - : `Evidence bundle validation failed: ${describeValidationFailure(cause)}. Recreate or re-export the bundle, then try again.`; +): EvidenceBundleFailureDescription => { + try { + const record = parseEvidence(input); + return { + kind: "single-record", + message: `Expected an Evidence bundle with records and manifest arrays, but this JSON is one Evidence record (${record.evidence_id}). Export a session bundle with the MCP export_evidence_bundle tool and supply that file.`, + }; + } catch { + return { + kind: "invalid-bundle", + message: + cause instanceof z.ZodError + ? `Evidence bundle does not match the bundle schema ${describeValidationFailure(cause)}. Supply an unmodified bundle written by export_evidence_bundle or rea evidence-export.` + : `Evidence bundle validation failed: ${describeValidationFailure(cause)}. Recreate or re-export the bundle, then try again.`, + }; + } }; /** Locate the first schema issue, or keep a thrown constraint message. */ diff --git a/src/domain/evidenceErrors.ts b/src/domain/evidenceErrors.ts index 364cbe79d..1aae747fd 100644 --- a/src/domain/evidenceErrors.ts +++ b/src/domain/evidenceErrors.ts @@ -45,6 +45,7 @@ export class EvidenceReferenceError extends EvidenceIntegrityError { /** Evidence bundle filesystem access failed within the configured policy. */ export class EvidenceFileError extends AnalysisError { readonly _tag = "EvidenceFileError"; + override readonly userMessage: string | undefined; /** Caller-selected path that failed, resolved against the working directory. */ readonly path: string | undefined; @@ -53,14 +54,22 @@ export class EvidenceFileError extends AnalysisError { constructor( readonly operation: "read" | "write", - readonly reason: "not-file" | "exists" | "invalid-json" | "missing" | "io", + readonly reason: + | "not-file" + | "exists" + | "wrong-kind" + | "invalid-json" + | "missing" + | "io", options?: AnalysisErrorOptions & { readonly path?: string; readonly published?: PublishedEvidenceFile; + readonly userMessage?: string; }, ) { super(`Evidence bundle ${operation} failed: ${reason}`, options); this.path = options?.path; this.published = options?.published; + this.userMessage = options?.userMessage; } } diff --git a/src/process/ProcessOwnership.test.ts b/src/process/ProcessOwnership.test.ts index 0aa644add..de233698c 100644 --- a/src/process/ProcessOwnership.test.ts +++ b/src/process/ProcessOwnership.test.ts @@ -67,81 +67,83 @@ describe("owned process-group cleanup discovery", () => { }); describe("opaque process neighbors during cleanup", () => { - it("cleans verified run-owned groups and records a withheld unrelated neighbor", async () => { - const processes = [ - { pid: 100, parentPid: 1, processGroupId: 100, command: "capture" }, - { - pid: 200, - parentPid: 1, - processGroupId: 200, - command: "detached-child", - }, - { - pid: 900, - parentPid: 1, - processGroupId: 900, - command: "/usr/bin/opaque-neighbor", - }, - ].map((process) => ({ ...process, state: "S" })); - const signalGroup = vi.fn(); - const identities = new Map( - processes.map(({ pid }) => [ - pid, - { state: "readable" as const, identity: `start-${String(pid)}` }, - ]), - ); - const adapter: ProcessOwnershipHost = { - platform: "darwin", - listProcesses: () => Promise.resolve(processes), - environment: (pid) => - Promise.resolve({ - REA_PROCESS_RUN_ID: pid === 900 ? "unowned" : "run-token", - }), - processIdentities: () => Promise.resolve(identities), - runTokens: (members) => - Promise.resolve( - new Map( - members.map(({ pid }) => [ - pid, - pid === 900 - ? { - state: "unavailable" as const, - reason: "platform_binary_environment_withheld", - } - : { state: "readable" as const, runId: "run-token" }, - ]), - ), - ), - signalGroup, - }; - - const result = await cleanupOwnedProcessGroup( - { - ...ownership, - sweepTokenOwnedProcesses: true, - captureBaseline: [], - }, - adapter, - ); - - expect(result).toMatchObject({ - cleaned: true, - signaled: true, - unverified: [ - { pid: 900, diagnostic: "platform_binary_environment_withheld" }, - ], - }); - expect(signalGroup.mock.calls).toEqual([ - [100, "SIGKILL"], - [200, "SIGKILL"], - ]); - expect(signalGroup).not.toHaveBeenCalledWith(900, "SIGKILL"); - }); - it.each([ - "environment_unavailable", + "platform_binary_environment_withheld", "restricted_process_environment_withheld", - ])("fails closed for an unrelated candidate with %s", async (diagnostic) => { + ])( + "cleans verified run-owned groups and records an unrelated %s neighbor", + async (diagnostic) => { + const processes = [ + { pid: 100, parentPid: 1, processGroupId: 100, command: "capture" }, + { + pid: 200, + parentPid: 1, + processGroupId: 200, + command: "detached-child", + }, + { + pid: 900, + parentPid: 1, + processGroupId: 900, + command: "/usr/bin/opaque-neighbor", + }, + ].map((process) => ({ ...process, state: "S" })); + const signalGroup = vi.fn(); + const identities = new Map( + processes.map(({ pid }) => [ + pid, + { state: "readable" as const, identity: `start-${String(pid)}` }, + ]), + ); + const adapter: ProcessOwnershipHost = { + platform: "darwin", + listProcesses: () => Promise.resolve(processes), + environment: (pid) => + Promise.resolve({ + REA_PROCESS_RUN_ID: pid === 900 ? "unowned" : "run-token", + }), + processIdentities: () => Promise.resolve(identities), + runTokens: (members) => + Promise.resolve( + new Map( + members.map(({ pid }) => [ + pid, + pid === 900 + ? { + state: "unavailable" as const, + reason: diagnostic, + } + : { state: "readable" as const, runId: "run-token" }, + ]), + ), + ), + signalGroup, + }; + + const result = await cleanupOwnedProcessGroup( + { + ...ownership, + sweepTokenOwnedProcesses: true, + captureBaseline: [], + }, + adapter, + ); + + expect(result).toMatchObject({ + cleaned: true, + signaled: true, + unverified: [{ pid: 900, diagnostic }], + }); + expect(signalGroup.mock.calls).toEqual([ + [100, "SIGKILL"], + [200, "SIGKILL"], + ]); + expect(signalGroup).not.toHaveBeenCalledWith(900, "SIGKILL"); + }, + ); + + it("fails closed for an unrelated candidate with an ordinary unavailable environment", async () => { + const diagnostic = "environment_unavailable"; const processes = [ { pid: 100, parentPid: 1, processGroupId: 100, command: "capture" }, { @@ -207,75 +209,81 @@ describe("opaque process neighbors during cleanup", () => { }); describe("related sweep candidates during cleanup", () => { - it.each(["environment_unavailable", "platform_binary_environment_withheld"])( - "fails closed for a related candidate with %s", - async (diagnostic) => { - const processes = [ - { - pid: 100, - parentPid: 1, - processGroupId: 100, - state: "S", - command: "capture", - }, - { - pid: 101, - parentPid: 100, - processGroupId: 100, - state: "S", - uid: process.getuid?.() === 0 ? 1 : 0, - command: "ready-hang", - }, - ]; - const signalGroup = vi.fn(); - const identities = new Map( - processes.map(({ pid }) => [ - pid, - { state: "readable" as const, identity: `start-${String(pid)}` }, - ]), - ); - const adapter: ProcessOwnershipHost = { - listProcesses: () => Promise.resolve(processes), - environment: (pid) => - pid === 100 - ? Promise.resolve({ REA_PROCESS_RUN_ID: "run-token" }) - : Promise.reject(new Error("EACCES: permission denied")), - processIdentities: () => Promise.resolve(identities), - runTokens: (members) => - Promise.resolve( - new Map( - members.map(({ pid }) => [ - pid, - pid === 100 - ? { state: "readable" as const, runId: "run-token" } - : { - state: "unavailable" as const, - reason: diagnostic, - }, - ]), - ), + it.each([ + "environment_unavailable", + "platform_binary_environment_withheld", + "restricted_process_environment_withheld", + ])("fails closed for a related candidate with %s", async (diagnostic) => { + const processes = [ + { + pid: 100, + parentPid: 1, + processGroupId: 100, + state: "S", + command: "capture", + }, + { + pid: 101, + parentPid: 100, + processGroupId: 100, + state: "S", + uid: + diagnostic === "restricted_process_environment_withheld" + ? (process.getuid?.() ?? 0) + : process.getuid?.() === 0 + ? 1 + : 0, + command: "ready-hang", + }, + ]; + const signalGroup = vi.fn(); + const identities = new Map( + processes.map(({ pid }) => [ + pid, + { state: "readable" as const, identity: `start-${String(pid)}` }, + ]), + ); + const adapter: ProcessOwnershipHost = { + listProcesses: () => Promise.resolve(processes), + environment: (pid) => + pid === 100 + ? Promise.resolve({ REA_PROCESS_RUN_ID: "run-token" }) + : Promise.reject(new Error("EACCES: permission denied")), + processIdentities: () => Promise.resolve(identities), + runTokens: (members) => + Promise.resolve( + new Map( + members.map(({ pid }) => [ + pid, + pid === 100 + ? { state: "readable" as const, runId: "run-token" } + : { + state: "unavailable" as const, + reason: diagnostic, + }, + ]), ), - signalGroup, - }; - - const result = await cleanupOwnedProcessGroup( - { - ...ownership, - sweepTokenOwnedProcesses: true, - captureBaseline: [], - }, - adapter, - ); - - expect(result).toMatchObject({ - cleaned: false, - reason: expect.stringContaining( - "process ownership token could not be read", ), - }); - expect(signalGroup).not.toHaveBeenCalled(); - }, - ); + signalGroup, + }; + + const result = await cleanupOwnedProcessGroup( + { + ...ownership, + sweepTokenOwnedProcesses: true, + captureBaseline: [], + }, + adapter, + ); + + expect(result).toMatchObject({ + cleaned: false, + reason: expect.stringContaining( + "process ownership token could not be read", + ), + }); + expect(signalGroup).not.toHaveBeenCalled(); + }); }); describe("sampled detached process groups during cleanup", () => { diff --git a/src/process/ProcessOwnership.ts b/src/process/ProcessOwnership.ts index 5b181fe76..399b9cd06 100644 --- a/src/process/ProcessOwnership.ts +++ b/src/process/ProcessOwnership.ts @@ -805,17 +805,21 @@ const TOKEN_READ_RETRY_DELAY_MS = 40; /** Darwin reports this when the kernel withholds a platform binary's environment. */ const PLATFORM_BINARY_ENVIRONMENT_WITHHELD = "platform_binary_environment_withheld"; +/** Darwin reports this when the kernel withholds a restricted process environment. */ +const RESTRICTED_PROCESS_ENVIRONMENT_WITHHELD = + "restricted_process_environment_withheld"; const currentProcessUid = (): number | undefined => typeof process.getuid === "function" ? process.getuid() : undefined; /** * Whether the operating system provably withheld this candidate's run token: - * current macOS omits the environment of Apple platform binaries from - * KERN_PROCARGS2 and fails with EINVAL for processes owned by another - * account, and neither class can be token-verified by any caller. Such a - * candidate is recorded as unverified instead of failing an otherwise clean - * capture; every other unreadable candidate stays fail-closed. + * current macOS omits the environment of Apple platform binaries and + * CS_RESTRICT processes from KERN_PROCARGS2, and fails with EINVAL for + * processes owned by another account. These classes cannot be token-verified + * by this caller. An unrelated candidate is recorded as unverified instead + * of failing an otherwise clean capture; every related or otherwise + * unreadable candidate stays fail-closed. */ const environmentWithheldFromInspection = ( entry: ProcessTableEntry, @@ -824,7 +828,10 @@ const environmentWithheldFromInspection = ( const uid = currentProcessUid(); if (uid !== undefined && entry.uid !== undefined && entry.uid !== uid) return true; - return diagnostic === PLATFORM_BINARY_ENVIRONMENT_WITHHELD; + return ( + diagnostic === PLATFORM_BINARY_ENVIRONMENT_WITHHELD || + diagnostic === RESTRICTED_PROCESS_ENVIRONMENT_WITHHELD + ); }; const scanTokenOwnedProcesses = async ( diff --git a/src/server/registerBundleComparisonTool.ts b/src/server/registerBundleComparisonTool.ts index 18e734cf5..75ef2a618 100644 --- a/src/server/registerBundleComparisonTool.ts +++ b/src/server/registerBundleComparisonTool.ts @@ -12,12 +12,14 @@ import { BUNDLE_COMPARISON_PROVIDER } from "../application/InvestigationProvider import { toolRegistrationOptions } from "./toolRegistrationOptions.js"; import { withAdmittedAnalysis } from "./analysisAdmission.js"; import { runAdmittedToolOperation } from "./admittedToolOperation.js"; +import type { ArtifactResourceScope } from "../artifacts/ArtifactResourceScope.js"; /** Register canonical Evidence bundle comparison. */ export const registerBundleComparisonTool = ( server: EvidenceMcpServer, session: BinarySessionPort, contract: ReturnType>, + resources: ArtifactResourceScope, ): void => { const admission = withAdmittedAnalysis({ kind: "session", session }); server.registerTool( @@ -31,8 +33,16 @@ export const registerBundleComparisonTool = ( context.mcpReq.signal, async () => { const [left, right] = await Promise.all([ - readEvidenceBundle(input.left_bundle_path, context.mcpReq.signal), - readEvidenceBundle(input.right_bundle_path, context.mcpReq.signal), + readEvidenceBundle( + input.left_bundle_path, + context.mcpReq.signal, + resources, + ), + readEvidenceBundle( + input.right_bundle_path, + context.mcpReq.signal, + resources, + ), ]); if (!left.ok) return server.delivery.toCallToolResult(left, contract); if (!right.ok) diff --git a/src/server/registerSessionRecordTools.ts b/src/server/registerSessionRecordTools.ts index 5854aac9d..41efe981e 100644 --- a/src/server/registerSessionRecordTools.ts +++ b/src/server/registerSessionRecordTools.ts @@ -89,6 +89,7 @@ const registerSnapshotEvidenceTool = ({ const registerImportEvidenceTool = ({ server, session, + resources, importContract, }: EvidenceToolRegistration): void => { server.registerTool( @@ -97,7 +98,7 @@ const registerImportEvidenceTool = ({ async (input, context) => { const path = input.path; const signal = context.mcpReq.signal; - const loaded = await readImmutableEvidenceBundle(path, signal); + const loaded = await readImmutableEvidenceBundle(path, signal, resources); if (!loaded.ok) return server.delivery.toCallToolResult(loaded, importContract); const retainedUnknownRevisions = new Set( diff --git a/src/server/registerSessionTools.ts b/src/server/registerSessionTools.ts index 4db8031ce..16b9e6408 100644 --- a/src/server/registerSessionTools.ts +++ b/src/server/registerSessionTools.ts @@ -160,6 +160,7 @@ export interface LifecycleToolRegistration { const registerLifecycleTools = ( registration: LifecycleToolRegistration, + artifactResources: ArtifactResourceScope, ): void => { const { server, @@ -169,7 +170,7 @@ const registerLifecycleTools = ( availabilityPolicy, androidAnalysisAvailability, } = registration; - registerOpenLifecycleTool(registration); + registerOpenLifecycleTool(registration, artifactResources); registerCloseLifecycleTool(registration); registerSessionStatusTool({ server, @@ -181,12 +182,10 @@ const registerLifecycleTools = ( }); }; -const registerOpenLifecycleTool = ({ - server, - session, - logger, - openContract, -}: LifecycleToolRegistration): void => { +const registerOpenLifecycleTool = ( + { server, session, logger, openContract }: LifecycleToolRegistration, + artifactResources: ArtifactResourceScope, +): void => { server.registerTool( openContract.name, toolRegistrationOptions(openContract), @@ -196,6 +195,7 @@ const registerOpenLifecycleTool = ({ const loaded = await readAnalysisSnapshot( input.snapshot_path, context.mcpReq.signal, + artifactResources, ); if (!loaded.ok) return server.delivery.toCallToolResult(loaded, openContract); @@ -302,42 +302,45 @@ export const registerSessionTools = ( const compareBundlesContract = toolContract("compare_bundles"); const snapshotContract = toolContract("get_evidence_bundle"); const processResources = new ProcessCaptureResourceScope(); - registerLifecycleTools({ - server, - session, - logger, - openContract, - closeContract, - statusContract, - startedAt: options.startedAt ?? new Date().toISOString(), - availabilityPolicy: sessionAvailabilityPolicy( - options.availabilityPolicy, - {}, - ), - androidAnalysisAvailability: - options.androidAnalysisAvailability ?? missingAndroidAvailability, - closeProcessResources: async () => { - try { - await processResources.retryCleanup(); - return ok(null); - } catch (cause: unknown) { - return err( - new ProcessCaptureError( - "process capture cleanup remains incomplete", - { - cause, - reason: "cleanup_incomplete", - cleanupResources: ["process_capture_resources"], - executionFailure: - cause instanceof Error - ? cause.message || cause.name - : String(cause), - }, - ), - ); - } + registerLifecycleTools( + { + server, + session, + logger, + openContract, + closeContract, + statusContract, + startedAt: options.startedAt ?? new Date().toISOString(), + availabilityPolicy: sessionAvailabilityPolicy( + options.availabilityPolicy, + {}, + ), + androidAnalysisAvailability: + options.androidAnalysisAvailability ?? missingAndroidAvailability, + closeProcessResources: async () => { + try { + await processResources.retryCleanup(); + return ok(null); + } catch (cause: unknown) { + return err( + new ProcessCaptureError( + "process capture cleanup remains incomplete", + { + cause, + reason: "cleanup_incomplete", + cleanupResources: ["process_capture_resources"], + executionFailure: + cause instanceof Error + ? cause.message || cause.name + : String(cause), + }, + ), + ); + } + }, }, - }); + options.artifactResources, + ); registerEvidenceTools({ server, session, @@ -381,7 +384,12 @@ export const registerSessionTools = ( registerProcessComparisonTool(server, session, compareContract); registerArtifactComparisonTool(server, session, compareArtifactsContract); registerFunctionComparisonTool(server, session, compareFunctionsContract); - registerBundleComparisonTool(server, session, compareBundlesContract); + registerBundleComparisonTool( + server, + session, + compareBundlesContract, + options.artifactResources, + ); registerInvestigationTools(server, session); registerUnknownTools({ server, session }); registerContextTools(server, session); diff --git a/tests/boundary/cli/evidenceBundleCommands.test.ts b/tests/boundary/cli/evidenceBundleCommands.test.ts index 418c20eb4..abb56f7e8 100644 --- a/tests/boundary/cli/evidenceBundleCommands.test.ts +++ b/tests/boundary/cli/evidenceBundleCommands.test.ts @@ -66,6 +66,27 @@ cliTest( }, ); +cliTest( + "reports a standalone Evidence record as the wrong input file kind", + async ({ cli }) => { + const root = await createTestTempDirectory("rea-evidence-record-input-"); + const path = join(root, "record.json"); + const record = revisionBundle().records[0]; + if (record === undefined) throw new Error("Missing fixture Evidence"); + await writeFile(path, JSON.stringify(record)); + const result = await cli.run({ + arguments: ["evidence-import", path, "--json"], + }); + expect(result.exitCode).toBe(1); + expect(result.json).toMatchObject({ + code: "invalid_request", + category: "invalid_input", + details: { path }, + message: expect.stringContaining("this JSON is one Evidence record"), + }); + }, +); + cliTest( "rejects altered Evidence and incomplete unknown history before reporting counts", async ({ cli }) => { diff --git a/tests/boundary/filesystem/analysisSnapshot.test.ts b/tests/boundary/filesystem/analysisSnapshot.test.ts index a235fb4e6..e4b331538 100644 --- a/tests/boundary/filesystem/analysisSnapshot.test.ts +++ b/tests/boundary/filesystem/analysisSnapshot.test.ts @@ -1,10 +1,11 @@ import { readFile, stat, writeFile } from "node:fs/promises"; import { join } from "node:path"; -import { describe, expect, it } from "vitest"; +import { describe, expect, it, onTestFinished, vi } from "vitest"; import { withArtifactResourceScope } from "../../fixtures/artifactInventory.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; +import { holdFirstFileRead } from "../../support/holdFirstFileRead.js"; import { createAnalysisExecution } from "../../../src/application/AnalysisProvider.js"; import { @@ -29,6 +30,8 @@ import { createEvidence } from "../../../src/domain/evidence.js"; import { createEvidenceBundle } from "../../../src/domain/evidenceBundle.js"; import { readJsonObjectFile } from "../../../src/application/JsonInputFile.js"; import { RegularFileChangedError } from "../../../src/filesystem/RegularFile.js"; +import { OwnedFileHandle } from "../../../src/filesystem/OwnedFileHandle.js"; +import { RegularFileCleanupFailure } from "../../../src/application/RegularFileRead.js"; const snapshotFixture = (): AnalysisSnapshot => { const target = snapshotTarget(TARGET); @@ -227,20 +230,67 @@ describe("analysis snapshot member decoding", () => { `${" ".repeat(9 * 1024 * 1024)}${JSON.stringify(snapshot)}`, ); const controller = new AbortController(); + const reads = await holdFirstFileRead(path); + onTestFinished(() => { + controller.abort(); + reads.release(); + }); const pending = readAnalysisSnapshot(path, controller.signal); - const timer = setTimeout(() => controller.abort(), 1); + await reads.firstRead; + controller.abort(); + reads.release(); try { expect(await pending).toMatchObject({ ok: false, error: { _tag: "AnalysisCancelledError" }, }); + expect(reads.readCount).toBe(1); } finally { - clearTimeout(timer); + vi.restoreAllMocks(); } const loaded = await readAnalysisSnapshot(path); if (!loaded.ok) throw loaded.error; expect(loaded.value).toEqual(snapshot); }); +}); + +describe("analysis snapshot file ownership", () => { + it.each([false, true])( + "retains the file owner when snapshot close fails (cancelled: %s)", + async (cancelDuringClose) => { + const directory = await createTestTempDirectory("rea-snapshot-cleanup-"); + const path = join(directory, "snapshot.json"); + await writeFile(path, JSON.stringify(snapshotFixture())); + const controller = new AbortController(); + const cleanupCause = new Error("injected snapshot file close failure"); + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementationOnce(async () => { + if (cancelDuringClose) controller.abort(); + throw cleanupCause; + }); + let failure: unknown; + try { + try { + await readAnalysisSnapshot( + path, + cancelDuringClose ? controller.signal : undefined, + ); + } catch (cause: unknown) { + failure = cause; + } + expect(failure).toBeInstanceOf(RegularFileCleanupFailure); + if (!(failure instanceof RegularFileCleanupFailure)) + throw new Error("Expected the retained snapshot file handle owner"); + expect(failure.cleanupCause).toBe(cleanupCause); + expect(failure.owner.handle.fd).toBeGreaterThanOrEqual(0); + } finally { + close.mockRestore(); + if (failure instanceof RegularFileCleanupFailure) + await failure.owner.close(); + } + }, + ); it("rejects changed bytes between scans on the same descriptor", async () => { const directory = await createTestTempDirectory("rea-snapshot-changed-"); diff --git a/tests/boundary/filesystem/evidenceBundleFiles.test.ts b/tests/boundary/filesystem/evidenceBundleFiles.test.ts index 856a545aa..44d577d26 100644 --- a/tests/boundary/filesystem/evidenceBundleFiles.test.ts +++ b/tests/boundary/filesystem/evidenceBundleFiles.test.ts @@ -434,21 +434,8 @@ describe("evidence bundle filesystem adapter", () => { }, ); - it("names the failed bundle constraint for a single record or schema mismatch", async () => { + it("names schema mismatches that prevent bundle parsing", async () => { const directory = await createTestTempDirectory("rea-evidence-"); - const record = bundle().records[0]; - const single = join(directory, "record.json"); - await writeFile(single, JSON.stringify(record)); - expect(await readEvidenceBundle(single)).toMatchObject({ - ok: false, - error: { - _tag: "EvidenceIntegrityError", - userMessage: expect.stringContaining( - `this JSON is one Evidence record (${String(record?.evidence_id)})`, - ), - }, - }); - const partial = join(directory, "partial.json"); await writeFile(partial, JSON.stringify({ evidence_id: "typo" })); const rejected = await readEvidenceBundle(partial); @@ -477,3 +464,38 @@ describe("evidence bundle filesystem adapter", () => { }); }); }); + +describe("standalone Evidence bundle inputs", () => { + it("classifies a record only after authenticating it", async () => { + const directory = await createTestTempDirectory("rea-evidence-"); + const record = bundle().records[0]; + const single = join(directory, "record.json"); + await writeFile(single, JSON.stringify(record)); + expect(await readEvidenceBundle(single)).toMatchObject({ + ok: false, + error: { + _tag: "EvidenceFileError", + reason: "wrong-kind", + path: single, + userMessage: expect.stringContaining( + `this JSON is one Evidence record (${String(record?.evidence_id)})`, + ), + }, + }); + + const tamperedRecord = join(directory, "tampered-record.json"); + await writeFile( + tamperedRecord, + JSON.stringify({ ...record, normalized_result: "changed" }), + ); + expect(await readEvidenceBundle(tamperedRecord)).toMatchObject({ + ok: false, + error: { + _tag: "EvidenceIntegrityError", + userMessage: expect.stringContaining( + "does not match the bundle schema", + ), + }, + }); + }); +}); diff --git a/tests/boundary/filesystem/jsonFileResourceOwnership.test.ts b/tests/boundary/filesystem/jsonFileResourceOwnership.test.ts new file mode 100644 index 000000000..9e04ec1e0 --- /dev/null +++ b/tests/boundary/filesystem/jsonFileResourceOwnership.test.ts @@ -0,0 +1,75 @@ +import { writeFile } from "node:fs/promises"; +import { join } from "node:path"; + +import { expect, it, vi } from "vitest"; + +import { ArtifactResourceScope } from "../../../src/artifacts/ArtifactResourceScope.js"; +import { readJsonFile } from "../../../src/application/JsonFiles.js"; +import { RegularFileCleanupFailure } from "../../../src/application/RegularFileRead.js"; +import { OwnedFileHandle } from "../../../src/filesystem/OwnedFileHandle.js"; +import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; + +it("retains and retries a JSON file owner after a persistent close failure", async () => { + const root = await createTestTempDirectory("rea-json-file-owner-"); + const path = join(root, "input.json"); + await writeFile(path, '{"value":"retained"}'); + const resources = new ArtifactResourceScope(); + const closeFailure = new Error("injected persistent close failure"); + let attempts = 0; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async () => { + attempts += 1; + throw closeFailure; + }); + let failure: unknown; + try { + try { + await readJsonFile(path, undefined, resources); + } catch (cause: unknown) { + failure = cause; + } + expect(failure).toBeInstanceOf(RegularFileCleanupFailure); + if (!(failure instanceof RegularFileCleanupFailure)) + throw new Error("Expected the failed file owner to remain visible"); + expect(failure.cleanupCause).toBe(closeFailure); + expect(failure.outcome).toMatchObject({ + kind: "completed", + value: { ok: true, value: { value: "retained" } }, + }); + expect(failure.owner.handle.fd).toBeGreaterThanOrEqual(0); + expect(attempts).toBe(2); + } finally { + close.mockRestore(); + await resources.close(); + } + if (!(failure instanceof RegularFileCleanupFailure)) + throw new Error("Expected the retained file owner"); + expect(failure.owner.handle.fd).toBe(-1); +}); + +it("returns parsed JSON when a failed file close is recovered by the resource scope", async () => { + const root = await createTestTempDirectory("rea-json-file-close-retry-"); + const path = join(root, "input.json"); + await writeFile(path, '{"value":"retained"}'); + const resources = new ArtifactResourceScope(); + const closeFailure = new Error("injected transient close failure"); + const originalClose = OwnedFileHandle.prototype.close; + let attempts = 0; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async function (this: OwnedFileHandle) { + attempts += 1; + if (attempts === 1) throw closeFailure; + await originalClose.call(this); + }); + try { + const parsed = await readJsonFile(path, undefined, resources); + if (!parsed.ok) throw parsed.error; + expect(parsed.value).toEqual({ value: "retained" }); + expect(attempts).toBe(2); + } finally { + close.mockRestore(); + await resources.close(); + } +}); diff --git a/tests/boundary/filesystem/processCliFileInput.test.ts b/tests/boundary/filesystem/processCliFileInput.test.ts index c4b340ffc..10548091a 100644 --- a/tests/boundary/filesystem/processCliFileInput.test.ts +++ b/tests/boundary/filesystem/processCliFileInput.test.ts @@ -1,15 +1,22 @@ import { writeFile } from "node:fs/promises"; import { join } from "node:path"; -import { describe, expect, it } from "vitest"; +import { describe, expect, it, onTestFinished, vi } from "vitest"; import { captureProcessScenarioFile, + compareProcessEvidenceFiles, projectProcessCliError, } from "../../../src/application/process/ProcessCli.js"; import { JSON_BYTE_ORDER_MARK_MESSAGE } from "../../../src/application/Utf8JsonInput.js"; +import { createEvidence } from "../../../src/domain/evidence.js"; +import { PROCESS_PROVIDER } from "../../../src/domain/process/processEvidenceProvider.js"; +import { EMPTY_PROCESS_CAPTURE_EXAMPLE } from "../../../src/domain/process/processCaptureExample.js"; +import { OwnedFileHandle } from "../../../src/filesystem/OwnedFileHandle.js"; +import { RegularFileCleanupFailure } from "../../../src/application/RegularFileRead.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; +import { holdFirstFileRead } from "../../support/holdFirstFileRead.js"; -describe("process CLI input diagnostics", () => { +describe("process CLI error projection", () => { it("preserves local diagnostics for unexpected process failures", () => { const projected = projectProcessCliError( new Error("SECRET internal failure /private/path"), @@ -22,7 +29,116 @@ describe("process CLI input diagnostics", () => { }); expect(JSON.stringify(projected)).not.toContain("stack"); }); +}); +describe("process CLI file cancellation", () => { + it("projects pre-aborted file reads as cancellation", async () => { + const root = await createTestTempDirectory("rea-process-cli-cancel-"); + const controller = new AbortController(); + controller.abort(); + expect( + await captureProcessScenarioFile( + join(root, "missing-scenario.json"), + process.env, + controller.signal, + ), + ).toMatchObject({ + error: "Process command failed", + code: "cancelled", + category: "cancelled", + details: { operation: "capture_process_scenario" }, + }); + expect( + await compareProcessEvidenceFiles( + join(root, "missing-left.json"), + join(root, "missing-right.json"), + join(root, "missing-trace.json"), + controller.signal, + ), + ).toMatchObject({ + code: "cancelled", + category: "cancelled", + details: { operation: "compare_process_captures" }, + }); + }); + + it.each([ + { workflow: "capture", input: "scenario" }, + { workflow: "compare", input: "left" }, + { workflow: "compare", input: "right" }, + { workflow: "compare", input: "trace specification" }, + ] as const)( + "stops streamed $workflow $input reads after cancellation", + async ({ workflow, input }) => { + const root = await createTestTempDirectory("rea-process-cli-stream-"); + const paths = { + scenario: join(root, "scenario.json"), + left: join(root, "left.json"), + right: join(root, "right.json"), + trace: join(root, "trace.json"), + }; + const evidence = JSON.stringify(processCaptureEvidence()); + const scenario = JSON.stringify({ + executable: process.execPath, + arguments: [], + }); + const traceSpecification = JSON.stringify(validTraceSpecification()); + const contentsByInput = { + scenario: input === "scenario" ? stream(scenario) : scenario, + left: input === "left" ? stream(evidence) : evidence, + right: input === "right" ? stream(evidence) : evidence, + trace: + input === "trace specification" + ? stream(traceSpecification) + : traceSpecification, + }; + await Promise.all([ + writeFile(paths.scenario, contentsByInput.scenario), + writeFile(paths.left, contentsByInput.left), + writeFile(paths.right, contentsByInput.right), + writeFile(paths.trace, contentsByInput.trace), + ]); + const targetPath = + paths[input === "trace specification" ? "trace" : input]; + const contents = + contentsByInput[input === "trace specification" ? "trace" : input]; + const reader = await holdFirstFileRead(targetPath); + onTestFinished(reader.release); + const controller = new AbortController(); + try { + const pending = + workflow === "capture" + ? captureProcessScenarioFile( + paths.scenario, + process.env, + controller.signal, + ) + : compareProcessEvidenceFiles( + paths.left, + paths.right, + paths.trace, + controller.signal, + ); + await reader.firstRead; + controller.abort(); + reader.release(); + expect(await pending).toMatchObject({ + error: "Process command failed", + code: "cancelled", + category: "cancelled", + }); + expect(reader.readCount).toBe(1); + expect(reader.totalReadBytes).toBeLessThan(contents.length); + } finally { + controller.abort(); + reader.release(); + vi.restoreAllMocks(); + } + }, + ); +}); + +describe("process CLI input diagnostics", () => { it("projects missing, malformed JSON, and invalid scenario files", async () => { const root = await createTestTempDirectory("rea-process-cli-diagnostics-"); const malformed = join(root, "malformed.json"); @@ -78,6 +194,44 @@ describe("process CLI input diagnostics", () => { }); }); + it.each([false, true])( + "preserves the open-file owner when close fails (cancelled: %s)", + async (cancelDuringClose) => { + const root = await createTestTempDirectory("rea-process-cli-cleanup-"); + const path = join(root, "scenario.json"); + await writeFile(path, JSON.stringify({ executable: process.execPath })); + const controller = new AbortController(); + const cleanupCause = new Error("injected file close failure"); + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementationOnce(async () => { + if (cancelDuringClose) controller.abort(); + throw cleanupCause; + }); + let failure: unknown; + try { + try { + await captureProcessScenarioFile( + path, + process.env, + cancelDuringClose ? controller.signal : undefined, + ); + } catch (cause: unknown) { + failure = cause; + } + expect(failure).toBeInstanceOf(RegularFileCleanupFailure); + if (!(failure instanceof RegularFileCleanupFailure)) + throw new Error("Expected the retained file handle owner"); + expect(failure.cleanupCause).toBe(cleanupCause); + expect(failure.owner.handle.fd).toBeGreaterThanOrEqual(0); + } finally { + close.mockRestore(); + if (failure instanceof RegularFileCleanupFailure) + await failure.owner.close(); + } + }, + ); + it("names a leading byte-order mark instead of quoting it as a token", async () => { const path = join( await createTestTempDirectory("rea-process-cli-diagnostics-"), @@ -91,3 +245,40 @@ describe("process CLI input diagnostics", () => { }); }); }); + +const processCaptureEvidence = () => + createEvidence(undefined, PROCESS_PROVIDER, { + predicateType: "rea.process-capture", + operation: "capture_process_scenario", + parameters: {}, + result: EMPTY_PROCESS_CAPTURE_EXAMPLE, + confidence: "observed", + authority: "controlled-replay", + environment: { + id: "fixture", + platform: "fixture", + architecture: "fixture", + isolation: "process", + }, + }); + +const stream = (json: string) => " ".repeat(8 * 1024 * 1024) + json; + +const validTraceSpecification = () => ({ + events: [ + { + id: "started", + source: "lifecycle", + exact: { state: "started" }, + }, + { + id: "finished", + source: "lifecycle", + exact: { state: "finished" }, + }, + ], + language: { + kind: "partial_order", + happens_before: [{ before: "started", after: "finished" }], + }, +}); diff --git a/tests/boundary/mcp/bundleComparisonCancellation.test.ts b/tests/boundary/mcp/bundleComparisonCancellation.test.ts index b665c54e1..fc0c7c725 100644 --- a/tests/boundary/mcp/bundleComparisonCancellation.test.ts +++ b/tests/boundary/mcp/bundleComparisonCancellation.test.ts @@ -1,5 +1,5 @@ import { Client, InMemoryTransport } from "@modelcontextprotocol/client"; -import { open, writeFile, type FileHandle } from "node:fs/promises"; +import { writeFile } from "node:fs/promises"; import { join } from "node:path"; import { expect, it, onTestFinished, vi } from "vitest"; @@ -13,6 +13,7 @@ import { createServer } from "../../../src/server/createServer.js"; import { ToolResultDelivery } from "../../../src/server/toolResult.js"; import { createTestBinarySession } from "../../fixtures/binarySession.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; +import { holdFirstFileRead } from "../../support/holdFirstFileRead.js"; it("leaves the session unchanged after bundle comparison cancellation and permits a retry", async () => { const root = await createTestTempDirectory("rea-mcp-compare-cancel-"); @@ -58,8 +59,10 @@ it("leaves the session unchanged after bundle comparison cancellation and permit version: "1", }); const controller = new AbortController(); + let releaseRead: (() => void) | undefined; onTestFinished(async () => { controller.abort(); + releaseRead?.(); vi.restoreAllMocks(); await client.close(); await server.close(); @@ -70,8 +73,8 @@ it("leaves the session unchanged after bundle comparison cancellation and permit await server.connect(serverTransport); await client.connect(clientTransport); - const reader = await holdFirstRead(leftPath); - onTestFinished(reader.release); + const reader = await holdFirstFileRead(leftPath); + releaseRead = reader.release; let resolveDispatched: (() => void) | undefined; const dispatched = new Promise((resolve) => { @@ -162,56 +165,3 @@ it("leaves the session unchanged after bundle comparison cancellation and permit ]), ); }); - -const holdFirstRead = async (path: string) => { - // Hold the first streamed read after it reaches the operating system. - const probe = await open(path, "r"); - const identity = await probe.stat(); - const fileHandlePrototype = Object.getPrototypeOf(probe) as { - read( - buffer: Buffer, - offset: number, - length: number, - position: number | null, - ): Promise<{ readonly bytesRead: number; readonly buffer: Buffer }>; - }; - await probe.close(); - let totalReadBytes = 0; - let readCount = 0; - let resolveFirstRead: (() => void) | undefined; - const firstRead = new Promise((resolve) => { - resolveFirstRead = resolve; - }); - let releaseRead: (() => void) | undefined; - const readGate = new Promise((resolve) => { - releaseRead = resolve; - }); - const read = fileHandlePrototype.read; - vi.spyOn(fileHandlePrototype, "read").mockImplementation(async function ( - this: FileHandle, - ...args: [Buffer, number, number, number | null] - ) { - const current = await this.stat(); - const isTarget = - current.dev === identity.dev && current.ino === identity.ino; - const result = await read.call(this, ...args); - if (!isTarget) return result; - totalReadBytes += result.bytesRead; - readCount += 1; - if (readCount === 1) { - resolveFirstRead?.(); - await readGate; - } - return result; - }); - return { - firstRead, - release: () => releaseRead?.(), - get readCount() { - return readCount; - }, - get totalReadBytes() { - return totalReadBytes; - }, - }; -}; diff --git a/tests/boundary/mcp/bundleComparisonMcp.test.ts b/tests/boundary/mcp/bundleComparisonMcp.test.ts index 9fb00e768..ab8838287 100644 --- a/tests/boundary/mcp/bundleComparisonMcp.test.ts +++ b/tests/boundary/mcp/bundleComparisonMcp.test.ts @@ -134,7 +134,9 @@ describe("bundle comparison MCP integration", () => { expect(result.isError).toBe(true); expect(parseMcpToolError(result)).toMatchObject({ error: { - code: "evidence_integrity_mismatch", + code: "invalid_request", + category: "invalid_input", + details: { path: recordPath }, message: expect.stringContaining( `this JSON is one Evidence record (${record.evidence_id})`, ), diff --git a/tests/boundary/mcp/evidenceImportCancellation.test.ts b/tests/boundary/mcp/evidenceImportCancellation.test.ts index cb65dc71a..0413e6ec4 100644 --- a/tests/boundary/mcp/evidenceImportCancellation.test.ts +++ b/tests/boundary/mcp/evidenceImportCancellation.test.ts @@ -7,6 +7,7 @@ import { createEvidence } from "../../../src/domain/evidence.js"; import { createEvidenceBundle } from "../../../src/domain/evidenceBundle.js"; import { createServer } from "../../../src/server/createServer.js"; import { ToolResultDelivery } from "../../../src/server/toolResult.js"; +import { OwnedFileHandle } from "../../../src/filesystem/OwnedFileHandle.js"; import { createTestBinarySession } from "../../fixtures/binarySession.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; @@ -137,3 +138,121 @@ it("keeps the complete session unchanged after SDK import cancellation and permi ); await client.ping(); }); + +it("retains a failed import close in the server scope through SDK error projection", async () => { + const root = await createTestTempDirectory("rea-mcp-import-close-"); + const path = join(root, "bundle.json"); + const session = createTestBinarySession(() => { + throw new Error("Evidence import must not start a binary provider"); + }); + const provider = { id: "fixture", name: "Fixture", version: "1" }; + const existing = createEvidence(undefined, provider, { + operation: "existing_observation", + parameters: {}, + result: { retained: true }, + }); + const imported = createEvidence(undefined, provider, { + operation: "imported_observation", + parameters: {}, + result: { retained: "close failure" }, + }); + const recorded = session.recordEvidence(existing); + if (!recorded.ok) throw recorded.error; + await writeFile(path, JSON.stringify(createEvidenceBundle([imported]))); + + let allowClose = false; + let retainedOwner: OwnedFileHandle | undefined; + const originalClose = OwnedFileHandle.prototype.close; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async function (this: OwnedFileHandle) { + retainedOwner ??= this; + if (!allowClose) throw new Error("persistent file close failure"); + return originalClose.call(this); + }); + + const server = createServer({ kind: "session", session }); + const client = new Client({ + name: "evidence-import-close-failure", + version: "1", + }); + onTestFinished(async () => { + allowClose = true; + close.mockRestore(); + await client.close(); + await server.close(); + await session.close(); + }); + const [clientTransport, serverTransport] = + InMemoryTransport.createLinkedPair(); + await server.connect(serverTransport); + await client.connect(clientTransport); + const before = session.exportEvidenceBundle(); + + const result = await client.callTool({ + name: "import_evidence_bundle", + arguments: { path }, + }); + expect(result.isError).toBe(true); + expect(session.exportEvidenceBundle()).toEqual(before); + expect(retainedOwner).toBeDefined(); + expect(retainedOwner?.handle.fd).toBeGreaterThanOrEqual(0); + + await client.close(); + await expect(server.close()).rejects.toThrow("REA session cleanup failed"); + expect(retainedOwner?.handle.fd).toBeGreaterThanOrEqual(0); + allowClose = true; + close.mockRestore(); + await server.close(); + expect(retainedOwner?.handle.fd).toBe(-1); + await session.close(); +}); + +it("retries a transient import close failure before admitting the bundle", async () => { + const root = await createTestTempDirectory("rea-mcp-import-close-retry-"); + const path = join(root, "bundle.json"); + const session = createTestBinarySession(() => { + throw new Error("Evidence import must not start a binary provider"); + }); + const imported = createEvidence( + undefined, + { id: "fixture", name: "Fixture", version: "1" }, + { + operation: "imported_observation", + parameters: {}, + result: { retained: "retry succeeded" }, + }, + ); + await writeFile(path, JSON.stringify(createEvidenceBundle([imported]))); + + const originalClose = OwnedFileHandle.prototype.close; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementationOnce(async () => { + throw new Error("one transient file close failure"); + }); + const server = createServer({ kind: "session", session }); + const client = new Client({ + name: "evidence-import-close-retry", + version: "1", + }); + onTestFinished(async () => { + close.mockRestore(); + await client.close(); + await server.close(); + await session.close(); + }); + const [clientTransport, serverTransport] = + InMemoryTransport.createLinkedPair(); + await server.connect(serverTransport); + await client.connect(clientTransport); + + const result = await client.callTool({ + name: "import_evidence_bundle", + arguments: { path }, + }); + close.mockRestore(); + expect(result.isError).not.toBe(true); + expect(session.exportEvidenceBundle().records).toContainEqual(imported); + await client.ping(); +}); diff --git a/tests/support/holdFirstFileRead.ts b/tests/support/holdFirstFileRead.ts new file mode 100644 index 000000000..3d5082891 --- /dev/null +++ b/tests/support/holdFirstFileRead.ts @@ -0,0 +1,55 @@ +import { open, type FileHandle } from "node:fs/promises"; +import { vi } from "vitest"; + +/** Pause after one selected file chunk reaches the operating system. */ +export const holdFirstFileRead = async (path: string) => { + const probe = await open(path, "r"); + const identity = await probe.stat(); + const fileHandlePrototype = Object.getPrototypeOf(probe) as { + read( + buffer: Buffer, + offset: number, + length: number, + position: number | null, + ): Promise<{ readonly bytesRead: number; readonly buffer: Buffer }>; + }; + await probe.close(); + let totalReadBytes = 0; + let readCount = 0; + let resolveFirstRead: (() => void) | undefined; + const firstRead = new Promise((resolve) => { + resolveFirstRead = resolve; + }); + let releaseRead: (() => void) | undefined; + const readGate = new Promise((resolve) => { + releaseRead = resolve; + }); + const read = fileHandlePrototype.read; + vi.spyOn(fileHandlePrototype, "read").mockImplementation(async function ( + this: FileHandle, + ...args: [Buffer, number, number, number | null] + ) { + const current = await this.stat(); + const isTarget = + current.dev === identity.dev && current.ino === identity.ino; + const result = await read.call(this, ...args); + if (!isTarget) return result; + totalReadBytes += result.bytesRead; + readCount += 1; + if (readCount === 1) { + resolveFirstRead?.(); + await readGate; + } + return result; + }); + return { + firstRead, + release: () => releaseRead?.(), + get readCount() { + return readCount; + }, + get totalReadBytes() { + return totalReadBytes; + }, + }; +}; From 4a5aec8ad6d54444b2a2c2313fbc506b17ff91aa Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:14:36 +0800 Subject: [PATCH 24/44] docs: add responsible-use disclaimer --- DISCLAIMER.md | 18 ++++++++++++++++++ README.md | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 DISCLAIMER.md diff --git a/DISCLAIMER.md b/DISCLAIMER.md new file mode 100644 index 000000000..9445caeda --- /dev/null +++ b/DISCLAIMER.md @@ -0,0 +1,18 @@ +# Disclaimer + +## Responsible use + +REA is built for lawful analysis: security research, malware and incident analysis, vulnerability research and coordinated disclosure, CTFs and education, interoperability, software preservation, and debugging or auditing software you own or are authorized to examine. + +The REA project does not support, and will not help with: + +- circumventing DRM, license checks, anti-cheat systems or other technical protection measures; +- developing game cheats or tampering with online services; +- bypassing authentication, bot protection or access controls on systems you are not authorized to test; +- copying proprietary software or reproducing its protected code and assets; +- evading the usage policies or safety measures of AI model providers; +- reselling or sharing AI accounts or API access. + +You are responsible for obtaining any required authorization and for complying with applicable laws, license agreements and terms of service. Reverse engineering may be restricted in your jurisdiction or by the license of the software you analyze. + +Requests for help with the uses above will be closed without response in issues and discussions, and may result in removal from the REA community. diff --git a/README.md b/README.md index 18343b9ba..a7fd84e78 100644 --- a/README.md +++ b/README.md @@ -331,7 +331,7 @@ Thanks to everyone using REA, reporting bugs, requesting features, testing build ## Disclaimer -REA provides tools for lawful reverse-engineering research, analysis, and reconstruction. You are responsible for obtaining any required authorization and complying with applicable laws. The project does not endorse illegal or unauthorized use. +See [DISCLAIMER.md](DISCLAIMER.md) for responsible-use guidance. REA is an open-source software project. We have not issued or endorsed any cryptocurrency or token. Tokens using the REA name are not affiliated with the project. From d864ad54717d92fe4b512ce1170717d9904c1f00 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:18:36 +0800 Subject: [PATCH 25/44] fix(docs): synchronize disclaimer links across translations --- README_ar.md | 2 ++ README_de.md | 2 ++ README_es.md | 2 ++ README_fa.md | 2 ++ README_fr.md | 2 ++ README_id.md | 2 ++ README_it.md | 2 ++ README_ja.md | 2 ++ README_ko.md | 2 ++ README_pl.md | 2 ++ README_pt-BR.md | 2 ++ README_ru.md | 2 ++ README_th.md | 2 ++ README_tr.md | 2 ++ README_uk.md | 2 ++ README_vi.md | 2 ++ README_zh-TW.md | 2 ++ README_zh.md | 2 ++ turbo.json | 2 +- 19 files changed, 37 insertions(+), 1 deletion(-) diff --git a/README_ar.md b/README_ar.md index 81b7a9c81..d13807000 100644 --- a/README_ar.md +++ b/README_ar.md @@ -274,6 +274,8 @@ npx rea-agents@latest setup ## إخلاء المسؤولية +راجع [DISCLAIMER.md](DISCLAIMER.md) للحصول على إرشادات الاستخدام المسؤول. + يوفّر REA أدوات لأبحاث الهندسة العكسية والتحليل وإعادة البناء المشروعة. أنت مسؤول عن الحصول على أي تفويض مطلوب والالتزام بالقوانين المعمول بها. لا يؤيد المشروع الاستخدام غير القانوني أو غير المصرّح به. ## المساهمة diff --git a/README_de.md b/README_de.md index 87e625852..16baaa11c 100644 --- a/README_de.md +++ b/README_de.md @@ -272,6 +272,8 @@ Danke an alle, die REA nutzen, Fehler melden, Funktionswünsche äußern, Builds ## Haftungsausschluss +Hinweise zur verantwortungsvollen Nutzung findest du in [DISCLAIMER.md](DISCLAIMER.md). + REA stellt Werkzeuge für rechtmäßige Reverse-Engineering-Forschung, Analyse und Rekonstruktion bereit. Du bist dafür verantwortlich, erforderliche Genehmigungen einzuholen und geltendes Recht einzuhalten. Das Projekt unterstützt keine rechtswidrige oder unbefugte Nutzung. ## Mitwirken diff --git a/README_es.md b/README_es.md index 4c27ff12a..415cd13a9 100644 --- a/README_es.md +++ b/README_es.md @@ -272,6 +272,8 @@ Gracias a quienes usan REA, informan de errores, solicitan funciones, prueban co ## Aviso legal +Consulta [DISCLAIMER.md](DISCLAIMER.md) para obtener orientación sobre el uso responsable. + REA proporciona herramientas para la investigación, el análisis y la reconstrucción mediante ingeniería inversa conforme a la ley. Eres responsable de obtener las autorizaciones necesarias y cumplir las leyes aplicables. El proyecto no respalda usos ilegales ni no autorizados. ## Contribuir diff --git a/README_fa.md b/README_fa.md index eaf018b05..9d87505f5 100644 --- a/README_fa.md +++ b/README_fa.md @@ -251,6 +251,8 @@ npx rea-agents@latest setup ## سلب مسئولیت +برای راهنمای استفادهٔ مسئولانه، [DISCLAIMER.md](DISCLAIMER.md) را ببینید. + REA ابزارهایی برای پژوهش، تحلیل و بازسازی قانونی در حوزهٔ مهندسی معکوس فراهم می‌کند. مسئولیت دریافت مجوزهای لازم و رعایت قوانین مربوط بر عهدهٔ شماست. این پروژه استفادهٔ غیرقانونی یا بدون مجوز را تأیید نمی‌کند. ## مشارکت diff --git a/README_fr.md b/README_fr.md index f2b8a03c4..ea0ef3f9a 100644 --- a/README_fr.md +++ b/README_fr.md @@ -276,6 +276,8 @@ Merci à toutes les personnes qui utilisent REA, signalent des bugs, proposent d ## Avertissement +Consultez [DISCLAIMER.md](DISCLAIMER.md) pour les consignes d'utilisation responsable. + REA fournit des outils destinés à la recherche, à l'analyse et à la reconstruction légales en rétro-ingénierie. Il vous appartient d'obtenir toute autorisation nécessaire et de respecter les lois applicables. Le projet n'encourage aucune utilisation illégale ou non autorisée. ## Contribuer diff --git a/README_id.md b/README_id.md index 1976c7e76..823054616 100644 --- a/README_id.md +++ b/README_id.md @@ -297,6 +297,8 @@ Terima kasih kepada semua orang yang menggunakan REA, melaporkan bug, meminta fi ## Penafian +Lihat [DISCLAIMER.md](DISCLAIMER.md) untuk panduan penggunaan yang bertanggung jawab. + REA menyediakan alat untuk penelitian, analisis, dan rekonstruksi rekayasa balik yang sah. Anda bertanggung jawab untuk memperoleh otorisasi yang diperlukan dan mematuhi hukum yang berlaku. Proyek ini tidak mendukung penggunaan ilegal atau tanpa izin. REA adalah proyek perangkat lunak sumber terbuka. Kami tidak menerbitkan atau mendukung mata uang kripto maupun token apa pun. Token yang menggunakan nama REA tidak berafiliasi dengan proyek ini. diff --git a/README_it.md b/README_it.md index e472d0c81..50358c474 100644 --- a/README_it.md +++ b/README_it.md @@ -276,6 +276,8 @@ Grazie a tutti coloro che usano REA, segnalano bug, propongono funzionalità, te ## Disclaimer +Consulta [DISCLAIMER.md](DISCLAIMER.md) per le indicazioni sull'uso responsabile. + REA fornisce strumenti per la ricerca, l'analisi e la ricostruzione di ingegneria inversa lecita. Sei responsabile di ottenere le eventuali autorizzazioni richieste e di rispettare le leggi applicabili. Il progetto non approva l'uso illegale o non autorizzato. REA è un progetto software open-source. Non abbiamo emesso né approvato alcuna criptovaluta o token. I token che usano il nome REA non sono affiliati al progetto. diff --git a/README_ja.md b/README_ja.md index 51c997038..b53b621d2 100644 --- a/README_ja.md +++ b/README_ja.md @@ -274,6 +274,8 @@ REA の利用、バグ報告、機能の要望、ビルドのテスト、修正 ## 免責事項 +責任ある利用については [DISCLAIMER.md](DISCLAIMER.md) を参照してください。 + REA は、合法的なリバースエンジニアリングの研究、分析、再構築のためのツールを提供します。必要な許可を得て、適用される法律に従う責任は利用者にあります。このプロジェクトは違法または無許可の利用を支持しません。 ## 貢献する diff --git a/README_ko.md b/README_ko.md index 0cad1695c..ddefc191e 100644 --- a/README_ko.md +++ b/README_ko.md @@ -274,6 +274,8 @@ REA를 사용하고, 버그를 보고하고, 기능을 요청하고, 빌드를 ## 면책 조항 +책임 있는 사용에 관한 안내는 [DISCLAIMER.md](DISCLAIMER.md)를 참고하세요. + REA는 합법적인 리버스 엔지니어링 연구, 분석, 재구성을 위한 도구를 제공합니다. 필요한 권한을 얻고 관련 법률을 준수할 책임은 사용자에게 있습니다. 이 프로젝트는 불법적이거나 허가받지 않은 사용을 지지하지 않습니다. ## 기여 diff --git a/README_pl.md b/README_pl.md index 68600ace3..5b3a8fefc 100644 --- a/README_pl.md +++ b/README_pl.md @@ -272,6 +272,8 @@ Dziękujemy wszystkim, którzy używają REA, zgłaszają błędy, proponują no ## Zastrzeżenie +Wskazówki dotyczące odpowiedzialnego korzystania znajdziesz w [DISCLAIMER.md](DISCLAIMER.md). + REA dostarcza narzędzia do zgodnych z prawem badań z zakresu inżynierii wstecznej, analizy i odtwarzania. Odpowiadasz za uzyskanie wymaganych zezwoleń i przestrzeganie obowiązującego prawa. Projekt nie popiera działań nielegalnych ani nieautoryzowanych. ## Współtworzenie diff --git a/README_pt-BR.md b/README_pt-BR.md index 7923100ba..5bd1c24ca 100644 --- a/README_pt-BR.md +++ b/README_pt-BR.md @@ -272,6 +272,8 @@ Obrigado a todos que usam o REA, relatam bugs, sugerem funcionalidades, testam b ## Aviso legal +Consulte [DISCLAIMER.md](DISCLAIMER.md) para orientações sobre o uso responsável. + O REA fornece ferramentas para pesquisa, análise e reconstrução por engenharia reversa dentro da lei. Você é responsável por obter as autorizações necessárias e cumprir as leis aplicáveis. O projeto não apoia usos ilegais ou não autorizados. ## Contribuir diff --git a/README_ru.md b/README_ru.md index 5e45f9f33..51970fd35 100644 --- a/README_ru.md +++ b/README_ru.md @@ -272,6 +272,8 @@ npx rea-agents@latest setup ## Отказ от ответственности +Рекомендации по ответственному использованию приведены в [DISCLAIMER.md](DISCLAIMER.md). + REA предоставляет инструменты для законных исследований, анализа и реконструкции с помощью реверс-инжиниринга. Вы отвечаете за получение необходимых разрешений и соблюдение применимых законов. Проект не поддерживает незаконное или несанкционированное использование. ## Участие в проекте diff --git a/README_th.md b/README_th.md index 0c1b22297..7d2bdec5f 100644 --- a/README_th.md +++ b/README_th.md @@ -272,6 +272,8 @@ npx rea-agents@latest setup ## ข้อสงวนสิทธิ์ +ดูแนวทางการใช้งานอย่างรับผิดชอบใน [DISCLAIMER.md](DISCLAIMER.md) + REA มีเครื่องมือสำหรับการวิจัยวิศวกรรมย้อนกลับ การวิเคราะห์ และการสร้างขึ้นใหม่อย่างถูกกฎหมาย คุณมีหน้าที่ขออนุญาตตามที่จำเป็นและปฏิบัติตามกฎหมายที่เกี่ยวข้อง โปรเจกต์นี้ไม่สนับสนุนการใช้งานที่ผิดกฎหมายหรือไม่ได้รับอนุญาต ## การมีส่วนร่วม diff --git a/README_tr.md b/README_tr.md index c032547c3..22a976c27 100644 --- a/README_tr.md +++ b/README_tr.md @@ -272,6 +272,8 @@ REA'yı kullanan, hata bildiren, özellik talep eden, derlemeleri test eden ve d ## Sorumluluk reddi +Sorumlu kullanım yönergeleri için [DISCLAIMER.md](DISCLAIMER.md) dosyasına bakın. + REA, yasal tersine mühendislik araştırması, analizi ve yeniden oluşturma için araçlar sağlar. Gerekli izinleri almak ve geçerli yasalara uymak sizin sorumluluğunuzdadır. Proje yasa dışı veya yetkisiz kullanımı desteklemez. ## Katkıda bulunma diff --git a/README_uk.md b/README_uk.md index d40815253..32b88f504 100644 --- a/README_uk.md +++ b/README_uk.md @@ -272,6 +272,8 @@ npx rea-agents@latest setup ## Відмова від відповідальності +Рекомендації щодо відповідального використання наведено в [DISCLAIMER.md](DISCLAIMER.md). + REA надає інструменти для законних досліджень, аналізу й реконструкції за допомогою реверс-інжинірингу. Ви відповідаєте за отримання необхідних дозволів і дотримання застосовних законів. Проєкт не підтримує незаконне або несанкціоноване використання. ## Участь у проєкті diff --git a/README_vi.md b/README_vi.md index e0f6d2f78..61fd2bd08 100644 --- a/README_vi.md +++ b/README_vi.md @@ -272,6 +272,8 @@ Cảm ơn mọi người đã sử dụng REA, báo lỗi, đề xuất tính n ## Miễn trừ trách nhiệm +Xem [DISCLAIMER.md](DISCLAIMER.md) để biết hướng dẫn sử dụng có trách nhiệm. + REA cung cấp công cụ cho nghiên cứu dịch ngược, phân tích và tái tạo hợp pháp. Bạn có trách nhiệm có được các quyền cho phép cần thiết và tuân thủ luật áp dụng. Dự án không ủng hộ việc sử dụng trái pháp luật hoặc không được cho phép. ## Đóng góp diff --git a/README_zh-TW.md b/README_zh-TW.md index ca659a42a..b3455d2bb 100644 --- a/README_zh-TW.md +++ b/README_zh-TW.md @@ -274,6 +274,8 @@ npx rea-agents@latest setup ## 免責聲明 +負責任使用的相關指引請見 [DISCLAIMER.md](DISCLAIMER.md)。 + REA 為合法的逆向工程研究、分析和重建提供工具。你有責任取得所需授權並遵守適用法律。本專案不認同非法或未經授權的使用。 ## 參與貢獻 diff --git a/README_zh.md b/README_zh.md index 3d0ffcec6..929f1d84a 100644 --- a/README_zh.md +++ b/README_zh.md @@ -274,6 +274,8 @@ npx rea-agents@latest setup ## 免责声明 +负责任使用的相关指引请见 [DISCLAIMER.md](DISCLAIMER.md)。 + REA 为合法的逆向工程研究、分析和重建提供工具。你有责任取得所需授权并遵守适用法律。项目不支持非法或未经授权的使用。 ## 参与贡献 diff --git a/turbo.json b/turbo.json index a177552d3..a88829261 100644 --- a/turbo.json +++ b/turbo.json @@ -141,7 +141,7 @@ "!docs/public/product-catalog.json", "!docs/verification/managed-conformance-*.json", ".agents/skills/reverse-engineer-anything/**", - "README.md", + "README*.md", { "mode": "dependencyOutputs", "globs": [ From fa87dd2aac3eaeb49875c54e93ec18c98cc92e4d Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:27:37 +0800 Subject: [PATCH 26/44] docs: shorten responsible-use notices across languages --- README.md | 2 +- README_ar.md | 2 +- README_de.md | 2 +- README_es.md | 2 +- README_fa.md | 2 +- README_fr.md | 2 +- README_id.md | 4 +--- README_it.md | 4 +--- README_ja.md | 2 +- README_ko.md | 2 +- README_pl.md | 2 +- README_pt-BR.md | 2 +- README_ru.md | 2 +- README_th.md | 2 +- README_tr.md | 2 +- README_uk.md | 2 +- README_vi.md | 2 +- README_zh-TW.md | 2 +- README_zh.md | 2 +- 19 files changed, 19 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index a7fd84e78..d4aeaaf39 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ Thanks to everyone using REA, reporting bugs, requesting features, testing build See [DISCLAIMER.md](DISCLAIMER.md) for responsible-use guidance. -REA is an open-source software project. We have not issued or endorsed any cryptocurrency or token. Tokens using the REA name are not affiliated with the project. +REA is for lawful research, education, interoperability, software preservation, and analysis of software you own or are authorized to examine. ## Contributing diff --git a/README_ar.md b/README_ar.md index d13807000..9f51281da 100644 --- a/README_ar.md +++ b/README_ar.md @@ -276,7 +276,7 @@ npx rea-agents@latest setup راجع [DISCLAIMER.md](DISCLAIMER.md) للحصول على إرشادات الاستخدام المسؤول. -يوفّر REA أدوات لأبحاث الهندسة العكسية والتحليل وإعادة البناء المشروعة. أنت مسؤول عن الحصول على أي تفويض مطلوب والالتزام بالقوانين المعمول بها. لا يؤيد المشروع الاستخدام غير القانوني أو غير المصرّح به. +REA مخصص للبحث والتعليم والتشغيل البيني وحفظ البرمجيات بشكل قانوني، ولتحليل البرمجيات التي تملكها أو لديك تفويض لفحصها. ## المساهمة diff --git a/README_de.md b/README_de.md index 16baaa11c..757b2c3a1 100644 --- a/README_de.md +++ b/README_de.md @@ -274,7 +274,7 @@ Danke an alle, die REA nutzen, Fehler melden, Funktionswünsche äußern, Builds Hinweise zur verantwortungsvollen Nutzung findest du in [DISCLAIMER.md](DISCLAIMER.md). -REA stellt Werkzeuge für rechtmäßige Reverse-Engineering-Forschung, Analyse und Rekonstruktion bereit. Du bist dafür verantwortlich, erforderliche Genehmigungen einzuholen und geltendes Recht einzuhalten. Das Projekt unterstützt keine rechtswidrige oder unbefugte Nutzung. +REA dient der rechtmäßigen Forschung, Bildung, Interoperabilität, Softwareerhaltung und Analyse von Software, die dir gehört oder die du mit entsprechender Genehmigung untersuchen darfst. ## Mitwirken diff --git a/README_es.md b/README_es.md index 415cd13a9..a8c934edf 100644 --- a/README_es.md +++ b/README_es.md @@ -274,7 +274,7 @@ Gracias a quienes usan REA, informan de errores, solicitan funciones, prueban co Consulta [DISCLAIMER.md](DISCLAIMER.md) para obtener orientación sobre el uso responsable. -REA proporciona herramientas para la investigación, el análisis y la reconstrucción mediante ingeniería inversa conforme a la ley. Eres responsable de obtener las autorizaciones necesarias y cumplir las leyes aplicables. El proyecto no respalda usos ilegales ni no autorizados. +REA está destinado a la investigación, la educación, la interoperabilidad, la preservación de software y el análisis de software propio o autorizado, dentro de la ley. ## Contribuir diff --git a/README_fa.md b/README_fa.md index 9d87505f5..056338b86 100644 --- a/README_fa.md +++ b/README_fa.md @@ -253,7 +253,7 @@ npx rea-agents@latest setup برای راهنمای استفادهٔ مسئولانه، [DISCLAIMER.md](DISCLAIMER.md) را ببینید. -REA ابزارهایی برای پژوهش، تحلیل و بازسازی قانونی در حوزهٔ مهندسی معکوس فراهم می‌کند. مسئولیت دریافت مجوزهای لازم و رعایت قوانین مربوط بر عهدهٔ شماست. این پروژه استفادهٔ غیرقانونی یا بدون مجوز را تأیید نمی‌کند. +REA برای پژوهش، آموزش، تعامل‌پذیری، حفظ نرم‌افزار و تحلیل نرم‌افزارهایی است که مالک آن‌ها هستید یا اجازهٔ بررسی آن‌ها را دارید، در چارچوب قانون. ## مشارکت diff --git a/README_fr.md b/README_fr.md index ea0ef3f9a..460c8121f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -278,7 +278,7 @@ Merci à toutes les personnes qui utilisent REA, signalent des bugs, proposent d Consultez [DISCLAIMER.md](DISCLAIMER.md) pour les consignes d'utilisation responsable. -REA fournit des outils destinés à la recherche, à l'analyse et à la reconstruction légales en rétro-ingénierie. Il vous appartient d'obtenir toute autorisation nécessaire et de respecter les lois applicables. Le projet n'encourage aucune utilisation illégale ou non autorisée. +REA est destiné à la recherche, à l’éducation, à l’interopérabilité, à la préservation logicielle et à l’analyse de logiciels que vous possédez ou êtes autorisé à examiner, dans le respect de la loi. ## Contribuer diff --git a/README_id.md b/README_id.md index 823054616..fea3dcb99 100644 --- a/README_id.md +++ b/README_id.md @@ -299,9 +299,7 @@ Terima kasih kepada semua orang yang menggunakan REA, melaporkan bug, meminta fi Lihat [DISCLAIMER.md](DISCLAIMER.md) untuk panduan penggunaan yang bertanggung jawab. -REA menyediakan alat untuk penelitian, analisis, dan rekonstruksi rekayasa balik yang sah. Anda bertanggung jawab untuk memperoleh otorisasi yang diperlukan dan mematuhi hukum yang berlaku. Proyek ini tidak mendukung penggunaan ilegal atau tanpa izin. - -REA adalah proyek perangkat lunak sumber terbuka. Kami tidak menerbitkan atau mendukung mata uang kripto maupun token apa pun. Token yang menggunakan nama REA tidak berafiliasi dengan proyek ini. +REA ditujukan untuk penelitian, pendidikan, interoperabilitas, pelestarian perangkat lunak, dan analisis perangkat lunak yang Anda miliki atau diizinkan untuk Anda periksa, sesuai hukum. ## Kontribusi diff --git a/README_it.md b/README_it.md index 50358c474..ac09c511c 100644 --- a/README_it.md +++ b/README_it.md @@ -278,9 +278,7 @@ Grazie a tutti coloro che usano REA, segnalano bug, propongono funzionalità, te Consulta [DISCLAIMER.md](DISCLAIMER.md) per le indicazioni sull'uso responsabile. -REA fornisce strumenti per la ricerca, l'analisi e la ricostruzione di ingegneria inversa lecita. Sei responsabile di ottenere le eventuali autorizzazioni richieste e di rispettare le leggi applicabili. Il progetto non approva l'uso illegale o non autorizzato. - -REA è un progetto software open-source. Non abbiamo emesso né approvato alcuna criptovaluta o token. I token che usano il nome REA non sono affiliati al progetto. +REA è destinato alla ricerca, alla formazione, all’interoperabilità, alla conservazione del software e all’analisi di software di tua proprietà o che sei autorizzato a esaminare, nel rispetto della legge. ## Contributing diff --git a/README_ja.md b/README_ja.md index b53b621d2..490aa8ec3 100644 --- a/README_ja.md +++ b/README_ja.md @@ -276,7 +276,7 @@ REA の利用、バグ報告、機能の要望、ビルドのテスト、修正 責任ある利用については [DISCLAIMER.md](DISCLAIMER.md) を参照してください。 -REA は、合法的なリバースエンジニアリングの研究、分析、再構築のためのツールを提供します。必要な許可を得て、適用される法律に従う責任は利用者にあります。このプロジェクトは違法または無許可の利用を支持しません。 +REA は、法令に従った研究、教育、相互運用性の確保、ソフトウェアの保存、および所有するソフトウェアや調査を許可されたソフトウェアの解析を目的としています。 ## 貢献する diff --git a/README_ko.md b/README_ko.md index ddefc191e..1a863e895 100644 --- a/README_ko.md +++ b/README_ko.md @@ -276,7 +276,7 @@ REA를 사용하고, 버그를 보고하고, 기능을 요청하고, 빌드를 책임 있는 사용에 관한 안내는 [DISCLAIMER.md](DISCLAIMER.md)를 참고하세요. -REA는 합법적인 리버스 엔지니어링 연구, 분석, 재구성을 위한 도구를 제공합니다. 필요한 권한을 얻고 관련 법률을 준수할 책임은 사용자에게 있습니다. 이 프로젝트는 불법적이거나 허가받지 않은 사용을 지지하지 않습니다. +REA는 법을 준수하는 연구, 교육, 상호운용성 확보, 소프트웨어 보존, 그리고 본인이 소유하거나 조사 권한을 가진 소프트웨어의 분석을 위한 도구입니다. ## 기여 diff --git a/README_pl.md b/README_pl.md index 5b3a8fefc..08f6795e9 100644 --- a/README_pl.md +++ b/README_pl.md @@ -274,7 +274,7 @@ Dziękujemy wszystkim, którzy używają REA, zgłaszają błędy, proponują no Wskazówki dotyczące odpowiedzialnego korzystania znajdziesz w [DISCLAIMER.md](DISCLAIMER.md). -REA dostarcza narzędzia do zgodnych z prawem badań z zakresu inżynierii wstecznej, analizy i odtwarzania. Odpowiadasz za uzyskanie wymaganych zezwoleń i przestrzeganie obowiązującego prawa. Projekt nie popiera działań nielegalnych ani nieautoryzowanych. +REA służy zgodnym z prawem badaniom, edukacji, zapewnianiu interoperacyjności, zachowaniu oprogramowania oraz analizie oprogramowania, które posiadasz lub masz prawo badać. ## Współtworzenie diff --git a/README_pt-BR.md b/README_pt-BR.md index 5bd1c24ca..8ffb137ed 100644 --- a/README_pt-BR.md +++ b/README_pt-BR.md @@ -274,7 +274,7 @@ Obrigado a todos que usam o REA, relatam bugs, sugerem funcionalidades, testam b Consulte [DISCLAIMER.md](DISCLAIMER.md) para orientações sobre o uso responsável. -O REA fornece ferramentas para pesquisa, análise e reconstrução por engenharia reversa dentro da lei. Você é responsável por obter as autorizações necessárias e cumprir as leis aplicáveis. O projeto não apoia usos ilegais ou não autorizados. +O REA destina-se à pesquisa, à educação, à interoperabilidade, à preservação de software e à análise de software que você possui ou está autorizado a examinar, dentro da lei. ## Contribuir diff --git a/README_ru.md b/README_ru.md index 51970fd35..584bb6c9b 100644 --- a/README_ru.md +++ b/README_ru.md @@ -274,7 +274,7 @@ npx rea-agents@latest setup Рекомендации по ответственному использованию приведены в [DISCLAIMER.md](DISCLAIMER.md). -REA предоставляет инструменты для законных исследований, анализа и реконструкции с помощью реверс-инжиниринга. Вы отвечаете за получение необходимых разрешений и соблюдение применимых законов. Проект не поддерживает незаконное или несанкционированное использование. +REA предназначен для законных исследований, обучения, обеспечения совместимости, сохранения программного обеспечения и анализа программ, которыми вы владеете или которые вам разрешено изучать. ## Участие в проекте diff --git a/README_th.md b/README_th.md index 7d2bdec5f..482ef6192 100644 --- a/README_th.md +++ b/README_th.md @@ -274,7 +274,7 @@ npx rea-agents@latest setup ดูแนวทางการใช้งานอย่างรับผิดชอบใน [DISCLAIMER.md](DISCLAIMER.md) -REA มีเครื่องมือสำหรับการวิจัยวิศวกรรมย้อนกลับ การวิเคราะห์ และการสร้างขึ้นใหม่อย่างถูกกฎหมาย คุณมีหน้าที่ขออนุญาตตามที่จำเป็นและปฏิบัติตามกฎหมายที่เกี่ยวข้อง โปรเจกต์นี้ไม่สนับสนุนการใช้งานที่ผิดกฎหมายหรือไม่ได้รับอนุญาต +REA มีไว้สำหรับการวิจัย การศึกษา การทำงานร่วมกัน การอนุรักษ์ซอฟต์แวร์ และการวิเคราะห์ซอฟต์แวร์ที่คุณเป็นเจ้าของหรือได้รับอนุญาตให้ตรวจสอบ โดยปฏิบัติตามกฎหมาย ## การมีส่วนร่วม diff --git a/README_tr.md b/README_tr.md index 22a976c27..ab1774f96 100644 --- a/README_tr.md +++ b/README_tr.md @@ -274,7 +274,7 @@ REA'yı kullanan, hata bildiren, özellik talep eden, derlemeleri test eden ve d Sorumlu kullanım yönergeleri için [DISCLAIMER.md](DISCLAIMER.md) dosyasına bakın. -REA, yasal tersine mühendislik araştırması, analizi ve yeniden oluşturma için araçlar sağlar. Gerekli izinleri almak ve geçerli yasalara uymak sizin sorumluluğunuzdadır. Proje yasa dışı veya yetkisiz kullanımı desteklemez. +REA; yasal araştırma, eğitim, birlikte çalışabilirlik, yazılımın korunması ve sahibi olduğunuz ya da inceleme yetkiniz bulunan yazılımların analizi için tasarlanmıştır. ## Katkıda bulunma diff --git a/README_uk.md b/README_uk.md index 32b88f504..240a8339e 100644 --- a/README_uk.md +++ b/README_uk.md @@ -274,7 +274,7 @@ npx rea-agents@latest setup Рекомендації щодо відповідального використання наведено в [DISCLAIMER.md](DISCLAIMER.md). -REA надає інструменти для законних досліджень, аналізу й реконструкції за допомогою реверс-інжинірингу. Ви відповідаєте за отримання необхідних дозволів і дотримання застосовних законів. Проєкт не підтримує незаконне або несанкціоноване використання. +REA призначений для законних досліджень, навчання, забезпечення сумісності, збереження програмного забезпечення й аналізу програм, якими ви володієте або які маєте дозвіл досліджувати. ## Участь у проєкті diff --git a/README_vi.md b/README_vi.md index 61fd2bd08..5f5912239 100644 --- a/README_vi.md +++ b/README_vi.md @@ -274,7 +274,7 @@ Cảm ơn mọi người đã sử dụng REA, báo lỗi, đề xuất tính n Xem [DISCLAIMER.md](DISCLAIMER.md) để biết hướng dẫn sử dụng có trách nhiệm. -REA cung cấp công cụ cho nghiên cứu dịch ngược, phân tích và tái tạo hợp pháp. Bạn có trách nhiệm có được các quyền cho phép cần thiết và tuân thủ luật áp dụng. Dự án không ủng hộ việc sử dụng trái pháp luật hoặc không được cho phép. +REA dành cho nghiên cứu, giáo dục, khả năng tương tác, bảo tồn phần mềm và phân tích phần mềm bạn sở hữu hoặc được phép kiểm tra, trong khuôn khổ pháp luật. ## Đóng góp diff --git a/README_zh-TW.md b/README_zh-TW.md index b3455d2bb..f230f9c9e 100644 --- a/README_zh-TW.md +++ b/README_zh-TW.md @@ -276,7 +276,7 @@ npx rea-agents@latest setup 負責任使用的相關指引請見 [DISCLAIMER.md](DISCLAIMER.md)。 -REA 為合法的逆向工程研究、分析和重建提供工具。你有責任取得所需授權並遵守適用法律。本專案不認同非法或未經授權的使用。 +REA 用於合法的研究、教育、互通性、軟體保存,以及分析你擁有或獲准檢查的軟體。 ## 參與貢獻 diff --git a/README_zh.md b/README_zh.md index 929f1d84a..3d0690e3b 100644 --- a/README_zh.md +++ b/README_zh.md @@ -276,7 +276,7 @@ npx rea-agents@latest setup 负责任使用的相关指引请见 [DISCLAIMER.md](DISCLAIMER.md)。 -REA 为合法的逆向工程研究、分析和重建提供工具。你有责任取得所需授权并遵守适用法律。项目不支持非法或未经授权的使用。 +REA 用于合法的研究、教育、互操作性、软件保存,以及分析你拥有或获准检查的软件。 ## 参与贡献 From e9970855ba16ba711816ac30212c5ca17ae085cd Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:46:10 +0800 Subject: [PATCH 27/44] fix(evidence): preserve trace uncertainty and partial provider observations Distinguish an unresolved goal from an exhausted call graph and preserve provider failures through cancellation. Retain completed IDA replies and post-operation identity observations as partial Evidence without claiming a verified final binding. Remove source-wide bundler cache-name heuristics and stale expectations. --- docs/mcp-contracts.md | 4 +- src/application/CallPathTracing.ts | 42 ++++-- .../EnhancedToolSelectorOrigin.test.ts | 121 ++++++++++++++- src/application/EnhancedTools.ts | 1 + src/contracts/enhancedToolContracts.ts | 2 +- src/contracts/toolOutputSchemaGroups.ts | 2 +- .../javascriptStaticAnalysisBundler.ts | 16 +- src/ida/IdaOperationFailures.test.ts | 131 +++++++++++++++- src/ida/IdaSessionClient.ts | 142 +++++++++++++++--- .../javascriptBundlerAdapters.test.ts | 12 +- .../enhancedTools.callPathsAndBatches.test.ts | 120 +++++++++++++++ .../providers/ida/calleeRelationships.test.ts | 2 +- 12 files changed, 539 insertions(+), 56 deletions(-) diff --git a/docs/mcp-contracts.md b/docs/mcp-contracts.md index 9a8d35d7f..7ac0bf1f2 100644 --- a/docs/mcp-contracts.md +++ b/docs/mcp-contracts.md @@ -354,7 +354,9 @@ node and coverage is `unknown`. An empty call list with partial or unknown coverage is not proof that the function has no calls. `trace_call_path` reports each limited expansion in `residual_unknowns` and sets `truncated: true`; any path already supported by observed edges remains -visible. Tool errors remain in their existing error or failure fields. +visible. When a requested goal is not reached but an expansion is unresolved, +`goal_status` is `unknown`; `not_reached` means traversal exhausted without +unresolved relationship reads. Cancellation remains a tool error. REA prepares complete MCP results within the pinned stdio client's 10 MiB receive-buffer budget, including both text and structured representations and diff --git a/src/application/CallPathTracing.ts b/src/application/CallPathTracing.ts index 825c69f44..cc4ce41f4 100644 --- a/src/application/CallPathTracing.ts +++ b/src/application/CallPathTracing.ts @@ -4,10 +4,11 @@ import type { ExecutionOptions, } from "./AnalysisProvider.js"; import { projectAnalysisError } from "../domain/analysisErrorProjection.js"; +import { AnalysisCancelledError } from "../domain/analysisErrorCore.js"; import type { AnalysisError } from "../domain/analysisErrorBase.js"; import { parseRelatedAddresses } from "../domain/hopperValues.js"; import type { JsonValue } from "../domain/jsonValue.js"; -import { ok, type Result } from "../domain/result.js"; +import { err, ok, type Result } from "../domain/result.js"; import type { EnhancedResult } from "./EnhancedToolTypes.js"; import { resolveProcedureAddress } from "./ProcedureAddressResolution.js"; import type { RelationshipCoverage } from "../domain/relationshipCoverage.js"; @@ -91,24 +92,31 @@ export const traceCallPath = async ( ...(goal === undefined ? {} : { goal }), direction: input.direction, }; + if (isAborted(signal)) + return err(new AnalysisCancelledError("trace_call_path")); const state = createTraceState(resolvedInput); while ( state.queueIndex < state.queue.length && state.traversalPath.length === 0 ) { + if (isAborted(signal)) + return err(new AnalysisCancelledError("trace_call_path")); const address = state.queue[state.queueIndex++]; if (address === undefined) break; const current = state.visited.get(address); if (current === undefined) continue; - const found = await expandAddress(callRelationship, { + const expanded = await expandAddress(callRelationship, { input: resolvedInput, state, address, current, ...(signal === undefined ? {} : { signal }), }); - if (found) break; + if (!expanded.ok) return expanded; + if (expanded.value) break; } + if (isAborted(signal)) + return err(new AnalysisCancelledError("trace_call_path")); return ok(projectTrace(resolvedInput, state)); }; @@ -127,19 +135,28 @@ const createTraceState = (input: CallPathTraceInput): TraceState => ({ const expandAddress = async ( call: RelationshipCall, expansion: AddressExpansion, -): Promise => { +): Promise> => { const { input, state, address, current, signal } = expansion; const relation = input.direction === "forward" ? "callees" : "callers"; const tool = input.direction === "forward" ? "procedure_callees" : "procedure_callers"; const result = await call(tool, { procedure: address }, signal, "provider"); + if (!result.ok) { + if ( + result.error._tag === "AnalysisCancelledError" || + signal?.aborted === true + ) + return result; + } + if (isAborted(signal)) + return err(new AnalysisCancelledError("trace_call_path")); if (!result.ok) { state.failures.push({ address, error: projectAnalysisError(result.error), }); state.residual.add(`Call relationships were unavailable for ${address}.`); - return false; + return ok(false); } const related = parseRelatedAddresses(result.value.result, relation); if (!related.ok) { @@ -148,7 +165,7 @@ const expandAddress = async ( error: projectAnalysisError(related.error), }); state.residual.add(`Call relationships were unreadable for ${address}.`); - return false; + return ok(false); } for (const limitation of result.value.limitations) state.limitations.add(limitation); @@ -184,7 +201,7 @@ const expandAddress = async ( if (state.visited.has(relatedAddress)) { if (relatedAddress === input.goal) { state.traversalPath = path; - return true; + return ok(true); } continue; } @@ -194,11 +211,11 @@ const expandAddress = async ( }); if (relatedAddress === input.goal) { state.traversalPath = path; - return true; + return ok(true); } state.queue.push(relatedAddress); } - return false; + return ok(false); }; const recordEdge = ( @@ -228,7 +245,9 @@ const projectTrace = (input: CallPathTraceInput, state: TraceState) => ({ ? "not_requested" : state.traversalPath.length > 0 ? "reached" - : "not_reached", + : state.residual.size > 0 + ? "unknown" + : "not_reached", nodes: [...state.visited.entries()] .map(([address, { depth }]) => ({ address, depth })) .sort( @@ -264,3 +283,6 @@ const compareAddress = (left: string, right: string): number => const sortedUniqueAddresses = (addresses: readonly string[]): string[] => [...new Set(addresses)].sort(compareAddress); + +const isAborted = (signal: AbortSignal | undefined): boolean => + signal?.aborted === true; diff --git a/src/application/EnhancedToolSelectorOrigin.test.ts b/src/application/EnhancedToolSelectorOrigin.test.ts index 387d4ebfb..48c21ea03 100644 --- a/src/application/EnhancedToolSelectorOrigin.test.ts +++ b/src/application/EnhancedToolSelectorOrigin.test.ts @@ -4,7 +4,11 @@ import { type AnalysisOperation, type AnalysisOperationPort, } from "./AnalysisProvider.js"; -import { AnalysisInputError } from "../domain/analysisErrorCore.js"; +import { + AnalysisCancelledError, + AnalysisInputError, + AnalysisProtocolError, +} from "../domain/analysisErrorCore.js"; import type { JsonValue } from "../domain/jsonValue.js"; import { err, ok } from "../domain/result.js"; import { EnhancedTools } from "./EnhancedTools.js"; @@ -140,3 +144,118 @@ describe("selector origin of composed workflows", () => { ).toBe(false); }); }); + +describe("trace path completion and cancellation", () => { + it("keeps an unreachable goal unknown when provider coverage is unresolved", async () => { + const tools = new EnhancedTools({ + execute: async (operation, parameters) => { + if (operation === "procedure_address") + return ok(createAnalysisExecution(parameters.procedure, provider)); + if (operation === "procedure_callees") + return ok( + createAnalysisExecution([], provider, { + relationshipCoverage: { + status: "unknown", + reason: "the provider cannot confirm graph coverage", + }, + }), + ); + throw new Error(`Unexpected operation: ${operation}`); + }, + }); + + const result = await tools.execute("trace_call_path", { + start: "0x1000", + goal: "0x2000", + }); + + expect(result).toMatchObject({ + ok: true, + value: { goal_status: "unknown", truncated: true }, + }); + }); + + it.each([ + { abortSignal: false, errorKind: "cancelled" }, + { abortSignal: true, errorKind: "cancelled" }, + { abortSignal: true, errorKind: "protocol" }, + ])( + "preserves provider $errorKind failure and cleanup with request abort: $abortSignal", + async ({ abortSignal, errorKind }) => { + const cleanup = { + reason: "provider cleanup is still pending", + resources: ["provider session"], + }; + const providerFailure = + errorKind === "cancelled" + ? new AnalysisCancelledError("procedure_callees", { cleanup }) + : new AnalysisProtocolError("provider relationship read failed", { + cleanup, + }); + const controller = new AbortController(); + const tools = new EnhancedTools({ + execute: async (operation, parameters) => { + if (operation === "procedure_address") + return ok(createAnalysisExecution(parameters.procedure, provider)); + if (operation === "procedure_callees") { + if (abortSignal) controller.abort(); + return err(providerFailure); + } + throw new Error(`Unexpected operation: ${operation}`); + }, + }); + + const result = await tools.execute( + "trace_call_path", + { start: "0x1000", goal: "0x2000" }, + abortSignal ? controller.signal : undefined, + ); + + expect(result).toMatchObject({ + ok: false, + error: { + _tag: + errorKind === "cancelled" + ? "AnalysisCancelledError" + : "AnalysisProtocolError", + cleanup, + }, + }); + if (result.ok) throw new Error("expected provider failure"); + expect(result.error).toBe(providerFailure); + }, + ); + + it("stops after cancellation races with a successful relationship response", async () => { + const controller = new AbortController(); + const calls: string[] = []; + const tools = new EnhancedTools({ + execute: async (operation, parameters) => { + calls.push(operation); + if (operation === "procedure_address") + return ok(createAnalysisExecution(parameters.procedure, provider)); + if (operation === "procedure_callees") { + controller.abort(); + return ok(createAnalysisExecution(["0x2000"], provider)); + } + throw new Error(`Unexpected operation: ${operation}`); + }, + }); + + const result = await tools.execute( + "trace_call_path", + { start: "0x1000", goal: "0x3000" }, + controller.signal, + ); + + expect(calls).toEqual([ + "procedure_address", + "procedure_address", + "procedure_callees", + ]); + expect(result).toMatchObject({ + ok: false, + error: { _tag: "AnalysisCancelledError" }, + }); + }); +}); diff --git a/src/application/EnhancedTools.ts b/src/application/EnhancedTools.ts index a5d09ecc2..5ea7ed70d 100644 --- a/src/application/EnhancedTools.ts +++ b/src/application/EnhancedTools.ts @@ -591,6 +591,7 @@ export class EnhancedTools { ...(signal === undefined ? {} : { signal }), ...(selectorOrigin === undefined ? {} : { selectorOrigin }), }); + if (!execution.ok) return execution; if (isAborted(signal)) return err(new AnalysisCancelledError(name)); return execution; } diff --git a/src/contracts/enhancedToolContracts.ts b/src/contracts/enhancedToolContracts.ts index d045e9e1e..e7956a719 100644 --- a/src/contracts/enhancedToolContracts.ts +++ b/src/contracts/enhancedToolContracts.ts @@ -73,7 +73,7 @@ export const ENHANCED_TOOL_CONTRACTS = [ ), enhanced( "trace_call_path", - "Resolve start and optional goal symbols or addresses to canonical procedure entries, then trace direct callers or callees until the graph is exhausted or the goal is reached. Results use canonical addresses; Evidence preserves supplied selectors. Returns visited nodes, direct-call edges, a shortest traversal path, provider failures, and residual unknowns; unresolved indirect calls remain unknown.", + "Resolve start and optional goal symbols or addresses to canonical procedure entries, then trace direct callers or callees until the graph is exhausted or the goal is reached. Results use canonical addresses; Evidence preserves supplied selectors. Returns visited nodes, direct-call edges, a shortest traversal path, provider failures, and residual unknowns. A requested goal is unknown when unresolved expansions prevent proving it absent; unresolved indirect calls remain unknown.", enhancedInputSchemas.trace_call_path, ), enhanced( diff --git a/src/contracts/toolOutputSchemaGroups.ts b/src/contracts/toolOutputSchemaGroups.ts index 3366be8ec..1f5db4cc3 100644 --- a/src/contracts/toolOutputSchemaGroups.ts +++ b/src/contracts/toolOutputSchemaGroups.ts @@ -220,7 +220,7 @@ const callPathTraceOutput = evidenceResultOf( start: z.string(), goal: z.string().nullable(), direction: z.enum(["forward", "backward"]), - goal_status: z.enum(["not_requested", "reached", "not_reached"]), + goal_status: z.enum(["not_requested", "reached", "not_reached", "unknown"]), nodes: z.array( z.object({ address: z.string(), diff --git a/src/domain/javascript/javascriptStaticAnalysisBundler.ts b/src/domain/javascript/javascriptStaticAnalysisBundler.ts index bf357a722..fc9705696 100644 --- a/src/domain/javascript/javascriptStaticAnalysisBundler.ts +++ b/src/domain/javascript/javascriptStaticAnalysisBundler.ts @@ -56,7 +56,7 @@ export const inspectBundlerRegistration = ( ...runtimeValue.asyncChunkKeys, ...recovered.asyncChunkKeys, ]); - const registration = { + const registration: JavaScriptBundlerRegistration = { bundler: runtime.toLowerCase().includes("rspack") ? ("rspack" as const) : ("webpack" as const), @@ -64,7 +64,10 @@ export const inspectBundlerRegistration = ( chunk_keys: chunkKeys.values, unknown_chunk_keys: chunkKeys.unknown, runtime_require_name: runtimeValue.requireName, - runtime_module_cache_status: bundlerModuleCacheStatus(source), + // A name appearing in the source does not establish cache behavior or + // associate it with this registration. Until the analyzed runtime body + // proves cache reads and writes, preserve the honest unknown state. + runtime_module_cache_status: "not-observed", entry_module_keys: runtimeValue.entryModuleKeys, unknown_entry_module_keys: runtimeValue.unknownEntryModuleKeys, async_chunk_keys: asyncChunkKeys.values, @@ -350,12 +353,3 @@ const uniqueValues = (values: readonly string[], unknown = 0): StaticValues => { unknown, }; }; - -const bundlerModuleCacheStatus = ( - source: string, -): "observed" | "not-observed" => - /\b(?:__webpack_module_cache__|__rspack_module_cache__|installedModules)\b/u.test( - source, - ) - ? "observed" - : "not-observed"; diff --git a/src/ida/IdaOperationFailures.test.ts b/src/ida/IdaOperationFailures.test.ts index e863266d0..c638c30bb 100644 --- a/src/ida/IdaOperationFailures.test.ts +++ b/src/ida/IdaOperationFailures.test.ts @@ -17,6 +17,112 @@ afterEach(async () => { await rm(root, { recursive: true, force: true }); }); +describe("headless IDA partial operation evidence", () => { + it("retains completed rows when post-operation target identity changes", async () => { + const { root, target } = await createIdaTarget(); + roots.push(root); + const producer = new RecordingIdaMcp(target, "headless"); + let healthReads = 0; + producer.overrideCall = (name) => { + if (name !== "server_health") return undefined; + healthReads += 1; + return healthReads === 2 + ? { + status: "ok", + input_path: "/different/target.elf", + idb_path: "/different/target.elf.i64", + module: "target.elf", + imagebase: "0x1000", + auto_analysis_ready: true, + } + : undefined; + }; + const client = new IdaSessionClient( + { + command: "fixture", + args: [], + env: {}, + mode: "headless", + timeoutMs: 1000, + workspaceRoot: root, + }, + target, + producer, + ); + try { + const result = await client.execute("list_procedures", {}); + expect(result.ok).toBe(false); + if (!result.ok) { + expect(result.error.message).toContain("identity changed"); + expect(result.error.partialObservation).toMatchObject({ + normalized_result: { + status: "partial", + observations: [expect.objectContaining({ tool: "list_funcs" })], + target_binding: { + status: "not_verified", + reason: expect.stringContaining("identity changed"), + }, + metadata_after: { + input_path: "/different/target.elf", + idb_path: "/different/target.elf.i64", + }, + }, + raw_result: { + post_operation_identity_check: "started", + metadata_after: { + input_path: "/different/target.elf", + idb_path: "/different/target.elf.i64", + }, + }, + }); + } + } finally { + expect((await client.close()).ok).toBe(true); + } + }); + + it("retains completed replies when cancellation arrives after a reply", async () => { + const { root, target } = await createIdaTarget(); + roots.push(root); + const producer = new RecordingIdaMcp(target, "headless"); + const controller = new AbortController(); + producer.beforeCall = async (name) => { + if (name === "list_funcs") controller.abort(); + }; + const client = new IdaSessionClient( + { + command: "fixture", + args: [], + env: {}, + mode: "headless", + timeoutMs: 1000, + workspaceRoot: root, + }, + target, + producer, + ); + try { + const result = await client.execute( + "list_procedures", + {}, + { signal: controller.signal }, + ); + expect(result.ok).toBe(false); + if (!result.ok) { + expect(result.error._tag).toBe("AnalysisCancelledError"); + expect(result.error.partialObservation).toMatchObject({ + normalized_result: { + status: "partial", + observations: [expect.objectContaining({ tool: "list_funcs" })], + }, + }); + } + } finally { + expect((await client.close()).ok).toBe(true); + } + }); +}); + describe("headless IDA operation failures", () => { it.each<{ tool: string; @@ -92,7 +198,28 @@ describe("headless IDA operation failures", () => { try { const result = await client.execute(operation, parameters); expect(result.ok).toBe(false); - if (!result.ok) expect(result.error.message).toContain(failure); + if (!result.ok) { + expect(result.error.message).toContain(failure); + expect(result.error.partialObservation).toMatchObject({ + provider: { id: "ida" }, + operation, + parameters, + normalized_result: { + status: "partial", + failed_operation: operation, + observations: expect.arrayContaining([ + expect.objectContaining({ tool }), + ]), + metadata_before: expect.any(Object), + }, + locations: expect.arrayContaining([ + { kind: "artifact-path", path: target.path }, + ]), + }); + expect( + projectAnalysisError(result.error).details?.partial_observation, + ).toMatchObject({ normalized_result: { status: "partial" } }); + } } finally { expect((await client.close()).ok).toBe(true); } @@ -168,7 +295,7 @@ describe("headless IDA procedure lookup failures", () => { expect( projected.details, "the operation and exactly one issue that names the procedure in its message", - ).toEqual({ + ).toMatchObject({ operation, issues: [ { diff --git a/src/ida/IdaSessionClient.ts b/src/ida/IdaSessionClient.ts index 1d6aa599d..0633d9f68 100644 --- a/src/ida/IdaSessionClient.ts +++ b/src/ida/IdaSessionClient.ts @@ -43,6 +43,7 @@ import { sameIdaHostPath, } from "./IdaWorkspace.js"; import { parseIdaInput } from "./IdaInput.js"; +import { createEvidence } from "../domain/evidence.js"; const legacyTools = [ "get_metadata", @@ -75,6 +76,14 @@ const isIdaOperation = (operation: string): operation is IdaOperation => const wasCancelled = (options: ExecutionOptions | undefined): boolean => options?.signal?.aborted === true; +interface IdaOperationFailureContext { + runner: IdaOperationRunner | undefined; + metadataBefore: JsonValue | undefined; + metadataAfter: JsonValue | undefined; + postOperationIdentityCheck: "not_attempted" | "started" | "verified"; + parameters: Readonly>; +} + /** A failed cleanup retains its private workspace and reports the remaining resource. */ class IdaCleanupError extends ProviderAdapterError { override readonly cleanupIncomplete = true; @@ -185,23 +194,34 @@ export class IdaSessionClient implements AnalysisClient { }, ]), ); + const failureContext: IdaOperationFailureContext = { + runner: undefined, + metadataBefore: undefined, + metadataAfter: undefined, + postOperationIdentityCheck: "not_attempted", + parameters, + }; try { await this.#start(); const before = await this.#observe(options); - if (wasCancelled(options)) - return err(new AnalysisCancelledError(operation)); + failureContext.metadataBefore = before; + if (wasCancelled(options)) throw new AnalysisCancelledError(operation); if (operation === "health") return this.#health(before); if (!isIdaOperation(operation)) throw new AnalysisProtocolError( "IDA operation changed after validation.", ); const runner = this.#runner(options); + failureContext.runner = runner; const result = await runner.run(operation, parameters); - if (wasCancelled(options)) - return err(new AnalysisCancelledError(operation)); - const after = await this.#observe(options); - if (wasCancelled(options)) - return err(new AnalysisCancelledError(operation)); + if (wasCancelled(options)) throw new AnalysisCancelledError(operation); + failureContext.postOperationIdentityCheck = "started"; + const after = await this.#observe( + options, + (observed) => (failureContext.metadataAfter = observed), + ); + failureContext.postOperationIdentityCheck = "verified"; + if (wasCancelled(options)) throw new AnalysisCancelledError(operation); return ok( createAnalysisExecution(result, IDA_PROVIDER_IDENTITY, { rawResult: { @@ -224,7 +244,7 @@ export class IdaSessionClient implements AnalysisClient { }), ); } catch (cause: unknown) { - return this.#failure(operation, cause, options); + return this.#failure(operation, cause, options, failureContext); } } @@ -268,20 +288,27 @@ export class IdaSessionClient implements AnalysisClient { operation: string, cause: unknown, options: ExecutionOptions | undefined, + context: IdaOperationFailureContext, ) { - if (wasCancelled(options)) - return err(new AnalysisCancelledError(operation)); - if (cause instanceof AnalysisError) return err(cause); - if (cause instanceof z.ZodError) - return err( - new AnalysisOutputError( - operation, - `IDA MCP returned malformed or unsupported producer data: ${cause.issues.map((issue) => `${issue.path.join(".") || "$"}: ${issue.message}`).join("; ")}`, - { cause }, - ), + let failure: AnalysisError; + if ( + cause instanceof AnalysisError && + (cause.partialObservation !== undefined || + cause.cleanupIncomplete || + cause.capturedOutput !== undefined) + ) + failure = cause; + else if (wasCancelled(options)) + failure = new AnalysisCancelledError(operation); + else if (cause instanceof AnalysisError) failure = cause; + else if (cause instanceof z.ZodError) + failure = new AnalysisOutputError( + operation, + `IDA MCP returned malformed or unsupported producer data: ${cause.issues.map((issue) => `${issue.path.join(".") || "$"}: ${issue.message}`).join("; ")}`, + { cause }, ); - return err( - new ProviderAdapterError("ida", operation, { + else + failure = new ProviderAdapterError("ida", operation, { cause, diagnostics: { reason: @@ -289,8 +316,68 @@ export class IdaSessionClient implements AnalysisClient { recovery: "Check the configured upstream MCP registration and selected target; see docs/ida-provider.md.", }, - }), - ); + }); + // Only operation calls made after target identity/readiness validation can + // become partial Evidence. The failing call itself is absent from `raw` + // when its transport or MCP envelope could not be decoded. + const { runner, metadataBefore, metadataAfter } = context; + if ( + runner !== undefined && + runner.raw.length > 0 && + metadataBefore !== undefined + ) { + const observations = jsonValueSchema.parse(runner.raw); + const upstream = this.connection.serverInfo(); + const binding = + context.postOperationIdentityCheck !== "verified" + ? { + status: "not_verified", + reason: + cause instanceof Error + ? cause.message + : "Post-operation target identity was not observed.", + } + : { status: "verified" }; + failure.retainPartialObservation( + createEvidence(this.target, IDA_PROVIDER_IDENTITY, { + predicateType: "analysis-observation", + operation, + parameters: context.parameters, + result: { + status: "partial", + failed_operation: operation, + observations, + metadata_before: metadataBefore, + target_binding: binding, + ...(metadataAfter === undefined + ? {} + : { metadata_after: metadataAfter }), + }, + rawResult: { + upstream, + observations, + metadata_before: metadataBefore, + ...(metadataAfter === undefined + ? {} + : { metadata_after: metadataAfter }), + post_operation_identity_check: context.postOperationIdentityCheck, + }, + confidence: "observed", + authority: "external-service", + limitations: [ + ...IDA_LIMITATIONS, + ...runner.limitations, + "The requested IDA operation failed after these completed upstream replies; the partial Evidence does not establish a complete result.", + "Replies are bound to the selected target only by the pre-operation identity check unless post_operation_identity_check is verified.", + ], + locations: [ + { kind: "artifact-path", path: this.target.path }, + ...runner.locations, + ], + }), + ); + } + return err(failure); } #start(): Promise { @@ -356,11 +443,16 @@ export class IdaSessionClient implements AnalysisClient { } } - async #observe(options?: ExecutionOptions): Promise { + async #observe( + options?: ExecutionOptions, + onObserved?: (metadata: JsonValue) => void, + ): Promise { let identity: string; if (this.config.mode === "attached") { const raw = await this.connection.call("get_metadata", {}); const metadata = legacyMetadataSchema.parse(raw); + this.#metadata = raw; + onObserved?.(raw); if (metadata.sha256.toLowerCase() !== this.target.sha256.toLowerCase()) throw new AnalysisProtocolError( `The attached IDA input SHA-256 does not match the selected target ${this.target.path}; open that target in IDA or use headless mode.`, @@ -370,7 +462,6 @@ export class IdaSessionClient implements AnalysisClient { metadata.sha256.toLowerCase(), metadata.base, ]); - this.#metadata = raw; } else { if (this.#database === undefined || this.#workspace === undefined) throw new AnalysisProtocolError( @@ -382,6 +473,8 @@ export class IdaSessionClient implements AnalysisClient { signal: options?.signal, }); const metadata = modernHealthSchema.parse(raw); + this.#metadata = raw; + onObserved?.(raw); if ( !sameIdaHostPath(metadata.input_path, this.#workspace.inputPath) || (await idaFileDigest(this.#workspace.inputPath)) !== this.target.sha256 @@ -399,7 +492,6 @@ export class IdaSessionClient implements AnalysisClient { metadata.idb_path, metadata.imagebase, ]); - this.#metadata = raw; } if ( this.#initialIdentity !== undefined && diff --git a/tests/boundary/filesystem/javascript-applications/javascriptBundlerAdapters.test.ts b/tests/boundary/filesystem/javascript-applications/javascriptBundlerAdapters.test.ts index f5b425072..f20eaac1f 100644 --- a/tests/boundary/filesystem/javascript-applications/javascriptBundlerAdapters.test.ts +++ b/tests/boundary/filesystem/javascript-applications/javascriptBundlerAdapters.test.ts @@ -42,7 +42,7 @@ describe("Webpack and Rspack runtime adapters", () => { expect(webpackEntry?.observations[0]?.properties).toMatchObject({ bundler: "webpack", runtime_require_name: "__webpack_require__", - runtime_module_cache_status: "observed", + runtime_module_cache_status: "not-observed", entry_module_keys: ["10"], async_chunk_keys: ["lazy", "missing"], unknown_async_chunk_keys: 1, @@ -55,6 +55,7 @@ describe("Webpack and Rspack runtime adapters", () => { expect(rspackEntry?.observations[0]?.properties).toMatchObject({ bundler: "rspack", runtime_require_name: "r", + runtime_module_cache_status: "not-observed", entry_module_keys: ["src/entry.ts"], async_chunk_keys: ["model"], }); @@ -156,7 +157,8 @@ const bundlerFixture = async (): Promise => { const root = await createTestTempDirectory("rea-bundler-adapters-"); await writeFixtureFiles(root, { "renderer/chunks/runtime.js": ` - var __webpack_module_cache__ = {}; + // A cache-like name here is not evidence about either registration. + const documentation = "__webpack_module_cache__"; (globalThis["webpackChunkcustomPortal"] = globalThis["webpackChunkcustomPortal"] || []).push([ ["main"], { @@ -179,7 +181,11 @@ const bundlerFixture = async (): Promise => { (globalThis["webpackChunkcustomPortal"] = globalThis["webpackChunkcustomPortal"] || []).push([ ["lazy"], { - 20: (module) => { module.exports = "lazy"; } + 20: (module) => { + // A marker in a different registration must not be inherited. + const documentation = "installedModules"; + module.exports = "lazy"; + } } ]); (self.rspackChunkcustomPortal = self.rspackChunkcustomPortal || []).push([ diff --git a/tests/boundary/mcp/enhancedTools.callPathsAndBatches.test.ts b/tests/boundary/mcp/enhancedTools.callPathsAndBatches.test.ts index c13ea3c56..f4915afd1 100644 --- a/tests/boundary/mcp/enhancedTools.callPathsAndBatches.test.ts +++ b/tests/boundary/mcp/enhancedTools.callPathsAndBatches.test.ts @@ -5,6 +5,7 @@ import { createAnalysisExecution } from "../../../src/application/AnalysisProvid import { EnhancedTools } from "../../../src/application/EnhancedTools.js"; import { AnalysisCapabilityUnavailableError, + AnalysisCancelledError, AnalysisOutputError, } from "../../../src/domain/analysisErrorCore.js"; import type { RelationshipCoverage } from "../../../src/domain/relationshipCoverage.js"; @@ -178,6 +179,125 @@ describe("enhanced MCP tools", () => { }); }); +describe("trace_call_path MCP outcome semantics", () => { + it("reports an unreachable goal as unknown when relationship coverage is partial", async () => { + const client = await connect({ + execute: async (name, arguments_) => { + if (name === "procedure_address") + return relationshipExecution(String(arguments_.procedure)); + if (name !== "procedure_callees") + throw new Error(`Unexpected operation: ${name}`); + return relationshipExecution([], [], { + status: "partial", + limitations: ["one or more callees may be missing"], + }); + }, + }); + + const trace = await client.callTool({ + name: "trace_call_path", + arguments: { start: "0x1", goal: "0x2" }, + }); + expect(trace.isError).not.toBe(true); + expect(trace.structuredContent).toMatchObject({ + normalized_result: { + goal_status: "unknown", + truncated: true, + relationship_coverage: { "0x1": { status: "partial" } }, + }, + }); + }); + + it("reports an unreachable goal as unknown when an expansion fails", async () => { + const client = await connect({ + execute: async (name, arguments_) => { + if (name === "procedure_address") + return relationshipExecution(String(arguments_.procedure)); + if (name !== "procedure_callees") + throw new Error(`Unexpected operation: ${name}`); + return err( + new AnalysisCapabilityUnavailableError( + "fixture", + name, + "relationship read unavailable", + ), + ); + }, + }); + + const trace = await client.callTool({ + name: "trace_call_path", + arguments: { start: "0x1", goal: "0x2" }, + }); + expect(trace.isError).not.toBe(true); + expect(trace.structuredContent).toMatchObject({ + normalized_result: { + goal_status: "unknown", + failures: [{ address: "0x1" }], + truncated: true, + }, + }); + }); + + it("reports an unreachable goal as absent after complete traversal", async () => { + const client = await connect({ + execute: async (name, arguments_) => { + if (name === "procedure_address") + return relationshipExecution(String(arguments_.procedure)); + if (name !== "procedure_callees") + throw new Error(`Unexpected operation: ${name}`); + return relationshipExecution([], [], { status: "complete" }); + }, + }); + + const trace = await client.callTool({ + name: "trace_call_path", + arguments: { start: "0x1", goal: "0x2" }, + }); + expect(trace.isError).not.toBe(true); + expect(trace.structuredContent).toMatchObject({ + normalized_result: { + goal_status: "not_reached", + truncated: false, + residual_unknowns: [], + }, + }); + }); + + it("propagates cancellation during expansion without visiting another frontier", async () => { + const controller = new AbortController(); + const calls: string[] = []; + const client = await connect({ + execute: async (name, arguments_, options) => { + calls.push(name); + if (name === "procedure_address") + return relationshipExecution(String(arguments_.procedure)); + if (name !== "procedure_callees") + throw new Error(`Unexpected operation: ${name}`); + controller.abort(); + if (options?.signal?.aborted !== true) + throw new Error("provider request was not cancelled"); + return err(new AnalysisCancelledError(name)); + }, + }); + + await expect( + client.callTool( + { + name: "trace_call_path", + arguments: { start: "0x1", goal: "0x3" }, + }, + { signal: controller.signal }, + ), + ).rejects.toThrow(); + expect(calls).toEqual([ + "procedure_address", + "procedure_address", + "procedure_callees", + ]); + }); +}); + describe("enhanced MCP batches", () => { it("returns every batch item in caller order with its own result", async () => { const addresses = Array.from( diff --git a/tests/boundary/providers/ida/calleeRelationships.test.ts b/tests/boundary/providers/ida/calleeRelationships.test.ts index 9d8ed638d..244eb21e5 100644 --- a/tests/boundary/providers/ida/calleeRelationships.test.ts +++ b/tests/boundary/providers/ida/calleeRelationships.test.ts @@ -209,7 +209,7 @@ it("preserves missing callgraph coverage through direct, graph, and trace workfl }); if (!trace.ok) throw trace.error; expect(trace.value).toMatchObject({ - goal_status: "not_reached", + goal_status: "unknown", edges: [], limitations: expect.arrayContaining([ expect.stringContaining("callgraph was unavailable"), From 98d8470d36cfbf7cd25820a4ed430aebae20c0c5 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:46:37 +0800 Subject: [PATCH 28/44] fix(io): consolidate managed snapshots and retain cleanup ownership Reuse managed snapshot admission and hashing in sequential path comparisons, retaining caller paths and completed inspection Evidence on later failure. Preserve exact failed-close owners alongside typed read and cancellation failures, and retry them through caller-owned resource scopes. Require canonical Hopper lease identities, remove signed offset coercion, and repair stale setup cleanup expectations that failed CI. --- docs/managed-code-analysis.md | 6 + src/application/BinaryTargetResolver.ts | 26 ++- .../binary/AnalysisClientCleanup.test.ts | 6 +- .../managed/ManagedMemberComparisonService.ts | 160 ++++++++------- src/cli/managedCommands.ts | 47 ++++- src/domain/analysisErrorCleanup.ts | 6 +- src/dotnet/ManagedMetadataLayout.ts | 2 +- src/dotnet/ManagedMethodBodyReader.ts | 2 +- src/dotnet/ManagedSnapshot.ts | 190 +++++++++++++++++ src/dotnet/ManagedStaticProvider.ts | 145 +++++-------- src/hopper/HopperTargetLease.test.ts | 93 ++++++++- src/hopper/HopperTargetLease.ts | 23 ++- .../setupSkillCleanupOwnership.test.ts | 42 +++- .../managed/managedMemberComparison.test.ts | 192 +++++++++++++++++- .../managed/managedStaticProvider.test.ts | 178 +++++++++++++++- .../composition/directAnalysisCleanup.test.ts | 6 +- 16 files changed, 899 insertions(+), 225 deletions(-) create mode 100644 src/dotnet/ManagedSnapshot.ts diff --git a/docs/managed-code-analysis.md b/docs/managed-code-analysis.md index 18360ec3d..386b7b6d5 100644 --- a/docs/managed-code-analysis.md +++ b/docs/managed-code-analysis.md @@ -53,6 +53,12 @@ CIL decoding, and projected inspection records have a separate conservative output occurrences still consume that budget. These are inspection resource policies, not PE format limits or a hard bound on total V8 heap use. +Path-based member comparison uses the same per-input snapshot policy and +inspects its two selected paths sequentially, retaining each inspection rather +than both full byte snapshots. The limit therefore remains a per-file resource +admission rule, not an aggregate comparison limit. Comparison Evidence keeps +the caller-selected paths as its parameters and artifact locations. + Input overflow returns a resource constraint. Decode or projection overflow reports `resource-limit` with unavailable or partial coverage; omitted facts do not become empty observations. Ambiguous PE section mappings are rejected diff --git a/src/application/BinaryTargetResolver.ts b/src/application/BinaryTargetResolver.ts index cd424a7e0..bced0278a 100644 --- a/src/application/BinaryTargetResolver.ts +++ b/src/application/BinaryTargetResolver.ts @@ -207,18 +207,26 @@ export const parseBinaryTarget = async ( if (cause instanceof AnalysisCancelledError) return err(cause); if (cause instanceof BinaryTargetError) return err(cause); if (!(cause instanceof Error)) throw cause; - const code = filesystemErrorCode(cause); - if (code === undefined) throw cause; - return err( - new BinaryTargetError( - candidate, - targetFailureReason(code, cause.message), - { cause }, - ), - ); + const failure = classifyBinaryTargetFilesystemFailure(candidate, cause); + if (failure === undefined) throw cause; + return err(failure); } }; +/** Classify a filesystem failure while reading a previously selected target. */ +export const classifyBinaryTargetFilesystemFailure = ( + path: string, + cause: unknown, +): BinaryTargetError | undefined => { + if (!(cause instanceof Error)) return undefined; + const code = filesystemErrorCode(cause); + return code === undefined + ? undefined + : new BinaryTargetError(path, targetFailureReason(code, cause.message), { + cause, + }); +}; + const filesystemErrorCode = (cause: Error): string | undefined => { const code: unknown = Reflect.get(cause, "code"); return typeof code === "string" ? code : undefined; diff --git a/src/application/binary/AnalysisClientCleanup.test.ts b/src/application/binary/AnalysisClientCleanup.test.ts index e3dae7646..3ca21b06f 100644 --- a/src/application/binary/AnalysisClientCleanup.test.ts +++ b/src/application/binary/AnalysisClientCleanup.test.ts @@ -71,5 +71,9 @@ it("preserves the original explanation and collected output alongside cleanup un }, }, }); - expect(combined.cause).toBe(primary); + expect(combined.cause).toBeInstanceOf(AggregateError); + expect(combined.cause).toMatchObject({ + cause: primary, + errors: [primary, cleanup], + }); }); diff --git a/src/application/managed/ManagedMemberComparisonService.ts b/src/application/managed/ManagedMemberComparisonService.ts index 1c0ac8456..252feb8ca 100644 --- a/src/application/managed/ManagedMemberComparisonService.ts +++ b/src/application/managed/ManagedMemberComparisonService.ts @@ -1,6 +1,3 @@ -import { createHash } from "node:crypto"; -import { readFile } from "node:fs/promises"; - import { z } from "zod"; import { @@ -9,14 +6,20 @@ import { type CompareManagedMembersInput, } from "../../domain/managed/managedMemberComparison.js"; import { parseManagedMemberEvidence } from "../../domain/managed/managedMemberComparisonMatch.js"; +import type { BinaryTarget } from "../../domain/binaryTargetTypes.js"; +import type { ArtifactResourceScope } from "../../artifacts/ArtifactResourceScope.js"; import { AnalysisProtocolError } from "../../domain/analysisErrorCore.js"; import { EvidenceIntegrityError } from "../../domain/evidenceErrors.js"; -import type { AnalysisError } from "../../domain/analysisErrorBase.js"; +import { AnalysisError } from "../../domain/analysisErrorBase.js"; import { createEvidence, type Evidence } from "../../domain/evidence.js"; import { jsonValueSchema } from "../../domain/jsonValue.js"; -import { parseBinaryTarget } from "../BinaryTargetResolver.js"; +import { + classifyBinaryTargetFilesystemFailure, + parseBinaryTarget, +} from "../BinaryTargetResolver.js"; import { err, ok, type Result } from "../../domain/result.js"; import { inspectManagedMembersBytes } from "../../dotnet/ManagedMemberInspector.js"; +import { readManagedSnapshot } from "../../dotnet/ManagedSnapshot.js"; import { MANAGED_STATIC_PROVIDER, MANAGED_WORKFLOW_PROVIDER, @@ -43,109 +46,95 @@ export const compareManagedMembersEvidenceValidated = ( interface ManagedMemberComparisonPathDependencies { readonly resolveTarget: typeof parseBinaryTarget; - readonly readBytes: (path: string) => Promise; + readonly readSnapshot: typeof readManagedSnapshot; } -const DEFAULT_PATH_DEPENDENCIES: ManagedMemberComparisonPathDependencies = { - resolveTarget: parseBinaryTarget, - readBytes: readFile, -}; - /** Inspect two local PE artifacts and return one derived comparison Evidence. */ export const compareManagedMemberPaths = async ( input: { readonly leftPath: string; readonly rightPath: string; }, - dependencies: ManagedMemberComparisonPathDependencies = DEFAULT_PATH_DEPENDENCIES, + dependencies: Partial = {}, + resources?: ArtifactResourceScope, ): Promise> => { const operation = "compare_managed_members"; + const resolveTarget = dependencies.resolveTarget ?? parseBinaryTarget; + const readSnapshot = dependencies.readSnapshot ?? readManagedSnapshot; + let partialEvidence: Evidence | undefined; try { const [leftTarget, rightTarget] = await Promise.all([ - dependencies.resolveTarget(input.leftPath), - dependencies.resolveTarget(input.rightPath), + resolveTarget(input.leftPath), + resolveTarget(input.rightPath), ]); // Report an unopenable path like every other path-based command does, // with the failed path and constraint, rather than a bare input error. if (!leftTarget.ok) return err(leftTarget.error); if (!rightTarget.ok) return err(rightTarget.error); - const [leftBytes, rightBytes] = await Promise.all([ - dependencies.readBytes(leftTarget.value.path), - dependencies.readBytes(rightTarget.value.path), - ]); - for (const [target, bytes] of [ - [leftTarget.value, leftBytes], - [rightTarget.value, rightBytes], - ] as const) { - const observedSha256 = createHash("sha256").update(bytes).digest("hex"); - if (observedSha256 !== target.sha256) - return err( - new EvidenceIntegrityError( - `Managed artifact digest changed after open: expected ${target.sha256}, observed ${observedSha256} at ${target.path}`, - ), + const inspectTarget = async ( + target: BinaryTarget, + selectedPath: string, + ) => { + const { path } = target; + let snapshot: Awaited>; + try { + snapshot = await readSnapshot( + path, + operation, + resources === undefined ? {} : { resources }, ); - } - const leftInspection = inspectManagedMembersBytes( - leftBytes, - leftTarget.value, - ); - const rightInspection = inspectManagedMembersBytes( - rightBytes, - rightTarget.value, - ); - const leftEvidence = createEvidence( - leftTarget.value, - MANAGED_STATIC_PROVIDER, - { + } catch (cause: unknown) { + const failure = classifyBinaryTargetFilesystemFailure(path, cause); + if (failure !== undefined) throw failure; + throw cause; + } + if (snapshot.sha256 !== target.sha256) + throw new EvidenceIntegrityError( + `Managed artifact digest changed after open: expected ${target.sha256}, observed ${snapshot.sha256} at ${target.path}`, + ); + const inspection = inspectManagedMembersBytes(snapshot.bytes, target); + const evidence = createEvidence(target, MANAGED_STATIC_PROVIDER, { operation: "inspect_managed_members", parameters: {}, - result: jsonValueSchema.parse(leftInspection), + result: jsonValueSchema.parse(inspection), rawResult: null, - limitations: leftInspection.limitations, - locations: [{ kind: "artifact-path", path: leftTarget.value.path }], - }, - ); - const rightEvidence = createEvidence( - rightTarget.value, - MANAGED_STATIC_PROVIDER, - { - operation: "inspect_managed_members", - parameters: {}, - result: jsonValueSchema.parse(rightInspection), - rawResult: null, - limitations: rightInspection.limitations, - locations: [{ kind: "artifact-path", path: rightTarget.value.path }], - }, - ); + limitations: inspection.limitations, + locations: [{ kind: "artifact-path", path: selectedPath }], + }); + return { inspection, evidence }; + }; + const left = await inspectTarget(leftTarget.value, input.leftPath); + partialEvidence = left.evidence; + const right = await inspectTarget(rightTarget.value, input.rightPath); const result = compareManagedMembers( { - evidenceId: leftEvidence.evidence_id, - result: leftInspection, + evidenceId: left.evidence.evidence_id, + result: left.inspection, }, { - evidenceId: rightEvidence.evidence_id, - result: rightInspection, + evidenceId: right.evidence.evidence_id, + result: right.inspection, }, ); return ok( createManagedMemberComparisonEvidence( { - left: leftEvidence, - right: rightEvidence, + left: left.evidence, + right: right.evidence, }, result, + { leftPath: input.leftPath, rightPath: input.rightPath }, ), ); } catch (cause: unknown) { - return workflowFailure(operation, cause); + return workflowFailure(operation, cause, partialEvidence); } }; -/** ECMA-335 representable limits for path-based member comparison. */ - const createManagedMemberComparisonEvidence = ( parameters: Pick, result: z.infer, + sourcePaths?: { readonly leftPath: string; readonly rightPath: string }, ): Evidence => createEvidence(undefined, MANAGED_WORKFLOW_PROVIDER, { predicateType: "rea.managed-member-comparison", @@ -153,6 +142,12 @@ const createManagedMemberComparisonEvidence = ( parameters: { left_evidence_id: parameters.left.evidence_id, right_evidence_id: parameters.right.evidence_id, + ...(sourcePaths === undefined + ? {} + : { + left_path: sourcePaths.leftPath, + right_path: sourcePaths.rightPath, + }), }, result: jsonValueSchema.parse(result), rawResult: null, @@ -160,18 +155,33 @@ const createManagedMemberComparisonEvidence = ( authority: "analyst-inference", environment: null, limitations: result.limitations, + locations: + sourcePaths === undefined + ? [] + : [ + { kind: "artifact-path", path: sourcePaths.leftPath }, + { kind: "artifact-path", path: sourcePaths.rightPath }, + ], evidenceLinks: result.evidence_links, }); const workflowFailure = ( operation: string, cause: unknown, -): Result => - err( - cause instanceof z.ZodError || cause instanceof TypeError - ? workflowInputError(operation, cause) - : new AnalysisProtocolError( - "Managed member comparison produced an invalid result", - { cause }, - ), + partialEvidence?: Evidence, +): Result => { + const failure = + cause instanceof AnalysisError + ? cause + : cause instanceof z.ZodError || cause instanceof TypeError + ? workflowInputError(operation, cause) + : new AnalysisProtocolError( + "Managed member comparison produced an invalid result", + { cause }, + ); + return err( + partialEvidence === undefined + ? failure + : failure.retainPartialObservation(partialEvidence), ); +}; diff --git a/src/cli/managedCommands.ts b/src/cli/managedCommands.ts index 7dc74ae3e..f922b9532 100644 --- a/src/cli/managedCommands.ts +++ b/src/cli/managedCommands.ts @@ -4,8 +4,13 @@ import { compareManagedMemberPaths } from "../application/managed/ManagedMemberC import { verifyManagedNativeBoundariesEvidence } from "../application/managed/ManagedNativeVerificationService.js"; import { importManagedReconstructionEvidence } from "../application/managed/ManagedReconstructionService.js"; import type { DirectAnalysis } from "../composition/directAnalysis.js"; +import { ArtifactReaderFailure } from "../artifacts/ArtifactReader.js"; +import { ArtifactResourceScope } from "../artifacts/ArtifactResourceScope.js"; import { parseCliJsonInput } from "../cliJsonInput.js"; +import { MANAGED_STATIC_PROVIDER } from "../application/InvestigationProviders.js"; +import { analysisErrorWithCleanupFailure } from "../domain/analysisErrorCleanup.js"; import { projectAnalysisError } from "../domain/analysisErrorProjection.js"; +import { ProviderCleanupError } from "../domain/providerCleanupError.js"; import { CLI_COMMANDS } from "../cliCommandNames.js"; import { logCliCommand } from "../cliLogging.js"; import type { Logger } from "pino"; @@ -112,10 +117,44 @@ const registerCompareManagedMembers = ( args: compareManagedMemberArgs, run: ({ args }) => logCliCommand(logger, "compare-managed-members", async () => { - const result = await compareManagedMemberPaths({ - leftPath: args.leftPath, - rightPath: args.rightPath, - }); + const resources = new ArtifactResourceScope(); + const result = await compareManagedMemberPaths( + { + leftPath: args.leftPath, + rightPath: args.rightPath, + }, + {}, + resources, + ); + try { + await resources.close(); + } catch (cause: unknown) { + const cleanup = ArtifactReaderFailure.cleanupObservation( + cause, + "Managed member comparison resources", + ); + const failure = new ProviderCleanupError( + MANAGED_STATIC_PROVIDER.id, + cleanup.resources, + { reason: cleanup.reason }, + { + cause, + operation: "compare_managed_members", + ...(result.ok ? { partialObservation: result.value } : {}), + }, + ); + const error = result.ok + ? failure + : analysisErrorWithCleanupFailure( + result.error, + failure, + "compare_managed_members", + ); + return { + error: "Managed member comparison failed", + ...projectAnalysisError(error), + }; + } return result.ok ? result.value : { diff --git a/src/domain/analysisErrorCleanup.ts b/src/domain/analysisErrorCleanup.ts index df1f95b75..c6a796f90 100644 --- a/src/domain/analysisErrorCleanup.ts +++ b/src/domain/analysisErrorCleanup.ts @@ -13,7 +13,11 @@ export const analysisErrorWithCleanupFailure = ( cleanup instanceof ProviderAdapterError ? cleanup.providerId : "rea", operation, { - cause: primary, + cause: new AggregateError( + [primary, cleanup], + "Analysis failed and cleanup remains incomplete.", + { cause: primary }, + ), userMessage: projectAnalysisError(primary).message, ...(primary.capturedOutput === undefined ? {} diff --git a/src/dotnet/ManagedMetadataLayout.ts b/src/dotnet/ManagedMetadataLayout.ts index 41a3c7756..b7dc0a7ae 100644 --- a/src/dotnet/ManagedMetadataLayout.ts +++ b/src/dotnet/ManagedMetadataLayout.ts @@ -135,7 +135,7 @@ const requireRange = ( ); }; -const align4 = (value: number): number => (value + 3) & ~3; +const align4 = (value: number): number => Math.ceil(value / 4) * 4; const readStreamName = ( bytes: Buffer, diff --git a/src/dotnet/ManagedMethodBodyReader.ts b/src/dotnet/ManagedMethodBodyReader.ts index fdbda8008..7c507cdd9 100644 --- a/src/dotnet/ManagedMethodBodyReader.ts +++ b/src/dotnet/ManagedMethodBodyReader.ts @@ -132,7 +132,7 @@ export const methodBody = ( "utf8", ); const methodEnd = ilOffset + header.ilSize; - const sectionOffset = (methodEnd + 3) & ~3; + const sectionOffset = Math.ceil(methodEnd / 4) * 4; const exceptionRegions = header.format === "fat" && (header.flags & 8) !== 0 ? validateExceptionRegionRanges( diff --git a/src/dotnet/ManagedSnapshot.ts b/src/dotnet/ManagedSnapshot.ts new file mode 100644 index 000000000..788f93000 --- /dev/null +++ b/src/dotnet/ManagedSnapshot.ts @@ -0,0 +1,190 @@ +import { createHash } from "node:crypto"; +import type { Stats } from "node:fs"; +import type { FileHandle } from "node:fs/promises"; + +import { MANAGED_STATIC_PROVIDER } from "../application/InvestigationProviders.js"; +import { classifyBinaryTargetFilesystemFailure } from "../application/BinaryTargetResolver.js"; +import { withRegularFile } from "../application/RegularFileRead.js"; +import { + RegularFileCleanupFailure, + type RegularFileReadOptions, +} from "../application/RegularFileRead.js"; +import { ArtifactReaderFailure } from "../artifacts/ArtifactReader.js"; +import { analysisErrorWithCleanupFailure } from "../domain/analysisErrorCleanup.js"; +import { AnalysisError } from "../domain/analysisErrorBase.js"; +import { + AnalysisCancelledError, + AnalysisResourceConstraintError, +} from "../domain/analysisErrorCore.js"; +import { EvidenceIntegrityError } from "../domain/evidenceErrors.js"; +import { ProviderCleanupError } from "../domain/providerCleanupError.js"; +import { RegularFileChangedError } from "../filesystem/RegularFile.js"; +import { readBoundedFileBytes } from "../process/BoundedFileBytes.js"; + +// Managed static inspection retains the complete PE snapshot in memory. +export const MAX_MANAGED_SNAPSHOT_BYTES = 128 * 1024 * 1024; + +interface ManagedSourceObservation { + readonly byteLength: number; + readonly sha256: string; + readonly bytes?: Buffer; +} + +interface ManagedSnapshot extends ManagedSourceObservation { + readonly bytes: Buffer; +} + +const managedSnapshotCapacityError = ( + operation: string, +): AnalysisResourceConstraintError => + new AnalysisResourceConstraintError( + operation, + "memory", + "Managed static inspection requires an eagerly retained PE snapshot within its input byte budget.", + { max_snapshot_bytes: MAX_MANAGED_SNAPSHOT_BYTES }, + ); + +export const readManagedSnapshot = async ( + path: string, + operation: string, + options: RegularFileReadOptions = {}, +): Promise => { + return readManagedFile( + path, + operation, + async (handle, metadata) => { + const signal = options.signal; + if (metadata.size > MAX_MANAGED_SNAPSHOT_BYTES) + throw managedSnapshotCapacityError(operation); + const bytes = await readBoundedFileBytes( + handle, + MAX_MANAGED_SNAPSHOT_BYTES, + signal, + ); + if (bytes === undefined) throw managedSnapshotCapacityError(operation); + signal?.throwIfAborted(); + return { + byteLength: bytes.length, + sha256: createHash("sha256").update(bytes).digest("hex"), + bytes, + }; + }, + options, + ); +}; + +export const hashManagedSource = async ( + path: string, + operation: string, + options: RegularFileReadOptions = {}, +): Promise => + readManagedFile( + path, + operation, + async (handle, metadata) => { + const signal = options.signal; + if (metadata.size > MAX_MANAGED_SNAPSHOT_BYTES) + throw managedSnapshotCapacityError(operation); + const digest = createHash("sha256"); + let byteLength = 0; + const stream = handle.createReadStream({ + autoClose: false, + ...(signal === undefined ? {} : { signal }), + }); + for await (const chunk of stream) { + signal?.throwIfAborted(); + if (!Buffer.isBuffer(chunk)) + throw new TypeError("Managed source stream returned non-buffer data"); + if (chunk.length > MAX_MANAGED_SNAPSHOT_BYTES - byteLength) + throw managedSnapshotCapacityError(operation); + byteLength += chunk.length; + digest.update(chunk); + } + return { byteLength, sha256: digest.digest("hex") }; + }, + options, + ); + +const readManagedFile = ( + path: string, + operation: string, + read: (handle: FileHandle, metadata: Stats) => Promise, + options: RegularFileReadOptions, +): Promise => + withRegularFile(path, read, options).catch((cause: unknown) => { + throw normalizeManagedReadFailure(cause, path, operation, options.signal); + }); + +/** Keep cleanup ownership and the original typed read failure at this boundary. */ +const normalizeManagedReadFailure = ( + cause: unknown, + fallbackPath: string, + operation: string, + signal?: AbortSignal, +): unknown => { + const cleanupError = managedCleanupError( + cause, + fallbackPath, + operation, + signal, + ); + if (cleanupError !== undefined) return cleanupError; + return normalizeReadFailure(cause, fallbackPath, operation, signal); +}; + +/** Project cleanup failures owned by managed file reads or their shared scope. */ +export const managedCleanupError = ( + cause: unknown, + fallbackPath: string, + operation: string, + signal?: AbortSignal, +): AnalysisError | undefined => { + if (cause instanceof RegularFileCleanupFailure) { + const cleanup = new ProviderCleanupError( + MANAGED_STATIC_PROVIDER.id, + [cause.path], + { reason: "A managed input file handle could not be closed" }, + { cause, operation }, + ); + const failure = + cause.outcome.kind === "failed" + ? normalizeReadFailure( + cause.outcome.cause, + cause.path, + operation, + signal, + ) + : undefined; + return failure instanceof AnalysisError + ? analysisErrorWithCleanupFailure(failure, cleanup, operation) + : cleanup; + } + if (cause instanceof ArtifactReaderFailure && cause.cleanup !== undefined) + return new ProviderCleanupError( + MANAGED_STATIC_PROVIDER.id, + cause.cleanup.resources.length > 0 + ? cause.cleanup.resources + : [fallbackPath], + { reason: cause.cleanup.reason }, + { cause, operation }, + ); + return undefined; +}; + +const normalizeReadFailure = ( + cause: unknown, + path: string, + operation: string, + signal?: AbortSignal, +): unknown => + cause instanceof RegularFileChangedError + ? new EvidenceIntegrityError( + `Managed source changed while ${operation} was reading ${path}.`, + { cause }, + ) + : cause instanceof AnalysisError + ? cause + : (classifyBinaryTargetFilesystemFailure(path, cause) ?? + (signal?.aborted === true + ? new AnalysisCancelledError(operation, { cause }) + : cause)); diff --git a/src/dotnet/ManagedStaticProvider.ts b/src/dotnet/ManagedStaticProvider.ts index e3827c346..ba09a1939 100644 --- a/src/dotnet/ManagedStaticProvider.ts +++ b/src/dotnet/ManagedStaticProvider.ts @@ -1,5 +1,3 @@ -import { createHash } from "node:crypto"; - import { createAnalysisExecution, type AnalysisClient, @@ -9,6 +7,8 @@ import { type ExecutionOptions, type ProviderIdentity, } from "../application/AnalysisProvider.js"; +import { ArtifactReaderFailure } from "../artifacts/ArtifactReader.js"; +import { ArtifactResourceScope } from "../artifacts/ArtifactResourceScope.js"; import { managedStaticCapabilities } from "./ManagedStaticProviderMetadata.js"; import { MANAGED_STATIC_PROVIDER } from "../application/InvestigationProviders.js"; import { @@ -22,10 +22,10 @@ import type { BinaryTarget } from "../domain/binaryTargetTypes.js"; import { AnalysisCancelledError, AnalysisCapabilityUnavailableError, - AnalysisResourceConstraintError, } from "../domain/analysisErrorCore.js"; import { EvidenceIntegrityError } from "../domain/evidenceErrors.js"; import { ProviderAdapterError } from "../domain/providerAdapterError.js"; +import { ProviderCleanupError } from "../domain/providerCleanupError.js"; import type { EvidenceLocation } from "../domain/evidence.js"; import type { JsonValue } from "../domain/jsonValue.js"; import type { @@ -37,23 +37,12 @@ import { err, ok, type Result } from "../domain/result.js"; import { inspectManagedArtifactBytes } from "./ManagedArtifactInspector.js"; import { inspectManagedMembersBytes } from "./ManagedMemberInspector.js"; import { inspectManagedNativeBoundariesBytes } from "./ManagedNativeBoundaryInspector.js"; - -import { openRegularFile } from "../filesystem/RegularFile.js"; -import { readBoundedFileBytes } from "../process/BoundedFileBytes.js"; - -// This provider eagerly retains the full PE snapshot. Keep its input resource -// policy separate from decoded metadata/output capacity; it is not a PE format limit. -const MAX_MANAGED_SNAPSHOT_BYTES = 128 * 1024 * 1024; - -const snapshotCapacityError = ( - operation: string, -): AnalysisResourceConstraintError => - new AnalysisResourceConstraintError( - operation, - "memory", - "Managed static inspection requires an eagerly retained PE snapshot within its input byte budget.", - { max_snapshot_bytes: MAX_MANAGED_SNAPSHOT_BYTES }, - ); +import { RegularFileCleanupFailure } from "../application/RegularFileRead.js"; +import { + hashManagedSource, + managedCleanupError, + readManagedSnapshot, +} from "./ManagedSnapshot.js"; /** Execution-free managed PE/CLI auxiliary provider. */ export class ManagedStaticProvider implements AnalysisProvider { @@ -75,6 +64,7 @@ export class ManagedStaticProvider implements AnalysisProvider { class ManagedStaticClient implements AnalysisClient { #snapshotBytes: Buffer | undefined; + readonly #resources = new ArtifactResourceScope(); constructor(private readonly target: BinaryTarget) {} @@ -107,16 +97,14 @@ class ManagedStaticClient implements AnalysisClient { const snapshot = this.#snapshotBytes; const observed = snapshot === undefined - ? await readManagedSnapshot( - this.target.path, - operation, - options?.signal, - ) - : await hashManagedSource( - this.target.path, - operation, - options?.signal, - ); + ? await readManagedSnapshot(this.target.path, operation, { + signal: options?.signal, + resources: this.#resources, + }) + : await hashManagedSource(this.target.path, operation, { + signal: options?.signal, + resources: this.#resources, + }); if (observed.sha256 !== this.target.sha256) return err( new EvidenceIntegrityError( @@ -142,9 +130,11 @@ class ManagedStaticClient implements AnalysisClient { }), ); } catch (cause: unknown) { + if (isCleanupFailure(cause)) + return err(this.#cleanupError(operation, cause)); + if (cause instanceof AnalysisError) return err(cause); if (options?.signal?.aborted === true) return err(new AnalysisCancelledError(operation)); - if (cause instanceof AnalysisError) return err(cause); return err( new ProviderAdapterError(MANAGED_STATIC_PROVIDER.id, operation, { cause, @@ -153,74 +143,37 @@ class ManagedStaticClient implements AnalysisClient { } } - close(): Promise> { + async close(): Promise> { this.#snapshotBytes = undefined; - return Promise.resolve(ok(null)); - } -} - -interface ManagedSourceObservation { - readonly byteLength: number; - readonly sha256: string; - readonly bytes?: Buffer; -} - -const readManagedSnapshot = async ( - path: string, - operation: string, - signal?: AbortSignal, -): Promise => { - const handle = await openRegularFile(path, { symlinks: "follow", signal }); - try { - const metadata = await handle.stat(); - if (metadata.size > MAX_MANAGED_SNAPSHOT_BYTES) - throw snapshotCapacityError(operation); - const bytes = await readBoundedFileBytes( - handle, - MAX_MANAGED_SNAPSHOT_BYTES, - signal, - ); - if (bytes === undefined) throw snapshotCapacityError(operation); - signal?.throwIfAborted(); - return { - byteLength: bytes.length, - sha256: createHash("sha256").update(bytes).digest("hex"), - bytes, - }; - } finally { - await handle.close(); - } -}; - -const hashManagedSource = async ( - path: string, - operation: string, - signal?: AbortSignal, -): Promise => { - const handle = await openRegularFile(path, { symlinks: "follow", signal }); - try { - if ((await handle.stat()).size > MAX_MANAGED_SNAPSHOT_BYTES) - throw snapshotCapacityError(operation); - const digest = createHash("sha256"); - let byteLength = 0; - const stream = handle.createReadStream({ - autoClose: false, - ...(signal === undefined ? {} : { signal }), - }); - for await (const chunk of stream) { - signal?.throwIfAborted(); - if (!Buffer.isBuffer(chunk)) - throw new TypeError("Managed source stream returned non-buffer data"); - if (chunk.length > MAX_MANAGED_SNAPSHOT_BYTES - byteLength) - throw snapshotCapacityError(operation); - byteLength += chunk.length; - digest.update(chunk); + try { + await this.#resources.close(); + return ok(null); + } catch (cause: unknown) { + return err(this.#cleanupError("close", cause)); } - return { byteLength, sha256: digest.digest("hex") }; - } finally { - await handle.close(); } -}; + + #cleanupError(operation: string, cause: unknown): ProviderCleanupError { + const failure = managedCleanupError(cause, this.target.path, operation); + if (failure instanceof ProviderCleanupError) return failure; + const cleanup = + cause instanceof ArtifactReaderFailure ? cause.cleanup : undefined; + return new ProviderCleanupError( + MANAGED_STATIC_PROVIDER.id, + cleanup?.resources ?? [this.target.path], + { + reason: + cleanup?.reason ?? + (cause instanceof Error ? cause.message : String(cause)), + }, + { cause, operation }, + ); + } +} + +const isCleanupFailure = (cause: unknown): boolean => + cause instanceof RegularFileCleanupFailure || + (cause instanceof ArtifactReaderFailure && cause.cleanup !== undefined); const isManagedOperation = ( operation: AnalysisOperation, diff --git a/src/hopper/HopperTargetLease.test.ts b/src/hopper/HopperTargetLease.test.ts index 7c7bd03ae..2c72909fa 100644 --- a/src/hopper/HopperTargetLease.test.ts +++ b/src/hopper/HopperTargetLease.test.ts @@ -1,8 +1,17 @@ import { execFile } from "node:child_process"; import { once } from "node:events"; -import { lstat, mkdir, mkdtemp, readdir, rm, rmdir } from "node:fs/promises"; +import { + lstat, + mkdir, + mkdtemp, + readdir, + rm, + rmdir, + symlink, + writeFile, +} from "node:fs/promises"; import { createServer, type Socket } from "node:net"; -import { join } from "node:path"; +import { dirname, join } from "node:path"; import { promisify } from "node:util"; import { afterEach, describe, expect, it } from "vitest"; @@ -25,8 +34,9 @@ afterEach(async () => { describe("Hopper target leases", () => { it("reports the owning REA session for a duplicate target and profile", async () => { const directory = await temporaryDirectory(); + const targetPath = await temporaryTarget(); const first = await acquireHopperTargetLease({ - ...leaseInput, + ...leaseInput(targetPath), directory, runId: "session-first", }); @@ -34,7 +44,7 @@ describe("Hopper target leases", () => { if (!first.acquired) return; const duplicate = await acquireHopperTargetLease({ - ...leaseInput, + ...leaseInput(targetPath), directory, runId: "session-second", }); @@ -45,7 +55,7 @@ describe("Hopper target leases", () => { await first.lease.release(); const reopened = await acquireHopperTargetLease({ - ...leaseInput, + ...leaseInput(targetPath), directory, runId: "session-third", }); @@ -55,13 +65,14 @@ describe("Hopper target leases", () => { it("keeps different Hopper profiles independent", async () => { const directory = await temporaryDirectory(); + const targetPath = await temporaryTarget(); const first = await acquireHopperTargetLease({ - ...leaseInput, + ...leaseInput(targetPath), directory, runId: "session-one", }); const second = await acquireHopperTargetLease({ - ...leaseInput, + ...leaseInput(targetPath), directory, loaderArgs: ["--aarch64"], runId: "session-two", @@ -71,6 +82,63 @@ describe("Hopper target leases", () => { if (first.acquired) await first.lease.release(); if (second.acquired) await second.lease.release(); }); + + it.skipIf(process.platform === "win32")( + "shares one lease for symlink aliases of the same target", + async () => { + const directory = await temporaryDirectory(); + const targetPath = await temporaryTarget(); + const alias = join(dirname(targetPath), "sample-alias"); + await symlink(targetPath, alias); + const first = await acquireHopperTargetLease({ + ...leaseInput(targetPath), + directory, + runId: "canonical-owner", + }); + expect(first.acquired).toBe(true); + if (!first.acquired) return; + try { + expect( + await acquireHopperTargetLease({ + ...leaseInput(alias), + directory, + runId: "alias-request", + }), + ).toMatchObject({ + acquired: false, + owner: { runId: "canonical-owner" }, + }); + } finally { + await first.lease.release(); + } + }, + ); + + it.each(["missing", "not-directory"] as const)( + "does not create a lease endpoint when target canonicalization fails for %s", + async (failure) => { + const directory = await temporaryDirectory(); + const parent = await temporaryDirectory(); + const targetPath = + failure === "missing" + ? join(parent, "missing-target") + : join(await temporaryTarget(parent), "child"); + await expect( + acquireHopperTargetLease({ + ...leaseInput(targetPath), + directory, + runId: "unresolvable-target", + }), + ).rejects.toMatchObject({ + _tag: "HopperStartError", + userMessage: expect.stringContaining("canonical path"), + cause: expect.objectContaining({ + code: failure === "missing" ? "ENOENT" : "ENOTDIR", + }), + }); + expect(await readdir(directory)).toEqual([]); + }, + ); }); describe("Linux Hopper application leases", () => { @@ -212,10 +280,17 @@ const releasedApplicationSocket = async ( return join(directory, name); }; -const leaseInput = { - targetPath: "/tmp/sample-binary", +const leaseInput = (targetPath: string) => ({ + targetPath, targetKind: "executable" as const, loaderArgs: [], +}); + +const temporaryTarget = async (parent?: string): Promise => { + const directory = parent ?? (await temporaryDirectory()); + const targetPath = join(directory, "sample-binary"); + await writeFile(targetPath, "admitted target bytes"); + return targetPath; }; const temporaryDirectory = async (): Promise => { diff --git a/src/hopper/HopperTargetLease.ts b/src/hopper/HopperTargetLease.ts index af65b729f..150700267 100644 --- a/src/hopper/HopperTargetLease.ts +++ b/src/hopper/HopperTargetLease.ts @@ -6,7 +6,7 @@ import { type Server, type Socket, } from "node:net"; -import { join, resolve } from "node:path"; +import { join } from "node:path"; import { HopperStartError } from "../domain/hopperErrors.js"; import { safeParseJson } from "../domain/safeJson.js"; @@ -37,16 +37,17 @@ export const acquireHopperTargetLease = async (input: { readonly runId: string; readonly directory?: string; }): Promise => { - // The canonical path only derives the lease key; it never authorizes access. - // Common expected `realpath` failures include a missing target or path - // component (ENOENT, ENOTDIR), an unreadable component (EACCES), or a - // symlink loop (ELOOP). This catch also falls back for every other error, - // which may hide a real filesystem problem. The lexical `resolve` fallback - // still yields a deterministic key, but aliases may take separate leases - // whenever `realpath` cannot resolve them. - const targetPath = await realpath(input.targetPath).catch(() => - resolve(input.targetPath), - ); + // Canonicalization is required for lease identity. A lexical fallback could + // let two aliases reserve independent sockets for the same Hopper document. + let targetPath: string; + try { + targetPath = await realpath(input.targetPath); + } catch (cause: unknown) { + throw new HopperStartError({ + cause, + userMessage: `REA could not resolve Hopper target ${JSON.stringify(input.targetPath)} to a canonical path before reserving the document. Confirm that the target exists and its path is accessible.`, + }); + } return acquireLease({ ...input, identity: { diff --git a/tests/boundary/filesystem/setupSkillCleanupOwnership.test.ts b/tests/boundary/filesystem/setupSkillCleanupOwnership.test.ts index 18003b039..dfb472972 100644 --- a/tests/boundary/filesystem/setupSkillCleanupOwnership.test.ts +++ b/tests/boundary/filesystem/setupSkillCleanupOwnership.test.ts @@ -19,6 +19,7 @@ import { readSkillFile, skillDestinations, } from "../../../src/application/SetupSkill.js"; +import { RegularFileCleanupFailure } from "../../../src/application/RegularFileRead.js"; import { systemSetupHost } from "../../../src/application/SetupHost.js"; import { runUninstall, @@ -67,7 +68,7 @@ const failFirstCloses = (path: string) => { }; describe("skill regular-file cleanup ownership", () => { - it("keeps setup skill reads owned until setup host disposal", async () => { + it("retains a failed setup skill read until setup host disposal", async () => { const home = await createTestTempDirectory("rea-setup-skill-close-"); const [destination] = skillDestinations(home, []); if (destination === undefined) throw new Error("Shared skill root missing"); @@ -81,7 +82,18 @@ describe("skill regular-file cleanup ownership", () => { ); try { - expect(await host.skillNeedsInstall([])).toBe(true); + const failure = await host.skillNeedsInstall([]).then( + () => undefined, + (cause: unknown) => cause, + ); + expect(failure).toBeInstanceOf(RegularFileCleanupFailure); + expect(failure).toMatchObject({ + path: manifest, + outcome: { kind: "completed" }, + cleanupCause: expect.objectContaining({ + message: "test holds the skill handle open", + }), + }); expect(close.attempts.length).toBeGreaterThan(0); expect(new Set(close.attempts).size).toBe(1); const attemptsBeforeClose = close.attempts.length; @@ -147,7 +159,7 @@ describe("skill regular-file cleanup ownership", () => { }); describe("skill cleanup diagnostics", () => { - it("preserves a doctor report and cleanup diagnostic when host close still fails", async () => { + it("preserves read and host cleanup failures when doctor identity cannot complete", async () => { const home = await createTestTempDirectory("rea-doctor-skill-close-"); const [destination] = skillDestinations(home, []); if (destination === undefined) throw new Error("Shared skill root missing"); @@ -172,15 +184,23 @@ describe("skill cleanup diagnostics", () => { }); try { - const report = await runDoctorOwned(undefined, host, { skill: true }); - - expect(report.healthy).toBe(false); - expect(report.identity?.skill.installed_version).toBeNull(); - expect(report.checks).toContainEqual( + const failure = await runDoctorOwned(undefined, host, { + skill: true, + }).then( + () => undefined, + (cause: unknown) => cause, + ); + expect(failure).toBeInstanceOf(AggregateError); + if (!(failure instanceof AggregateError)) + throw new Error("Doctor cleanup should preserve both failures"); + expect(failure.errors[0]).toBeInstanceOf(RegularFileCleanupFailure); + expect(failure.errors[0]).toMatchObject({ + path: manifest, + outcome: { kind: "completed" }, + }); + expect(failure.errors[1]).toEqual( expect.objectContaining({ - name: "doctor-resource-cleanup", - ok: false, - detail: expect.stringContaining(manifest), + message: expect.stringContaining(manifest), }), ); expect(close.attempts.length).toBeGreaterThan(0); diff --git a/tests/boundary/providers/managed/managedMemberComparison.test.ts b/tests/boundary/providers/managed/managedMemberComparison.test.ts index 9b2ccee02..402f2c122 100644 --- a/tests/boundary/providers/managed/managedMemberComparison.test.ts +++ b/tests/boundary/providers/managed/managedMemberComparison.test.ts @@ -1,9 +1,11 @@ -import { readFile, writeFile } from "node:fs/promises"; +import { truncate, writeFile } from "node:fs/promises"; import { join } from "node:path"; -import { describe, expect, it } from "vitest"; +import { describe, expect, it, vi } from "vitest"; import { createTestTempDirectory } from "../../../fixtures/temporaryDirectory.js"; +import { ArtifactResourceScope } from "../../../../src/artifacts/ArtifactResourceScope.js"; +import { OwnedFileHandle } from "../../../../src/filesystem/OwnedFileHandle.js"; import { compareManagedMembersEvidenceValidated, @@ -19,6 +21,11 @@ import { compareManagedMembersInputSchema } from "../../../../src/domain/managed import { inspectManagedMembersBytes } from "../../../../src/dotnet/ManagedMemberInspector.js"; import { managedPeFixtureTarget } from "../../../../src/dotnet/ManagedPe.fixture.js"; import { buildManagedPeFixture } from "../../../../src/dotnet/ManagedPe.fixture.js"; +import { + MAX_MANAGED_SNAPSHOT_BYTES, + readManagedSnapshot, +} from "../../../../src/dotnet/ManagedSnapshot.js"; +import * as boundedFileBytes from "../../../../src/process/BoundedFileBytes.js"; it.each([ ["accessibility", 6, 0x0011], @@ -184,6 +191,14 @@ describe("managed member comparison path workflow", () => { confidence: "inferred", authority: "analyst-inference", }); + expect(result.value.parameters).toMatchObject({ + left_path: leftPath, + right_path: rightPath, + }); + expect(result.value.locations).toEqual([ + { kind: "artifact-path", path: leftPath }, + { kind: "artifact-path", path: rightPath }, + ]); expect( managedMemberComparisonResultSchema.parse(result.value.normalized_result) .matching.exact_il_signature, @@ -205,7 +220,179 @@ describe("managed member comparison path workflow", () => { details: { path: expect.stringContaining("missing.dll") }, }); }); +}); +describe("managed comparison post-admission read failures", () => { + it.each([ + ["left", "disappearance", "ENOENT"], + ["left", "permission denial", "EACCES"], + ["right", "disappearance", "ENOENT"], + ["right", "permission denial", "EACCES"], + ])( + "classifies a %s-side %s during the post-resolution read", + async (side, _name, code) => { + const directory = await createTestTempDirectory( + "rea-managed-read-failure-", + ); + const leftPath = join(directory, "left.dll"); + const rightPath = join(directory, "right.dll"); + await writeFile(leftPath, buildManagedPeFixture()); + await writeFile(rightPath, buildManagedPeFixture()); + + const result = await compareManagedMemberPaths( + { leftPath, rightPath }, + { + resolveTarget: parseBinaryTarget, + readSnapshot: async (path, operation, options) => { + if (path === (side === "left" ? leftPath : rightPath)) { + const failure = Object.assign(new Error(`read failed: ${code}`), { + code, + }); + throw failure; + } + return readManagedSnapshot(path, operation, options); + }, + }, + ); + + expect(result.ok).toBe(false); + if (result.ok) return; + expect(result.error._tag).toBe("BinaryTargetError"); + expect(projectAnalysisError(result.error)).toMatchObject({ + details: { path: side === "left" ? leftPath : rightPath }, + }); + if (side === "right") + expect(result.error.partialObservation).toMatchObject({ + operation: "inspect_managed_members", + subject: { + local_path: leftPath, + digest: { sha256: expect.stringMatching(/^[0-9a-f]{64}$/u) }, + }, + }); + else expect(result.error.partialObservation).toBeUndefined(); + if (code === "EACCES") + expect(projectAnalysisError(result.error)).toMatchObject({ + code: "access_denied", + }); + }, + ); +}); + +describe("managed comparison snapshot admission and cleanup", () => { + it("rejects a sparse oversized snapshot through the default reader before reading it", async () => { + const directory = await createTestTempDirectory( + "rea-managed-oversized-snapshot-", + ); + const leftPath = join(directory, "oversized.dll"); + const rightPath = join(directory, "right.dll"); + const fixture = buildManagedPeFixture(); + await writeFile(leftPath, Buffer.alloc(0)); + await truncate(leftPath, MAX_MANAGED_SNAPSHOT_BYTES + 1); + await writeFile(rightPath, fixture); + const template = managedPeFixtureTarget(fixture); + const read = vi.spyOn(boundedFileBytes, "readBoundedFileBytes"); + try { + const result = await compareManagedMemberPaths( + { leftPath, rightPath }, + { + resolveTarget: async (path) => ({ + ok: true, + value: { ...template, path }, + }), + }, + ); + + expect(result.ok).toBe(false); + if (result.ok) return; + expect(result.error).toMatchObject({ + _tag: "AnalysisResourceConstraintError", + operation: "compare_managed_members", + reportedLimits: { + max_snapshot_bytes: MAX_MANAGED_SNAPSHOT_BYTES, + }, + }); + expect(read).not.toHaveBeenCalled(); + } finally { + read.mockRestore(); + } + }); + + it("retries a transient snapshot close failure through the same resource owner", async () => { + const directory = await createTestTempDirectory( + "rea-managed-compare-close-", + ); + const leftPath = join(directory, "left.dll"); + const rightPath = join(directory, "right.dll"); + await writeFile(leftPath, buildManagedPeFixture()); + await writeFile(rightPath, buildManagedPeFixture()); + const resources = new ArtifactResourceScope(); + const originalClose = OwnedFileHandle.prototype.close; + const owners: OwnedFileHandle[] = []; + let attempts = 0; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async function (this: OwnedFileHandle) { + owners.push(this); + attempts += 1; + if (attempts === 1) throw new Error("injected transient close failure"); + await originalClose.call(this); + }); + try { + const result = await compareManagedMemberPaths( + { leftPath, rightPath }, + {}, + resources, + ); + + expect(result.ok).toBe(true); + expect(owners[0]).toBe(owners[1]); + expect(attempts).toBe(3); + } finally { + close.mockRestore(); + await resources.close(); + } + }); + + it("projects persistent snapshot cleanup failure and retains its exact owner", async () => { + const directory = await createTestTempDirectory( + "rea-managed-compare-cleanup-", + ); + const leftPath = join(directory, "left.dll"); + const rightPath = join(directory, "right.dll"); + await writeFile(leftPath, buildManagedPeFixture()); + await writeFile(rightPath, buildManagedPeFixture()); + const resources = new ArtifactResourceScope(); + const cleanupCause = new Error("injected persistent close failure"); + const owners: OwnedFileHandle[] = []; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async function (this: OwnedFileHandle) { + owners.push(this); + throw cleanupCause; + }); + let result: Awaited>; + try { + result = await compareManagedMemberPaths( + { leftPath, rightPath }, + {}, + resources, + ); + expect(result.ok).toBe(false); + if (result.ok) return; + expect(projectAnalysisError(result.error)).toMatchObject({ + code: "cleanup_incomplete", + details: { cleanup: "incomplete", resources: [leftPath] }, + }); + expect(owners[0]).toBe(owners[1]); + expect(owners[0]?.handle.fd).toBeGreaterThanOrEqual(0); + } finally { + close.mockRestore(); + await resources.close(); + } + }); +}); + +describe("managed comparison target identity", () => { it("rejects a file that changes after target identity is resolved", async () => { const directory = await createTestTempDirectory( "rea-managed-compare-race-", @@ -227,7 +414,6 @@ describe("managed member comparison path workflow", () => { await writeFile(path, replacement); return target; }, - readBytes: (path) => readFile(path), }, ); diff --git a/tests/boundary/providers/managed/managedStaticProvider.test.ts b/tests/boundary/providers/managed/managedStaticProvider.test.ts index 1d1a750c3..eaabc9c30 100644 --- a/tests/boundary/providers/managed/managedStaticProvider.test.ts +++ b/tests/boundary/providers/managed/managedStaticProvider.test.ts @@ -1,8 +1,8 @@ import { createHash } from "node:crypto"; -import { writeFile } from "node:fs/promises"; +import { truncate, writeFile } from "node:fs/promises"; import { join } from "node:path"; -import { describe, expect, it } from "vitest"; +import { describe, expect, it, vi } from "vitest"; import { createTestTempDirectory } from "../../../fixtures/temporaryDirectory.js"; @@ -15,6 +15,180 @@ import { } from "../../../../src/domain/managed/managedArtifact.js"; import { ManagedStaticProvider } from "../../../../src/dotnet/ManagedStaticProvider.js"; import { buildManagedPeFixture } from "../../../../src/dotnet/ManagedPe.fixture.js"; +import { + MAX_MANAGED_SNAPSHOT_BYTES, + readManagedSnapshot, +} from "../../../../src/dotnet/ManagedSnapshot.js"; +import { OwnedFileHandle } from "../../../../src/filesystem/OwnedFileHandle.js"; +import { ArtifactResourceScope } from "../../../../src/artifacts/ArtifactResourceScope.js"; +import { RegularFileCleanupFailure } from "../../../../src/application/RegularFileRead.js"; +import { projectAnalysisError } from "../../../../src/domain/analysisErrorProjection.js"; +import * as boundedFileBytes from "../../../../src/process/BoundedFileBytes.js"; + +describe("managed static snapshot capacity failure", () => { + it("preserves a typed capacity failure when closing the admitted file also fails", async () => { + const directory = await createTestTempDirectory( + "rea-managed-capacity-cleanup-", + ); + const path = join(directory, "sparse.exe"); + await writeFile(path, Buffer.alloc(0)); + await truncate(path, MAX_MANAGED_SNAPSHOT_BYTES + 1); + const resources = new ArtifactResourceScope(); + const originalClose = OwnedFileHandle.prototype.close; + let permitClose = false; + const owners: OwnedFileHandle[] = []; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async function (this: OwnedFileHandle) { + owners.push(this); + if (!permitClose) throw new Error("fixture handle close failure"); + await originalClose.call(this); + }); + try { + const failure = await readManagedSnapshot( + path, + "inspect_managed_artifact", + { + resources, + }, + ).catch((cause: unknown) => cause); + + expect(failure).toMatchObject({ + cleanupIncomplete: true, + cleanupResources: [path], + diagnostics: { primary_error: { code: "resource_constraint" } }, + }); + expect(owners.length).toBeGreaterThan(0); + expect(owners.every((owner) => owner === owners[0])).toBe(true); + + permitClose = true; + await resources.close(); + } finally { + permitClose = true; + await resources.close(); + close.mockRestore(); + } + }); +}); + +describe("managed static snapshot cancellation", () => { + it("preserves cancellation when snapshot cleanup also fails", async () => { + const directory = await createTestTempDirectory( + "rea-managed-cancel-cleanup-", + ); + const path = join(directory, "fixture.exe"); + await writeFile(path, buildManagedPeFixture()); + const parsed = await parseBinaryTarget(path); + if (!parsed.ok) throw parsed.error; + const client = new ManagedStaticProvider().createClient(parsed.value); + const controller = new AbortController(); + const originalRead = boundedFileBytes.readBoundedFileBytes; + const read = vi + .spyOn(boundedFileBytes, "readBoundedFileBytes") + .mockImplementation(async (...arguments_) => { + controller.abort(new Error("fixture cancellation")); + return originalRead(...arguments_); + }); + const originalClose = OwnedFileHandle.prototype.close; + let permitClose = false; + const owners: OwnedFileHandle[] = []; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async function (this: OwnedFileHandle) { + owners.push(this); + if (!permitClose) throw new Error("fixture handle close failure"); + await originalClose.call(this); + }); + + try { + const result = await client.execute( + "inspect_managed_artifact", + {}, + { signal: controller.signal }, + ); + expect(result.ok).toBe(false); + if (result.ok) return; + expect(projectAnalysisError(result.error)).toMatchObject({ + code: "cleanup_incomplete", + details: { + diagnostics: { + primary_error: { code: "cancelled" }, + }, + }, + }); + expect(result.error.cause).toBeInstanceOf(AggregateError); + if (!(result.error.cause instanceof AggregateError)) return; + const cleanupError = result.error.cause.errors[1]; + expect(cleanupError).toBeInstanceOf(Error); + if (!(cleanupError instanceof Error)) return; + expect(cleanupError.cause).toBeInstanceOf(RegularFileCleanupFailure); + if (!(cleanupError.cause instanceof RegularFileCleanupFailure)) return; + expect(cleanupError.cause.owner).toBe(owners[0]); + expect(owners[0]?.handle.fd).toBeGreaterThanOrEqual(0); + + permitClose = true; + expect(await client.close()).toMatchObject({ ok: true }); + expect(owners.every((owner) => owner === owners[0])).toBe(true); + } finally { + permitClose = true; + await client.close(); + close.mockRestore(); + read.mockRestore(); + } + }); +}); + +describe("managed static file ownership", () => { + it("retains the same failed file owner, blocks reads, and retries it on client close", async () => { + const directory = await createTestTempDirectory("rea-managed-close-"); + const bytes = buildManagedPeFixture(); + const path = join(directory, "fixture.exe"); + await writeFile(path, bytes); + const parsed = await parseBinaryTarget(path); + if (!parsed.ok) throw parsed.error; + const client = new ManagedStaticProvider().createClient(parsed.value); + const originalClose = OwnedFileHandle.prototype.close; + const owners: OwnedFileHandle[] = []; + let permitClose = false; + const close = vi + .spyOn(OwnedFileHandle.prototype, "close") + .mockImplementation(async function (this: OwnedFileHandle) { + owners.push(this); + if (!permitClose) throw new Error("fixture handle close failure"); + await originalClose.call(this); + }); + try { + const failed = await client.execute("inspect_managed_artifact", {}); + expect(failed).toMatchObject({ + ok: false, + error: { + cleanupIncomplete: true, + cleanupResources: [path], + }, + }); + + const blocked = await client.execute("inspect_managed_artifact", {}); + expect(blocked).toMatchObject({ + ok: false, + error: { + cleanupIncomplete: true, + cleanupResources: [path], + }, + }); + expect(owners).toHaveLength(3); + expect(owners.every((owner) => owner === owners[0])).toBe(true); + + permitClose = true; + expect(await client.close()).toMatchObject({ ok: true }); + expect(owners).toHaveLength(4); + expect(owners.every((owner) => owner === owners[0])).toBe(true); + } finally { + permitClose = true; + await client.close(); + close.mockRestore(); + } + }); +}); describe("managed static provider path boundary", () => { it("executes as a read-only auxiliary provider with digest, cancellation, and format boundaries", async () => { diff --git a/tests/composition/directAnalysisCleanup.test.ts b/tests/composition/directAnalysisCleanup.test.ts index fcbdbddcb..51992d069 100644 --- a/tests/composition/directAnalysisCleanup.test.ts +++ b/tests/composition/directAnalysisCleanup.test.ts @@ -219,7 +219,11 @@ describe("managed one-shot cleanup outcomes", () => { ); expect(result.ok).toBe(false); if (result.ok) return; - expect(result.error.cause).toBe(primaryError); + expect(result.error.cause).toBeInstanceOf(AggregateError); + expect(result.error.cause).toMatchObject({ + cause: primaryError, + errors: [primaryError, cleanupError], + }); expect(projectAnalysisError(result.error)).toMatchObject({ code: "cleanup_incomplete", details: { From 9b780c47bca039939dd5f73b78541f3ea566a7dd Mon Sep 17 00:00:00 2001 From: xin zhuang <65798732+1052326311@users.noreply.github.com> Date: Mon, 12 Oct 2026 14:56:51 +0800 Subject: [PATCH 29/44] fix(browser): isolate script URLs with empty query or fragment (#2074) --- src/domain/webScriptExportPlan.test.ts | 3 ++ src/domain/webScriptExportPlan.ts | 5 ++- .../filesystem/webScriptExport.test.ts | 40 +++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/domain/webScriptExportPlan.test.ts b/src/domain/webScriptExportPlan.test.ts index f0af5cddd..05b7965be 100644 --- a/src/domain/webScriptExportPlan.test.ts +++ b/src/domain/webScriptExportPlan.test.ts @@ -73,6 +73,9 @@ describe("captured script path projection", () => { it.each([ "", "https://a.test/main.js?v=2", + "https://a.test/main.js?", + "https://a.test/main.js#", + "https://a.test/main.js?#", "https://a.test/main.js#variant", "data:text/javascript,export{}", "https://a.test/%2fescape.js", diff --git a/src/domain/webScriptExportPlan.ts b/src/domain/webScriptExportPlan.ts index e4c0aed4b..e8b129c93 100644 --- a/src/domain/webScriptExportPlan.ts +++ b/src/domain/webScriptExportPlan.ts @@ -94,8 +94,9 @@ const candidatePath = (script: CapturedWebScript): CandidatePath => { return { path: `origins/${hash(url.origin)}/${parts.join("/")}`, reason: - url.search !== "" || - url.hash !== "" || + // URL.search/hash collapse absent and explicitly empty components. + url.href.includes("?") || + url.href.includes("#") || url.username !== "" || url.password !== "" ? "URL query, fragment, or credentials cannot select a canonical local module." diff --git a/tests/boundary/filesystem/webScriptExport.test.ts b/tests/boundary/filesystem/webScriptExport.test.ts index c624ba7a2..998bbccf2 100644 --- a/tests/boundary/filesystem/webScriptExport.test.ts +++ b/tests/boundary/filesystem/webScriptExport.test.ts @@ -74,6 +74,46 @@ const setup = async (capture: unknown = scriptCaptureEvidenceFixture()) => { return { root, input, resources }; }; +describe("empty URL component publication", () => { + it("isolates empty query and fragment identities while retaining durable script bytes", async () => { + const scripts = [ + { + url: "https://fixture.test/ordinary.js", + bytes: Buffer.from("export const ordinary = 1;"), + }, + { + url: "https://fixture.test/query.js?", + bytes: Buffer.from("export const query = 2;"), + }, + { + url: "https://fixture.test/fragment.js#", + bytes: Buffer.from("export const fragment = 3;"), + }, + ]; + const { input, resources } = await setup(scriptScenarioFixture(scripts)); + const exported = await exportWebScripts(input, resources); + if (!exported.ok) throw exported.error; + const result = webScriptExportResultSchema.parse( + exported.value.normalized_result, + ); + if (result.analysis_input === null) + throw new Error("Missing analysis input"); + for (const [index, script] of result.scripts.entries()) { + if (script.content.state !== "exported") + throw new Error("Missing source bytes"); + expect(script.url).toBe(scripts[index]?.url); + expect(script.content.layout).toBe(index === 0 ? "url-path" : "isolated"); + expect( + await readFile( + join(result.analysis_input.input_path, script.content.relative_path), + ), + ).toEqual(scripts[index]?.bytes); + } + const manifest = JSON.parse(await readFile(result.manifest.path, "utf8")); + expect(manifest.scripts).toEqual(result.scripts); + }); +}); + describe("captured script publication boundary", () => { it("verifies durable bytes, manifest, capture identity, and existing module analysis", async () => { const capture = scriptScenarioFixture([ From d4e8ef74999666cdb735b49eb8fea367f8f86489 Mon Sep 17 00:00:00 2001 From: Saim Shafique Date: Mon, 12 Oct 2026 11:59:18 +0500 Subject: [PATCH 30/44] fix(ghidra): retain launcher command outcome in launch failure diagnostics (#2011) * fix(ghidra): retain launcher command outcome in launch failure diagnostics Ghidra headless launch failures surfaced only the GhidraLaunchError name and a generic message, dropping the launcher command's exit code/signal and JVM stderr. Retain the failed command outcome on GhidraLaunchError in the shared captured-output envelope and project it as launch_outcome in the session failure_cause, mirroring the compiler_outcome diagnostics. Fixes #1992 * test(ghidra): skip POSIX JVM fixture tests on Windows The bin/java fixture is an extensionless POSIX shell script handed to execFile, which Windows cannot execute. Follow the repo pattern (test.skipIf) so the suite is a named Windows skip. --- src/ghidra/GhidraLaunchFailure.test.ts | 166 +++++++++++++++++++++++++ src/ghidra/GhidraLauncher.ts | 45 ++++++- src/ghidra/GhidraSessionError.ts | 39 ++++++ 3 files changed, 247 insertions(+), 3 deletions(-) create mode 100644 src/ghidra/GhidraLaunchFailure.test.ts diff --git a/src/ghidra/GhidraLaunchFailure.test.ts b/src/ghidra/GhidraLaunchFailure.test.ts new file mode 100644 index 000000000..246ec82d0 --- /dev/null +++ b/src/ghidra/GhidraLaunchFailure.test.ts @@ -0,0 +1,166 @@ +import { mkdtemp, mkdir, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import { join } from "node:path"; +import { describe, expect, test } from "vitest"; + +import { + GhidraHeadlessLauncher, + GhidraLaunchError, + type GhidraLaunchSession, +} from "./GhidraLauncher.js"; +import { bindGhidraSessionFailure } from "./GhidraSessionError.js"; + +// The POSIX `bin/java` fixture cannot execute on Windows (extensionless sh script +// handed to execFile), so these tests only run on POSIX hosts. +const it = test.skipIf(process.platform === "win32"); + +/** Projection bound per launcher-command stream asserted by the tests. */ +const EXPECTED_OUTPUT_BOUND_BYTES = 8 * 1024; + +const launchSession = (runtimeRoot: string): GhidraLaunchSession => ({ + runtimeRoot, + transport: "unix-socket", + endpointPath: join(runtimeRoot, "endpoint.sock"), + token: "test-token", + runId: "test-run", + targetPath: join(runtimeRoot, "target.bin"), + targetSha256: "0".repeat(64), + providerVersion: "test", + profileDigest: "test", +}); + +/** Stand-in "java" whose LaunchSupport probe fails the way a broken JVM does. */ +const failingJavaHome = async (script: string): Promise => { + const javaHome = await mkdtemp(join(tmpdir(), "rea-fake-java-")); + await mkdir(join(javaHome, "bin"), { recursive: true }); + await writeFile(join(javaHome, "bin", "java"), script, { mode: 0o755 }); + return javaHome; +}; + +const probeLauncher = (javaHome: string, runtimeRoot: string) => + new GhidraHeadlessLauncher({ + environment: {}, + platform: "darwin", + analyzeHeadlessPath: join(runtimeRoot, "support", "analyzeHeadless"), + javaHome, + bridgeScriptPath: join(runtimeRoot, "bridge", "ReaGhidraBridge.java"), + }); + +const launchOutcomeOf = (error: Error): Record | undefined => { + const sessionError = bindGhidraSessionFailure(() => ({}))( + "start", + error.message, + error, + ); + const cause = sessionError.diagnostics["failure_cause"] as Record< + string, + unknown + >; + const outcome = cause["launch_outcome"] as Record; + return outcome === undefined ? undefined : outcome; +}; + +describe("Ghidra launch failure diagnostics", () => { + it("retains the failed launcher command outcome on the launch error", async () => { + const javaHome = await failingJavaHome( + "#!/bin/sh\necho 'jvm probe exploded' >&2\nexit 3\n", + ); + const runtimeRoot = await mkdtemp(join(tmpdir(), "rea-ghidra-launch-")); + try { + const launched = await probeLauncher(javaHome, runtimeRoot).launch( + launchSession(runtimeRoot), + ); + expect(launched.ok).toBe(false); + if (launched.ok) throw new Error("expected the launch to fail"); + expect(launched.error).toBeInstanceOf(GhidraLaunchError); + expect(launched.error.message).toBe("Ghidra headless launch failed"); + const captured = + launched.error instanceof GhidraLaunchError + ? launched.error.capturedOutput + : undefined; + expect(captured).toBeDefined(); + expect(captured?.exit_code).toBe(3); + expect(captured?.signal).toBeNull(); + expect(captured?.stdout).toBe(""); + expect(captured?.stderr).toContain("jvm probe exploded"); + expect(captured?.truncated).toBe(false); + } finally { + await rm(javaHome, { recursive: true, force: true }); + await rm(runtimeRoot, { recursive: true, force: true }); + } + }); + + it("surfaces the retained launcher outcome in the session failure_cause", async () => { + const javaHome = await failingJavaHome( + "#!/bin/sh\necho 'jvm probe exploded' >&2\nexit 3\n", + ); + const runtimeRoot = await mkdtemp(join(tmpdir(), "rea-ghidra-launch-")); + try { + const launched = await probeLauncher(javaHome, runtimeRoot).launch( + launchSession(runtimeRoot), + ); + expect(launched.ok).toBe(false); + if (launched.ok) throw new Error("expected the launch to fail"); + const outcome = launchOutcomeOf(launched.error); + expect(outcome).toBeDefined(); + expect(outcome?.["exit_code"]).toBe(3); + expect(outcome?.["signal"]).toBeNull(); + expect(outcome?.["stderr"]).toContain("jvm probe exploded"); + expect(outcome?.["truncated"]).toBe(false); + } finally { + await rm(javaHome, { recursive: true, force: true }); + await rm(runtimeRoot, { recursive: true, force: true }); + } + }); + + it("bounds projected launcher output and marks truncation explicitly", async () => { + const oversized = `${"x".repeat(EXPECTED_OUTPUT_BOUND_BYTES)}UNRETAINED-TAIL`; + const javaHome = await failingJavaHome( + `#!/bin/sh\nprintf '%s' '${oversized}' >&2\nexit 1\n`, + ); + const runtimeRoot = await mkdtemp(join(tmpdir(), "rea-ghidra-launch-")); + try { + const launched = await probeLauncher(javaHome, runtimeRoot).launch( + launchSession(runtimeRoot), + ); + expect(launched.ok).toBe(false); + if (launched.ok) throw new Error("expected the launch to fail"); + const outcome = launchOutcomeOf(launched.error); + expect(outcome?.["truncated"]).toBe(true); + expect(outcome?.["exit_code"]).toBe(1); + expect(outcome?.["stderr_bytes"]).toBe(oversized.length); + expect((outcome?.["stderr"] as string).length).toBeLessThanOrEqual( + EXPECTED_OUTPUT_BOUND_BYTES, + ); + expect(outcome?.["stderr"] as string).not.toContain("UNRETAINED-TAIL"); + } finally { + await rm(javaHome, { recursive: true, force: true }); + await rm(runtimeRoot, { recursive: true, force: true }); + } + }); + + it("leaves non-command launch failures without retained output", async () => { + const runtimeRoot = await mkdtemp(join(tmpdir(), "rea-ghidra-launch-")); + try { + const launcher = new GhidraHeadlessLauncher({ + environment: {}, + platform: "darwin", + analyzeHeadlessPath: join(runtimeRoot, "support", "analyzeHeadless"), + bridgeScriptPath: join(runtimeRoot, "bridge", "ReaGhidraBridge.java"), + }); + const launched = await launcher.launch(launchSession(runtimeRoot)); + expect(launched.ok).toBe(false); + if (launched.ok) throw new Error("expected the launch to fail"); + expect(launched.error).toBeInstanceOf(GhidraLaunchError); + expect(launched.error.message).toBe("Ghidra headless launch failed"); + expect( + launched.error instanceof GhidraLaunchError + ? launched.error.capturedOutput + : undefined, + ).toBeUndefined(); + expect(launchOutcomeOf(launched.error)).toBeUndefined(); + } finally { + await rm(runtimeRoot, { recursive: true, force: true }); + } + }); +}); diff --git a/src/ghidra/GhidraLauncher.ts b/src/ghidra/GhidraLauncher.ts index 83f9f2405..8348ee28a 100644 --- a/src/ghidra/GhidraLauncher.ts +++ b/src/ghidra/GhidraLauncher.ts @@ -19,6 +19,8 @@ import { import { AnalysisCancelledError } from "../domain/analysisErrorCore.js"; import { err, ok, type Result } from "../domain/result.js"; +import type { AnalysisCapturedOutput } from "../domain/analysisErrorBase.js"; +import { execFileOutputFailure } from "../process/ExecFileOutput.js"; import { cleanupOwnedProcessGroup, cleanupWindowsProcessTree, @@ -73,23 +75,55 @@ export interface GhidraLauncher { /** Local launch failure retained as the cause of a provider-neutral error. */ export class GhidraLaunchError extends Error { readonly #partialLaunch: GhidraLaunch | undefined; + readonly #capturedOutput: AnalysisCapturedOutput | undefined; constructor( message: string, - options?: ErrorOptions & { readonly partialLaunch?: GhidraLaunch }, + options?: ErrorOptions & { + readonly partialLaunch?: GhidraLaunch; + readonly capturedOutput?: AnalysisCapturedOutput; + }, ) { - const { partialLaunch, ...errorOptions } = options ?? {}; + const { partialLaunch, capturedOutput, ...errorOptions } = options ?? {}; super(message, errorOptions); this.name = "GhidraLaunchError"; this.#partialLaunch = partialLaunch; + this.#capturedOutput = + capturedOutput === undefined ? undefined : { ...capturedOutput }; } /** Process ownership retained for the client to retry an incomplete rollback. */ get partialLaunch(): GhidraLaunch | undefined { return this.#partialLaunch; } + + /** Launcher command outcome retained when a launch command reported one. */ + get capturedOutput(): AnalysisCapturedOutput | undefined { + return this.#capturedOutput === undefined + ? undefined + : { ...this.#capturedOutput }; + } } +/** + * Retain a failed launcher command's exit/signal and output in the shared + * captured-output envelope. Bounds apply at projection; truncation there stays + * explicit, matching the compiler-outcome diagnostics. + */ +const ghidraLaunchCommandOutput = ( + cause: unknown, +): AnalysisCapturedOutput | undefined => { + const failure = execFileOutputFailure(cause); + if (failure === undefined) return undefined; + return { + stdout: failure.stdout, + stderr: failure.stderr, + truncated: failure.outputTruncated, + exit_code: typeof failure.code === "number" ? failure.code : null, + signal: failure.signal, + }; +}; + /** Static coordinates for an extracted Ghidra release and packaged script. */ export interface GhidraHeadlessLauncherOptions { readonly environment: Readonly; @@ -295,9 +329,13 @@ export class GhidraHeadlessLauncher implements GhidraLauncher { } return ok(partialLaunch); } catch (cause: unknown) { + const capturedOutput = ghidraLaunchCommandOutput(cause); const primary = isAborted(options.signal) ? new AnalysisCancelledError("open_binary", { cause }) - : new GhidraLaunchError("Ghidra headless launch failed", { cause }); + : new GhidraLaunchError("Ghidra headless launch failed", { + cause, + ...(capturedOutput === undefined ? {} : { capturedOutput }), + }); if (started === undefined) return err(primary); let cleanupFailure: unknown; @@ -325,6 +363,7 @@ export class GhidraHeadlessLauncher implements GhidraLauncher { { cause: primary }, ), partialLaunch, + ...(capturedOutput === undefined ? {} : { capturedOutput }), }, ), ); diff --git a/src/ghidra/GhidraSessionError.ts b/src/ghidra/GhidraSessionError.ts index 4b8bead7a..cc76ab338 100644 --- a/src/ghidra/GhidraSessionError.ts +++ b/src/ghidra/GhidraSessionError.ts @@ -2,11 +2,13 @@ import type { AnalysisError } from "../domain/analysisErrorBase.js"; import type { JsonValue } from "../domain/jsonValue.js"; import { DarwinProcessOwnershipInspectionError } from "../process/DarwinProcessRunTokenReader.js"; import { boundedUtf8Text } from "../process/boundedUtf8Text.js"; +import { GhidraLaunchError } from "./GhidraLauncher.js"; const MAX_CAUSE_DEPTH = 3; const MAX_CAUSE_MESSAGE_BYTES = 2 * 1024; const MAX_CAUSE_FIELD_BYTES = 1024; const MAX_COMPILER_STDERR_BYTES = 8 * 1024; +const MAX_LAUNCH_COMMAND_OUTPUT_BYTES = 8 * 1024; /** Stable failure phase for one private Ghidra headless session. */ export type GhidraSessionFailureKind = @@ -149,6 +151,7 @@ const describeErrorCause = ( ...causeCode(cause, redact), ...causeSignal(cause, redact), ...causeCompilerOutcome(cause, redact), + ...causeLaunchOutcome(cause, redact), ...nestedErrorCause(cause, redact, depth), }; }; @@ -220,6 +223,42 @@ const boundedCompilerField = ( return { value: bounded.text, truncated: bounded.truncated }; }; +/** Retain a launch failure's launcher command outcome in its cause envelope. */ +const causeLaunchOutcome = ( + cause: Error, + redact: (value: string) => string, +): Record => { + if (!(cause instanceof GhidraLaunchError)) return {}; + const output = cause.capturedOutput; + if (output === undefined) return {}; + const stdout = boundedUtf8Text( + redact(output.stdout), + MAX_LAUNCH_COMMAND_OUTPUT_BYTES, + ); + const stderr = boundedUtf8Text( + redact(output.stderr), + MAX_LAUNCH_COMMAND_OUTPUT_BYTES, + ); + const truncated = output.truncated || stdout.truncated || stderr.truncated; + return { + launch_outcome: { + stdout: stdout.text, + stderr: stderr.text, + truncated, + ...(truncated + ? { + stdout_bytes: Buffer.byteLength(output.stdout), + stderr_bytes: Buffer.byteLength(output.stderr), + } + : {}), + ...(output.exit_code === undefined + ? {} + : { exit_code: output.exit_code }), + ...(output.signal === undefined ? {} : { signal: output.signal }), + }, + }; +}; + const nestedErrorCause = ( cause: Error, redact: (value: string) => string, From b3dec005bcb89b5afe6e0aa41e5251f8a3a31de7 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 15:02:43 +0800 Subject: [PATCH 31/44] test(hopper): align startup fixtures with cleanup and lease contracts Inspect the typed primary startup failure retained by aggregate cleanup errors. Materialize isolated targets before real lease acquisition so launcher scenarios reach the behavior under test. Repairs the Linux shard and Windows curated test failures without weakening cleanup retention coverage. --- .../providers/hopper/bridgeLauncher.test.ts | 4 ++- .../hopper/hopperClient.cleanupRetry.test.ts | 6 ++--- .../hopper/hopperClient.helperFailure.test.ts | 25 +++++++++++++++---- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/tests/boundary/providers/hopper/bridgeLauncher.test.ts b/tests/boundary/providers/hopper/bridgeLauncher.test.ts index c0da10224..722a25bed 100644 --- a/tests/boundary/providers/hopper/bridgeLauncher.test.ts +++ b/tests/boundary/providers/hopper/bridgeLauncher.test.ts @@ -165,10 +165,12 @@ describe("Hopper bridge launcher selection", () => { it("launches Hopper helpers with the caller-selected environment without restoring ambient values", async () => { const directory = await createTestTempDirectory("rea-hopper-selected-env-"); + const targetPath = join(directory, "target"); + await writeFile(targetPath, "fixture target"); const launcher = new HopperApplicationLauncher({ environment: { REA_SELECTED_VALUE: "caller-value" }, launcherPath: process.execPath, - targetPath: join(directory, "target"), + targetPath, targetKind: "executable", loaderArgs: [ "-e", diff --git a/tests/boundary/providers/hopper/hopperClient.cleanupRetry.test.ts b/tests/boundary/providers/hopper/hopperClient.cleanupRetry.test.ts index 030a192ac..62310facf 100644 --- a/tests/boundary/providers/hopper/hopperClient.cleanupRetry.test.ts +++ b/tests/boundary/providers/hopper/hopperClient.cleanupRetry.test.ts @@ -107,7 +107,7 @@ const failedStartup = async (launcher: RetryCleanupLauncher) => { error: { _tag: "ProviderAdapterError", cleanupIncomplete: true, - cause: { _tag: "HopperTimeoutError" }, + cause: { cause: { _tag: "HopperTimeoutError" } }, }, }); const session = launcher.sessions[0]; @@ -233,7 +233,7 @@ it("blocks a fresh launch while cleanup remains unverified", async () => { ok: false, error: { cleanupIncomplete: true, - cause: { _tag: "HopperTimeoutError" }, + cause: { cause: { _tag: "HopperTimeoutError" } }, diagnostics: { primary_error: { code: "provider_timeout" } }, }, }); @@ -263,7 +263,7 @@ it("preserves failed startup state through a blocked retry until cleanup succeed error: { _tag: "ProviderAdapterError", cleanupIncomplete: true, - cause: { _tag: "HopperTimeoutError" }, + cause: { cause: { _tag: "HopperTimeoutError" } }, }, }); // ...but must not wipe the failed-startup state: the client still diff --git a/tests/boundary/providers/hopper/hopperClient.helperFailure.test.ts b/tests/boundary/providers/hopper/hopperClient.helperFailure.test.ts index 13601e172..06e725dc1 100644 --- a/tests/boundary/providers/hopper/hopperClient.helperFailure.test.ts +++ b/tests/boundary/providers/hopper/hopperClient.helperFailure.test.ts @@ -1,8 +1,11 @@ import { spawn } from "node:child_process"; -import { access } from "node:fs/promises"; +import { access, writeFile } from "node:fs/promises"; +import { join } from "node:path"; import { expect, it, onTestFinished } from "vitest"; +import { createTestTempDirectory } from "../../../fixtures/temporaryDirectory.js"; + import { AnalysisError } from "../../../../src/domain/analysisErrorBase.js"; import { projectAnalysisError } from "../../../../src/domain/analysisErrorProjection.js"; import { ok } from "../../../../src/domain/result.js"; @@ -67,17 +70,23 @@ const trackFailedHelperClient = ( const projectPrimaryStartupFailure = (error: AnalysisError) => { if (!error.cleanupIncomplete) return projectAnalysisError(error); expect(projectAnalysisError(error).code).toBe("cleanup_incomplete"); - const primary = error.cause; + const cause = error.cause; + if (!(cause instanceof AggregateError)) + throw new Error("Cleanup failure did not retain its aggregate causes"); + const primary = cause.cause; if (!(primary instanceof AnalysisError)) throw new Error("Cleanup failure lost its typed startup cause"); return projectAnalysisError(primary); }; it("does not equate an owned native helper exit with an external GUI exit", async () => { + const directory = await createTestTempDirectory("rea-hopper-helper-failure-"); + const targetPath = join(directory, "target"); + await writeFile(targetPath, "fixture target"); const launcher = new HopperApplicationLauncher({ environment: {}, launcherPath: process.execPath, - targetPath: "/target", + targetPath, targetKind: "executable", loaderArgs: [ "-e", @@ -91,7 +100,10 @@ it("does not equate an owned native helper exit with an external GUI exit", asyn const result = await client.start(); expect(result).toMatchObject({ ok: false, - error: { cleanupIncomplete: true, cause: { _tag: "HopperStartError" } }, + error: { + cleanupIncomplete: true, + cause: { cause: { _tag: "HopperStartError" } }, + }, }); if (result.ok) throw new Error("Expected the native helper to fail"); expect(projectPrimaryStartupFailure(result.error)).toMatchObject({ @@ -140,7 +152,10 @@ it.each(["exit", "signal", "exit75"] as const)( const result = await client.start(); expect(result).toMatchObject({ ok: false, - error: { cleanupIncomplete: true, cause: { _tag: "HopperStartError" } }, + error: { + cleanupIncomplete: true, + cause: { cause: { _tag: "HopperStartError" } }, + }, }); if (result.ok) throw new Error("Expected the launcher to fail"); const projected = projectPrimaryStartupFailure(result.error); From 75a4a14fa05d352762ffaefd3cd2e16515842b03 Mon Sep 17 00:00:00 2001 From: xin zhuang <65798732+1052326311@users.noreply.github.com> Date: Mon, 12 Oct 2026 15:18:03 +0800 Subject: [PATCH 32/44] fix(artifacts): compare package signatures without ASCII folding (#2069) --- src/application/BinaryTargetResolver.ts | 4 +-- src/artifacts/inventory/classify.ts | 4 +-- .../boundary/filesystem/zipDetection.test.ts | 35 +++++++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) diff --git a/src/application/BinaryTargetResolver.ts b/src/application/BinaryTargetResolver.ts index bced0278a..7dfb7ce76 100644 --- a/src/application/BinaryTargetResolver.ts +++ b/src/application/BinaryTargetResolver.ts @@ -299,7 +299,7 @@ const detectArtifactFormat = async ( if ( lower.endsWith(".pkg") && observed.bytesRead >= 4 && - magic.subarray(0, 4).toString("ascii") === "xar!" + magic.subarray(0, 4).equals(Buffer.from("xar!")) ) return "pkg"; if (lower.endsWith(".dmg")) { @@ -310,7 +310,7 @@ const detectArtifactFormat = async ( const trailer = Buffer.alloc(4); const read = await handle.read(trailer, 0, trailer.length, size - 512); throwIfTargetResolutionCancelled(signal); - if (read.bytesRead === 4 && trailer.toString("ascii") === "koly") + if (read.bytesRead === 4 && trailer.equals(Buffer.from("koly"))) return "dmg"; } } diff --git a/src/artifacts/inventory/classify.ts b/src/artifacts/inventory/classify.ts index 9dd050c8e..6322d6028 100644 --- a/src/artifacts/inventory/classify.ts +++ b/src/artifacts/inventory/classify.ts @@ -152,7 +152,7 @@ const classifyRootFormat = async ( if (hasZipSignature(prefix)) return zipRootPackageFormat(lower); if ( lower.endsWith(".pkg") && - prefix.subarray(0, 4).toString("ascii") === "xar!" + prefix.subarray(0, 4).equals(Buffer.from("xar!")) ) return "pkg"; if (lower.endsWith(".dmg") && (await hasKolyTrailer(handle))) return "dmg"; @@ -172,5 +172,5 @@ const hasKolyTrailer = async (handle: FileHandle): Promise => { if (size < 512) return false; const trailer = Buffer.alloc(4); const read = await handle.read(trailer, 0, trailer.length, size - 512); - return read.bytesRead === 4 && trailer.toString("ascii") === "koly"; + return read.bytesRead === 4 && trailer.equals(Buffer.from("koly")); }; diff --git a/tests/boundary/filesystem/zipDetection.test.ts b/tests/boundary/filesystem/zipDetection.test.ts index 08c318257..b403c5975 100644 --- a/tests/boundary/filesystem/zipDetection.test.ts +++ b/tests/boundary/filesystem/zipDetection.test.ts @@ -199,3 +199,38 @@ describe("nested container family", () => { }, ); }); + +describe("package signature byte identity", () => { + it.each([ + { extension: "pkg", signature: "xar!", offset: 0, size: 4 }, + { extension: "dmg", signature: "koly", offset: 0, size: 512 }, + ])( + "rejects high-bit aliases of $extension magic at both admission boundaries", + async ({ extension, signature, offset, size }) => { + const root = await createTestTempDirectory("rea-package-magic-"); + const path = join(root, `input.${extension}`); + const bytes = Buffer.alloc(size); + bytes.write(signature, offset, "ascii"); + await writeFile(path, bytes); + expect( + (await classifyAndHashRoot(path, false, await lstat(path))).format, + ).toBe(extension); + expect(await parseBinaryTarget(path)).toMatchObject({ + ok: true, + value: { format: extension }, + }); + for (let index = 0; index < signature.length; index += 1) { + const changed = Buffer.from(bytes); + changed[offset + index] = changed[offset + index]! | 0x80; + await writeFile(path, changed); + expect( + (await classifyAndHashRoot(path, false, await lstat(path))).format, + ).toBe("file"); + expect(await parseBinaryTarget(path)).toMatchObject({ + ok: false, + error: { _tag: "BinaryTargetError" }, + }); + } + }, + ); +}); From 974f11d010570c0a18423cd1cc93e9a5203df1b6 Mon Sep 17 00:00:00 2001 From: Ysopwnable <161784452+N0zoM1z0@users.noreply.github.com> Date: Mon, 12 Oct 2026 15:26:26 +0800 Subject: [PATCH 33/44] docs: clarify responsible use and preserve third-party notices (#2082) Ship the responsible-use statement, third-party attribution records and preserved license texts in npm packages. Clarify historical-version and channel coverage without changing existing licenses or installation behavior. Assisted-by: Eiki (gensokyo-skills:eiki-rule-review) Assisted-by: Aya (gensokyo-skills:aya-source-investigation) --- DISCLAIMER.md | 128 +- README.md | 19 +- README_ar.md | 16 + README_de.md | 16 + README_es.md | 16 + README_fa.md | 16 + README_fr.md | 16 + README_id.md | 16 + README_it.md | 16 + README_ja.md | 16 + README_ko.md | 16 + README_pl.md | 16 + README_pt-BR.md | 16 + README_ru.md | 16 + README_th.md | 16 + README_tr.md | 16 + README_uk.md | 16 + README_vi.md | 16 + README_zh-TW.md | 11 + README_zh.md | 11 + THIRD_PARTY_NOTICES.md | 127 + licenses/Apache-2.0.txt | 202 + .../GCC-Runtime-Library-Exception-3.1.txt | 73 + licenses/GPL-3.0.txt | 674 ++ licenses/MIT-template.txt | 18 + licenses/MinGW-w64-runtime.txt | 240 + licenses/Node-22.19.0-LICENSE.txt | 2666 +++++++ licenses/README.md | 54 + licenses/cfworker-MIT.txt | 21 + licenses/dotnet-runtime-MIT.txt | 23 + licenses/ghidra-12.1.4-DISCLAIMER.txt | 13 + licenses/ghidra-12.1.4-LICENSE.txt | 201 + licenses/ghidra-12.1.4-NOTICE.txt | 49 + licenses/npm-dependencies.txt | 2812 +++++++ licenses/npm-runtime-notices.txt | 6632 +++++++++++++++++ licenses/upstream-sources.json | 62 + licenses/xterm-MIT.txt | 21 + package.json | 4 +- 38 files changed, 14310 insertions(+), 7 deletions(-) create mode 100644 THIRD_PARTY_NOTICES.md create mode 100644 licenses/Apache-2.0.txt create mode 100644 licenses/GCC-Runtime-Library-Exception-3.1.txt create mode 100644 licenses/GPL-3.0.txt create mode 100644 licenses/MIT-template.txt create mode 100644 licenses/MinGW-w64-runtime.txt create mode 100644 licenses/Node-22.19.0-LICENSE.txt create mode 100644 licenses/README.md create mode 100644 licenses/cfworker-MIT.txt create mode 100644 licenses/dotnet-runtime-MIT.txt create mode 100644 licenses/ghidra-12.1.4-DISCLAIMER.txt create mode 100644 licenses/ghidra-12.1.4-LICENSE.txt create mode 100644 licenses/ghidra-12.1.4-NOTICE.txt create mode 100644 licenses/npm-dependencies.txt create mode 100644 licenses/npm-runtime-notices.txt create mode 100644 licenses/upstream-sources.json create mode 100644 licenses/xterm-MIT.txt diff --git a/DISCLAIMER.md b/DISCLAIMER.md index 9445caeda..25157cc73 100644 --- a/DISCLAIMER.md +++ b/DISCLAIMER.md @@ -2,17 +2,135 @@ ## Responsible use -REA is built for lawful analysis: security research, malware and incident analysis, vulnerability research and coordinated disclosure, CTFs and education, interoperability, software preservation, and debugging or auditing software you own or are authorized to examine. +REA is built for lawful analysis: security research, malware and incident +analysis, vulnerability research and coordinated disclosure, CTFs and education, +interoperability, software preservation, and debugging or auditing software you +own or are authorized to examine. The REA project does not support, and will not help with: -- circumventing DRM, license checks, anti-cheat systems or other technical protection measures; +- circumventing DRM, license checks, anti-cheat systems or other technical + protection measures; - developing game cheats or tampering with online services; -- bypassing authentication, bot protection or access controls on systems you are not authorized to test; +- bypassing authentication, bot protection or access controls on systems you are + not authorized to test; - copying proprietary software or reproducing its protected code and assets; - evading the usage policies or safety measures of AI model providers; - reselling or sharing AI accounts or API access. -You are responsible for obtaining any required authorization and for complying with applicable laws, license agreements and terms of service. Reverse engineering may be restricted in your jurisdiction or by the license of the software you analyze. +You are responsible for obtaining any required authorization and for complying +with applicable laws, license agreements and terms of service. Reverse +engineering may be restricted in your jurisdiction or by the license of the +software you analyze. -Requests for help with the uses above will be closed without response in issues and discussions, and may result in removal from the REA community. +Requests for help with the uses above will be closed without response in issues +and discussions, and may result in removal from the REA community. + +## User responsibility + +Do not use REA for unauthorized access or exploitation, credential theft, +malicious deployment of malware, unlawful collection or disclosure of data, +unauthorized service disruption, or unlawful circumvention of access controls or +licensing restrictions. Legitimate security research and malware analysis must +remain within the rights and permissions applicable to the work. + +You are responsible for your use of REA, including commands, configurations, +scripts, and actions you direct an AI agent to perform. Establish the legal +authority and scope required for the targets, accounts, devices, software, data, +and operations involved. Comply with applicable laws, contracts, +intellectual-property rights, privacy obligations, and tool licenses. Public +availability of software, possession of a file, or access to a debugging +endpoint does not by itself establish permission for every operation. + +## Runtime, network, and device operations + +Some REA workflows execute or observe programs, attach to runtime or browser +endpoints, capture network traffic, interact with applications, or operate on +connected devices. These actions can affect application state, files, accounts, +devices, and services. Authorization to inspect an artifact does not necessarily +authorize execution, interception, device changes, or interaction with another +party's system. + +Review the operations you request, including agent-generated plans and scripts, +and use an appropriate environment for untrusted targets. You are responsible +for protecting credentials, personal data, captured traffic, and investigation +artifacts, and for obtaining any permission required to collect, retain, +process, or share them. Local operation does not establish authorization or +guarantee that executed targets and third-party tools have no external effects. + +## Analysis results and generated output + +Decompilation, reconstruction, heuristics, and AI-assisted analysis may be +incomplete or incorrect. Results do not guarantee accuracy, completeness, +security, compatibility, or legal compliance. Review the underlying evidence and +verify consequential conclusions before relying on them. + +Obtaining source-like output or an analysis report does not grant rights to the +original program, its data, or the generated output. Check the target's rights +and the producing tool's applicable terms before publishing, sharing, or using +results in another product or service. + +## Third-party tools and licenses + +Third-party components and analysis tools retain their own licenses, copyright +notices, and usage conditions. Consult +[Third-party notices](THIRD_PARTY_NOTICES.md) for their roles, licensing +records, and preserved upstream texts. + +You must legally obtain IDA Pro and Hex-Rays decompilers, Hopper, JEB, and any +other proprietary tools, together with the rights required for your use. REA +provides no commercial-tool license, key, or activation entitlement. Permitted +trials and demos remain subject to vendor terms. An open-source bridge or +accessible API does not grant additional user, machine, feature, automation, +hosting, or output-sharing rights. Cracked copies, stolen keys, unauthorized key +sharing, and bypassing license restrictions are not authorized by REA. + +## Disclaimer of warranty + +REA is provided **AS IS**, without express or implied warranties, including +merchantability, fitness for a particular purpose, and noninfringement, as set +out in the [MIT License](LICENSE). You assume the risks of using the software +and deciding whether it is suitable for your task. No project description, +example, analysis result, or third-party integration guarantees a particular +outcome or establishes that your intended use is lawful or safe. + +## Limitation of liability + +The warranty and liability provisions of the [MIT License](LICENSE) govern REA's +authors and copyright holders, subject to applicable law. That license disclaims +liability for claims, damages, and other liability arising from or in connection +with the software or its use, whether in contract, tort, or otherwise. This +document does not expand those provisions or override rights and obligations +that cannot be excluded under applicable law. + +## Disclaimer of endorsement + +References to third-party projects, contributors, products, services, and +trademarks identify their work and REA's integrations. Credits and thanks do not +imply affiliation, sponsorship, approval, or endorsement by the named parties, +including the National Security Agency and commercial tool vendors. +Redistribution, bundling, or hosting by a third party does not by itself imply +affiliation with or endorsement by the REA project. + +## Relationship to software licenses + +This document explains REA's intended use, user responsibilities, and community +support boundaries. It does not amend the MIT license, impose additional +copyright-license conditions, replace upstream licenses, or grant rights to +third-party software or targets. The applicable software licenses and agreements +retain their own terms. + +## Versions, distribution channels, and platforms + +The project's position on lawful use and non-endorsement of illegal or +unauthorized activity covers all REA versions, distribution forms, and +platforms. This includes historical releases and Git commits, npm packages, +bundled or separately distributed REA skills, source checkouts, release +archives, and redistributed copies, regardless of installation method, agent +client, operating system, or platform. Using an older version or another +distribution channel does not imply project endorsement or remove obligations +under applicable law or to respect third-party rights. + +Each copy remains subject to the licenses accompanying that copy. This statement +does not retroactively amend existing license grants, add license conditions, or +expand historical warranty or liability exclusions. diff --git a/README.md b/README.md index d4aeaaf39..fe061ddcf 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,11 @@ Thanks to everyone using REA, reporting bugs, requesting features, testing build See [DISCLAIMER.md](DISCLAIMER.md) for responsible-use guidance. -REA is for lawful research, education, interoperability, software preservation, and analysis of software you own or are authorized to examine. +The project's position on illegal or unauthorized use covers all REA versions, +distribution channels, and platforms; each copy retains its applicable licenses. + +REA is for lawful research, education, interoperability, software preservation, +and analysis of software you own or are authorized to examine. ## Contributing @@ -348,3 +352,16 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and checks, ## License [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see +[Third-party notices](THIRD_PARTY_NOTICES.md) for the dependency inventory, +preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable +licenses. REA grants no tool license, key, or activation entitlement. Trials and +demos remain subject to vendor terms, including user, feature, automation, and +output sharing restrictions. Cracked copies, stolen keys, unauthorized key +sharing, and bypassing license restrictions are not authorized. This guidance +does not amend MIT or third-party licenses. diff --git a/README_ar.md b/README_ar.md index 9f51281da..d45af6edc 100644 --- a/README_ar.md +++ b/README_ar.md @@ -278,6 +278,10 @@ npx rea-agents@latest setup REA مخصص للبحث والتعليم والتشغيل البيني وحفظ البرمجيات بشكل قانوني، ولتحليل البرمجيات التي تملكها أو لديك تفويض لفحصها. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## المساهمة نرحّب بمساعدتك في تطوير REA! [افتح issue](https://github.com/morluto/rea/issues) للإبلاغ عن خطأ أو اقتراح ميزة، أو [أرسل pull request](https://github.com/morluto/rea/pulls) لتحسين الشيفرة أو التوثيق. @@ -287,3 +291,15 @@ REA مخصص للبحث والتعليم والتشغيل البيني وحفظ ## الترخيص [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_de.md b/README_de.md index 757b2c3a1..530527b89 100644 --- a/README_de.md +++ b/README_de.md @@ -276,6 +276,10 @@ Hinweise zur verantwortungsvollen Nutzung findest du in [DISCLAIMER.md](DISCLAIM REA dient der rechtmäßigen Forschung, Bildung, Interoperabilität, Softwareerhaltung und Analyse von Software, die dir gehört oder die du mit entsprechender Genehmigung untersuchen darfst. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Mitwirken Wir freuen uns über deine Hilfe bei REA! [Öffne ein Issue](https://github.com/morluto/rea/issues), um einen Fehler zu melden oder eine Funktion vorzuschlagen, oder [sende einen Pull Request](https://github.com/morluto/rea/pulls), um Code oder Dokumentation zu verbessern. @@ -285,3 +289,15 @@ Die Entwicklungsumgebung und Prüfungen beschreibt [CONTRIBUTING.md](CONTRIBUTIN ## Lizenz [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_es.md b/README_es.md index a8c934edf..f23bd2df7 100644 --- a/README_es.md +++ b/README_es.md @@ -276,6 +276,10 @@ Consulta [DISCLAIMER.md](DISCLAIMER.md) para obtener orientación sobre el uso r REA está destinado a la investigación, la educación, la interoperabilidad, la preservación de software y el análisis de software propio o autorizado, dentro de la ley. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Contribuir ¡Nos encantaría que ayudaras con REA! [Abre una issue](https://github.com/morluto/rea/issues) para comunicar un error o proponer una función, o [envía una pull request](https://github.com/morluto/rea/pulls) para mejorar el código o la documentación. @@ -285,3 +289,15 @@ Consulta [CONTRIBUTING.md](CONTRIBUTING.md) para preparar el entorno de desarrol ## Licencia [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_fa.md b/README_fa.md index 056338b86..4a9885eef 100644 --- a/README_fa.md +++ b/README_fa.md @@ -255,6 +255,10 @@ npx rea-agents@latest setup REA برای پژوهش، آموزش، تعامل‌پذیری، حفظ نرم‌افزار و تحلیل نرم‌افزارهایی است که مالک آن‌ها هستید یا اجازهٔ بررسی آن‌ها را دارید، در چارچوب قانون. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## مشارکت از کمک شما به REA استقبال می‌کنیم! برای گزارش خطا یا پیشنهاد قابلیت، یک [issue باز کنید](https://github.com/morluto/rea/issues) یا برای بهبود کد و مستندات [pull request بفرستید](https://github.com/morluto/rea/pulls). @@ -265,4 +269,16 @@ REA برای پژوهش، آموزش، تعامل‌پذیری، حفظ نرم [MIT](LICENSE) +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. + diff --git a/README_fr.md b/README_fr.md index 460c8121f..c025cd14f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -280,6 +280,10 @@ Consultez [DISCLAIMER.md](DISCLAIMER.md) pour les consignes d'utilisation respon REA est destiné à la recherche, à l’éducation, à l’interopérabilité, à la préservation logicielle et à l’analyse de logiciels que vous possédez ou êtes autorisé à examiner, dans le respect de la loi. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Contribuer Votre aide sur REA est la bienvenue ! [Ouvrez une issue](https://github.com/morluto/rea/issues) pour signaler un bug ou proposer une fonctionnalité, ou [envoyez une pull request](https://github.com/morluto/rea/pulls) pour améliorer le code ou la documentation. @@ -289,3 +293,15 @@ Consultez [CONTRIBUTING.md](CONTRIBUTING.md) pour l'environnement de développem ## Licence [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_id.md b/README_id.md index fea3dcb99..0ca871312 100644 --- a/README_id.md +++ b/README_id.md @@ -301,6 +301,10 @@ Lihat [DISCLAIMER.md](DISCLAIMER.md) untuk panduan penggunaan yang bertanggung j REA ditujukan untuk penelitian, pendidikan, interoperabilitas, pelestarian perangkat lunak, dan analisis perangkat lunak yang Anda miliki atau diizinkan untuk Anda periksa, sesuai hukum. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Kontribusi Kami sangat menghargai bantuan Anda untuk REA! [Buat issue](https://github.com/morluto/rea/issues) untuk melaporkan bug atau menyarankan fitur, atau [kirim pull request](https://github.com/morluto/rea/pulls) untuk meningkatkan kode atau dokumentasi. @@ -310,3 +314,15 @@ Lihat [CONTRIBUTING.md](CONTRIBUTING.md) untuk penyiapan pengembangan dan pemeri ## Lisensi [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_it.md b/README_it.md index ac09c511c..af908746d 100644 --- a/README_it.md +++ b/README_it.md @@ -280,6 +280,10 @@ Consulta [DISCLAIMER.md](DISCLAIMER.md) per le indicazioni sull'uso responsabile REA è destinato alla ricerca, alla formazione, all’interoperabilità, alla conservazione del software e all’analisi di software di tua proprietà o che sei autorizzato a esaminare, nel rispetto della legge. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Contributing Apprezzeremmo il tuo aiuto con REA! [Apri un issue](https://github.com/morluto/rea/issues) per segnalare un bug o suggerire una funzionalità, oppure [invia una pull request](https://github.com/morluto/rea/pulls) per migliorare il codice o la documentazione. @@ -289,3 +293,15 @@ Vedi [CONTRIBUTING.md](CONTRIBUTING.md) per la configurazione di sviluppo e i co ## License [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_ja.md b/README_ja.md index 490aa8ec3..370fb591d 100644 --- a/README_ja.md +++ b/README_ja.md @@ -278,6 +278,10 @@ REA の利用、バグ報告、機能の要望、ビルドのテスト、修正 REA は、法令に従った研究、教育、相互運用性の確保、ソフトウェアの保存、および所有するソフトウェアや調査を許可されたソフトウェアの解析を目的としています。 +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## 貢献する REA への貢献を歓迎します![issue を作成](https://github.com/morluto/rea/issues)してバグや機能の提案を報告したり、[pull request を送信](https://github.com/morluto/rea/pulls)してコードやドキュメントを改善したりできます。 @@ -287,3 +291,15 @@ REA への貢献を歓迎します![issue を作成](https://github.com/morlut ## ライセンス [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_ko.md b/README_ko.md index 1a863e895..70301cfbc 100644 --- a/README_ko.md +++ b/README_ko.md @@ -278,6 +278,10 @@ REA를 사용하고, 버그를 보고하고, 기능을 요청하고, 빌드를 REA는 법을 준수하는 연구, 교육, 상호운용성 확보, 소프트웨어 보존, 그리고 본인이 소유하거나 조사 권한을 가진 소프트웨어의 분석을 위한 도구입니다. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## 기여 REA에 도움을 보태 주세요! [issue를 등록](https://github.com/morluto/rea/issues)해 버그나 기능을 제안하거나, [pull request를 보내](https://github.com/morluto/rea/pulls) 코드와 문서를 개선할 수 있습니다. @@ -287,3 +291,15 @@ REA에 도움을 보태 주세요! [issue를 등록](https://github.com/morluto/ ## 라이선스 [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_pl.md b/README_pl.md index 08f6795e9..f3db2fbd2 100644 --- a/README_pl.md +++ b/README_pl.md @@ -276,6 +276,10 @@ Wskazówki dotyczące odpowiedzialnego korzystania znajdziesz w [DISCLAIMER.md]( REA służy zgodnym z prawem badaniom, edukacji, zapewnianiu interoperacyjności, zachowaniu oprogramowania oraz analizie oprogramowania, które posiadasz lub masz prawo badać. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Współtworzenie Chętnie przyjmiemy Twoją pomoc w rozwoju REA! [Otwórz zgłoszenie](https://github.com/morluto/rea/issues), aby poinformować o błędzie lub zaproponować funkcję, albo [wyślij pull request](https://github.com/morluto/rea/pulls) z ulepszeniami kodu lub dokumentacji. @@ -285,3 +289,15 @@ Zobacz [CONTRIBUTING.md](CONTRIBUTING.md), aby poznać konfigurację środowiska ## Licencja [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_pt-BR.md b/README_pt-BR.md index 8ffb137ed..662225a21 100644 --- a/README_pt-BR.md +++ b/README_pt-BR.md @@ -276,6 +276,10 @@ Consulte [DISCLAIMER.md](DISCLAIMER.md) para orientações sobre o uso responsá O REA destina-se à pesquisa, à educação, à interoperabilidade, à preservação de software e à análise de software que você possui ou está autorizado a examinar, dentro da lei. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Contribuir Sua ajuda com o REA é bem-vinda! [Abra uma issue](https://github.com/morluto/rea/issues) para relatar um bug ou sugerir uma funcionalidade, ou [envie um pull request](https://github.com/morluto/rea/pulls) para melhorar o código ou a documentação. @@ -285,3 +289,15 @@ Consulte [CONTRIBUTING.md](CONTRIBUTING.md) para configurar o ambiente de desenv ## Licença [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_ru.md b/README_ru.md index 584bb6c9b..a22c620ce 100644 --- a/README_ru.md +++ b/README_ru.md @@ -276,6 +276,10 @@ npx rea-agents@latest setup REA предназначен для законных исследований, обучения, обеспечения совместимости, сохранения программного обеспечения и анализа программ, которыми вы владеете или которые вам разрешено изучать. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Участие в проекте Будем рады вашей помощи с REA! [Откройте issue](https://github.com/morluto/rea/issues), чтобы сообщить об ошибке или предложить функцию, либо [отправьте pull request](https://github.com/morluto/rea/pulls) с улучшениями кода или документации. @@ -285,3 +289,15 @@ REA предназначен для законных исследований, ## Лицензия [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_th.md b/README_th.md index 482ef6192..7f87a81cf 100644 --- a/README_th.md +++ b/README_th.md @@ -276,6 +276,10 @@ npx rea-agents@latest setup REA มีไว้สำหรับการวิจัย การศึกษา การทำงานร่วมกัน การอนุรักษ์ซอฟต์แวร์ และการวิเคราะห์ซอฟต์แวร์ที่คุณเป็นเจ้าของหรือได้รับอนุญาตให้ตรวจสอบ โดยปฏิบัติตามกฎหมาย +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## การมีส่วนร่วม เรายินดีรับความช่วยเหลือในการพัฒนา REA! [เปิด issue](https://github.com/morluto/rea/issues) เพื่อรายงานบั๊กหรือเสนอฟีเจอร์ หรือ[ส่ง pull request](https://github.com/morluto/rea/pulls) เพื่อปรับปรุงโค้ดหรือเอกสาร @@ -285,3 +289,15 @@ REA มีไว้สำหรับการวิจัย การศึก ## สัญญาอนุญาต [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_tr.md b/README_tr.md index ab1774f96..abc40f088 100644 --- a/README_tr.md +++ b/README_tr.md @@ -276,6 +276,10 @@ Sorumlu kullanım yönergeleri için [DISCLAIMER.md](DISCLAIMER.md) dosyasına b REA; yasal araştırma, eğitim, birlikte çalışabilirlik, yazılımın korunması ve sahibi olduğunuz ya da inceleme yetkiniz bulunan yazılımların analizi için tasarlanmıştır. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Katkıda bulunma REA'ya katkınızı bekliyoruz! Hata bildirmek veya özellik önermek için bir [issue açın](https://github.com/morluto/rea/issues); kodu veya belgeleri geliştirmek için bir [pull request gönderin](https://github.com/morluto/rea/pulls). @@ -285,3 +289,15 @@ Geliştirme ortamı ve kontroller için [CONTRIBUTING.md](CONTRIBUTING.md), doğ ## Lisans [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_uk.md b/README_uk.md index 240a8339e..bf824a4f1 100644 --- a/README_uk.md +++ b/README_uk.md @@ -276,6 +276,10 @@ npx rea-agents@latest setup REA призначений для законних досліджень, навчання, забезпечення сумісності, збереження програмного забезпечення й аналізу програм, якими ви володієте або які маєте дозвіл досліджувати. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Участь у проєкті Будемо раді вашій допомозі з REA! [Відкрийте issue](https://github.com/morluto/rea/issues), щоб повідомити про помилку чи запропонувати функцію, або [надішліть pull request](https://github.com/morluto/rea/pulls) з поліпшеннями коду чи документації. @@ -285,3 +289,15 @@ REA призначений для законних досліджень, нав ## Ліцензія [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_vi.md b/README_vi.md index 5f5912239..9bb23d09a 100644 --- a/README_vi.md +++ b/README_vi.md @@ -276,6 +276,10 @@ Xem [DISCLAIMER.md](DISCLAIMER.md) để biết hướng dẫn sử dụng có t REA dành cho nghiên cứu, giáo dục, khả năng tương tác, bảo tồn phần mềm và phân tích phần mềm bạn sở hữu hoặc được phép kiểm tra, trong khuôn khổ pháp luật. +The project's position on illegal or unauthorized use covers all REA +versions, distribution channels, and platforms; each copy retains its +applicable licenses. + ## Đóng góp Chúng tôi hoan nghênh bạn giúp phát triển REA! [Mở issue](https://github.com/morluto/rea/issues) để báo lỗi hoặc đề xuất tính năng, hoặc [gửi pull request](https://github.com/morluto/rea/pulls) để cải thiện mã hay tài liệu. @@ -285,3 +289,15 @@ Xem [CONTRIBUTING.md](CONTRIBUTING.md) về thiết lập môi trường phát t ## Giấy phép [MIT](LICENSE) + +REA-authored code is licensed under MIT. Third-party material retains its own +licenses and copyright notices; see [Third-party notices](THIRD_PARTY_NOTICES.md) +for the dependency inventory, preserved license texts, and external-tool terms. + +**You must legally obtain and be authorized to use commercial tools**, including +IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable licenses. +REA grants no tool license, key, or activation entitlement. Trials and demos +remain subject to vendor terms, including user, feature, automation, and output +sharing restrictions. Cracked copies, stolen keys, unauthorized key sharing, +and bypassing license restrictions are not authorized. This guidance does not +amend MIT or third-party licenses. diff --git a/README_zh-TW.md b/README_zh-TW.md index f230f9c9e..6c80ce6f2 100644 --- a/README_zh-TW.md +++ b/README_zh-TW.md @@ -278,6 +278,9 @@ npx rea-agents@latest setup REA 用於合法的研究、教育、互通性、軟體保存,以及分析你擁有或獲准檢查的軟體。 +本專案對非法或未經授權使用的立場涵蓋所有 REA 版本、分發管道和執行平台; +每份副本仍適用其隨附的授權。 + ## 參與貢獻 歡迎幫助改進 REA!你可以[提交 issue](https://github.com/morluto/rea/issues) 報告錯誤或建議功能,也可以[提交 pull request](https://github.com/morluto/rea/pulls) 改進程式碼或文件。 @@ -287,3 +290,11 @@ REA 用於合法的研究、教育、互通性、軟體保存,以及分析你 ## 授權條款 [MIT](LICENSE) + +REA 自行編寫的程式碼採用 MIT 授權;第三方內容保留各自的授權和著作權聲明。 +依賴清單、授權原文及外部工具條款見[第三方聲明](THIRD_PARTY_NOTICES.md)。 + +**使用者須自行合法取得商用工具及所需使用權**,包括 IDA Pro / Hex-Rays 反編譯器、 +Hopper 和 JEB,並遵守各自授權。REA 不提供工具授權、金鑰或啟用權利;試用版和 +展示版也須遵守廠商對使用者、功能、自動化及輸出分享的限制。不得使用破解副本、 +竊取或違規共用金鑰,也不得繞過授權限制。本指引不變更 MIT 或第三方授權。 diff --git a/README_zh.md b/README_zh.md index 3d0690e3b..e47aac3bc 100644 --- a/README_zh.md +++ b/README_zh.md @@ -278,6 +278,9 @@ npx rea-agents@latest setup REA 用于合法的研究、教育、互操作性、软件保存,以及分析你拥有或获准检查的软件。 +本项目对非法或未经授权使用的立场涵盖所有 REA 版本、分发渠道和运行平台; +每份副本仍适用其随附的许可。 + ## 参与贡献 欢迎帮助改进 REA!你可以[提交 issue](https://github.com/morluto/rea/issues) 报告错误或建议功能,也可以[提交 pull request](https://github.com/morluto/rea/pulls) 改进代码或文档。 @@ -287,3 +290,11 @@ REA 用于合法的研究、教育、互操作性、软件保存,以及分析 ## 许可证 [MIT](LICENSE) + +REA 自行编写的代码采用 MIT 许可;第三方内容保留各自的许可和著作权声明。 +依赖清单、许可原文及外部工具条款见[第三方声明](THIRD_PARTY_NOTICES.md)。 + +**用户须自行合法取得商用工具及所需使用权**,包括 IDA Pro / Hex-Rays 反编译器、 +Hopper 和 JEB,并遵守各自许可。REA 不提供工具许可、密钥或激活权利;试用版和 +演示版也须遵守厂商对用户、功能、自动化及输出分享的限制。不得使用破解副本、 +窃取或违规共用密钥,也不得绕过许可限制。本指引不变更 MIT 或第三方许可。 diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md new file mode 100644 index 000000000..3faad0dba --- /dev/null +++ b/THIRD_PARTY_NOTICES.md @@ -0,0 +1,127 @@ +# Third-party notices + +REA-authored code is licensed under [MIT](LICENSE). Third-party material retains +its own copyright, license, attribution, and NOTICE requirements. REA's MIT +license grants no rights to proprietary analysis tools. Project and product +names identify integrations; they do not imply affiliation or endorsement. + +This inventory covers the locked npm dependency graph, code or assets derived +from upstream projects, and separately obtained engines used by REA. A listed +integration is not a statement that its executable is bundled. Upstream +components and caller-selected versions may have additional terms; retain the +notices supplied with the software you actually obtain or redistribute. + +## Distributed dependencies, derived code, and assets + +| Material | Use and licensing records | +| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| npm dependencies | [Complete inventory](licenses/npm-dependencies.txt) of every entry in `package-lock.json`, including transitive, optional platform, development, and website dependencies. [Runtime notices](licenses/npm-runtime-notices.txt) preserve the copyright, license, and NOTICE documents from integrity-verified release archives, plus the MIT notice for Rolldown's generated runtime helpers. Development dependencies are inventoried but are not all distributed in REA's npm package. | +| NativeAOT parser | REA's derived parser uses the MIT-licensed [ghidra-nativeaot](https://github.com/Washi1337/ghidra-nativeaot/tree/effeb734fc570c32650f88b159608979dc7b423e) work of Washi and the NativeAOT layout definitions in [dotnet/runtime](https://github.com/dotnet/runtime/tree/a3b2d40328be0be3f8dd43f0e5cc925b8827b044). Preserve [Washi's MIT notice](licenses/nativeaot-parser-MIT.txt) and the [.NET Foundation MIT notice](licenses/dotnet-runtime-MIT.txt). | +| EVM analysis | `evmole@0.9.3`, MIT, copyright 2023 Maxim Andreev. The published npm archive omits its license document; REA retains the [original upstream license](third_party/evmole/LICENSE) and [provenance](third_party/evmole/README.md). It is also included in the runtime notices. | +| Windows native addon | The release addon is compiled with MinGW-w64 and statically links GCC runtime libraries. Preserve the [MinGW-w64 runtime notices](licenses/MinGW-w64-runtime.txt), [GPLv3 text](licenses/GPL-3.0.txt), and [GCC Runtime Library Exception 3.1](licenses/GCC-Runtime-Library-Exception-3.1.txt). The exception governs eligible compiled combinations; it does not relicense the runtime itself under MIT. The Node-API build headers are from Node 22.19.0; its [original license and component notices](licenses/Node-22.19.0-LICENSE.txt) are retained. Node itself is supplied by the user. Snapshot provenance and release-toolchain review requirements are in [licenses/README.md](licenses/README.md). | +| Dinosaur website example | Selected excerpts from [wayou/t-rex-runner](https://github.com/wayou/t-rex-runner/tree/5455bfa408ec6b707c7300ff194b7390733a766d), derived from Chromium's dinosaur game. The website retains the [original BSD-3-Clause notices](website/public/assets/licenses/dinosaur.txt), including Chromium authors and wayou. This asset is not part of the npm runtime. | + +Two locked runtime releases, [`clean-git-ref@2.0.1`](https://github.com/TheSavior/clean-git-ref/tree/bf3c8afc8032bcdc6a53634c18b601dc6df478fb) (declared Apache-2.0) and +[`minimisted@2.0.1`](https://github.com/kt3k/minimisted/tree/95fdfb8d6efb9546c1117854fe3a58105f6332ce) (declared MIT), omit a full license/copyright document in their +published archives and inspected upstream release sources. Their runtime notice +entries preserve the declared license and author metadata and include a clearly +labeled standard license text. These are documented upstream notice gaps, not +recovered copyright notices or a claim that attribution has been fully verified. + +## Open-source engine credits and licenses + +We thank the maintainers and contributors of the projects below. Their +decompilers, binary-analysis engines, debuggers, parsers, and capture tools +provide capabilities used through REA's integrations. Each row identifies the +upstream project, its own license, and its role in REA. In particular, JADX +provides the Android decompiler, while jadx-headless-mcp provides the separate +headless integration used by REA; both projects deserve credit. + +These acknowledgments are voluntary thanks. Required upstream copyright and +NOTICE texts remain in their original form and are not replaced by this +summary. Credits do not imply endorsement or change any license. + +REA's adapters do not grant, replace, or waive these licenses. The upstream +executables and their dependency graphs are supplied separately. Git submodules +pin inspection sources; they are not included in the npm package. + +| Project | License and source | REA relationship | +| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Ghidra | [Apache-2.0](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/LICENSE), with the government-work and component qualifications in its [NOTICE](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/NOTICE) | Bring your own Ghidra 12.1.4. Copies of its [LICENSE](licenses/ghidra-12.1.4-LICENSE.txt), [NOTICE](licenses/ghidra-12.1.4-NOTICE.txt), and [DISCLAIMER](licenses/ghidra-12.1.4-DISCLAIMER.txt) are retained for reference. | +| ghidra-nativeaot | [MIT](https://github.com/Washi1337/ghidra-nativeaot/blob/effeb734fc570c32650f88b159608979dc7b423e/LICENSE.md) | Pinned inspection source; derived parser attribution above. | +| JADX | [Apache-2.0](https://github.com/skylot/jadx/blob/v1.5.6/LICENSE) | The audited jadx-headless-mcp source uses JADX 1.5.6 for Android decompilation; the engine JAR is separately supplied. | +| jadx-headless-mcp | [Apache-2.0](https://github.com/1013503897/jadx-headless-mcp/blob/5844800a486d2248fa949b74c9896285f5b54de2/LICENSE) | v0.7.1; pinned submodule and user-supplied JAR. | +| Apktool | [Apache-2.0](https://github.com/iBotPeaches/Apktool/blob/master/LICENSE.md) | User-supplied Android resource decoder. | +| Binwalk | [MIT](https://github.com/ReFirmLabs/binwalk/blob/4fdab3d464d97b68e0af9088df3f9e2e1545b21c/LICENSE) | v3.1.0; pinned submodule and user-supplied firmware engine. | +| Unblob | [MIT](https://github.com/onekey-sec/unblob/blob/1fcc7a0a584a70a96c31f5a276c20944d199a089/LICENSE) | 26.6.4; pinned submodule and user-supplied firmware engine. | +| Wakaru | [Apache-2.0](https://github.com/pionxzh/wakaru/blob/8219bf5016a063d7fb215101a8c45d5959ec733f/LICENSE) | v1.14.0; pinned source and separately obtained JavaScript reconstruction tooling. | +| WABT | [Apache-2.0](https://github.com/WebAssembly/wabt/blob/ff0ef7e0009402740c805a9744c09b05be063e48/LICENSE) | v1.0.42; external WebAssembly tools; [integration provenance](third_party/wabt/README.md). | +| pwntools | [MIT, with GPL/BSD component qualifications](https://github.com/Gallopsled/pwntools/blob/3ad86ec5adab1abf9781ca7552a6f5d7cff7a33c/LICENSE-pwntools.txt) | 4.15.0; caller-supplied offline ELF analysis package. | +| pyelftools | [Public-domain dedication and component notices](https://github.com/eliben/pyelftools/blob/v0.33/LICENSE) | 0.33; includes separately licensed bundled material, including Construct. | +| Unicorn | [GPL-2.0 and component notices](https://github.com/unicorn-engine/unicorn/blob/2.1.2/COPYING) | 2.1.2; used by the caller-supplied ELF analysis profile for instruction emulation. | +| pwndbg | [MIT](third_party/pwndbg/LICENSE.md) | 2026.09.15, commit `55596aa676a2756efb8d67034f31675170eabe48`; separately obtained debugger extension. | +| GNU GDB | [GPL-3.0-or-later](https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/COPYING) | Caller-supplied debugger for the optional pwndbg core-file workflow. | +| LLDB / LLVM | [Apache-2.0 with LLVM exceptions](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT) | Caller-supplied debugger; the installed distribution's component and historical notices also apply. | +| mitmproxy | [MIT](https://github.com/mitmproxy/mitmproxy/blob/6c09d56e4c29a92f5ad01b03199977584b8ea14f/LICENSE) | 12.2.3; separately supplied network capture proxy. | +| Android Debug Bridge (adb) | [Apache-2.0](https://android.googlesource.com/platform/packages/modules/adb/+/refs/heads/main/NOTICE) | User-supplied Android device tool. A complete Android SDK download has its own [SDK license terms](https://developer.android.com/studio/terms); adb's source license does not replace them. | +| ILSpy / ICSharpCode.Decompiler | [MIT](https://github.com/icsharpcode/ILSpy/blob/master/ICSharpCode.Decompiler/Properties/AssemblyInfo.cs) | Optional separately installed .NET decompiler; not a redistributed REA dependency. | + +Ghidra's original notice credits software developed at the National Security +Agency. It explains that US-government-created portions are not subject to US +copyright protection, while other portions retain their authors' rights. Its +modules include additional third-party licenses, and standalone programs under +`GPL/` have GPLv3 terms. The three retained top-level documents do not replace +the module notices and license directories in a complete Ghidra distribution. +REA is not affiliated with or endorsed by the NSA. + +## Commercial tools and bridges + +**You must legally obtain the tools and the rights needed for your use.** REA +does not include an IDA Pro, Hex-Rays decompiler, Hopper, or JEB license, license +key, or activation entitlement. A permitted trial/demo may be used only within +its official terms. Cracked copies, stolen keys, unauthorized sharing, and +bypassing activation or license limits are not authorized by REA. + +| Project / product | Applicable terms and distinction | +| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| IDA Pro and Hex-Rays decompilers | Proprietary Hex-Rays software governed by the [EULA](https://hex-rays.com/eula), purchase agreement, and applicable license scheme. Obtain rights for the required product, user, machine, decompiler, and automation interfaces. Availability of an API or a bridge does not grant hosting, service, or additional-user rights. | +| ida-pro-mcp | The bridge's [MIT license](https://github.com/mrexodia/ida-pro-mcp/blob/main/LICENSE) belongs to Duncan Ogilvie. It licenses the bridge code, not IDA or Hex-Rays products. Its [README](https://github.com/mrexodia/ida-pro-mcp#prerequisites) requires IDA Pro and explicitly states that IDA Free is unsupported. Follow the prerequisites for the version you actually install. The bridge is separately supplied, not bundled by REA. | +| Hopper Disassembler | Proprietary Cryptic Apps software under its [license agreement](https://www.hopperapp.com/license_agreement.html). Personal and computer licenses have different permitted-user and installation rules; an official evaluation trial is available. REA setup may obtain the official installer after approval, but this grants no paid license or activation entitlement. | +| JEB | Proprietary PNF Software product under its [EULA](https://www.pnfsoftware.com/jeb/LICENSE.TXT) and edition-specific agreement. Check user/seat/server rights and whether your edition permits automation, backend/service integration, and disclosure of generated output. The published EULA restricts public or third-party disclosure of decompiled code, reconstructed artifacts, and analysis reports unless expressly permitted by the license type. | + +The vendor's applicable agreement controls. These summaries do not interpret +your individual contract or expand the rights it grants. Verify permissions +before publishing analysis output, sharing tool access, or operating a service. +Vendor terms above were checked on 2026-10-12. + +## Runtimes, development tooling, and fixtures + +REA uses a caller-supplied Node.js runtime ([MIT and component notices](https://github.com/nodejs/node/blob/main/LICENSE)). +Optional workflows may also use Python ([PSF and component licenses](https://docs.python.org/3/license.html)), +OpenJDK ([GPLv2 with Classpath Exception and component notices](https://openjdk.org/legal/)), +Electron ([MIT and component notices](https://github.com/electron/electron/blob/main/LICENSE)), +or a Chromium-based browser ([BSD-3-Clause and third-party licenses](https://chromium.googlesource.com/chromium/src/+/main/LICENSE)). +These external installations are not licensed or bundled by REA's MIT license. + +Development, test, and website npm packages are included in the locked inventory. +GitHub Actions, operating-system utilities, downloaded verification fixtures, +and their runtimes retain the terms supplied by their publishers. Fixture +identities and provenance are recorded under `scripts/fixtures/` and the +existing `third_party/` records; downloaded executable fixtures are not tracked +or included in the npm package. This notice does not claim to inventory every +dependency of a caller's operating system, agent, or separately installed tool. + +## Maintaining and redistributing notices + +Refresh the dependency inventory and runtime notice collection when the lockfile +changes. Review the actual versions and distributed contents, retain the +upstream license and copyright texts, and account for optional platform +packages. See [licenses/README.md](licenses/README.md) for source provenance, +collection scope, and known upstream notice gaps. + +The npm package includes this document, the `licenses/` directory, and the +existing redistributed license records under `third_party/`. If you additionally +bundle an external engine or modify upstream code, review that actual +distribution and retain its full applicable licenses, copyright notices, +NOTICE files, modification notices, and source obligations. REA's inventory is +not a substitute for those obligations. diff --git a/licenses/Apache-2.0.txt b/licenses/Apache-2.0.txt new file mode 100644 index 000000000..d64569567 --- /dev/null +++ b/licenses/Apache-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/licenses/GCC-Runtime-Library-Exception-3.1.txt b/licenses/GCC-Runtime-Library-Exception-3.1.txt new file mode 100644 index 000000000..e1b3c69c1 --- /dev/null +++ b/licenses/GCC-Runtime-Library-Exception-3.1.txt @@ -0,0 +1,73 @@ +GCC RUNTIME LIBRARY EXCEPTION + +Version 3.1, 31 March 2009 + +Copyright (C) 2009 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this +license document, but changing it is not allowed. + +This GCC Runtime Library Exception ("Exception") is an additional +permission under section 7 of the GNU General Public License, version +3 ("GPLv3"). It applies to a given file (the "Runtime Library") that +bears a notice placed by the copyright holder of the file stating that +the file is governed by GPLv3 along with this Exception. + +When you use GCC to compile a program, GCC may combine portions of +certain GCC header files and runtime libraries with the compiled +program. The purpose of this Exception is to allow compilation of +non-GPL (including proprietary) programs to use, in this way, the +header files and runtime libraries covered by this Exception. + +0. Definitions. + +A file is an "Independent Module" if it either requires the Runtime +Library for execution after a Compilation Process, or makes use of an +interface provided by the Runtime Library, but is not otherwise based +on the Runtime Library. + +"GCC" means a version of the GNU Compiler Collection, with or without +modifications, governed by version 3 (or a specified later version) of +the GNU General Public License (GPL) with the option of using any +subsequent versions published by the FSF. + +"GPL-compatible Software" is software whose conditions of propagation, +modification and use would permit combination with GCC in accord with +the license of GCC. + +"Target Code" refers to output from any compiler for a real or virtual +target processor architecture, in executable form or suitable for +input to an assembler, loader, linker and/or execution +phase. Notwithstanding that, Target Code does not include data in any +format that is used as a compiler intermediate representation, or used +for producing a compiler intermediate representation. + +The "Compilation Process" transforms code entirely represented in +non-intermediate languages designed for human-written code, and/or in +Java Virtual Machine byte code, into Target Code. Thus, for example, +use of source code generators and preprocessors need not be considered +part of the Compilation Process, since the Compilation Process can be +understood as starting with the output of the generators or +preprocessors. + +A Compilation Process is "Eligible" if it is done using GCC, alone or +with other GPL-compatible software, or if it is done without using any +work based on GCC. For example, using non-GPL-compatible Software to +optimize any GCC intermediate representations would not qualify as an +Eligible Compilation Process. + +1. Grant of Additional Permission. + +You have permission to propagate a work of Target Code formed by +combining the Runtime Library with Independent Modules, even if such +propagation would otherwise violate the terms of GPLv3, provided that +all Target Code was generated by Eligible Compilation Processes. You +may then convey such a combination under terms of your choice, +consistent with the licensing of the Independent Modules. + +2. No Weakening of GCC Copyleft. + +The availability of this Exception does not imply any general +presumption that third-party software is unaffected by the copyleft +requirements of the license of GCC. + diff --git a/licenses/GPL-3.0.txt b/licenses/GPL-3.0.txt new file mode 100644 index 000000000..94a9ed024 --- /dev/null +++ b/licenses/GPL-3.0.txt @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/licenses/MIT-template.txt b/licenses/MIT-template.txt new file mode 100644 index 000000000..d817195da --- /dev/null +++ b/licenses/MIT-template.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/licenses/MinGW-w64-runtime.txt b/licenses/MinGW-w64-runtime.txt new file mode 100644 index 000000000..ca6a077e2 --- /dev/null +++ b/licenses/MinGW-w64-runtime.txt @@ -0,0 +1,240 @@ +MinGW-w64 runtime licensing +*************************** + +This program or library was built using MinGW-w64 and statically +linked against the MinGW-w64 runtime. Some parts of the runtime +are under licenses which require that the copyright and license +notices are included when distributing the code in binary form. +These notices are listed below. + + +======================== +Overall copyright notice +======================== + +Copyright (c) 2009, 2010, 2011, 2012, 2013 by the mingw-w64 project + +This license has been certified as open source. It has also been designated +as GPL compatible by the Free Software Foundation (FSF). + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions in source code must retain the accompanying copyright + notice, this list of conditions, and the following disclaimer. + 2. Redistributions in binary form must reproduce the accompanying + copyright notice, this list of conditions, and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + 3. Names of the copyright holders must not be used to endorse or promote + products derived from this software without prior written permission + from the copyright holders. + 4. The right to distribute this software or to use it for any purpose does + not give you the right to use Servicemarks (sm) or Trademarks (tm) of + the copyright holders. Use of them is covered by separate agreement + with the copyright holders. + 5. If any files are modified, you must cause the modified files to carry + prominent notices stating that you changed the files and the date of + any change. + +Disclaimer + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, +OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +======================================== +getopt, getopt_long, and getop_long_only +======================================== + +Copyright (c) 2002 Todd C. Miller + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Sponsored in part by the Defense Advanced Research Projects +Agency (DARPA) and Air Force Research Laboratory, Air Force +Materiel Command, USAF, under agreement number F39502-99-1-0512. + + * * * * * * * + +Copyright (c) 2000 The NetBSD Foundation, Inc. +All rights reserved. + +This code is derived from software contributed to The NetBSD Foundation +by Dieter Baron and Thomas Klausner. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + + +=============================================================== +gdtoa: Converting between IEEE floating point numbers and ASCII +=============================================================== + +The author of this software is David M. Gay. + +Copyright (C) 1997, 1998, 1999, 2000, 2001 by Lucent Technologies +All Rights Reserved + +Permission to use, copy, modify, and distribute this software and +its documentation for any purpose and without fee is hereby +granted, provided that the above copyright notice appear in all +copies and that both that the copyright notice and this +permission notice and warranty disclaimer appear in supporting +documentation, and that the name of Lucent or any of its entities +not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior +permission. + +LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. +IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY +SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER +IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. + + * * * * * * * + +The author of this software is David M. Gay. + +Copyright (C) 2005 by David M. Gay +All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that the copyright notice and this permission notice and warranty +disclaimer appear in supporting documentation, and that the name of +the author or any of his current or former employers not be used in +advertising or publicity pertaining to distribution of the software +without specific, written prior permission. + +THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN +NO EVENT SHALL THE AUTHOR OR ANY OF HIS CURRENT OR FORMER EMPLOYERS BE +LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS +SOFTWARE. + + * * * * * * * + +The author of this software is David M. Gay. + +Copyright (C) 2004 by David M. Gay. +All Rights Reserved +Based on material in the rest of /netlib/fp/gdota.tar.gz, +which is copyright (C) 1998, 2000 by Lucent Technologies. + +Permission to use, copy, modify, and distribute this software and +its documentation for any purpose and without fee is hereby +granted, provided that the above copyright notice appear in all +copies and that both that the copyright notice and this +permission notice and warranty disclaimer appear in supporting +documentation, and that the name of Lucent or any of its entities +not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior +permission. + +LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. +IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY +SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER +IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. + + +========================= +Parts of the math library +========================= + +Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + +Developed at SunSoft, a Sun Microsystems, Inc. business. +Permission to use, copy, modify, and distribute this +software is freely granted, provided that this notice +is preserved. + + * * * * * * * + +Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + +Developed at SunPro, a Sun Microsystems, Inc. business. +Permission to use, copy, modify, and distribute this +software is freely granted, provided that this notice +is preserved. + + * * * * * * * + +FIXME: Cephes math lib +Copyright (C) 1984-1998 Stephen L. Moshier + +It sounds vague, but as to be found at +, it gives an +impression that the author could be willing to give an explicit +permission to distribute those files e.g. under a BSD style license. So +probably there is no problem here, although it could be good to get a +permission from the author and then add a license into the Cephes files +in MinGW runtime. At least on follow-up it is marked that debian sees the +version a-like BSD one. As MinGW.org (where those cephes parts are coming +from) distributes them now over 6 years, it should be fine. + +=================================== +Headers and IDLs imported from Wine +=================================== + +Some header and IDL files were imported from the Wine project. These files +are prominent maked in source. Their copyright belongs to contributors and +they are distributed under LGPL license. + +Disclaimer + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. diff --git a/licenses/Node-22.19.0-LICENSE.txt b/licenses/Node-22.19.0-LICENSE.txt new file mode 100644 index 000000000..bed41c4c0 --- /dev/null +++ b/licenses/Node-22.19.0-LICENSE.txt @@ -0,0 +1,2666 @@ +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +The Node.js license applies to all parts of Node.js that are not externally +maintained libraries. + +The externally maintained libraries used by Node.js are: + +- Acorn, located at deps/acorn, is licensed as follows: + """ + MIT License + + Copyright (C) 2012-2022 by various contributors (see AUTHORS) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + """ + +- c-ares, located at deps/cares, is licensed as follows: + """ + MIT License + + Copyright (c) 1998 Massachusetts Institute of Technology + Copyright (c) 2007 - 2023 Daniel Stenberg with many contributors, see AUTHORS + file. + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice (including the next + paragraph) shall be included in all copies or substantial portions of the + Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ + +- cjs-module-lexer, located at deps/cjs-module-lexer, is licensed as follows: + """ + MIT License + ----------- + + Copyright (C) 2018-2020 Guy Bedford + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- ittapi, located at deps/v8/third_party/ittapi, is licensed as follows: + """ + Copyright (c) 2019 Intel Corporation. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- amaro, located at deps/amaro, is licensed as follows: + """ + MIT License + + Copyright (c) Marco Ippolito and Amaro contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ + +- swc, located at deps/amaro/dist, is licensed as follows: + """ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2024 SWC contributors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + """ + +- ICU, located at deps/icu-small, is licensed as follows: + """ + UNICODE LICENSE V3 + + COPYRIGHT AND PERMISSION NOTICE + + Copyright © 2016-2025 Unicode, Inc. + + NOTICE TO USER: Carefully read the following legal agreement. BY + DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR + SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE + TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT + DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of data files and any associated documentation (the "Data Files") or + software and any associated documentation (the "Software") to deal in the + Data Files or Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, and/or sell + copies of the Data Files or Software, and to permit persons to whom the + Data Files or Software are furnished to do so, provided that either (a) + this copyright and permission notice appear with all copies of the Data + Files or Software, or (b) this copyright and permission notice appear in + associated Documentation. + + THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY + KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF + THIRD PARTY RIGHTS. + + IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE + BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, + OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA + FILES OR SOFTWARE. + + Except as contained in this notice, the name of a copyright holder shall + not be used in advertising or otherwise to promote the sale, use or other + dealings in these Data Files or Software without prior written + authorization of the copyright holder. + + SPDX-License-Identifier: Unicode-3.0 + + ---------------------------------------------------------------------- + + Third-Party Software Licenses + + This section contains third-party software notices and/or additional + terms for licensed third-party software components included within ICU + libraries. + + ---------------------------------------------------------------------- + + ICU License - ICU 1.8.1 to ICU 57.1 + + COPYRIGHT AND PERMISSION NOTICE + + Copyright (c) 1995-2016 International Business Machines Corporation and others + All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, and/or sell copies of the Software, and to permit persons + to whom the Software is furnished to do so, provided that the above + copyright notice(s) and this permission notice appear in all copies of + the Software and that both the above copyright notice(s) and this + permission notice appear in supporting documentation. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT + OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR + HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY + SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + Except as contained in this notice, the name of a copyright holder + shall not be used in advertising or otherwise to promote the sale, use + or other dealings in this Software without prior written authorization + of the copyright holder. + + All trademarks and registered trademarks mentioned herein are the + property of their respective owners. + + ---------------------------------------------------------------------- + + Chinese/Japanese Word Break Dictionary Data (cjdict.txt) + + # The Google Chrome software developed by Google is licensed under + # the BSD license. Other software included in this distribution is + # provided under other licenses, as set forth below. + # + # The BSD License + # http://opensource.org/licenses/bsd-license.php + # Copyright (C) 2006-2008, Google Inc. + # + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions are met: + # + # Redistributions of source code must retain the above copyright notice, + # this list of conditions and the following disclaimer. + # Redistributions in binary form must reproduce the above + # copyright notice, this list of conditions and the following + # disclaimer in the documentation and/or other materials provided with + # the distribution. + # Neither the name of Google Inc. nor the names of its + # contributors may be used to endorse or promote products derived from + # this software without specific prior written permission. + # + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + # + # + # The word list in cjdict.txt are generated by combining three word lists + # listed below with further processing for compound word breaking. The + # frequency is generated with an iterative training against Google web + # corpora. + # + # * Libtabe (Chinese) + # - https://sourceforge.net/project/?group_id=1519 + # - Its license terms and conditions are shown below. + # + # * IPADIC (Japanese) + # - http://chasen.aist-nara.ac.jp/chasen/distribution.html + # - Its license terms and conditions are shown below. + # + # ---------COPYING.libtabe ---- BEGIN-------------------- + # + # /* + # * Copyright (c) 1999 TaBE Project. + # * Copyright (c) 1999 Pai-Hsiang Hsiao. + # * All rights reserved. + # * + # * Redistribution and use in source and binary forms, with or without + # * modification, are permitted provided that the following conditions + # * are met: + # * + # * . Redistributions of source code must retain the above copyright + # * notice, this list of conditions and the following disclaimer. + # * . Redistributions in binary form must reproduce the above copyright + # * notice, this list of conditions and the following disclaimer in + # * the documentation and/or other materials provided with the + # * distribution. + # * . Neither the name of the TaBE Project nor the names of its + # * contributors may be used to endorse or promote products derived + # * from this software without specific prior written permission. + # * + # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + # * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # * OF THE POSSIBILITY OF SUCH DAMAGE. + # */ + # + # /* + # * Copyright (c) 1999 Computer Systems and Communication Lab, + # * Institute of Information Science, Academia + # * Sinica. All rights reserved. + # * + # * Redistribution and use in source and binary forms, with or without + # * modification, are permitted provided that the following conditions + # * are met: + # * + # * . Redistributions of source code must retain the above copyright + # * notice, this list of conditions and the following disclaimer. + # * . Redistributions in binary form must reproduce the above copyright + # * notice, this list of conditions and the following disclaimer in + # * the documentation and/or other materials provided with the + # * distribution. + # * . Neither the name of the Computer Systems and Communication Lab + # * nor the names of its contributors may be used to endorse or + # * promote products derived from this software without specific + # * prior written permission. + # * + # * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + # * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # * OF THE POSSIBILITY OF SUCH DAMAGE. + # */ + # + # Copyright 1996 Chih-Hao Tsai @ Beckman Institute, + # University of Illinois + # c-tsai4@uiuc.edu http://casper.beckman.uiuc.edu/~c-tsai4 + # + # ---------------COPYING.libtabe-----END-------------------------------- + # + # + # ---------------COPYING.ipadic-----BEGIN------------------------------- + # + # Copyright 2000, 2001, 2002, 2003 Nara Institute of Science + # and Technology. All Rights Reserved. + # + # Use, reproduction, and distribution of this software is permitted. + # Any copy of this software, whether in its original form or modified, + # must include both the above copyright notice and the following + # paragraphs. + # + # Nara Institute of Science and Technology (NAIST), + # the copyright holders, disclaims all warranties with regard to this + # software, including all implied warranties of merchantability and + # fitness, in no event shall NAIST be liable for + # any special, indirect or consequential damages or any damages + # whatsoever resulting from loss of use, data or profits, whether in an + # action of contract, negligence or other tortuous action, arising out + # of or in connection with the use or performance of this software. + # + # A large portion of the dictionary entries + # originate from ICOT Free Software. The following conditions for ICOT + # Free Software applies to the current dictionary as well. + # + # Each User may also freely distribute the Program, whether in its + # original form or modified, to any third party or parties, PROVIDED + # that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear + # on, or be attached to, the Program, which is distributed substantially + # in the same form as set out herein and that such intended + # distribution, if actually made, will neither violate or otherwise + # contravene any of the laws and regulations of the countries having + # jurisdiction over the User or the intended distribution itself. + # + # NO WARRANTY + # + # The program was produced on an experimental basis in the course of the + # research and development conducted during the project and is provided + # to users as so produced on an experimental basis. Accordingly, the + # program is provided without any warranty whatsoever, whether express, + # implied, statutory or otherwise. The term "warranty" used herein + # includes, but is not limited to, any warranty of the quality, + # performance, merchantability and fitness for a particular purpose of + # the program and the nonexistence of any infringement or violation of + # any right of any third party. + # + # Each user of the program will agree and understand, and be deemed to + # have agreed and understood, that there is no warranty whatsoever for + # the program and, accordingly, the entire risk arising from or + # otherwise connected with the program is assumed by the user. + # + # Therefore, neither ICOT, the copyright holder, or any other + # organization that participated in or was otherwise related to the + # development of the program and their respective officials, directors, + # officers and other employees shall be held liable for any and all + # damages, including, without limitation, general, special, incidental + # and consequential damages, arising out of or otherwise in connection + # with the use or inability to use the program or any product, material + # or result produced or otherwise obtained by using the program, + # regardless of whether they have been advised of, or otherwise had + # knowledge of, the possibility of such damages at any time during the + # project or thereafter. Each user will be deemed to have agreed to the + # foregoing by his or her commencement of use of the program. The term + # "use" as used herein includes, but is not limited to, the use, + # modification, copying and distribution of the program and the + # production of secondary products from the program. + # + # In the case where the program, whether in its original form or + # modified, was distributed or delivered to or received by a user from + # any person, organization or entity other than ICOT, unless it makes or + # grants independently of ICOT any specific warranty to the user in + # writing, such person, organization or entity, will also be exempted + # from and not be held liable to the user for any such damages as noted + # above as far as the program is concerned. + # + # ---------------COPYING.ipadic-----END---------------------------------- + + ---------------------------------------------------------------------- + + Lao Word Break Dictionary Data (laodict.txt) + + # Copyright (C) 2016 and later: Unicode, Inc. and others. + # License & terms of use: http://www.unicode.org/copyright.html + # Copyright (c) 2015 International Business Machines Corporation + # and others. All Rights Reserved. + # + # Project: https://github.com/rober42539/lao-dictionary + # Dictionary: https://github.com/rober42539/lao-dictionary/laodict.txt + # License: https://github.com/rober42539/lao-dictionary/LICENSE.txt + # (copied below) + # + # This file is derived from the above dictionary version of Nov 22, 2020 + # ---------------------------------------------------------------------- + # Copyright (C) 2013 Brian Eugene Wilson, Robert Martin Campbell. + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions are met: + # + # Redistributions of source code must retain the above copyright notice, this + # list of conditions and the following disclaimer. Redistributions in binary + # form must reproduce the above copyright notice, this list of conditions and + # the following disclaimer in the documentation and/or other materials + # provided with the distribution. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + # OF THE POSSIBILITY OF SUCH DAMAGE. + # -------------------------------------------------------------------------- + + ---------------------------------------------------------------------- + + Burmese Word Break Dictionary Data (burmesedict.txt) + + # Copyright (c) 2014 International Business Machines Corporation + # and others. All Rights Reserved. + # + # This list is part of a project hosted at: + # github.com/kanyawtech/myanmar-karen-word-lists + # + # -------------------------------------------------------------------------- + # Copyright (c) 2013, LeRoy Benjamin Sharon + # All rights reserved. + # + # Redistribution and use in source and binary forms, with or without + # modification, are permitted provided that the following conditions + # are met: Redistributions of source code must retain the above + # copyright notice, this list of conditions and the following + # disclaimer. Redistributions in binary form must reproduce the + # above copyright notice, this list of conditions and the following + # disclaimer in the documentation and/or other materials provided + # with the distribution. + # + # Neither the name Myanmar Karen Word Lists, nor the names of its + # contributors may be used to endorse or promote products derived + # from this software without specific prior written permission. + # + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS + # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF + # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + # SUCH DAMAGE. + # -------------------------------------------------------------------------- + + ---------------------------------------------------------------------- + + Time Zone Database + + ICU uses the public domain data and code derived from Time Zone + Database for its time zone support. The ownership of the TZ database + is explained in BCP 175: Procedure for Maintaining the Time Zone + Database section 7. + + # 7. Database Ownership + # + # The TZ database itself is not an IETF Contribution or an IETF + # document. Rather it is a pre-existing and regularly updated work + # that is in the public domain, and is intended to remain in the + # public domain. Therefore, BCPs 78 [RFC5378] and 79 [RFC3979] do + # not apply to the TZ Database or contributions that individuals make + # to it. Should any claims be made and substantiated against the TZ + # Database, the organization that is providing the IANA + # Considerations defined in this RFC, under the memorandum of + # understanding with the IETF, currently ICANN, may act in accordance + # with all competent court orders. No ownership claims will be made + # by ICANN or the IETF Trust on the database or the code. Any person + # making a contribution to the database or code waives all rights to + # future claims in that contribution or in the TZ Database. + + ---------------------------------------------------------------------- + + Google double-conversion + + Copyright 2006-2011, the V8 project authors. All rights reserved. + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ---------------------------------------------------------------------- + + JSON parsing library (nlohmann/json) + + File: vendor/json/upstream/single_include/nlohmann/json.hpp (only for ICU4C) + + MIT License + + Copyright (c) 2013-2022 Niels Lohmann + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + + ---------------------------------------------------------------------- + + File: aclocal.m4 (only for ICU4C) + Section: pkg.m4 - Macros to locate and utilise pkg-config. + + Copyright © 2004 Scott James Remnant . + Copyright © 2012-2015 Dan Nicholson + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + + As a special exception to the GNU General Public License, if you + distribute this file as part of a program that contains a + configuration script generated by Autoconf, you may include it under + the same distribution terms that you use for the rest of that + program. + + (The condition for the exception is fulfilled because + ICU4C includes a configuration script generated by Autoconf, + namely the `configure` script.) + + ---------------------------------------------------------------------- + + File: config.guess (only for ICU4C) + + This file is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, see . + + As a special exception to the GNU General Public License, if you + distribute this file as part of a program that contains a + configuration script generated by Autoconf, you may include it under + the same distribution terms that you use for the rest of that + program. This Exception is an additional permission under section 7 + of the GNU General Public License, version 3 ("GPLv3"). + + (The condition for the exception is fulfilled because + ICU4C includes a configuration script generated by Autoconf, + namely the `configure` script.) + + ---------------------------------------------------------------------- + + File: install-sh (only for ICU4C) + + Copyright 1991 by the Massachusetts Institute of Technology + + Permission to use, copy, modify, distribute, and sell this software and its + documentation for any purpose is hereby granted without fee, provided that + the above copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name of M.I.T. not be used in advertising or + publicity pertaining to distribution of the software without specific, + written prior permission. M.I.T. makes no representations about the + suitability of this software for any purpose. It is provided "as is" + without express or implied warranty. + """ + +- libuv, located at deps/uv, is licensed as follows: + """ + Copyright (c) 2015-present libuv project contributors. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + This license applies to parts of libuv originating from the + https://github.com/joyent/libuv repository: + + ==== + + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + + ==== + + This license applies to all parts of libuv that are not externally + maintained libraries. + + The externally maintained libraries used by libuv are: + + - tree.h (from FreeBSD), copyright Niels Provos. Two clause BSD license. + + - inet_pton and inet_ntop implementations, contained in src/inet.c, are + copyright the Internet Systems Consortium, Inc., and licensed under the ISC + license. + """ + +- llhttp, located at deps/llhttp, is licensed as follows: + """ + This software is licensed under the MIT License. + + Copyright Fedor Indutny, 2018. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- corepack, located at deps/corepack, is licensed as follows: + """ + **Copyright © Corepack contributors** + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- undici, located at deps/undici, is licensed as follows: + """ + MIT License + + Copyright (c) Matteo Collina and Undici contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ + +- postject, located at test/fixtures/postject-copy, is licensed as follows: + """ + Postject is licensed for use as follows: + + """ + MIT License + + Copyright (c) 2022 Postman, Inc + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ + + The Postject license applies to all parts of Postject that are not externally + maintained libraries. + + The externally maintained libraries used by Postject are: + + - LIEF, located at vendor/LIEF, is licensed as follows: + """ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017 - 2022 R. Thomas + Copyright 2017 - 2022 Quarkslab + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + """ + """ + +- OpenSSL, located at deps/openssl, is licensed as follows: + """ + Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + """ + +- Punycode.js, located at lib/punycode.js, is licensed as follows: + """ + Copyright Mathias Bynens + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- V8, located at deps/v8, is licensed as follows: + """ + This license applies to all parts of V8 that are not externally + maintained libraries. The externally maintained libraries used by V8 + are: + + - PCRE test suite, located in + test/mjsunit/third_party/regexp-pcre/regexp-pcre.js. This is based on the + test suite from PCRE-7.3, which is copyrighted by the University + of Cambridge and Google, Inc. The copyright notice and license + are embedded in regexp-pcre.js. + + - Layout tests, located in test/mjsunit/third_party/object-keys. These are + based on layout tests from webkit.org which are copyrighted by + Apple Computer, Inc. and released under a 3-clause BSD license. + + - Strongtalk assembler, the basis of the files assembler-arm-inl.h, + assembler-arm.cc, assembler-arm.h, assembler-ia32-inl.h, + assembler-ia32.cc, assembler-ia32.h, assembler-x64-inl.h, + assembler-x64.cc, assembler-x64.h, assembler.cc and assembler.h. + This code is copyrighted by Sun Microsystems Inc. and released + under a 3-clause BSD license. + + - Valgrind client API header, located at src/third_party/valgrind/valgrind.h + This is released under the BSD license. + + - The Wasm C/C++ API headers, located at third_party/wasm-api/wasm.{h,hh} + This is released under the Apache license. The API's upstream prototype + implementation also formed the basis of V8's implementation in + src/wasm/c-api.cc. + + These libraries have their own licenses; we recommend you read them, + as their terms may differ from the terms below. + + Further license information can be found in LICENSE files located in + sub-directories. + + Copyright 2014, the V8 project authors. All rights reserved. + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- SipHash, located at deps/v8/src/third_party/siphash, is licensed as follows: + """ + SipHash reference C implementation + + Copyright (c) 2016 Jean-Philippe Aumasson + + To the extent possible under law, the author(s) have dedicated all + copyright and related and neighboring rights to this software to the public + domain worldwide. This software is distributed without any warranty. + """ + +- zlib, located at deps/zlib, is licensed as follows: + """ + zlib.h -- interface of the 'zlib' general purpose compression library + version 1.3.1, January 22nd, 2024 + + Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + """ + +- simdjson, located at deps/simdjson, is licensed as follows: + """ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2025 The simdjson authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + """ + +- simdutf, located at deps/simdutf, is licensed as follows: + """ + Copyright 2021 The simdutf authors + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- ada, located at deps/ada, is licensed as follows: + """ + Copyright 2023 Yagiz Nizipli and Daniel Lemire + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + the Software, and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- minimatch, located at deps/minimatch, is licensed as follows: + """ + The ISC License + + Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + """ + +- npm, located at deps/npm, is licensed as follows: + """ + The npm application + Copyright (c) npm, Inc. and Contributors + Licensed on the terms of The Artistic License 2.0 + + Node package dependencies of the npm application + Copyright (c) their respective copyright owners + Licensed on their respective license terms + + The npm public registry at https://registry.npmjs.org + and the npm website at https://www.npmjs.com + Operated by npm, Inc. + Use governed by terms published on https://www.npmjs.com + + "Node.js" + Trademark Joyent, Inc., https://joyent.com + Neither npm nor npm, Inc. are affiliated with Joyent, Inc. + + The Node.js application + Project of Node Foundation, https://nodejs.org + + The npm Logo + Copyright (c) Mathias Pettersson and Brian Hammond + + "Gubblebum Blocky" typeface + Copyright (c) Tjarda Koster, https://jelloween.deviantart.com + Used with permission + + -------- + + The Artistic License 2.0 + + Copyright (c) 2000-2006, The Perl Foundation. + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + This license establishes the terms under which a given free software + Package may be copied, modified, distributed, and/or redistributed. + The intent is that the Copyright Holder maintains some artistic + control over the development of that Package while still keeping the + Package available as open source and free software. + + You are always permitted to make arrangements wholly outside of this + license directly with the Copyright Holder of a given Package. If the + terms of this license do not permit the full use that you propose to + make of the Package, you should contact the Copyright Holder and seek + a different licensing arrangement. + + Definitions + + "Copyright Holder" means the individual(s) or organization(s) + named in the copyright notice for the entire Package. + + "Contributor" means any party that has contributed code or other + material to the Package, in accordance with the Copyright Holder's + procedures. + + "You" and "your" means any person who would like to copy, + distribute, or modify the Package. + + "Package" means the collection of files distributed by the + Copyright Holder, and derivatives of that collection and/or of + those files. A given Package may consist of either the Standard + Version, or a Modified Version. + + "Distribute" means providing a copy of the Package or making it + accessible to anyone else, or in the case of a company or + organization, to others outside of your company or organization. + + "Distributor Fee" means any fee that you charge for Distributing + this Package or providing support for this Package to another + party. It does not mean licensing fees. + + "Standard Version" refers to the Package if it has not been + modified, or has been modified only in ways explicitly requested + by the Copyright Holder. + + "Modified Version" means the Package, if it has been changed, and + such changes were not explicitly requested by the Copyright + Holder. + + "Original License" means this Artistic License as Distributed with + the Standard Version of the Package, in its current version or as + it may be modified by The Perl Foundation in the future. + + "Source" form means the source code, documentation source, and + configuration files for the Package. + + "Compiled" form means the compiled bytecode, object code, binary, + or any other form resulting from mechanical transformation or + translation of the Source form. + + Permission for Use and Modification Without Distribution + + (1) You are permitted to use the Standard Version and create and use + Modified Versions for any purpose without restriction, provided that + you do not Distribute the Modified Version. + + Permissions for Redistribution of the Standard Version + + (2) You may Distribute verbatim copies of the Source form of the + Standard Version of this Package in any medium without restriction, + either gratis or for a Distributor Fee, provided that you duplicate + all of the original copyright notices and associated disclaimers. At + your discretion, such verbatim copies may or may not include a + Compiled form of the Package. + + (3) You may apply any bug fixes, portability changes, and other + modifications made available from the Copyright Holder. The resulting + Package will still be considered the Standard Version, and as such + will be subject to the Original License. + + Distribution of Modified Versions of the Package as Source + + (4) You may Distribute your Modified Version as Source (either gratis + or for a Distributor Fee, and with or without a Compiled form of the + Modified Version) provided that you clearly document how it differs + from the Standard Version, including, but not limited to, documenting + any non-standard features, executables, or modules, and provided that + you do at least ONE of the following: + + (a) make the Modified Version available to the Copyright Holder + of the Standard Version, under the Original License, so that the + Copyright Holder may include your modifications in the Standard + Version. + + (b) ensure that installation of your Modified Version does not + prevent the user installing or running the Standard Version. In + addition, the Modified Version must bear a name that is different + from the name of the Standard Version. + + (c) allow anyone who receives a copy of the Modified Version to + make the Source form of the Modified Version available to others + under + + (i) the Original License or + + (ii) a license that permits the licensee to freely copy, + modify and redistribute the Modified Version using the same + licensing terms that apply to the copy that the licensee + received, and requires that the Source form of the Modified + Version, and of any works derived from it, be made freely + available in that license fees are prohibited but Distributor + Fees are allowed. + + Distribution of Compiled Forms of the Standard Version + or Modified Versions without the Source + + (5) You may Distribute Compiled forms of the Standard Version without + the Source, provided that you include complete instructions on how to + get the Source of the Standard Version. Such instructions must be + valid at the time of your distribution. If these instructions, at any + time while you are carrying out such distribution, become invalid, you + must provide new instructions on demand or cease further distribution. + If you provide valid instructions or cease distribution within thirty + days after you become aware that the instructions are invalid, then + you do not forfeit any of your rights under this license. + + (6) You may Distribute a Modified Version in Compiled form without + the Source, provided that you comply with Section 4 with respect to + the Source of the Modified Version. + + Aggregating or Linking the Package + + (7) You may aggregate the Package (either the Standard Version or + Modified Version) with other packages and Distribute the resulting + aggregation provided that you do not charge a licensing fee for the + Package. Distributor Fees are permitted, and licensing fees for other + components in the aggregation are permitted. The terms of this license + apply to the use and Distribution of the Standard or Modified Versions + as included in the aggregation. + + (8) You are permitted to link Modified and Standard Versions with + other works, to embed the Package in a larger work of your own, or to + build stand-alone binary or bytecode versions of applications that + include the Package, and Distribute the result without restriction, + provided the result does not expose a direct interface to the Package. + + Items That are Not Considered Part of a Modified Version + + (9) Works (including, but not limited to, modules and scripts) that + merely extend or make use of the Package, do not, by themselves, cause + the Package to be a Modified Version. In addition, such works are not + considered parts of the Package itself, and are not subject to the + terms of this license. + + General Provisions + + (10) Any use, modification, and distribution of the Standard or + Modified Versions is governed by this Artistic License. By using, + modifying or distributing the Package, you accept this license. Do not + use, modify, or distribute the Package, if you do not accept this + license. + + (11) If your Modified Version has been derived from a Modified + Version made by someone other than you, you are nevertheless required + to ensure that your Modified Version complies with the requirements of + this license. + + (12) This license does not grant you the right to use any trademark, + service mark, tradename, or logo of the Copyright Holder. + + (13) This license includes the non-exclusive, worldwide, + free-of-charge patent license to make, have made, use, offer to sell, + sell, import and otherwise transfer the Package with respect to any + patent claims licensable by the Copyright Holder that are necessarily + infringed by the Package. If you institute patent litigation + (including a cross-claim or counterclaim) against any party alleging + that the Package constitutes direct or contributory patent + infringement, then this Artistic License to you shall terminate on the + date that such litigation is filed. + + (14) Disclaimer of Warranty: + THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS + IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED + WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR + NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL + LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL + DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + -------- + """ + +- GYP, located at tools/gyp, is licensed as follows: + """ + Copyright (c) 2020 Node.js contributors. All rights reserved. + Copyright (c) 2009 Google Inc. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- inspector_protocol, located at deps/inspector_protocol, is licensed as follows: + """ + // Copyright 2016 The Chromium Authors. + // + // Redistribution and use in source and binary forms, with or without + // modification, are permitted provided that the following conditions are + // met: + // + // * Redistributions of source code must retain the above copyright + // notice, this list of conditions and the following disclaimer. + // * Redistributions in binary form must reproduce the above + // copyright notice, this list of conditions and the following disclaimer + // in the documentation and/or other materials provided with the + // distribution. + // * Neither the name of Google Inc. nor the names of its + // contributors may be used to endorse or promote products derived from + // this software without specific prior written permission. + // + // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- jinja2, located at tools/inspector_protocol/jinja2, is licensed as follows: + """ + Copyright (c) 2009 by the Jinja Team, see AUTHORS for more details. + + Some rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * The names of the contributors may not be used to endorse or + promote products derived from this software without specific + prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- markupsafe, located at tools/inspector_protocol/markupsafe, is licensed as follows: + """ + Copyright (c) 2010 by Armin Ronacher and contributors. See AUTHORS + for more details. + + Some rights reserved. + + Redistribution and use in source and binary forms of the software as well + as documentation, with or without modification, are permitted provided + that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * The names of the contributors may not be used to endorse or + promote products derived from this software without specific + prior written permission. + + THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. + """ + +- cpplint.py, located at tools/cpplint.py, is licensed as follows: + """ + Copyright (c) 2009 Google Inc. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- gypi_to_gn.py, located at tools/gypi_to_gn.py, is licensed as follows: + """ + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + * Neither the name of Google LLC nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- gtest, located at deps/googletest, is licensed as follows: + """ + Copyright 2008, Google Inc. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- nghttp2, located at deps/nghttp2, is licensed as follows: + """ + The MIT License + + Copyright (c) 2012, 2014, 2015, 2016 Tatsuhiro Tsujikawa + Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- large_pages, located at src/large_pages, is licensed as follows: + """ + Copyright (C) 2018 Intel Corporation + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom + the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES + OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE + OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- caja, located at lib/internal/freeze_intrinsics.js, is licensed as follows: + """ + Adapted from SES/Caja - Copyright (C) 2011 Google Inc. + Copyright (C) 2018 Agoric + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + """ + +- brotli, located at deps/brotli, is licensed as follows: + """ + Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + """ + +- zstd, located at deps/zstd, is licensed as follows: + """ + BSD License + + For Zstandard software + + Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook, nor Meta, nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """ + +- HdrHistogram, located at deps/histogram, is licensed as follows: + """ + The code in this repository code was Written by Gil Tene, Michael Barker, + and Matt Warren, and released to the public domain, as explained at + http://creativecommons.org/publicdomain/zero/1.0/ + + For users of this code who wish to consume it under the "BSD" license + rather than under the public domain or CC0 contribution text mentioned + above, the code found under this directory is *also* provided under the + following license (commonly referred to as the BSD 2-Clause License). This + license does not detract from the above stated release of the code into + the public domain, and simply represents an additional license granted by + the Author. + + ----------------------------------------------------------------------------- + ** Beginning of "BSD 2-Clause License" text. ** + + Copyright (c) 2012, 2013, 2014 Gil Tene + Copyright (c) 2014 Michael Barker + Copyright (c) 2014 Matt Warren + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + THE POSSIBILITY OF SUCH DAMAGE. + """ + +- node-heapdump, located at src/heap_utils.cc, is licensed as follows: + """ + ISC License + + Copyright (c) 2012, Ben Noordhuis + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + === src/compat.h src/compat-inl.h === + + ISC License + + Copyright (c) 2014, StrongLoop Inc. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + """ + +- rimraf, located at lib/internal/fs/rimraf.js, is licensed as follows: + """ + The ISC License + + Copyright (c) Isaac Z. Schlueter and Contributors + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + """ + +- uvwasi, located at deps/uvwasi, is licensed as follows: + """ + MIT License + + Copyright (c) 2019 Colin Ihrig and Contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ + +- ngtcp2, located at deps/ngtcp2/ngtcp2/, is licensed as follows: + """ + The MIT License + + Copyright (c) 2016 ngtcp2 contributors + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- nghttp3, located at deps/ngtcp2/nghttp3/, is licensed as follows: + """ + The MIT License + + Copyright (c) 2019 nghttp3 contributors + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- node-fs-extra, located at lib/internal/fs/cp, is licensed as follows: + """ + (The MIT License) + + Copyright (c) 2011-2017 JP Richardson + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files + (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, + merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS + OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + """ + +- on-exit-leak-free, located at lib/internal/process/finalization, is licensed as follows: + """ + MIT License + + Copyright (c) 2021 Matteo Collina + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ + +- sonic-boom, located at lib/internal/streams/fast-utf8-stream.js, is licensed as follows: + """ + MIT License + + Copyright (c) 2017 Matteo Collina + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ diff --git a/licenses/README.md b/licenses/README.md new file mode 100644 index 000000000..db0c9d05e --- /dev/null +++ b/licenses/README.md @@ -0,0 +1,54 @@ +# Preserved licenses and attribution + +Start with [THIRD_PARTY_NOTICES.md](../THIRD_PARTY_NOTICES.md) for the distinction +between distributed material and separately obtained tools. These files retain +upstream texts; they do not change [REA's MIT license](../LICENSE). + +| Files | Provenance and scope | +| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `npm-dependencies.txt` | Every package path in the root lockfile, with its exact version, declared license, scope, download URL, and integrity. Includes development and optional platform entries. | +| `npm-runtime-notices.txt` | Original license, copyright, and NOTICE texts collected from integrity-verified locked runtime npm archives across all platforms; also the license of Rolldown's generated runtime helpers. The archive manifest's name and version are checked. | +| `nativeaot-parser-MIT.txt` | Original Washi notice for derived NativeAOT parser code; source revision is recorded in the parser and the root notices. | +| `dotnet-runtime-MIT.txt` | Original .NET Foundation MIT text from the NativeAOT reference revision `a3b2d40328be0be3f8dd43f0e5cc925b8827b044`. | +| `ghidra-12.1.4-{LICENSE,NOTICE,DISCLAIMER}.txt` | Unchanged top-level documents from `Ghidra_12.1.4_build`. Ghidra is not bundled; these reference copies do not replace its component and GPL support-program notices. The US-government-specific disclaimer applies to Ghidra, not to REA. | +| `cfworker-MIT.txt`, `xterm-MIT.txt` | Original notices missing from their published runtime npm archives, recovered from the releases' upstream Git revisions. They are included in the corresponding runtime entries. | +| `Apache-2.0.txt`, `MIT-template.txt` | Standard license texts for explicitly documented upstream notice gaps. The MIT placeholders are not an attribution to an inferred author or year. | +| `MinGW-w64-runtime.txt` | Upstream's combined runtime copyright and license notices, snapshot from v12.0.0, for the statically linked Windows addon. This is a notice snapshot, not a pin of the compiler used in release CI. | +| `GPL-3.0.txt`, `GCC-Runtime-Library-Exception-3.1.txt` | Unchanged GPLv3 and GCC runtime exception texts from GCC 14.2.0. The exception permits eligible compiled combinations under its conditions; the runtime keeps its own license. This snapshot does not assert that every release uses GCC 14.2.0. | +| `Node-22.19.0-LICENSE.txt` | The original Node 22.19.0 license and third-party notices. The Windows addon uses Node-API headers from that release; the complete Node runtime and all components listed in this reference document are not bundled. | +| `upstream-sources.json` | Source URLs and SHA-256 digests for the new unchanged reference and supplemental texts. These digests identify the preserved local texts. | + +Additional preserved originals live at +[evmole/LICENSE](../third_party/evmole/LICENSE), +[pwndbg/LICENSE.md](../third_party/pwndbg/LICENSE.md), and +[the website dinosaur notice](../website/public/assets/licenses/dinosaur.txt). + +## Collection scope and maintenance + +The inventory and runtime texts were prepared from the root lockfile. The +collection downloaded the locked npm archives, checked their lockfile +integrity and package identity, and read license/NOTICE/copyright documents +without installing packages or executing lifecycle scripts. It includes +optional platform packages that may not be present in one local installation. +Temporary archives were removed after collection. + +For releases that omit original documents, the collection uses pinned upstream +texts, embedded source/README license sections, or the same release's parent +notice for the `@lydell/node-pty` prebuilt family. `evmole@0.9.3` uses the existing +preserved upstream license. `clean-git-ref@2.0.1` and `minimisted@2.0.1` provide +only license and author metadata: their missing original copyright documents +remain explicitly identified in the runtime texts. Do not describe those +entries as complete recovered attribution. + +These records do not establish the legal accuracy of upstream metadata or +prove that every upstream source-file attribution has been supplied in an +archive. Review and refresh them when dependencies change; compare reference +texts with the sources and SHA-256 digests in `upstream-sources.json`. + +When updating engines, copied code, website assets, or the Windows release +toolchain, review their actual upstream notices as well. The Linux MinGW-w64 +compiler in release CI is not version-pinned by REA: compare its installed +runtime/component notices with the retained snapshots and update them if they +differ. Do not assume that a compiler change leaves redistribution requirements +unchanged. Preserve applicable originals with any additionally bundled engine; +top-level reference copies alone may not cover its entire distribution. diff --git a/licenses/cfworker-MIT.txt b/licenses/cfworker-MIT.txt new file mode 100644 index 000000000..85bcd787b --- /dev/null +++ b/licenses/cfworker-MIT.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Jeremy Danyow + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/licenses/dotnet-runtime-MIT.txt b/licenses/dotnet-runtime-MIT.txt new file mode 100644 index 000000000..984713a49 --- /dev/null +++ b/licenses/dotnet-runtime-MIT.txt @@ -0,0 +1,23 @@ +The MIT License (MIT) + +Copyright (c) .NET Foundation and Contributors + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/licenses/ghidra-12.1.4-DISCLAIMER.txt b/licenses/ghidra-12.1.4-DISCLAIMER.txt new file mode 100644 index 000000000..a33b5994f --- /dev/null +++ b/licenses/ghidra-12.1.4-DISCLAIMER.txt @@ -0,0 +1,13 @@ +# Disclaimer of Warranty + +This Work is provided "AS IS." +Any express or implied warranties, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. +In no event shall the United States Government be liable for any direct, indirect, incidental, special, exemplary or consequential damages (including, but not limited to, procurement of substitute goods or services, loss of use, data or profits, or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this Work, even if advised of the possibility of such damage. + +The User of this Work agrees to hold harmless and indemnify the United States Government, its agents and employees from every claim or liability (whether in tort or in contract), including attorney's fees, court costs, and expenses, arising in direct consequence of Recipient's use of the item, including, but not limited to, claims or liabilities made for injury to or death of personnel of User or third parties, damage to or destruction of property of User or third parties, and infringement or other violations of intellectual property or technical data rights. + +# Disclaimer of Endorsement + +Nothing in this Work is intended to constitute an endorsement, explicit or implied, by the United States Government of any particular manufacturer's product or service. + +Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise, in this Work does not constitute an endorsement, recommendation, or favoring by the United States Government and shall not be used for advertising or product endorsement purposes. diff --git a/licenses/ghidra-12.1.4-LICENSE.txt b/licenses/ghidra-12.1.4-LICENSE.txt new file mode 100644 index 000000000..261eeb9e9 --- /dev/null +++ b/licenses/ghidra-12.1.4-LICENSE.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/licenses/ghidra-12.1.4-NOTICE.txt b/licenses/ghidra-12.1.4-NOTICE.txt new file mode 100644 index 000000000..a88075667 --- /dev/null +++ b/licenses/ghidra-12.1.4-NOTICE.txt @@ -0,0 +1,49 @@ +Ghidra + +This product includes software developed at National Security Agency +(https://www.nsa.gov) + +Portions of this product were created by the U.S. Government and not subject to +U.S. copyright protections under 17 U.S.C. + +The remaining portions are copyright their respective authors and have been +contributed under the terms of one or more open source licenses, and made +available to you under the terms of those licenses. (See LICENSE) + + + +Licensing Intent + +The intent is that this software and documentation ("Project") should be treated +as if it is licensed under the license associated with the Project ("License") +in the LICENSE file. However, because we are part of the United States (U.S.) +Federal Government, it is not that simple. + +The portions of this Project written by U.S. Federal Government employees within +the scope of their federal employment are ineligible for copyright protection in +the U.S.; this is generally understood to mean that these portions of the +Project are placed in the public domain. + +In countries where copyright protection is available (which does not include the +U.S.), contributions made by U.S. Federal Government employees are released +under the License. Merged contributions from private contributors are released +under the License. + +The Ghidra software is released under the Apache License, Version 2.0 +("Apache 2.0"). + +In addition, each module may contain numerous 3rd party components (libraries, +icons, etc.) that each have their own license which is compatible with Apache +2.0. Each module has a LICENSE.txt file that lists each license used in that +module and the 3rd party files that fall under that license. The license files +for each license used by Ghidra can be found in the licenses directory at the +installation root. + +Also, in the GPL directory, there are several stand-alone support programs that +are released using the GPL 3 license. Ghidra executes these programs as needed +and parses the output to get the desired results. There is a licenses directory +under the GPL directory that has the GPL license files. + +Consistent with the inbound=outbound model, contributions to any module must be +made available, by the contributor, under the applicable license(s). Please read +the Legal section of the CONTRIBUTING.md guide. diff --git a/licenses/npm-dependencies.txt b/licenses/npm-dependencies.txt new file mode 100644 index 000000000..7ae0aa0ad --- /dev/null +++ b/licenses/npm-dependencies.txt @@ -0,0 +1,2812 @@ +REA npm dependency inventory +Prepared from the root package-lock.json; refresh this inventory when locked dependencies change. +License identifiers are upstream lockfile declarations, not a legal assessment. +Runtime includes transitive and optional platform packages; development includes build, test and website tooling. +Locked package entries: 561; runtime: 148. +Full runtime copyright/license/NOTICE texts: npm-runtime-notices.txt. + +@algolia/abtesting@1.25.0 | development | MIT + Lockfile path: node_modules/@algolia/abtesting + Package: https://www.npmjs.com/package/@algolia/abtesting/v/1.25.0 + Archive: https://registry.npmjs.org/@algolia/abtesting/-/abtesting-1.25.0.tgz + Integrity: sha512-rSTin9Uta23uaewYVQEp8XI9T3iA/zrg0/1G2vhf8oFFDxFL5vybnZ5IQwsVAg4JpKxPX4/WYNKdcfWrZymk7w== +@algolia/autocomplete-core@1.17.7 | development | MIT + Lockfile path: node_modules/@algolia/autocomplete-core + Package: https://www.npmjs.com/package/@algolia/autocomplete-core/v/1.17.7 + Archive: https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.17.7.tgz + Integrity: sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q== +@algolia/autocomplete-plugin-algolia-insights@1.17.7 | development | MIT + Lockfile path: node_modules/@algolia/autocomplete-plugin-algolia-insights + Package: https://www.npmjs.com/package/@algolia/autocomplete-plugin-algolia-insights/v/1.17.7 + Archive: https://registry.npmjs.org/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.17.7.tgz + Integrity: sha512-Jca5Ude6yUOuyzjnz57og7Et3aXjbwCSDf/8onLHSQgw1qW3ALl9mrMWaXb5FmPVkV3EtkD2F/+NkT6VHyPu9A== +@algolia/autocomplete-preset-algolia@1.17.7 | development | MIT + Lockfile path: node_modules/@algolia/autocomplete-preset-algolia + Package: https://www.npmjs.com/package/@algolia/autocomplete-preset-algolia/v/1.17.7 + Archive: https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.17.7.tgz + Integrity: sha512-ggOQ950+nwbWROq2MOCIL71RE0DdQZsceqrg32UqnhDz8FlO9rL8ONHNsI2R1MH0tkgVIDKI/D0sMiUchsFdWA== +@algolia/autocomplete-shared@1.17.7 | development | MIT + Lockfile path: node_modules/@algolia/autocomplete-shared + Package: https://www.npmjs.com/package/@algolia/autocomplete-shared/v/1.17.7 + Archive: https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.17.7.tgz + Integrity: sha512-o/1Vurr42U/qskRSuhBH+VKxMvkkUVTLU6WZQr+L5lGZZLYWyhdzWjW0iGXY7EkwRTjBqvN2EsR81yCTGV/kmg== +@algolia/client-abtesting@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/client-abtesting + Package: https://www.npmjs.com/package/@algolia/client-abtesting/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.59.0.tgz + Integrity: sha512-bm2XN0hCSMYwStSsCBT0/PUB2BDxoyR1Lnub3c392HMEy9bi8PUSW8vR6zltVEKWG2t4PQFWMD5C07bmJxGgPg== +@algolia/client-analytics@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/client-analytics + Package: https://www.npmjs.com/package/@algolia/client-analytics/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.59.0.tgz + Integrity: sha512-XOFPOTa69WuqHR6c5tMgnUUwwqQgNSzMpxmhrgA9KmxRf8WIqEa0cokHJvohk5CYb7CZx0xeSL6Bk2IUJ7Lv7Q== +@algolia/client-common@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/client-common + Package: https://www.npmjs.com/package/@algolia/client-common/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/client-common/-/client-common-5.59.0.tgz + Integrity: sha512-PC8ipLOYFKRTfIUY1J3FJxS6ryzWziaXmIX9/sNMoUR8L+XhF7hX2QAeUI87YVl5zujvlYTSOb+HAIqKXDjyHQ== +@algolia/client-insights@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/client-insights + Package: https://www.npmjs.com/package/@algolia/client-insights/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.59.0.tgz + Integrity: sha512-yFNcCMM5fHiyoR0HuxMrzy+VjDcmhFUZTm2IJ2DHwGsVH3B5SEob4zTmeEZ3j/AZqNnmrJOCKl/tJnBg7+84bA== +@algolia/client-personalization@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/client-personalization + Package: https://www.npmjs.com/package/@algolia/client-personalization/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.59.0.tgz + Integrity: sha512-GYja6HkDt2VrQhWmB2cLx3Z5fDwI9no7q+xwCWcFrTPm5CLH9QZvK0XLO9co1FcNIDxxkMaP3AXM39/XcecEOg== +@algolia/client-query-suggestions@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/client-query-suggestions + Package: https://www.npmjs.com/package/@algolia/client-query-suggestions/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.59.0.tgz + Integrity: sha512-Wofg7bMpWh8N5qDDZs0wy6whc+KMmdNsxgrIGp9Ug2s1Bka0uq7AjyckdxReKPHLA0Q1qH8X/SNh0wn2t2X2Lw== +@algolia/client-search@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/client-search + Package: https://www.npmjs.com/package/@algolia/client-search/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/client-search/-/client-search-5.59.0.tgz + Integrity: sha512-fHnALZfbEnODczGk14Y/1YBRApp6UEpZUTexGcMUPzY7RDc7q4HN2Y6jh0KUG8Jo9B+q+wOoQEc3ziR0ErbuFg== +@algolia/ingestion@1.59.0 | development | MIT + Lockfile path: node_modules/@algolia/ingestion + Package: https://www.npmjs.com/package/@algolia/ingestion/v/1.59.0 + Archive: https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.59.0.tgz + Integrity: sha512-Fa38s1mHgoaLCT117sfJ6P78rtxUt93CYxBYpq1VOIcslaF+cH+1h5uikAPsKfxLnsuEDZHiBiaI6eNPTsQMRA== +@algolia/monitoring@1.59.0 | development | MIT + Lockfile path: node_modules/@algolia/monitoring + Package: https://www.npmjs.com/package/@algolia/monitoring/v/1.59.0 + Archive: https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.59.0.tgz + Integrity: sha512-NyNsRSqM2tF1MX7ZGw/j4rduoEJiQ5wfvbSo/CFVdEzYCjyxbGFRPOZyS/GETJG9rk1TdHOq8NZqKqk/u1fm4g== +@algolia/recommend@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/recommend + Package: https://www.npmjs.com/package/@algolia/recommend/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/recommend/-/recommend-5.59.0.tgz + Integrity: sha512-nXBK2uygWtvbCOffMWqqfjjcEtp9enDKY5/2Pw/Hhw8VVaOyK2ThbGK04bNX/Le+qoK1VHYkodWGVTKfw0Otkw== +@algolia/requester-browser-xhr@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/requester-browser-xhr + Package: https://www.npmjs.com/package/@algolia/requester-browser-xhr/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.59.0.tgz + Integrity: sha512-yb+4afX/zja8QwX0KmV4/ae2kyYkRknsE79CRusYS2U5D8qwn2wq0cn1x12f3tm3F3+5FgmDdbuGdQTuCLSKMQ== +@algolia/requester-fetch@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/requester-fetch + Package: https://www.npmjs.com/package/@algolia/requester-fetch/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.59.0.tgz + Integrity: sha512-Lp52TmpA1QtNmdHzs505Xwf4tgII7RAapkDSF9AAtWIBETcGaTIaXci4Rd9nS6SdaWK1BWTSqAPp5wzh6UN3Ag== +@algolia/requester-node-http@5.59.0 | development | MIT + Lockfile path: node_modules/@algolia/requester-node-http + Package: https://www.npmjs.com/package/@algolia/requester-node-http/v/5.59.0 + Archive: https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.59.0.tgz + Integrity: sha512-YYHLEs5rC6oRTFwT7bJaKBR9NSFzikeVHGAT1ffATmUQzR8XqyhHXjoieAUoR7fBU6I5cfy1FVeh5GoRgriuzA== +@babel/helper-string-parser@8.0.0 | runtime | MIT + Lockfile path: node_modules/@babel/helper-string-parser + Package: https://www.npmjs.com/package/@babel/helper-string-parser/v/8.0.0 + Archive: https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.0.tgz + Integrity: sha512-6mJgmFFFIIO82vvoLt9XtRC7/TkzXfts1t/SpRX4IHSzMgqoPYCWesVu1udUPUWioAE/2fcG6WuI8zrkE1gwrg== +@babel/helper-validator-identifier@8.0.4 | runtime | MIT + Lockfile path: node_modules/@babel/helper-validator-identifier + Package: https://www.npmjs.com/package/@babel/helper-validator-identifier/v/8.0.4 + Archive: https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.4.tgz + Integrity: sha512-4wFaiLd0bVo4cIoTXI3zKI038NIWE/cr3jvBjejOVYVxV/m8Ltav1USiGzG1fmS5J2RhgEOgXNNK46cRPnRsrg== +@babel/parser@8.0.4 | runtime | MIT + Lockfile path: node_modules/@babel/parser + Package: https://www.npmjs.com/package/@babel/parser/v/8.0.4 + Archive: https://registry.npmjs.org/@babel/parser/-/parser-8.0.4.tgz + Integrity: sha512-srpptsAkEbbNIC/q8nT7o+m6CQe8CJUTV/t7MYc9NnWlgYVtHOb7JH6SorxMhN0kuRJjVqXbKClG6xSbPtzz+g== +@babel/types@8.0.4 | runtime | MIT + Lockfile path: node_modules/@babel/types + Package: https://www.npmjs.com/package/@babel/types/v/8.0.4 + Archive: https://registry.npmjs.org/@babel/types/-/types-8.0.4.tgz + Integrity: sha512-eY+Yn3dCqTGmyiq2QRU66lA5FL8lqqqvecHt0fF3uHONIa7ToYsaCiWV8lOKqAs0Rb2SjixiKFROngnulPtt2g== +@bcoe/v8-coverage@1.0.2 | development | MIT + Lockfile path: node_modules/@bcoe/v8-coverage + Package: https://www.npmjs.com/package/@bcoe/v8-coverage/v/1.0.2 + Archive: https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz + Integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA== +@cfworker/json-schema@4.1.1 | runtime | MIT + Lockfile path: node_modules/@cfworker/json-schema + Package: https://www.npmjs.com/package/@cfworker/json-schema/v/4.1.1 + Archive: https://registry.npmjs.org/@cfworker/json-schema/-/json-schema-4.1.1.tgz + Integrity: sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og== +@clack/core@1.4.3 | runtime | MIT + Lockfile path: node_modules/@clack/core + Package: https://www.npmjs.com/package/@clack/core/v/1.4.3 + Archive: https://registry.npmjs.org/@clack/core/-/core-1.4.3.tgz + Integrity: sha512-/kr3UWNtdJfxZtPgDqUOmG2pvwlmcLGheex5yiZKdwbzZJxhV+HMNR9QNmyY5cGwTNV6LrR7Jtp+KjhUAP1qBQ== +@clack/prompts@1.7.0 | runtime | MIT + Lockfile path: node_modules/@clack/prompts + Package: https://www.npmjs.com/package/@clack/prompts/v/1.7.0 + Archive: https://registry.npmjs.org/@clack/prompts/-/prompts-1.7.0.tgz + Integrity: sha512-y7/yvZ2TPAnR9+jnc00klvNNLkJiXFFrQA/hlLCcxA9a2A4zQIOimyFQ9XfwYKiGD1fb5GY8vbKIIgO8d5Tb2A== +@docsearch/css@3.8.2 | development | MIT + Lockfile path: node_modules/@docsearch/css + Package: https://www.npmjs.com/package/@docsearch/css/v/3.8.2 + Archive: https://registry.npmjs.org/@docsearch/css/-/css-3.8.2.tgz + Integrity: sha512-y05ayQFyUmCXze79+56v/4HpycYF3uFqB78pLPrSV5ZKAlDuIAAJNhaRi8tTdRNXh05yxX/TyNnzD6LwSM89vQ== +@docsearch/js@3.8.2 | development | MIT + Lockfile path: node_modules/@docsearch/js + Package: https://www.npmjs.com/package/@docsearch/js/v/3.8.2 + Archive: https://registry.npmjs.org/@docsearch/js/-/js-3.8.2.tgz + Integrity: sha512-Q5wY66qHn0SwA7Taa0aDbHiJvaFJLOJyHmooQ7y8hlwwQLQ/5WwCcoX0g7ii04Qi2DJlHsd0XXzJ8Ypw9+9YmQ== +@docsearch/react@3.8.2 | development | MIT + Lockfile path: node_modules/@docsearch/react + Package: https://www.npmjs.com/package/@docsearch/react/v/3.8.2 + Archive: https://registry.npmjs.org/@docsearch/react/-/react-3.8.2.tgz + Integrity: sha512-xCRrJQlTt8N9GU0DG4ptwHRkfnSnD/YpdeaXe02iKfqs97TkZJv60yE+1eq/tjPcVnTW8dP5qLP7itifFVV5eg== +@electron/asar@4.2.0 | runtime | MIT + Lockfile path: node_modules/@electron/asar + Package: https://www.npmjs.com/package/@electron/asar/v/4.2.0 + Archive: https://registry.npmjs.org/@electron/asar/-/asar-4.2.0.tgz + Integrity: sha512-npW1NW5yy8EB9XY/vEw9sUdgmq0sJEhmSBb6bqyFOAw1CSkrhvAvO6QWlW8CdIMo8VN1lkdF345l/MeW0LrY0Q== +commander@13.1.0 | runtime | MIT + Lockfile path: node_modules/@electron/asar/node_modules/commander + Package: https://www.npmjs.com/package/commander/v/13.1.0 + Archive: https://registry.npmjs.org/commander/-/commander-13.1.0.tgz + Integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw== +@emnapi/core@1.11.2 | development, optional | MIT + Lockfile path: node_modules/@emnapi/core + Package: https://www.npmjs.com/package/@emnapi/core/v/1.11.2 + Archive: https://registry.npmjs.org/@emnapi/core/-/core-1.11.2.tgz + Integrity: sha512-TC8MkTuZUtcTSiFeuC0ksCh9QIJ5+F21MvZ4Wn4ORfYaFJ/0dsiudv5tVkejgwZlwQ39jL9WWDe2lz8x0WglOA== +@emnapi/runtime@1.11.2 | development, optional | MIT + Lockfile path: node_modules/@emnapi/runtime + Package: https://www.npmjs.com/package/@emnapi/runtime/v/1.11.2 + Archive: https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.2.tgz + Integrity: sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA== +@emnapi/wasi-threads@1.2.2 | development, optional | MIT + Lockfile path: node_modules/@emnapi/wasi-threads + Package: https://www.npmjs.com/package/@emnapi/wasi-threads/v/1.2.2 + Archive: https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz + Integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA== +@fast-check/vitest@0.5.0 | development | MIT + Lockfile path: node_modules/@fast-check/vitest + Package: https://www.npmjs.com/package/@fast-check/vitest/v/0.5.0 + Archive: https://registry.npmjs.org/@fast-check/vitest/-/vitest-0.5.0.tgz + Integrity: sha512-Kgbj2smuq1P4OhGKuPATs5i2fAxNmGbJ/zSmTrzWhQSLUrHREbKWgv9WGbNUOXcx77q6joLVMmTygyXuwP2Bog== +@iconify-json/simple-icons@1.2.99 | development | CC0-1.0 + Lockfile path: node_modules/@iconify-json/simple-icons + Package: https://www.npmjs.com/package/@iconify-json/simple-icons/v/1.2.99 + Archive: https://registry.npmjs.org/@iconify-json/simple-icons/-/simple-icons-1.2.99.tgz + Integrity: sha512-kouZhqvUoNdxEe+lZksbJJZMCZv4b4Ob62O1GW3fcpz/I0mVPzM+9/Qf/DUuv5ns8l6c46D8M/ubhJjjbLp9HQ== +@iconify/types@2.0.0 | development | MIT + Lockfile path: node_modules/@iconify/types + Package: https://www.npmjs.com/package/@iconify/types/v/2.0.0 + Archive: https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz + Integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg== +@jridgewell/resolve-uri@3.1.2 | runtime | MIT + Lockfile path: node_modules/@jridgewell/resolve-uri + Package: https://www.npmjs.com/package/@jridgewell/resolve-uri/v/3.1.2 + Archive: https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz + Integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== +@jridgewell/sourcemap-codec@1.6.0 | runtime | MIT + Lockfile path: node_modules/@jridgewell/sourcemap-codec + Package: https://www.npmjs.com/package/@jridgewell/sourcemap-codec/v/1.6.0 + Archive: https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz + Integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw== +@jridgewell/trace-mapping@0.3.31 | runtime | MIT + Lockfile path: node_modules/@jridgewell/trace-mapping + Package: https://www.npmjs.com/package/@jridgewell/trace-mapping/v/0.3.31 + Archive: https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz + Integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== +@lydell/node-pty@1.1.0 | runtime | MIT + Lockfile path: node_modules/@lydell/node-pty + Package: https://www.npmjs.com/package/@lydell/node-pty/v/1.1.0 + Archive: https://registry.npmjs.org/@lydell/node-pty/-/node-pty-1.1.0.tgz + Integrity: sha512-VDD8LtlMTOrPKWMXUAcB9+LTktzuunqrMwkYR1DMRBkS6LQrCt+0/Ws1o2rMml/n3guePpS7cxhHF7Nm5K4iMw== +@lydell/node-pty-darwin-arm64@1.1.0 | runtime, optional | MIT + Lockfile path: node_modules/@lydell/node-pty-darwin-arm64 + Package: https://www.npmjs.com/package/@lydell/node-pty-darwin-arm64/v/1.1.0 + Archive: https://registry.npmjs.org/@lydell/node-pty-darwin-arm64/-/node-pty-darwin-arm64-1.1.0.tgz + Integrity: sha512-7kFD+owAA61qmhJCtoMbqj3Uvff3YHDiU+4on5F2vQdcMI3MuwGi7dM6MkFG/yuzpw8LF2xULpL71tOPUfxs0w== +@lydell/node-pty-darwin-x64@1.1.0 | runtime, optional | MIT + Lockfile path: node_modules/@lydell/node-pty-darwin-x64 + Package: https://www.npmjs.com/package/@lydell/node-pty-darwin-x64/v/1.1.0 + Archive: https://registry.npmjs.org/@lydell/node-pty-darwin-x64/-/node-pty-darwin-x64-1.1.0.tgz + Integrity: sha512-XZdvqj5FjAMjH8bdp0YfaZjur5DrCIDD1VYiE9EkkYVMDQqRUPHYV3U8BVEQVT9hYfjmpr7dNaELF2KyISWSNA== +@lydell/node-pty-linux-arm64@1.1.0 | runtime, optional | MIT + Lockfile path: node_modules/@lydell/node-pty-linux-arm64 + Package: https://www.npmjs.com/package/@lydell/node-pty-linux-arm64/v/1.1.0 + Archive: https://registry.npmjs.org/@lydell/node-pty-linux-arm64/-/node-pty-linux-arm64-1.1.0.tgz + Integrity: sha512-yyDBmalCfHpLiQMT2zyLcqL2Fay4Xy7rIs8GH4dqKLnEviMvPGOK7LADVkKAsbsyXBSISL3Lt1m1MtxhPH6ckg== +@lydell/node-pty-linux-x64@1.1.0 | runtime, optional | MIT + Lockfile path: node_modules/@lydell/node-pty-linux-x64 + Package: https://www.npmjs.com/package/@lydell/node-pty-linux-x64/v/1.1.0 + Archive: https://registry.npmjs.org/@lydell/node-pty-linux-x64/-/node-pty-linux-x64-1.1.0.tgz + Integrity: sha512-NcNqRTD14QT+vXcEuqSSvmWY+0+WUBn2uRE8EN0zKtDpIEr9d+YiFj16Uqds6QfcLCHfZmC+Ls7YzwTaqDnanA== +@lydell/node-pty-win32-arm64@1.1.0 | runtime, optional | MIT + Lockfile path: node_modules/@lydell/node-pty-win32-arm64 + Package: https://www.npmjs.com/package/@lydell/node-pty-win32-arm64/v/1.1.0 + Archive: https://registry.npmjs.org/@lydell/node-pty-win32-arm64/-/node-pty-win32-arm64-1.1.0.tgz + Integrity: sha512-JOMbCou+0fA7d/m97faIIfIU0jOv8sn2OR7tI45u3AmldKoKoLP8zHY6SAvDDnI3fccO1R2HeR1doVjpS7HM0w== +@lydell/node-pty-win32-x64@1.1.0 | runtime, optional | MIT + Lockfile path: node_modules/@lydell/node-pty-win32-x64 + Package: https://www.npmjs.com/package/@lydell/node-pty-win32-x64/v/1.1.0 + Archive: https://registry.npmjs.org/@lydell/node-pty-win32-x64/-/node-pty-win32-x64-1.1.0.tgz + Integrity: sha512-3N56BZ+WDFnUMYRtsrr7Ky2mhWGl9xXcyqR6cexfuCqcz9RNWL+KoXRv/nZylY5dYaXkft4JaR1uVu+roiZDAw== +@modelcontextprotocol/client@2.3.1 | runtime | Apache-2.0 + Lockfile path: node_modules/@modelcontextprotocol/client + Package: https://www.npmjs.com/package/@modelcontextprotocol/client/v/2.3.1 + Archive: https://registry.npmjs.org/@modelcontextprotocol/client/-/client-2.3.1.tgz + Integrity: sha512-mIGZXpHsjnZ6lD+gD/WCMpR5k8yVQQ8nNFH1N0Srf7AvnwTUMYD6pvTY8ng2+He5FfV7YMZLmrjL7cLa/cc3dQ== +@modelcontextprotocol/core@2.3.1 | runtime | Apache-2.0 + Lockfile path: node_modules/@modelcontextprotocol/core + Package: https://www.npmjs.com/package/@modelcontextprotocol/core/v/2.3.1 + Archive: https://registry.npmjs.org/@modelcontextprotocol/core/-/core-2.3.1.tgz + Integrity: sha512-laVmIhPGpWi7rG9q+0UigblRN0Hws/Yjlb6qLFtVqryXVLkc4h+yN8z731POD2LnAGQlFe7/tXhUm7Bi0YB91g== +@modelcontextprotocol/server@2.3.1 | runtime | Apache-2.0 + Lockfile path: node_modules/@modelcontextprotocol/server + Package: https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.3.1 + Archive: https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.3.1.tgz + Integrity: sha512-e59MfWuSssj6DoQ96JCTqdW1AXT5/XtnTl0WWd6MU1Ka434fFUGGosCLJbGNySDhHGvxQWoRWK137FXYFkYNWw== +@napi-rs/lzma-linux-x64-gnu@1.5.1 | development, optional | MIT + Lockfile path: node_modules/@napi-rs/lzma-linux-x64-gnu + Package: https://www.npmjs.com/package/@napi-rs/lzma-linux-x64-gnu/v/1.5.1 + Archive: https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz + Integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ== +@napi-rs/wasm-runtime@1.2.5 | development, optional | MIT + Lockfile path: node_modules/@napi-rs/wasm-runtime + Package: https://www.npmjs.com/package/@napi-rs/wasm-runtime/v/1.2.5 + Archive: https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.5.tgz + Integrity: sha512-HshSvXzmBxNzqejd3k/KemgQ3hdREUYFRRrgxOZ+gPljDIsO2SDZrVZMd4Z/HsxudQbE62OVyVFE8z9BCurfjA== +@oxc-parser/binding-android-arm-eabi@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-android-arm-eabi + Package: https://www.npmjs.com/package/@oxc-parser/binding-android-arm-eabi/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-android-arm-eabi/-/binding-android-arm-eabi-0.150.0.tgz + Integrity: sha512-oQef2Zu4Prz1KLKznz3HqZzU9uVoA5PMoDZuuLmqms7hKmKSAPzlaMnLllJq3t+rgKmfJJ2siPrpZfFrW06btw== +@oxc-parser/binding-android-arm64@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-android-arm64 + Package: https://www.npmjs.com/package/@oxc-parser/binding-android-arm64/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-android-arm64/-/binding-android-arm64-0.150.0.tgz + Integrity: sha512-B6ofpoFiAUwIZ0MJ2IgHPvZK8FAtL4qzSZRwOkAKIfxEobE1mQC8nDdiFZj7pUaJiVUVCsfkMsBJKedzO8rZvA== +@oxc-parser/binding-darwin-arm64@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-darwin-arm64 + Package: https://www.npmjs.com/package/@oxc-parser/binding-darwin-arm64/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-darwin-arm64/-/binding-darwin-arm64-0.150.0.tgz + Integrity: sha512-J+9IHKzx/bSz1JetOfD4zKXSK9sOm4/a7+0qomJODcTL6JsRXGeV/ZdkAPSIDydfFmWzYCraMlQEosSZEyBYkQ== +@oxc-parser/binding-darwin-x64@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-darwin-x64 + Package: https://www.npmjs.com/package/@oxc-parser/binding-darwin-x64/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-darwin-x64/-/binding-darwin-x64-0.150.0.tgz + Integrity: sha512-v6IPfcAcSYrBWXV5Tce1DmxDMXLhEYpIIWiRFPJopgCVscZdLaV4MRQOUxvL3usQlw+yrwYOjBFB9IwBx+jUiQ== +@oxc-parser/binding-freebsd-x64@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-freebsd-x64 + Package: https://www.npmjs.com/package/@oxc-parser/binding-freebsd-x64/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-freebsd-x64/-/binding-freebsd-x64-0.150.0.tgz + Integrity: sha512-AoR/4jD02HET0KO0yNT4nbTE+XJUxiO9jB1X/ycEjUE3WrIJ3IjV/Vf+gskhWLcqqeXfvNnkDtBR7epllAm88A== +@oxc-parser/binding-linux-arm-gnueabihf@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-arm-gnueabihf + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-arm-gnueabihf/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.150.0.tgz + Integrity: sha512-A/hycCFjLUrCmLoL5O/vBp40ohlaXO1Ta3v5hqYZxicYFs129wZmgZJggcW4mYGYbZebQLhup+N8JjeQl8qwyw== +@oxc-parser/binding-linux-arm-musleabihf@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-arm-musleabihf + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-arm-musleabihf/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.150.0.tgz + Integrity: sha512-pbqahg1Pkz7J4RKmXm30s/iQu99hv64ayXCu8P4p75HcEH5azOdR4eGqiB6lFGkFR3mMpzaYsSKLkS8oJbjmeQ== +@oxc-parser/binding-linux-arm64-gnu@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-arm64-gnu + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-arm64-gnu/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.150.0.tgz + Integrity: sha512-HV11aRbBQGwqv8bEo+K/6qr88uB4fEe1mhXncMhlVCrj+WpBSraxrUzHaPVmeQRU6x6x8v/3DuCbbo93rpp+fw== +@oxc-parser/binding-linux-arm64-musl@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-arm64-musl + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-arm64-musl/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.150.0.tgz + Integrity: sha512-k6pVkJqALwtEuP4zukVhGRhdIy4+ofChUIUUsAHHyqDZlNsknmel3JjbggrJiWGaes6h/dIcWmEXsKW4SmK9oQ== +@oxc-parser/binding-linux-ppc64-gnu@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-ppc64-gnu + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-ppc64-gnu/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.150.0.tgz + Integrity: sha512-tEFg39mw/rHO5n8GK2DR4ZMFfsPQZtnQIPbsIpjoQRomJc/2tRfsCSmCT6gNit+NZGoeJG5aH9ATDH5bf0WnoQ== +@oxc-parser/binding-linux-riscv64-gnu@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-riscv64-gnu + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-riscv64-gnu/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.150.0.tgz + Integrity: sha512-0JO7IFkoek6HqV589Menx3hJySNXi6quRhO4tq2P7kpEHKEXoDATnoPVUpn5B7gDH2KLkdo751N0uIrGJFCTCw== +@oxc-parser/binding-linux-riscv64-musl@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-riscv64-musl + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-riscv64-musl/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.150.0.tgz + Integrity: sha512-7XPzREnyAS5wHU9aB+49Uaqgoo1gVCklHc3DRlc3fJy2tXD/eAJFN1QFz/crj+Ulup5P1+axNREF+/RGaB/IRA== +@oxc-parser/binding-linux-s390x-gnu@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-s390x-gnu + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-s390x-gnu/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.150.0.tgz + Integrity: sha512-7n7ZxcbRWDFaTdyj8M8p0O9OfzoMKm8O6syBAIgcSutbOALq0Bb9G52Me+XH0anMLZV+NgXc726gqgG2q39vcQ== +@oxc-parser/binding-linux-x64-gnu@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-x64-gnu + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-x64-gnu/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.150.0.tgz + Integrity: sha512-Vx0GSA9ZCRTUiczoEQnIIyXkMvtEY8uc6IiwLQtMe5ci2sXPqjrry0Ek5fsPP1k2kCzkML3ow9UOOEgnEDi7Bw== +@oxc-parser/binding-linux-x64-musl@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-linux-x64-musl + Package: https://www.npmjs.com/package/@oxc-parser/binding-linux-x64-musl/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-linux-x64-musl/-/binding-linux-x64-musl-0.150.0.tgz + Integrity: sha512-ii4/9m3viDLssMnfXU7/Pni/3nYplApuGayceX4qsVGaqqQJCx3tHIH9M/HWIeSty5i8LjS21zPYT6lVIkwLxw== +@oxc-parser/binding-openharmony-arm64@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-openharmony-arm64 + Package: https://www.npmjs.com/package/@oxc-parser/binding-openharmony-arm64/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-openharmony-arm64/-/binding-openharmony-arm64-0.150.0.tgz + Integrity: sha512-ZtoxX5rez36ZWkwtiEhjkCPnlTPoQ2I7lIL0IYZ1yjxMYohbvoOjBmUIZzrf9W/HouONq0omIfTeCWEY+R380w== +@oxc-parser/binding-win32-arm64-msvc@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-win32-arm64-msvc + Package: https://www.npmjs.com/package/@oxc-parser/binding-win32-arm64-msvc/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.150.0.tgz + Integrity: sha512-VqeRb5JX/bKYBrff7TUDvJyKY0914UzuCkuXIGxJS4FUmvMNfqkCbc7Sq90iMz9DlmAtlggwaBYQ9eg3h3ltiw== +@oxc-parser/binding-win32-ia32-msvc@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-win32-ia32-msvc + Package: https://www.npmjs.com/package/@oxc-parser/binding-win32-ia32-msvc/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.150.0.tgz + Integrity: sha512-EPqJfeZ4Pgg2BJSsCV8GozxV0FDltRzpVtGVa1r2noJu1iu+opOw3gtBWXwIo9odCT/MdFfyHxdy0/CRqs3OqA== +@oxc-parser/binding-win32-x64-msvc@0.150.0 | development, optional | MIT + Lockfile path: node_modules/@oxc-parser/binding-win32-x64-msvc + Package: https://www.npmjs.com/package/@oxc-parser/binding-win32-x64-msvc/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-parser/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.150.0.tgz + Integrity: sha512-n5YMzbqwPQqozbkrexi0lNZrUz5cnPHalYpFWe6Dau7AmKIWNo+y24IwzDuZEQtEdUHuKhXmMMih/MPjOI+CMw== +@oxc-project/types@0.152.0 | development | MIT + Lockfile path: node_modules/@oxc-project/types + Package: https://www.npmjs.com/package/@oxc-project/types/v/0.152.0 + Archive: https://registry.npmjs.org/@oxc-project/types/-/types-0.152.0.tgz + Integrity: sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw== +@oxc-resolver/binding-android-arm-eabi@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-android-arm-eabi + Package: https://www.npmjs.com/package/@oxc-resolver/binding-android-arm-eabi/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-android-arm-eabi/-/binding-android-arm-eabi-11.24.2.tgz + Integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA== +@oxc-resolver/binding-android-arm64@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-android-arm64 + Package: https://www.npmjs.com/package/@oxc-resolver/binding-android-arm64/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-android-arm64/-/binding-android-arm64-11.24.2.tgz + Integrity: sha512-cl4icWaZFnLdg8m6qtnh5rBMuGbxc/ptStFHLeCNwr+2cZjkjNwQu/jYRS0CHlnPecOJMpuS5M6/BH+0J/YkEg== +@oxc-resolver/binding-darwin-arm64@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-darwin-arm64 + Package: https://www.npmjs.com/package/@oxc-resolver/binding-darwin-arm64/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-darwin-arm64/-/binding-darwin-arm64-11.24.2.tgz + Integrity: sha512-At29QEMF6HajbQvgY8K6OXnHD1x9rad74xBEfmCB6ZqCGsdq75aK7tOYcTbOanMy8qdIBrfL3SMr3p/lfSlb9w== +@oxc-resolver/binding-darwin-x64@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-darwin-x64 + Package: https://www.npmjs.com/package/@oxc-resolver/binding-darwin-x64/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-darwin-x64/-/binding-darwin-x64-11.24.2.tgz + Integrity: sha512-A5Kqr1EUj4oIL5CF4WRssq/o5P0Y11cwoFouMRmQ7YnC/A8V93nv1nb7aSU8HwcgmXropjLNkVTl4MN87cu28Q== +@oxc-resolver/binding-freebsd-x64@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-freebsd-x64 + Package: https://www.npmjs.com/package/@oxc-resolver/binding-freebsd-x64/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-freebsd-x64/-/binding-freebsd-x64-11.24.2.tgz + Integrity: sha512-R5xkRBRRz7ceH/P5Jrc6G7FmdUdgpLYyESFAUDVTNQ9K0sGPxcp4ljiwEwEqsvNcQ4sYbMRrWcHHBCu7ksAJVw== +@oxc-resolver/binding-linux-arm-gnueabihf@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-arm-gnueabihf + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-arm-gnueabihf/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-11.24.2.tgz + Integrity: sha512-k/RuYL4L/R58IBn3wT5ma3Wh4k62bp1eYCFRWCmMsasUOqL+H6sW0VGFadEzKWXFFlz+2uIMoeMk9ySSZJHgbg== +@oxc-resolver/binding-linux-arm-musleabihf@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-arm-musleabihf + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-arm-musleabihf/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-11.24.2.tgz + Integrity: sha512-bnHAak3ujYfH5pKk4NieFNbvYvernfoQDgwLddbZ3OtMYrem87/qjlA+u+aKG0oZcqSLGCful/6/CEA+aeAgaA== +@oxc-resolver/binding-linux-arm64-gnu@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-arm64-gnu + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-arm64-gnu/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-11.24.2.tgz + Integrity: sha512-vDT3KHgzYp47gmtNOqL2VNhCyl5Zv643eyxm//A68J8DeUGXrvD1pZFiaT4jSfe+RInfnn1R2yVHye4enx6RnA== +@oxc-resolver/binding-linux-arm64-musl@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-arm64-musl + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-arm64-musl/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-arm64-musl/-/binding-linux-arm64-musl-11.24.2.tgz + Integrity: sha512-+kMlQvbzfyEYtu5FcjE4p+ttBLpKW4d/AsAsuE69BxV6V4twZJeIQZFfD8gh/wqglY0MkPSezWXQH0jBV13MUw== +@oxc-resolver/binding-linux-ppc64-gnu@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-ppc64-gnu + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-ppc64-gnu/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-11.24.2.tgz + Integrity: sha512-shjfMhmZ3gq9fv/w7bi3PnZlgOPG+2QAOFf0BJF0EgBSIGZ6PMLN2zbGEblTUYB/NKVDRyYhE2ff3dJ1QqNPkA== +@oxc-resolver/binding-linux-riscv64-gnu@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-riscv64-gnu + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-riscv64-gnu/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-11.24.2.tgz + Integrity: sha512-zGelwFR5oRo+b69k8Lrzun86DyUHzfKN6cnjbR9l7Z7NIRznOE/2ZvPa1IUKqAL2PzAXOdwkfVqNvO1H2RlpAw== +@oxc-resolver/binding-linux-riscv64-musl@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-riscv64-musl + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-riscv64-musl/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-11.24.2.tgz + Integrity: sha512-qxZ1SWCXJY0eyhAlP6Lmo9F2Nrtx7EkYj9oCgL8apDPCwXwCEDA2U697bbT81JIc2IrVjxO4KX6WU2N+oN9Z4w== +@oxc-resolver/binding-linux-s390x-gnu@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-s390x-gnu + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-s390x-gnu/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-11.24.2.tgz + Integrity: sha512-sGCecF3cx2DFlH4t/z7ApnOnXqN48p5p5mlHDEnHTAukQa2P+qMVE4CwyWE9W+q/m3QJ7kKfGrIjax31f44oFQ== +@oxc-resolver/binding-linux-x64-gnu@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-x64-gnu + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-x64-gnu/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-x64-gnu/-/binding-linux-x64-gnu-11.24.2.tgz + Integrity: sha512-k/VlMMcSzMlahb3/fENM4rTlsJ0s3fFROA0KXPBmKggqmTSaE383sl8F3KCOXPLmVsYfW6hCitMhXCEtNeZxxg== +@oxc-resolver/binding-linux-x64-musl@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-linux-x64-musl + Package: https://www.npmjs.com/package/@oxc-resolver/binding-linux-x64-musl/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-linux-x64-musl/-/binding-linux-x64-musl-11.24.2.tgz + Integrity: sha512-8hbnZyNi97b/8wapYaIF9+t9GmZKBW2vunaOc3h9HGJptH7b7XpvZqOTBSm/MpTjr7H497BlgOaSfLUdhmy2bw== +@oxc-resolver/binding-openharmony-arm64@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-openharmony-arm64 + Package: https://www.npmjs.com/package/@oxc-resolver/binding-openharmony-arm64/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-openharmony-arm64/-/binding-openharmony-arm64-11.24.2.tgz + Integrity: sha512-MvyGik3a6pVgZ0t/kWlbmFxFLmXQJwgLsY2eYFHLpy0wGwRbfzeIGgDwQ3kXqE30z+kSXennRkCrT7TUvkptNg== +@oxc-resolver/binding-wasm32-wasi@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-wasm32-wasi + Package: https://www.npmjs.com/package/@oxc-resolver/binding-wasm32-wasi/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-wasm32-wasi/-/binding-wasm32-wasi-11.24.2.tgz + Integrity: sha512-vHcssMPwO08RTvj/c0iOBz90attxyG3wQJ0dTcyEQK43LRpcdLWZlV5feBhv6Isn6ahbQIzHbCgfa81+RiML0Q== +@oxc-resolver/binding-win32-arm64-msvc@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-win32-arm64-msvc + Package: https://www.npmjs.com/package/@oxc-resolver/binding-win32-arm64-msvc/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-11.24.2.tgz + Integrity: sha512-uokJqro2iBqkFvJdKQLP7d8/BUmFwESQFVmIJUQKj1Xn1a/LysJoe1vmeECLF5b3jsV8CAL5sEMJXX6SdK9Nhg== +@oxc-resolver/binding-win32-x64-msvc@11.24.2 | development, optional | MIT + Lockfile path: node_modules/@oxc-resolver/binding-win32-x64-msvc + Package: https://www.npmjs.com/package/@oxc-resolver/binding-win32-x64-msvc/v/11.24.2 + Archive: https://registry.npmjs.org/@oxc-resolver/binding-win32-x64-msvc/-/binding-win32-x64-msvc-11.24.2.tgz + Integrity: sha512-UqGPmo56KDfLlfXFAFIrNflHT8tFxWGEivWg3Zeyp4Uy2NlKN1FGPr6/BxcLGG3+kZ6Wp14g5Uj+n71boqZfiw== +@oxfmt/binding-android-arm-eabi@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-android-arm-eabi + Package: https://www.npmjs.com/package/@oxfmt/binding-android-arm-eabi/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-android-arm-eabi/-/binding-android-arm-eabi-0.72.0.tgz + Integrity: sha512-u4U1uaDOVBuorGNC/07NLm48nECHOiJJka002YGML16Md2DRvf38RGBt01lH60EOGvNlFVmbLoksQedNBoZHKw== +@oxfmt/binding-android-arm64@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-android-arm64 + Package: https://www.npmjs.com/package/@oxfmt/binding-android-arm64/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-android-arm64/-/binding-android-arm64-0.72.0.tgz + Integrity: sha512-GCnM+Ae2mWOKC+92y3FOb6eZJeVnBAVz82e3lITUUg+kxukYKzBNAvJ/hhHIfa2A0md55SYYhdWPddSSy3KPVA== +@oxfmt/binding-darwin-arm64@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-darwin-arm64 + Package: https://www.npmjs.com/package/@oxfmt/binding-darwin-arm64/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-darwin-arm64/-/binding-darwin-arm64-0.72.0.tgz + Integrity: sha512-LjQ8tlevdtwraFlWC6AnQ1Forzde0clRmnsP3QmK+ydSElDt/J+5Jc+m+//Ly1G97aP7WCNUw110QMIUw2K7xA== +@oxfmt/binding-darwin-x64@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-darwin-x64 + Package: https://www.npmjs.com/package/@oxfmt/binding-darwin-x64/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-darwin-x64/-/binding-darwin-x64-0.72.0.tgz + Integrity: sha512-+ZbcxhB1C34RQR5IldSyY6Z/yalJIxHXhP36PGE4sEq0f/lgL5jCLmOKoDeVm8dqd9gFGDsd1bNWHSGCAwdSkw== +@oxfmt/binding-freebsd-x64@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-freebsd-x64 + Package: https://www.npmjs.com/package/@oxfmt/binding-freebsd-x64/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-freebsd-x64/-/binding-freebsd-x64-0.72.0.tgz + Integrity: sha512-yGPhA8sePEBFV9iGcprhyOk3Bz3fZshswMH3DpYIPZFLT1DG5LjiZ0j6AJQpSueaL6bUK0av1K+5+fe+ldy5EQ== +@oxfmt/binding-linux-arm-gnueabihf@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-arm-gnueabihf + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-arm-gnueabihf/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.72.0.tgz + Integrity: sha512-/g5axuqFMcAtoQrFLR5EJEMDjR5Ea4GuzpdDmMpPWAgrF1DmL4kD1NPNVlpXEOxpFJnD6lPvLKYj1lzdlrfifA== +@oxfmt/binding-linux-arm-musleabihf@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-arm-musleabihf + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-arm-musleabihf/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.72.0.tgz + Integrity: sha512-InVitdHbS09PM+w+WinIiyX37rC9R3L7lUP9mKy9uKTEDSUFaLjWsLoreRIxKivnv7Ndqc6Trvi+K+b6ZzhiJg== +@oxfmt/binding-linux-arm64-gnu@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-arm64-gnu + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-arm64-gnu/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.72.0.tgz + Integrity: sha512-WKjlyRAxpPjXoqeuwFBim5LscgvY+RNEiZ971C9JlRQZONhJTsXDki/oHFYQE+fzzRpzXh3owZvOdT3kNL2g+g== +@oxfmt/binding-linux-arm64-musl@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-arm64-musl + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-arm64-musl/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.72.0.tgz + Integrity: sha512-poafnbsPpJhR+5Mbwpf8CscugTyiRAzjTOxRVn8ra3X2jnURs2xL5Du2xl5g2iW85lICMglpmLf8jDjZEbNgzQ== +@oxfmt/binding-linux-ppc64-gnu@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-ppc64-gnu + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-ppc64-gnu/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.72.0.tgz + Integrity: sha512-zNUi0gKRsO7S3IfPzsTbnm88OedPuX32hmZFWZRWHvWJlAoZRwVbeO6Nb3hng4vDgL7qUKp4TGqzPz1mhsycYg== +@oxfmt/binding-linux-riscv64-gnu@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-riscv64-gnu + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-riscv64-gnu/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.72.0.tgz + Integrity: sha512-qTY7z/iyF/rWI2HWwWMevXqZW5PZUOofUy2afK7v6rseXnpld3yjgyIk6pCux3DqWQ0lB+f5atvLJNBwzLvFsw== +@oxfmt/binding-linux-riscv64-musl@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-riscv64-musl + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-riscv64-musl/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.72.0.tgz + Integrity: sha512-w18qfo8vEMD6EKEHtzTvjc6jH8yCyXIT1Bn7PFWJd0PpZyzH/VQDx4xvjCh0LGz6GRzqiezbisTdG9AoXtpkZQ== +@oxfmt/binding-linux-s390x-gnu@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-s390x-gnu + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-s390x-gnu/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.72.0.tgz + Integrity: sha512-grW8HwEir+vK7fCcq1ZgL3NHQCfZ1PidiERE9Hbf+24xGys+DoDaoqTht4ccfn0PcBwbViLkwkda/KNpJu2KRQ== +@oxfmt/binding-linux-x64-gnu@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-x64-gnu + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-x64-gnu/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.72.0.tgz + Integrity: sha512-wQJRQfWBRIn88Pkr449EUViwRayrYUScg7ty+Ihiem21mQ9BUA6S9e/4RAgyNk9lMag0KBouyKskjq61rOC0WQ== +@oxfmt/binding-linux-x64-musl@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-linux-x64-musl + Package: https://www.npmjs.com/package/@oxfmt/binding-linux-x64-musl/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-linux-x64-musl/-/binding-linux-x64-musl-0.72.0.tgz + Integrity: sha512-T1B0uQzafxuGPjjaPrZJ497nxoi1BiI65JfsYc56nNpmev3msfb/iaTmH2kQuNFqa8PKxpMlf3GhWrWBvBPORQ== +@oxfmt/binding-openharmony-arm64@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-openharmony-arm64 + Package: https://www.npmjs.com/package/@oxfmt/binding-openharmony-arm64/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-openharmony-arm64/-/binding-openharmony-arm64-0.72.0.tgz + Integrity: sha512-OKxxgTurl7+hypVplO8QRAbbQlwEs0j1Y6FZv+ZN2qNbdxQk2muMlzuJNBGTCWwxQ0rkkOD1uK/DW1fvzoUSJA== +@oxfmt/binding-win32-arm64-msvc@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-win32-arm64-msvc + Package: https://www.npmjs.com/package/@oxfmt/binding-win32-arm64-msvc/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.72.0.tgz + Integrity: sha512-L78TKzURqvjuZOCo88ixMbPXf/RP7u31Y0cmjJ/KEmrHmfYhmhEvsDaTYPiyTRne64jUgCbADfY0YeoQk4/Xyw== +@oxfmt/binding-win32-ia32-msvc@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-win32-ia32-msvc + Package: https://www.npmjs.com/package/@oxfmt/binding-win32-ia32-msvc/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.72.0.tgz + Integrity: sha512-gQtFW+Ii8BWgtJTAD17TY/WsdNS5gUfAPov8iI1jeq4r9lRRYImmxPL08UU00/RLaCfBJwh2UgINnDY0iOiZ+A== +@oxfmt/binding-win32-x64-msvc@0.72.0 | development, optional | MIT + Lockfile path: node_modules/@oxfmt/binding-win32-x64-msvc + Package: https://www.npmjs.com/package/@oxfmt/binding-win32-x64-msvc/v/0.72.0 + Archive: https://registry.npmjs.org/@oxfmt/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.72.0.tgz + Integrity: sha512-uhooIN+DCzWX5uH7mQkSVCsODqsGluGJ4n3ch4+mITtWKpESMDjUJUSDBAVFuYQDwqY2McPDKdKJbM0oZVW/Qw== +@oxlint/binding-android-arm-eabi@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-android-arm-eabi + Package: https://www.npmjs.com/package/@oxlint/binding-android-arm-eabi/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.87.0.tgz + Integrity: sha512-22tVIHlB9898OYsBKmYB6He1MCSqdTmK1BVWuSNUTVrpS0KWNege+U9uEYqGJ+KatQag0r/oU44i3OOs46z7HQ== +@oxlint/binding-android-arm64@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-android-arm64 + Package: https://www.npmjs.com/package/@oxlint/binding-android-arm64/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-android-arm64/-/binding-android-arm64-1.87.0.tgz + Integrity: sha512-JfZQ3MWf74n8ov0DojZpkOduIubYJvZL5tbTMMhDutsal6u1xH1QuNpN+lK+EQwF8AeAfgwTR2fgh5U2br27XA== +@oxlint/binding-darwin-arm64@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-darwin-arm64 + Package: https://www.npmjs.com/package/@oxlint/binding-darwin-arm64/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.87.0.tgz + Integrity: sha512-rkx6Xvvw93z2GImVOyvbZwAZcoY0Z6MJW177XNsSB+i/CBsH7ANyelTp01VZyIkM3iSXtqKVb4+ptBgPHap5pQ== +@oxlint/binding-darwin-x64@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-darwin-x64 + Package: https://www.npmjs.com/package/@oxlint/binding-darwin-x64/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.87.0.tgz + Integrity: sha512-cw5nYw7L/pQ2SgGBgOcg/Qo89llQre3vIc/kuBLhSICzu1r5s8L76H3ug6AIFsD98WpROj8/z5JVzkf4daxHaQ== +@oxlint/binding-freebsd-x64@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-freebsd-x64 + Package: https://www.npmjs.com/package/@oxlint/binding-freebsd-x64/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.87.0.tgz + Integrity: sha512-x/SuznE6loRZK9gz9AS4ZmzNzSu+5KdeoCS+sVHhnrE8HM6AD8UyTjwldQTTqlXGvkwHASgB0NiTNOc3o3PdAg== +@oxlint/binding-linux-arm-gnueabihf@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-arm-gnueabihf + Package: https://www.npmjs.com/package/@oxlint/binding-linux-arm-gnueabihf/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.87.0.tgz + Integrity: sha512-+JEDmCAXiiFmKhAjZhgAOwaHWY6WENOQ5QA+lFuY59tgsUCDOTRi46B+lENK6CWvtxsXpwkZXNOgpjAQcpIpnA== +@oxlint/binding-linux-arm-musleabihf@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-arm-musleabihf + Package: https://www.npmjs.com/package/@oxlint/binding-linux-arm-musleabihf/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.87.0.tgz + Integrity: sha512-/uC9XqXLAC9AHFLNycwmSQEvKqGrOCgU+uXALI7gNW0DG81TJ/3T2eHnKdRvcb5R1gFEfjxDwI4e4zIa29rICQ== +@oxlint/binding-linux-arm64-gnu@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-arm64-gnu + Package: https://www.npmjs.com/package/@oxlint/binding-linux-arm64-gnu/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.87.0.tgz + Integrity: sha512-FTRYPsBy/M728vnUv7l+KAwSAa3Qi4BQbhVvy7NYuMTZ0sUa/OWsbMx79HVFw6u/5KWcaYayDsoOiv7xbevzDg== +@oxlint/binding-linux-arm64-musl@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-arm64-musl + Package: https://www.npmjs.com/package/@oxlint/binding-linux-arm64-musl/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.87.0.tgz + Integrity: sha512-6sC+N7IY0h1egd8SrYUGNN7CUyKJZ4bIZakKa7V7hfinf4jfi8Kq4+klJvFp5DqXcwMn44I5MeBwmJluO1odFg== +@oxlint/binding-linux-ppc64-gnu@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-ppc64-gnu + Package: https://www.npmjs.com/package/@oxlint/binding-linux-ppc64-gnu/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.87.0.tgz + Integrity: sha512-d5Mnn+ICbhoJPi37Ccjy+86T5qfH2+mSTrTMBXNPfB+wqSWOayBBLLIrCXdUy1YssluCVdGkl+DO9w5r5ODmUA== +@oxlint/binding-linux-riscv64-gnu@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-riscv64-gnu + Package: https://www.npmjs.com/package/@oxlint/binding-linux-riscv64-gnu/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.87.0.tgz + Integrity: sha512-sf5YWuUo1Dx9loqWCgF8P278MycfcD4JHjDC/LV5j11L3Lqa4PFiwCjD6B8kP4AjsgZZkLn3xbpJEtZBaccs4Q== +@oxlint/binding-linux-riscv64-musl@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-riscv64-musl + Package: https://www.npmjs.com/package/@oxlint/binding-linux-riscv64-musl/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.87.0.tgz + Integrity: sha512-+aCraYbmK3uU3P0rFojjeaK9pGY6JvBDXh/0CM+gPyWKmNmXmnFe0qj4qj02U4ibFpbd9Pa9CmDvIdjJUd29rA== +@oxlint/binding-linux-s390x-gnu@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-s390x-gnu + Package: https://www.npmjs.com/package/@oxlint/binding-linux-s390x-gnu/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.87.0.tgz + Integrity: sha512-7rzbZQIljo6VLWVPqUyLa2P/WV3VFsJB4M52R4NCUJn1A50yjtUsHxiMHFL9opEKGFIiTbZ3VQzmtcJOPUq4NQ== +@oxlint/binding-linux-x64-gnu@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-x64-gnu + Package: https://www.npmjs.com/package/@oxlint/binding-linux-x64-gnu/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.87.0.tgz + Integrity: sha512-Dry46Fa+AXE/xt9J/YriujU1pU9mzfNWHGQwtOYibAFH8HLrKWCi93AhIGnuUMiwn2JbuBkRyz51f50Ly4r4ow== +@oxlint/binding-linux-x64-musl@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-linux-x64-musl + Package: https://www.npmjs.com/package/@oxlint/binding-linux-x64-musl/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.87.0.tgz + Integrity: sha512-f/HMZez74gJvnRpGz+b5sdGyWrEgRLmFTXg9sNoqjPWogGxYHUhXKTKyMiYsu9rUGR2ciYqL3fk+Ua4JhMJbRA== +@oxlint/binding-openharmony-arm64@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-openharmony-arm64 + Package: https://www.npmjs.com/package/@oxlint/binding-openharmony-arm64/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.87.0.tgz + Integrity: sha512-lEC6ZfPZm/07JlB7FsOWX9o1RiHlXiBW594LSUGuXmekC8LZmvUPP9XzE2WZcNxJi5cHA/Fw56o02c3JxgMA5g== +@oxlint/binding-win32-arm64-msvc@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-win32-arm64-msvc + Package: https://www.npmjs.com/package/@oxlint/binding-win32-arm64-msvc/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.87.0.tgz + Integrity: sha512-afBWKOD36dUiA9AenaiWpCg8xfyUVPYznyAAVXu413brK4RA5UI/Xoc4yfeGIT8G1a44MV+JR7hioryerBDzGQ== +@oxlint/binding-win32-ia32-msvc@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-win32-ia32-msvc + Package: https://www.npmjs.com/package/@oxlint/binding-win32-ia32-msvc/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.87.0.tgz + Integrity: sha512-daptNsEOuru4/nJTxV4DBHNJ5GepzmaBVQf+jjgKQGi9NRlZKik+RFq4hUL7ewsF1pwjKM+SkYaMbF82UwFGnw== +@oxlint/binding-win32-x64-msvc@1.87.0 | development, optional | MIT + Lockfile path: node_modules/@oxlint/binding-win32-x64-msvc + Package: https://www.npmjs.com/package/@oxlint/binding-win32-x64-msvc/v/1.87.0 + Archive: https://registry.npmjs.org/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.87.0.tgz + Integrity: sha512-k+m/EShyXE29J/r1fjk0HlAzhN5JhIvj044oSJkXTEkCLrWZQgXb/3r4q5LTw/eaKW/4GuMXG2xmiJs3s5rPNw== +@pinojs/redact@0.4.0 | runtime | MIT + Lockfile path: node_modules/@pinojs/redact + Package: https://www.npmjs.com/package/@pinojs/redact/v/0.4.0 + Archive: https://registry.npmjs.org/@pinojs/redact/-/redact-0.4.0.tgz + Integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg== +@rolldown/binding-android-arm-eabi@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-android-arm-eabi + Package: https://www.npmjs.com/package/@rolldown/binding-android-arm-eabi/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.12.tgz + Integrity: sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A== +@rolldown/binding-android-arm64@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-android-arm64 + Package: https://www.npmjs.com/package/@rolldown/binding-android-arm64/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.12.tgz + Integrity: sha512-7KHFgQ5VJxIHcLlrwrc3Xbds7oTNQT7Pgi9gQCJKrd2VGab/UksIOYp6VD8MzCstGxOKMgNamPwUCfxPdP1OHg== +@rolldown/binding-darwin-arm64@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-darwin-arm64 + Package: https://www.npmjs.com/package/@rolldown/binding-darwin-arm64/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.12.tgz + Integrity: sha512-3YIhqHD96nA5SaYNRBR16HnGv4oavZvXfD/ayHM+oYZ0WD/8lBAtf6zQua4kEyAvpqrluKXl0lnOBoiNby7x9w== +@rolldown/binding-darwin-x64@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-darwin-x64 + Package: https://www.npmjs.com/package/@rolldown/binding-darwin-x64/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.12.tgz + Integrity: sha512-UuuJ35MFw4gmFOrE9pEqIV+K3syIKveph+Qc1/ljHZVdoDW4pz/JHR/eMVom+TZGl/5OOvGJOWaOCVt3ZfqhxA== +@rolldown/binding-freebsd-x64@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-freebsd-x64 + Package: https://www.npmjs.com/package/@rolldown/binding-freebsd-x64/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.12.tgz + Integrity: sha512-uMvssit0a4W+/7D8CbHUvG719mH3R2jwXAlh/XcPvuHTE0g++LymF88DCGNX0HM2rBOn0xrzgXktIB6fLSJBTQ== +@rolldown/binding-linux-arm-gnueabihf@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-linux-arm-gnueabihf + Package: https://www.npmjs.com/package/@rolldown/binding-linux-arm-gnueabihf/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.12.tgz + Integrity: sha512-XcFu0R0xWnwzSf4IQgFH1rJIckPN1pLy2R+4r9IDB7Yfu/ys9cVqfa4pBrMHj7a3gl8mIR4nRNPg0e5IvEVs6g== +@rolldown/binding-linux-arm64-gnu@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-linux-arm64-gnu + Package: https://www.npmjs.com/package/@rolldown/binding-linux-arm64-gnu/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.12.tgz + Integrity: sha512-260UrKgn8tz39ak+SMDOirKzr7V04M9dWPw5llW00SwBivCZoWcRBKV1d8cXnRkUmSZA3BdiUmBHWk7734Ulpw== +@rolldown/binding-linux-arm64-musl@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-linux-arm64-musl + Package: https://www.npmjs.com/package/@rolldown/binding-linux-arm64-musl/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.12.tgz + Integrity: sha512-5YK1I9SqDkbPgc1IA8BgDl34suqUS2q0KWnBrirm0E51YjOs6eo6dV6jbQfNE/argHRSvd0QUGgtpIoYx+WWpw== +@rolldown/binding-linux-ppc64-gnu@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-linux-ppc64-gnu + Package: https://www.npmjs.com/package/@rolldown/binding-linux-ppc64-gnu/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.12.tgz + Integrity: sha512-Rkcrmp7eFRg74yL5fXEU91JEWbdEPLevWwGtXpmhbjlD1StScbWTmO94Bhly+Mo+ketKYkdmM1vNUKeWSlx8cQ== +@rolldown/binding-linux-s390x-gnu@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-linux-s390x-gnu + Package: https://www.npmjs.com/package/@rolldown/binding-linux-s390x-gnu/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.12.tgz + Integrity: sha512-qvK4DuAsQc2BSjlx+Xr+IzOIvvxbGZqxFwdWfG6F518Erj0GGISyQbJ6pIappnOxlNPzNHvo/L0BwB30GZ+zVw== +@rolldown/binding-linux-x64-gnu@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-linux-x64-gnu + Package: https://www.npmjs.com/package/@rolldown/binding-linux-x64-gnu/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.12.tgz + Integrity: sha512-Q9uLBO53Xd4QIq1WOycVQyPP1O4HhraEV2qqb3uTrnVw6QZih9duY4vNXOivL1xoUS1/z+W8eF4NMfl2a8Sdjw== +@rolldown/binding-linux-x64-musl@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-linux-x64-musl + Package: https://www.npmjs.com/package/@rolldown/binding-linux-x64-musl/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.12.tgz + Integrity: sha512-3IBxWFMjbOZskDPKv8Lf9BCnahlKuHthWkYnyIxOH/QcJrFcS4EmcenthApkwr/5+nEqZlLzeYbxeMaX7A5u4g== +@rolldown/binding-openharmony-arm64@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-openharmony-arm64 + Package: https://www.npmjs.com/package/@rolldown/binding-openharmony-arm64/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.12.tgz + Integrity: sha512-xtX61xg4LKPkPWilZU1ynKClz5Gj4bf74LML4r3eVLWumKnGjoEr1OSHQhMdbBDoYTi+yjrujvpZe2pUnqCrrA== +@rolldown/binding-win32-arm64-msvc@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-win32-arm64-msvc + Package: https://www.npmjs.com/package/@rolldown/binding-win32-arm64-msvc/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.12.tgz + Integrity: sha512-At7fPB6PCaIjzgIhEZFxuT+BBFqiQibJDT4d3PhiR3f4E7bbMZF4aKblbFfEM3sETRDd1YiQx/+U/g/B/ou5Ew== +@rolldown/binding-win32-x64-msvc@1.2.12 | development, optional | MIT + Lockfile path: node_modules/@rolldown/binding-win32-x64-msvc + Package: https://www.npmjs.com/package/@rolldown/binding-win32-x64-msvc/v/1.2.12 + Archive: https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.12.tgz + Integrity: sha512-WIw2haVKwjuYdXkHaoC0mF8Le71TuCBxjrdKqLbJGctbBABj+ClfmNvtbOnzpq3RokNo5+V1qhtSzJyXorsklQ== +@rolldown/pluginutils@1.0.1 | development | MIT + Lockfile path: node_modules/@rolldown/pluginutils + Package: https://www.npmjs.com/package/@rolldown/pluginutils/v/1.0.1 + Archive: https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz + Integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw== +@rollup/rollup-android-arm-eabi@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-android-arm-eabi + Package: https://www.npmjs.com/package/@rollup/rollup-android-arm-eabi/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.64.1.tgz + Integrity: sha512-QRU7UpoS9hd8Ij5I6fCVBxZ0UpdfAbZ5y7BWG5STFGMoM9jGzUP464yYAa3CzZxvG+jBwq1kI8L07xx0ReAdGA== +@rollup/rollup-android-arm64@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-android-arm64 + Package: https://www.npmjs.com/package/@rollup/rollup-android-arm64/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.64.1.tgz + Integrity: sha512-ttQF6Rp4MrNy9/2AOPmHmMXbNE8kIlNPYoGC3ksid9tonleMQALfrhTFJiQxobBvXYKG5Wcc8VGcHWTHR0ik8w== +@rollup/rollup-darwin-arm64@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-darwin-arm64 + Package: https://www.npmjs.com/package/@rollup/rollup-darwin-arm64/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.64.1.tgz + Integrity: sha512-MvzZ+qbBi5jrafURHsASUF1qW/58tOJFt/gFVJo2znQWrKX4CSf/Lt/qGONtoA4yHsNL5QzgdXMuITZxAs62Vg== +@rollup/rollup-darwin-x64@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-darwin-x64 + Package: https://www.npmjs.com/package/@rollup/rollup-darwin-x64/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.64.1.tgz + Integrity: sha512-9uj1VBuiPK5ij/+g0mCK17X+V/4SbErvRQMXIQjZAtbl4VcUhv63RhPZsFSWHrCRkTd3FKDtaVTrtT0+8bIhhQ== +@rollup/rollup-freebsd-arm64@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-freebsd-arm64 + Package: https://www.npmjs.com/package/@rollup/rollup-freebsd-arm64/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.64.1.tgz + Integrity: sha512-FCoXm836IqcXWhWPRkqlLx3Hjnv9S7c8tg5MFwsgHB3aFCz1JjUy6b1ssrxEjEbqaHpnvRmNjUUHxsXuU85NYA== +@rollup/rollup-freebsd-x64@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-freebsd-x64 + Package: https://www.npmjs.com/package/@rollup/rollup-freebsd-x64/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.64.1.tgz + Integrity: sha512-Xa6Oxo86Ilx1hq1vNb69541NOuUyhGEH3Sc0g7eGkfsfRblWh4hAa4Lj2GWwZyfUVYL+Z4xK3TxhwIuZ3fNPLg== +@rollup/rollup-linux-arm-gnueabihf@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-arm-gnueabihf + Package: https://www.npmjs.com/package/@rollup/rollup-linux-arm-gnueabihf/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.64.1.tgz + Integrity: sha512-Nkw7cVMu1yrczpzr42Mh1BZ5Ai5A4Fsz2Je/frbwHmazpQTJzP+qo7pNjdxHrxVj56ivKTJihNoN90OD1hGxBA== +@rollup/rollup-linux-arm-musleabihf@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-arm-musleabihf + Package: https://www.npmjs.com/package/@rollup/rollup-linux-arm-musleabihf/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.64.1.tgz + Integrity: sha512-JONaLM9mZPXbSetxMzYG3496qoJuWvG2ERCTrrVptfw/Fwe4UzrQoEx/mYEeZCRv/Xz0RldOLFeqDfqmH75/Zg== +@rollup/rollup-linux-arm64-gnu@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-arm64-gnu + Package: https://www.npmjs.com/package/@rollup/rollup-linux-arm64-gnu/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.64.1.tgz + Integrity: sha512-OfimHma+prmdoobHI3tfYud2enQ2LXYaMu+iMUQH7IjJkykJ6qUmAs1M/scdQaEKRWysiKwTctsDa2LXvaO0xw== +@rollup/rollup-linux-arm64-musl@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-arm64-musl + Package: https://www.npmjs.com/package/@rollup/rollup-linux-arm64-musl/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.64.1.tgz + Integrity: sha512-X5fwh2HM8EHbgfFwpf4m2x2pG/AHdQ2aPDPk+JCDwV4DPeM8yxYmKG1vvm123JSc9gBSu8tu9NECA99wHPztsw== +@rollup/rollup-linux-loong64-gnu@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-loong64-gnu + Package: https://www.npmjs.com/package/@rollup/rollup-linux-loong64-gnu/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.64.1.tgz + Integrity: sha512-8dp2TxKdjiX/4f7Da9gF7BR29hygxOQlHxKNa8qxJHoqZ13ytrogFTpMPhtVEFrgFu9MSOabAn006PeoygavjA== +@rollup/rollup-linux-loong64-musl@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-loong64-musl + Package: https://www.npmjs.com/package/@rollup/rollup-linux-loong64-musl/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.64.1.tgz + Integrity: sha512-YuYDpRSZnU9qLf6sqyhiBdMRCw5ImECGLNqRjM2hZrJIEwAckameWkRJ3SUnn0oxSewZIib/4iLwyEXj40QqQQ== +@rollup/rollup-linux-ppc64-gnu@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-ppc64-gnu + Package: https://www.npmjs.com/package/@rollup/rollup-linux-ppc64-gnu/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.64.1.tgz + Integrity: sha512-gGj3v7YYkysy7IbfclMI4PDtHaa6YX4nU1D5NR1fyvXAGqM4TDk28ZWvrpOkkK92eoQRryAludWz6jNjsm77Qg== +@rollup/rollup-linux-ppc64-musl@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-ppc64-musl + Package: https://www.npmjs.com/package/@rollup/rollup-linux-ppc64-musl/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.64.1.tgz + Integrity: sha512-DTZVwvS94FUYpP0CjCfz2iT0XTmBfQGc/arx9IdwUbDImpe9h8dWuMT/oPUvcGiwLKMQoNmuFBx3AVajm+FNjA== +@rollup/rollup-linux-riscv64-gnu@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-riscv64-gnu + Package: https://www.npmjs.com/package/@rollup/rollup-linux-riscv64-gnu/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.64.1.tgz + Integrity: sha512-NWnyiq2moc8iEHGyTjIFadJTy8VCvCU/rUBfor+3l30JOQKAifpmKdxX4ZxRRPSPE/rLhFpLADdzNjS3Ldctdw== +@rollup/rollup-linux-riscv64-musl@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-riscv64-musl + Package: https://www.npmjs.com/package/@rollup/rollup-linux-riscv64-musl/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.64.1.tgz + Integrity: sha512-yIz+7L37g7bVOGLaUQmGqiYADH262krL4dtf5zU6QGldPgOairLEgW1FTs5pP0UFkHq5uf2qxDttOFsVAX6kxg== +@rollup/rollup-linux-s390x-gnu@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-s390x-gnu + Package: https://www.npmjs.com/package/@rollup/rollup-linux-s390x-gnu/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.64.1.tgz + Integrity: sha512-sRK+GWovJZV6ijyV/k1Ft3FL5+4DscF5OYsJolTbhVTTLFxKOPVjS0wxUUHakvL0vRw/cbFxZNeZLfM/EzuQhA== +@rollup/rollup-linux-x64-gnu@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-x64-gnu + Package: https://www.npmjs.com/package/@rollup/rollup-linux-x64-gnu/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.64.1.tgz + Integrity: sha512-T2C0NXqqD063yJdm8UGdcoudBATDODdphEXWS7rEoh0jOITfoEBv7LHfRBYVsy+pI7wwxgScoZpkFiQOf40ryQ== +@rollup/rollup-linux-x64-musl@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-linux-x64-musl + Package: https://www.npmjs.com/package/@rollup/rollup-linux-x64-musl/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.64.1.tgz + Integrity: sha512-05wl8uRZMkcobB6YZrzskr2SiM0VOdzlFw3bAxOjKKTt3M6o3O0X/hE/8xk15u8oQY17xUCdTKcNMMg45ZAFog== +@rollup/rollup-openbsd-x64@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-openbsd-x64 + Package: https://www.npmjs.com/package/@rollup/rollup-openbsd-x64/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.64.1.tgz + Integrity: sha512-NoRZK1VclOgn9x3b9vPJ3sTxwvQ/F+Hf93xurRKSFJKiwNZyQZnLxVpqlCejhDvesMLMF8VNN+Y4jHTFddV/Xg== +@rollup/rollup-openharmony-arm64@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-openharmony-arm64 + Package: https://www.npmjs.com/package/@rollup/rollup-openharmony-arm64/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.64.1.tgz + Integrity: sha512-SDkX4OkZBePUPf0/XsXVJLwS+O61CmkDKuIyk5CeWddK3vkE8AZjmWK+p1ILRez4wnbS5rTK+U9YmcbRyx2dHw== +@rollup/rollup-win32-arm64-msvc@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-win32-arm64-msvc + Package: https://www.npmjs.com/package/@rollup/rollup-win32-arm64-msvc/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.64.1.tgz + Integrity: sha512-JQ7el/Plr3juYFxIVu9YXDPNl57XR2L8WIc87JX9wj0L3goV8fXQPQXb3DaHVXq61X/WCGWsTCQsQHo6/Mz5UQ== +@rollup/rollup-win32-ia32-msvc@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-win32-ia32-msvc + Package: https://www.npmjs.com/package/@rollup/rollup-win32-ia32-msvc/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.64.1.tgz + Integrity: sha512-oZSlQ2H3ZDOz3ce1jEyuOZKuD0tPY/D2cKGMcMl0jhHQauBvkHHKAGR1OeRiMluvu3itzLRU2xCTUZptLayObA== +@rollup/rollup-win32-x64-gnu@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-win32-x64-gnu + Package: https://www.npmjs.com/package/@rollup/rollup-win32-x64-gnu/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.64.1.tgz + Integrity: sha512-Do2m3jUeVAvUDpee/yVZYRqhO8Ecx4x5sX3EVGalqLx+OxecLDGx3sIwPEm1Nq+MFK2FV3pgdpwWP4624b85Og== +@rollup/rollup-win32-x64-msvc@4.64.1 | development, optional | MIT + Lockfile path: node_modules/@rollup/rollup-win32-x64-msvc + Package: https://www.npmjs.com/package/@rollup/rollup-win32-x64-msvc/v/4.64.1 + Archive: https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.64.1.tgz + Integrity: sha512-KpxCwRn1Qh3tmBHAqIAF4HtUCVKqZd0w57TsItWblx3QVeJLtXaSgeBFAj1WAvBSpBo+Mh9iZCjj6YW/HaBVMw== +@scalar/openapi-types@0.8.0 | runtime | MIT + Lockfile path: node_modules/@scalar/openapi-types + Package: https://www.npmjs.com/package/@scalar/openapi-types/v/0.8.0 + Archive: https://registry.npmjs.org/@scalar/openapi-types/-/openapi-types-0.8.0.tgz + Integrity: sha512-WmaxVSfvY5K/TwcG2B2TU1WOe1As1uc2s7myswtP6dBlcjU3hM08SApxv/jmyGaCE8t4gO5BBhmHY4pDUfmr2g== +@shikijs/core@2.5.0 | development | MIT + Lockfile path: node_modules/@shikijs/core + Package: https://www.npmjs.com/package/@shikijs/core/v/2.5.0 + Archive: https://registry.npmjs.org/@shikijs/core/-/core-2.5.0.tgz + Integrity: sha512-uu/8RExTKtavlpH7XqnVYBrfBkUc20ngXiX9NSrBhOVZYv/7XQRKUyhtkeflY5QsxC0GbJThCerruZfsUaSldg== +@shikijs/engine-javascript@2.5.0 | development | MIT + Lockfile path: node_modules/@shikijs/engine-javascript + Package: https://www.npmjs.com/package/@shikijs/engine-javascript/v/2.5.0 + Archive: https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-2.5.0.tgz + Integrity: sha512-VjnOpnQf8WuCEZtNUdjjwGUbtAVKuZkVQ/5cHy/tojVVRIRtlWMYVjyWhxOmIq05AlSOv72z7hRNRGVBgQOl0w== +@shikijs/engine-oniguruma@2.5.0 | development | MIT + Lockfile path: node_modules/@shikijs/engine-oniguruma + Package: https://www.npmjs.com/package/@shikijs/engine-oniguruma/v/2.5.0 + Archive: https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-2.5.0.tgz + Integrity: sha512-pGd1wRATzbo/uatrCIILlAdFVKdxImWJGQ5rFiB5VZi2ve5xj3Ax9jny8QvkaV93btQEwR/rSz5ERFpC5mKNIw== +@shikijs/langs@2.5.0 | development | MIT + Lockfile path: node_modules/@shikijs/langs + Package: https://www.npmjs.com/package/@shikijs/langs/v/2.5.0 + Archive: https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz + Integrity: sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w== +@shikijs/themes@2.5.0 | development | MIT + Lockfile path: node_modules/@shikijs/themes + Package: https://www.npmjs.com/package/@shikijs/themes/v/2.5.0 + Archive: https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz + Integrity: sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw== +@shikijs/transformers@2.5.0 | development | MIT + Lockfile path: node_modules/@shikijs/transformers + Package: https://www.npmjs.com/package/@shikijs/transformers/v/2.5.0 + Archive: https://registry.npmjs.org/@shikijs/transformers/-/transformers-2.5.0.tgz + Integrity: sha512-SI494W5X60CaUwgi8u4q4m4s3YAFSxln3tzNjOSYqq54wlVgz0/NbbXEb3mdLbqMBztcmS7bVTaEd2w0qMmfeg== +@shikijs/types@2.5.0 | development | MIT + Lockfile path: node_modules/@shikijs/types + Package: https://www.npmjs.com/package/@shikijs/types/v/2.5.0 + Archive: https://registry.npmjs.org/@shikijs/types/-/types-2.5.0.tgz + Integrity: sha512-ygl5yhxki9ZLNuNpPitBWvcy9fsSKKaRuO4BAlMyagszQidxcpLAr0qiW/q43DtSIDxO6hEbtYLiFZNXO/hdGw== +@shikijs/vscode-textmate@10.0.2 | development | MIT + Lockfile path: node_modules/@shikijs/vscode-textmate + Package: https://www.npmjs.com/package/@shikijs/vscode-textmate/v/10.0.2 + Archive: https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz + Integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg== +@toon-format/toon@2.3.1 | runtime | MIT + Lockfile path: node_modules/@toon-format/toon + Package: https://www.npmjs.com/package/@toon-format/toon/v/2.3.1 + Archive: https://registry.npmjs.org/@toon-format/toon/-/toon-2.3.1.tgz + Integrity: sha512-sWqEMeAJGMda9qRrfPKrX3C4c33CO9SJuvJzzrcBEn5sbDB+k6pSLkDsfN0rVnLQwR97MV3sDgVbcxQNsq8xVw== +@turbo/darwin-64@2.11.7 | development, optional | MIT + Lockfile path: node_modules/@turbo/darwin-64 + Package: https://www.npmjs.com/package/@turbo/darwin-64/v/2.11.7 + Archive: https://registry.npmjs.org/@turbo/darwin-64/-/darwin-64-2.11.7.tgz + Integrity: sha512-Z2LFOxwbiJueD1miByXJS/BrW21vv6YaQXZustty5jEX4vQYw6zyh101Sz1QO7WG0mqBzKagZ/DoAeeujI0/Sw== +@turbo/darwin-arm64@2.11.7 | development, optional | MIT + Lockfile path: node_modules/@turbo/darwin-arm64 + Package: https://www.npmjs.com/package/@turbo/darwin-arm64/v/2.11.7 + Archive: https://registry.npmjs.org/@turbo/darwin-arm64/-/darwin-arm64-2.11.7.tgz + Integrity: sha512-Vhv8ybgIflosNDSSRD9fNXHlCFA60dsGyTqQmc7l28SEX5jOaweCCD4BBYNd8/p0WGkw3e7tZbfA9w6FsujGvw== +@turbo/linux-64@2.11.7 | development, optional | MIT + Lockfile path: node_modules/@turbo/linux-64 + Package: https://www.npmjs.com/package/@turbo/linux-64/v/2.11.7 + Archive: https://registry.npmjs.org/@turbo/linux-64/-/linux-64-2.11.7.tgz + Integrity: sha512-rAqRp3blQKk1+ylMGlZHAW0eJjVNuuGUm4ZrC6RU1Im8tLryvaO4a2zLQ/FQi1TRlmKqKV9YXBki2YeytlLbXA== +@turbo/linux-arm64@2.11.7 | development, optional | MIT + Lockfile path: node_modules/@turbo/linux-arm64 + Package: https://www.npmjs.com/package/@turbo/linux-arm64/v/2.11.7 + Archive: https://registry.npmjs.org/@turbo/linux-arm64/-/linux-arm64-2.11.7.tgz + Integrity: sha512-thVYGov7S+llXAxrl3kBb/efalav0xhrjl5NHCR6AfKx14JkbqaetvbVwyss4FvZ9rt+Pv3xsTb+8SIYix8DTg== +@turbo/windows-64@2.11.7 | development, optional | MIT + Lockfile path: node_modules/@turbo/windows-64 + Package: https://www.npmjs.com/package/@turbo/windows-64/v/2.11.7 + Archive: https://registry.npmjs.org/@turbo/windows-64/-/windows-64-2.11.7.tgz + Integrity: sha512-ZIoKT7J7KutgYl4bGxmmgeUQjG+7E0nY8BF9dxUOiMH2vdTsM4JQ2uSwTYFkTR2Llbg6ghGjSmuZ8LQtkLEYjg== +@turbo/windows-arm64@2.11.7 | development, optional | MIT + Lockfile path: node_modules/@turbo/windows-arm64 + Package: https://www.npmjs.com/package/@turbo/windows-arm64/v/2.11.7 + Archive: https://registry.npmjs.org/@turbo/windows-arm64/-/windows-arm64-2.11.7.tgz + Integrity: sha512-88Xv2f7SLGVJ68lRRx8o375dKmnZYNdDtvlKcPA0kZpcF93eAQd8l96BKQ0/AMHG0bMJA0Z5QqoqtetxzNsC+g== +@tybys/wasm-util@0.10.4 | development, optional | MIT + Lockfile path: node_modules/@tybys/wasm-util + Package: https://www.npmjs.com/package/@tybys/wasm-util/v/0.10.4 + Archive: https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz + Integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A== +@types/chai@5.2.3 | development | MIT + Lockfile path: node_modules/@types/chai + Package: https://www.npmjs.com/package/@types/chai/v/5.2.3 + Archive: https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz + Integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA== +@types/cross-spawn@6.0.6 | development | MIT + Lockfile path: node_modules/@types/cross-spawn + Package: https://www.npmjs.com/package/@types/cross-spawn/v/6.0.6 + Archive: https://registry.npmjs.org/@types/cross-spawn/-/cross-spawn-6.0.6.tgz + Integrity: sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA== +@types/deep-eql@4.0.2 | development | MIT + Lockfile path: node_modules/@types/deep-eql + Package: https://www.npmjs.com/package/@types/deep-eql/v/4.0.2 + Archive: https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz + Integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw== +@types/estree@1.0.9 | development | MIT + Lockfile path: node_modules/@types/estree + Package: https://www.npmjs.com/package/@types/estree/v/1.0.9 + Archive: https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz + Integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg== +@types/hast@3.0.5 | development | MIT + Lockfile path: node_modules/@types/hast + Package: https://www.npmjs.com/package/@types/hast/v/3.0.5 + Archive: https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz + Integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g== +@types/linkify-it@5.0.0 | development | MIT + Lockfile path: node_modules/@types/linkify-it + Package: https://www.npmjs.com/package/@types/linkify-it/v/5.0.0 + Archive: https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz + Integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q== +@types/markdown-it@14.2.0 | development | MIT + Lockfile path: node_modules/@types/markdown-it + Package: https://www.npmjs.com/package/@types/markdown-it/v/14.2.0 + Archive: https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz + Integrity: sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ== +@types/mdast@4.0.4 | development | MIT + Lockfile path: node_modules/@types/mdast + Package: https://www.npmjs.com/package/@types/mdast/v/4.0.4 + Archive: https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz + Integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA== +@types/mdurl@2.0.0 | development | MIT + Lockfile path: node_modules/@types/mdurl + Package: https://www.npmjs.com/package/@types/mdurl/v/2.0.0 + Archive: https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz + Integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg== +@types/node@26.6.4 | development | MIT + Lockfile path: node_modules/@types/node + Package: https://www.npmjs.com/package/@types/node/v/26.6.4 + Archive: https://registry.npmjs.org/@types/node/-/node-26.6.4.tgz + Integrity: sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg== +@types/semver@7.7.1 | development | MIT + Lockfile path: node_modules/@types/semver + Package: https://www.npmjs.com/package/@types/semver/v/7.7.1 + Archive: https://registry.npmjs.org/@types/semver/-/semver-7.7.1.tgz + Integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA== +@types/unist@3.0.3 | development | MIT + Lockfile path: node_modules/@types/unist + Package: https://www.npmjs.com/package/@types/unist/v/3.0.3 + Archive: https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz + Integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q== +@types/web-bluetooth@0.0.21 | development | MIT + Lockfile path: node_modules/@types/web-bluetooth + Package: https://www.npmjs.com/package/@types/web-bluetooth/v/0.0.21 + Archive: https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz + Integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA== +@types/write-file-atomic@4.0.3 | development | MIT + Lockfile path: node_modules/@types/write-file-atomic + Package: https://www.npmjs.com/package/@types/write-file-atomic/v/4.0.3 + Archive: https://registry.npmjs.org/@types/write-file-atomic/-/write-file-atomic-4.0.3.tgz + Integrity: sha512-qdo+vZRchyJIHNeuI1nrpsLw+hnkgqP/8mlaN6Wle/NKhydHmUN9l4p3ZE8yP90AJNJW4uB8HQhedb4f1vNayQ== +@types/ws@8.18.1 | development | MIT + Lockfile path: node_modules/@types/ws + Package: https://www.npmjs.com/package/@types/ws/v/8.18.1 + Archive: https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz + Integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg== +@typescript/typescript-aix-ppc64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-aix-ppc64 + Package: https://www.npmjs.com/package/@typescript/typescript-aix-ppc64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz + Integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ== +@typescript/typescript-darwin-arm64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-darwin-arm64 + Package: https://www.npmjs.com/package/@typescript/typescript-darwin-arm64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz + Integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA== +@typescript/typescript-darwin-x64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-darwin-x64 + Package: https://www.npmjs.com/package/@typescript/typescript-darwin-x64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz + Integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA== +@typescript/typescript-freebsd-arm64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-freebsd-arm64 + Package: https://www.npmjs.com/package/@typescript/typescript-freebsd-arm64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz + Integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ== +@typescript/typescript-freebsd-x64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-freebsd-x64 + Package: https://www.npmjs.com/package/@typescript/typescript-freebsd-x64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz + Integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw== +@typescript/typescript-linux-arm@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-arm + Package: https://www.npmjs.com/package/@typescript/typescript-linux-arm/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz + Integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ== +@typescript/typescript-linux-arm64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-arm64 + Package: https://www.npmjs.com/package/@typescript/typescript-linux-arm64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz + Integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ== +@typescript/typescript-linux-loong64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-loong64 + Package: https://www.npmjs.com/package/@typescript/typescript-linux-loong64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz + Integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ== +@typescript/typescript-linux-mips64el@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-mips64el + Package: https://www.npmjs.com/package/@typescript/typescript-linux-mips64el/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz + Integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA== +@typescript/typescript-linux-ppc64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-ppc64 + Package: https://www.npmjs.com/package/@typescript/typescript-linux-ppc64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz + Integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA== +@typescript/typescript-linux-riscv64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-riscv64 + Package: https://www.npmjs.com/package/@typescript/typescript-linux-riscv64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz + Integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ== +@typescript/typescript-linux-s390x@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-s390x + Package: https://www.npmjs.com/package/@typescript/typescript-linux-s390x/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz + Integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw== +@typescript/typescript-linux-x64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-linux-x64 + Package: https://www.npmjs.com/package/@typescript/typescript-linux-x64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz + Integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A== +@typescript/typescript-netbsd-arm64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-netbsd-arm64 + Package: https://www.npmjs.com/package/@typescript/typescript-netbsd-arm64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz + Integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA== +@typescript/typescript-netbsd-x64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-netbsd-x64 + Package: https://www.npmjs.com/package/@typescript/typescript-netbsd-x64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz + Integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA== +@typescript/typescript-openbsd-arm64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-openbsd-arm64 + Package: https://www.npmjs.com/package/@typescript/typescript-openbsd-arm64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz + Integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ== +@typescript/typescript-openbsd-x64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-openbsd-x64 + Package: https://www.npmjs.com/package/@typescript/typescript-openbsd-x64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz + Integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg== +@typescript/typescript-sunos-x64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-sunos-x64 + Package: https://www.npmjs.com/package/@typescript/typescript-sunos-x64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz + Integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g== +@typescript/typescript-win32-arm64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-win32-arm64 + Package: https://www.npmjs.com/package/@typescript/typescript-win32-arm64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz + Integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ== +@typescript/typescript-win32-x64@7.0.2 | development, optional | Apache-2.0 + Lockfile path: node_modules/@typescript/typescript-win32-x64 + Package: https://www.npmjs.com/package/@typescript/typescript-win32-x64/v/7.0.2 + Archive: https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz + Integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g== +@ungap/structured-clone@1.4.0 | development | ISC + Lockfile path: node_modules/@ungap/structured-clone + Package: https://www.npmjs.com/package/@ungap/structured-clone/v/1.4.0 + Archive: https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz + Integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ== +@vitest/coverage-v8@5.0.3 | development | MIT + Lockfile path: node_modules/@vitest/coverage-v8 + Package: https://www.npmjs.com/package/@vitest/coverage-v8/v/5.0.3 + Archive: https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-5.0.3.tgz + Integrity: sha512-+klsyz7BvT1vCU28Zkfzms1Ia78XD0V41U3FUtRaa3S+vOr/EXvK1O6BvVD7l1RzEjm6SONR2aybOvDDf9u0mQ== +@vitest/istanbul-lib-coverage@1.0.2 | development | MIT + Lockfile path: node_modules/@vitest/istanbul-lib-coverage + Package: https://www.npmjs.com/package/@vitest/istanbul-lib-coverage/v/1.0.2 + Archive: https://registry.npmjs.org/@vitest/istanbul-lib-coverage/-/istanbul-lib-coverage-1.0.2.tgz + Integrity: sha512-9J/JMwOf9AoJhAywhrn7ScKTL38hsWQP/qPG60OtaAFcQ5OXPwKsxZFlbnuCKmZ61m8/lGgHYnFpdyQZUvG/iA== +@vitest/istanbul-lib-report@1.0.2 | development | MIT + Lockfile path: node_modules/@vitest/istanbul-lib-report + Package: https://www.npmjs.com/package/@vitest/istanbul-lib-report/v/1.0.2 + Archive: https://registry.npmjs.org/@vitest/istanbul-lib-report/-/istanbul-lib-report-1.0.2.tgz + Integrity: sha512-gUsfXZJbzPamoIY5TvHFiMMoXESBrUMo+xqaj+rYrWI69+EnvRlYBlP96ZnHPY4vX8kyUpgAnFUCg5wZG/HkDQ== +@vitest/mocker@5.0.3 | development | MIT + Lockfile path: node_modules/@vitest/mocker + Package: https://www.npmjs.com/package/@vitest/mocker/v/5.0.3 + Archive: https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.3.tgz + Integrity: sha512-T8sWAIbkSyAjkwTcaEc3Iu0o9A27X1/kdXrizhZkGuSKScRQtRzclfAMpOTcGdXCsqxeWlpGy3XjqaW8CpLORg== +@vitest/spy@5.0.3 | development | MIT + Lockfile path: node_modules/@vitest/spy + Package: https://www.npmjs.com/package/@vitest/spy/v/5.0.3 + Archive: https://registry.npmjs.org/@vitest/spy/-/spy-5.0.3.tgz + Integrity: sha512-XhFysQTB8AZ+P4gMi+Lpo99vg2AZi0qKpaB9yXQl37+CaMEAPO3iH/wGVnSyL5MPERiLezpqTVtrR6UZH5GCXg== +@vue/compiler-core@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/compiler-core + Package: https://www.npmjs.com/package/@vue/compiler-core/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.43.tgz + Integrity: sha512-zdiLhnbe1QQqgDT8xZMpNmyqZ3qlI+/Q/FHQco57Kwl/b05HhCzN6eVGN9QU9rbga4CrS0H5SYY8VGHZCt/1Hg== +@babel/helper-string-parser@7.29.7 | development | MIT + Lockfile path: node_modules/@vue/compiler-core/node_modules/@babel/helper-string-parser + Package: https://www.npmjs.com/package/@babel/helper-string-parser/v/7.29.7 + Archive: https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz + Integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw== +@babel/helper-validator-identifier@7.29.7 | development | MIT + Lockfile path: node_modules/@vue/compiler-core/node_modules/@babel/helper-validator-identifier + Package: https://www.npmjs.com/package/@babel/helper-validator-identifier/v/7.29.7 + Archive: https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz + Integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg== +@babel/parser@7.29.9 | development | MIT + Lockfile path: node_modules/@vue/compiler-core/node_modules/@babel/parser + Package: https://www.npmjs.com/package/@babel/parser/v/7.29.9 + Archive: https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz + Integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA== +@babel/types@7.29.8 | development | MIT + Lockfile path: node_modules/@vue/compiler-core/node_modules/@babel/types + Package: https://www.npmjs.com/package/@babel/types/v/7.29.8 + Archive: https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz + Integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg== +estree-walker@2.0.2 | development | MIT + Lockfile path: node_modules/@vue/compiler-core/node_modules/estree-walker + Package: https://www.npmjs.com/package/estree-walker/v/2.0.2 + Archive: https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz + Integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== +@vue/compiler-dom@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/compiler-dom + Package: https://www.npmjs.com/package/@vue/compiler-dom/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.43.tgz + Integrity: sha512-PEZoAk3NQmsn/ejMzSOCyTYqwGqczrWm70PuhBKjjv1+TCoQAaO/zOqNwjV+honlNstT5ILxtc+8r8UUfj+iEQ== +@vue/compiler-sfc@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/compiler-sfc + Package: https://www.npmjs.com/package/@vue/compiler-sfc/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.43.tgz + Integrity: sha512-FCbrG3XNCRl+js3huuKx4IVHBLTvMkJhVepjbxSPu1gn4yWLaYtGNQdjJGZaMytXB6qb76qQDDmDSLy/vkmleQ== +@babel/helper-string-parser@7.29.7 | development | MIT + Lockfile path: node_modules/@vue/compiler-sfc/node_modules/@babel/helper-string-parser + Package: https://www.npmjs.com/package/@babel/helper-string-parser/v/7.29.7 + Archive: https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz + Integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw== +@babel/helper-validator-identifier@7.29.7 | development | MIT + Lockfile path: node_modules/@vue/compiler-sfc/node_modules/@babel/helper-validator-identifier + Package: https://www.npmjs.com/package/@babel/helper-validator-identifier/v/7.29.7 + Archive: https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz + Integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg== +@babel/parser@7.29.9 | development | MIT + Lockfile path: node_modules/@vue/compiler-sfc/node_modules/@babel/parser + Package: https://www.npmjs.com/package/@babel/parser/v/7.29.9 + Archive: https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz + Integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA== +@babel/types@7.29.8 | development | MIT + Lockfile path: node_modules/@vue/compiler-sfc/node_modules/@babel/types + Package: https://www.npmjs.com/package/@babel/types/v/7.29.8 + Archive: https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz + Integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg== +estree-walker@2.0.2 | development | MIT + Lockfile path: node_modules/@vue/compiler-sfc/node_modules/estree-walker + Package: https://www.npmjs.com/package/estree-walker/v/2.0.2 + Archive: https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz + Integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== +magic-string@0.30.21 | development | MIT + Lockfile path: node_modules/@vue/compiler-sfc/node_modules/magic-string + Package: https://www.npmjs.com/package/magic-string/v/0.30.21 + Archive: https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz + Integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ== +@vue/compiler-ssr@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/compiler-ssr + Package: https://www.npmjs.com/package/@vue/compiler-ssr/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.43.tgz + Integrity: sha512-GF62orf7KiJX9RqrHNGrYBudsQGD0OhJ5nDs90O8UiDuS40+YMYomiXu6w6EuvtXuRDc3MSNis3EaaSKAVSWpg== +@vue/devtools-api@7.7.10 | development | MIT + Lockfile path: node_modules/@vue/devtools-api + Package: https://www.npmjs.com/package/@vue/devtools-api/v/7.7.10 + Archive: https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.10.tgz + Integrity: sha512-KxtEpUOOpFz/qOGRrAwA36QF7DqIA+FXgCYit9mk9wjbaZt0sXOFz81ElOZtKA4HbWHUdwNjZHBFsFFyp5BZiA== +@vue/devtools-kit@7.7.10 | development | MIT + Lockfile path: node_modules/@vue/devtools-kit + Package: https://www.npmjs.com/package/@vue/devtools-kit/v/7.7.10 + Archive: https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.10.tgz + Integrity: sha512-3WNi2Kq4tbpVbmhml7RiphmAt0279oh3fKNeWMQIrltfX8Q91b4i5PL8DtyNKdwmcsGrV4fg+erwWOmD05CLIw== +@vue/devtools-shared@7.7.10 | development | MIT + Lockfile path: node_modules/@vue/devtools-shared + Package: https://www.npmjs.com/package/@vue/devtools-shared/v/7.7.10 + Archive: https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.10.tgz + Integrity: sha512-wOPslzB8vTvpxwdaOcR2qAbwmuSP0L+rhpoC6Cf56V3Jip+HWb7PQQXOUPgBNQARpXsbQX/+mvi8kKucmBGRwQ== +@vue/reactivity@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/reactivity + Package: https://www.npmjs.com/package/@vue/reactivity/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.43.tgz + Integrity: sha512-G/c9GyOZNI2jVaaS6OX1EF1SSFSv7H0ERqNTl4+DTFMlZmB5eVAB53aLQNam/7NL2NPtaDD7RdVrzf8uJzMuOA== +@vue/runtime-core@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/runtime-core + Package: https://www.npmjs.com/package/@vue/runtime-core/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.43.tgz + Integrity: sha512-hU6U6VnVhBGQDpvlnnDlIB8ZGJBiOcgk2lh/0InltHiz3D8oSkluvuvY+do1G2H3+udeKFsmaBlgVYP7gXQzEw== +@vue/runtime-dom@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/runtime-dom + Package: https://www.npmjs.com/package/@vue/runtime-dom/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.43.tgz + Integrity: sha512-Bb2Jc0YjjJdMt1SJmb9b2L/IWd3I8lIT9x9eS/xvvP9CiVgna0ffua74xKRmt4/uSJ+0r4iN8ex1jrqkhQGWQw== +@vue/server-renderer@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/server-renderer + Package: https://www.npmjs.com/package/@vue/server-renderer/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.43.tgz + Integrity: sha512-l2Ygjv9NehV94PSBxNWsAHC0j/eIIKbn92mBuWXAPGLnn6HfJ6MH5ubsd+Nk0YoZ5FRuxWI1P2VSoh+dbPQhCQ== +@vue/shared@3.5.43 | development | MIT + Lockfile path: node_modules/@vue/shared + Package: https://www.npmjs.com/package/@vue/shared/v/3.5.43 + Archive: https://registry.npmjs.org/@vue/shared/-/shared-3.5.43.tgz + Integrity: sha512-uksS7YGMR5NZyr4JNq0Rp+QyLns0ueaz20KwzIPW9R0LH1Vnt4E+XUM29PNseEbf1www2gOuhuDi5AKOIXag9Q== +@vueuse/core@12.8.2 | development | MIT + Lockfile path: node_modules/@vueuse/core + Package: https://www.npmjs.com/package/@vueuse/core/v/12.8.2 + Archive: https://registry.npmjs.org/@vueuse/core/-/core-12.8.2.tgz + Integrity: sha512-HbvCmZdzAu3VGi/pWYm5Ut+Kd9mn1ZHnn4L5G8kOQTPs/IwIAmJoBrmYk2ckLArgMXZj0AW3n5CAejLUO+PhdQ== +@vueuse/integrations@12.8.2 | development | MIT + Lockfile path: node_modules/@vueuse/integrations + Package: https://www.npmjs.com/package/@vueuse/integrations/v/12.8.2 + Archive: https://registry.npmjs.org/@vueuse/integrations/-/integrations-12.8.2.tgz + Integrity: sha512-fbGYivgK5uBTRt7p5F3zy6VrETlV9RtZjBqd1/HxGdjdckBgBM4ugP8LHpjolqTj14TXTxSK1ZfgPbHYyGuH7g== +@vueuse/metadata@12.8.2 | development | MIT + Lockfile path: node_modules/@vueuse/metadata + Package: https://www.npmjs.com/package/@vueuse/metadata/v/12.8.2 + Archive: https://registry.npmjs.org/@vueuse/metadata/-/metadata-12.8.2.tgz + Integrity: sha512-rAyLGEuoBJ/Il5AmFHiziCPdQzRt88VxR+Y/A/QhJ1EWtWqPBBAxTAFaSkviwEuOEZNtW8pvkPgoCZQ+HxqW1A== +@vueuse/shared@12.8.2 | development | MIT + Lockfile path: node_modules/@vueuse/shared + Package: https://www.npmjs.com/package/@vueuse/shared/v/12.8.2 + Archive: https://registry.npmjs.org/@vueuse/shared/-/shared-12.8.2.tgz + Integrity: sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w== +@xmldom/xmldom@0.9.12 | runtime | MIT + Lockfile path: node_modules/@xmldom/xmldom + Package: https://www.npmjs.com/package/@xmldom/xmldom/v/0.9.12 + Archive: https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz + Integrity: sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A== +@xterm/addon-serialize@0.14.0 | runtime | MIT + Lockfile path: node_modules/@xterm/addon-serialize + Package: https://www.npmjs.com/package/@xterm/addon-serialize/v/0.14.0 + Archive: https://registry.npmjs.org/@xterm/addon-serialize/-/addon-serialize-0.14.0.tgz + Integrity: sha512-uteyTU1EkrQa2Ux6P/uFl2fzmXI46jy5uoQMKEOM0fKTyiW7cSn0WrFenHm5vO5uEXX/GpwW/FgILvv3r0WbkA== +@xterm/headless@6.0.0 | runtime | MIT + Lockfile path: node_modules/@xterm/headless + Package: https://www.npmjs.com/package/@xterm/headless/v/6.0.0 + Archive: https://registry.npmjs.org/@xterm/headless/-/headless-6.0.0.tgz + Integrity: sha512-5Yj1QINYCyzrZtf8OFIHi47iQtI+0qYFPHmouEfG8dHNxbZ9Tb9YGSuLcsEwj9Z+OL75GJqPyJbyoFer80a2Hw== +@zip.js/zip.js@2.15.0 | runtime | BSD-3-Clause + Lockfile path: node_modules/@zip.js/zip.js + Package: https://www.npmjs.com/package/@zip.js/zip.js/v/2.15.0 + Archive: https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.15.0.tgz + Integrity: sha512-hYAuHAaWjt0axbofaDL5XUlmrQPsBDcK3f45ApZuh6N+8UGVk26GoGdtGDvcvzahsHytTQ6DtBVXwG9IcCMjjQ== +abort-controller@3.0.0 | runtime | MIT + Lockfile path: node_modules/abort-controller + Package: https://www.npmjs.com/package/abort-controller/v/3.0.0 + Archive: https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz + Integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== +ajv@8.20.0 | runtime | MIT + Lockfile path: node_modules/ajv + Package: https://www.npmjs.com/package/ajv/v/8.20.0 + Archive: https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz + Integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA== +ajv-formats@3.0.1 | runtime | MIT + Lockfile path: node_modules/ajv-formats + Package: https://www.npmjs.com/package/ajv-formats/v/3.0.1 + Archive: https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz + Integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ== +algoliasearch@5.59.0 | development | MIT + Lockfile path: node_modules/algoliasearch + Package: https://www.npmjs.com/package/algoliasearch/v/5.59.0 + Archive: https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.59.0.tgz + Integrity: sha512-wUXzaeI7B526W4y1gFg3lcxgDZ67XSgRJIiellYWOas/pLpO7rOtxm9Gr2E/C8aiSDXIgx1q5TdSsvK67Uakqw== +ansi-escapes@7.3.0 | development | MIT + Lockfile path: node_modules/ansi-escapes + Package: https://www.npmjs.com/package/ansi-escapes/v/7.3.0 + Archive: https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.3.0.tgz + Integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg== +ansi-regex@6.2.2 | development | MIT + Lockfile path: node_modules/ansi-regex + Package: https://www.npmjs.com/package/ansi-regex/v/6.2.2 + Archive: https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz + Integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg== +ansi-styles@6.2.3 | development | MIT + Lockfile path: node_modules/ansi-styles + Package: https://www.npmjs.com/package/ansi-styles/v/6.2.3 + Archive: https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz + Integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg== +assertion-error@2.0.1 | development | MIT + Lockfile path: node_modules/assertion-error + Package: https://www.npmjs.com/package/assertion-error/v/2.0.1 + Archive: https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz + Integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA== +ast-v8-to-istanbul@1.0.7 | development | MIT + Lockfile path: node_modules/ast-v8-to-istanbul + Package: https://www.npmjs.com/package/ast-v8-to-istanbul/v/1.0.7 + Archive: https://registry.npmjs.org/ast-v8-to-istanbul/-/ast-v8-to-istanbul-1.0.7.tgz + Integrity: sha512-kFL68AG6ajd8fg248zwM9GQrUWEp79gsmjum34OEXjs4yHuUMZfYKwOLW9GMmB4oNvVrj+EAGxsP7ye2UR9UlA== +async-lock@1.4.1 | runtime | MIT + Lockfile path: node_modules/async-lock + Package: https://www.npmjs.com/package/async-lock/v/1.4.1 + Archive: https://registry.npmjs.org/async-lock/-/async-lock-1.4.1.tgz + Integrity: sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ== +atomic-sleep@1.0.0 | runtime | MIT + Lockfile path: node_modules/atomic-sleep + Package: https://www.npmjs.com/package/atomic-sleep/v/1.0.0 + Archive: https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz + Integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ== +available-typed-arrays@1.0.7 | runtime | MIT + Lockfile path: node_modules/available-typed-arrays + Package: https://www.npmjs.com/package/available-typed-arrays/v/1.0.7 + Archive: https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz + Integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== +balanced-match@4.0.4 | runtime | MIT + Lockfile path: node_modules/balanced-match + Package: https://www.npmjs.com/package/balanced-match/v/4.0.4 + Archive: https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz + Integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== +base64-js@1.5.1 | runtime | MIT + Lockfile path: node_modules/base64-js + Package: https://www.npmjs.com/package/base64-js/v/1.5.1 + Archive: https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz + Integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== +birpc@2.9.0 | development | MIT + Lockfile path: node_modules/birpc + Package: https://www.npmjs.com/package/birpc/v/2.9.0 + Archive: https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz + Integrity: sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw== +brace-expansion@5.0.12 | runtime | MIT + Lockfile path: node_modules/brace-expansion + Package: https://www.npmjs.com/package/brace-expansion/v/5.0.12 + Archive: https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz + Integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ== +buffer@6.0.3 | runtime | MIT + Lockfile path: node_modules/buffer + Package: https://www.npmjs.com/package/buffer/v/6.0.3 + Archive: https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz + Integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== +call-bind@1.0.9 | runtime | MIT + Lockfile path: node_modules/call-bind + Package: https://www.npmjs.com/package/call-bind/v/1.0.9 + Archive: https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz + Integrity: sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ== +call-bind-apply-helpers@1.0.2 | runtime | MIT + Lockfile path: node_modules/call-bind-apply-helpers + Package: https://www.npmjs.com/package/call-bind-apply-helpers/v/1.0.2 + Archive: https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz + Integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== +call-bound@1.0.4 | runtime | MIT + Lockfile path: node_modules/call-bound + Package: https://www.npmjs.com/package/call-bound/v/1.0.4 + Archive: https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz + Integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== +canonicalize@3.0.0 | runtime | Apache-2.0 + Lockfile path: node_modules/canonicalize + Package: https://www.npmjs.com/package/canonicalize/v/3.0.0 + Archive: https://registry.npmjs.org/canonicalize/-/canonicalize-3.0.0.tgz + Integrity: sha512-yYLfHyDMIXRyRqsKBRLX023riFLpXY2YOfdtqKXZRZy9qsfOJ9U+4F9YZL7MEzL5+ziN2x2nlBvY/Voi3EBljA== +ccount@2.0.1 | development | MIT + Lockfile path: node_modules/ccount + Package: https://www.npmjs.com/package/ccount/v/2.0.1 + Archive: https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz + Integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== +chai@6.3.0 | development | MIT + Lockfile path: node_modules/chai + Package: https://www.npmjs.com/package/chai/v/6.3.0 + Archive: https://registry.npmjs.org/chai/-/chai-6.3.0.tgz + Integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg== +character-entities-html4@2.1.0 | development | MIT + Lockfile path: node_modules/character-entities-html4 + Package: https://www.npmjs.com/package/character-entities-html4/v/2.1.0 + Archive: https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz + Integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA== +character-entities-legacy@3.0.0 | development | MIT + Lockfile path: node_modules/character-entities-legacy + Package: https://www.npmjs.com/package/character-entities-legacy/v/3.0.0 + Archive: https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz + Integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ== +clean-git-ref@2.0.1 | runtime | Apache-2.0 + Lockfile path: node_modules/clean-git-ref + Package: https://www.npmjs.com/package/clean-git-ref/v/2.0.1 + Archive: https://registry.npmjs.org/clean-git-ref/-/clean-git-ref-2.0.1.tgz + Integrity: sha512-bLSptAy2P0s6hU4PzuIMKmMJJSE6gLXGH1cntDu7bWJUksvuM+7ReOK61mozULErYvP6a15rnYl0zFDef+pyPw== +cli-cursor@5.0.0 | development | MIT + Lockfile path: node_modules/cli-cursor + Package: https://www.npmjs.com/package/cli-cursor/v/5.0.0 + Archive: https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz + Integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw== +cli-truncate@5.2.0 | development | MIT + Lockfile path: node_modules/cli-truncate + Package: https://www.npmjs.com/package/cli-truncate/v/5.2.0 + Archive: https://registry.npmjs.org/cli-truncate/-/cli-truncate-5.2.0.tgz + Integrity: sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw== +colorette@2.0.20 | development | MIT + Lockfile path: node_modules/colorette + Package: https://www.npmjs.com/package/colorette/v/2.0.20 + Archive: https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz + Integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== +comma-separated-tokens@2.0.3 | development | MIT + Lockfile path: node_modules/comma-separated-tokens + Package: https://www.npmjs.com/package/comma-separated-tokens/v/2.0.3 + Archive: https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz + Integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg== +commander@14.0.3 | development | MIT + Lockfile path: node_modules/commander + Package: https://www.npmjs.com/package/commander/v/14.0.3 + Archive: https://registry.npmjs.org/commander/-/commander-14.0.3.tgz + Integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw== +copy-anything@4.1.5 | development | MIT + Lockfile path: node_modules/copy-anything + Package: https://www.npmjs.com/package/copy-anything/v/4.1.5 + Archive: https://registry.npmjs.org/copy-anything/-/copy-anything-4.1.5.tgz + Integrity: sha512-vePst2VLTSqPglW7Q98VwFpGiGpOHTyXIo81MO5VyLecA5zMbZw/P/V1vmwD1jksa2iJpn/YkDrJ3XhTfzUyhQ== +crc-32@1.2.2 | runtime | Apache-2.0 + Lockfile path: node_modules/crc-32 + Package: https://www.npmjs.com/package/crc-32/v/1.2.2 + Archive: https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz + Integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== +cross-spawn@7.0.6 | runtime | MIT + Lockfile path: node_modules/cross-spawn + Package: https://www.npmjs.com/package/cross-spawn/v/7.0.6 + Archive: https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz + Integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== +csstype@3.2.3 | development | MIT + Lockfile path: node_modules/csstype + Package: https://www.npmjs.com/package/csstype/v/3.2.3 + Archive: https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz + Integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ== +decompress-response@6.0.0 | runtime | MIT + Lockfile path: node_modules/decompress-response + Package: https://www.npmjs.com/package/decompress-response/v/6.0.0 + Archive: https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz + Integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== +define-data-property@1.1.4 | runtime | MIT + Lockfile path: node_modules/define-data-property + Package: https://www.npmjs.com/package/define-data-property/v/1.1.4 + Archive: https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz + Integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== +dequal@2.0.3 | development | MIT + Lockfile path: node_modules/dequal + Package: https://www.npmjs.com/package/dequal/v/2.0.3 + Archive: https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz + Integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== +detect-libc@2.1.2 | development | Apache-2.0 + Lockfile path: node_modules/detect-libc + Package: https://www.npmjs.com/package/detect-libc/v/2.1.2 + Archive: https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz + Integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ== +devlop@1.1.0 | development | MIT + Lockfile path: node_modules/devlop + Package: https://www.npmjs.com/package/devlop/v/1.1.0 + Archive: https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz + Integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA== +diff@9.0.0 | runtime | BSD-3-Clause + Lockfile path: node_modules/diff + Package: https://www.npmjs.com/package/diff/v/9.0.0 + Archive: https://registry.npmjs.org/diff/-/diff-9.0.0.tgz + Integrity: sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw== +diff3@0.0.3 | runtime | MIT + Lockfile path: node_modules/diff3 + Package: https://www.npmjs.com/package/diff3/v/0.0.3 + Archive: https://registry.npmjs.org/diff3/-/diff3-0.0.3.tgz + Integrity: sha512-iSq8ngPOt0K53A6eVr4d5Kn6GNrM2nQZtC740pzIriHtn4pOQ2lyzEXQMBeVcWERN0ye7fhBsk9PbLLQOnUx/g== +dunder-proto@1.0.1 | runtime | MIT + Lockfile path: node_modules/dunder-proto + Package: https://www.npmjs.com/package/dunder-proto/v/1.0.1 + Archive: https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz + Integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== +emoji-regex@10.6.0 | development | MIT + Lockfile path: node_modules/emoji-regex + Package: https://www.npmjs.com/package/emoji-regex/v/10.6.0 + Archive: https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz + Integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A== +emoji-regex-xs@1.0.0 | development | MIT + Lockfile path: node_modules/emoji-regex-xs + Package: https://www.npmjs.com/package/emoji-regex-xs/v/1.0.0 + Archive: https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz + Integrity: sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg== +entities@7.0.1 | development | BSD-2-Clause + Lockfile path: node_modules/entities + Package: https://www.npmjs.com/package/entities/v/7.0.1 + Archive: https://registry.npmjs.org/entities/-/entities-7.0.1.tgz + Integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA== +environment@1.1.0 | development | MIT + Lockfile path: node_modules/environment + Package: https://www.npmjs.com/package/environment/v/1.1.0 + Archive: https://registry.npmjs.org/environment/-/environment-1.1.0.tgz + Integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q== +es-define-property@1.0.1 | runtime | MIT + Lockfile path: node_modules/es-define-property + Package: https://www.npmjs.com/package/es-define-property/v/1.0.1 + Archive: https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz + Integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== +es-errors@1.3.0 | runtime | MIT + Lockfile path: node_modules/es-errors + Package: https://www.npmjs.com/package/es-errors/v/1.3.0 + Archive: https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz + Integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== +es-module-lexer@2.3.2 | development | MIT + Lockfile path: node_modules/es-module-lexer + Package: https://www.npmjs.com/package/es-module-lexer/v/2.3.2 + Archive: https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz + Integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw== +es-object-atoms@1.1.2 | runtime | MIT + Lockfile path: node_modules/es-object-atoms + Package: https://www.npmjs.com/package/es-object-atoms/v/1.1.2 + Archive: https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz + Integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw== +estree-walker@3.0.3 | development | MIT + Lockfile path: node_modules/estree-walker + Package: https://www.npmjs.com/package/estree-walker/v/3.0.3 + Archive: https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz + Integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g== +event-target-shim@5.0.1 | runtime | MIT + Lockfile path: node_modules/event-target-shim + Package: https://www.npmjs.com/package/event-target-shim/v/5.0.1 + Archive: https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz + Integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== +eventemitter3@5.0.4 | development | MIT + Lockfile path: node_modules/eventemitter3 + Package: https://www.npmjs.com/package/eventemitter3/v/5.0.4 + Archive: https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz + Integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw== +events@3.3.0 | runtime | MIT + Lockfile path: node_modules/events + Package: https://www.npmjs.com/package/events/v/3.3.0 + Archive: https://registry.npmjs.org/events/-/events-3.3.0.tgz + Integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== +eventsource@3.0.7 | runtime | MIT + Lockfile path: node_modules/eventsource + Package: https://www.npmjs.com/package/eventsource/v/3.0.7 + Archive: https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz + Integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA== +eventsource-parser@3.1.0 | runtime | MIT + Lockfile path: node_modules/eventsource-parser + Package: https://www.npmjs.com/package/eventsource-parser/v/3.1.0 + Archive: https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.0.tgz + Integrity: sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg== +evmole@0.9.3 | runtime | MIT + Lockfile path: node_modules/evmole + Package: https://www.npmjs.com/package/evmole/v/0.9.3 + Archive: https://registry.npmjs.org/evmole/-/evmole-0.9.3.tgz + Integrity: sha512-UhO5HMAoEPCupSxvBJPlm/L0Qk/KVJ/OJo3r4EyhXADIEHqU5aTkAzsBfzk4lXGjqxVnaYbh1GPSmZtmSHFnQQ== +expect-type@1.4.0 | development | Apache-2.0 + Lockfile path: node_modules/expect-type + Package: https://www.npmjs.com/package/expect-type/v/1.4.0 + Archive: https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz + Integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA== +fast-check@4.9.0 | development | MIT + Lockfile path: node_modules/fast-check + Package: https://www.npmjs.com/package/fast-check/v/4.9.0 + Archive: https://registry.npmjs.org/fast-check/-/fast-check-4.9.0.tgz + Integrity: sha512-7ms6T7SybUev/PQITciI0yLM2pOSFy5zpG8Ty7tQofcVaQUvrMXp6CBwqF6fThLCLOrfBtuHAtwq6Yu4XPCllg== +fast-deep-equal@3.1.3 | runtime | MIT + Lockfile path: node_modules/fast-deep-equal + Package: https://www.npmjs.com/package/fast-deep-equal/v/3.1.3 + Archive: https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz + Integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +fast-string-truncated-width@3.0.3 | runtime | MIT + Lockfile path: node_modules/fast-string-truncated-width + Package: https://www.npmjs.com/package/fast-string-truncated-width/v/3.0.3 + Archive: https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz + Integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g== +fast-string-width@3.0.2 | runtime | MIT + Lockfile path: node_modules/fast-string-width + Package: https://www.npmjs.com/package/fast-string-width/v/3.0.2 + Archive: https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz + Integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg== +fast-uri@3.1.8 | runtime | BSD-3-Clause + Lockfile path: node_modules/fast-uri + Package: https://www.npmjs.com/package/fast-uri/v/3.1.8 + Archive: https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz + Integrity: sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg== +fast-wrap-ansi@0.2.2 | runtime | MIT + Lockfile path: node_modules/fast-wrap-ansi + Package: https://www.npmjs.com/package/fast-wrap-ansi/v/0.2.2 + Archive: https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz + Integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q== +fd-package-json@2.0.0 | development | MIT + Lockfile path: node_modules/fd-package-json + Package: https://www.npmjs.com/package/fd-package-json/v/2.0.0 + Archive: https://registry.npmjs.org/fd-package-json/-/fd-package-json-2.0.0.tgz + Integrity: sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ== +fdir@6.5.0 | development | MIT + Lockfile path: node_modules/fdir + Package: https://www.npmjs.com/package/fdir/v/6.5.0 + Archive: https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz + Integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg== +focus-trap@7.8.0 | development | MIT + Lockfile path: node_modules/focus-trap + Package: https://www.npmjs.com/package/focus-trap/v/7.8.0 + Archive: https://registry.npmjs.org/focus-trap/-/focus-trap-7.8.0.tgz + Integrity: sha512-/yNdlIkpWbM0ptxno3ONTuf+2g318kh2ez3KSeZN5dZ8YC6AAmgeWz+GasYYiBJPFaYcSAPeu4GfhUaChzIJXA== +for-each@0.3.5 | runtime | MIT + Lockfile path: node_modules/for-each + Package: https://www.npmjs.com/package/for-each/v/0.3.5 + Archive: https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz + Integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg== +formatly@0.7.1 | development | MIT + Lockfile path: node_modules/formatly + Package: https://www.npmjs.com/package/formatly/v/0.7.1 + Archive: https://registry.npmjs.org/formatly/-/formatly-0.7.1.tgz + Integrity: sha512-ESuCEJE0SGgabl9q+zABI8LhJDmF+8nhpuqDzuM48HfJ9QTD5o6PqFJDFZY7w6f8xsh5lixuj5nJsQNvYOWvKQ== +fsevents@2.3.3 | development, optional | MIT + Lockfile path: node_modules/fsevents + Package: https://www.npmjs.com/package/fsevents/v/2.3.3 + Archive: https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz + Integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== +function-bind@1.1.2 | runtime | MIT + Lockfile path: node_modules/function-bind + Package: https://www.npmjs.com/package/function-bind/v/1.1.2 + Archive: https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz + Integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== +get-east-asian-width@1.6.0 | development | MIT + Lockfile path: node_modules/get-east-asian-width + Package: https://www.npmjs.com/package/get-east-asian-width/v/1.6.0 + Archive: https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz + Integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA== +get-intrinsic@1.3.0 | runtime | MIT + Lockfile path: node_modules/get-intrinsic + Package: https://www.npmjs.com/package/get-intrinsic/v/1.3.0 + Archive: https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz + Integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== +get-proto@1.0.1 | runtime | MIT + Lockfile path: node_modules/get-proto + Package: https://www.npmjs.com/package/get-proto/v/1.0.1 + Archive: https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz + Integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== +get-tsconfig@4.14.3 | development | MIT + Lockfile path: node_modules/get-tsconfig + Package: https://www.npmjs.com/package/get-tsconfig/v/4.14.3 + Archive: https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz + Integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA== +glob@13.0.6 | runtime | BlueOak-1.0.0 + Lockfile path: node_modules/glob + Package: https://www.npmjs.com/package/glob/v/13.0.6 + Archive: https://registry.npmjs.org/glob/-/glob-13.0.6.tgz + Integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw== +gopd@1.2.0 | runtime | MIT + Lockfile path: node_modules/gopd + Package: https://www.npmjs.com/package/gopd/v/1.2.0 + Archive: https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz + Integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== +har-schema@2.0.0 | runtime | ISC + Lockfile path: node_modules/har-schema + Package: https://www.npmjs.com/package/har-schema/v/2.0.0 + Archive: https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz + Integrity: sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== +has-property-descriptors@1.0.2 | runtime | MIT + Lockfile path: node_modules/has-property-descriptors + Package: https://www.npmjs.com/package/has-property-descriptors/v/1.0.2 + Archive: https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz + Integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== +has-symbols@1.1.0 | runtime | MIT + Lockfile path: node_modules/has-symbols + Package: https://www.npmjs.com/package/has-symbols/v/1.1.0 + Archive: https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz + Integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== +has-tostringtag@1.0.2 | runtime | MIT + Lockfile path: node_modules/has-tostringtag + Package: https://www.npmjs.com/package/has-tostringtag/v/1.0.2 + Archive: https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz + Integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== +hasown@2.0.4 | runtime | MIT + Lockfile path: node_modules/hasown + Package: https://www.npmjs.com/package/hasown/v/2.0.4 + Archive: https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz + Integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A== +hast-util-to-html@9.0.5 | development | MIT + Lockfile path: node_modules/hast-util-to-html + Package: https://www.npmjs.com/package/hast-util-to-html/v/9.0.5 + Archive: https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz + Integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw== +hast-util-whitespace@3.0.0 | development | MIT + Lockfile path: node_modules/hast-util-whitespace + Package: https://www.npmjs.com/package/hast-util-whitespace/v/3.0.0 + Archive: https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz + Integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw== +hookable@5.5.3 | development | MIT + Lockfile path: node_modules/hookable + Package: https://www.npmjs.com/package/hookable/v/5.5.3 + Archive: https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz + Integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ== +html-void-elements@3.0.0 | development | MIT + Lockfile path: node_modules/html-void-elements + Package: https://www.npmjs.com/package/html-void-elements/v/3.0.0 + Archive: https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz + Integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg== +husky@9.1.7 | development | MIT + Lockfile path: node_modules/husky + Package: https://www.npmjs.com/package/husky/v/9.1.7 + Archive: https://registry.npmjs.org/husky/-/husky-9.1.7.tgz + Integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA== +ieee754@1.2.1 | runtime | BSD-3-Clause + Lockfile path: node_modules/ieee754 + Package: https://www.npmjs.com/package/ieee754/v/1.2.1 + Archive: https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz + Integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== +ignore@7.0.6 | runtime | MIT + Lockfile path: node_modules/ignore + Package: https://www.npmjs.com/package/ignore/v/7.0.6 + Archive: https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz + Integrity: sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw== +imurmurhash@0.1.4 | runtime | MIT + Lockfile path: node_modules/imurmurhash + Package: https://www.npmjs.com/package/imurmurhash/v/0.1.4 + Archive: https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz + Integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== +incur@0.6.1 | runtime | MIT + Lockfile path: node_modules/incur + Package: https://www.npmjs.com/package/incur/v/0.6.1 + Archive: https://registry.npmjs.org/incur/-/incur-0.6.1.tgz + Integrity: sha512-QgaPKsKH+/3SLdUTSkCYwMWzL56vO3wn7iheEwKE0jOtWSa9Irzn8KeyhkRIkTzHW0ReiQwo0EtT8bBGR9PpMw== +@modelcontextprotocol/server@2.0.0-alpha.4 | runtime | MIT + Lockfile path: node_modules/incur/node_modules/@modelcontextprotocol/server + Package: https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.0.0-alpha.4 + Archive: https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.0.0-alpha.4.tgz + Integrity: sha512-/KEo3ZJ50HlagHp0lz2vPgfBZFtXHu6zTBXT9XqPc+4O9i4+IbBVWKq/a9yAfv/ifp0u3+mRo8SUk5kMKzhN8A== +inherits@2.0.4 | runtime | ISC + Lockfile path: node_modules/inherits + Package: https://www.npmjs.com/package/inherits/v/2.0.4 + Archive: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + Integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== +is-callable@1.2.7 | runtime | MIT + Lockfile path: node_modules/is-callable + Package: https://www.npmjs.com/package/is-callable/v/1.2.7 + Archive: https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz + Integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== +is-fullwidth-code-point@5.1.0 | development | MIT + Lockfile path: node_modules/is-fullwidth-code-point + Package: https://www.npmjs.com/package/is-fullwidth-code-point/v/5.1.0 + Archive: https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz + Integrity: sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ== +is-typed-array@1.1.15 | runtime | MIT + Lockfile path: node_modules/is-typed-array + Package: https://www.npmjs.com/package/is-typed-array/v/1.1.15 + Archive: https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz + Integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ== +isarray@2.0.5 | runtime | MIT + Lockfile path: node_modules/isarray + Package: https://www.npmjs.com/package/isarray/v/2.0.5 + Archive: https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz + Integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== +isexe@2.0.0 | runtime | ISC + Lockfile path: node_modules/isexe + Package: https://www.npmjs.com/package/isexe/v/2.0.0 + Archive: https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz + Integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +isomorphic-git@1.38.7 | runtime | MIT + Lockfile path: node_modules/isomorphic-git + Package: https://www.npmjs.com/package/isomorphic-git/v/1.38.7 + Archive: https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.38.7.tgz + Integrity: sha512-2J2rCV7gTgcpscEDT7PjU5shbsKKI10E4RqBlPDI3LmMXDjSKsN2w1jTIKiay14v87sPDfXjJkgp/Rrxc0zlSg== +ignore@5.3.2 | runtime | MIT + Lockfile path: node_modules/isomorphic-git/node_modules/ignore + Package: https://www.npmjs.com/package/ignore/v/5.3.2 + Archive: https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz + Integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== +jiti@2.7.0 | development | MIT + Lockfile path: node_modules/jiti + Package: https://www.npmjs.com/package/jiti/v/2.7.0 + Archive: https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz + Integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ== +jose@6.2.3 | runtime | MIT + Lockfile path: node_modules/jose + Package: https://www.npmjs.com/package/jose/v/6.2.3 + Archive: https://registry.npmjs.org/jose/-/jose-6.2.3.tgz + Integrity: sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw== +js-tokens@10.0.0 | development | MIT + Lockfile path: node_modules/js-tokens + Package: https://www.npmjs.com/package/js-tokens/v/10.0.0 + Archive: https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz + Integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q== +jscpd@5.0.12 | development | MIT + Lockfile path: node_modules/jscpd + Package: https://www.npmjs.com/package/jscpd/v/5.0.12 + Archive: https://registry.npmjs.org/jscpd/-/jscpd-5.0.12.tgz + Integrity: sha512-87dC+akj2mCywlt8p3xnRlDg0B55u4GDbfE9cuwOOeIxbEuWuIoNqGoYi65A0516aJ4EzAjGwBj1Qb/Ahc8WAQ== +jscpd-darwin-arm64@5.0.12 | development, optional | MIT + Lockfile path: node_modules/jscpd-darwin-arm64 + Package: https://www.npmjs.com/package/jscpd-darwin-arm64/v/5.0.12 + Archive: https://registry.npmjs.org/jscpd-darwin-arm64/-/jscpd-darwin-arm64-5.0.12.tgz + Integrity: sha512-CQCDYhQY9yOGGeauzkRGYW/QtXurPCjfDkEhUoM/M5UdmpzxfG3i9mnNsaheJ0RdFRf73mL7JaLVRP8U2l5/kA== +jscpd-darwin-x64@5.0.12 | development, optional | MIT + Lockfile path: node_modules/jscpd-darwin-x64 + Package: https://www.npmjs.com/package/jscpd-darwin-x64/v/5.0.12 + Archive: https://registry.npmjs.org/jscpd-darwin-x64/-/jscpd-darwin-x64-5.0.12.tgz + Integrity: sha512-7XNCDfChP9fPkIWLepd0zGnTov7/5mR7rJ5Utc1MdWFdgkN//qz6FAJ1FhQA0E/qjFedy9XTucfUCgLybSBsjw== +jscpd-linux-arm64-gnu@5.0.12 | development, optional | MIT + Lockfile path: node_modules/jscpd-linux-arm64-gnu + Package: https://www.npmjs.com/package/jscpd-linux-arm64-gnu/v/5.0.12 + Archive: https://registry.npmjs.org/jscpd-linux-arm64-gnu/-/jscpd-linux-arm64-gnu-5.0.12.tgz + Integrity: sha512-i/usHD0/8twzb2Qo4vFWcnuAD4IDLS6K/mTXwYy1CiJZDw4gmjfH45jtjdKUyoutTAiNs+ZWZgx1gIRljUbFuA== +jscpd-linux-x64-gnu@5.0.12 | development, optional | MIT + Lockfile path: node_modules/jscpd-linux-x64-gnu + Package: https://www.npmjs.com/package/jscpd-linux-x64-gnu/v/5.0.12 + Archive: https://registry.npmjs.org/jscpd-linux-x64-gnu/-/jscpd-linux-x64-gnu-5.0.12.tgz + Integrity: sha512-TqaeSTaGawcqyXSrQvYJFtLRn4aQeHgphGGsq2ZtVAg+lPeuMmh81c3bl0yi2dL3gDX1RGBQKBVul1XQknOuoA== +jscpd-linux-x64-musl@5.0.12 | development, optional | MIT + Lockfile path: node_modules/jscpd-linux-x64-musl + Package: https://www.npmjs.com/package/jscpd-linux-x64-musl/v/5.0.12 + Archive: https://registry.npmjs.org/jscpd-linux-x64-musl/-/jscpd-linux-x64-musl-5.0.12.tgz + Integrity: sha512-WelugY1/rdoo0Y0sqJ2XQOIvyIZTfRe+vP3MJe4XvEUwPF0v+9SQoS34FnfblRhsddVixyNkgl7x/sHid9UMJw== +jscpd-windows-x64-msvc@5.0.12 | development, optional | MIT + Lockfile path: node_modules/jscpd-windows-x64-msvc + Package: https://www.npmjs.com/package/jscpd-windows-x64-msvc/v/5.0.12 + Archive: https://registry.npmjs.org/jscpd-windows-x64-msvc/-/jscpd-windows-x64-msvc-5.0.12.tgz + Integrity: sha512-01x1klKjvfzI6Of5tI9u72x7TIQZQLLG6kMdsEPJKl/BXbskdknrfCepeTXRBbdFPKs25jfcd0klZ4OdDvww5w== +json-schema-traverse@1.0.0 | runtime | MIT + Lockfile path: node_modules/json-schema-traverse + Package: https://www.npmjs.com/package/json-schema-traverse/v/1.0.0 + Archive: https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz + Integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== +jsonc-parser@3.3.1 | runtime | MIT + Lockfile path: node_modules/jsonc-parser + Package: https://www.npmjs.com/package/jsonc-parser/v/3.3.1 + Archive: https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz + Integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== +knip@6.39.0 | development | ISC + Lockfile path: node_modules/knip + Package: https://www.npmjs.com/package/knip/v/6.39.0 + Archive: https://registry.npmjs.org/knip/-/knip-6.39.0.tgz + Integrity: sha512-Y7g6Ve1ATMox1u1v+gx3z9LTlvzVLTJISm/LVn9TgBU4qc7OoC63AWGO8qCFPVDDdaqlYdXkDDvvO1METBfTRw== +yaml@2.9.1 | development | ISC + Lockfile path: node_modules/knip/node_modules/yaml + Package: https://www.npmjs.com/package/yaml/v/2.9.1 + Archive: https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz + Integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw== +lightningcss@1.33.0 | development | MPL-2.0 + Lockfile path: node_modules/lightningcss + Package: https://www.npmjs.com/package/lightningcss/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz + Integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA== +lightningcss-android-arm64@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-android-arm64 + Package: https://www.npmjs.com/package/lightningcss-android-arm64/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz + Integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg== +lightningcss-darwin-arm64@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-darwin-arm64 + Package: https://www.npmjs.com/package/lightningcss-darwin-arm64/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz + Integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg== +lightningcss-darwin-x64@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-darwin-x64 + Package: https://www.npmjs.com/package/lightningcss-darwin-x64/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz + Integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ== +lightningcss-freebsd-x64@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-freebsd-x64 + Package: https://www.npmjs.com/package/lightningcss-freebsd-x64/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz + Integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg== +lightningcss-linux-arm-gnueabihf@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-linux-arm-gnueabihf + Package: https://www.npmjs.com/package/lightningcss-linux-arm-gnueabihf/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz + Integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ== +lightningcss-linux-arm64-gnu@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-linux-arm64-gnu + Package: https://www.npmjs.com/package/lightningcss-linux-arm64-gnu/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz + Integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg== +lightningcss-linux-arm64-musl@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-linux-arm64-musl + Package: https://www.npmjs.com/package/lightningcss-linux-arm64-musl/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz + Integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ== +lightningcss-linux-x64-gnu@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-linux-x64-gnu + Package: https://www.npmjs.com/package/lightningcss-linux-x64-gnu/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz + Integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg== +lightningcss-linux-x64-musl@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-linux-x64-musl + Package: https://www.npmjs.com/package/lightningcss-linux-x64-musl/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz + Integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw== +lightningcss-win32-arm64-msvc@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-win32-arm64-msvc + Package: https://www.npmjs.com/package/lightningcss-win32-arm64-msvc/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz + Integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA== +lightningcss-win32-x64-msvc@1.33.0 | development, optional | MPL-2.0 + Lockfile path: node_modules/lightningcss-win32-x64-msvc + Package: https://www.npmjs.com/package/lightningcss-win32-x64-msvc/v/1.33.0 + Archive: https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz + Integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA== +lint-staged@16.4.0 | development | MIT + Lockfile path: node_modules/lint-staged + Package: https://www.npmjs.com/package/lint-staged/v/16.4.0 + Archive: https://registry.npmjs.org/lint-staged/-/lint-staged-16.4.0.tgz + Integrity: sha512-lBWt8hujh/Cjysw5GYVmZpFHXDCgZzhrOm8vbcUdobADZNOK/bRshr2kM3DfgrrtR1DQhfupW9gnIXOfiFi+bw== +listr2@9.0.5 | development | MIT + Lockfile path: node_modules/listr2 + Package: https://www.npmjs.com/package/listr2/v/9.0.5 + Archive: https://registry.npmjs.org/listr2/-/listr2-9.0.5.tgz + Integrity: sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g== +log-update@6.1.0 | development | MIT + Lockfile path: node_modules/log-update + Package: https://www.npmjs.com/package/log-update/v/6.1.0 + Archive: https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz + Integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w== +slice-ansi@7.1.2 | development | MIT + Lockfile path: node_modules/log-update/node_modules/slice-ansi + Package: https://www.npmjs.com/package/slice-ansi/v/7.1.2 + Archive: https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz + Integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w== +lossless-json@4.3.1 | runtime | MIT + Lockfile path: node_modules/lossless-json + Package: https://www.npmjs.com/package/lossless-json/v/4.3.1 + Archive: https://registry.npmjs.org/lossless-json/-/lossless-json-4.3.1.tgz + Integrity: sha512-SqD/Bg3ZfltBJ2Z14hJ/BihnvtV553WO4g9/ePtlp4lrnl9jF3AdIJt53A/Wkg/0Li+LMfxaBqgx1MiFZdQlpQ== +lru-cache@11.5.2 | runtime | BlueOak-1.0.0 + Lockfile path: node_modules/lru-cache + Package: https://www.npmjs.com/package/lru-cache/v/11.5.2 + Archive: https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz + Integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g== +magic-string@1.4.3 | development | MIT + Lockfile path: node_modules/magic-string + Package: https://www.npmjs.com/package/magic-string/v/1.4.3 + Archive: https://registry.npmjs.org/magic-string/-/magic-string-1.4.3.tgz + Integrity: sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ== +magicast@0.5.5 | development | MIT + Lockfile path: node_modules/magicast + Package: https://www.npmjs.com/package/magicast/v/0.5.5 + Archive: https://registry.npmjs.org/magicast/-/magicast-0.5.5.tgz + Integrity: sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA== +@babel/helper-string-parser@7.29.7 | development | MIT + Lockfile path: node_modules/magicast/node_modules/@babel/helper-string-parser + Package: https://www.npmjs.com/package/@babel/helper-string-parser/v/7.29.7 + Archive: https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz + Integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw== +@babel/helper-validator-identifier@7.29.7 | development | MIT + Lockfile path: node_modules/magicast/node_modules/@babel/helper-validator-identifier + Package: https://www.npmjs.com/package/@babel/helper-validator-identifier/v/7.29.7 + Archive: https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz + Integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg== +@babel/parser@7.29.9 | development | MIT + Lockfile path: node_modules/magicast/node_modules/@babel/parser + Package: https://www.npmjs.com/package/@babel/parser/v/7.29.9 + Archive: https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz + Integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA== +@babel/types@7.29.8 | development | MIT + Lockfile path: node_modules/magicast/node_modules/@babel/types + Package: https://www.npmjs.com/package/@babel/types/v/7.29.8 + Archive: https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz + Integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg== +mark.js@8.11.1 | development | MIT + Lockfile path: node_modules/mark.js + Package: https://www.npmjs.com/package/mark.js/v/8.11.1 + Archive: https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz + Integrity: sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ== +math-intrinsics@1.1.0 | runtime | MIT + Lockfile path: node_modules/math-intrinsics + Package: https://www.npmjs.com/package/math-intrinsics/v/1.1.0 + Archive: https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz + Integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== +mdast-util-to-hast@13.2.1 | development | MIT + Lockfile path: node_modules/mdast-util-to-hast + Package: https://www.npmjs.com/package/mdast-util-to-hast/v/13.2.1 + Archive: https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz + Integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA== +micromark-util-character@2.1.1 | development | MIT + Lockfile path: node_modules/micromark-util-character + Package: https://www.npmjs.com/package/micromark-util-character/v/2.1.1 + Archive: https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz + Integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q== +micromark-util-encode@2.0.1 | development | MIT + Lockfile path: node_modules/micromark-util-encode + Package: https://www.npmjs.com/package/micromark-util-encode/v/2.0.1 + Archive: https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz + Integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw== +micromark-util-sanitize-uri@2.0.1 | development | MIT + Lockfile path: node_modules/micromark-util-sanitize-uri + Package: https://www.npmjs.com/package/micromark-util-sanitize-uri/v/2.0.1 + Archive: https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz + Integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ== +micromark-util-symbol@2.0.1 | development | MIT + Lockfile path: node_modules/micromark-util-symbol + Package: https://www.npmjs.com/package/micromark-util-symbol/v/2.0.1 + Archive: https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz + Integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q== +micromark-util-types@2.0.3 | development | MIT + Lockfile path: node_modules/micromark-util-types + Package: https://www.npmjs.com/package/micromark-util-types/v/2.0.3 + Archive: https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz + Integrity: sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg== +mimic-function@5.0.1 | development | MIT + Lockfile path: node_modules/mimic-function + Package: https://www.npmjs.com/package/mimic-function/v/5.0.1 + Archive: https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz + Integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA== +mimic-response@3.1.0 | runtime | MIT + Lockfile path: node_modules/mimic-response + Package: https://www.npmjs.com/package/mimic-response/v/3.1.0 + Archive: https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz + Integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== +minimatch@10.2.5 | runtime | BlueOak-1.0.0 + Lockfile path: node_modules/minimatch + Package: https://www.npmjs.com/package/minimatch/v/10.2.5 + Archive: https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz + Integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg== +minimist@1.2.8 | runtime | MIT + Lockfile path: node_modules/minimist + Package: https://www.npmjs.com/package/minimist/v/1.2.8 + Archive: https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz + Integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== +minimisted@2.0.1 | runtime | MIT + Lockfile path: node_modules/minimisted + Package: https://www.npmjs.com/package/minimisted/v/2.0.1 + Archive: https://registry.npmjs.org/minimisted/-/minimisted-2.0.1.tgz + Integrity: sha512-1oPjfuLQa2caorJUM8HV8lGgWCc0qqAO1MNv/k05G4qslmsndV/5WdNZrqCiyqiz3wohia2Ij2B7w2Dr7/IyrA== +minipass@7.1.3 | runtime | BlueOak-1.0.0 + Lockfile path: node_modules/minipass + Package: https://www.npmjs.com/package/minipass/v/7.1.3 + Archive: https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz + Integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A== +minisearch@7.2.0 | development | MIT + Lockfile path: node_modules/minisearch + Package: https://www.npmjs.com/package/minisearch/v/7.2.0 + Archive: https://registry.npmjs.org/minisearch/-/minisearch-7.2.0.tgz + Integrity: sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg== +mitt@3.0.1 | development | MIT + Lockfile path: node_modules/mitt + Package: https://www.npmjs.com/package/mitt/v/3.0.1 + Archive: https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz + Integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw== +nanoid@3.3.20 | development | MIT + Lockfile path: node_modules/nanoid + Package: https://www.npmjs.com/package/nanoid/v/3.3.20 + Archive: https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz + Integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ== +obug@2.2.1 | development | MIT + Lockfile path: node_modules/obug + Package: https://www.npmjs.com/package/obug/v/2.2.1 + Archive: https://registry.npmjs.org/obug/-/obug-2.2.1.tgz + Integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q== +on-exit-leak-free@2.1.2 | runtime | MIT + Lockfile path: node_modules/on-exit-leak-free + Package: https://www.npmjs.com/package/on-exit-leak-free/v/2.1.2 + Archive: https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz + Integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA== +once@1.4.0 | runtime | ISC + Lockfile path: node_modules/once + Package: https://www.npmjs.com/package/once/v/1.4.0 + Archive: https://registry.npmjs.org/once/-/once-1.4.0.tgz + Integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== +onetime@7.0.0 | development | MIT + Lockfile path: node_modules/onetime + Package: https://www.npmjs.com/package/onetime/v/7.0.0 + Archive: https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz + Integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ== +oniguruma-to-es@3.1.1 | development | MIT + Lockfile path: node_modules/oniguruma-to-es + Package: https://www.npmjs.com/package/oniguruma-to-es/v/3.1.1 + Archive: https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-3.1.1.tgz + Integrity: sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ== +oxc-parser@0.150.0 | development | MIT + Lockfile path: node_modules/oxc-parser + Package: https://www.npmjs.com/package/oxc-parser/v/0.150.0 + Archive: https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.150.0.tgz + Integrity: sha512-zwajKw1GUa57IOdafIS7/yOObGF2NihwIfZfs5yJTRprMSkiwhWOc/k+n8bwnUPbHr2/XsjfBO8KyTPaW3VpWg== +@oxc-project/types@0.150.0 | development | MIT + Lockfile path: node_modules/oxc-parser/node_modules/@oxc-project/types + Package: https://www.npmjs.com/package/@oxc-project/types/v/0.150.0 + Archive: https://registry.npmjs.org/@oxc-project/types/-/types-0.150.0.tgz + Integrity: sha512-rDS5/31E9HfPl/CIzGrn0DOlvBbXFseQ5URJ9sYMfstbKLD/c6Gm9vmRzRGDdAXyOIL4zmO37lc9RIwYqVruZw== +oxc-resolver@11.24.2 | development | MIT + Lockfile path: node_modules/oxc-resolver + Package: https://www.npmjs.com/package/oxc-resolver/v/11.24.2 + Archive: https://registry.npmjs.org/oxc-resolver/-/oxc-resolver-11.24.2.tgz + Integrity: sha512-FY91FiDBj7ls5MsFS9jN3tjz2o0/zsdSsymlakySaBwVJZorHhkWyICLZMKxlu1R9vYo+sd3z1jwb4J8x7bNDw== +oxfmt@0.72.0 | development | MIT + Lockfile path: node_modules/oxfmt + Package: https://www.npmjs.com/package/oxfmt/v/0.72.0 + Archive: https://registry.npmjs.org/oxfmt/-/oxfmt-0.72.0.tgz + Integrity: sha512-16OQeL0uhPZbfmT9S9WWM0Nv9+BmVi8Ra1uTYaSKj/qSCs6FB30KOhz9JoNYw6thT+K5bVxsk/tSEOu497i34g== +oxlint@1.87.0 | development | MIT + Lockfile path: node_modules/oxlint + Package: https://www.npmjs.com/package/oxlint/v/1.87.0 + Archive: https://registry.npmjs.org/oxlint/-/oxlint-1.87.0.tgz + Integrity: sha512-drxVlaW7Oqq7wSy1CN25znRu00aRq8n57Q2wniJRxCmtYVz07ufCm7EVDPQFZURrTgQIjzKrVEHAD/HcvJXObg== +package-manager-detector@1.9.0 | development | MIT + Lockfile path: node_modules/package-manager-detector + Package: https://www.npmjs.com/package/package-manager-detector/v/1.9.0 + Archive: https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.9.0.tgz + Integrity: sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA== +pako@1.0.11 | runtime | (MIT AND Zlib) + Lockfile path: node_modules/pako + Package: https://www.npmjs.com/package/pako/v/1.0.11 + Archive: https://registry.npmjs.org/pako/-/pako-1.0.11.tgz + Integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== +parse5@8.0.1 | runtime | MIT + Lockfile path: node_modules/parse5 + Package: https://www.npmjs.com/package/parse5/v/8.0.1 + Archive: https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz + Integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw== +entities@8.1.0 | runtime | BSD-2-Clause + Lockfile path: node_modules/parse5/node_modules/entities + Package: https://www.npmjs.com/package/entities/v/8.1.0 + Archive: https://registry.npmjs.org/entities/-/entities-8.1.0.tgz + Integrity: sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA== +path-key@3.1.1 | runtime | MIT + Lockfile path: node_modules/path-key + Package: https://www.npmjs.com/package/path-key/v/3.1.1 + Archive: https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz + Integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== +path-scurry@2.0.2 | runtime | BlueOak-1.0.0 + Lockfile path: node_modules/path-scurry + Package: https://www.npmjs.com/package/path-scurry/v/2.0.2 + Archive: https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz + Integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg== +perfect-debounce@1.0.0 | development | MIT + Lockfile path: node_modules/perfect-debounce + Package: https://www.npmjs.com/package/perfect-debounce/v/1.0.0 + Archive: https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz + Integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA== +picocolors@1.1.1 | development | ISC + Lockfile path: node_modules/picocolors + Package: https://www.npmjs.com/package/picocolors/v/1.1.1 + Archive: https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz + Integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== +picomatch@4.0.7 | development | MIT + Lockfile path: node_modules/picomatch + Package: https://www.npmjs.com/package/picomatch/v/4.0.7 + Archive: https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz + Integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA== +pify@4.0.1 | runtime | MIT + Lockfile path: node_modules/pify + Package: https://www.npmjs.com/package/pify/v/4.0.1 + Archive: https://registry.npmjs.org/pify/-/pify-4.0.1.tgz + Integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +pino@10.4.0 | runtime | MIT + Lockfile path: node_modules/pino + Package: https://www.npmjs.com/package/pino/v/10.4.0 + Archive: https://registry.npmjs.org/pino/-/pino-10.4.0.tgz + Integrity: sha512-bk1ZMTwG/Vymx+zPoa28MhNzucFvXJWp3csrSuxuHPSMeUettaCoQ5Jvg07mtC4JGNpcfTwz41oVCnNgBK9+vA== +pino-abstract-transport@3.0.0 | runtime | MIT + Lockfile path: node_modules/pino-abstract-transport + Package: https://www.npmjs.com/package/pino-abstract-transport/v/3.0.0 + Archive: https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-3.0.0.tgz + Integrity: sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg== +pino-std-serializers@7.1.0 | runtime | MIT + Lockfile path: node_modules/pino-std-serializers + Package: https://www.npmjs.com/package/pino-std-serializers/v/7.1.0 + Archive: https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.1.0.tgz + Integrity: sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw== +pkce-challenge@5.0.1 | runtime | MIT + Lockfile path: node_modules/pkce-challenge + Package: https://www.npmjs.com/package/pkce-challenge/v/5.0.1 + Archive: https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz + Integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ== +playwright-core@1.58.2 | runtime | Apache-2.0 + Lockfile path: node_modules/playwright-core + Package: https://www.npmjs.com/package/playwright-core/v/1.58.2 + Archive: https://registry.npmjs.org/playwright-core/-/playwright-core-1.58.2.tgz + Integrity: sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg== +plist@5.0.0 | runtime | MIT + Lockfile path: node_modules/plist + Package: https://www.npmjs.com/package/plist/v/5.0.0 + Archive: https://registry.npmjs.org/plist/-/plist-5.0.0.tgz + Integrity: sha512-20N+g1DvMm/DFRbsvER7tT4wDryq0WunK7VMkDaiJcKNapAnUMkTsAnacFYf8n420F4Hf6/hefgmJRkMb1M0fg== +possible-typed-array-names@1.1.0 | runtime | MIT + Lockfile path: node_modules/possible-typed-array-names + Package: https://www.npmjs.com/package/possible-typed-array-names/v/1.1.0 + Archive: https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz + Integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg== +postcss@8.5.29 | development | MIT + Lockfile path: node_modules/postcss + Package: https://www.npmjs.com/package/postcss/v/8.5.29 + Archive: https://registry.npmjs.org/postcss/-/postcss-8.5.29.tgz + Integrity: sha512-49cGhUbXj8Qenv0iTMxA1cFBzxXoctpC9Ujd77t1WcbJIr6nF/eI7g/8MgxrYldFRuAXvja7xQRwavoW7kgrxQ== +preact@10.29.8 | development | MIT + Lockfile path: node_modules/preact + Package: https://www.npmjs.com/package/preact/v/10.29.8 + Archive: https://registry.npmjs.org/preact/-/preact-10.29.8.tgz + Integrity: sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q== +process@0.11.10 | runtime | MIT + Lockfile path: node_modules/process + Package: https://www.npmjs.com/package/process/v/0.11.10 + Archive: https://registry.npmjs.org/process/-/process-0.11.10.tgz + Integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== +process-warning@5.0.0 | runtime | MIT + Lockfile path: node_modules/process-warning + Package: https://www.npmjs.com/package/process-warning/v/5.0.0 + Archive: https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz + Integrity: sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA== +property-information@7.2.0 | development | MIT + Lockfile path: node_modules/property-information + Package: https://www.npmjs.com/package/property-information/v/7.2.0 + Archive: https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz + Integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg== +pure-rand@8.4.2 | development | MIT + Lockfile path: node_modules/pure-rand + Package: https://www.npmjs.com/package/pure-rand/v/8.4.2 + Archive: https://registry.npmjs.org/pure-rand/-/pure-rand-8.4.2.tgz + Integrity: sha512-vvuOGgcuPJAirlHvuQw1TrOiw7ptaIXXmIbNuiNOY6lNGJJH49PQ1Kj4nd783nPdQhQdicgOjVI2yI/9BD6/Ng== +quick-format-unescaped@4.0.4 | runtime | MIT + Lockfile path: node_modules/quick-format-unescaped + Package: https://www.npmjs.com/package/quick-format-unescaped/v/4.0.4 + Archive: https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz + Integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg== +readable-stream@4.7.0 | runtime | MIT + Lockfile path: node_modules/readable-stream + Package: https://www.npmjs.com/package/readable-stream/v/4.7.0 + Archive: https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz + Integrity: sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg== +real-require@1.0.0 | runtime | MIT + Lockfile path: node_modules/real-require + Package: https://www.npmjs.com/package/real-require/v/1.0.0 + Archive: https://registry.npmjs.org/real-require/-/real-require-1.0.0.tgz + Integrity: sha512-P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g== +regex@6.1.0 | development | MIT + Lockfile path: node_modules/regex + Package: https://www.npmjs.com/package/regex/v/6.1.0 + Archive: https://registry.npmjs.org/regex/-/regex-6.1.0.tgz + Integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg== +regex-recursion@6.0.2 | development | MIT + Lockfile path: node_modules/regex-recursion + Package: https://www.npmjs.com/package/regex-recursion/v/6.0.2 + Archive: https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz + Integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg== +regex-utilities@2.3.0 | development | MIT + Lockfile path: node_modules/regex-utilities + Package: https://www.npmjs.com/package/regex-utilities/v/2.3.0 + Archive: https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz + Integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng== +require-from-string@2.0.2 | runtime | MIT + Lockfile path: node_modules/require-from-string + Package: https://www.npmjs.com/package/require-from-string/v/2.0.2 + Archive: https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz + Integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== +resolve-pkg-maps@1.0.0 | development | MIT + Lockfile path: node_modules/resolve-pkg-maps + Package: https://www.npmjs.com/package/resolve-pkg-maps/v/1.0.0 + Archive: https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz + Integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== +restore-cursor@5.1.0 | development | MIT + Lockfile path: node_modules/restore-cursor + Package: https://www.npmjs.com/package/restore-cursor/v/5.1.0 + Archive: https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz + Integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA== +rfdc@1.4.1 | development | MIT + Lockfile path: node_modules/rfdc + Package: https://www.npmjs.com/package/rfdc/v/1.4.1 + Archive: https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz + Integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== +rolldown@1.2.12 | development | MIT + Lockfile path: node_modules/rolldown + Package: https://www.npmjs.com/package/rolldown/v/1.2.12 + Archive: https://registry.npmjs.org/rolldown/-/rolldown-1.2.12.tgz + Integrity: sha512-8wafseiaG80xmXSfqidUNqZcylTlhmPZZt+za2m+js2sFZ8dTNlhIOV2WcbIPx2hgwPBJpEUGFAMZ9bgBBLTSQ== +rollup@4.64.1 | development | MIT + Lockfile path: node_modules/rollup + Package: https://www.npmjs.com/package/rollup/v/4.64.1 + Archive: https://registry.npmjs.org/rollup/-/rollup-4.64.1.tgz + Integrity: sha512-7s4V+3J8ux75WNj9qwSJnrWmlCmZ2YHr2fojtHy5RiIMvhJv6DGe7HKKz7L6G1sq1Eg1fLC8SjYtAtDis1F4CQ== +safe-buffer@5.2.1 | runtime | MIT + Lockfile path: node_modules/safe-buffer + Package: https://www.npmjs.com/package/safe-buffer/v/5.2.1 + Archive: https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz + Integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +safe-stable-stringify@2.5.0 | runtime | MIT + Lockfile path: node_modules/safe-stable-stringify + Package: https://www.npmjs.com/package/safe-stable-stringify/v/2.5.0 + Archive: https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz + Integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA== +search-insights@2.17.3 | development | MIT + Lockfile path: node_modules/search-insights + Package: https://www.npmjs.com/package/search-insights/v/2.17.3 + Archive: https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz + Integrity: sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ== +semver@7.8.5 | runtime | ISC + Lockfile path: node_modules/semver + Package: https://www.npmjs.com/package/semver/v/7.8.5 + Archive: https://registry.npmjs.org/semver/-/semver-7.8.5.tgz + Integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA== +set-function-length@1.2.2 | runtime | MIT + Lockfile path: node_modules/set-function-length + Package: https://www.npmjs.com/package/set-function-length/v/1.2.2 + Archive: https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz + Integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== +sha.js@2.4.12 | runtime | (MIT AND BSD-3-Clause) + Lockfile path: node_modules/sha.js + Package: https://www.npmjs.com/package/sha.js/v/2.4.12 + Archive: https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz + Integrity: sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w== +shebang-command@2.0.0 | runtime | MIT + Lockfile path: node_modules/shebang-command + Package: https://www.npmjs.com/package/shebang-command/v/2.0.0 + Archive: https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz + Integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== +shebang-regex@3.0.0 | runtime | MIT + Lockfile path: node_modules/shebang-regex + Package: https://www.npmjs.com/package/shebang-regex/v/3.0.0 + Archive: https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz + Integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== +shiki@2.5.0 | development | MIT + Lockfile path: node_modules/shiki + Package: https://www.npmjs.com/package/shiki/v/2.5.0 + Archive: https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz + Integrity: sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ== +signal-exit@4.1.0 | runtime | ISC + Lockfile path: node_modules/signal-exit + Package: https://www.npmjs.com/package/signal-exit/v/4.1.0 + Archive: https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz + Integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== +simple-concat@1.0.1 | runtime | MIT + Lockfile path: node_modules/simple-concat + Package: https://www.npmjs.com/package/simple-concat/v/1.0.1 + Archive: https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz + Integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q== +simple-get@4.0.1 | runtime | MIT + Lockfile path: node_modules/simple-get + Package: https://www.npmjs.com/package/simple-get/v/4.0.1 + Archive: https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz + Integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA== +sisteransi@1.0.5 | runtime | MIT + Lockfile path: node_modules/sisteransi + Package: https://www.npmjs.com/package/sisteransi/v/1.0.5 + Archive: https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz + Integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== +slice-ansi@8.0.0 | development | MIT + Lockfile path: node_modules/slice-ansi + Package: https://www.npmjs.com/package/slice-ansi/v/8.0.0 + Archive: https://registry.npmjs.org/slice-ansi/-/slice-ansi-8.0.0.tgz + Integrity: sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg== +smol-toml@1.9.0 | runtime | BSD-3-Clause + Lockfile path: node_modules/smol-toml + Package: https://www.npmjs.com/package/smol-toml/v/1.9.0 + Archive: https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.0.tgz + Integrity: sha512-hpd+HLON7HdZXqYchMM/+LaTTbdK0AU3NngIJ4KVyWbY9bfQqdL9cD+4yf6dUoU2Ap4VsU0JkQi6FxAI1B2mXQ== +sonic-boom@4.2.1 | runtime | MIT + Lockfile path: node_modules/sonic-boom + Package: https://www.npmjs.com/package/sonic-boom/v/4.2.1 + Archive: https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.1.tgz + Integrity: sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q== +source-map-js@1.2.2 | development | BSD-3-Clause + Lockfile path: node_modules/source-map-js + Package: https://www.npmjs.com/package/source-map-js/v/1.2.2 + Archive: https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz + Integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw== +space-separated-tokens@2.0.2 | development | MIT + Lockfile path: node_modules/space-separated-tokens + Package: https://www.npmjs.com/package/space-separated-tokens/v/2.0.2 + Archive: https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz + Integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q== +speakingurl@14.0.1 | development | BSD-3-Clause + Lockfile path: node_modules/speakingurl + Package: https://www.npmjs.com/package/speakingurl/v/14.0.1 + Archive: https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz + Integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ== +split2@4.2.0 | runtime | ISC + Lockfile path: node_modules/split2 + Package: https://www.npmjs.com/package/split2/v/4.2.0 + Archive: https://registry.npmjs.org/split2/-/split2-4.2.0.tgz + Integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg== +std-env@4.2.0 | development | MIT + Lockfile path: node_modules/std-env + Package: https://www.npmjs.com/package/std-env/v/4.2.0 + Archive: https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz + Integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw== +stream-chain@4.2.6 | runtime | BSD-3-Clause + Lockfile path: node_modules/stream-chain + Package: https://www.npmjs.com/package/stream-chain/v/4.2.6 + Archive: https://registry.npmjs.org/stream-chain/-/stream-chain-4.2.6.tgz + Integrity: sha512-1zeJ8CrtJfmiba26ui8jXkq/xLRFvhzkdH02D5QLO9Cnovgeb28IJxg88DdraWnjnkbOol/++uIAybJbJhk7ig== +stream-json@3.7.0 | runtime | BSD-3-Clause + Lockfile path: node_modules/stream-json + Package: https://www.npmjs.com/package/stream-json/v/3.7.0 + Archive: https://registry.npmjs.org/stream-json/-/stream-json-3.7.0.tgz + Integrity: sha512-rCSBdcBP/bPk6T8QFcxAj1MSzAuc5i49cYW6IE7sYObNEPccBJIUiL6fU9c9BWt40aJK0siVynLX7lWaW8alXw== +string-argv@0.3.2 | development | MIT + Lockfile path: node_modules/string-argv + Package: https://www.npmjs.com/package/string-argv/v/0.3.2 + Archive: https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz + Integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== +string-width@8.2.2 | development | MIT + Lockfile path: node_modules/string-width + Package: https://www.npmjs.com/package/string-width/v/8.2.2 + Archive: https://registry.npmjs.org/string-width/-/string-width-8.2.2.tgz + Integrity: sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg== +string_decoder@1.3.0 | runtime | MIT + Lockfile path: node_modules/string_decoder + Package: https://www.npmjs.com/package/string_decoder/v/1.3.0 + Archive: https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz + Integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== +stringify-entities@4.0.4 | development | MIT + Lockfile path: node_modules/stringify-entities + Package: https://www.npmjs.com/package/stringify-entities/v/4.0.4 + Archive: https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz + Integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg== +strip-ansi@7.2.0 | development | MIT + Lockfile path: node_modules/strip-ansi + Package: https://www.npmjs.com/package/strip-ansi/v/7.2.0 + Archive: https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz + Integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w== +strip-json-comments@5.0.3 | development | MIT + Lockfile path: node_modules/strip-json-comments + Package: https://www.npmjs.com/package/strip-json-comments/v/5.0.3 + Archive: https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.3.tgz + Integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw== +superjson@2.2.6 | development | MIT + Lockfile path: node_modules/superjson + Package: https://www.npmjs.com/package/superjson/v/2.2.6 + Archive: https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz + Integrity: sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA== +tabbable@6.5.0 | development | MIT + Lockfile path: node_modules/tabbable + Package: https://www.npmjs.com/package/tabbable/v/6.5.0 + Archive: https://registry.npmjs.org/tabbable/-/tabbable-6.5.0.tgz + Integrity: sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA== +thread-stream@4.2.0 | runtime | MIT + Lockfile path: node_modules/thread-stream + Package: https://www.npmjs.com/package/thread-stream/v/4.2.0 + Archive: https://registry.npmjs.org/thread-stream/-/thread-stream-4.2.0.tgz + Integrity: sha512-e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ== +tinybench@6.2.0 | development | MIT + Lockfile path: node_modules/tinybench + Package: https://www.npmjs.com/package/tinybench/v/6.2.0 + Archive: https://registry.npmjs.org/tinybench/-/tinybench-6.2.0.tgz + Integrity: sha512-78U2TlB2CnVenajOFzf3BKSm0J6oz5L0NV7g32LCPccvYc0lbWvys4d3uUUCS2B1N8PAf2+aekR8i1KbC3HO7Q== +tinyexec@1.3.1 | development | MIT + Lockfile path: node_modules/tinyexec + Package: https://www.npmjs.com/package/tinyexec/v/1.3.1 + Archive: https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz + Integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA== +tinyglobby@0.2.17 | development | MIT + Lockfile path: node_modules/tinyglobby + Package: https://www.npmjs.com/package/tinyglobby/v/0.2.17 + Archive: https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz + Integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g== +tinypool@2.2.0 | development | MIT + Lockfile path: node_modules/tinypool + Package: https://www.npmjs.com/package/tinypool/v/2.2.0 + Archive: https://registry.npmjs.org/tinypool/-/tinypool-2.2.0.tgz + Integrity: sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ== +tinyrainbow@3.2.0 | development | MIT + Lockfile path: node_modules/tinyrainbow + Package: https://www.npmjs.com/package/tinyrainbow/v/3.2.0 + Archive: https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.2.0.tgz + Integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A== +to-buffer@1.2.2 | runtime | MIT + Lockfile path: node_modules/to-buffer + Package: https://www.npmjs.com/package/to-buffer/v/1.2.2 + Archive: https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz + Integrity: sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw== +tokenx@1.3.0 | runtime | MIT + Lockfile path: node_modules/tokenx + Package: https://www.npmjs.com/package/tokenx/v/1.3.0 + Archive: https://registry.npmjs.org/tokenx/-/tokenx-1.3.0.tgz + Integrity: sha512-NLdXTEZkKiO0gZuLtMoZKjCXTREXeZZt8nnnNeyoXtNZAfG/GKGSbQtLU5STspc0rMSwcA+UJfWZkbNU01iKmQ== +trim-lines@3.0.1 | development | MIT + Lockfile path: node_modules/trim-lines + Package: https://www.npmjs.com/package/trim-lines/v/3.0.1 + Archive: https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz + Integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg== +tslib@2.8.1 | development, optional | 0BSD + Lockfile path: node_modules/tslib + Package: https://www.npmjs.com/package/tslib/v/2.8.1 + Archive: https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz + Integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== +turbo@2.11.7 | development | MIT + Lockfile path: node_modules/turbo + Package: https://www.npmjs.com/package/turbo/v/2.11.7 + Archive: https://registry.npmjs.org/turbo/-/turbo-2.11.7.tgz + Integrity: sha512-RhXHbqfvY6o3xt/zSHCwSNwLrZlXiqHzewi4eAj9PtZ1T1CqgMJ2yIDb7SKPTG9IikTm925mfzL6hldQVdyNWw== +typed-array-buffer@1.0.3 | runtime | MIT + Lockfile path: node_modules/typed-array-buffer + Package: https://www.npmjs.com/package/typed-array-buffer/v/1.0.3 + Archive: https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz + Integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw== +typescript@7.0.2 | development | Apache-2.0 + Lockfile path: node_modules/typescript + Package: https://www.npmjs.com/package/typescript/v/7.0.2 + Archive: https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz + Integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA== +typescript@5.9.3 | development | Apache-2.0 + Lockfile path: node_modules/typescript-termux + Package: https://www.npmjs.com/package/typescript/v/5.9.3 + Archive: https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz + Integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw== +unbash@4.0.12 | development | ISC + Lockfile path: node_modules/unbash + Package: https://www.npmjs.com/package/unbash/v/4.0.12 + Archive: https://registry.npmjs.org/unbash/-/unbash-4.0.12.tgz + Integrity: sha512-PnKvRX+Fbxl/usVlTr/31tXIOVAH+8OdC9qaxUQcvurwEnoc3Vk/ipi2Ce8IjMxzK9byfSGdsUBjqqJGc1o5lw== +undici-types@8.9.0 | development | MIT + Lockfile path: node_modules/undici-types + Package: https://www.npmjs.com/package/undici-types/v/8.9.0 + Archive: https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz + Integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg== +unist-util-is@6.0.1 | development | MIT + Lockfile path: node_modules/unist-util-is + Package: https://www.npmjs.com/package/unist-util-is/v/6.0.1 + Archive: https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz + Integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g== +unist-util-position@5.0.0 | development | MIT + Lockfile path: node_modules/unist-util-position + Package: https://www.npmjs.com/package/unist-util-position/v/5.0.0 + Archive: https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz + Integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA== +unist-util-stringify-position@4.0.0 | development | MIT + Lockfile path: node_modules/unist-util-stringify-position + Package: https://www.npmjs.com/package/unist-util-stringify-position/v/4.0.0 + Archive: https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz + Integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ== +unist-util-visit@5.1.0 | development | MIT + Lockfile path: node_modules/unist-util-visit + Package: https://www.npmjs.com/package/unist-util-visit/v/5.1.0 + Archive: https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz + Integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg== +unist-util-visit-parents@6.0.2 | development | MIT + Lockfile path: node_modules/unist-util-visit-parents + Package: https://www.npmjs.com/package/unist-util-visit-parents/v/6.0.2 + Archive: https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz + Integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ== +vfile@6.0.3 | development | MIT + Lockfile path: node_modules/vfile + Package: https://www.npmjs.com/package/vfile/v/6.0.3 + Archive: https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz + Integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q== +vfile-message@4.0.3 | development | MIT + Lockfile path: node_modules/vfile-message + Package: https://www.npmjs.com/package/vfile-message/v/4.0.3 + Archive: https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz + Integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw== +vite@8.3.2 | development | MIT + Lockfile path: node_modules/vite + Package: https://www.npmjs.com/package/vite/v/8.3.2 + Archive: https://registry.npmjs.org/vite/-/vite-8.3.2.tgz + Integrity: sha512-SQr1x6W5vVSbROg7vsyXIaxK9b0G7zsT68acdWWRmnBUsgDieLCRG+Rep9WdZgcposvv/GSnr4GUUBqB3vXq6w== +vitepress@1.6.4 | development | MIT + Lockfile path: node_modules/vitepress + Package: https://www.npmjs.com/package/vitepress/v/1.6.4 + Archive: https://registry.npmjs.org/vitepress/-/vitepress-1.6.4.tgz + Integrity: sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg== +@esbuild/aix-ppc64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/aix-ppc64 + Package: https://www.npmjs.com/package/@esbuild/aix-ppc64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz + Integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA== +@esbuild/android-arm@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/android-arm + Package: https://www.npmjs.com/package/@esbuild/android-arm/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz + Integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg== +@esbuild/android-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/android-arm64 + Package: https://www.npmjs.com/package/@esbuild/android-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz + Integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg== +@esbuild/android-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/android-x64 + Package: https://www.npmjs.com/package/@esbuild/android-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz + Integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg== +@esbuild/darwin-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/darwin-arm64 + Package: https://www.npmjs.com/package/@esbuild/darwin-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz + Integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg== +@esbuild/darwin-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/darwin-x64 + Package: https://www.npmjs.com/package/@esbuild/darwin-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz + Integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA== +@esbuild/freebsd-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/freebsd-arm64 + Package: https://www.npmjs.com/package/@esbuild/freebsd-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz + Integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg== +@esbuild/freebsd-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/freebsd-x64 + Package: https://www.npmjs.com/package/@esbuild/freebsd-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz + Integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ== +@esbuild/linux-arm@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-arm + Package: https://www.npmjs.com/package/@esbuild/linux-arm/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz + Integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw== +@esbuild/linux-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-arm64 + Package: https://www.npmjs.com/package/@esbuild/linux-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz + Integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ== +@esbuild/linux-ia32@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-ia32 + Package: https://www.npmjs.com/package/@esbuild/linux-ia32/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz + Integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA== +@esbuild/linux-loong64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-loong64 + Package: https://www.npmjs.com/package/@esbuild/linux-loong64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz + Integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng== +@esbuild/linux-mips64el@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-mips64el + Package: https://www.npmjs.com/package/@esbuild/linux-mips64el/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz + Integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw== +@esbuild/linux-ppc64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-ppc64 + Package: https://www.npmjs.com/package/@esbuild/linux-ppc64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz + Integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA== +@esbuild/linux-riscv64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-riscv64 + Package: https://www.npmjs.com/package/@esbuild/linux-riscv64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz + Integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w== +@esbuild/linux-s390x@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-s390x + Package: https://www.npmjs.com/package/@esbuild/linux-s390x/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz + Integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg== +@esbuild/linux-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/linux-x64 + Package: https://www.npmjs.com/package/@esbuild/linux-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz + Integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw== +@esbuild/netbsd-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/netbsd-arm64 + Package: https://www.npmjs.com/package/@esbuild/netbsd-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz + Integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg== +@esbuild/netbsd-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/netbsd-x64 + Package: https://www.npmjs.com/package/@esbuild/netbsd-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz + Integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ== +@esbuild/openbsd-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/openbsd-arm64 + Package: https://www.npmjs.com/package/@esbuild/openbsd-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz + Integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A== +@esbuild/openbsd-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/openbsd-x64 + Package: https://www.npmjs.com/package/@esbuild/openbsd-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz + Integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw== +@esbuild/openharmony-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/openharmony-arm64 + Package: https://www.npmjs.com/package/@esbuild/openharmony-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz + Integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg== +@esbuild/sunos-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/sunos-x64 + Package: https://www.npmjs.com/package/@esbuild/sunos-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz + Integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w== +@esbuild/win32-arm64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/win32-arm64 + Package: https://www.npmjs.com/package/@esbuild/win32-arm64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz + Integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg== +@esbuild/win32-ia32@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/win32-ia32 + Package: https://www.npmjs.com/package/@esbuild/win32-ia32/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz + Integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ== +@esbuild/win32-x64@0.25.12 | development, optional | MIT + Lockfile path: node_modules/vitepress/node_modules/@esbuild/win32-x64 + Package: https://www.npmjs.com/package/@esbuild/win32-x64/v/0.25.12 + Archive: https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz + Integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA== +@vitejs/plugin-vue@5.2.4 | development | MIT + Lockfile path: node_modules/vitepress/node_modules/@vitejs/plugin-vue + Package: https://www.npmjs.com/package/@vitejs/plugin-vue/v/5.2.4 + Archive: https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz + Integrity: sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA== +esbuild@0.25.12 | development | MIT + Lockfile path: node_modules/vitepress/node_modules/esbuild + Package: https://www.npmjs.com/package/esbuild/v/0.25.12 + Archive: https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz + Integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg== +vite@6.4.4 | development | MIT + Lockfile path: node_modules/vitepress/node_modules/vite + Package: https://www.npmjs.com/package/vite/v/6.4.4 + Archive: https://registry.npmjs.org/vite/-/vite-6.4.4.tgz + Integrity: sha512-xGjU/SyjeNyb0E4KxXBvYz/1C+3JXuujvf2hXNOtnlcE+58o5ajd9N2/n2VhkiJvpCP2qQasnUpx5PXNeI+p1Q== +vitest@5.0.3 | development | MIT + Lockfile path: node_modules/vitest + Package: https://www.npmjs.com/package/vitest/v/5.0.3 + Archive: https://registry.npmjs.org/vitest/-/vitest-5.0.3.tgz + Integrity: sha512-xMw97S3rjdtj5dkVat7jCsqWBpvchs3RlpQctUqwJD0KkERk40vz2fJ77lDwW/Vzh/pk18eItYAzkodhSes3jQ== +vue@3.5.43 | development | MIT + Lockfile path: node_modules/vue + Package: https://www.npmjs.com/package/vue/v/3.5.43 + Archive: https://registry.npmjs.org/vue/-/vue-3.5.43.tgz + Integrity: sha512-o5qZoksdnjIKvW1srZ3ab7pcDNYAerBjRe54D0LBLfRdCYFrSgBHVXokMas35czQc0//lmx4/tuY4ZNQ+Rf2Ng== +walk-up-path@4.0.0 | development | ISC + Lockfile path: node_modules/walk-up-path + Package: https://www.npmjs.com/package/walk-up-path/v/4.0.0 + Archive: https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz + Integrity: sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A== +which@2.0.2 | runtime | ISC + Lockfile path: node_modules/which + Package: https://www.npmjs.com/package/which/v/2.0.2 + Archive: https://registry.npmjs.org/which/-/which-2.0.2.tgz + Integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== +which-typed-array@1.1.22 | runtime | MIT + Lockfile path: node_modules/which-typed-array + Package: https://www.npmjs.com/package/which-typed-array/v/1.1.22 + Archive: https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz + Integrity: sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw== +why-is-node-running@3.2.1 | development | MIT + Lockfile path: node_modules/why-is-node-running + Package: https://www.npmjs.com/package/why-is-node-running/v/3.2.1 + Archive: https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz + Integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ== +wrap-ansi@9.0.2 | development | MIT + Lockfile path: node_modules/wrap-ansi + Package: https://www.npmjs.com/package/wrap-ansi/v/9.0.2 + Archive: https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz + Integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww== +string-width@7.2.0 | development | MIT + Lockfile path: node_modules/wrap-ansi/node_modules/string-width + Package: https://www.npmjs.com/package/string-width/v/7.2.0 + Archive: https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz + Integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ== +wrappy@1.0.2 | runtime | ISC + Lockfile path: node_modules/wrappy + Package: https://www.npmjs.com/package/wrappy/v/1.0.2 + Archive: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz + Integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== +write-file-atomic@7.0.0 | runtime | ISC + Lockfile path: node_modules/write-file-atomic + Package: https://www.npmjs.com/package/write-file-atomic/v/7.0.0 + Archive: https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-7.0.0.tgz + Integrity: sha512-YnlPC6JqnZl6aO4uRc+dx5PHguiR9S6WeoLtpxNT9wIG+BDya7ZNE1q7KOjVgaA73hKhKLpVPgJ5QA9THQ5BRg== +ws@8.21.0 | runtime | MIT + Lockfile path: node_modules/ws + Package: https://www.npmjs.com/package/ws/v/8.21.0 + Archive: https://registry.npmjs.org/ws/-/ws-8.21.0.tgz + Integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g== +xmlbuilder@15.1.1 | runtime | MIT + Lockfile path: node_modules/xmlbuilder + Package: https://www.npmjs.com/package/xmlbuilder/v/15.1.1 + Archive: https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz + Integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg== +yaml@2.9.0 | runtime | ISC + Lockfile path: node_modules/yaml + Package: https://www.npmjs.com/package/yaml/v/2.9.0 + Archive: https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz + Integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA== +zod@4.4.3 | runtime | MIT + Lockfile path: node_modules/zod + Package: https://www.npmjs.com/package/zod/v/4.4.3 + Archive: https://registry.npmjs.org/zod/-/zod-4.4.3.tgz + Integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ== +zwitch@2.0.4 | development | MIT + Lockfile path: node_modules/zwitch + Package: https://www.npmjs.com/package/zwitch/v/2.0.4 + Archive: https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz + Integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A== diff --git a/licenses/npm-runtime-notices.txt b/licenses/npm-runtime-notices.txt new file mode 100644 index 000000000..f34cd8ee4 --- /dev/null +++ b/licenses/npm-runtime-notices.txt @@ -0,0 +1,6632 @@ +REA third-party npm runtime copyright, license and NOTICE texts +Collected from integrity-verified locked npm archives. Release-specific supplements and upstream notice gaps are identified in their entries. +External engines are separately obtained; see THIRD_PARTY_NOTICES.md. +Dependency fingerprint: 0b00d9530d00182e3f2b163bf27feea056c24bb6600806cab74061756ffdc36a + +===== @babel/helper-string-parser@8.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.0.tgz +Integrity: sha512-6mJgmFFFIIO82vvoLt9XtRC7/TkzXfts1t/SpRX4IHSzMgqoPYCWesVu1udUPUWioAE/2fcG6WuI8zrkE1gwrg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== @babel/helper-validator-identifier@8.0.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.4.tgz +Integrity: sha512-4wFaiLd0bVo4cIoTXI3zKI038NIWE/cr3jvBjejOVYVxV/m8Ltav1USiGzG1fmS5J2RhgEOgXNNK46cRPnRsrg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== @babel/parser@8.0.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@babel/parser/-/parser-8.0.4.tgz +Integrity: sha512-srpptsAkEbbNIC/q8nT7o+m6CQe8CJUTV/t7MYc9NnWlgYVtHOb7JH6SorxMhN0kuRJjVqXbKClG6xSbPtzz+g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (C) 2012-2014 by various contributors (see AUTHORS) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== @babel/types@8.0.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@babel/types/-/types-8.0.4.tgz +Integrity: sha512-eY+Yn3dCqTGmyiq2QRU66lA5FL8lqqqvecHt0fF3uHONIa7ToYsaCiWV8lOKqAs0Rb2SjixiKFROngnulPtt2g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== @cfworker/json-schema@4.1.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@cfworker/json-schema/-/json-schema-4.1.1.tgz +Integrity: sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og== +Scope: npm runtime dependency, including optional platform packages. + +--- licenses/cfworker-MIT.txt (license from the npm release's upstream gitHead; see upstream-sources.json) --- + +MIT License + +Copyright (c) 2020 Jeremy Danyow + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @clack/core@1.4.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@clack/core/-/core-1.4.3.tgz +Integrity: sha512-/kr3UWNtdJfxZtPgDqUOmG2pvwlmcLGheex5yiZKdwbzZJxhV+HMNR9QNmyY5cGwTNV6LrR7Jtp+KjhUAP1qBQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== @clack/prompts@1.7.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@clack/prompts/-/prompts-1.7.0.tgz +Integrity: sha512-y7/yvZ2TPAnR9+jnc00klvNNLkJiXFFrQA/hlLCcxA9a2A4zQIOimyFQ9XfwYKiGD1fb5GY8vbKIIgO8d5Tb2A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== @electron/asar@4.2.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@electron/asar/-/asar-4.2.0.tgz +Integrity: sha512-npW1NW5yy8EB9XY/vEw9sUdgmq0sJEhmSBb6bqyFOAw1CSkrhvAvO6QWlW8CdIMo8VN1lkdF345l/MeW0LrY0Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +Copyright (c) 2014 GitHub Inc. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== commander@13.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/commander/-/commander-13.1.0.tgz +Integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +(The MIT License) + +Copyright (c) 2011 TJ Holowaychuk + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== @jridgewell/resolve-uri@3.1.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz +Integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright 2019 Justin Ridgewell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +===== @jridgewell/sourcemap-codec@1.6.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz +Integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright 2024 Justin Ridgewell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @jridgewell/trace-mapping@0.3.31 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz +Integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright 2024 Justin Ridgewell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @lydell/node-pty@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@lydell/node-pty/-/node-pty-1.1.0.tgz +Integrity: sha512-VDD8LtlMTOrPKWMXUAcB9+LTktzuunqrMwkYR1DMRBkS6LQrCt+0/Ws1o2rMml/n3guePpS7cxhHF7Nm5K4iMw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +The MIT License (MIT) + +Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +MIT License + +Copyright (c) 2018 - present Microsoft Corporation + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @lydell/node-pty-darwin-arm64@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@lydell/node-pty-darwin-arm64/-/node-pty-darwin-arm64-1.1.0.tgz +Integrity: sha512-7kFD+owAA61qmhJCtoMbqj3Uvff3YHDiU+4on5F2vQdcMI3MuwGi7dM6MkFG/yuzpw8LF2xULpL71tOPUfxs0w== +Scope: npm runtime dependency, including optional platform packages. + +--- @lydell/node-pty@1.1.0: package/LICENSE (same-release prebuilt family) --- + +Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +The MIT License (MIT) + +Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +MIT License + +Copyright (c) 2018 - present Microsoft Corporation + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @lydell/node-pty-darwin-x64@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@lydell/node-pty-darwin-x64/-/node-pty-darwin-x64-1.1.0.tgz +Integrity: sha512-XZdvqj5FjAMjH8bdp0YfaZjur5DrCIDD1VYiE9EkkYVMDQqRUPHYV3U8BVEQVT9hYfjmpr7dNaELF2KyISWSNA== +Scope: npm runtime dependency, including optional platform packages. + +--- @lydell/node-pty@1.1.0: package/LICENSE (same-release prebuilt family) --- + +Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +The MIT License (MIT) + +Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +MIT License + +Copyright (c) 2018 - present Microsoft Corporation + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @lydell/node-pty-linux-arm64@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@lydell/node-pty-linux-arm64/-/node-pty-linux-arm64-1.1.0.tgz +Integrity: sha512-yyDBmalCfHpLiQMT2zyLcqL2Fay4Xy7rIs8GH4dqKLnEviMvPGOK7LADVkKAsbsyXBSISL3Lt1m1MtxhPH6ckg== +Scope: npm runtime dependency, including optional platform packages. + +--- @lydell/node-pty@1.1.0: package/LICENSE (same-release prebuilt family) --- + +Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +The MIT License (MIT) + +Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +MIT License + +Copyright (c) 2018 - present Microsoft Corporation + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @lydell/node-pty-linux-x64@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@lydell/node-pty-linux-x64/-/node-pty-linux-x64-1.1.0.tgz +Integrity: sha512-NcNqRTD14QT+vXcEuqSSvmWY+0+WUBn2uRE8EN0zKtDpIEr9d+YiFj16Uqds6QfcLCHfZmC+Ls7YzwTaqDnanA== +Scope: npm runtime dependency, including optional platform packages. + +--- @lydell/node-pty@1.1.0: package/LICENSE (same-release prebuilt family) --- + +Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +The MIT License (MIT) + +Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +MIT License + +Copyright (c) 2018 - present Microsoft Corporation + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @lydell/node-pty-win32-arm64@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@lydell/node-pty-win32-arm64/-/node-pty-win32-arm64-1.1.0.tgz +Integrity: sha512-JOMbCou+0fA7d/m97faIIfIU0jOv8sn2OR7tI45u3AmldKoKoLP8zHY6SAvDDnI3fccO1R2HeR1doVjpS7HM0w== +Scope: npm runtime dependency, including optional platform packages. + +--- @lydell/node-pty@1.1.0: package/LICENSE (same-release prebuilt family) --- + +Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +The MIT License (MIT) + +Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +MIT License + +Copyright (c) 2018 - present Microsoft Corporation + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @lydell/node-pty-win32-x64@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@lydell/node-pty-win32-x64/-/node-pty-win32-x64-1.1.0.tgz +Integrity: sha512-3N56BZ+WDFnUMYRtsrr7Ky2mhWGl9xXcyqR6cexfuCqcz9RNWL+KoXRv/nZylY5dYaXkft4JaR1uVu+roiZDAw== +Scope: npm runtime dependency, including optional platform packages. + +--- @lydell/node-pty@1.1.0: package/LICENSE (same-release prebuilt family) --- + +Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +The MIT License (MIT) + +Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +MIT License + +Copyright (c) 2018 - present Microsoft Corporation + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @modelcontextprotocol/client@2.3.1 ===== +Declared license: Apache-2.0 +Archive: https://registry.npmjs.org/@modelcontextprotocol/client/-/client-2.3.1.tgz +Integrity: sha512-mIGZXpHsjnZ6lD+gD/WCMpR5k8yVQQ8nNFH1N0Srf7AvnwTUMYD6pvTY8ng2+He5FfV7YMZLmrjL7cLa/cc3dQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0. + +Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License. + +No rights beyond those granted by the applicable original license are conveyed for such contributions. + +--- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to the Licensor for inclusion in the Work by the copyright + owner or by an individual or Legal Entity authorized to submit on behalf + of the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- + +MIT License + +Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +Creative Commons Attribution 4.0 International (CC-BY-4.0) + +Documentation in this project (excluding specifications) is licensed under +CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for +the full license text. + + +===== @modelcontextprotocol/core@2.3.1 ===== +Declared license: Apache-2.0 +Archive: https://registry.npmjs.org/@modelcontextprotocol/core/-/core-2.3.1.tgz +Integrity: sha512-laVmIhPGpWi7rG9q+0UigblRN0Hws/Yjlb6qLFtVqryXVLkc4h+yN8z731POD2LnAGQlFe7/tXhUm7Bi0YB91g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0. + +Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License. + +No rights beyond those granted by the applicable original license are conveyed for such contributions. + +--- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to the Licensor for inclusion in the Work by the copyright + owner or by an individual or Legal Entity authorized to submit on behalf + of the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- + +MIT License + +Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +Creative Commons Attribution 4.0 International (CC-BY-4.0) + +Documentation in this project (excluding specifications) is licensed under +CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for +the full license text. + + +===== @modelcontextprotocol/server@2.3.1 ===== +Declared license: Apache-2.0 +Archive: https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.3.1.tgz +Integrity: sha512-e59MfWuSssj6DoQ96JCTqdW1AXT5/XtnTl0WWd6MU1Ka434fFUGGosCLJbGNySDhHGvxQWoRWK137FXYFkYNWw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0. + +Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License. + +No rights beyond those granted by the applicable original license are conveyed for such contributions. + +--- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to the Licensor for inclusion in the Work by the copyright + owner or by an individual or Legal Entity authorized to submit on behalf + of the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- + +MIT License + +Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +Creative Commons Attribution 4.0 International (CC-BY-4.0) + +Documentation in this project (excluding specifications) is licensed under +CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for +the full license text. + + +===== @pinojs/redact@0.4.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@pinojs/redact/-/redact-0.4.0.tgz +Integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2025 pinojs contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @scalar/openapi-types@0.8.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@scalar/openapi-types/-/openapi-types-0.8.0.tgz +Integrity: sha512-WmaxVSfvY5K/TwcG2B2TU1WOe1As1uc2s7myswtP6dBlcjU3hM08SApxv/jmyGaCE8t4gO5BBhmHY4pDUfmr2g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/2.0/license.d.ts --- + +import type { Extensions } from './schema' +/** + * License object + * + * License information for the exposed API. + * + * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#license-object} + */ +export type LicenseObject = { + /** **Required.** The license name used for the API. */ + name: string + /** A URL to the license used for the API. MUST be in the format of a URL. */ + url?: string +} & Extensions + + +--- package/3.0/license.d.ts --- + +/** + * License object + * + * License information for the exposed API. + * + * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#license-object} + */ +export type LicenseObject = { + /** **REQUIRED**. The license name used for the API. */ + name: string + /** A URL for the license used for the API. This MUST be in the form of a URL. */ + url?: string +} & Record<`x-${string}`, unknown> + + +--- package/3.1/license.d.ts --- + +/** + * License object + * + * License information for the exposed API. + * + * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#license-object} + */ +export type LicenseObject = { + /** **REQUIRED**. The license name used for the API. */ + name: string + /** An [SPDX](https://spdx.org/licenses/) license expression for the API. The `identifier` field is mutually exclusive of the `url` field. */ + identifier?: string + /** A URI for the license used for the API. This MUST be in the form of a URI. The `url` field is mutually exclusive of the `identifier` field. */ + url?: string +} & Record<`x-${string}`, unknown> + + +--- package/3.2/license.d.ts --- + +/** + * License object + * + * License information for the exposed API. + * + * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.2.0.md#license-object} + */ +export type LicenseObject = { + /** **REQUIRED**. The license name used for the API. */ + name: string + /** An [SPDX](https://spdx.org/licenses/) license expression for the API. The `identifier` field is mutually exclusive of the `url` field. */ + identifier?: string + /** A URI for the license used for the API. This MUST be in the form of a URI. The `url` field is mutually exclusive of the `identifier` field. */ + url?: string +} & Record<`x-${string}`, unknown> + + +===== @toon-format/toon@2.3.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@toon-format/toon/-/toon-2.3.1.tgz +Integrity: sha512-sWqEMeAJGMda9qRrfPKrX3C4c33CO9SJuvJzzrcBEn5sbDB+k6pSLkDsfN0rVnLQwR97MV3sDgVbcxQNsq8xVw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2025-PRESENT Johann Schopplich + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== @xmldom/xmldom@0.9.12 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz +Integrity: sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright 2019 - present Christopher J. Brody and other contributors, as listed in: https://github.com/xmldom/xmldom/graphs/contributors +Copyright 2012 - 2017 @jindw and other contributors, as listed in: https://github.com/jindw/xmldom/graphs/contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== @xterm/addon-serialize@0.14.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@xterm/addon-serialize/-/addon-serialize-0.14.0.tgz +Integrity: sha512-uteyTU1EkrQa2Ux6P/uFl2fzmXI46jy5uoQMKEOM0fKTyiW7cSn0WrFenHm5vO5uEXX/GpwW/FgILvv3r0WbkA== +Scope: npm runtime dependency, including optional platform packages. + +--- licenses/xterm-MIT.txt (license from the npm release's upstream gitHead; see upstream-sources.json) --- + +Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js) +Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com) +Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== @xterm/headless@6.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@xterm/headless/-/headless-6.0.0.tgz +Integrity: sha512-5Yj1QINYCyzrZtf8OFIHi47iQtI+0qYFPHmouEfG8dHNxbZ9Tb9YGSuLcsEwj9Z+OL75GJqPyJbyoFer80a2Hw== +Scope: npm runtime dependency, including optional platform packages. + +--- licenses/xterm-MIT.txt (license from the npm release's upstream gitHead; see upstream-sources.json) --- + +Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js) +Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com) +Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== @zip.js/zip.js@2.15.0 ===== +Declared license: BSD-3-Clause +Archive: https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.15.0.tgz +Integrity: sha512-hYAuHAaWjt0axbofaDL5XUlmrQPsBDcK3f45ApZuh6N+8UGVk26GoGdtGDvcvzahsHytTQ6DtBVXwG9IcCMjjQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +BSD 3-Clause License + +Copyright (c) 2023, Gildas Lormeau + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===== abort-controller@3.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz +Integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2017 Toru Nagashima + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== ajv@8.20.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz +Integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2015-2021 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +===== ajv-formats@3.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz +Integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2020 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== async-lock@1.4.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/async-lock/-/async-lock-1.4.1.tgz +Integrity: sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2016 Rogier Schouten + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +===== atomic-sleep@1.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz +Integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) +Copyright (c) 2020 David Mark Clements + + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. + + + +===== available-typed-arrays@1.0.7 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz +Integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2020 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== balanced-match@4.0.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz +Integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +(MIT) + +Original code Copyright Julian Gruber + +Port to TypeScript Copyright Isaac Z. Schlueter + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== base64-js@1.5.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz +Integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2014 Jameson Little + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== brace-expansion@5.0.12 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz +Integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright Julian Gruber + +TypeScript port Copyright Isaac Z. Schlueter + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== buffer@6.0.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz +Integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh, and other contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== call-bind@1.0.9 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz +Integrity: sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2020 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== call-bind-apply-helpers@1.0.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz +Integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== call-bound@1.0.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz +Integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== canonicalize@3.0.0 ===== +Declared license: Apache-2.0 +Archive: https://registry.npmjs.org/canonicalize/-/canonicalize-3.0.0.tgz +Integrity: sha512-yYLfHyDMIXRyRqsKBRLX023riFLpXY2YOfdtqKXZRZy9qsfOJ9U+4F9YZL7MEzL5+ziN2x2nlBvY/Voi3EBljA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +===== clean-git-ref@2.0.1 ===== +Declared license: Apache-2.0 +Archive: https://registry.npmjs.org/clean-git-ref/-/clean-git-ref-2.0.1.tgz +Integrity: sha512-bLSptAy2P0s6hU4PzuIMKmMJJSE6gLXGH1cntDu7bWJUksvuM+7ReOK61mozULErYvP6a15rnYl0zFDef+pyPw== +Scope: npm runtime dependency, including optional platform packages. + +--- Published package metadata and standard license text (upstream omits a full license/copyright document) --- + +The published package declares Apache-2.0 but contains no full license/copyright document. No copyright holder or year is inferred. +Author as declared by upstream package metadata: "Eli White " +Declared license: Apache-2.0 + +Standard license text from licenses/Apache-2.0.txt; this is not a recovered upstream copyright notice. + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +===== crc-32@1.2.2 ===== +Declared license: Apache-2.0 +Archive: https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz +Integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (C) 2014-present SheetJS LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +===== cross-spawn@7.0.6 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz +Integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2018 Made With MOXY Lda + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== decompress-response@6.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz +Integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== define-data-property@1.1.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz +Integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2023 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== diff@9.0.0 ===== +Declared license: BSD-3-Clause +Archive: https://registry.npmjs.org/diff/-/diff-9.0.0.tgz +Integrity: sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +BSD 3-Clause License + +Copyright (c) 2009-2015, Kevin Decker +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===== diff3@0.0.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/diff3/-/diff3-0.0.3.tgz +Integrity: sha512-iSq8ngPOt0K53A6eVr4d5Kn6GNrM2nQZtC740pzIriHtn4pOQ2lyzEXQMBeVcWERN0ye7fhBsk9PbLLQOnUx/g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/diff3.js: original leading copyright/license comments --- + +// Copyright (c) 2006, 2008 Tony Garnock-Jones +// Copyright (c) 2006, 2008 LShift Ltd. +// +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation files +// (the "Software"), to deal in the Software without restriction, +// including without limitation the rights to use, copy, modify, merge, +// publish, distribute, sublicense, and/or sell copies of the Software, +// and to permit persons to whom the Software is furnished to do so, +// subject to the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + + +--- package/onp.js: original leading copyright/license comment --- + +/* + * URL: https://github.com/cubicdaiya/onp + * + * Copyright (c) 2013 Tatsuhiko Kubo + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +===== dunder-proto@1.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz +Integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 ECMAScript Shims + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== es-define-property@1.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz +Integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== es-errors@1.3.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz +Integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== es-object-atoms@1.1.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz +Integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== event-target-shim@5.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz +Integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2015 Toru Nagashima + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +===== events@3.3.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/events/-/events-3.3.0.tgz +Integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT + +Copyright Joyent, Inc. and other Node contributors. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== eventsource@3.0.7 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz +Integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License + +Copyright (c) EventSource GitHub organisation + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== eventsource-parser@3.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.0.tgz +Integrity: sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2026 Espen Hovlandsdal + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== evmole@0.9.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/evmole/-/evmole-0.9.3.tgz +Integrity: sha512-UhO5HMAoEPCupSxvBJPlm/L0Qk/KVJ/OJo3r4EyhXADIEHqU5aTkAzsBfzk4lXGjqxVnaYbh1GPSmZtmSHFnQQ== +Scope: npm runtime dependency, including optional platform packages. + +--- third_party/evmole/LICENSE (unchanged upstream 0.9.3 license) --- + +MIT License + +Copyright (c) 2023 Maxim Andreev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== fast-deep-equal@3.1.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz +Integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== fast-string-truncated-width@3.0.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz +Integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +The MIT License (MIT) + +Copyright (c) 2024-present Fabio Spampinato + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + + +===== fast-string-width@3.0.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz +Integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +The MIT License (MIT) + +Copyright (c) 2024-present Fabio Spampinato + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + + +===== fast-uri@3.1.8 ===== +Declared license: BSD-3-Clause +Archive: https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz +Integrity: sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae +Copyright (c) 2021-present The Fastify team +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * The names of any contributors may not be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + * * * + +The complete list of contributors can be found at: +- https://github.com/garycourt/uri-js/graphs/contributors + +===== fast-wrap-ansi@0.2.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz +Integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2025 James Garbutt + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== for-each@0.3.5 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz +Integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2012 Raynos. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +===== function-bind@1.1.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz +Integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2013 Raynos. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +===== get-intrinsic@1.3.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz +Integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2020 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== get-proto@1.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz +Integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2025 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== glob@13.0.6 ===== +Declared license: BlueOak-1.0.0 +Archive: https://registry.npmjs.org/glob/-/glob-13.0.6.tgz +Integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +All packages under `src/` are licensed according to the terms in +their respective `LICENSE` or `LICENSE.md` files. + +The remainder of this project is licensed under the Blue Oak +Model License, as follows: + +----- + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +===== gopd@1.2.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz +Integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2022 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== har-schema@2.0.0 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz +Integrity: sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2015, Ahmad Nassri + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== has-property-descriptors@1.0.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz +Integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2022 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== has-symbols@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz +Integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2016 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== has-tostringtag@1.0.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz +Integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2021 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== hasown@2.0.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz +Integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) Jordan Harband and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== ieee754@1.2.1 ===== +Declared license: BSD-3-Clause +Archive: https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz +Integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright 2008 Fair Oaks Labs, Inc. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===== ignore@7.0.6 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz +Integrity: sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE-MIT --- + +Copyright (c) 2013 Kael Zhang , contributors +http://kael.me/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +===== imurmurhash@0.1.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz +Integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/README.md: License (MIT) section --- + +License (MIT) +------------- +Copyright (c) 2013 Gary Court, Jens Taylor + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== incur@0.6.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/incur/-/incur-0.6.1.tgz +Integrity: sha512-QgaPKsKH+/3SLdUTSkCYwMWzL56vO3wn7iheEwKE0jOtWSa9Irzn8KeyhkRIkTzHW0ReiQwo0EtT8bBGR9PpMw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2025-present weth, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +===== @modelcontextprotocol/server@2.0.0-alpha.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.0.0-alpha.4.tgz +Integrity: sha512-/KEo3ZJ50HlagHp0lz2vPgfBZFtXHu6zTBXT9XqPc+4O9i4+IbBVWKq/a9yAfv/ifp0u3+mRo8SUk5kMKzhN8A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0. + +Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License. + +No rights beyond those granted by the applicable original license are conveyed for such contributions. + +--- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to the Licensor for inclusion in the Work by the copyright + owner or by an individual or Legal Entity authorized to submit on behalf + of the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +--- + +MIT License + +Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +Creative Commons Attribution 4.0 International (CC-BY-4.0) + +Documentation in this project (excluding specifications) is licensed under +CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for +the full license text. + + +===== inherits@2.0.4 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz +Integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The ISC License + +Copyright (c) Isaac Z. Schlueter + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + + +===== is-callable@1.2.7 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz +Integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +===== is-typed-array@1.1.15 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz +Integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +===== isarray@2.0.5 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz +Integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2013 Julian Gruber + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== isexe@2.0.0 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz +Integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== isomorphic-git@1.38.7 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.38.7.tgz +Integrity: sha512-2J2rCV7gTgcpscEDT7PjU5shbsKKI10E4RqBlPDI3LmMXDjSKsN2w1jTIKiay14v87sPDfXjJkgp/Rrxc0zlSg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +Copyright 2017-2023 the 'isomorphic-git' authors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +--- package/managers/index.umd.min.js.LICENSE.txt --- + +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +/*! + * This code for `path.join` is directly copied from @zenfs/core/path for bundle size improvements. + * SPDX-License-Identifier: LGPL-3.0-or-later + * Copyright (c) James Prevett and other ZenFS contributors. + * + * Windows support added: + * - Backslashes are normalised to forward slashes before processing. + * - Drive-letter prefixes (e.g. "C:") are detected and preserved through + * normalisation, so absolute Windows paths are handled correctly. + * - An absolute argument passed to join() resets the accumulated path, + * matching Node behaviour and handling worktree gitdir paths properly. + * + * Limitation: UNC paths (e.g. \\server\share) are not supported. The leading + * backslashes are normalised to forward slashes and then collapsed by + * normalizeString, losing the UNC root. Git on Windows works with + * drive-letter paths, so this is not expected to be a practical issue. + */ + +/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */ + +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ + +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ + + +--- package/models/index.umd.min.js.LICENSE.txt --- + +/*! + * This code for `path.join` is directly copied from @zenfs/core/path for bundle size improvements. + * SPDX-License-Identifier: LGPL-3.0-or-later + * Copyright (c) James Prevett and other ZenFS contributors. + * + * Windows support added: + * - Backslashes are normalised to forward slashes before processing. + * - Drive-letter prefixes (e.g. "C:") are detected and preserved through + * normalisation, so absolute Windows paths are handled correctly. + * - An absolute argument passed to join() resets the accumulated path, + * matching Node behaviour and handling worktree gitdir paths properly. + * + * Limitation: UNC paths (e.g. \\server\share) are not supported. The leading + * backslashes are normalised to forward slashes and then collapsed by + * normalizeString, losing the UNC root. Git on Windows works with + * drive-letter paths, so this is not expected to be a practical issue. + */ + + +===== ignore@5.3.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz +Integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE-MIT --- + +Copyright (c) 2013 Kael Zhang , contributors +http://kael.me/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +===== jose@6.2.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/jose/-/jose-6.2.3.tgz +Integrity: sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +The MIT License (MIT) + +Copyright (c) 2018 Filip Skokan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== json-schema-traverse@1.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz +Integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2017 Evgeny Poberezkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== jsonc-parser@3.3.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz +Integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +The MIT License (MIT) + +Copyright (c) Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== lossless-json@4.3.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/lossless-json/-/lossless-json-4.3.1.tgz +Integrity: sha512-SqD/Bg3ZfltBJ2Z14hJ/BihnvtV553WO4g9/ePtlp4lrnl9jF3AdIJt53A/Wkg/0Li+LMfxaBqgx1MiFZdQlpQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +The MIT License (MIT) + +Copyright (c) 2016-2026 Jos de Jong + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== lru-cache@11.5.2 ===== +Declared license: BlueOak-1.0.0 +Archive: https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz +Integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +===== math-intrinsics@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz +Integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 ECMAScript Shims + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== mimic-response@3.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz +Integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== minimatch@10.2.5 ===== +Declared license: BlueOak-1.0.0 +Archive: https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz +Integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +**_As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim._** + + +===== minimist@1.2.8 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz +Integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +This software is released under the MIT license: + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== minimisted@2.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/minimisted/-/minimisted-2.0.1.tgz +Integrity: sha512-1oPjfuLQa2caorJUM8HV8lGgWCc0qqAO1MNv/k05G4qslmsndV/5WdNZrqCiyqiz3wohia2Ij2B7w2Dr7/IyrA== +Scope: npm runtime dependency, including optional platform packages. + +--- Published package metadata and standard license text (upstream omits a full license/copyright document) --- + +The published package declares MIT but contains no full license/copyright document. No copyright holder or year is inferred. +Author as declared by upstream package metadata: "Yoshiya Hinosawa (https://twitter.com/kt3k)" +Declared license: MIT + +Standard license text from licenses/MIT-template.txt; this is not a recovered upstream copyright notice. + +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== minipass@7.1.3 ===== +Declared license: BlueOak-1.0.0 +Archive: https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz +Integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +===== on-exit-leak-free@2.1.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz +Integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2021 Matteo Collina + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== once@1.4.0 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/once/-/once-1.4.0.tgz +Integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== pako@1.0.11 ===== +Declared license: (MIT AND Zlib) +Archive: https://registry.npmjs.org/pako/-/pako-1.0.11.tgz +Integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +(The MIT License) + +Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== parse5@8.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz +Integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== entities@8.1.0 ===== +Declared license: BSD-2-Clause +Archive: https://registry.npmjs.org/entities/-/entities-8.1.0.tgz +Integrity: sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) Felix Böhm +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===== path-key@3.1.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz +Integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== path-scurry@2.0.2 ===== +Declared license: BlueOak-1.0.0 +Archive: https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz +Integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** + + +===== pify@4.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/pify/-/pify-4.0.1.tgz +Integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== pino@10.4.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/pino/-/pino-10.4.0.tgz +Integrity: sha512-bk1ZMTwG/Vymx+zPoa28MhNzucFvXJWp3csrSuxuHPSMeUettaCoQ5Jvg07mtC4JGNpcfTwz41oVCnNgBK9+vA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2016-present Matteo Collina, David Mark Clements and the Pino contributors listed at and in the README file. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== pino-abstract-transport@3.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-3.0.0.tgz +Integrity: sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2021 pino + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== pino-std-serializers@7.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.1.0.tgz +Integrity: sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright Mateo Collina, David Mark Clements, James Sumners + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== pkce-challenge@5.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz +Integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2019 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== playwright-core@1.58.2 ===== +Declared license: Apache-2.0 +Archive: https://registry.npmjs.org/playwright-core/-/playwright-core-1.58.2.tgz +Integrity: sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Portions Copyright (c) Microsoft Corporation. + Portions Copyright 2017 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +--- package/NOTICE --- + +Playwright +Copyright (c) Microsoft Corporation + +This software contains code derived from the Puppeteer project (https://github.com/puppeteer/puppeteer), +available under the Apache 2.0 license (https://github.com/puppeteer/puppeteer/blob/master/LICENSE). + + +===== plist@5.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/plist/-/plist-5.0.0.tgz +Integrity: sha512-20N+g1DvMm/DFRbsvER7tT4wDryq0WunK7VMkDaiJcKNapAnUMkTsAnacFYf8n420F4Hf6/hefgmJRkMb1M0fg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +(The MIT License) + +Copyright (c) 2010-2017 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +===== possible-typed-array-names@1.1.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz +Integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== process@0.11.10 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/process/-/process-0.11.10.tgz +Integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +(The MIT License) + +Copyright (c) 2013 Roman Shtylman + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== process-warning@5.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz +Integrity: sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) Fastify + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== quick-format-unescaped@4.0.4 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz +Integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2016-2019 David Mark Clements + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== readable-stream@4.7.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz +Integrity: sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + +===== real-require@1.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/real-require/-/real-require-1.0.0.tgz +Integrity: sha512-P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +The MIT License (MIT) + +Copyright (c) 2021 Paolo Insogna and the real-require contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== require-from-string@2.0.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz +Integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +The MIT License (MIT) + +Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== rolldown@1.2.12 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/rolldown/-/rolldown-1.2.12.tgz +Integrity: sha512-8wafseiaG80xmXSfqidUNqZcylTlhmPZZt+za2m+js2sFZ8dTNlhIOV2WcbIPx2hgwPBJpEUGFAMZ9bgBBLTSQ== +Scope: generated runtime helpers; the build compiler is not bundled. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2024-present VoidZero Inc. & Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +end of terms and conditions + +The licenses of externally maintained libraries from which parts of the Software is derived are listed [here](https://github.com/rolldown/rolldown/blob/main/THIRD-PARTY-LICENSE). + + +===== safe-buffer@5.2.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz +Integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== safe-stable-stringify@2.5.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz +Integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) Ruben Bridgewater + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== semver@7.8.5 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/semver/-/semver-7.8.5.tgz +Integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== set-function-length@1.2.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz +Integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) Jordan Harband and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== sha.js@2.4.12 ===== +Declared license: (MIT AND BSD-3-Clause) +Archive: https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz +Integrity: sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2013-2018 sha.js contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +Copyright (c) 1998 - 2009, Paul Johnston & Contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +Neither the name of the author nor the names of its contributors may be used to +endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + +===== shebang-command@2.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz +Integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +MIT License + +Copyright (c) Kevin Mårtensson (github.com/kevva) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== shebang-regex@3.0.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz +Integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== signal-exit@4.1.0 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz +Integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.txt --- + +The ISC License + +Copyright (c) 2015-2023 Benjamin Coe, Isaac Z. Schlueter, and Contributors + +Permission to use, copy, modify, and/or distribute this software +for any purpose with or without fee is hereby granted, provided +that the above copyright notice and this permission notice +appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE +LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== simple-concat@1.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz +Integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== simple-get@4.0.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz +Integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== sisteransi@1.0.5 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz +Integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/license --- + +MIT License + +Copyright (c) 2018 Terkel Gjervig Nielsen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== smol-toml@1.9.0 ===== +Declared license: BSD-3-Clause +Archive: https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.0.tgz +Integrity: sha512-hpd+HLON7HdZXqYchMM/+LaTTbdK0AU3NngIJ4KVyWbY9bfQqdL9cD+4yf6dUoU2Ap4VsU0JkQi6FxAI1B2mXQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) Squirrel Chat et al., All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===== sonic-boom@4.2.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.1.tgz +Integrity: sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2017 Matteo Collina + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== split2@4.2.0 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/split2/-/split2-4.2.0.tgz +Integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2014-2018, Matteo Collina + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== stream-chain@4.2.6 ===== +Declared license: BSD-3-Clause +Archive: https://registry.npmjs.org/stream-chain/-/stream-chain-4.2.6.tgz +Integrity: sha512-1zeJ8CrtJfmiba26ui8jXkq/xLRFvhzkdH02D5QLO9Cnovgeb28IJxg88DdraWnjnkbOol/++uIAybJbJhk7ig== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright 2005-2026 Eugene Lazutkin + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===== stream-json@3.7.0 ===== +Declared license: BSD-3-Clause +Archive: https://registry.npmjs.org/stream-json/-/stream-json-3.7.0.tgz +Integrity: sha512-rCSBdcBP/bPk6T8QFcxAj1MSzAuc5i49cYW6IE7sYObNEPccBJIUiL6fU9c9BWt40aJK0siVynLX7lWaW8alXw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright 2005-2026 Eugene Lazutkin + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +===== string_decoder@1.3.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz +Integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + + +===== thread-stream@4.2.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/thread-stream/-/thread-stream-4.2.0.tgz +Integrity: sha512-e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2021 Matteo Collina + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== to-buffer@1.2.2 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz +Integrity: sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2016 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== tokenx@1.3.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/tokenx/-/tokenx-1.3.0.tgz +Integrity: sha512-NLdXTEZkKiO0gZuLtMoZKjCXTREXeZZt8nnnNeyoXtNZAfG/GKGSbQtLU5STspc0rMSwcA+UJfWZkbNU01iKmQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2023-PRESENT Johann Schopplich + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== typed-array-buffer@1.0.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz +Integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2023 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +===== which@2.0.2 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/which/-/which-2.0.2.tgz +Integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== which-typed-array@1.1.22 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz +Integrity: sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +===== wrappy@1.0.2 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz +Integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +===== write-file-atomic@7.0.0 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-7.0.0.tgz +Integrity: sha512-YnlPC6JqnZl6aO4uRc+dx5PHguiR9S6WeoLtpxNT9wIG+BDya7ZNE1q7KOjVgaA73hKhKLpVPgJ5QA9THQ5BRg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE.md --- + +Copyright (c) 2015, Rebecca Turner + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + + +===== ws@8.21.0 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/ws/-/ws-8.21.0.tgz +Integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright (c) 2011 Einar Otto Stangvik +Copyright (c) 2013 Arnout Kazemier and contributors +Copyright (c) 2016 Luigi Pinca and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +===== xmlbuilder@15.1.1 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz +Integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +The MIT License (MIT) + +Copyright (c) 2013 Ozgur Ozcitak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +===== yaml@2.9.0 ===== +Declared license: ISC +Archive: https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz +Integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +Copyright Eemeli Aro + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. + + +===== zod@4.4.3 ===== +Declared license: MIT +Archive: https://registry.npmjs.org/zod/-/zod-4.4.3.tgz +Integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ== +Scope: npm runtime dependency, including optional platform packages. + +--- package/LICENSE --- + +MIT License + +Copyright (c) 2025 Colin McDonnell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + diff --git a/licenses/upstream-sources.json b/licenses/upstream-sources.json new file mode 100644 index 000000000..5853460b2 --- /dev/null +++ b/licenses/upstream-sources.json @@ -0,0 +1,62 @@ +[ + { + "file": "licenses/ghidra-12.1.4-LICENSE.txt", + "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.1.4_build/LICENSE", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + { + "file": "licenses/ghidra-12.1.4-NOTICE.txt", + "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.1.4_build/NOTICE", + "sha256": "ad4b2bb6e75e908251226180081b5afa01c7161d7710e08b603d0c340a08a23f" + }, + { + "file": "licenses/ghidra-12.1.4-DISCLAIMER.txt", + "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.1.4_build/DISCLAIMER.md", + "sha256": "324f4544abe620362f7bc66fbd8ec3c90e62e1aeac249fb850aef67e71c8b24d" + }, + { + "file": "licenses/dotnet-runtime-MIT.txt", + "source": "https://raw.githubusercontent.com/dotnet/runtime/a3b2d40328be0be3f8dd43f0e5cc925b8827b044/LICENSE.TXT", + "sha256": "cfc21f5e8bd655ae997eec916138b707b1d290b83272c02a95c9f821b8c87310" + }, + { + "file": "licenses/cfworker-MIT.txt", + "source": "https://raw.githubusercontent.com/cfworker/cfworker/5409fdc2bd144f68e8b28c61c71fcb16600000a6/LICENSE.md", + "sha256": "376944252ab78ca6b41aee44ddea8894927ee67891e77e61eb9d59af63e35094" + }, + { + "file": "licenses/xterm-MIT.txt", + "source": "https://raw.githubusercontent.com/xtermjs/xterm.js/f447274f430fd22513f6adbf9862d19524471c04/LICENSE", + "sha256": "b569f629d00f2626a8100df2a1798210535621e42164dfd426a6fe5aac7b0ccd" + }, + { + "file": "licenses/Apache-2.0.txt", + "source": "https://www.apache.org/licenses/LICENSE-2.0.txt", + "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30" + }, + { + "file": "licenses/MIT-template.txt", + "source": "https://raw.githubusercontent.com/spdx/license-list-data/main/text/MIT.txt", + "sha256": "b05785f9f18e6716bab63424b11454513b9943a222595b70411009202fc592b5" + }, + { + "file": "licenses/MinGW-w64-runtime.txt", + "source": "https://raw.githubusercontent.com/mingw-w64/mingw-w64/v12.0.0/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt", + "sha256": "e9b2dc02451ea29092a1f25fa0f3c07207ed421f1807dffb0c4e6dce69dee7bd" + }, + { + "file": "licenses/GPL-3.0.txt", + "source": "https://raw.githubusercontent.com/gcc-mirror/gcc/releases/gcc-14.2.0/COPYING3", + "sha256": "8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903" + }, + { + "file": "licenses/GCC-Runtime-Library-Exception-3.1.txt", + "source": "https://raw.githubusercontent.com/gcc-mirror/gcc/releases/gcc-14.2.0/COPYING.RUNTIME", + "sha256": "9d6b43ce4d8de0c878bf16b54d8e7a10d9bd42b75178153e3af6a815bdc90f74" + }, + { + "file": "licenses/Node-22.19.0-LICENSE.txt", + "source": "https://raw.githubusercontent.com/nodejs/node/v22.19.0/LICENSE", + "sha256": "e991d81497a85bb24fc6bffae0a3637a6accd6c6bc5ce1f2c5698bd555cf9d49" + } +] diff --git a/licenses/xterm-MIT.txt b/licenses/xterm-MIT.txt new file mode 100644 index 000000000..4472336c9 --- /dev/null +++ b/licenses/xterm-MIT.txt @@ -0,0 +1,21 @@ +Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js) +Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com) +Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/package.json b/package.json index a237362b7..57ac5889e 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,8 @@ "scripts/prepare.mjs", "skills", "README.md", + "DISCLAIMER.md", + "THIRD_PARTY_NOTICES.md", "LICENSE", "native/windows/build/manifest.json", "native/windows/build/rea-windows-x64.node", @@ -87,7 +89,7 @@ "bridge/pwndbg/core_context.py", "third_party/pwndbg/README.md", "third_party/pwndbg/LICENSE.md", - "licenses/nativeaot-parser-MIT.txt" + "licenses" ], "scripts": { "release:notes": "node scripts/release-notes.mjs", From 79156e5bed1d72b83ade0483246f457b337b7e59 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 15:46:42 +0800 Subject: [PATCH 34/44] test(cli): preserve Windows runtime paths and failure diagnostics Supply the system root and temporary directory in isolated Windows CLI environments, while preserving explicit caller overrides. Include captured command output in web acceptance exit-code failures so startup and codec errors remain diagnosable. --- tests/acceptance/webModuleCli.test.ts | 4 +++- tests/acceptance/webSourceLocationCli.test.ts | 2 +- tests/support/cli/cliFixture.ts | 10 ++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/webModuleCli.test.ts b/tests/acceptance/webModuleCli.test.ts index 36675d794..54463ccb3 100644 --- a/tests/acceptance/webModuleCli.test.ts +++ b/tests/acceptance/webModuleCli.test.ts @@ -35,7 +35,9 @@ cliTest( environment, timeoutMs: 15000, }); - expect(cliResponse.exitCode).toBe(0); + expect(cliResponse.exitCode, cliResponse.stdout + cliResponse.stderr).toBe( + 0, + ); expect(cliResponse.json).toMatchObject({ normalized_result: { engine: null, diff --git a/tests/acceptance/webSourceLocationCli.test.ts b/tests/acceptance/webSourceLocationCli.test.ts index bc063270c..f933d6390 100644 --- a/tests/acceptance/webSourceLocationCli.test.ts +++ b/tests/acceptance/webSourceLocationCli.test.ts @@ -40,7 +40,7 @@ cliTest( }, timeoutMs: 45000, }); - expect(response.exitCode).toBe(0); + expect(response.exitCode, response.stdout + response.stderr).toBe(0); expect(response.json).toMatchObject({ normalized_result: { source: { script_index: 0 }, diff --git a/tests/support/cli/cliFixture.ts b/tests/support/cli/cliFixture.ts index c6babc2f1..012944a9a 100644 --- a/tests/support/cli/cliFixture.ts +++ b/tests/support/cli/cliFixture.ts @@ -1,4 +1,5 @@ import { resolve } from "node:path"; +import { tmpdir } from "node:os"; import { createTestWorkspace, @@ -58,6 +59,15 @@ export const createTestCli = ( cwd: cwd ?? process.cwd(), env: { PATH: process.env.PATH ?? "", + // Native Windows APIs need the system root and a writable temporary + // directory even when the command's application environment is empty. + ...(process.platform === "win32" + ? { + SystemRoot: process.env.SystemRoot, + TEMP: tmpdir(), + TMP: tmpdir(), + } + : {}), ...(compileCache === undefined || environment?.NODE_V8_COVERAGE !== undefined ? {} From d1dcebce2c0820469ed63e33497a14258971b710 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 16:17:29 +0800 Subject: [PATCH 35/44] fix(evidence): preserve literal keys and response body ownership Retain exact empty and computed literal keys in JavaScript observations. Bind CDP response bodies to request occurrences, account for late responses, and validate the target after final progress callbacks. --- ...CdpCaptureEvents.redirectBodyShape.test.ts | 6 +- src/browser/CdpCaptureEvents.ts | 82 +++- src/browser/CdpPageCapture.ts | 32 +- .../electronStaticAnalysisIdentity.test.ts | 360 ++++++++++-------- .../electronStaticAnalysisValues.ts | 17 +- .../electronWrappedCallPaths.test.ts | 32 ++ .../javascriptStaticAnalysisHelpers.ts | 17 +- ...BrowserProvider.lifecycle_failures.test.ts | 30 ++ .../cdpBrowserProvider.network.test.ts | 203 ++++++++++ .../browser/cdpJsonShapeComparison.test.ts | 6 +- 10 files changed, 575 insertions(+), 210 deletions(-) diff --git a/src/browser/CdpCaptureEvents.redirectBodyShape.test.ts b/src/browser/CdpCaptureEvents.redirectBodyShape.test.ts index 6faa98368..26cb7593e 100644 --- a/src/browser/CdpCaptureEvents.redirectBodyShape.test.ts +++ b/src/browser/CdpCaptureEvents.redirectBodyShape.test.ts @@ -39,7 +39,9 @@ it("preserves an already captured response shape without marking it unavailable" }, }, }); - events.ingestResponseBody("request-1", { + const candidate = events.responseBodyRequests()[0]; + expect(candidate).toBeDefined(); + events.ingestResponseBody(candidate!, { body: '{"response":true}', base64Encoded: false, }); @@ -62,7 +64,7 @@ it("preserves an already captured response shape without marking it unavailable" capturedShape, ); expect(events.network.get("request-1")?.body_shapes.status).toBe("included"); - expect(events.responseBodyRequestIds()).toEqual([]); + expect(events.responseBodyRequests()).toEqual([]); expect(events.completeness.snapshot().unavailable_sections).not.toContain( "json_body_shapes", ); diff --git a/src/browser/CdpCaptureEvents.ts b/src/browser/CdpCaptureEvents.ts index 547d31b3a..b3f1ce41b 100644 --- a/src/browser/CdpCaptureEvents.ts +++ b/src/browser/CdpCaptureEvents.ts @@ -7,11 +7,18 @@ import type { CdpCaptureEventsState } from "./CdpCaptureEventState.js"; import type { CapturedScript, NetworkState } from "./CdpCaptureEventTypes.js"; import * as handlers from "./CdpCaptureEventHandlers.js"; import { isJsonMediaType } from "./CdpCaptureEventHelpers.js"; -import { recordValue } from "./CdpCaptureValues.js"; +import { cdpStringValue, recordValue } from "./CdpCaptureValues.js"; + +export interface ResponseBodyCandidate { + readonly requestId: string; + readonly occurrence: number; +} /** Event accumulator that validates and normalizes payloads at ingestion. */ export class CdpCaptureEvents implements CdpCaptureEventsState { #scriptMetadataBudgetExclusionsRecorded = false; + readonly #networkRequestOccurrences = new Map(); + readonly #responseBodyExaminedOccurrences = new Map(); readonly scripts = new Map(); readonly scriptMetadataBudgetOmissionsById = new Map(); rejectedScriptMetadataBudgetCount = 0; @@ -64,6 +71,8 @@ export class CdpCaptureEvents implements CdpCaptureEventsState { this.executionContextFrames.clear(); this.network.clear(); this.networkRequestTimestamps.clear(); + this.#networkRequestOccurrences.clear(); + this.#responseBodyExaminedOccurrences.clear(); this.malformedRedirectRequestIds.clear(); this.webSocketConnectionsById.clear(); this.console.length = 0; @@ -128,9 +137,18 @@ export class CdpCaptureEvents implements CdpCaptureEventsState { case "Debugger.scriptParsed": handlers.handleScriptParsed(this, params); break; - case "Network.requestWillBeSent": + case "Network.requestWillBeSent": { + const requestId = cdpStringValue(params.requestId); + const previous = + requestId === undefined ? undefined : this.network.get(requestId); handlers.handleRequestWillBeSent(this, params); + if (requestId !== undefined && this.network.get(requestId) !== previous) + this.#networkRequestOccurrences.set( + requestId, + (this.#networkRequestOccurrences.get(requestId) ?? 0) + 1, + ); break; + } case "Network.responseReceived": handlers.handleResponseReceived(this, params); break; @@ -165,24 +183,68 @@ export class CdpCaptureEvents implements CdpCaptureEventsState { : null; } - responseBodyRequestIds(): readonly string[] { + responseBodyRequests(): readonly ResponseBodyCandidate[] { if (!this.input.include_json_body_shapes) return []; return [...this.network.values()] .filter( (request) => !this.malformedRedirectRequestIds.has(request.request_id), ) .filter((request) => isJsonMediaType(request.mime_type)) - .map((request) => request.request_id); + .flatMap((request) => { + const occurrence = this.#networkRequestOccurrences.get( + request.request_id, + ); + return occurrence === undefined + ? [] + : [{ requestId: request.request_id, occurrence }]; + }); } - responseBodyUnavailable(requestId: string): void { - if (this.malformedRedirectRequestIds.has(requestId)) return; - bodyShapes.updateResponseBodyShape(this, requestId, null); + currentResponseBodyRequest( + candidate: ResponseBodyCandidate, + ): NetworkState | undefined { + if ( + candidate.occurrence !== + this.#networkRequestOccurrences.get(candidate.requestId) + ) + return undefined; + return this.network.get(candidate.requestId); + } + + responseBodyUnavailable(candidate: ResponseBodyCandidate): void { + if (this.currentResponseBodyRequest(candidate) === undefined) return; + this.#responseBodyExaminedOccurrences.set( + candidate.requestId, + candidate.occurrence, + ); + if (this.malformedRedirectRequestIds.has(candidate.requestId)) return; + bodyShapes.updateResponseBodyShape(this, candidate.requestId, null); this.completeness.unavailable("json_body_shapes"); } - ingestResponseBody(requestId: string, value: unknown): void { - if (this.malformedRedirectRequestIds.has(requestId)) return; - bodyShapes.ingestResponseBodyShape(this, requestId, value); + /** + * Mark eligible response bodies that arrived after the fetch pass was + * enumerated. + */ + settleUnexaminedResponseBodies(): void { + for (const candidate of this.responseBodyRequests()) { + const request = this.currentResponseBodyRequest(candidate); + if ( + request?.body_shapes.response === null && + this.#responseBodyExaminedOccurrences.get(candidate.requestId) !== + candidate.occurrence + ) + this.responseBodyUnavailable(candidate); + } + } + + ingestResponseBody(candidate: ResponseBodyCandidate, value: unknown): void { + if (this.currentResponseBodyRequest(candidate) === undefined) return; + this.#responseBodyExaminedOccurrences.set( + candidate.requestId, + candidate.occurrence, + ); + if (this.malformedRedirectRequestIds.has(candidate.requestId)) return; + bodyShapes.ingestResponseBodyShape(this, candidate.requestId, value); } } diff --git a/src/browser/CdpPageCapture.ts b/src/browser/CdpPageCapture.ts index 4de472660..0d97576b5 100644 --- a/src/browser/CdpPageCapture.ts +++ b/src/browser/CdpPageCapture.ts @@ -153,6 +153,7 @@ const captureAuthorizedPage = async ( ); if (!input.include_storage_keys) state.events.completeness.exclude("storage_keys", "not_approved", null); + await report(context.progress, 3, "Normalizing browser evidence"); const completedFrameResult = await authorizedMainFrame({ connection: context.connection, sessionId: context.sessionId, @@ -165,7 +166,10 @@ const captureAuthorizedPage = async ( throw new BrowserObservationError("inspect_web_page", "target_not_allowed"); if (state.events.navigationDuringCapture || completedUrl !== attachedUrl) throw new BrowserObservationError("inspect_web_page", "target_changed"); - await report(context.progress, 3, "Normalizing browser evidence"); + // Body IDs were enumerated before asynchronous CDP reads. Events remain + // enabled through the final capture, so account for eligible responses that + // arrived while those reads were pending. + state.events.settleUnexaminedResponseBodies(); state.events.recordScriptMetadataBudgetExclusions(); return { inspection: normalizedInspection(state, { @@ -185,14 +189,14 @@ const captureAuthorizedPage = async ( const captureJsonResponseBodies = async ( state: CaptureState, ): Promise => { - const requestIds = state.events.responseBodyRequestIds(); - for (let index = 0; index < requestIds.length; index += 1) { - const requestId = requestIds[index]; - if (requestId === undefined) continue; - const request = state.events.network.get(requestId); - if (request === undefined) continue; - if (request.encoded_data_length === null) { - state.events.responseBodyUnavailable(requestId); + const requests = state.events.responseBodyRequests(); + for (let index = 0; index < requests.length; index += 1) { + const candidate = requests[index]; + if (candidate === undefined) continue; + const current = state.events.currentResponseBodyRequest(candidate); + if (current === undefined) continue; + if (current.encoded_data_length === null) { + state.events.responseBodyUnavailable(candidate); continue; } let result: unknown; @@ -200,7 +204,7 @@ const captureJsonResponseBodies = async ( result = await optionalCdpCommand( state.context, "Network.getResponseBody", - { requestId }, + { requestId: candidate.requestId }, state.limitations, ); } catch (cause: unknown) { @@ -211,17 +215,17 @@ const captureJsonResponseBodies = async ( cause.reportedMessage === null ) throw cause; - state.events.responseBodyUnavailable(requestId); + state.events.responseBodyUnavailable(candidate); state.limitations.push( - `Response body unavailable for request ${requestId}: ${cause.userMessage}`, + `Response body unavailable for request ${candidate.requestId}: ${cause.userMessage}`, ); continue; } if (result !== undefined) { - state.events.ingestResponseBody(requestId, result); + state.events.ingestResponseBody(candidate, result); continue; } - for (const remaining of requestIds.slice(index)) + for (const remaining of requests.slice(index)) state.events.responseBodyUnavailable(remaining); return; } diff --git a/src/domain/javascript/electronStaticAnalysisIdentity.test.ts b/src/domain/javascript/electronStaticAnalysisIdentity.test.ts index 0005a1977..527b0b463 100644 --- a/src/domain/javascript/electronStaticAnalysisIdentity.test.ts +++ b/src/domain/javascript/electronStaticAnalysisIdentity.test.ts @@ -1,172 +1,200 @@ -import { describe, expect, it } from "vitest"; +import { expect, it } from "vitest"; import { analyzeJavaScriptStaticSource } from "./javascriptStaticAnalysis.js"; -describe("Electron API identity", () => { - it("recovers APIs through an ES module default import of Electron", () => { - const analysis = analyzeJavaScriptStaticSource(` - import electron from "electron"; - const { ipcMain } = electron; - new electron.BrowserWindow({ webPreferences: { preload: "./preload.js" } }); - electron.contextBridge.exposeInMainWorld("api", { ping: true }); - electron.ipcRenderer.invoke("default:ping"); - ipcMain.handle("destructured:ping", () => "pong"); - electron.default.ipcMain.handle("nested-default", () => "local"); - `); +it("recovers APIs through an ES module default import of Electron", () => { + const analysis = analyzeJavaScriptStaticSource(` + import electron from "electron"; + const { ipcMain } = electron; + new electron.BrowserWindow({ webPreferences: { preload: "./preload.js" } }); + electron.contextBridge.exposeInMainWorld("api", { ping: true }); + electron.ipcRenderer.invoke("default:ping"); + ipcMain.handle("destructured:ping", () => "pong"); + electron.default.ipcMain.handle("nested-default", () => "local"); + `); - expect(analysis.electron.browser_windows).toMatchObject([ - { preload_path: "./preload.js" }, - ]); - expect(analysis.electron.context_bridge_apis).toMatchObject([ - { api_key: "api", members: ["ping"] }, - ]); - expect( - analysis.electron.ipc.map(({ side, operation, channel }) => ({ - side, - operation, - channel, - })), - ).toEqual([ - { side: "renderer", operation: "invoke", channel: "default:ping" }, - { side: "main", operation: "handle", channel: "destructured:ping" }, - ]); + expect(analysis.electron.browser_windows).toMatchObject([ + { preload_path: "./preload.js" }, + ]); + expect(analysis.electron.context_bridge_apis).toMatchObject([ + { api_key: "api", members: ["ping"] }, + ]); + expect( + analysis.electron.ipc.map(({ side, operation, channel }) => ({ + side, + operation, + channel, + })), + ).toEqual([ + { side: "renderer", operation: "invoke", channel: "default:ping" }, + { side: "main", operation: "handle", channel: "destructured:ping" }, + ]); +}); + +it("recovers APIs and sender checks written with optional chaining", () => { + const analysis = analyzeJavaScriptStaticSource(` + const { contextBridge, ipcMain, utilityProcess } = require("electron"); + contextBridge?.exposeInMainWorld("api", {}); + utilityProcess?.fork("./worker.js"); + ipcMain?.handle("optional:ping", (event) => { + if (!event.senderFrame?.url.startsWith("file://")) return null; + return event.sender?.getURL() === "file:///index.html"; + }); + `); + + expect(analysis.electron.context_bridge_apis).toMatchObject([ + { api_key: "api" }, + ]); + expect(analysis.electron.utility_processes).toMatchObject([ + { module_path: "./worker.js" }, + ]); + expect(analysis.electron.ipc).toMatchObject([ + { side: "main", operation: "handle", channel: "optional:ping" }, + ]); + expect( + analysis.electron.sender_validations.map( + ({ subject, mechanism, expected }) => ({ + subject, + mechanism, + expected: expected.value, + }), + ), + ).toEqual([ + { + subject: "sender-url", + mechanism: "call:startsWith", + expected: "file://", + }, + { + subject: "sender-url", + mechanism: "comparison:===", + expected: "file:///index.html", + }, + ]); +}); + +it("preserves empty and computed literal contextBridge member keys", () => { + const analysis = analyzeJavaScriptStaticSource(` + const { contextBridge } = require("electron"); + const dynamicKey = getKey(); + contextBridge.exposeInMainWorld("api", { + "": { nested: { "": true } }, + ["computed"]: true, + }); + contextBridge.exposeInMainWorld("dynamic", { + [dynamicKey]: true, + }); + `); + + const finding = analysis.electron.context_bridge_apis.find( + ({ api_key }) => api_key === "api", + ); + expect(finding).toMatchObject({ + api_status: "object-literal", + members: ["", ".nested", ".nested.", "computed"], + unknown_members: 0, }); - - it("recovers APIs and sender checks written with optional chaining", () => { - const analysis = analyzeJavaScriptStaticSource(` - const { contextBridge, ipcMain, utilityProcess } = require("electron"); - contextBridge?.exposeInMainWorld("api", {}); - utilityProcess?.fork("./worker.js"); - ipcMain?.handle("optional:ping", (event) => { - if (!event.senderFrame?.url.startsWith("file://")) return null; - return event.sender?.getURL() === "file:///index.html"; - }); - `); - - expect(analysis.electron.context_bridge_apis).toMatchObject([ - { api_key: "api" }, - ]); - expect(analysis.electron.utility_processes).toMatchObject([ - { module_path: "./worker.js" }, - ]); - expect(analysis.electron.ipc).toMatchObject([ - { side: "main", operation: "handle", channel: "optional:ping" }, - ]); - expect( - analysis.electron.sender_validations.map( - ({ subject, mechanism, expected }) => ({ - subject, - mechanism, - expected: expected.value, - }), - ), - ).toEqual([ - { - subject: "sender-url", - mechanism: "call:startsWith", - expected: "file://", - }, - { - subject: "sender-url", - mechanism: "comparison:===", - expected: "file:///index.html", - }, - ]); - }); - - it("follows bundler namespace interop helpers without accepting other writes", () => { - const analysis = analyzeJavaScriptStaticSource(` - var __toESM = (mod) => mod; - var __importStar = (mod) => mod; - let electron = require("electron"); - electron = __toESM(electron); - new electron.BrowserWindow({ webPreferences: { preload: "./rolldown.js" } }); - var import_electron = __toESM(require("electron")); - new import_electron.BrowserWindow({ webPreferences: { preload: "./esbuild.js" } }); - function _interopRequireWildcard(mod) { return mod; } - const Electron = __importStar(require("electron")); - new Electron.BrowserWindow({ webPreferences: { preload: "./tsc.js" } }); - - let replaced = require("electron"); - replaced = __toESM(require("./fake")); - new replaced.BrowserWindow({ webPreferences: { preload: "./replaced.js" } }); - let rewritten = require("electron"); - rewritten = __toESM(rewritten); - rewritten = fake; - new rewritten.BrowserWindow({ webPreferences: { preload: "./rewritten.js" } }); - const babel = _interopRequireWildcard(require("electron")); - new babel.BrowserWindow({ webPreferences: { preload: "./babel.js" } }); - function nested() { - const __toESM = (mod) => mod; - const scoped = __toESM(require("electron")); - new scoped.BrowserWindow({ webPreferences: { preload: "./nested.js" } }); - } - `); - - expect( - analysis.electron.browser_windows.map(({ preload_path }) => preload_path), - ).toEqual(["./rolldown.js", "./esbuild.js", "./tsc.js", "./babel.js"]); - }); - - it("does not trust unbound helper names or non-function helper values", () => { - const analysis = analyzeJavaScriptStaticSource(` - const __toESM = makeLookalike(); - const electron = __toESM(require("electron")); - new electron.BrowserWindow({}); - let unbound = require("electron"); - unbound = __importStar(unbound); - new unbound.BrowserWindow({}); - `); - - expect(analysis.electron.browser_windows).toEqual([]); - }); - - it("follows stable declaration aliases but not an assigned default parameter", () => { - const analysis = analyzeJavaScriptStaticSource(` - const direct = require("electron"); - const constAlias = direct; - new constAlias.BrowserWindow({webPreferences:{preload:"./const.js"}}); - - let letAlias = require("electron"); - new letAlias.BrowserWindow({webPreferences:{preload:"./let.js"}}); - - const { BrowserWindow } = require("electron"); - new BrowserWindow({webPreferences:{preload:"./destructured.js"}}); - - function withDefault(electron = require("./not-electron")) { - if (flag) electron = require("electron"); - new electron.BrowserWindow({webPreferences:{preload:"./default.js"}}); - } - `); - - expect( - analysis.electron.browser_windows.map(({ preload_path }) => preload_path), - ).toEqual(["./const.js", "./let.js", "./destructured.js"]); - }); - - it("preserves one initializer across variable redeclarations without accepting writes", () => { - const analysis = analyzeJavaScriptStaticSource(` - var electron; - var electron = require("electron"); - var electron; - new electron.BrowserWindow({webPreferences:{preload:"./redeclared.js"}}); - - var replaced; - var replaced = require("electron"); - replaced = fake; - new replaced.BrowserWindow({webPreferences:{preload:"./replaced.js"}}); - - var initializedTwice = require("electron"); - var initializedTwice = fake; - new initializedTwice.BrowserWindow({}); - - var conditional; - if (flag) { var conditional = require("electron"); } - new conditional.BrowserWindow({}); - `); - - expect( - analysis.electron.browser_windows.map(({ preload_path }) => preload_path), - ).toEqual(["./redeclared.js"]); - }); + expect(finding?.resolution_basis).toBeUndefined(); + expect(analysis.electron.context_bridge_apis).toContainEqual( + expect.objectContaining({ + api_key: "dynamic", + unknown_members: 1, + }), + ); +}); + +it("follows bundler namespace interop helpers without accepting other writes", () => { + const analysis = analyzeJavaScriptStaticSource(` + var __toESM = (mod) => mod; + var __importStar = (mod) => mod; + let electron = require("electron"); + electron = __toESM(electron); + new electron.BrowserWindow({ webPreferences: { preload: "./rolldown.js" } }); + var import_electron = __toESM(require("electron")); + new import_electron.BrowserWindow({ webPreferences: { preload: "./esbuild.js" } }); + function _interopRequireWildcard(mod) { return mod; } + const Electron = __importStar(require("electron")); + new Electron.BrowserWindow({ webPreferences: { preload: "./tsc.js" } }); + + let replaced = require("electron"); + replaced = __toESM(require("./fake")); + new replaced.BrowserWindow({ webPreferences: { preload: "./replaced.js" } }); + let rewritten = require("electron"); + rewritten = __toESM(rewritten); + rewritten = fake; + new rewritten.BrowserWindow({ webPreferences: { preload: "./rewritten.js" } }); + const babel = _interopRequireWildcard(require("electron")); + new babel.BrowserWindow({ webPreferences: { preload: "./babel.js" } }); + function nested() { + const __toESM = (mod) => mod; + const scoped = __toESM(require("electron")); + new scoped.BrowserWindow({ webPreferences: { preload: "./nested.js" } }); + } + `); + + expect( + analysis.electron.browser_windows.map(({ preload_path }) => preload_path), + ).toEqual(["./rolldown.js", "./esbuild.js", "./tsc.js", "./babel.js"]); +}); + +it("does not trust unbound helper names or non-function helper values", () => { + const analysis = analyzeJavaScriptStaticSource(` + const __toESM = makeLookalike(); + const electron = __toESM(require("electron")); + new electron.BrowserWindow({}); + let unbound = require("electron"); + unbound = __importStar(unbound); + new unbound.BrowserWindow({}); + `); + + expect(analysis.electron.browser_windows).toEqual([]); +}); + +it("follows stable declaration aliases but not an assigned default parameter", () => { + const analysis = analyzeJavaScriptStaticSource(` + const direct = require("electron"); + const constAlias = direct; + new constAlias.BrowserWindow({webPreferences:{preload:"./const.js"}}); + + let letAlias = require("electron"); + new letAlias.BrowserWindow({webPreferences:{preload:"./let.js"}}); + + const { BrowserWindow } = require("electron"); + new BrowserWindow({webPreferences:{preload:"./destructured.js"}}); + + function withDefault(electron = require("./not-electron")) { + if (flag) electron = require("electron"); + new electron.BrowserWindow({webPreferences:{preload:"./default.js"}}); + } + `); + + expect( + analysis.electron.browser_windows.map(({ preload_path }) => preload_path), + ).toEqual(["./const.js", "./let.js", "./destructured.js"]); +}); + +it("preserves one initializer across variable redeclarations without accepting writes", () => { + const analysis = analyzeJavaScriptStaticSource(` + var electron; + var electron = require("electron"); + var electron; + new electron.BrowserWindow({webPreferences:{preload:"./redeclared.js"}}); + + var replaced; + var replaced = require("electron"); + replaced = fake; + new replaced.BrowserWindow({webPreferences:{preload:"./replaced.js"}}); + + var initializedTwice = require("electron"); + var initializedTwice = fake; + new initializedTwice.BrowserWindow({}); + + var conditional; + if (flag) { var conditional = require("electron"); } + new conditional.BrowserWindow({}); + `); + + expect( + analysis.electron.browser_windows.map(({ preload_path }) => preload_path), + ).toEqual(["./redeclared.js"]); }); diff --git a/src/domain/javascript/electronStaticAnalysisValues.ts b/src/domain/javascript/electronStaticAnalysisValues.ts index 1fb8d366d..2fe9d5858 100644 --- a/src/domain/javascript/electronStaticAnalysisValues.ts +++ b/src/domain/javascript/electronStaticAnalysisValues.ts @@ -4,6 +4,7 @@ import { compareUnicodeCodePoints } from "../unicodeCodePointOrder.js"; import type { ElectronStaticValue } from "./electronStaticAnalysisTypes.js"; import { readExactJavaScriptLiteral, + semanticStaticPropertyKey, semanticStaticPropertyName, } from "./javascriptAstValues.js"; import { sourceSlice } from "./javascriptStaticAnalysisHelpers.js"; @@ -124,7 +125,7 @@ export const collectContextBridgeMembers = ( members: [], unknown: 0, }; - collectMembersAt(node, "", 0, state); + collectMembersAt(node, [], state); const members = [...new Set(state.members)].sort(compareUnicodeCodePoints); return { status: "object-literal", @@ -135,11 +136,10 @@ export const collectContextBridgeMembers = ( const collectMembersAt = ( object: t.ObjectExpression, - prefix: string, - depth: number, + prefix: readonly string[], state: { members: string[]; unknown: number }, ): void => { - if (depth >= 8) { + if (prefix.length >= 8) { state.unknown += 1; return; } @@ -148,15 +148,16 @@ const collectMembersAt = ( state.unknown += 1; continue; } - const name = semanticStaticPropertyName(property.key, property.computed); - if (name === "" || property.computed) { + const name = semanticStaticPropertyKey(property.key, property.computed); + if (name === null) { state.unknown += 1; continue; } - const path = prefix === "" ? name : `${prefix}.${name}`; + const segments = [...prefix, name]; + const path = segments.join("."); state.members.push(path); if (t.isObjectProperty(property) && t.isObjectExpression(property.value)) - collectMembersAt(property.value, path, depth + 1, state); + collectMembersAt(property.value, segments, state); } }; diff --git a/src/domain/javascript/electronWrappedCallPaths.test.ts b/src/domain/javascript/electronWrappedCallPaths.test.ts index b39ac7b69..47d61004a 100644 --- a/src/domain/javascript/electronWrappedCallPaths.test.ts +++ b/src/domain/javascript/electronWrappedCallPaths.test.ts @@ -503,6 +503,38 @@ it("resolves renamed default and namespace import helpers from their syntax", () .every((step) => step.label.length > 0), ).toBe(true); }); +it("resolves an empty bootstrap module key through an exported Electron bridge", () => { + const result = analyzeJavaScriptStaticSource(`(() => { + const modules = { + ""(module) { module.exports = require("electron"); }, + 9(module, exports, load) { + const electron = load(""); + electron.contextBridge.exposeInMainWorld("desktop", { + copy: () => electron.ipcRenderer.send("test:empty-module"), + }); + }, + }; + function load(id) { + const module = { exports: {} }; + modules[id].call(module.exports, module, module.exports, load); + return module.exports; + } + load(9); + })();`); + expect(result.bundler_registrations).toMatchObject([ + { + entry_module_keys: ["9"], + modules: [{ module_key: "" }, { module_key: "9" }], + }, + ]); + expect(result.electron.call_paths).toContainEqual( + expect.objectContaining({ + entry: "desktop.copy", + channel: "test:empty-module", + terminal: "electron.ipcRenderer.send", + }), + ); +}); it("does not trust helper names or follow returns after a definite throw", () => { for (const helper of [ `function __toESM() {return {ipcRenderer:{send(){}}}}`, diff --git a/src/domain/javascript/javascriptStaticAnalysisHelpers.ts b/src/domain/javascript/javascriptStaticAnalysisHelpers.ts index 8038edf44..40ffe6e1f 100644 --- a/src/domain/javascript/javascriptStaticAnalysisHelpers.ts +++ b/src/domain/javascript/javascriptStaticAnalysisHelpers.ts @@ -13,6 +13,7 @@ import type { } from "./javascriptStaticAnalysisTypes.js"; import { readExactJavaScriptLiteral, + semanticStaticPropertyKey, semanticStaticPropertyName, unwrapJavaScriptExpression, } from "./javascriptAstValues.js"; @@ -131,15 +132,15 @@ export const moduleFactory = ( /** Derive a literal or explicitly computed module key. */ export const modulePropertyName = ( property: t.ObjectMethod | t.ObjectProperty | t.SpreadElement, -): string => - t.isObjectMethod(property) || t.isObjectProperty(property) - ? property.computed && - !t.isStringLiteral(property.key) && - !t.isNumericLiteral(property.key) - ? `[computed@${String(property.start ?? -1)}]` - : semanticStaticPropertyName(property.key, property.computed) || - `[unknown@${String(property.start ?? -1)}]` +): string => { + if (!t.isObjectMethod(property) && !t.isObjectProperty(property)) + return `[unknown@${String(property.start ?? -1)}]`; + const key = semanticStaticPropertyKey(property.key, property.computed); + if (key !== null) return key; + return property.computed + ? `[computed@${String(property.start ?? -1)}]` : `[unknown@${String(property.start ?? -1)}]`; +}; /** Read the factory-local bundler require parameter when declared. */ export const factoryRequireName = ( diff --git a/tests/boundary/browser/cdpBrowserProvider.lifecycle_failures.test.ts b/tests/boundary/browser/cdpBrowserProvider.lifecycle_failures.test.ts index 3109e9d00..7c0d07445 100644 --- a/tests/boundary/browser/cdpBrowserProvider.lifecycle_failures.test.ts +++ b/tests/boundary/browser/cdpBrowserProvider.lifecycle_failures.test.ts @@ -14,6 +14,36 @@ import { import { trackBrowser } from "./cdpBrowserProvider.support.js"; describe("CdpBrowserProvider: cancellation and session events", () => { + it("honors cancellation during the final progress callback before publishing inspection", async () => { + const browser = await startFakeCdpBrowser(); + trackBrowser(browser); + const controller = new AbortController(); + const result = await new CdpBrowserProvider().inspectPage( + inspectWebPageInputSchema.parse({ + cdp_endpoint: browser.endpoint, + allowed_origins: [browser.allowedOrigin], + target_id: "allowed-page", + observation_ms: 0, + }), + { + signal: controller.signal, + progress: { + report(update) { + if (update.completed === 3) controller.abort(); + return Promise.resolve(); + }, + }, + }, + ); + expect(result).toMatchObject({ + ok: false, + error: { + _tag: "AnalysisCancelledError", + operation: "inspect_web_page", + }, + }); + }); + it("projects direct-session cancellation onto the requested operation", async () => { const browser = await startFakeCdpBrowser({ pageScopedVersionWebSocket: true, diff --git a/tests/boundary/browser/cdpBrowserProvider.network.test.ts b/tests/boundary/browser/cdpBrowserProvider.network.test.ts index 65ed14180..a481af2ce 100644 --- a/tests/boundary/browser/cdpBrowserProvider.network.test.ts +++ b/tests/boundary/browser/cdpBrowserProvider.network.test.ts @@ -131,6 +131,203 @@ it("preserves unavailable response observations and captures completed peers", a ).toEqual(["missing-body", "available"]); }); +it("marks JSON response bodies unavailable when their events arrive during body capture", async () => { + const browser = await startFakeCdpBrowser({ + commandEvents(command, origin) { + const session = + command.sessionId === undefined ? {} : { sessionId: command.sessionId }; + if (command.method === "Network.enable") { + const url = `${origin}/initial.json`; + return [ + { + ...session, + method: "Network.requestWillBeSent", + params: { + requestId: "initial", + request: { url, method: "GET" }, + initiator: { type: "other" }, + }, + }, + { + ...session, + method: "Network.responseReceived", + params: { + requestId: "initial", + response: { url, status: 200, mimeType: "application/json" }, + }, + }, + { + ...session, + method: "Network.loadingFinished", + params: { requestId: "initial", encodedDataLength: 16 }, + }, + ]; + } + if (command.method !== "Network.getResponseBody") return undefined; + const url = `${origin}/late.json`; + return [ + { + ...session, + method: "Network.requestWillBeSent", + params: { + requestId: "late", + request: { url, method: "GET" }, + initiator: { type: "other" }, + }, + }, + { + ...session, + method: "Network.responseReceived", + params: { + requestId: "late", + response: { url, status: 200, mimeType: "application/json" }, + }, + }, + { + ...session, + method: "Network.loadingFinished", + params: { requestId: "late", encodedDataLength: 14 }, + }, + ]; + }, + commandResult(command) { + return command.method === "Network.getResponseBody" + ? { body: '{"initial":true}', base64Encoded: false } + : undefined; + }, + }); + trackBrowser(browser); + const result = await new CdpBrowserProvider().inspectPage( + inspectWebPageInputSchema.parse({ + cdp_endpoint: browser.endpoint, + allowed_origins: [browser.allowedOrigin], + target_id: "allowed-page", + observation_ms: 20, + include_json_body_shapes: true, + }), + ); + + if (!result.ok) throw result.error; + expect(result.value.network.requests).toEqual([ + expect.objectContaining({ + request_id: "initial", + body_shapes: { + status: "included", + request: null, + response: expect.any(Object), + }, + }), + expect.objectContaining({ + request_id: "late", + body_shapes: { status: "unavailable", request: null, response: null }, + }), + ]); + expect(result.value.completeness.unavailable_sections).toContain( + "json_body_shapes", + ); +}); + +it("does not attach a redirect response body to the reused request ID", async () => { + const browser = await startFakeCdpBrowser({ + commandEvents(command, origin) { + const session = + command.sessionId === undefined ? {} : { sessionId: command.sessionId }; + if (command.method === "Network.enable") { + const url = `${origin}/before-redirect.json`; + return [ + { + ...session, + method: "Network.requestWillBeSent", + params: { + requestId: "reused", + request: { url, method: "GET" }, + initiator: { type: "other" }, + }, + }, + { + ...session, + method: "Network.responseReceived", + params: { + requestId: "reused", + response: { url, status: 302, mimeType: "application/json" }, + }, + }, + { + ...session, + method: "Network.loadingFinished", + params: { requestId: "reused", encodedDataLength: 12 }, + }, + ]; + } + if (command.method !== "Network.getResponseBody") return undefined; + const previousUrl = `${origin}/before-redirect.json`; + const nextUrl = `${origin}/after-redirect.json`; + return [ + { + ...session, + method: "Network.requestWillBeSent", + params: { + requestId: "reused", + request: { url: nextUrl, method: "GET" }, + initiator: { type: "other" }, + redirectResponse: { + url: previousUrl, + status: 302, + mimeType: "application/json", + encodedDataLength: 12, + }, + }, + }, + { + ...session, + method: "Network.responseReceived", + params: { + requestId: "reused", + response: { + url: nextUrl, + status: 200, + mimeType: "application/json", + }, + }, + }, + { + ...session, + method: "Network.loadingFinished", + params: { requestId: "reused", encodedDataLength: 14 }, + }, + ]; + }, + commandResult(command) { + return command.method === "Network.getResponseBody" + ? { body: '{"belongs":"redirect"}', base64Encoded: false } + : undefined; + }, + }); + trackBrowser(browser); + const result = await new CdpBrowserProvider().inspectPage( + inspectWebPageInputSchema.parse({ + cdp_endpoint: browser.endpoint, + allowed_origins: [browser.allowedOrigin], + target_id: "allowed-page", + observation_ms: 20, + include_json_body_shapes: true, + }), + ); + + if (!result.ok) throw result.error; + expect(result.value.network.requests).toEqual([ + expect.objectContaining({ + request_id: "reused", + url: `${browser.allowedOrigin}/after-redirect.json`, + redirects: [expect.objectContaining({ status: 302 })], + body_shapes: { status: "unavailable", request: null, response: null }, + }), + ]); + expect(result.value.completeness.unavailable_sections).toContain( + "json_body_shapes", + ); +}); + it("marks malformed JSON body shapes unavailable while preserving partial request shapes", async () => { const browser = await startFakeCdpBrowser({ commandEvents(command, origin) { @@ -301,6 +498,12 @@ it("rejects malformed response-body envelopes and preserves request shapes", asy reason: "invalid_protocol_value", count: 2, }); + expect(result.value.completeness.excluded).not.toContainEqual( + expect.objectContaining({ + section: "json_body_shapes", + reason: "provider_unavailable", + }), + ); }); it.each([ diff --git a/tests/boundary/browser/cdpJsonShapeComparison.test.ts b/tests/boundary/browser/cdpJsonShapeComparison.test.ts index 900e21c67..677e8bd04 100644 --- a/tests/boundary/browser/cdpJsonShapeComparison.test.ts +++ b/tests/boundary/browser/cdpJsonShapeComparison.test.ts @@ -339,8 +339,10 @@ const captureBody = (source: BodySource, body: string): WebPageInspection => { encodedDataLength: Buffer.byteLength(responseBody), }, }); - expect(events.responseBodyRequestIds()).toEqual(["request-1"]); - events.ingestResponseBody("request-1", { + const candidate = events.responseBodyRequests()[0]; + expect(candidate?.requestId).toBe("request-1"); + expect(candidate).toBeDefined(); + events.ingestResponseBody(candidate!, { body: source === "base64 response" ? Buffer.from(responseBody).toString("base64") From 0d5033ad12e12abe78fc3c0ba81622b410d22aa1 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 16:17:36 +0800 Subject: [PATCH 36/44] fix(checks): order artifact-backed lint after compilation Prevent import resolution from racing with dist cleanup in build-backed gates while retaining the source-only fast check. --- package.json | 9 +++++---- turbo.json | 13 +++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 57ac5889e..da611da56 100644 --- a/package.json +++ b/package.json @@ -102,23 +102,24 @@ "prebuild": "npm run deps:check", "build": "node scripts/run-exclusive.mjs artifacts turbo run artifacts:skills --force", "precheck": "npm run deps:check", - "check": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint format:check knip metadata:check && npm run verify:architecture-guards", + "check": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint:built format:check knip metadata:check && npm run verify:architecture-guards", "precheck:fast": "npm run deps:check", "check:fast": "turbo run typecheck lint --output-logs=errors-only", "precheck:changed": "npm run deps:check", "check:changed": "npm run check:fast && npm run test:changed", "precheck:test": "npm run deps:check", - "check:test": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint format:check knip metadata:check test:run", + "check:test": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint:built format:check knip metadata:check test:run", "precheck:pr": "npm run deps:check", - "check:pr": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint format:check knip metadata:check test:run && npm run docs:check && npm run jscpd && npm run scan:todos", + "check:pr": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint:built format:check knip metadata:check test:run && npm run docs:check && npm run jscpd && npm run scan:todos", "precheck:ci": "npm run deps:check", - "check:ci": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint format:check knip metadata:check jscpd scan:todos && npm run verify:architecture-guards", + "check:ci": "node scripts/run-exclusive.mjs artifacts turbo run typecheck lint:built format:check knip metadata:check jscpd scan:todos && npm run verify:architecture-guards", "build:cached": "node scripts/check-dependency-install.mjs && node scripts/run-exclusive.mjs artifacts turbo run artifacts:skills", "build:termux": "node scripts/run-exclusive.mjs artifacts npm run build:termux:run", "build:termux:run": "npm run compile:termux && npm run artifacts:skills", "format": "oxfmt .", "format:check": "oxfmt --check .", "lint": "oxlint && npm run verify:module-boundaries", + "lint:built": "npm run lint", "lint:fix": "oxlint --fix && npm run verify:module-boundaries", "knip": "knip", "jscpd": "jscpd src/ tests/", diff --git a/turbo.json b/turbo.json index a88829261..50bfacfb3 100644 --- a/turbo.json +++ b/turbo.json @@ -57,6 +57,19 @@ "vitest.config.ts" ] }, + "lint:built": { + "dependsOn": ["compile"], + "inputs": [ + ".nvmrc", + ".oxlintrc.json", + "package.json", + "package-lock.json", + "scripts/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", + "src/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", + "tests/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}", + "vitest.config.ts" + ] + }, "format:check": {}, "knip": { "dependsOn": ["compile"], From 07b36c148946f46b99a4ce04e55726e97d0ee03a Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 16:27:51 +0800 Subject: [PATCH 37/44] fix(mcp): keep prompt completion within ready provider sessions Avoid lazy provider startup for document and procedure completion. Propagate MCP cancellation through completers, cancel lookups during session transitions, and share provider result projection with ordinary operations. Cover cold, starting, warm, queued, cancelled, and closed sessions through MCP composition and provider boundaries. --- src/application/AnalysisProvider.ts | 6 + src/application/binary/BinarySession.ts | 45 +++ src/application/binary/BinarySessionPort.ts | 7 + src/application/binary/CompositeProvider.ts | 9 + .../binary/LazyAnalysisProvider.ts | 8 + src/ghidra/GhidraClient.ts | 29 +- src/ghidra/GhidraProviderClient.ts | 71 ++++- src/hopper/HopperClient.ts | 37 ++- src/hopper/HopperProvider.ts | 86 +++--- src/ida/IdaSessionClient.test.ts | 80 ++++++ src/ida/IdaSessionClient.ts | 31 +- src/server/EvidenceMcpServer.ts | 36 ++- src/server/promptCompletion.ts | 43 ++- tests/boundary/mcp/promptMcp.test.ts | 269 +++++++++++++++++- .../providers/ghidra/ghidraClient.test.ts | 20 ++ .../hopper/hopperClient.protocol.test.ts | 20 ++ 16 files changed, 740 insertions(+), 57 deletions(-) diff --git a/src/application/AnalysisProvider.ts b/src/application/AnalysisProvider.ts index 87a717795..cc17cac82 100644 --- a/src/application/AnalysisProvider.ts +++ b/src/application/AnalysisProvider.ts @@ -123,6 +123,12 @@ export interface ProviderRequestActivitySnapshot { /** Provider session bound to exactly one parsed artifact. */ export interface AnalysisClient extends AnalysisOperationPort { + /** Execute only if this operation can run without loading or starting a provider. */ + executeIfReady?( + operation: AnalysisOperation, + parameters: Readonly>, + options?: ExecutionOptions, + ): Promise | undefined>; /** Retained token-verified process snapshots for dynamic providers this client started. */ runtimeLineageSnapshots?(): readonly ProviderRuntimeLineageSnapshot[]; /** Current provider work that may outlive a timed-out or cancelled caller. */ diff --git a/src/application/binary/BinarySession.ts b/src/application/binary/BinarySession.ts index 9eff0e0b8..f7b2d3529 100644 --- a/src/application/binary/BinarySession.ts +++ b/src/application/binary/BinarySession.ts @@ -81,7 +81,9 @@ export class BinarySession | undefined; #transition: Promise = Promise.resolve(); #transitionGeneration = 0; + #transitionPending = 0; readonly #calls = new Map, number>(); + readonly #promptCompletionControllers = new Set(); readonly #providerRouter: SessionProviderRouter; readonly #runtimeUnavailability = new Map< string, @@ -532,6 +534,38 @@ export class BinarySession return call.finally(() => this.#calls.delete(call)); } + /** Run a prompt lookup only against an already connected provider child. */ + executeIfProviderReady( + name: Parameters[0], + arguments_: Readonly>, + options?: Pick, + ): Promise | undefined> { + const active = this.#active; + if ( + this.#transitionPending > 0 || + active === undefined || + active.client.executeIfReady === undefined + ) + return Promise.resolve(undefined); + + const controller = new AbortController(); + this.#promptCompletionControllers.add(controller); + const signal = + options?.signal === undefined + ? controller.signal + : AbortSignal.any([controller.signal, options.signal]); + const generation = this.#transitionGeneration; + const call = active.client.executeIfReady(name, arguments_, { + ...options, + signal, + }); + this.#calls.set(call, generation); + return call.finally(() => { + this.#calls.delete(call); + this.#promptCompletionControllers.delete(controller); + }); + } + /** Admit one composed request until its result and session bookkeeping settle. */ withAdmittedAnalysis( operationName: string, @@ -728,6 +762,9 @@ export class BinarySession #serialize( operation: (admittedThrough: number) => Promise, ): Promise { + for (const controller of this.#promptCompletionControllers) + controller.abort(); + this.#transitionPending += 1; // Later calls wait for this transition and must not be included in its drain. const admittedThrough = this.#transitionGeneration++; const result = this.#transition.then( @@ -738,6 +775,14 @@ export class BinarySession () => undefined, () => undefined, ); + void result.then( + () => { + this.#transitionPending -= 1; + }, + () => { + this.#transitionPending -= 1; + }, + ); return result; } diff --git a/src/application/binary/BinarySessionPort.ts b/src/application/binary/BinarySessionPort.ts index ee666f665..749e98b2f 100644 --- a/src/application/binary/BinarySessionPort.ts +++ b/src/application/binary/BinarySessionPort.ts @@ -14,6 +14,7 @@ import type { EvidenceIntegrityError } from "../../domain/evidenceErrors.js"; import type { WorkflowSnapshotRecordInput } from "./BinarySessionRecords.js"; import type { + AnalysisExecution, AnalysisOperation, AnalysisOperationPort, ExecutionOptions, @@ -35,6 +36,12 @@ export interface SavedAnalysisSnapshot { /** Target lifecycle used by CLI and MCP without exposing a concrete provider. */ export interface BinarySessionPort extends AnalysisOperationPort, InvestigationRecordPort { + /** Execute only against a positively ready, already-created provider client. */ + executeIfProviderReady( + operation: AnalysisOperation, + parameters: Readonly>, + options?: Pick, + ): Promise | undefined>; /** Hold the active target binding through a complete composed operation. */ withAdmittedAnalysis( operationName: string, diff --git a/src/application/binary/CompositeProvider.ts b/src/application/binary/CompositeProvider.ts index b0a7e7c13..05184d279 100644 --- a/src/application/binary/CompositeProvider.ts +++ b/src/application/binary/CompositeProvider.ts @@ -94,6 +94,15 @@ export class CompositeProvider implements AnalysisProvider { return outcomes.find((outcome) => !outcome.ok) ?? ok(null); }; return { + executeIfReady: (operation, parameters, options) => { + const provider = this.#providerByOperation.get(operation); + const client = + provider === undefined ? undefined : clients.get(provider); + return ( + client?.executeIfReady?.(operation, parameters, options) ?? + Promise.resolve(undefined) + ); + }, execute: (operation, parameters, options) => { if (operation === "health") return Promise.resolve( diff --git a/src/application/binary/LazyAnalysisProvider.ts b/src/application/binary/LazyAnalysisProvider.ts index b9127e48b..a87e77445 100644 --- a/src/application/binary/LazyAnalysisProvider.ts +++ b/src/application/binary/LazyAnalysisProvider.ts @@ -79,6 +79,14 @@ class LazyAnalysisClient implements AnalysisClient { #loading: Promise | undefined; #closed = false; + executeIfReady: NonNullable = ( + operation, + parameters, + options, + ) => + this.#client?.executeIfReady?.(operation, parameters, options) ?? + Promise.resolve(undefined); + constructor(loadClient: () => Promise, providerId: string) { this.#loadClient = loadClient; this.#providerId = providerId; diff --git a/src/ghidra/GhidraClient.ts b/src/ghidra/GhidraClient.ts index 7731cf872..d1dee3f01 100644 --- a/src/ghidra/GhidraClient.ts +++ b/src/ghidra/GhidraClient.ts @@ -115,6 +115,7 @@ export class GhidraClient { #lastDiagnostics: Readonly> = {}; #startupController: AbortController | undefined; #startPromise: Promise | undefined; + #ready = false; #closePromise: Promise | undefined; readonly #failure = bindGhidraSessionFailure( () => this.#diagnostics(), @@ -216,7 +217,8 @@ export class GhidraClient { void started.then( (result) => { signal?.removeEventListener("abort", onAbort); - if (!result.ok) reset(); + if (result.ok) this.#ready = true; + else reset(); }, (cause: unknown) => { this.#logger.debug( @@ -293,6 +295,20 @@ export class GhidraClient { ); } + /** Dispatch against the connected bridge without invoking startup or retry. */ + callToolIfReady( + operation: GhidraOperation, + parameters: Readonly>, + options: { readonly signal?: AbortSignal } = {}, + ): Promise | undefined> { + if (!this.isReady()) return Promise.resolve(undefined); + return this.#requestQueue.run( + operation, + parameters, + options.signal === undefined ? {} : { signal: options.signal }, + ); + } + /** Read the private immutable source for format parsers that require captured bytes. */ readTargetSnapshot( maximumBytes?: number, @@ -416,6 +432,16 @@ export class GhidraClient { } } + /** True only after the authenticated startup handshake has completed. */ + isReady(): boolean { + return ( + this.#ready && + this.#socket !== undefined && + !this.#socket.destroyed && + this.#closePromise === undefined + ); + } + #cleanupError(cause: unknown): AnalysisError { if (cause instanceof AnalysisError && cause.cleanupIncomplete) return cause; return new ProviderCleanupError( @@ -462,6 +488,7 @@ export class GhidraClient { } #requestClose(forceStop: boolean): Promise { + this.#ready = false; const starting = this.#startPromise; const controller = this.#startupController; controller?.abort(); diff --git a/src/ghidra/GhidraProviderClient.ts b/src/ghidra/GhidraProviderClient.ts index d2b963e52..fc0297789 100644 --- a/src/ghidra/GhidraProviderClient.ts +++ b/src/ghidra/GhidraProviderClient.ts @@ -108,6 +108,7 @@ export type GhidraProviderClientFactory = ( Partial< Pick< GhidraClient, + | "callToolIfReady" | "operationHealthSnapshot" | "runtimeLineage" | "readTargetSnapshot" @@ -667,6 +668,40 @@ export const createGhidraProviderClient = (input: { startupTimeoutMs: config.ghidraStartupTimeoutMs, }) : undefined; + const projectExecution = ( + operation: AnalysisOperation, + normalized: JsonValue, + rawResult: JsonValue, + observationLimitations: readonly string[] = [], + ) => { + const relationshipCoverage = relationshipCoverageFor(operation); + return createAnalysisExecution(normalized, committedProfile.provider, { + rawResult, + analysisProfile: committedProfile, + ...(relationshipCoverage === undefined ? {} : { relationshipCoverage }), + limitations: [ + ...limitationsFor(operation), + ...observationLimitations, + ...sessionLimitations(), + ], + }); + }; + const inventoryExecution = ( + operation: "list_documents" | "list_procedures", + called: Result, + ) => { + if (!called.ok) + return err( + projectSessionError( + operation, + called.error, + config.ghidraStartupTimeoutMs, + ), + ); + const parsed = parseGhidraInventoryResult(operation, called.value); + if (!parsed.ok) return parsed; + return ok(projectExecution(operation, parsed.value, called.value)); + }; return { execute: async (operation, parameters, options) => { if (extensionFailure !== undefined) return err(extensionFailure); @@ -724,6 +759,8 @@ export const createGhidraProviderClient = (input: { ? {} : { progress: options.progress }), }); + if (operation === "list_documents" || operation === "list_procedures") + return inventoryExecution(operation, called); if (!called.ok) return err( projectSessionError( @@ -827,22 +864,30 @@ export const createGhidraProviderClient = (input: { if (!attested.ok) return attested; normalized = attested.value; } - const relationshipCoverage = relationshipCoverageFor(operation); return ok( - createAnalysisExecution(normalized, committedProfile.provider, { - rawResult: called.value, - analysisProfile: committedProfile, - ...(relationshipCoverage === undefined - ? {} - : { relationshipCoverage }), - limitations: [ - ...limitationsFor(operation), - ...observationLimitations, - ...sessionLimitations(), - ], - }), + projectExecution( + operation, + normalized, + called.value, + observationLimitations, + ), ); }, + executeIfReady: async (operation, parameters, options) => { + if (operation !== "list_documents" && operation !== "list_procedures") + return undefined; + if (extensionFailure !== undefined) return err(extensionFailure); + const input = parseGhidraInventoryInput(operation, parameters); + if (!input.ok) return input; + if (client.callToolIfReady === undefined) return undefined; + const called = await client.callToolIfReady( + operation, + input.value, + options?.signal === undefined ? {} : { signal: options.signal }, + ); + if (called === undefined) return undefined; + return inventoryExecution(operation, called); + }, operationHealthSnapshot: () => client.operationHealthSnapshot?.(), runtimeLineageSnapshots: () => { const observation = client.runtimeLineage?.() ?? null; diff --git a/src/hopper/HopperClient.ts b/src/hopper/HopperClient.ts index 2e903c8d2..8196adcee 100644 --- a/src/hopper/HopperClient.ts +++ b/src/hopper/HopperClient.ts @@ -121,6 +121,7 @@ export class HopperClient { #launcherFailureDiagnostic: HopperStartupFailureDiagnostic | undefined; #operationFailure: OperationFailureRecord | undefined; #startupController: AbortController | undefined; + #ready = false; #startupFailureResult: AnalysisError | undefined; #runId: string | undefined; #startPromise: Promise> | undefined; @@ -257,6 +258,16 @@ export class HopperClient { }; } + /** True only after the authenticated health handshake has completed. */ + isReady(): boolean { + return ( + this.#ready && + this.#socket !== undefined && + !this.#socket.destroyed && + this.#closePromise === undefined + ); + } + /** Launch the bridge once and complete its authenticated health handshake. */ start( signal?: AbortSignal, @@ -292,7 +303,7 @@ export class HopperClient { if (!result.ok) { this.#rememberStartupFailure(result.error); reset(); - } + } else this.#ready = true; }, (cause: unknown) => { this.#logger.debug( @@ -466,7 +477,28 @@ export class HopperClient { ): Promise> { const started = await this.start(options.signal); if (!started.ok) return started; - const result = await this.#request(name, arguments_, options); + return this.#normalizeToolResult( + name, + await this.#request(name, arguments_, options), + ); + } + + /** Dispatch against the connected bridge without invoking startup or retry. */ + callToolIfReady( + name: string, + arguments_: Readonly> = {}, + options: { readonly signal?: AbortSignal } = {}, + ): Promise | undefined> { + if (!this.isReady()) return Promise.resolve(undefined); + return this.#request(name, arguments_, options).then((result) => + this.#normalizeToolResult(name, result), + ); + } + + #normalizeToolResult( + name: string, + result: Result, + ): Result { return !result.ok && result.error instanceof HopperRemoteError && result.error.diagnosticType === "capability_unavailable" @@ -579,6 +611,7 @@ export class HopperClient { options: HopperClientCloseOptions = {}, ): Promise> { this.#closing = true; + this.#ready = false; try { return await cleanupHopperSession({ socket: this.#socket, diff --git a/src/hopper/HopperProvider.ts b/src/hopper/HopperProvider.ts index 0b7316a19..c52eefe28 100644 --- a/src/hopper/HopperProvider.ts +++ b/src/hopper/HopperProvider.ts @@ -5,6 +5,7 @@ import { accessSync, constants, statSync } from "node:fs"; import { createAnalysisExecution } from "../application/AnalysisProvider.js"; import type { AnalysisClient, + AnalysisOperation, AnalysisClientContext, AnalysisProfileResolutionOptions, AnalysisProviderCandidate, @@ -16,6 +17,7 @@ import type { import type { AnalysisProfileCommitment } from "../domain/analysisProfile.js"; import type { AppConfig } from "../config/types.js"; import type { BinaryTarget } from "../domain/binaryTargetTypes.js"; +import type { JsonValue } from "../domain/jsonValue.js"; import type { Logger } from "pino"; import { AnalysisCapabilityUnavailableError } from "../domain/analysisErrorCore.js"; import { err, ok } from "../domain/result.js"; @@ -251,6 +253,40 @@ export class HopperProvider implements AnalysisProviderCandidate { this.logger.info(diagnostic, "Hopper bridge reported a diagnostic"), }); const regexSearch = new HopperRegexSearch(client); + const projectExecution = ( + operation: AnalysisOperation, + normalized: JsonValue, + rawResult: JsonValue | null = null, + ) => + createAnalysisExecution(normalized, executionProvider, { + // Only the file-offset mapping differs from Hopper's reply. + rawResult, + ...(profile === undefined ? {} : { analysisProfile: profile }), + ...(operation === "procedure_callers" || + operation === "procedure_callees" + ? { relationshipCoverage: { status: "complete" as const } } + : {}), + limitations: [ + ...(preparedImage === undefined + ? [] + : [ + "REA loaded a verified thin Mach-O slice from the original FAT64 source. Identity and file offsets refer to the original file. The owned temporary image and its Hopper document close together, including on MCP shutdown.", + ]), + ...(CAPABILITIES.find( + (descriptor) => descriptor.operation === operation, + )?.limitations ?? []), + ...(operation === "read_bytes" + ? [ + "Hopper byte reads stop at the containing segment's exclusive end; a readable prefix is returned with complete=false when the requested range crosses it.", + ] + : []), + ...(operation === "procedure_references" + ? [ + "Native CallReference classifications and unresolved targets are preserved. Detailed reference flags and coverage beyond reported CallReference objects remain unknown.", + ] + : []), + ], + }); return { execute: async (operation, parameters, options) => { const result = @@ -265,40 +301,26 @@ export class HopperProvider implements AnalysisProviderCandidate { ? await mapHopperFileOffset(target, result.value, options?.signal) : result; return mapped.ok - ? { - ok: true, - value: createAnalysisExecution(mapped.value, executionProvider, { - // Only the file-offset mapping differs from Hopper's reply. - rawResult: mapped === result ? null : result.value, - ...(profile === undefined ? {} : { analysisProfile: profile }), - ...(operation === "procedure_callers" || - operation === "procedure_callees" - ? { relationshipCoverage: { status: "complete" as const } } - : {}), - limitations: [ - ...(preparedImage === undefined - ? [] - : [ - "REA loaded a verified thin Mach-O slice from the original FAT64 source. Identity and file offsets refer to the original file. The owned temporary image and its Hopper document close together, including on MCP shutdown.", - ]), - ...(CAPABILITIES.find( - (descriptor) => descriptor.operation === operation, - )?.limitations ?? []), - ...(operation === "read_bytes" - ? [ - "Hopper byte reads stop at the containing segment's exclusive end; a readable prefix is returned with complete=false when the requested range crosses it.", - ] - : []), - ...(operation === "procedure_references" - ? [ - "Native CallReference classifications and unresolved targets are preserved. Detailed reference flags and coverage beyond reported CallReference objects remain unknown.", - ] - : []), - ], - }), - } + ? ok( + projectExecution( + operation, + mapped.value, + mapped === result ? null : result.value, + ), + ) : mapped; }, + executeIfReady: async (operation, parameters, options) => { + if (operation !== "list_documents" && operation !== "list_procedures") + return undefined; + const result = await client.callToolIfReady( + operation, + parameters, + options?.signal === undefined ? {} : { signal: options.signal }, + ); + if (result === undefined || !result.ok) return result; + return ok(projectExecution(operation, result.value)); + }, runtimeLineageSnapshots: () => { const observation = client.runtimeLineage(); return observation === null diff --git a/src/ida/IdaSessionClient.test.ts b/src/ida/IdaSessionClient.test.ts index a7d7be083..e43f18cf7 100644 --- a/src/ida/IdaSessionClient.test.ts +++ b/src/ida/IdaSessionClient.test.ts @@ -116,6 +116,86 @@ describe("headless IDA producer pagination", () => { }); describe("attached IDA observation semantics", () => { + it("returns cold and pending startup calls immediately, then cancels queued work before dispatch", async () => { + const { producer, client } = await fixture("headless"); + await expect(client.executeIfReady("list_procedures", {})).resolves.toBe( + undefined, + ); + expect(producer.connects).toBe(0); + + let enterOpen: (() => void) | undefined; + let finishOpen: (() => void) | undefined; + const openEntered = new Promise((resolve) => { + enterOpen = resolve; + }); + const openGate = new Promise((resolve) => { + finishOpen = resolve; + }); + producer.beforeCall = async (name) => { + if (name === "idb_open") { + enterOpen?.(); + await openGate; + } + }; + const startup = client.execute("list_procedures", {}); + await openEntered; + await expect(client.executeIfReady("list_strings", {})).resolves.toBe( + undefined, + ); + expect( + producer.calls.filter(({ name }) => name === "idb_open"), + ).toHaveLength(1); + finishOpen?.(); + const started = await startup; + if (!started.ok) throw started.error; + const warm = await client.executeIfReady("list_procedures", {}); + if (warm === undefined) throw new Error("expected ready IDA dispatch"); + if (!warm.ok) throw warm.error; + expect(warm.value.result).toEqual([ + expect.objectContaining({ address: "0x1000", value: "main" }), + ]); + + let enterRead: (() => void) | undefined; + let finishRead: (() => void) | undefined; + const readEntered = new Promise((resolve) => { + enterRead = resolve; + }); + const readGate = new Promise((resolve) => { + finishRead = resolve; + }); + producer.beforeCall = async (name) => { + if (name === "list_funcs") { + enterRead?.(); + await readGate; + } + }; + const active = client.execute("list_procedures", {}); + await readEntered; + const controller = new AbortController(); + const queued = client.executeIfReady( + "list_strings", + {}, + { + signal: controller.signal, + }, + ); + controller.abort(); + await expect(queued).resolves.toMatchObject({ + ok: false, + error: { _tag: "AnalysisCancelledError" }, + }); + finishRead?.(); + const activeResult = await active; + if (!activeResult.ok) throw activeResult.error; + expect( + producer.calls.filter(({ name }) => name === "list_funcs"), + ).toHaveLength(3); + expect(producer.calls.some(({ name }) => name === "find_regex")).toBe( + false, + ); + await client.close(); + }); + it("accepts a normalized spelling of the bound document path", async () => { const { target, producer, client } = await fixture(); const equivalent = diff --git a/src/ida/IdaSessionClient.ts b/src/ida/IdaSessionClient.ts index 0633d9f68..f2a624569 100644 --- a/src/ida/IdaSessionClient.ts +++ b/src/ida/IdaSessionClient.ts @@ -1,4 +1,8 @@ import { z } from "zod"; +import { + ABORTED, + waitForAbortable, +} from "../application/binary/AbortablePromise.js"; import { createAnalysisExecution, type AnalysisClient, @@ -141,10 +145,35 @@ export class IdaSessionClient implements AnalysisClient { return call; } + async executeIfReady( + operation: AnalysisOperation, + parameters: Readonly>, + options?: ExecutionOptions, + ) { + if (!this.#openCompleted || this.#closed || this.#closing) + return Promise.resolve(undefined); + const call = this.#tail.then(() => { + if (!this.#openCompleted || this.#closed || this.#closing) + return undefined; + if (wasCancelled(options)) + return err(new AnalysisCancelledError(operation)); + return this.#execute(operation, parameters, options, true); + }); + this.#tail = call.then( + () => undefined, + () => undefined, + ); + const result = await waitForAbortable(call, options?.signal); + return result === ABORTED + ? err(new AnalysisCancelledError(operation)) + : result; + } + async #execute( operation: AnalysisOperation, parameters: Readonly>, options?: ExecutionOptions, + readyOnly = false, ) { if (this.#closed || this.#closing) return err( @@ -202,7 +231,7 @@ export class IdaSessionClient implements AnalysisClient { parameters, }; try { - await this.#start(); + if (!readyOnly) await this.#start(); const before = await this.#observe(options); failureContext.metadataBefore = before; if (wasCancelled(options)) throw new AnalysisCancelledError(operation); diff --git a/src/server/EvidenceMcpServer.ts b/src/server/EvidenceMcpServer.ts index d5f5e0598..dda6d17f3 100644 --- a/src/server/EvidenceMcpServer.ts +++ b/src/server/EvidenceMcpServer.ts @@ -1,3 +1,5 @@ +import { AsyncLocalStorage } from "node:async_hooks"; + import { McpServer, isCallToolResult, @@ -34,6 +36,12 @@ export interface CompactInputSchemaPresentation { readonly budgetBytes: number; } +const currentRequestSignal = new AsyncLocalStorage(); + +/** Signal for the completion request currently being dispatched by the SDK. */ +export const currentMcpRequestSignal = (): AbortSignal | undefined => + currentRequestSignal.getStore(); + /** A Zod schema whose standard interface exposes a JSON Schema projection. */ const hasAdvertisedInputJsonSchema = (value: unknown): boolean => { if (typeof value !== "object" || value === null) return false; @@ -124,6 +132,7 @@ class ErrorEvidenceTransport implements Transport { onmessage: Transport["onmessage"]; readonly hasPerRequestStream?: boolean; private readonly pendingTools = new Map(); + private readonly pendingCompletions = new Map(); constructor( private readonly transport: Transport, @@ -141,6 +150,8 @@ class ErrorEvidenceTransport implements Transport { typeof message.params?.["name"] === "string" ) this.pendingTools.set(message.id, message.params["name"]); + if (isJSONRPCRequest(message) && message.method === "completion/complete") + this.pendingCompletions.set(message.id, new AbortController()); // The SDK suppresses replies after cancellation, so send() cannot release // this bookkeeping. Keep transport authentication outside retained data. if ( @@ -148,14 +159,28 @@ class ErrorEvidenceTransport implements Transport { message.method === "notifications/cancelled" ) { const id = message.params?.["requestId"]; - if (typeof id === "string" || typeof id === "number") + if (typeof id === "string" || typeof id === "number") { this.pendingTools.delete(id); + this.pendingCompletions.get(id)?.abort(); + this.pendingCompletions.delete(id); + } } - this.onmessage?.(message, extra); + const completion = + isJSONRPCRequest(message) && message.method === "completion/complete" + ? this.pendingCompletions.get(message.id) + : undefined; + if (completion === undefined) this.onmessage?.(message, extra); + else + currentRequestSignal.run(completion.signal, () => + this.onmessage?.(message, extra), + ); }; transport.onerror = (error) => this.onerror?.(error); transport.onclose = () => { this.pendingTools.clear(); + for (const completion of this.pendingCompletions.values()) + completion.abort(); + this.pendingCompletions.clear(); this.onclose?.(); }; } @@ -176,6 +201,9 @@ class ErrorEvidenceTransport implements Transport { await this.transport.close(); } finally { this.pendingTools.clear(); + for (const completion of this.pendingCompletions.values()) + completion.abort(); + this.pendingCompletions.clear(); } } @@ -211,8 +239,10 @@ class ErrorEvidenceTransport implements Transport { await this.transport.send({ ...recovered, result }, options); } else await this.transport.send(recovered, options); } finally { - if (!isJSONRPCRequest(message) && id !== undefined) + if (!isJSONRPCRequest(message) && id !== undefined) { this.pendingTools.delete(id); + this.pendingCompletions.delete(id); + } } } diff --git a/src/server/promptCompletion.ts b/src/server/promptCompletion.ts index bc37e8fda..c4a4c028a 100644 --- a/src/server/promptCompletion.ts +++ b/src/server/promptCompletion.ts @@ -2,9 +2,11 @@ import type { EvidenceReader } from "../application/investigation/InvestigationR import { z } from "zod"; import { uniqueSorted } from "../domain/canonicalOrdering.js"; +import type { JsonValue } from "../domain/jsonValue.js"; import type { AnalysisOperationPort } from "../application/AnalysisProvider.js"; import type { BinarySessionPort } from "../application/binary/BinarySessionPort.js"; import type { PromptCompletionKind } from "../contracts/promptContracts.js"; +import { currentMcpRequestSignal } from "./EvidenceMcpServer.js"; import { artifactInventoryResultSchema } from "../domain/artifactGraph.js"; import { artifactInspectionResultSchema } from "../domain/artifactInspection.js"; import { parseProcessCapture } from "../domain/process/processCaptureParsing.js"; @@ -57,9 +59,13 @@ const completionCandidates = async ( ): Promise => { switch (kind) { case "document": - return documentCandidates(analysis); + return documentCandidates(analysis, session); case "procedure": - return procedureCandidates(analysis, context?.arguments?.document); + return procedureCandidates( + analysis, + session, + context?.arguments?.document, + ); case "provider": return providerCandidates(session); case "evidence": @@ -74,8 +80,15 @@ const completionCandidates = async ( const documentCandidates = async ( analysis: AnalysisOperationPort, + session: BinarySessionPort | undefined, ): Promise => { - const result = await analysis.execute("list_documents", {}); + const result = await completionInventoryLookup( + analysis, + session, + "list_documents", + {}, + ); + if (result === undefined) return []; if (!result.ok) return []; const parsed = documentListSchema.safeParse(result.value.result); return parsed.success ? parsed.data : []; @@ -83,12 +96,19 @@ const documentCandidates = async ( const procedureCandidates = async ( analysis: AnalysisOperationPort, + session: BinarySessionPort | undefined, document: string | undefined, ): Promise => { const byAddress = new Map(); const input = document === undefined || document.length === 0 ? {} : { document }; - const result = await analysis.execute("list_procedures", input); + const result = await completionInventoryLookup( + analysis, + session, + "list_procedures", + input, + ); + if (result === undefined) return []; if (result.ok) { const parsed = z .array(z.object({ address: z.string(), value: z.string() })) @@ -111,6 +131,21 @@ const procedureCandidates = async ( return candidates; }; +const completionInventoryLookup = async ( + analysis: AnalysisOperationPort, + session: BinarySessionPort | undefined, + operation: "list_documents" | "list_procedures", + parameters: Readonly>, +) => { + const signal = currentMcpRequestSignal(); + const options = signal === undefined ? {} : { signal }; + const result = + session === undefined + ? await analysis.execute(operation, parameters, options) + : await session.executeIfProviderReady(operation, parameters, options); + return signal?.aborted === true ? undefined : result; +}; + const providerCandidates = ( session: BinarySessionPort | undefined, ): readonly string[] => { diff --git a/tests/boundary/mcp/promptMcp.test.ts b/tests/boundary/mcp/promptMcp.test.ts index 4e0072e8f..9138a102d 100644 --- a/tests/boundary/mcp/promptMcp.test.ts +++ b/tests/boundary/mcp/promptMcp.test.ts @@ -11,7 +11,22 @@ import { afterEach, describe, expect, it } from "vitest"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; -import type { AnalysisClient } from "../../../src/application/AnalysisProvider.js"; +import { + createAnalysisExecution, + type AnalysisClient, +} from "../../../src/application/AnalysisProvider.js"; +import type { JsonValue } from "../../../src/domain/jsonValue.js"; +import type { + AnalysisProvider, + AnalysisProviderCandidate, + CapabilityDescriptor, + ProviderIdentity, +} from "../../../src/application/AnalysisProvider.js"; +import { AnalysisProviderRegistry } from "../../../src/application/binary/AnalysisProviderRegistry.js"; +import { composeBinarySession } from "../../../src/application/binary/BinarySessionComposition.js"; +import { createAnalysisProfile } from "../../../src/domain/analysisProfile.js"; +import { AnalysisCancelledError } from "../../../src/domain/analysisErrorCore.js"; +import { err, ok } from "../../../src/domain/result.js"; import { createCacheProvider, createTestBinarySession, @@ -304,6 +319,67 @@ describe("guided prompt completion registry", () => { }); }); +it("guided prompt completion avoids cold startup and cancels warm lookup on close", async () => { + const directory = await createTestTempDirectory("rea-prompt-warm-only-"); + temporaryDirectories.push(directory); + const target = join(directory, "target.hop"); + await writeFile(target, "fixture target"); + const fixture = await createWarmCompletionFixture(target); + const { client } = fixture; + + const opened = await client.callTool({ + name: "open_binary", + arguments: { path: target }, + }); + expect(opened.isError).not.toBe(true); + expect(fixture.childrenCreated()).toBe(0); + expect(await complete(client, "document", "")).toEqual([]); + expect(await complete(client, "procedure", "")).toEqual([]); + expect(fixture.childrenCreated()).toBe(0); + + const startup = fixture.holdStartup(); + const warming = client.callTool({ name: "list_documents", arguments: {} }); + await startup.started; + expect(await complete(client, "document", "")).toEqual([]); + expect(await complete(client, "procedure", "")).toEqual([]); + expect(fixture.childrenCreated()).toBe(1); + startup.finish(); + const warmed = await warming; + expect(warmed.isError, JSON.stringify(warmed)).not.toBe(true); + expect(fixture.childrenCreated()).toBe(1); + expect(await complete(client, "document", "fixture")).toEqual([ + "fixture-document", + ]); + + const cancellation = fixture.holdCompletion(); + const controller = new AbortController(); + const cancelled = client.complete( + { + ref: { type: "ref/prompt", name: "investigate_feature" }, + argument: { name: "document", value: "" }, + }, + { signal: controller.signal }, + ); + await cancellation.started; + controller.abort(); + await expect(cancelled).rejects.toThrow(); + await cancellation.aborted; + + const lifecycle = fixture.holdCompletion(); + const pending = client.complete({ + ref: { type: "ref/prompt", name: "investigate_feature" }, + argument: { name: "document", value: "" }, + }); + await lifecycle.started; + const closed = await client.callTool({ + name: "close_binary", + arguments: {}, + }); + expect(closed.isError).not.toBe(true); + await lifecycle.aborted; + expect((await pending).completion.values).toEqual([]); +}, 10_000); + describe("guided prompt completion lifecycle", () => { it("survives a cancelled completion and ignores its late result", async () => { let calls = 0; @@ -410,6 +486,181 @@ describe("guided prompt completion lifecycle", () => { }, 10_000); }); +const createWarmCompletionFixture = async (target: string) => { + const identity = { + id: "deep-fixture", + name: "Deep fixture provider", + version: "1", + }; + const analysisProfile = createAnalysisProfile(identity, { fixture: true }); + const observeCompletion = (result: JsonValue) => + resultOk(createAnalysisExecution(result, identity, { analysisProfile })); + let childrenCreated = 0; + let ready = false; + let startupGate: + | { + readonly started: () => void; + readonly release: Promise; + } + | undefined; + let completionGate: + | { + readonly started: () => void; + readonly aborted: () => void; + } + | undefined; + const deep = deepProvider(identity, { + createClient() { + childrenCreated += 1; + return { + execute: async (operation) => { + if (operation !== "health") { + const gate = startupGate; + if (gate !== undefined) { + startupGate = undefined; + gate.started(); + await gate.release; + } + ready = true; + } + return observeCompletion( + operation === "list_documents" + ? ["fixture-document"] + : operation === "list_procedures" + ? [{ address: "0x1000", value: "fixture-procedure" }] + : null, + ); + }, + executeIfReady(operation, _parameters, options) { + if ( + !ready || + (operation !== "list_documents" && operation !== "list_procedures") + ) + return Promise.resolve(undefined); + const gate = completionGate; + if (gate === undefined) + return Promise.resolve( + observeCompletion( + operation === "list_documents" + ? ["fixture-document"] + : [{ address: "0x1000", value: "fixture-procedure" }], + ), + ); + completionGate = undefined; + gate.started(); + return new Promise((resolve) => { + const signal = options?.signal; + const cancel = (): void => { + gate.aborted(); + resolve(err(new AnalysisCancelledError(operation))); + }; + if (signal?.aborted === true) cancel(); + else signal?.addEventListener("abort", cancel, { once: true }); + }); + }, + close: () => Promise.resolve(resultOk(null)), + }; + }, + }); + const auxiliaryIdentity: ProviderIdentity = { + id: "aux-fixture", + name: "Aux fixture", + version: "1", + }; + const auxiliary: AnalysisProvider = { + identity: () => auxiliaryIdentity, + capabilities: () => [ + promptCapability(auxiliaryIdentity, "inspect_artifact"), + ], + createClient: () => ({ + execute: () => Promise.resolve(observed(null)), + close: () => Promise.resolve(resultOk(null)), + }), + }; + const session = composeBinarySession(new AnalysisProviderRegistry([deep]), [ + auxiliary, + ]); + const client = await connect(createServer({ kind: "session", session })); + resources.push(session); + return { + client, + childrenCreated: () => childrenCreated, + holdStartup: () => { + let started = (): void => undefined; + let finish = (): void => undefined; + const observedStart = new Promise((resolve) => { + started = resolve; + }); + const release = new Promise((resolve) => { + finish = resolve; + }); + startupGate = { started, release }; + return { started: observedStart, finish }; + }, + holdCompletion: () => { + let started = (): void => undefined; + let aborted = (): void => undefined; + const observedStart = new Promise((resolve) => { + started = resolve; + }); + const observedAbort = new Promise((resolve) => { + aborted = resolve; + }); + completionGate = { started, aborted }; + return { started: observedStart, aborted: observedAbort }; + }, + }; +}; + +const deepProvider = ( + identity: Parameters[0], + options: { + readonly createClient: AnalysisProviderCandidate["createClient"]; + }, +): AnalysisProviderCandidate => ({ + identity: () => identity, + capabilities: () => [ + promptCapability(identity, "list_documents"), + promptCapability(identity, "list_procedures"), + ], + inspectAvailability: () => ({ + status: "available", + code: null, + reason: null, + diagnostics: {}, + }), + inspectTargetSupport: () => ({ + status: "supported", + code: null, + reason: null, + diagnostics: {}, + }), + resolveAnalysisProfile: async () => + ok({ profile: createAnalysisProfile(identity, { fixture: true }) }), + createClient: options.createClient, +}); + +const promptCapability = ( + provider: ProviderIdentity, + operation: CapabilityDescriptor["operation"], +): CapabilityDescriptor => ({ + provider, + operation, + available: true, + reason: null, + cachePolicy: "live", + effects: { + mutatesArtifact: false, + launchesProcess: false, + mayShowUi: false, + mayAccessNetwork: false, + mayWriteFilesystem: false, + changesPermissions: false, + requiresRoot: false, + }, + limitations: [], +}); + const fixtureProvider = { id: "fixture", name: "Fixture", version: "1" }; const fixtureSession = ( @@ -461,6 +712,22 @@ const lifecycleClient = ( } return Promise.resolve(observed(null)); }, + executeIfReady(operation, parameters) { + if (operation === "list_documents") + return Promise.resolve(observed([`${target}-document`])); + if (operation === "list_procedures") { + requests.push(parameters); + return Promise.resolve( + observed([ + { + address: target === "first" ? "0x1000" : "0x2000", + value: `${target}-procedure`, + }, + ]), + ); + } + return Promise.resolve(undefined); + }, close: () => Promise.resolve(resultOk(null)), }); diff --git a/tests/boundary/providers/ghidra/ghidraClient.test.ts b/tests/boundary/providers/ghidra/ghidraClient.test.ts index 43abedb3d..9ce3f77ce 100644 --- a/tests/boundary/providers/ghidra/ghidraClient.test.ts +++ b/tests/boundary/providers/ghidra/ghidraClient.test.ts @@ -150,6 +150,26 @@ afterEach(async () => { await Promise.all(clients.splice(0).map((client) => client.close())); }); +describe("GhidraClient ready-only dispatch", () => { + it("does not start cold and preserves the normal result once ready", async () => { + const launcher = new FixtureLauncher(); + const client = clientFor(launcher); + + await expect(client.callToolIfReady("list_strings", {})).resolves.toBe( + undefined, + ); + expect(launcher.processes).toEqual([]); + + const started = await client.start(); + if (!started.ok) throw started.error; + await expect(client.callToolIfReady("list_strings", {})).resolves.toEqual({ + ok: true, + value: [expect.objectContaining({ value: "fixture value" })], + }); + expect(launcher.processes).toHaveLength(1); + }); +}); + it("reports unknown startup work and stops notifications when cancellation releases the process", async () => { vi.useFakeTimers({ toFake: ["setInterval", "clearInterval"] }); const launcher = new FixtureLauncher("silent"); diff --git a/tests/boundary/providers/hopper/hopperClient.protocol.test.ts b/tests/boundary/providers/hopper/hopperClient.protocol.test.ts index 007f9d336..02a6ae73b 100644 --- a/tests/boundary/providers/hopper/hopperClient.protocol.test.ts +++ b/tests/boundary/providers/hopper/hopperClient.protocol.test.ts @@ -15,6 +15,26 @@ import { } from "./hopperClient.fixture.js"; describe("HopperClient protocol", () => { + it("does not start cold and preserves normal dispatch once ready", async () => { + const launcher = new FixtureLauncher(); + const client = new HopperClient({ launcher, startupTimeoutMs: 1_000 }); + onTestFinished(async () => { + await client.close(); + }); + + await expect( + client.callToolIfReady("echo", { label: "cold" }), + ).resolves.toBe(undefined); + expect(launcher.processes).toEqual([]); + + const started = await client.start(); + if (!started.ok) throw started.error; + await expect( + client.callToolIfReady("echo", { label: "warm" }), + ).resolves.toEqual({ ok: true, value: { label: "warm" } }); + expect(launcher.processes).toHaveLength(1); + }); + it("sanitizes unexpected owned-cleanup exceptions", () => { expect( providerCleanupFailure( From c22111eca2c4bc84a084f12711f405b3e7422a40 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 16:30:53 +0800 Subject: [PATCH 38/44] fix(process): return private runtime ownership at allocation Use POSIX mkdtemp owner-only allocation directly instead of adding a fallible permission rewrite and rollback before returning the cleanup owner. Respect restrictive umasks, assert privacy and real scratch access, and align provider documentation. --- docs/ida-provider.md | 2 +- docs/installation.md | 2 +- src/process/PrivateRuntimeRoot.ts | 16 ++++++---------- tests/boundary/process/providerProcess.test.ts | 6 ++++-- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/docs/ida-provider.md b/docs/ida-provider.md index d2e939561..9b1539933 100644 --- a/docs/ida-provider.md +++ b/docs/ida-provider.md @@ -58,7 +58,7 @@ rea function 'D:\samples\program.exe' main --json Headless REA and the configured supervisor must share the host filesystem and native path syntax. Run REA on Windows when the supervisor runs on Windows. The attached profile can span WSL and a Windows GUI because it binds recorded input hashes instead of asking the GUI to open a WSL path. -REA copies the admitted binary into a private temporary directory, checks its digest, and requests an owned worker with `force_headless`. POSIX workspaces use mode `0700`; Windows uses the matching package's native private-DACL boundary on a local NTFS temporary directory. It injects the returned database ID into analysis requests. It verifies the active owned worker and input path rather than adopting a user database. On close or failed startup, it releases its session with `save: false`, verifies that it is absent from upstream session discovery, and removes its private input and sidecars. An unverified release retains the workspace and reports incomplete cleanup. +REA copies the admitted binary into a private temporary directory, checks its digest, and requests an owned worker with `force_headless`. POSIX workspaces are created atomically with owner-only permissions, respecting the process umask; Windows uses the matching package's native private-DACL boundary on a local NTFS temporary directory. It injects the returned database ID into analysis requests. It verifies the active owned worker and input path rather than adopting a user database. On close or failed startup, it releases its session with `save: false`, verifies that it is absent from upstream session discovery, and removes its private input and sidecars. An unverified release retains the workspace and reports incomplete cleanup. One REA session owns one database. Stdio registrations default `IDA_MCP_MAX_WORKERS` to `1`; the explicit upstream `--max-workers 1` also bounds a supervisor. Database size and engine memory depend on the target and upstream; REA does not impose an engine memory limit. The original binary is never executed or overwritten. Optional `workspaceRoot` selects an existing absolute temporary-directory parent on the REA host. Ensure it has space for the input copy and IDA working files. diff --git a/docs/installation.md b/docs/installation.md index ff6210f8f..1df0a7479 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -785,7 +785,7 @@ Ghidra's default analysis settings, and loads its packaged Java bridge via `-scriptPath`; it never opens an existing user project. Linux and macOS use a current-user-only local bridge socket and descriptor. The project remains under the selected temporary directory. If its Unix socket -pathname would exceed the host's byte limit, REA allocates a separate mode-0700 +pathname would exceed the host's byte limit, REA allocates a separate owner-only socket directory under `/tmp` and removes it on close, cancellation, or failure. Diagnostics retain the actual endpoint and both owned directories. On Linux and macOS, REA starts the inspected JVM directly using Ghidra's own LaunchSupport diff --git a/src/process/PrivateRuntimeRoot.ts b/src/process/PrivateRuntimeRoot.ts index 8fe63ce72..7002e2f65 100644 --- a/src/process/PrivateRuntimeRoot.ts +++ b/src/process/PrivateRuntimeRoot.ts @@ -1,4 +1,4 @@ -import { chmod, mkdtemp, rm } from "node:fs/promises"; +import { mkdtemp, rm } from "node:fs/promises"; import { tmpdir } from "node:os"; import { join } from "node:path"; @@ -23,7 +23,7 @@ export type PrivateRuntimeRootCapability = | { readonly available: true; readonly reason: null; - readonly proof: "posix-mode-0700"; + readonly proof: "posix-mkdtemp-owner-only"; }; /** Report whether this process can establish a private runtime root. */ @@ -32,7 +32,7 @@ export const privateRuntimeRootCapability = ( ): PrivateRuntimeRootCapability => platform === "win32" ? windowsNativeCapabilities(platform).private_runtime_dacl - : { available: true, reason: null, proof: "posix-mode-0700" }; + : { available: true, reason: null, proof: "posix-mkdtemp-owner-only" }; /** Expected failure when a runtime root's privacy boundary is unavailable. */ export class PrivateRuntimeRootUnavailableError extends Error { @@ -77,13 +77,9 @@ export class PrivateRuntimeRoot { const path = await mkdtemp( join(options.parent ?? tmpdir(), options.prefix ?? "rea-provider-"), ); - try { - await chmod(path, 0o700); - return new PrivateRuntimeRoot(path); - } catch (cause: unknown) { - await rm(path, { recursive: true, force: true }); - throw cause; - } + // POSIX mkdtemp establishes owner-only access atomically. Return its owner + // without a fallible permission rewrite and rollback after allocation. + return new PrivateRuntimeRoot(path); } /** diff --git a/tests/boundary/process/providerProcess.test.ts b/tests/boundary/process/providerProcess.test.ts index 068f6becb..0f0d4e7ca 100644 --- a/tests/boundary/process/providerProcess.test.ts +++ b/tests/boundary/process/providerProcess.test.ts @@ -1,6 +1,7 @@ -import { access, stat } from "node:fs/promises"; +import { access, stat, writeFile } from "node:fs/promises"; import { tmpdir } from "node:os"; import { fileURLToPath } from "node:url"; +import { join } from "node:path"; import { afterEach, describe, expect, it, vi } from "vitest"; @@ -57,7 +58,8 @@ describe("provider process runtime and wait primitives", () => { parent: tmpdir(), prefix: "rea-provider-test-", }); - expect((await stat(runtime.path)).mode & 0o777).toBe(0o700); + expect((await stat(runtime.path)).mode & 0o077).toBe(0); + await writeFile(join(runtime.path, "owned-scratch"), "fixture"); const first = runtime.close(); const second = runtime.close(); From 621cee192d582c87ca3d254d4cb22c9d209d3aea Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Mon, 12 Oct 2026 03:36:58 -0700 Subject: [PATCH 39/44] test(mcp): ready providers before live prompt completion checks (#2137) 07b36c148 made document and procedure completion read only from an already-started provider client. Two checks still completed right after opening a target, so they observed an empty cold result: - promptCompletion.test.ts used a fixture client without executeIfReady and never ran an ordinary operation, so the composite provider had not created a client yet. - The packaged MCP smoke expected live completions on non-Linux hosts immediately after open_binary, before current_document started Hopper. Both now assert the cold result is empty, ready the provider through an ordinary operation, and then assert the unchanged live candidates. Fixes #2123 Co-authored-by: Claude Opus 5.5 --- scripts/verify-package-mcp.mjs | 8 +++----- tests/boundary/mcp/promptCompletion.test.ts | 18 +++++++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/scripts/verify-package-mcp.mjs b/scripts/verify-package-mcp.mjs index 0d03abab1..5f43bf9b2 100644 --- a/scripts/verify-package-mcp.mjs +++ b/scripts/verify-package-mcp.mjs @@ -121,11 +121,8 @@ const verifyMcpNonLinuxCurrentDocument = async ( const verifyMcpBinaryLifecycle = async (client, mcpOptions) => { await verifyMcpOpenAndBind(client, mcpOptions); - await prompts.verifyPromptCompletion( - client, - mcpOptions, - process.platform !== "linux", - ); + // Completion never starts a provider; only an ordinary operation readies it. + await prompts.verifyPromptCompletion(client, mcpOptions, false); if (process.platform === "linux") { await verifyMcpLinuxToolAvailability(client, mcpOptions); } else { @@ -133,6 +130,7 @@ const verifyMcpBinaryLifecycle = async (client, mcpOptions) => { { name: "current_document", arguments: {} }, mcpOptions, ); + await prompts.verifyPromptCompletion(client, mcpOptions, true); await verifyMcpNonLinuxCurrentDocument(client, mcpOptions, current); } const closed = await client.callTool( diff --git a/tests/boundary/mcp/promptCompletion.test.ts b/tests/boundary/mcp/promptCompletion.test.ts index d74deb86f..f09725e12 100644 --- a/tests/boundary/mcp/promptCompletion.test.ts +++ b/tests/boundary/mcp/promptCompletion.test.ts @@ -50,6 +50,9 @@ describe("guided prompt completion from live analysis", () => { expect((await session.open(target)).ok).toBe(true); const completion = createPromptCompletionSource(session, session); + // Completion never starts a provider; an ordinary operation readies it. + expect(await completion.complete("document", "app")).toEqual([]); + expect((await session.execute("list_documents", {})).ok).toBe(true); expect(await completion.complete("document", "app")).toEqual([ "App", "AppTests", @@ -269,8 +272,8 @@ const fixtureEnvironment = { const client = ( requests: Array>>, -): AnalysisClient => ({ - execute(operation, parameters) { +): AnalysisClient => { + const execute: AnalysisClient["execute"] = (operation, parameters) => { if (operation === "list_documents") return Promise.resolve(observed(["AppTests", "App", "App"])); if (operation === "list_procedures") { @@ -285,6 +288,11 @@ const client = ( ); } return Promise.resolve(observed(null)); - }, - close: () => Promise.resolve(resultOk(null)), -}); + }; + // An in-process fixture client is ready as soon as the session opens. + return { + execute, + executeIfReady: execute, + close: () => Promise.resolve(resultOk(null)), + }; +}; From abc8c6dadf4f11b67de1cc2ee96bb55047416d71 Mon Sep 17 00:00:00 2001 From: xin zhuang <65798732+1052326311@users.noreply.github.com> Date: Mon, 12 Oct 2026 18:39:01 +0800 Subject: [PATCH 40/44] fix(wasm): preserve leading BOM in custom section names (#2102) --- scripts/verify-wasm-artifact.mjs | 4 ++++ src/wasm/WabtOutput.test.ts | 15 ++++++++++++++- src/wasm/WabtWat.ts | 8 +++++--- tests/fixtures/wasm/README.md | 2 ++ tests/fixtures/wasm/custom-names.wat | 6 +++++- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/scripts/verify-wasm-artifact.mjs b/scripts/verify-wasm-artifact.mjs index b45c8ba7d..1f3bde2ca 100644 --- a/scripts/verify-wasm-artifact.mjs +++ b/scripts/verify-wasm-artifact.mjs @@ -248,6 +248,10 @@ try { '"fake"\nSection Details:\n Type start=0x0000000a end=0x0000000b (size=0x00000001) count: 0\n"end"', '"unicode-é\\\t"', '"visible"', + '"\uFEFFsection"', + '"\uFEFFname"', + '"\uFEFF"', + '""', ], ); if (debugNames) { diff --git a/src/wasm/WabtOutput.test.ts b/src/wasm/WabtOutput.test.ts index 8c58fc475..abd20d848 100644 --- a/src/wasm/WabtOutput.test.ts +++ b/src/wasm/WabtOutput.test.ts @@ -166,7 +166,7 @@ it("bounds section header bytes while accepting a five-byte size LEB", () => { "Sections:", "", " Type start=0x0000000a end=0x0000000b (size=0x00000001) count: 0", - ` Custom start=0x${start.toString(16).padStart(8, "0")} end=0x${(start + 1).toString(16).padStart(8, "0")} (size=0x00000001) "\"`, + ` Custom start=0x${start.toString(16).padStart(8, "0")} end=0x${(start + 1).toString(16).padStart(8, "0")} (size=0x00000001) ""`, "", "Section Details:", "", @@ -211,6 +211,19 @@ it("frames custom section names at their NUL-terminated objdump display", async /custom-section header/u, ); }); +it("preserves leading U+FEFF as custom-name data, not a debug-name marker", () => { + const parsed = parseWabtWat( + '(module (@custom "\\ef\\bb\\bfsection" "payload") (@custom "\\ef\\bb\\bfname" "payload") (@custom "\\ef\\bb\\bf" "payload") (@custom "" "payload"))', + ); + expect(parsed.customSectionNames).toEqual([ + "\uFEFFsection", + "\uFEFFname", + "\uFEFF", + "", + ]); + expect(parsed.debugModuleNames).toEqual([]); + expect(() => parseWabtWat('(module (@custom "\\ff" "payload"))')).toThrow(); +}); it("extracts escaped WAT import/export forms while retaining multiline producer text", async () => { const text = await readFile( new URL("../../tests/fixtures/wasm/decoded.wat", import.meta.url), diff --git a/src/wasm/WabtWat.ts b/src/wasm/WabtWat.ts index 61a7239a4..d766fe617 100644 --- a/src/wasm/WabtWat.ts +++ b/src/wasm/WabtWat.ts @@ -147,9 +147,11 @@ export const parseWabtWat = (text: string) => { if (prefix === null) throw new Error("Unsupported WABT custom-section name."); const nameString = watString(form, prefix[0].length); - const name = new TextDecoder("utf-8", { fatal: true }).decode( - nameString.bytes, - ); + // A WASM name is length-delimited UTF-8; leading U+FEFF is name data. + const name = new TextDecoder("utf-8", { + fatal: true, + ignoreBOM: true, + }).decode(nameString.bytes); customSectionNames.push(name); if (name === "name") { const payloadPrefix = /^\s+"/u.exec(form.slice(nameString.end)); diff --git a/tests/fixtures/wasm/README.md b/tests/fixtures/wasm/README.md index 1ab586d9c..9b433c038 100644 --- a/tests/fixtures/wasm/README.md +++ b/tests/fixtures/wasm/README.md @@ -12,3 +12,5 @@ WABT and compares exact producer output against the public CLI/MCP surfaces. `custom-names.wat` covers newlines, quotes, Unicode, backslashes, embedded section markers and NUL in custom names; objdump displays those names without escaping and ends each at its first NUL. +It also covers leading U+FEFF, including a name distinct from the special `name` +section, and distinguishes a U+FEFF-only name from an empty name. diff --git a/tests/fixtures/wasm/custom-names.wat b/tests/fixtures/wasm/custom-names.wat index 2231c040d..0a9756afc 100644 --- a/tests/fixtures/wasm/custom-names.wat +++ b/tests/fixtures/wasm/custom-names.wat @@ -2,4 +2,8 @@ (@custom "test\0aline" "payload") (@custom "fake\22\0aSection Details:\0a Type start=0x0000000a end=0x0000000b (size=0x00000001) count: 0\0a\22end" "payload") (@custom "unicode-\c3\a9\\\t" "payload") - (@custom "visible\00hidden" "payload")) + (@custom "visible\00hidden" "payload") + (@custom "\ef\bb\bfsection" "payload") + (@custom "\ef\bb\bfname" "payload") + (@custom "\ef\bb\bf" "payload") + (@custom "" "payload")) From fe4b94a661054cef7603a3f07aae71f1df0a701a Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 12 Oct 2026 18:42:56 +0800 Subject: [PATCH 41/44] test(mcp): align completion checks with provider readiness Exercise cold and warm completion through ordinary provider operations. Bind fixture observations to the selected analysis profile so the warm-up call satisfies session validation, and make package completion candidates explicit with useful failure diagnostics. --- scripts/verify-package-mcp.mjs | 8 +-- scripts/verify-package-prompts.mjs | 9 +-- tests/boundary/mcp/promptCompletion.test.ts | 62 +++++++++++++-------- 3 files changed, 48 insertions(+), 31 deletions(-) diff --git a/scripts/verify-package-mcp.mjs b/scripts/verify-package-mcp.mjs index 5f43bf9b2..fda067dbe 100644 --- a/scripts/verify-package-mcp.mjs +++ b/scripts/verify-package-mcp.mjs @@ -20,7 +20,7 @@ const execute = promisify(execFile); const verifyMcpToolsAndPrompts = async (client, mcpOptions) => { await verifyCompleteToolCatalog(client, mcpOptions); await prompts.verifyPromptCatalog(client, mcpOptions, prompts.names); - await prompts.verifyPromptCompletion(client, mcpOptions, false); + await prompts.verifyPromptCompletion(client, mcpOptions, []); }; const verifyMcpTargetFree = async (client, mcpOptions) => { @@ -122,7 +122,7 @@ const verifyMcpNonLinuxCurrentDocument = async ( const verifyMcpBinaryLifecycle = async (client, mcpOptions) => { await verifyMcpOpenAndBind(client, mcpOptions); // Completion never starts a provider; only an ordinary operation readies it. - await prompts.verifyPromptCompletion(client, mcpOptions, false); + await prompts.verifyPromptCompletion(client, mcpOptions, []); if (process.platform === "linux") { await verifyMcpLinuxToolAvailability(client, mcpOptions); } else { @@ -130,8 +130,8 @@ const verifyMcpBinaryLifecycle = async (client, mcpOptions) => { { name: "current_document", arguments: {} }, mcpOptions, ); - await prompts.verifyPromptCompletion(client, mcpOptions, true); await verifyMcpNonLinuxCurrentDocument(client, mcpOptions, current); + await prompts.verifyPromptCompletion(client, mcpOptions, ["fixture"]); } const closed = await client.callTool( { name: "close_binary", arguments: {} }, @@ -139,7 +139,7 @@ const verifyMcpBinaryLifecycle = async (client, mcpOptions) => { ); if (closed.isError === true) throw new Error("packaged MCP could not close its binary"); - await prompts.verifyPromptCompletion(client, mcpOptions, false); + await prompts.verifyPromptCompletion(client, mcpOptions, []); }; const verifyMcpEvidenceBundle = async (client, mcpOptions, evidenceRoot) => { diff --git a/scripts/verify-package-prompts.mjs b/scripts/verify-package-prompts.mjs index 079f925ba..9adff0179 100644 --- a/scripts/verify-package-prompts.mjs +++ b/scripts/verify-package-prompts.mjs @@ -36,9 +36,8 @@ export const verifyPromptCatalog = async (client, options, expectedNames) => { throw new Error("packaged MCP guided prompt rendering failed"); }; -/** Verify live completion through each installed stdio target state. */ -export const verifyPromptCompletion = async (client, options, targetOpen) => { - const expected = targetOpen ? ["fixture"] : []; +/** Verify completion candidates for the installed provider readiness state. */ +export const verifyPromptCompletion = async (client, options, expected) => { const requests = [ { ref: { type: "ref/prompt", name: "investigate_feature" }, @@ -57,6 +56,8 @@ export const verifyPromptCompletion = async (client, options, targetOpen) => { result.completion.total !== expected.length || result.completion.hasMore !== false ) - throw new Error("packaged MCP prompt completion lifecycle failed"); + throw new Error( + `packaged MCP ${request.argument.name} completion mismatch: expected ${JSON.stringify(expected)}, received ${JSON.stringify(result.completion)}`, + ); } }; diff --git a/tests/boundary/mcp/promptCompletion.test.ts b/tests/boundary/mcp/promptCompletion.test.ts index f09725e12..009ed7ad8 100644 --- a/tests/boundary/mcp/promptCompletion.test.ts +++ b/tests/boundary/mcp/promptCompletion.test.ts @@ -5,7 +5,11 @@ import { afterEach, describe, expect, it } from "vitest"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; -import type { AnalysisClient } from "../../../src/application/AnalysisProvider.js"; +import { + createAnalysisExecution, + type AnalysisClient, +} from "../../../src/application/AnalysisProvider.js"; +import type { AnalysisProfileCommitment } from "../../../src/domain/analysisProfile.js"; import { createTestBinarySession } from "../../fixtures/binarySession.js"; import { ARTIFACT_COMPARISON_EXAMPLE } from "../../../src/contracts/artifactComparisonExample.js"; import { PROCESS_CAPTURE_REFERENCE } from "../../../src/contracts/investigationExamples.js"; @@ -29,30 +33,34 @@ afterEach(async () => { describe("guided prompt completion from live analysis", () => { it("reads live documents and complete procedures without ambiguous names", async () => { const requests: Array>> = []; - const session = createTestBinarySession(() => client(requests), { - resolveAnalysisProfile: () => - Promise.resolve( - resultOk({ - profile: createAnalysisProfile( - { - id: "fixture", - name: "Fixture analysis provider", - version: "1", - }, - { fixture: true }, - ), - }), - ), - }); + const session = createTestBinarySession( + (_target, profile) => client(requests, profile), + { + resolveAnalysisProfile: () => + Promise.resolve( + resultOk({ + profile: createAnalysisProfile( + { + id: "fixture", + name: "Fixture analysis provider", + version: "1", + }, + { fixture: true }, + ), + }), + ), + }, + ); directory = await createTestTempDirectory("rea-prompt-completion-"); const target = join(directory, "fixture.hop"); await writeFile(target, "fixture"); expect((await session.open(target)).ok).toBe(true); const completion = createPromptCompletionSource(session, session); - - // Completion never starts a provider; an ordinary operation readies it. expect(await completion.complete("document", "app")).toEqual([]); - expect((await session.execute("list_documents", {})).ok).toBe(true); + expect(await completion.complete("procedure", "")).toEqual([]); + const warmed = await session.execute("list_documents", {}); + if (!warmed.ok) throw warmed.error; + expect(await completion.complete("document", "app")).toEqual([ "App", "AppTests", @@ -272,14 +280,23 @@ const fixtureEnvironment = { const client = ( requests: Array>>, + analysisProfile?: AnalysisProfileCommitment, ): AnalysisClient => { + const observe = (value: unknown) => + resultOk( + createAnalysisExecution( + value, + analysisProfile?.provider ?? fixtureProvider, + analysisProfile === undefined ? {} : { analysisProfile }, + ), + ); const execute: AnalysisClient["execute"] = (operation, parameters) => { if (operation === "list_documents") - return Promise.resolve(observed(["AppTests", "App", "App"])); + return Promise.resolve(observe(["AppTests", "App", "App"])); if (operation === "list_procedures") { requests.push(parameters); return Promise.resolve( - observed([ + observe([ { address: "0x1000", value: "duplicate" }, { address: "0x2000", value: "unique" }, { address: "0x3000", value: "duplicate" }, @@ -287,9 +304,8 @@ const client = ( ]), ); } - return Promise.resolve(observed(null)); + return Promise.resolve(observe(null)); }; - // An in-process fixture client is ready as soon as the session opens. return { execute, executeIfReady: execute, From 672bdea21fd943688e081d209a993e234c45507f Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Mon, 12 Oct 2026 04:09:53 -0700 Subject: [PATCH 42/44] fix(target): recognize binary plists by magic under any extension (#2133) Target resolution admitted a property list only when its name ended in .plist, so keyed archives with other extensions (for example .archive) were rejected as an unsupported binary format before any plist tool ran. Classify bplist00 bytes as a plist, as the artifact inventory already does. Fixes #2129 Co-authored-by: Claude Opus 5.5 --- src/application/BinaryTargetResolver.ts | 3 +++ tests/boundary/filesystem/binaryTarget.test.ts | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/application/BinaryTargetResolver.ts b/src/application/BinaryTargetResolver.ts index 7dfb7ce76..cbccb0418 100644 --- a/src/application/BinaryTargetResolver.ts +++ b/src/application/BinaryTargetResolver.ts @@ -294,6 +294,9 @@ const detectArtifactFormat = async ( if (lower.endsWith(".app")) return "app-pack"; return zipPackageFormatForPath(lower) ?? "zip"; } + // Binary plists, including keyed archives, often use other extensions. + if (observed.bytesRead === 8 && magic.equals(Buffer.from("bplist00"))) + return "plist"; const named = namedArtifactFormat(lower); if (named !== undefined) return named; if ( diff --git a/tests/boundary/filesystem/binaryTarget.test.ts b/tests/boundary/filesystem/binaryTarget.test.ts index 3ab9bdd27..0aae910e8 100644 --- a/tests/boundary/filesystem/binaryTarget.test.ts +++ b/tests/boundary/filesystem/binaryTarget.test.ts @@ -245,6 +245,17 @@ describe("binary target I/O: package classification", () => { }); }); + it("classifies a binary plist by its magic under any extension", async () => { + const directory = await createTestTempDirectory("rea-bplist-target-"); + const path = join(directory, "Model.archive"); + await writeFile(path, buildBinary({ $archiver: "NSKeyedArchiver" })); + const result = await parseBinaryTarget(path); + expect(result.ok && result.value).toMatchObject({ + kind: "artifact", + format: "plist", + }); + }); + it("does not trust a ZIP-family extension without ZIP magic", async () => { const directory = await createTestTempDirectory("rea-fake-archive-"); const path = join(directory, "fake.zip"); From 60259a91d9a58cbd313ad7f3d321acc2deb65d2e Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Mon, 12 Oct 2026 04:26:32 -0700 Subject: [PATCH 43/44] fix(managed): validate CLI type selections with the member contract (#2125) `inspect-managed-members --type` accepted repeated and empty names that the MCP contract rejects. The provider's contract parse then threw, and the CLI reported execution_failure with advice to run `rea doctor`. Reuse the contract's type_names schema so the CLI rejects them as a validation error on --type. Fixes #2121 Co-authored-by: Claude Opus 5.5 --- src/cli/managedCommands.ts | 10 +++---- tests/acceptance/managedCliOutput.test.ts | 32 +++++++++++++++++++++++ 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/cli/managedCommands.ts b/src/cli/managedCommands.ts index f922b9532..eee4eae5a 100644 --- a/src/cli/managedCommands.ts +++ b/src/cli/managedCommands.ts @@ -16,6 +16,7 @@ import { logCliCommand } from "../cliLogging.js"; import type { Logger } from "pino"; import type { CliInstance } from "./types.js"; import { registerProjectManagedApplicationGraph } from "./managedProjectGraphCommand.js"; +import { managedMembersInputSchema } from "../contracts/managed/managedToolContracts.js"; export const registerManagedCommands = ( cli: CliInstance, @@ -60,12 +61,9 @@ const registerInspectManagedMembers = ( path: z.string().describe("Managed PE executable or assembly path"), }), options: z.object({ - type: z - .array(z.string()) - .optional() - .describe( - "Inspect only members declared by this exact type full name, such as System.Threading.Monitor; a nested type is named by its bare name, which selects every nested type of that name (repeatable)", - ), + type: managedMembersInputSchema.shape.type_names.describe( + "Inspect only members declared by this exact type full name, such as System.Threading.Monitor; a nested type is named by its bare name, which selects every nested type of that name (repeatable)", + ), }), run: ({ args, options }) => logCliCommand(logger, "inspect-managed-members", () => diff --git a/tests/acceptance/managedCliOutput.test.ts b/tests/acceptance/managedCliOutput.test.ts index d8a4bb998..a24020d60 100644 --- a/tests/acceptance/managedCliOutput.test.ts +++ b/tests/acceptance/managedCliOutput.test.ts @@ -177,6 +177,38 @@ cliTest( }, ); +cliTest( + "managed CLI rejects repeated or empty type selections as invalid input", + async ({ cli }) => { + const root = await createTestTempDirectory("rea-managed-cli-types-"); + const path = join(root, "fixture.dll"); + await writeFile(path, buildManagedPeFixture()); + for (const [types, message] of [ + [["Fixture.Empty0", "Fixture.Empty0"], "must not repeat a name"], + [[""], ">=1 characters"], + ] as const) { + const result = await cli.run({ + arguments: [ + "inspect-managed-members", + path, + ...types.flatMap((type) => ["--type", type]), + "--json", + ], + }); + expect(result.exitCode).toBe(1); + expect(result.json).toMatchObject({ + code: "VALIDATION_ERROR", + fieldErrors: [ + expect.objectContaining({ + path: expect.stringMatching(/^type/u), + message: expect.stringContaining(message), + }), + ], + }); + } + }, +); + cliTest( "managed CLI bounds CIL claims by section virtual ranges", async ({ cli }) => { From 5190843f8f09ac17cbf79561bd1f708c509cda78 Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Mon, 12 Oct 2026 04:55:15 -0700 Subject: [PATCH 44/44] fix(setup): name each skill directory in the uninstall summary (#2118) Uninstall checks every skill destination but labeled each result only as "skill" (or "Claude Code skill"), so a retained or failed destination could not be located. Label each result with the directory it refers to. Fixes #2111 Co-authored-by: Claude Opus 5.5 --- src/application/Uninstall.ts | 11 ++---- .../cli/clientProfileLifecycle.test.ts | 37 +++++++++++++++++++ 2 files changed, 41 insertions(+), 7 deletions(-) diff --git a/src/application/Uninstall.ts b/src/application/Uninstall.ts index 9880c8cb9..6822460bb 100644 --- a/src/application/Uninstall.ts +++ b/src/application/Uninstall.ts @@ -504,14 +504,11 @@ const removeManagedSkills = async ( environment: Readonly, platform: NodeJS.Platform, ): Promise => { + // Every destination shares one summary item, so each result is labeled by + // the directory it refers to. const results = await Promise.all( - skillDestinations(home, undefined, environment, platform).map( - ({ client, path }) => - removeManagedSkill( - path, - client === "claude_code" ? "Claude Code skill" : "skill", - fileSystem, - ), + skillDestinations(home, undefined, environment, platform).map(({ path }) => + removeManagedSkill(path, path, fileSystem), ), ); const failed = results.find(({ status }) => status === "failed"); diff --git a/tests/boundary/cli/clientProfileLifecycle.test.ts b/tests/boundary/cli/clientProfileLifecycle.test.ts index 531e6378a..4fd566fd7 100644 --- a/tests/boundary/cli/clientProfileLifecycle.test.ts +++ b/tests/boundary/cli/clientProfileLifecycle.test.ts @@ -9,6 +9,7 @@ import { } from "node:fs/promises"; import { join } from "node:path"; import { expect } from "vitest"; +import { PRODUCT_IDENTITY } from "../../../src/identity.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { cliTest } from "../../support/cli/cliFixture.js"; @@ -259,3 +260,39 @@ for (const group of groups) { }, ); } + +cliTest("uninstall names each retained skill directory", async ({ cli }) => { + const home = await createTestTempDirectory("rea-uninstall-skill-paths-"); + const shared = join(home, ".agents", "skills", PRODUCT_IDENTITY.skillName); + const claude = join(home, ".claude", "skills", PRODUCT_IDENTITY.skillName); + for (const directory of [shared, claude]) { + await mkdir(directory, { recursive: true }); + await writeFile(join(directory, "SKILL.md"), "---\nname: unrelated\n---\n"); + } + + const result = await cli.run({ + arguments: ["uninstall", "--json"], + cwd: home, + environment: { + HOME: home, + USERPROFILE: home, + CLAUDE_CONFIG_DIR: join(home, ".claude"), + }, + timeoutMs: 20_000, + }); + + expect(result.exitCode, result.stderr).toBe(0); + const report = result.json as { + items?: readonly { name: string; status: string; detail: string }[]; + }; + const skill = report.items?.find(({ name }) => name === "skill"); + expect(skill?.status).toBe("retained"); + for (const directory of [shared, claude]) { + expect(skill?.detail).toContain( + `${directory}: retained (Skill manifest is not REA-owned.)`, + ); + expect(await readFile(join(directory, "SKILL.md"), "utf8")).toBe( + "---\nname: unrelated\n---\n", + ); + } +});