refactor: remove forwarding exports and redundant aliases
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { createHash } from "node:crypto";
|
||||
|
||||
import type { BrowserScenario } from "../domain/browserScenario.js";
|
||||
import type {
|
||||
BrowserScenario,
|
||||
BrowserScenarioUrl,
|
||||
BrowserScenarioValue,
|
||||
} from "../domain/browserScenario.js";
|
||||
} from "../domain/browserScenarioValues.js";
|
||||
import {
|
||||
sanitizeBrowserUrl,
|
||||
type SanitizedBrowserUrl,
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import type {
|
||||
BrowserScenario,
|
||||
BrowserScenarioAction,
|
||||
} from "../domain/browserScenario.js";
|
||||
import type { BrowserScenario } from "../domain/browserScenario.js";
|
||||
import type { BrowserScenarioAction } from "../domain/browserScenarioValues.js";
|
||||
import type {
|
||||
BrowserScenarioEvent,
|
||||
BrowserStepArtifacts,
|
||||
} from "../domain/browserScenarioCapture.js";
|
||||
} from "../domain/browserScenarioCaptureValues.js";
|
||||
import type { SanitizedBrowserUrl } from "../domain/browserObservation.js";
|
||||
|
||||
type SnapshotKind = BrowserScenario["capture"]["after_each_step"][number];
|
||||
|
||||
@@ -2,14 +2,16 @@ import type { BrowserObservationPort } from "../application/BrowserObservationPo
|
||||
import type { ProviderIdentity } from "../application/AnalysisProvider.js";
|
||||
import type { ExecutionOptions } from "../application/AnalysisProvider.js";
|
||||
import {
|
||||
browserTargetListSchema,
|
||||
sanitizeBrowserUrl,
|
||||
webPageInspectionSchema,
|
||||
type BrowserTargetList,
|
||||
type InspectWebPageInput,
|
||||
type ListBrowserTargetsInput,
|
||||
type WebPageInspection,
|
||||
} from "../domain/browserObservation.js";
|
||||
import {
|
||||
browserTargetListSchema,
|
||||
webPageInspectionSchema,
|
||||
type BrowserTargetList,
|
||||
type WebPageInspection,
|
||||
} from "../domain/browserObservationSchemas.js";
|
||||
import { analyzeCapturedWebBundle } from "../domain/webBundleAnalyzer.js";
|
||||
import {
|
||||
webBundleAnalysisSchema,
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import type {
|
||||
InspectWebPageInput,
|
||||
WebPageInspection,
|
||||
} from "../domain/browserObservation.js";
|
||||
import type { InspectWebPageInput } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import {
|
||||
allowedSanitizedUrl,
|
||||
numberValue,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { WebPageInspection } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import { inferJsonShape } from "../domain/jsonShape.js";
|
||||
import { safeResponseMetadata } from "./CdpSafeMetadata.js";
|
||||
import {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import type {
|
||||
InspectWebPageInput,
|
||||
WebPageInspection,
|
||||
} from "../domain/browserObservation.js";
|
||||
import type { InspectWebPageInput } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import type { CdpCaptureCompleteness } from "./CdpCaptureCompleteness.js";
|
||||
import type { CapturedScript, NetworkState } from "./CdpCaptureEventTypes.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { WebPageInspection } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
|
||||
export interface CapturedScript {
|
||||
readonly scriptId: string;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import type {
|
||||
InspectWebPageInput,
|
||||
WebPageInspection,
|
||||
} from "../domain/browserObservation.js";
|
||||
import type { InspectWebPageInput } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import type { CdpEvent } from "./CdpConnection.js";
|
||||
import { CdpCaptureCompleteness } from "./CdpCaptureCompleteness.js";
|
||||
import * as bodyShapes from "./CdpCaptureEventBodyShapes.js";
|
||||
@@ -11,8 +9,6 @@ import * as handlers from "./CdpCaptureEventHandlers.js";
|
||||
import { isJsonMediaType } from "./CdpCaptureEventHelpers.js";
|
||||
import { recordValue } from "./CdpCaptureValues.js";
|
||||
|
||||
export { type CapturedScript } from "./CdpCaptureEventTypes.js";
|
||||
|
||||
/** Event accumulator that validates and normalizes payloads at ingestion. */
|
||||
export class CdpCaptureEvents implements CdpCaptureEventsState {
|
||||
#scriptMetadataBudgetExclusionsRecorded = false;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import type {
|
||||
InspectWebPageInput,
|
||||
WebPageInspection,
|
||||
} from "../domain/browserObservation.js";
|
||||
import type { InspectWebPageInput } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import { CdpConnection } from "./CdpConnection.js";
|
||||
import { optionalCdpCommand } from "./CdpOptionalCommand.js";
|
||||
import {
|
||||
|
||||
@@ -2,10 +2,8 @@ import { createHash } from "node:crypto";
|
||||
|
||||
import canonicalize from "canonicalize";
|
||||
|
||||
import type {
|
||||
InspectWebPageInput,
|
||||
WebPageInspection,
|
||||
} from "../domain/browserObservation.js";
|
||||
import type { InspectWebPageInput } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import { compareCodePoints } from "../domain/canonicalOrdering.js";
|
||||
import { CdpConnection } from "./CdpConnection.js";
|
||||
import { optionalCdpCommand } from "./CdpOptionalCommand.js";
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import type {
|
||||
InspectWebPageInput,
|
||||
WebPageInspection,
|
||||
} from "../domain/browserObservation.js";
|
||||
import type { InspectWebPageInput } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import type { ProgressReporter } from "../application/ProgressReporter.js";
|
||||
import { BrowserObservationError } from "../domain/browserObservationError.js";
|
||||
import { type BrowserObservationOperation } from "../domain/browserObservationErrors.js";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { WebPageInspection } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import {
|
||||
reconcileCapturedWebScript,
|
||||
stableWebScriptKey,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { WebPageInspection } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import type { CdpCaptureEvents } from "./CdpCaptureEvents.js";
|
||||
import {
|
||||
allowedSanitizedUrl,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { WebPageInspection } from "../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
||||
import { sanitizeBrowserUrl } from "../domain/browserObservation.js";
|
||||
import {
|
||||
numberValue,
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { Locator, Page } from "playwright-core";
|
||||
import type {
|
||||
BrowserScenarioAction,
|
||||
BrowserScenarioValue,
|
||||
} from "../domain/browserScenario.js";
|
||||
} from "../domain/browserScenarioValues.js";
|
||||
import type { BrowserScenarioSecrets } from "./BrowserScenarioSecrets.js";
|
||||
|
||||
type ScenarioLocator = Extract<
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { BrowserScenario } from "../domain/browserScenario.js";
|
||||
import {
|
||||
browserStepArtifactsSchema,
|
||||
type BrowserStepArtifacts,
|
||||
} from "../domain/browserScenarioCapture.js";
|
||||
} from "../domain/browserScenarioCaptureValues.js";
|
||||
import type { BrowserScenarioSecrets } from "./BrowserScenarioSecrets.js";
|
||||
|
||||
const historyValueSchema = z.strictObject({
|
||||
|
||||
@@ -14,7 +14,7 @@ import type { SanitizedBrowserUrl } from "../domain/browserObservation.js";
|
||||
import {
|
||||
browserScenarioEventSchema,
|
||||
type BrowserScenarioEvent,
|
||||
} from "../domain/browserScenarioCapture.js";
|
||||
} from "../domain/browserScenarioCaptureValues.js";
|
||||
import type { BrowserScenarioSecrets } from "./BrowserScenarioSecrets.js";
|
||||
import type { BrowserNetworkContentSelection } from "../domain/browserNetworkEvidence.js";
|
||||
import { PlaywrightScenarioNetwork } from "./network/PlaywrightScenarioNetwork.js";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { WebPageInspection } from "../../domain/browserObservation.js";
|
||||
import type { WebPageInspection } from "../../domain/browserObservationSchemas.js";
|
||||
import type { CapturedWebScript } from "../../domain/webScriptExport.js";
|
||||
|
||||
/** Project verified Debugger sources without fetching resource URLs. */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { webPageInspectionSchema } from "../../domain/browserObservation.js";
|
||||
import { webPageInspectionSchema } from "../../domain/browserObservationSchemas.js";
|
||||
import { browserScenarioCaptureSchema } from "../../domain/browserScenarioCapture.js";
|
||||
import { parseEvidence } from "../../domain/evidence.js";
|
||||
import type {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { browserScenarioSchema } from "../../domain/browserScenario.js";
|
||||
import {
|
||||
browserScenarioEventSchema,
|
||||
type BrowserScenarioEvent,
|
||||
} from "../../domain/browserScenarioCapture.js";
|
||||
} from "../../domain/browserScenarioCaptureValues.js";
|
||||
import type { BrowserNetworkContentSelection } from "../../domain/browserNetworkEvidence.js";
|
||||
import { BrowserScenarioSecrets } from "../BrowserScenarioSecrets.js";
|
||||
import {
|
||||
|
||||
@@ -2,7 +2,7 @@ import type {
|
||||
BrowserNetworkBody,
|
||||
BrowserNetworkContentSelection,
|
||||
} from "../../domain/browserNetworkEvidence.js";
|
||||
import type { BrowserScenarioEvent } from "../../domain/browserScenarioCapture.js";
|
||||
import type { BrowserScenarioEvent } from "../../domain/browserScenarioCaptureValues.js";
|
||||
import type { BrowserScenarioSecrets } from "../BrowserScenarioSecrets.js";
|
||||
import {
|
||||
captureNetworkBody,
|
||||
|
||||
Reference in New Issue
Block a user