@agent-teams/engineering-foundation 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-public-api-audit.d.ts +4 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-public-api-audit.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-public-api-audit.js +13 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/configuration/load-public-api-audit.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.d.ts +17 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.js +139 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/audit-compiler-bindings.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.d.ts +7 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.js +14 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/load-pinned-audit-sdk.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js +10 -43
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.d.ts +6 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.js +497 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.d.ts +101 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.js +2 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/pinned-audit-compiler.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.d.ts +15 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.js +47 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/prepare-public-api-extractor.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-audit-inputs.d.ts +43 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-audit-inputs.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-audit-inputs.js +239 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-audit-inputs.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/stage-public-api-audit.d.ts +12 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/stage-public-api-audit.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/stage-public-api-audit.js +169 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/stage-public-api-audit.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/api.d.ts +3 -0
- package/dist/capabilities/public-api-compatibility/api.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/api.js +2 -0
- package/dist/capabilities/public-api-compatibility/api.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-audit-report.d.ts +36 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-audit-report.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-audit-report.js +2 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-audit-report.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-observation.d.ts +73 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-observation.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-observation.js +5 -0
- package/dist/capabilities/public-api-compatibility/application/model/public-api-observation.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/project-public-api-observation.d.ts +33 -0
- package/dist/capabilities/public-api-compatibility/application/policies/project-public-api-observation.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/project-public-api-observation.js +110 -0
- package/dist/capabilities/public-api-compatibility/application/policies/project-public-api-observation.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/public-api-audit-eligibility.d.ts +9 -0
- package/dist/capabilities/public-api-compatibility/application/policies/public-api-audit-eligibility.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/public-api-audit-eligibility.js +180 -0
- package/dist/capabilities/public-api-compatibility/application/policies/public-api-audit-eligibility.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-observer.d.ts +29 -0
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-observer.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-observer.js +2 -0
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-observer.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/audit-public-api.d.ts +14 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/audit-public-api.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/audit-public-api.js +144 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/audit-public-api.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/contract/public-api-audit.d.ts +58 -0
- package/dist/capabilities/public-api-compatibility/contract/public-api-audit.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/contract/public-api-audit.js +2 -0
- package/dist/capabilities/public-api-compatibility/contract/public-api-audit.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/node.d.ts +3 -0
- package/dist/capabilities/public-api-compatibility/node.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/node.js +2 -0
- package/dist/capabilities/public-api-compatibility/node.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/schemas.d.ts +1 -1
- package/dist/capabilities/public-api-compatibility/schemas.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/schemas.js +2 -0
- package/dist/capabilities/public-api-compatibility/schemas.js.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/inbound/configuration/load-capability-config.d.ts +1 -0
- package/dist/capabilities/source-dependencies/adapters/inbound/configuration/load-capability-config.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/inbound/configuration/load-capability-config.js +3 -0
- package/dist/capabilities/source-dependencies/adapters/inbound/configuration/load-capability-config.js.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.d.ts +2 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.js +5 -4
- package/dist/capabilities/source-dependencies/adapters/outbound/node/selected-package-source-discovery.js.map +1 -1
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-census-reader.d.ts +3 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-census-reader.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-census-reader.js +32 -0
- package/dist/capabilities/source-dependencies/adapters/outbound/node/source-census-reader.js.map +1 -0
- package/dist/capabilities/source-dependencies/api.d.ts +1 -0
- package/dist/capabilities/source-dependencies/api.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/api.js.map +1 -1
- package/dist/capabilities/source-dependencies/application/ports/source-census-reader.d.ts +13 -0
- package/dist/capabilities/source-dependencies/application/ports/source-census-reader.d.ts.map +1 -0
- package/dist/capabilities/source-dependencies/application/ports/source-census-reader.js +2 -0
- package/dist/capabilities/source-dependencies/application/ports/source-census-reader.js.map +1 -0
- package/dist/capabilities/source-dependencies/module.d.ts +2 -0
- package/dist/capabilities/source-dependencies/module.d.ts.map +1 -1
- package/dist/capabilities/source-dependencies/module.js +2 -0
- package/dist/capabilities/source-dependencies/module.js.map +1 -1
- package/dist/capabilities/suppression-governance/adapters/inbound/configuration/load-capability-config.d.ts +1 -0
- package/dist/capabilities/suppression-governance/adapters/inbound/configuration/load-capability-config.d.ts.map +1 -1
- package/dist/capabilities/suppression-governance/adapters/inbound/configuration/load-capability-config.js +3 -0
- package/dist/capabilities/suppression-governance/adapters/inbound/configuration/load-capability-config.js.map +1 -1
- package/dist/capabilities/suppression-governance/adapters/outbound/oxc/oxc-suppression-scanner.d.ts.map +1 -1
- package/dist/capabilities/suppression-governance/adapters/outbound/oxc/oxc-suppression-scanner.js +5 -1
- package/dist/capabilities/suppression-governance/adapters/outbound/oxc/oxc-suppression-scanner.js.map +1 -1
- package/dist/capabilities/suppression-governance/module.d.ts +1 -0
- package/dist/capabilities/suppression-governance/module.d.ts.map +1 -1
- package/dist/capabilities/suppression-governance/module.js +1 -0
- package/dist/capabilities/suppression-governance/module.js.map +1 -1
- package/dist/composition/capability-modules.d.ts.map +1 -1
- package/dist/composition/capability-modules.js +3 -0
- package/dist/composition/capability-modules.js.map +1 -1
- package/dist/composition/command-host.d.ts.map +1 -1
- package/dist/composition/command-host.js +2 -1
- package/dist/composition/command-host.js.map +1 -1
- package/dist/composition/quality-coverage.d.ts +6 -0
- package/dist/composition/quality-coverage.d.ts.map +1 -0
- package/dist/composition/quality-coverage.js +25 -0
- package/dist/composition/quality-coverage.js.map +1 -0
- package/dist/features/command-host/adapters/inbound/cli/cli-arguments.d.ts.map +1 -1
- package/dist/features/command-host/adapters/inbound/cli/cli-arguments.js +17 -2
- package/dist/features/command-host/adapters/inbound/cli/cli-arguments.js.map +1 -1
- package/dist/features/command-host/adapters/inbound/cli/foundation-cli.d.ts.map +1 -1
- package/dist/features/command-host/adapters/inbound/cli/foundation-cli.js +38 -1
- package/dist/features/command-host/adapters/inbound/cli/foundation-cli.js.map +1 -1
- package/dist/features/command-host/application/command-invocation.d.ts +1 -0
- package/dist/features/command-host/application/command-invocation.d.ts.map +1 -1
- package/dist/features/command-host/application/command-invocation.js.map +1 -1
- package/dist/features/command-host/application/command-reporting.d.ts +2 -2
- package/dist/features/command-host/application/command-reporting.d.ts.map +1 -1
- package/dist/features/command-host/application/command-reporting.js +4 -1
- package/dist/features/command-host/application/command-reporting.js.map +1 -1
- package/dist/features/command-host/application/command-services.d.ts +10 -1
- package/dist/features/command-host/application/command-services.d.ts.map +1 -1
- package/dist/features/command-host/composition/node-command-host.d.ts +4 -1
- package/dist/features/command-host/composition/node-command-host.d.ts.map +1 -1
- package/dist/features/command-host/composition/node-command-host.js +3 -0
- package/dist/features/command-host/composition/node-command-host.js.map +1 -1
- package/dist/features/foundation-check/adapters/inbound/config/foundation-config-reader.d.ts.map +1 -1
- package/dist/features/foundation-check/adapters/inbound/config/foundation-config-reader.js +2 -1
- package/dist/features/foundation-check/adapters/inbound/config/foundation-config-reader.js.map +1 -1
- package/dist/features/foundation-check/application/ports/foundation-config-input.d.ts +1 -1
- package/dist/features/foundation-check/application/ports/foundation-config-input.d.ts.map +1 -1
- package/dist/features/foundation-check/schemas.d.ts +1 -1
- package/dist/features/foundation-check/schemas.d.ts.map +1 -1
- package/dist/features/foundation-check/schemas.js +2 -1
- package/dist/features/foundation-check/schemas.js.map +1 -1
- package/dist/features/quality-coverage/adapters/configuration.d.ts +3 -0
- package/dist/features/quality-coverage/adapters/configuration.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/configuration.js +4 -0
- package/dist/features/quality-coverage/adapters/configuration.js.map +1 -0
- package/dist/features/quality-coverage/adapters/consumer-execution.d.ts +12 -0
- package/dist/features/quality-coverage/adapters/consumer-execution.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/consumer-execution.js +35 -0
- package/dist/features/quality-coverage/adapters/consumer-execution.js.map +1 -0
- package/dist/features/quality-coverage/adapters/consumer-observations.d.ts +8 -0
- package/dist/features/quality-coverage/adapters/consumer-observations.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/consumer-observations.js +93 -0
- package/dist/features/quality-coverage/adapters/consumer-observations.js.map +1 -0
- package/dist/features/quality-coverage/adapters/consumer-toolchain.d.ts +13 -0
- package/dist/features/quality-coverage/adapters/consumer-toolchain.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/consumer-toolchain.js +84 -0
- package/dist/features/quality-coverage/adapters/consumer-toolchain.js.map +1 -0
- package/dist/features/quality-coverage/adapters/oxlint-output.d.ts +8 -0
- package/dist/features/quality-coverage/adapters/oxlint-output.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/oxlint-output.js +53 -0
- package/dist/features/quality-coverage/adapters/oxlint-output.js.map +1 -0
- package/dist/features/quality-coverage/adapters/oxlint-session.d.ts +14 -0
- package/dist/features/quality-coverage/adapters/oxlint-session.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/oxlint-session.js +53 -0
- package/dist/features/quality-coverage/adapters/oxlint-session.js.map +1 -0
- package/dist/features/quality-coverage/adapters/profile-input.d.ts +9 -0
- package/dist/features/quality-coverage/adapters/profile-input.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/profile-input.js +110 -0
- package/dist/features/quality-coverage/adapters/profile-input.js.map +1 -0
- package/dist/features/quality-coverage/adapters/protected-config.d.ts +15 -0
- package/dist/features/quality-coverage/adapters/protected-config.d.ts.map +1 -0
- package/dist/features/quality-coverage/adapters/protected-config.js +200 -0
- package/dist/features/quality-coverage/adapters/protected-config.js.map +1 -0
- package/dist/features/quality-coverage/api.d.ts +13 -0
- package/dist/features/quality-coverage/api.d.ts.map +1 -0
- package/dist/features/quality-coverage/api.js +7 -0
- package/dist/features/quality-coverage/api.js.map +1 -0
- package/dist/features/quality-coverage/application/capability.d.ts +7 -0
- package/dist/features/quality-coverage/application/capability.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/capability.js +12 -0
- package/dist/features/quality-coverage/application/capability.js.map +1 -0
- package/dist/features/quality-coverage/application/check-quality-coverage.d.ts +9 -0
- package/dist/features/quality-coverage/application/check-quality-coverage.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/check-quality-coverage.js +56 -0
- package/dist/features/quality-coverage/application/check-quality-coverage.js.map +1 -0
- package/dist/features/quality-coverage/application/evaluate-coverage.d.ts +6 -0
- package/dist/features/quality-coverage/application/evaluate-coverage.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/evaluate-coverage.js +125 -0
- package/dist/features/quality-coverage/application/evaluate-coverage.js.map +1 -0
- package/dist/features/quality-coverage/application/input-observations.d.ts +6 -0
- package/dist/features/quality-coverage/application/input-observations.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/input-observations.js +2 -0
- package/dist/features/quality-coverage/application/input-observations.js.map +1 -0
- package/dist/features/quality-coverage/application/model.d.ts +57 -0
- package/dist/features/quality-coverage/application/model.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/model.js +2 -0
- package/dist/features/quality-coverage/application/model.js.map +1 -0
- package/dist/features/quality-coverage/application/observation-input.d.ts +17 -0
- package/dist/features/quality-coverage/application/observation-input.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/observation-input.js +2 -0
- package/dist/features/quality-coverage/application/observation-input.js.map +1 -0
- package/dist/features/quality-coverage/application/profile.d.ts +38 -0
- package/dist/features/quality-coverage/application/profile.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/profile.js +2 -0
- package/dist/features/quality-coverage/application/profile.js.map +1 -0
- package/dist/features/quality-coverage/application/rules.d.ts +20 -0
- package/dist/features/quality-coverage/application/rules.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/rules.js +33 -0
- package/dist/features/quality-coverage/application/rules.js.map +1 -0
- package/dist/features/quality-coverage/application/script-route.d.ts +3 -0
- package/dist/features/quality-coverage/application/script-route.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/script-route.js +46 -0
- package/dist/features/quality-coverage/application/script-route.js.map +1 -0
- package/dist/features/quality-coverage/application/source-coverage.d.ts +19 -0
- package/dist/features/quality-coverage/application/source-coverage.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/source-coverage.js +46 -0
- package/dist/features/quality-coverage/application/source-coverage.js.map +1 -0
- package/dist/features/quality-coverage/application/tool-execution.d.ts +2 -0
- package/dist/features/quality-coverage/application/tool-execution.d.ts.map +1 -0
- package/dist/features/quality-coverage/application/tool-execution.js +2 -0
- package/dist/features/quality-coverage/application/tool-execution.js.map +1 -0
- package/dist/features/quality-coverage/node.d.ts +5 -0
- package/dist/features/quality-coverage/node.d.ts.map +1 -0
- package/dist/features/quality-coverage/node.js +5 -0
- package/dist/features/quality-coverage/node.js.map +1 -0
- package/dist/features/quality-coverage/schemas.d.ts +2 -0
- package/dist/features/quality-coverage/schemas.d.ts.map +1 -0
- package/dist/features/quality-coverage/schemas.js +2 -0
- package/dist/features/quality-coverage/schemas.js.map +1 -0
- package/dist/features/validation-reporting/api.d.ts +1 -1
- package/dist/features/validation-reporting/api.d.ts.map +1 -1
- package/dist/features/validation-reporting/api.js.map +1 -1
- package/dist/process-execution/node-process-runner.d.ts.map +1 -1
- package/dist/process-execution/node-process-runner.js +15 -0
- package/dist/process-execution/node-process-runner.js.map +1 -1
- package/dist/process-execution/windows-managed-process.js +2 -2
- package/dist/process-execution/windows-managed-process.js.map +1 -1
- package/dist/schema-catalog.d.ts +1 -1
- package/dist/schema-catalog.d.ts.map +1 -1
- package/dist/schema-ids.d.ts +1 -1
- package/dist/schema-ids.d.ts.map +1 -1
- package/dist/schema-ids.js +2 -0
- package/dist/schema-ids.js.map +1 -1
- package/dist/source-inventory/adapters/outbound/filesystem/filesystem-source-tree-reader.d.ts.map +1 -1
- package/dist/source-inventory/adapters/outbound/filesystem/filesystem-source-tree-reader.js +4 -0
- package/dist/source-inventory/adapters/outbound/filesystem/filesystem-source-tree-reader.js.map +1 -1
- package/package.json +5 -1
- package/schemas/foundation-config/v2.schema.json +201 -0
- package/schemas/package-public-api-audit-report/v1.schema.json +1400 -0
- package/schemas/package-public-api-audit-request/v1.schema.json +339 -0
- package/schemas/quality-source-coverage/v1.schema.json +119 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { pinnedCompiler, compilerPath, compilerLibraryRoot, tsdocBasePath, pinnedTsdocConfig } from "./load-pinned-audit-sdk.js";
|
|
2
|
+
import { bindAuditCompilerReferences } from "./audit-compiler-bindings.js";
|
|
3
|
+
import { stagePublicApiAudit } from "../filesystem/stage-public-api-audit.js";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
import { mkdtemp, readFile, realpath, rm } from "node:fs/promises";
|
|
6
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
7
|
+
import { tmpdir } from "node:os";
|
|
8
|
+
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
9
|
+
import { Extractor } from "@microsoft/api-extractor";
|
|
10
|
+
import { ApiDeclaredItem, ExcerptTokenKind, ApiExportedMixin, ApiReleaseTagMixin, ReleaseTag, ApiModel } from "@microsoft/api-extractor-model";
|
|
11
|
+
import { PUBLIC_API_AUDIT_PROFILE } from "../../../application/model/public-api-observation.js";
|
|
12
|
+
import { assertNotCancelled } from "../../../application/policies/public-api-evidence-errors.js";
|
|
13
|
+
import { auditDigest, auditInputPath, auditRelativePath, remapAuditStagePath, AUDIT_MAX_BYTES, AUDIT_MAX_FILES, auditPackagePolicy } from "../filesystem/public-api-audit-inputs.js";
|
|
14
|
+
import { mapReleasedBaseline } from "../filesystem/public-api-baseline-mapper.js";
|
|
15
|
+
import { preparePublicApiExtractor, invokePublicApiExtractor } from "./prepare-public-api-extractor.js";
|
|
16
|
+
const require = createRequire(import.meta.url);
|
|
17
|
+
const compiler = pinnedCompiler;
|
|
18
|
+
const BUILTINS = new Set(["AbortSignal", "Error", "Extract", "NoInfer", "Promise", "Readonly", "Record", "Uint8Array"]);
|
|
19
|
+
function compilerDiagnostic(diagnostic) {
|
|
20
|
+
const line = diagnostic.file !== undefined && diagnostic.start !== undefined
|
|
21
|
+
? diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start).line + 1 : undefined;
|
|
22
|
+
return { source: "compiler", id: `TS${diagnostic.code}`,
|
|
23
|
+
severity: compiler.DiagnosticCategory[diagnostic.category]?.toLowerCase() ?? "unknown",
|
|
24
|
+
text: compiler.flattenDiagnosticMessageText(diagnostic.messageText, "\n"),
|
|
25
|
+
...(diagnostic.file === undefined ? {} : { file: diagnostic.file.fileName }),
|
|
26
|
+
...(line === undefined ? {} : { line }) };
|
|
27
|
+
}
|
|
28
|
+
function libraryFile(path) {
|
|
29
|
+
const resolved = realpathSync(path);
|
|
30
|
+
return dirname(resolved) === compilerLibraryRoot && /^lib\..*\.d\.ts$/u.test(basename(resolved));
|
|
31
|
+
}
|
|
32
|
+
function toolchainIdentity() {
|
|
33
|
+
const modules = [require.resolve("@microsoft/api-extractor"), require.resolve("@microsoft/api-extractor-model"), compilerPath];
|
|
34
|
+
const modelManifest = JSON.parse(readFileSync(join(dirname(dirname(require.resolve("@microsoft/api-extractor-model"))), "package.json"), "utf8"));
|
|
35
|
+
return JSON.stringify({ extractor: Extractor.version, model: modelManifest.version, compiler: compiler.version,
|
|
36
|
+
tsdocBaseDigest: auditDigest(readFileSync(tsdocBasePath)), modules: modules.map((path) => ({ digest: auditDigest(readFileSync(path)) })) });
|
|
37
|
+
}
|
|
38
|
+
function builtin(reference, program) {
|
|
39
|
+
const match = /^!([A-Za-z][A-Za-z0-9]*):(?:interface|type|var)$/u.exec(reference ?? "");
|
|
40
|
+
const name = match?.[1];
|
|
41
|
+
if (name === undefined || !BUILTINS.has(name)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const checker = program.getTypeChecker();
|
|
45
|
+
const identities = new Set();
|
|
46
|
+
let found = false;
|
|
47
|
+
// Every declaration source must bind this name exclusively to actual compiler libs.
|
|
48
|
+
// This rejects local shadowing and merged global augmentations conservatively.
|
|
49
|
+
for (const source of program.getSourceFiles()) {
|
|
50
|
+
if (program.isSourceFileDefaultLibrary(source)) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const symbol = checker.getSymbolsInScope(source, compiler.SymbolFlags.Type | compiler.SymbolFlags.Value).find((candidate) => candidate.name === name);
|
|
54
|
+
if (symbol === undefined || symbol.declarations === undefined || symbol.declarations.length === 0) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
found = true;
|
|
58
|
+
for (const declaration of symbol.declarations) {
|
|
59
|
+
const file = declaration.getSourceFile();
|
|
60
|
+
if (!program.isSourceFileDefaultLibrary(file) || !libraryFile(file.fileName)) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
identities.add(`${basename(file.fileName)}:${auditDigest(file.text)}`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return found ? { symbol: name, declarations: [...identities].toSorted() } : undefined;
|
|
67
|
+
}
|
|
68
|
+
function readModel(modelPath, observation, program, historical = false) {
|
|
69
|
+
const model = new ApiModel();
|
|
70
|
+
const pkg = model.loadPackage(modelPath);
|
|
71
|
+
if (pkg.name !== observation.packageName || pkg.entryPoints.length !== 1) {
|
|
72
|
+
throw new Error("Unsupported audit model package/entrypoint identity.");
|
|
73
|
+
}
|
|
74
|
+
const output = [];
|
|
75
|
+
function walk(item, parentPublic) {
|
|
76
|
+
if (output.length >= AUDIT_MAX_FILES) {
|
|
77
|
+
throw new Error("Audit model node budget exhausted.");
|
|
78
|
+
}
|
|
79
|
+
// Historical production models trim internal containers and omit forgotten exports.
|
|
80
|
+
if (historical && ApiReleaseTagMixin.isBaseClassOf(item) && item.releaseTag === ReleaseTag.Internal) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const exported = ApiExportedMixin.isBaseClassOf(item) ? item.isExported : null;
|
|
84
|
+
const isPublic = parentPublic && exported !== false;
|
|
85
|
+
if (historical && !isPublic) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (item instanceof ApiDeclaredItem) {
|
|
89
|
+
const identity = { subject: observation.subject, packageName: observation.packageName, exportPath: observation.exportPath, canonicalReference: item.canonicalReference.toString() };
|
|
90
|
+
output.push({ identity, displayName: item.displayName, kind: item.kind,
|
|
91
|
+
parentReference: item.parent?.canonicalReference.toString() ?? "", parentKind: item.parent?.kind ?? "None",
|
|
92
|
+
excerpt: item.excerpt.text, isExported: exported, public: isPublic,
|
|
93
|
+
references: item.excerpt.spannedTokens.filter((token) => token.kind === ExcerptTokenKind.Reference).map((token) => {
|
|
94
|
+
const reference = token.canonicalReference;
|
|
95
|
+
const target = reference === undefined ? undefined : model.resolveDeclarationReference(reference, item).resolvedApiItem;
|
|
96
|
+
const library = target === undefined ? builtin(reference?.toString() ?? null, program) : undefined;
|
|
97
|
+
return { text: token.text, canonicalReference: reference?.toString() ?? null,
|
|
98
|
+
resolution: target !== undefined ? "local" : library !== undefined ? "verified-external-library" : "unresolved",
|
|
99
|
+
...(target === undefined ? {} : { target: { ...identity, canonicalReference: target.canonicalReference.toString() } }),
|
|
100
|
+
...(library === undefined ? {} : { library }) };
|
|
101
|
+
}) });
|
|
102
|
+
}
|
|
103
|
+
for (const member of item.members) {
|
|
104
|
+
walk(member, isPublic);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
walk(pkg, true);
|
|
108
|
+
// The SDK resolver can fail for a modeled hidden namespace member. Exact opaque
|
|
109
|
+
// identities in this one export-path model provide a bounded local binding.
|
|
110
|
+
return output.map((item) => ({ ...item, references: item.references.map((reference) => {
|
|
111
|
+
if (reference.resolution !== "unresolved") {
|
|
112
|
+
return reference;
|
|
113
|
+
}
|
|
114
|
+
const candidates = output.filter((candidate) => candidate.identity.canonicalReference === reference.canonicalReference);
|
|
115
|
+
return candidates.length === 1 ? { ...reference, resolution: "local", target: candidates[0].identity }
|
|
116
|
+
: candidates.length > 1 ? { ...reference, resolution: "ambiguous" } : reference;
|
|
117
|
+
}) }));
|
|
118
|
+
}
|
|
119
|
+
async function prepareCompiler(context, outputRoot, diagnostics, configFiles) {
|
|
120
|
+
const { input, allowed, pkg, entry } = context;
|
|
121
|
+
const configPath = await auditInputPath(input.consumerRoot, pkg.tsconfigPath);
|
|
122
|
+
const readConfig = (path) => {
|
|
123
|
+
const normalized = resolve(path);
|
|
124
|
+
if (!allowed.has(normalized)) {
|
|
125
|
+
throw new Error(`Undeclared configuration dependency: ${relative(input.consumerRoot, path)}.`);
|
|
126
|
+
}
|
|
127
|
+
const text = readFileSync(normalized, "utf8");
|
|
128
|
+
if (auditDigest(text) !== allowed.get(normalized)) {
|
|
129
|
+
throw new Error("Configuration digest mismatch.");
|
|
130
|
+
}
|
|
131
|
+
configFiles.set(normalized, auditDigest(text));
|
|
132
|
+
return text;
|
|
133
|
+
};
|
|
134
|
+
const config = compiler.readConfigFile(configPath, readConfig);
|
|
135
|
+
if (config.error !== undefined) {
|
|
136
|
+
diagnostics.push(compilerDiagnostic(config.error));
|
|
137
|
+
}
|
|
138
|
+
const parsed = compiler.parseJsonConfigFileContent(config.config, {
|
|
139
|
+
useCaseSensitiveFileNames: true, readFile: readConfig,
|
|
140
|
+
fileExists: (path) => allowed.has(resolve(path)), readDirectory: () => { throw new Error("Audit requires explicit tsconfig files; glob discovery unsupported."); }
|
|
141
|
+
}, dirname(configPath), undefined, configPath);
|
|
142
|
+
diagnostics.push(...parsed.errors.map(compilerDiagnostic));
|
|
143
|
+
if (parsed.options.plugins !== undefined || parsed.projectReferences !== undefined) {
|
|
144
|
+
throw new Error("Compiler plugins and project references are outside the audit boundary.");
|
|
145
|
+
}
|
|
146
|
+
if (parsed.options.skipLibCheck === true || parsed.options.skipDefaultLibCheck === true || parsed.options.noCheck === true) {
|
|
147
|
+
throw new Error("Compiler diagnostic suppression is unsupported for audit admission.");
|
|
148
|
+
}
|
|
149
|
+
for (const path of parsed.fileNames) {
|
|
150
|
+
if (!allowed.has(resolve(path))) {
|
|
151
|
+
throw new Error("Undeclared compiler root.");
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const options = { ...parsed.options };
|
|
155
|
+
delete options["outDir"];
|
|
156
|
+
delete options["declarationDir"];
|
|
157
|
+
// The compiler host owns every filesystem observation used in resolution. It
|
|
158
|
+
// exposes only declared bytes and actual pinned libraries, never ambient files.
|
|
159
|
+
const host = compiler.createCompilerHost(options);
|
|
160
|
+
const directories = new Set();
|
|
161
|
+
for (const path of allowed.keys()) {
|
|
162
|
+
let directory = dirname(path);
|
|
163
|
+
while (directory !== dirname(directory)) {
|
|
164
|
+
directories.add(directory);
|
|
165
|
+
directory = dirname(directory);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const readable = (path) => allowed.has(resolve(path)) ||
|
|
169
|
+
(dirname(resolve(path)) === compilerLibraryRoot && /^lib\..*\.d\.ts$/u.test(basename(path)) && existsSync(path) && libraryFile(path));
|
|
170
|
+
host.fileExists = readable;
|
|
171
|
+
host.readFile = (path) => {
|
|
172
|
+
if (!readable(path)) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
const text = readFileSync(path, "utf8");
|
|
176
|
+
if (allowed.has(resolve(path)) && auditDigest(text) !== allowed.get(resolve(path))) {
|
|
177
|
+
throw new Error("Compiler host input digest mismatch.");
|
|
178
|
+
}
|
|
179
|
+
if (basename(path) === "package.json") {
|
|
180
|
+
configFiles.set(resolve(path), auditDigest(text));
|
|
181
|
+
}
|
|
182
|
+
return text;
|
|
183
|
+
};
|
|
184
|
+
host.directoryExists = (path) => directories.has(resolve(path)) || resolve(path) === compilerLibraryRoot;
|
|
185
|
+
host.getDirectories = (path) => [...directories].filter((directory) => dirname(directory) === resolve(path)).map((directory) => basename(directory));
|
|
186
|
+
host.realpath = (path) => resolve(path);
|
|
187
|
+
host.getCurrentDirectory = () => input.consumerRoot;
|
|
188
|
+
const roots = [...new Set([...parsed.fileNames, ...(entry === undefined ? [] : [resolve(input.consumerRoot, entry.declarationEntryPoint)])])];
|
|
189
|
+
const program = compiler.createProgram(roots, options, host);
|
|
190
|
+
if (entry === undefined) {
|
|
191
|
+
return { program, invocation: undefined };
|
|
192
|
+
}
|
|
193
|
+
const modelPath = join(outputRoot, "surface.api.json");
|
|
194
|
+
const extractorConfig = preparePublicApiExtractor({ packageRoot: dirname(await auditInputPath(input.consumerRoot, pkg.manifestPath)), manifestPath: await auditInputPath(input.consumerRoot, pkg.manifestPath), entryPointPath: await auditInputPath(input.consumerRoot, entry.declarationEntryPoint), tsconfigPath: configPath, apiJsonPath: modelPath, includeForgottenExports: true, untrimmedObservation: true, tsdocConfigFile: pinnedTsdocConfig() });
|
|
195
|
+
// CompilerState's public contract is the program. Supplying that contract
|
|
196
|
+
// avoids its unrestricted factory and keeps diagnostics and extraction on one program.
|
|
197
|
+
const state = { program };
|
|
198
|
+
return { program, invocation: { state, extractorConfig, modelPath } };
|
|
199
|
+
}
|
|
200
|
+
function validateCompilerSources(program, context) {
|
|
201
|
+
const { input, allowed } = context;
|
|
202
|
+
let bytes = 0;
|
|
203
|
+
for (const source of program.getSourceFiles()) {
|
|
204
|
+
bytes += Buffer.byteLength(source.text);
|
|
205
|
+
if (program.getSourceFiles().length > AUDIT_MAX_FILES || bytes > AUDIT_MAX_BYTES) {
|
|
206
|
+
throw new Error("Compiler input budget exhausted.");
|
|
207
|
+
}
|
|
208
|
+
if (!source.isDeclarationFile) {
|
|
209
|
+
throw new Error("Only prepared declarations are supported.");
|
|
210
|
+
}
|
|
211
|
+
if (!libraryFile(source.fileName) && allowed.get(resolve(source.fileName)) !== auditDigest(source.text)) {
|
|
212
|
+
throw new Error(`Compiler input outside verified subject: ${source.fileName}.`);
|
|
213
|
+
}
|
|
214
|
+
for (const statement of source.statements) {
|
|
215
|
+
const imported = statement.moduleSpecifier;
|
|
216
|
+
if (imported?.text === undefined || imported.text.startsWith(".")) {
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
const symbol = program.getTypeChecker().getSymbolAtLocation(imported);
|
|
220
|
+
if (symbol === undefined) {
|
|
221
|
+
continue;
|
|
222
|
+
} // Independent diagnostics retain unresolved modules.
|
|
223
|
+
const universe = input.declarations.resolutionUniverse.find((candidate) => `${candidate.packageName}${candidate.exportPath === "." ? "" : candidate.exportPath.slice(1)}` === imported.text);
|
|
224
|
+
if (universe === undefined || symbol.declarations?.length !== 1 ||
|
|
225
|
+
resolve(symbol.declarations[0].getSourceFile().fileName) !== resolve(input.consumerRoot, universe.declarationPath)) {
|
|
226
|
+
throw new Error("Module binding is outside the explicit same-subject universe.");
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function compilerEnvironment(options, context) {
|
|
232
|
+
const { input, subjectRoot } = context;
|
|
233
|
+
return JSON.stringify(options, (key, value) => {
|
|
234
|
+
if (key === "configFile") {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (typeof value === "string") {
|
|
238
|
+
for (const candidate of input.declarations.packages) {
|
|
239
|
+
const packageRoot = resolve(input.consumerRoot, dirname(candidate.manifestPath));
|
|
240
|
+
const local = auditRelativePath(packageRoot, value);
|
|
241
|
+
if (local !== undefined) {
|
|
242
|
+
return `package:${candidate.packageName}/${local.split(sep).join("/")}`;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
const local = auditRelativePath(subjectRoot, value);
|
|
246
|
+
if (local !== undefined) {
|
|
247
|
+
return `<subject-root>/${local.split(sep).join("/")}`;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
251
|
+
return Object.fromEntries(Object.entries(value).toSorted(([a], [b]) => a < b ? -1 : a > b ? 1 : 0));
|
|
252
|
+
}
|
|
253
|
+
return value;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
async function observeEntrypoint(context) {
|
|
257
|
+
const { input, allowed, pkg, entry } = context;
|
|
258
|
+
assertNotCancelled(input.signal);
|
|
259
|
+
const outputRoot = await realpath(await mkdtemp(join(tmpdir(), "foundation-public-api-audit-")));
|
|
260
|
+
const stageRoot = join(outputRoot, "evidence");
|
|
261
|
+
let effectiveContext = context;
|
|
262
|
+
let stage;
|
|
263
|
+
const diagnostics = [];
|
|
264
|
+
const unsupported = [];
|
|
265
|
+
const configFiles = new Map();
|
|
266
|
+
let program;
|
|
267
|
+
let compilerOptions = {};
|
|
268
|
+
let invocation = { outcome: "not-invoked", succeeded: false, errorCount: null, warningCount: null };
|
|
269
|
+
let collected = false;
|
|
270
|
+
let modelPresent = false;
|
|
271
|
+
let modelDigest;
|
|
272
|
+
let items = [];
|
|
273
|
+
let revalidated = false;
|
|
274
|
+
let storedSurface;
|
|
275
|
+
try {
|
|
276
|
+
const metadataPresence = collectMetadataPresence(allowed, configFiles);
|
|
277
|
+
stage = await stagePublicApiAudit(input.consumerRoot, allowed, stageRoot);
|
|
278
|
+
const metadataDigests = [...configFiles];
|
|
279
|
+
configFiles.clear();
|
|
280
|
+
for (const [path, digest] of metadataDigests) {
|
|
281
|
+
configFiles.set(join(stage.root, relative(input.consumerRoot, path)), digest);
|
|
282
|
+
}
|
|
283
|
+
effectiveContext = { ...context, input: { ...input, consumerRoot: stage.root }, allowed: stage.files,
|
|
284
|
+
subjectRoot: join(stage.root, relative(input.consumerRoot, context.subjectRoot)) };
|
|
285
|
+
const prepared = await prepareCompiler(effectiveContext, outputRoot, diagnostics, configFiles);
|
|
286
|
+
program = prepared.program;
|
|
287
|
+
const { configFilePath: _configPath, ...effectiveOptions } = program.getCompilerOptions();
|
|
288
|
+
compilerOptions = effectiveOptions;
|
|
289
|
+
if (diagnostics.some((diagnostic) => diagnostic.severity === "error")) {
|
|
290
|
+
unsupported.push("compiler-configuration-errors");
|
|
291
|
+
}
|
|
292
|
+
diagnostics.push(...compiler.getPreEmitDiagnostics(program).map(compilerDiagnostic));
|
|
293
|
+
collected = true;
|
|
294
|
+
validateCompilerSources(program, effectiveContext);
|
|
295
|
+
if (prepared.invocation !== undefined && entry !== undefined) {
|
|
296
|
+
const { state, extractorConfig, modelPath } = prepared.invocation;
|
|
297
|
+
try {
|
|
298
|
+
const result = invokePublicApiExtractor(extractorConfig, state, (message) => {
|
|
299
|
+
diagnostics.push({ source: "extractor", id: message.messageId, severity: message.logLevel, text: message.text.replaceAll(outputRoot, "<audit-model-output>"),
|
|
300
|
+
...(message.sourceFilePath === undefined ? {} : { file: message.sourceFilePath }),
|
|
301
|
+
...(message.sourceFileLine === undefined ? {} : { line: message.sourceFileLine }) });
|
|
302
|
+
message.handled = true;
|
|
303
|
+
});
|
|
304
|
+
invocation = { outcome: "completed", succeeded: result.succeeded, errorCount: result.errorCount, warningCount: result.warningCount };
|
|
305
|
+
}
|
|
306
|
+
catch (error) {
|
|
307
|
+
invocation = { outcome: "exception", succeeded: false, errorCount: null, warningCount: null, exception: String(error).replaceAll(outputRoot, "<audit-model-output>") };
|
|
308
|
+
}
|
|
309
|
+
try {
|
|
310
|
+
const modelBytes = await readFile(modelPath);
|
|
311
|
+
modelPresent = true;
|
|
312
|
+
modelDigest = auditDigest(modelBytes);
|
|
313
|
+
if (modelBytes.length > AUDIT_MAX_BYTES) {
|
|
314
|
+
throw new Error("Audit model byte budget exhausted.");
|
|
315
|
+
}
|
|
316
|
+
items = readModel(modelPath, { subject: input.subject, packageName: pkg.packageName, exportPath: entry.exportPath }, program);
|
|
317
|
+
bindAuditCompilerReferences({ compiler, program, root: stage.root, declarations: input.declarations, pkg, items, bindings: context.dependencyBindings });
|
|
318
|
+
validateModelExports(program, resolve(stage.root, entry.declarationEntryPoint), items);
|
|
319
|
+
storedSurface = mapReleasedBaseline({ schemaVersion: 1, packageName: pkg.packageName, packageVersion: pkg.packageVersion,
|
|
320
|
+
extractorVersion: Extractor.version, entrypoints: [{ exportPath: entry.exportPath, items: readModel(modelPath, { subject: input.subject, packageName: pkg.packageName, exportPath: entry.exportPath }, program, true).map((item) => ({
|
|
321
|
+
canonicalReference: item.identity.canonicalReference, kind: item.kind, parentKind: item.parentKind, parentReference: item.parentReference,
|
|
322
|
+
signature: item.excerpt.replaceAll("\r\n", "\n").trim() || (item.kind === "Namespace" ? `namespace ${item.displayName}` : "")
|
|
323
|
+
})).toSorted((a, b) => a.canonicalReference < b.canonicalReference ? -1 : a.canonicalReference > b.canonicalReference ? 1 : 0) }] }, auditPackagePolicy(pkg));
|
|
324
|
+
}
|
|
325
|
+
catch (error) {
|
|
326
|
+
unsupported.push(`model-unavailable: ${String(error).replaceAll(outputRoot, "<audit-model-output>")}`);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
storedSurface = mapReleasedBaseline({ schemaVersion: 1, packageName: pkg.packageName, packageVersion: pkg.packageVersion,
|
|
331
|
+
extractorVersion: Extractor.version, entrypoints: [] }, auditPackagePolicy(pkg));
|
|
332
|
+
}
|
|
333
|
+
await revalidateObservationInputs(effectiveContext, metadataPresence, program);
|
|
334
|
+
await stage.revalidate();
|
|
335
|
+
revalidated = true;
|
|
336
|
+
}
|
|
337
|
+
catch (error) {
|
|
338
|
+
unsupported.push(String(error));
|
|
339
|
+
}
|
|
340
|
+
finally {
|
|
341
|
+
// Each owned-resource cleanup is independent; evidence survives either failure.
|
|
342
|
+
try {
|
|
343
|
+
await stage?.release();
|
|
344
|
+
}
|
|
345
|
+
catch (error) {
|
|
346
|
+
unsupported.push(`owned-resource-cleanup: permission-restore: ${outputRoot}: ${String(error)}`);
|
|
347
|
+
}
|
|
348
|
+
try {
|
|
349
|
+
await rm(outputRoot, { recursive: true, force: true });
|
|
350
|
+
}
|
|
351
|
+
catch (error) {
|
|
352
|
+
unsupported.push(`owned-resource-cleanup: removal: ${outputRoot}: ${String(error)}`);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
assertNotCancelled(input.signal);
|
|
356
|
+
const fileIdentity = (path, digest) => ({ path: relative(input.consumerRoot, remapAuditStagePath(path, stageRoot, input.consumerRoot)).split(sep).join("/"), digest });
|
|
357
|
+
return { subject: input.subject, packageName: pkg.packageName, packageVersion: pkg.packageVersion, exportPath: entry?.exportPath ?? null, modelExpected: entry !== undefined,
|
|
358
|
+
toolchain: toolchainIdentity(), normalizationProfile: PUBLIC_API_AUDIT_PROFILE,
|
|
359
|
+
compilerEnvironment: compilerEnvironment(compilerOptions, effectiveContext), compilerOptions: restoreStagePaths(compilerOptions, stageRoot, input.consumerRoot),
|
|
360
|
+
configurationDependencies: [...configFiles].map(([path, digest]) => fileIdentity(path, digest)),
|
|
361
|
+
sourceFiles: program?.getSourceFiles().map((source) => fileIdentity(source.fileName, auditDigest(source.text))) ?? [],
|
|
362
|
+
externalDeclarations: program?.getSourceFiles().filter((source) => program.isSourceFileDefaultLibrary(source)).map((source) => ({ path: basename(source.fileName), digest: auditDigest(source.text) })) ?? [],
|
|
363
|
+
...(storedSurface === undefined ? {} : { storedSurface }),
|
|
364
|
+
diagnostics: restoreStagePaths(diagnostics, stageRoot, input.consumerRoot), compilerDiagnosticsCollected: collected, invocation, modelPresent,
|
|
365
|
+
...(modelDigest === undefined ? {} : { modelDigest }), items, inputBytesRevalidated: revalidated, unsupported };
|
|
366
|
+
}
|
|
367
|
+
function resolveSubjectReferences(observations, bindings) {
|
|
368
|
+
return observations.map((observation) => ({ ...observation, items: observation.items.map((item) => ({ ...item,
|
|
369
|
+
references: item.references.map((reference) => {
|
|
370
|
+
if (reference.resolution !== "unresolved") {
|
|
371
|
+
return reference;
|
|
372
|
+
}
|
|
373
|
+
const candidates = observations.filter((candidate) => candidate.packageName !== observation.packageName && bindings.get(observation)?.get(reference) === JSON.stringify([candidate.packageName, candidate.exportPath])).flatMap((candidate) => candidate.items).filter((candidate) => candidate.identity.canonicalReference === reference.canonicalReference && candidate.public);
|
|
374
|
+
return candidates.length === 1 ? { ...reference, resolution: "same-subject-dependency", target: candidates[0].identity }
|
|
375
|
+
: candidates.length > 1 ? { ...reference, resolution: "ambiguous" } : reference;
|
|
376
|
+
}) })) }));
|
|
377
|
+
}
|
|
378
|
+
export class MicrosoftPublicApiObserver {
|
|
379
|
+
async observe(request) {
|
|
380
|
+
assertNotCancelled(request.signal);
|
|
381
|
+
if (Extractor.version !== "7.58.12" || compiler.version !== "5.9.3" || JSON.parse(readFileSync(join(dirname(dirname(require.resolve("@microsoft/api-extractor-model"))), "package.json"), "utf8")).version !== "7.33.10") {
|
|
382
|
+
throw new Error("Unsupported audit toolchain: require Extractor 7.58.12 and its TypeScript 5.9.3.");
|
|
383
|
+
}
|
|
384
|
+
// Match auditInputPath's native realpath: the JS sync variant can retain Windows 8.3 aliases.
|
|
385
|
+
const input = { ...request, consumerRoot: await realpath(request.consumerRoot) };
|
|
386
|
+
const expectedModels = input.declarations.packages.reduce((total, pkg) => total + Math.max(1, pkg.entrypoints.length), 0);
|
|
387
|
+
if (expectedModels > 64 || input.declarations.files.length > AUDIT_MAX_FILES) {
|
|
388
|
+
throw new Error("Audit subject exceeds the 64-model or input-file budget.");
|
|
389
|
+
}
|
|
390
|
+
const allowed = new Map();
|
|
391
|
+
for (const file of input.declarations.files) {
|
|
392
|
+
allowed.set(await auditInputPath(input.consumerRoot, file.path), file.digest);
|
|
393
|
+
}
|
|
394
|
+
let subjectRoot = dirname([...allowed.keys()][0] ?? resolve(input.consumerRoot));
|
|
395
|
+
for (const path of allowed.keys()) {
|
|
396
|
+
while (path !== subjectRoot && !path.startsWith(`${subjectRoot}${sep}`)) {
|
|
397
|
+
const parent = dirname(subjectRoot);
|
|
398
|
+
if (parent === subjectRoot) {
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
subjectRoot = parent;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
const observations = [];
|
|
405
|
+
const bindings = new Map();
|
|
406
|
+
let retainedBytes = 0;
|
|
407
|
+
for (const pkg of input.declarations.packages.toSorted((a, b) => a.packageName.localeCompare(b.packageName))) {
|
|
408
|
+
const entries = pkg.entrypoints.length === 0 ? [undefined] : pkg.entrypoints.toSorted((a, b) => a.exportPath.localeCompare(b.exportPath));
|
|
409
|
+
for (const entry of entries) {
|
|
410
|
+
const dependencyBindings = new Map();
|
|
411
|
+
const observation = await observeEntrypoint({ input, allowed, subjectRoot, pkg, entry, dependencyBindings });
|
|
412
|
+
bindings.set(observation, dependencyBindings);
|
|
413
|
+
retainedBytes += Buffer.byteLength(JSON.stringify(observation));
|
|
414
|
+
if (retainedBytes > 64 * 1024 * 1024) {
|
|
415
|
+
observations.push({ ...observation, unsupported: [...observation.unsupported, "subject-observation-byte-budget-exhausted"] });
|
|
416
|
+
return resolveSubjectReferences(observations, bindings);
|
|
417
|
+
}
|
|
418
|
+
observations.push(observation);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return resolveSubjectReferences(observations, bindings);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function collectMetadataPresence(allowed, configFiles) {
|
|
425
|
+
// Extractor also reads enclosing package metadata. Declare and digest every
|
|
426
|
+
// existing ancestor manifest, including nested and outside-root manifests;
|
|
427
|
+
// record absence for best-effort mutation detection, not an atomic freeze.
|
|
428
|
+
const metadataPresence = new Map();
|
|
429
|
+
for (const path of allowed.keys()) {
|
|
430
|
+
let directory = dirname(path);
|
|
431
|
+
for (;;) {
|
|
432
|
+
const manifest = join(directory, "package.json");
|
|
433
|
+
if (!metadataPresence.has(manifest)) {
|
|
434
|
+
const present = existsSync(manifest);
|
|
435
|
+
metadataPresence.set(manifest, present);
|
|
436
|
+
if (present) {
|
|
437
|
+
recordMetadataDigest(manifest, allowed, configFiles);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
const parent = dirname(directory);
|
|
441
|
+
if (parent === directory) {
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
directory = parent;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
return metadataPresence;
|
|
448
|
+
}
|
|
449
|
+
function validateModelExports(program, entryPoint, items) {
|
|
450
|
+
const entrySource = program.getSourceFile(entryPoint);
|
|
451
|
+
const moduleSymbol = entrySource === undefined ? undefined : program.getTypeChecker().getSymbolAtLocation(entrySource);
|
|
452
|
+
if (moduleSymbol === undefined) {
|
|
453
|
+
throw new Error("Unsupported declaration entrypoint module binding.");
|
|
454
|
+
}
|
|
455
|
+
const exports = program.getTypeChecker().getExportsOfModule(moduleSymbol);
|
|
456
|
+
for (const exported of exports) {
|
|
457
|
+
if (!items.some((item) => item.public && item.parentKind === "EntryPoint" && item.displayName === exported.name)) {
|
|
458
|
+
throw new Error(`Unsupported model omission for compiler export: ${exported.name}.`);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (items.some((item) => item.public && item.kind !== "Namespace" && !item.excerpt.trim())) {
|
|
462
|
+
throw new Error("Empty historical declaration signature.");
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function recordMetadataDigest(manifest, allowed, configFiles) {
|
|
466
|
+
if (!allowed.has(manifest)) {
|
|
467
|
+
throw new Error(`Undeclared resolution metadata: ${manifest}.`);
|
|
468
|
+
}
|
|
469
|
+
const digest = auditDigest(readFileSync(manifest));
|
|
470
|
+
if (allowed.get(manifest) !== digest) {
|
|
471
|
+
throw new Error(`Undeclared or changed resolution metadata: ${manifest}.`);
|
|
472
|
+
}
|
|
473
|
+
configFiles.set(manifest, digest);
|
|
474
|
+
}
|
|
475
|
+
async function revalidateObservationInputs(context, metadataPresence, program) {
|
|
476
|
+
const { input, allowed } = context;
|
|
477
|
+
for (const [path, present] of metadataPresence) {
|
|
478
|
+
if (existsSync(path) !== present) {
|
|
479
|
+
throw new Error("Resolution metadata changed during observation.");
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
for (const [path, digest] of allowed) {
|
|
483
|
+
await auditInputPath(input.consumerRoot, relative(input.consumerRoot, path).split(sep).join("/"));
|
|
484
|
+
if (auditDigest(await readFile(path)) !== digest) {
|
|
485
|
+
throw new Error("Audit input changed during observation.");
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
for (const source of program.getSourceFiles()) {
|
|
489
|
+
if (auditDigest(await readFile(source.fileName)) !== auditDigest(source.text)) {
|
|
490
|
+
throw new Error("Compiler source changed during observation.");
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function restoreStagePaths(value, stageRoot, inputRoot) {
|
|
495
|
+
return JSON.parse(JSON.stringify(value, (_key, entry) => typeof entry === "string" ? remapAuditStagePath(entry, stageRoot, inputRoot) : entry));
|
|
496
|
+
}
|
|
497
|
+
//# sourceMappingURL=microsoft-public-api-observer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoft-public-api-observer.js","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACjI,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAwB,MAAM,yCAAyC,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,M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