refactor: remove forwarding exports and redundant aliases

This commit is contained in:
morluto
2026-10-09 22:46:09 +08:00
parent 69c3b32a21
commit ad59531a96
416 changed files with 855 additions and 1208 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ import {
artifactExtractionExecutionSchema,
type ArtifactAnalysisOperation,
} from "../contracts/artifactToolContracts.js";
import type { BinaryTarget } from "../domain/binaryTarget.js";
import type { BinaryTarget } from "../domain/binaryTargetTypes.js";
import {
AnalysisCapabilityUnavailableError,
AnalysisInputError,
@@ -25,7 +25,7 @@ import {
type ArtifactOccurrence,
} from "../../domain/artifactGraph.js";
import { AnalysisUnsupportedTargetError } from "../../domain/analysisErrorCore.js";
import type { BinaryTarget } from "../../domain/binaryTarget.js";
import type { BinaryTarget } from "../../domain/binaryTargetTypes.js";
import { scanArtifactInventory } from "../inventory/ArtifactInventory.js";
/** Local extraction input with the output root chosen by the adapter. */
+2 -11
View File
@@ -6,17 +6,8 @@ import {
} from "../../domain/artifactGraph.js";
import { abortIfNeeded } from "../ArtifactHash.js";
import { scanCanonicalArtifactInventory } from "./scanCanonical.js";
import type {
ArtifactInventoryOptions,
ArtifactInventorySnapshot,
} from "./types.js";
export { scanCanonicalArtifactInventory } from "./scanCanonical.js";
export type {
ArtifactInventoryOptions,
ArtifactInventorySnapshot,
} from "./types.js";
import type { ArtifactInventoryOptions } from "./types.js";
import type { ArtifactInventorySnapshot } from "../../domain/artifactInventorySnapshot.js";
/** Inventory one local artifact and return every graph collection inline. */
export const inventoryArtifact = async (
+1 -1
View File
@@ -1,3 +1,4 @@
import type { ArtifactInventorySnapshot } from "../../domain/artifactInventorySnapshot.js";
import { compareCodePoints } from "../../domain/canonicalOrdering.js";
import { createReadStream } from "node:fs";
@@ -39,7 +40,6 @@ import {
import {
STRICT_INTEGRITY_POLICY,
type ArtifactInventoryOptions,
type ArtifactInventorySnapshot,
} from "./types.js";
export const scanCanonicalArtifactInventory = async (
-2
View File
@@ -13,5 +13,3 @@ export interface ArtifactInventoryOptions {
readonly integrity?: ArtifactIntegrityPolicy | undefined;
readonly environment?: Readonly<NodeJS.ProcessEnv> | undefined;
}
export type { ArtifactInventorySnapshot } from "../../domain/artifactInventorySnapshot.js";