@shapeshift-labs/frontier-lang-compiler 0.2.150 → 0.2.151
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/README.md +315 -9
- package/bench/real-repo-corpus-checkout-identity.mjs +134 -0
- package/bench/real-repo-corpus-checkout-proof.mjs +263 -0
- package/bench/real-repo-corpus-command-execution.mjs +314 -0
- package/bench/real-repo-corpus-evidence.mjs +165 -0
- package/bench/real-repo-corpus-suite.mjs +273 -0
- package/bench/smoke.mjs +109 -7
- package/dist/declarations/import-adapter-core.d.ts +4 -3
- package/dist/declarations/import-adapter-options-native.d.ts +21 -0
- package/dist/declarations/js-ts-project-merge-admission-routes.d.ts +35 -0
- package/dist/declarations/js-ts-project-merge-commonjs-interop.d.ts +29 -0
- package/dist/declarations/js-ts-project-merge-confidence.d.ts +64 -0
- package/dist/declarations/js-ts-project-merge-declaration-emit-parity.d.ts +37 -0
- package/dist/declarations/js-ts-project-merge-declarations.d.ts +65 -0
- package/dist/declarations/js-ts-project-merge-diagnostics.d.ts +97 -0
- package/dist/declarations/js-ts-project-merge-global-augmentation.d.ts +30 -0
- package/dist/declarations/js-ts-project-merge-jsx-render-branch.d.ts +48 -0
- package/dist/declarations/js-ts-project-merge-proof-levels.d.ts +109 -0
- package/dist/declarations/js-ts-project-merge-quality-gates.d.ts +38 -0
- package/dist/declarations/js-ts-project-merge-semantic-equivalence-proof.d.ts +45 -0
- package/dist/declarations/js-ts-project-merge-tsconfig.d.ts +43 -0
- package/dist/declarations/js-ts-safe-merge.d.ts +47 -0
- package/dist/declarations/js-ts-safe-project-merge.d.ts +120 -38
- package/dist/declarations/native-project-compiler-assignability-oracle.d.ts +41 -0
- package/dist/declarations/native-project-compiler-callable-signatures.d.ts +31 -0
- package/dist/declarations/native-project-compiler-class-member-runtime-proof.d.ts +87 -0
- package/dist/declarations/native-project-compiler-composite-types.d.ts +23 -0
- package/dist/declarations/native-project-compiler-enum-proof.d.ts +58 -0
- package/dist/declarations/native-project-compiler-index-signature.d.ts +7 -0
- package/dist/declarations/native-project-compiler-public-api-source-binding.d.ts +8 -0
- package/dist/declarations/native-project-compiler-scope.d.ts +37 -0
- package/dist/declarations/native-project-compiler-type-reference-targets.d.ts +38 -0
- package/dist/declarations/native-project-css-modules.d.ts +90 -0
- package/dist/declarations/native-project-decorator-metadata.d.ts +126 -0
- package/dist/declarations/native-project-jsx-graph.d.ts +313 -0
- package/dist/declarations/native-project-module-declarations.d.ts +52 -0
- package/dist/declarations/native-project-module-resolution.d.ts +76 -1
- package/dist/declarations/native-project-runtime-effect-target.d.ts +29 -0
- package/dist/declarations/native-project-runtime-executable-effect-evidence.d.ts +107 -0
- package/dist/declarations/native-project-runtime-mutation-target.d.ts +33 -0
- package/dist/declarations/native-project-runtime-promise-chain.d.ts +30 -0
- package/dist/declarations/native-project-runtime-promise-combinator.d.ts +22 -0
- package/dist/declarations/native-project-runtime-reachability.d.ts +30 -0
- package/dist/declarations/native-project-runtime-resource-management.d.ts +27 -0
- package/dist/declarations/native-project-runtime-yield-delegation.d.ts +10 -0
- package/dist/declarations/native-project-scope-template-reference.d.ts +13 -0
- package/dist/declarations/native-project-source-evidence.d.ts +8 -0
- package/dist/declarations/native-project.d.ts +40 -39
- package/dist/declarations/semantic-edit-script.d.ts +10 -8
- package/dist/declarations/semantic-graph-layers.d.ts +79 -0
- package/dist/declarations/semantic-sidecar.d.ts +3 -2
- package/dist/declarations/semantic-structural-diff.d.ts +94 -0
- package/dist/declarations/source-preservation.d.ts +32 -1
- package/dist/declarations/target-adapters.d.ts +22 -2
- package/dist/index.d.ts +31 -0
- package/dist/index.js +5 -0
- package/dist/internal/index-impl/compileNativeSource.js +53 -5
- package/dist/internal/index-impl/createLightweightNativeImport.js +58 -4
- package/dist/internal/index-impl/createNativeImportFromSyntaxAst.js +17 -1
- package/dist/internal/index-impl/createNativeImportFromTypeScriptAst.js +28 -4
- package/dist/internal/index-impl/createNativeProjectImportResult.js +31 -27
- package/dist/internal/index-impl/createNativeProjectModuleResolutionFromPackageManifests.js +145 -0
- package/dist/internal/index-impl/createNativeSourcePreservation.js +34 -7
- package/dist/internal/index-impl/createSemanticImportSidecar.js +27 -1
- package/dist/internal/index-impl/createTypeScriptCompilerNativeImporterAdapter.js +16 -5
- package/dist/internal/index-impl/dynamicImportExpressionMetadata.js +80 -0
- package/dist/internal/index-impl/importMetaUrlDependencyMetadata.js +176 -0
- package/dist/internal/index-impl/importNativeSource.js +2 -3
- package/dist/internal/index-impl/moduleImportAttributeMetadata.js +232 -0
- package/dist/internal/index-impl/projectSemanticEditScriptToSource.js +8 -1
- package/dist/internal/index-impl/projectSymbolGraphClassStaticBlocks.js +148 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerAdvancedTypeMetadata.js +45 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerCallableSignatureEquivalence.js +107 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerClassPrivateAccessorRuntimeProof.js +280 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerClassShapeEquivalence.js +103 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerConditionalTypeEquivalence.js +242 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerDecoratorRuntimeProof.js +197 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerEnumEquivalence.js +188 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerFacts.js +244 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerIndexSignatureEquivalence.js +58 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerMetadata.js +168 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerTypeEquivalence.js +199 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerTypeEquivalenceProof.js +204 -0
- package/dist/internal/index-impl/projectSymbolGraphCompilerTypeReferenceTargetEquivalence.js +99 -0
- package/dist/internal/index-impl/projectSymbolGraphCssModuleRecords.js +264 -0
- package/dist/internal/index-impl/projectSymbolGraphCssModuleScanners.js +242 -0
- package/dist/internal/index-impl/projectSymbolGraphCssModuleUtils.js +152 -0
- package/dist/internal/index-impl/projectSymbolGraphCssModules.js +82 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxComponentImports.js +170 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxComponentProviderLookup.js +167 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxComponentWrappers.js +150 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxContextTargets.js +71 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxContextValues.js +212 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxEventHandlers.js +172 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxHookEffects.js +124 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxHooks.js +281 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxMemberComponents.js +139 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxPropFlows.js +320 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxPropValues.js +145 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxProviderFlows.js +133 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxRecords.js +315 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxRenderCollections.js +155 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxRenderReturns.js +291 -0
- package/dist/internal/index-impl/projectSymbolGraphJsxRenderRisk.js +279 -0
- package/dist/internal/index-impl/projectSymbolGraphModuleDeclarationShapes.js +138 -0
- package/dist/internal/index-impl/projectSymbolGraphModuleResolution.js +89 -87
- package/dist/internal/index-impl/projectSymbolGraphPackageConditions.js +314 -0
- package/dist/internal/index-impl/projectSymbolGraphReExportImportTargets.js +43 -0
- package/dist/internal/index-impl/projectSymbolGraphReExports.js +55 -1
- package/dist/internal/index-impl/projectSymbolGraphRuntimeRegions.js +108 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefAliases.js +307 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefLexical.js +320 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefOwners.js +50 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefRecordBuilders.js +112 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefRecords.js +238 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefStructural.js +104 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefStructuralNormalize.js +242 -0
- package/dist/internal/index-impl/projectSymbolGraphScopeUseDefUseHashes.js +107 -0
- package/dist/internal/index-impl/projectSymbolGraphSourceMapGeneratedBoundary.js +111 -0
- package/dist/internal/index-impl/projectSymbolGraphSourceRecords.js +268 -0
- package/dist/internal/index-impl/projectSymbolGraphSourceRecordsOwnership.js +309 -0
- package/dist/internal/index-impl/replaySemanticEditProjection.js +53 -39
- package/dist/internal/index-impl/runtimeOrderEvidenceBinding.js +151 -0
- package/dist/internal/index-impl/runtimeOrderProofSurfaces.js +253 -0
- package/dist/internal/index-impl/semanticEditCallsiteArgumentMerge.js +319 -0
- package/dist/internal/index-impl/semanticEditExplicitSourceReplacement.js +7 -2
- package/dist/internal/index-impl/semanticEditProjectionRecord.js +8 -0
- package/dist/internal/index-impl/semanticEditReplayDiagnostics.js +7 -2
- package/dist/internal/index-impl/semanticEditReplayOutputBinding.js +61 -0
- package/dist/internal/index-impl/semanticEditReplayRerunRoute.js +27 -0
- package/dist/internal/index-impl/semanticEditReplaySourceReplacement.js +6 -1
- package/dist/internal/index-impl/semanticEditRuntimeOrderReasons.js +320 -0
- package/dist/internal/index-impl/semanticEditScriptClassification.js +90 -5
- package/dist/internal/index-impl/semanticEditScripts.js +42 -5
- package/dist/internal/index-impl/semanticEditTypeSyntaxReasons.js +134 -0
- package/dist/internal/index-impl/semanticIndexFromNativeDeclarations.js +11 -5
- package/dist/internal/index-impl/semanticStructuralDiffRecords.js +150 -0
- package/dist/internal/index-impl/sourceMapGeneratedBoundaryGate.js +185 -0
- package/dist/internal/index-impl/staticMemberLiteral.js +31 -0
- package/dist/internal/index-impl/staticOptionalMemberReference.js +22 -0
- package/dist/internal/index-impl/syntaxAstSourcePreservation.js +273 -0
- package/dist/internal/index-impl/syntaxCommonJsModuleDeclarationEntries.js +297 -0
- package/dist/internal/index-impl/syntaxModuleDeclarationEntries.js +56 -132
- package/dist/internal/index-impl/syntaxModuleEntryRecords.js +160 -0
- package/dist/internal/index-impl/typeScriptCompilerAdvancedTypeShapes.js +160 -0
- package/dist/internal/index-impl/typeScriptCompilerAssignabilityOracle.js +97 -0
- package/dist/internal/index-impl/typeScriptCompilerClassApi.js +238 -0
- package/dist/internal/index-impl/typeScriptCompilerDecoratorMetadata.js +290 -0
- package/dist/internal/index-impl/typeScriptCompilerEnumShape.js +279 -0
- package/dist/internal/index-impl/typeScriptCompilerFacts.js +294 -0
- package/dist/internal/index-impl/typeScriptCompilerInferenceSyntax.js +170 -0
- package/dist/internal/index-impl/typeScriptCompilerReferenceGraph.js +186 -0
- package/dist/internal/index-impl/typeScriptCompilerSymbolIdentity.js +294 -0
- package/dist/internal/index-impl/typeScriptCompilerTypeReferenceTargets.js +142 -0
- package/dist/internal/index-impl/typeScriptDeclaration.js +10 -38
- package/dist/internal/index-impl/typeScriptModuleDeclarationEntries.js +52 -15
- package/dist/internal/index-impl/typeScriptSourceFilePreservation.js +296 -0
- package/dist/js-ts-safe-member-class-invariants.js +247 -0
- package/dist/js-ts-safe-member-merge-result.js +23 -3
- package/dist/js-ts-safe-member-merge.js +28 -4
- package/dist/js-ts-safe-merge-binding-patterns.js +170 -0
- package/dist/js-ts-safe-merge-jsx-attribute-fallback.js +151 -157
- package/dist/js-ts-safe-merge-jsx-attribute-parser.js +277 -0
- package/dist/js-ts-safe-merge-jsx-child-expression-fallback.js +161 -0
- package/dist/js-ts-safe-merge-jsx-child-expression-merge.js +319 -0
- package/dist/js-ts-safe-merge-jsx-child-expression-parser.js +300 -0
- package/dist/js-ts-safe-merge-parse-declarations.js +46 -2
- package/dist/js-ts-safe-merge-parse-statements.js +8 -0
- package/dist/js-ts-safe-merge-semantic-edit-fallback.js +13 -5
- package/dist/js-ts-safe-merge-source-shape-fallbacks.js +3 -1
- package/dist/js-ts-safe-merge-top-level-rename-fallback.js +31 -5
- package/dist/js-ts-safe-merge-top-level-rename-result.js +7 -2
- package/dist/js-ts-safe-merge-variable-declarator-fallback.js +124 -6
- package/dist/js-ts-safe-merge-variable-declarator-parser.js +34 -4
- package/dist/js-ts-safe-merge.js +136 -0
- package/dist/js-ts-safe-project-merge-admission-routes.js +216 -0
- package/dist/js-ts-safe-project-merge-admission.js +161 -0
- package/dist/js-ts-safe-project-merge-ambient.js +110 -0
- package/dist/js-ts-safe-project-merge-core.js +85 -0
- package/dist/js-ts-safe-project-merge-css-module-conflicts.js +60 -0
- package/dist/js-ts-safe-project-merge-declaration-emit-parity.js +186 -0
- package/dist/js-ts-safe-project-merge-declarations.js +227 -0
- package/dist/js-ts-safe-project-merge-diagnostics-metadata.js +42 -0
- package/dist/js-ts-safe-project-merge-diagnostics-ts.js +73 -0
- package/dist/js-ts-safe-project-merge-diagnostics.js +283 -0
- package/dist/js-ts-safe-project-merge-evidence-routing.js +38 -0
- package/dist/js-ts-safe-project-merge-files.js +70 -0
- package/dist/js-ts-safe-project-merge-global-augmentation-compatibility.js +99 -0
- package/dist/js-ts-safe-project-merge-graph-conflicts.js +90 -2
- package/dist/js-ts-safe-project-merge-graph-delta-commonjs-interop.js +108 -0
- package/dist/js-ts-safe-project-merge-graph-delta-compiler-conflicts.js +179 -0
- package/dist/js-ts-safe-project-merge-graph-delta-compiler-details.js +189 -0
- package/dist/js-ts-safe-project-merge-graph-delta-conflicts.js +51 -184
- package/dist/js-ts-safe-project-merge-graph-delta-identity-conflicts.js +202 -0
- package/dist/js-ts-safe-project-merge-graph-delta-inference-syntax.js +80 -0
- package/dist/js-ts-safe-project-merge-graph-delta-module-declarations.js +155 -0
- package/dist/js-ts-safe-project-merge-graph-limits.js +16 -1
- package/dist/js-ts-safe-project-merge-graph.js +37 -5
- package/dist/js-ts-safe-project-merge-import-removal.js +292 -0
- package/dist/js-ts-safe-project-merge-jsx-graph-conflict-details.js +235 -0
- package/dist/js-ts-safe-project-merge-jsx-graph-conflicts.js +173 -0
- package/dist/js-ts-safe-project-merge-jsx-prop-contracts.js +86 -0
- package/dist/js-ts-safe-project-merge-jsx-render-branch-proof.js +189 -0
- package/dist/js-ts-safe-project-merge-missing-evidence.js +310 -0
- package/dist/js-ts-safe-project-merge-move-rename.js +209 -0
- package/dist/js-ts-safe-project-merge-proof-conflicts.js +44 -0
- package/dist/js-ts-safe-project-merge-proof-levels.js +320 -0
- package/dist/js-ts-safe-project-merge-quality-gates.js +140 -0
- package/dist/js-ts-safe-project-merge-routing-calibration.js +125 -0
- package/dist/js-ts-safe-project-merge-runtime-region-conflicts.js +156 -0
- package/dist/js-ts-safe-project-merge-scope-use-def-conflicts.js +292 -0
- package/dist/js-ts-safe-project-merge-semantic-equivalence-proof.js +175 -0
- package/dist/js-ts-safe-project-merge-semantic-replay-proof.js +311 -0
- package/dist/js-ts-safe-project-merge-semantic-replay-routes.js +179 -0
- package/dist/js-ts-safe-project-merge-source-span-conflicts.js +310 -0
- package/dist/js-ts-safe-project-merge-source-span-roundtrip-proof.js +172 -0
- package/dist/js-ts-safe-project-merge-split-merge-admission.js +96 -0
- package/dist/js-ts-safe-project-merge-split-merge-records.js +320 -0
- package/dist/js-ts-safe-project-merge-split-merge-shapes.js +234 -0
- package/dist/js-ts-safe-project-merge-split-merge.js +218 -0
- package/dist/js-ts-safe-project-merge-summary.js +320 -0
- package/dist/js-ts-safe-project-merge-symbol-move-admission.js +63 -0
- package/dist/js-ts-safe-project-merge-symbol-move-default-admission.js +143 -0
- package/dist/js-ts-safe-project-merge-symbol-move-risks.js +213 -0
- package/dist/js-ts-safe-project-merge-symbol-move.js +316 -0
- package/dist/js-ts-safe-project-merge-symbol-rename-admission.js +59 -0
- package/dist/js-ts-safe-project-merge-symbol-rename-default-admission.js +111 -0
- package/dist/js-ts-safe-project-merge-symbol-rename.js +319 -0
- package/dist/js-ts-safe-project-merge-ts-options.js +205 -0
- package/dist/js-ts-safe-project-merge-ts-program.js +268 -0
- package/dist/js-ts-safe-project-merge-typed-property-rename-rebase-utils.js +69 -0
- package/dist/js-ts-safe-project-merge-typed-property-rename-rebase.js +317 -0
- package/dist/js-ts-safe-project-merge-unsupported-surfaces.js +319 -0
- package/dist/js-ts-safe-project-merge.js +170 -171
- package/dist/js-ts-semantic-scope-use-def-bindings.js +287 -0
- package/dist/js-ts-semantic-scope-use-def-scan.js +241 -0
- package/dist/js-ts-semantic-scope-use-def-utils.js +132 -0
- package/dist/js-ts-semantic-scope-use-def.js +217 -0
- package/dist/lightweight-dependency-effects.js +28 -4
- package/dist/lightweight-dependency-relations.js +13 -7
- package/dist/lightweight-dependency-top-level.js +63 -0
- package/dist/native-import-language-profiles.js +27 -1
- package/dist/native-js-ts-importers.js +9 -5
- package/dist/native-parser-ast-format-profiles.js +12 -0
- package/dist/native-parser-html-css-format-profiles.js +85 -0
- package/dist/native-region-scanner-core.js +5 -3
- package/dist/native-region-scanner-js-commonjs.js +155 -0
- package/dist/native-region-scanner-js-imports.js +51 -13
- package/dist/native-region-scanner-js-reexports.js +79 -0
- package/dist/native-region-scanner-js-ts-helpers.js +23 -0
- package/dist/native-source-ledger-helpers.js +1 -1
- package/dist/native-source-ledger.js +24 -10
- package/dist/native-source-maps-ecma426.js +316 -0
- package/dist/native-source-maps.js +36 -6
- package/dist/native-source-preservation-ownership.js +292 -0
- package/dist/native-source-preservation-scanner.js +63 -25
- package/dist/native-source-preservation-types.d.ts +3 -0
- package/dist/semantic-import-effect-occurrences.js +242 -0
- package/dist/semantic-import-effect-regions.js +95 -58
- package/dist/semantic-import-graph-layers.js +224 -0
- package/dist/semantic-import-runtime-conditional-evidence.js +135 -0
- package/dist/semantic-import-runtime-effect-target-evidence.js +145 -0
- package/dist/semantic-import-runtime-exit-evidence.js +32 -0
- package/dist/semantic-import-runtime-import-meta-evidence.js +33 -0
- package/dist/semantic-import-runtime-mutation-evidence.js +155 -0
- package/dist/semantic-import-runtime-order-evidence.js +318 -0
- package/dist/semantic-import-runtime-promise-chain-evidence.js +103 -0
- package/dist/semantic-import-runtime-promise-combinator-evidence.js +166 -0
- package/dist/semantic-import-runtime-reachability-evidence.js +269 -0
- package/dist/semantic-import-runtime-resource-management-evidence.js +293 -0
- package/dist/semantic-import-runtime-switch-evidence.js +304 -0
- package/dist/semantic-import-runtime-throw-evidence.js +44 -0
- package/dist/semantic-import-runtime-try-finally-evidence.js +172 -0
- package/dist/semantic-import-sidecar-entry.js +4 -0
- package/dist/semantic-import-source-preservation.js +6 -2
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface JsTsProjectSafeMergeAdmissionRoute {
|
|
2
|
+
readonly kind: 'frontier.lang.jsTsProjectMergeAdmissionRoute';
|
|
3
|
+
readonly version: 1;
|
|
4
|
+
readonly routeId: string;
|
|
5
|
+
readonly routeKind?: 'apply' | 'review' | 'rerun' | 'reject' | 'rebase' | 'block' | string;
|
|
6
|
+
readonly routeLane?: string;
|
|
7
|
+
readonly routeNext?: string;
|
|
8
|
+
readonly action?: string;
|
|
9
|
+
readonly status?: string;
|
|
10
|
+
readonly source?: string;
|
|
11
|
+
readonly subjectKind?: string;
|
|
12
|
+
readonly branch?: string;
|
|
13
|
+
readonly sourcePath?: string;
|
|
14
|
+
readonly sourcePaths?: readonly string[];
|
|
15
|
+
readonly proofLevel?: string;
|
|
16
|
+
readonly evidenceId?: string;
|
|
17
|
+
readonly conflictKey?: string;
|
|
18
|
+
readonly reasonCodes?: readonly string[];
|
|
19
|
+
readonly requiredEvidence?: readonly string[];
|
|
20
|
+
readonly presentEvidence?: readonly string[];
|
|
21
|
+
readonly missingEvidence?: readonly string[];
|
|
22
|
+
readonly details?: Record<string, unknown>;
|
|
23
|
+
readonly autoMergeClaim: false;
|
|
24
|
+
readonly semanticEquivalenceClaim: false;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface JsTsProjectSafeMergeAdmissionRouteSummary {
|
|
28
|
+
readonly total: number;
|
|
29
|
+
readonly byKind?: Readonly<Record<string, number>>;
|
|
30
|
+
readonly byAction?: Readonly<Record<string, number>>;
|
|
31
|
+
readonly byLane?: Readonly<Record<string, number>>;
|
|
32
|
+
readonly byStatus?: Readonly<Record<string, number>>;
|
|
33
|
+
readonly byRoute?: Readonly<Record<string, number>>;
|
|
34
|
+
readonly nextRoute?: JsTsProjectSafeMergeAdmissionRoute;
|
|
35
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface JsTsProjectCommonJsRuntimeInteropProof {
|
|
2
|
+
readonly id?: string;
|
|
3
|
+
readonly kind?: 'frontier.lang.commonJsRuntimeInteropProof' | string;
|
|
4
|
+
readonly schema?: 'frontier.lang.commonJsRuntimeInteropProof.v1' | string;
|
|
5
|
+
readonly status: 'passed' | 'failed' | string;
|
|
6
|
+
readonly proofLevel?: 'commonjs-runtime-interop' | string;
|
|
7
|
+
readonly sourcePath: string;
|
|
8
|
+
readonly sourceHash: string;
|
|
9
|
+
readonly identityKey?: string;
|
|
10
|
+
readonly moduleSpecifier: string;
|
|
11
|
+
readonly importedName?: string;
|
|
12
|
+
readonly localName?: string;
|
|
13
|
+
readonly importKind?: string;
|
|
14
|
+
readonly commonJs?: boolean;
|
|
15
|
+
readonly interopHelper?: string;
|
|
16
|
+
readonly packageRuntimeCondition?: string;
|
|
17
|
+
readonly packageRuntimeConditionEdgeKind?: string;
|
|
18
|
+
readonly outputTargetSymbolId: string;
|
|
19
|
+
readonly workerTargetSymbolId?: string;
|
|
20
|
+
readonly exportAssignmentShapeHash?: string;
|
|
21
|
+
readonly runtimeTraceHash?: string;
|
|
22
|
+
readonly helperTraceHash?: string;
|
|
23
|
+
readonly evidenceHash: string;
|
|
24
|
+
readonly proofHash?: string;
|
|
25
|
+
readonly autoMergeClaim: false;
|
|
26
|
+
readonly semanticEquivalenceClaim: false;
|
|
27
|
+
readonly runtimeEquivalenceClaim: false;
|
|
28
|
+
readonly runtimeInteropEquivalenceClaim: false;
|
|
29
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type JsTsProjectSafeMergeRecommendedAction = 'apply' | 'review' | 'block' | string;
|
|
2
|
+
|
|
3
|
+
export interface JsTsProjectSafeMergeMissingEvidenceRoute {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly lane: string;
|
|
6
|
+
readonly next: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface JsTsProjectSafeMergeMissingEvidenceTelemetry {
|
|
10
|
+
readonly total: number;
|
|
11
|
+
readonly byScope: Readonly<Record<string, number>>;
|
|
12
|
+
readonly byKind: Readonly<Record<string, number>>;
|
|
13
|
+
readonly byStatus: Readonly<Record<string, number>>;
|
|
14
|
+
readonly byAction: Readonly<Record<string, number>>;
|
|
15
|
+
readonly byRoute: Readonly<Record<string, number>>;
|
|
16
|
+
readonly byLane: Readonly<Record<string, number>>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface JsTsProjectSafeMergeMissingEvidence {
|
|
20
|
+
readonly code: string;
|
|
21
|
+
readonly kind: string;
|
|
22
|
+
readonly scope: string;
|
|
23
|
+
readonly status: 'missing' | string;
|
|
24
|
+
readonly action: 'review' | string;
|
|
25
|
+
readonly proofLevel?: string;
|
|
26
|
+
readonly route?: JsTsProjectSafeMergeMissingEvidenceRoute;
|
|
27
|
+
readonly routeId?: string;
|
|
28
|
+
readonly routeLane?: string;
|
|
29
|
+
readonly routeNext?: string;
|
|
30
|
+
readonly relatedSignals?: readonly string[];
|
|
31
|
+
readonly summary?: string;
|
|
32
|
+
readonly suggestedInput?: Record<string, unknown>;
|
|
33
|
+
readonly autoMergeClaim: false;
|
|
34
|
+
readonly semanticEquivalenceClaim: false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface JsTsProjectSafeMergeConfidenceSummary {
|
|
38
|
+
readonly kind: 'frontier.lang.jsTsProjectMergeConfidence';
|
|
39
|
+
readonly version: 1;
|
|
40
|
+
readonly schema: 'frontier.lang.jsTsProjectMergeConfidence.v1';
|
|
41
|
+
readonly id: string;
|
|
42
|
+
readonly score: number;
|
|
43
|
+
readonly level: string;
|
|
44
|
+
readonly higherIsBetter: true;
|
|
45
|
+
readonly reviewRequired: boolean;
|
|
46
|
+
readonly autoApplyCandidate: boolean;
|
|
47
|
+
readonly recommendedAction: JsTsProjectSafeMergeRecommendedAction;
|
|
48
|
+
readonly reviewRecommended: boolean;
|
|
49
|
+
readonly blockRecommended: boolean;
|
|
50
|
+
readonly autoApplyEvidenceComplete: boolean;
|
|
51
|
+
readonly autoMergeClaim: false;
|
|
52
|
+
readonly semanticEquivalenceClaim: boolean;
|
|
53
|
+
readonly evidenceIds: readonly string[];
|
|
54
|
+
readonly reasonCodes: readonly string[];
|
|
55
|
+
readonly conflictKeys: readonly string[];
|
|
56
|
+
readonly missingSignals: readonly string[];
|
|
57
|
+
readonly nextMissingSignal?: string;
|
|
58
|
+
readonly nextMissingEvidence?: JsTsProjectSafeMergeMissingEvidence;
|
|
59
|
+
readonly missingEvidence: readonly JsTsProjectSafeMergeMissingEvidence[];
|
|
60
|
+
readonly missingEvidenceMatrix: JsTsProjectSafeMergeMissingEvidenceTelemetry;
|
|
61
|
+
readonly routingCalibration: Record<string, unknown>;
|
|
62
|
+
readonly dimensions: Readonly<Record<string, string>>;
|
|
63
|
+
readonly signals: Readonly<Record<string, number>>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type JsTsProjectMergeDeclarationEmitParityProofStatus = 'passed' | 'failed' | string;
|
|
2
|
+
export type JsTsProjectMergeDeclarationEmitParityProofLevel = 'typescript-checker-public-api-declaration-output-boundary' | string;
|
|
3
|
+
|
|
4
|
+
export interface JsTsProjectMergeDeclarationBoundaryFile {
|
|
5
|
+
readonly sourcePath: string;
|
|
6
|
+
readonly sourceHash: string;
|
|
7
|
+
readonly bytes?: number;
|
|
8
|
+
readonly source?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface JsTsProjectMergeDeclarationEmitParityProof {
|
|
12
|
+
readonly kind: 'typescript-checker-public-api-declaration-emit-parity';
|
|
13
|
+
readonly version: 1;
|
|
14
|
+
readonly schema: 'frontier.lang.typescriptDeclarationEmitParityProof.v1';
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly hash: string;
|
|
17
|
+
readonly status: JsTsProjectMergeDeclarationEmitParityProofStatus;
|
|
18
|
+
readonly proofLevel: JsTsProjectMergeDeclarationEmitParityProofLevel;
|
|
19
|
+
readonly workerDeclarationBoundaryHash?: string;
|
|
20
|
+
readonly headDeclarationBoundaryHash?: string;
|
|
21
|
+
readonly outputDeclarationBoundaryHash?: string;
|
|
22
|
+
readonly declarationFileCount: number;
|
|
23
|
+
readonly declarationFiles: readonly JsTsProjectMergeDeclarationBoundaryFile[];
|
|
24
|
+
readonly compilerOptionsHash?: string;
|
|
25
|
+
readonly diagnosticsHash?: string;
|
|
26
|
+
readonly missingSignals: readonly string[];
|
|
27
|
+
readonly reasonCodes: readonly string[];
|
|
28
|
+
readonly autoMergeClaim: false;
|
|
29
|
+
readonly semanticEquivalenceClaim: false;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare function createJsTsProjectMergeDeclarationEmitParityProof(
|
|
33
|
+
input?: Record<string, unknown>,
|
|
34
|
+
files?: readonly { readonly sourcePath?: string; readonly language?: string; readonly baseSourceText?: string; readonly workerSourceText?: string; readonly headSourceText?: string; readonly workerDeleted?: boolean; readonly headDeleted?: boolean }[],
|
|
35
|
+
outputFiles?: readonly { readonly sourcePath?: string; readonly language?: string; readonly sourceText?: string; readonly sourceHash?: string }[],
|
|
36
|
+
id?: string
|
|
37
|
+
): JsTsProjectMergeDeclarationEmitParityProof | undefined;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { EvidenceRecord } from '@shapeshift-labs/frontier-lang-kernel';
|
|
2
|
+
import type { JsTsSafeMergeConflict } from './js-ts-safe-merge.js';
|
|
3
|
+
import type { JsTsProjectMergeDiagnostic } from './js-ts-project-merge-diagnostics.js';
|
|
4
|
+
|
|
5
|
+
export type JsTsProjectMergeDeclarationGateStatus = 'passed' | 'blocked' | 'skipped' | string;
|
|
6
|
+
|
|
7
|
+
export interface JsTsProjectMergeDeclarationFile {
|
|
8
|
+
readonly sourcePath: string;
|
|
9
|
+
readonly sourceText: string;
|
|
10
|
+
readonly sourceHash: string;
|
|
11
|
+
readonly source?: string;
|
|
12
|
+
readonly bytes?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type JsTsProjectMergeDeclarationFiles =
|
|
16
|
+
| Readonly<Record<string, string>>
|
|
17
|
+
| ReadonlyMap<string, string>
|
|
18
|
+
| readonly { readonly sourcePath?: string; readonly path?: string; readonly sourceText?: string; readonly text?: string; readonly source?: string }[];
|
|
19
|
+
|
|
20
|
+
export interface JsTsProjectMergeDeclarationGateInput {
|
|
21
|
+
readonly includeDeclarationOutput?: boolean;
|
|
22
|
+
readonly requireDeclarationOutput?: boolean;
|
|
23
|
+
readonly outputDeclarations?: JsTsProjectMergeDeclarationFiles;
|
|
24
|
+
readonly outputDeclarationFiles?: JsTsProjectMergeDeclarationFiles;
|
|
25
|
+
readonly declarationOutDir?: string;
|
|
26
|
+
readonly declarationCompilerOptions?: Record<string, unknown>;
|
|
27
|
+
readonly typescriptDeclarationCompilerOptions?: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface JsTsProjectMergeDeclarationGate {
|
|
31
|
+
readonly kind: 'frontier.lang.jsTsProjectMergeDeclarationGate';
|
|
32
|
+
readonly version: 1;
|
|
33
|
+
readonly schema: 'frontier.lang.jsTsProjectMergeDeclarationGate.v1';
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly hash: string;
|
|
36
|
+
readonly status: JsTsProjectMergeDeclarationGateStatus;
|
|
37
|
+
readonly sourcePaths: readonly string[];
|
|
38
|
+
readonly declarationFiles: readonly JsTsProjectMergeDeclarationFile[];
|
|
39
|
+
readonly diagnostics: readonly JsTsProjectMergeDiagnostic[];
|
|
40
|
+
readonly conflicts: readonly JsTsSafeMergeConflict[];
|
|
41
|
+
readonly admission: {
|
|
42
|
+
readonly status: 'auto-merge-candidate' | 'blocked' | 'skipped' | string;
|
|
43
|
+
readonly action: 'accept-declarations' | 'human-review' | 'skip-declarations' | string;
|
|
44
|
+
readonly reviewRequired: boolean;
|
|
45
|
+
readonly autoApplyCandidate: boolean;
|
|
46
|
+
readonly autoMergeClaim: false;
|
|
47
|
+
readonly semanticEquivalenceClaim: false;
|
|
48
|
+
readonly reasonCodes: readonly string[];
|
|
49
|
+
};
|
|
50
|
+
readonly summary: {
|
|
51
|
+
readonly declarationFiles: number;
|
|
52
|
+
readonly declarationBytes: number;
|
|
53
|
+
readonly diagnostics: number;
|
|
54
|
+
readonly conflicts: number;
|
|
55
|
+
readonly errors: number;
|
|
56
|
+
readonly warnings: number;
|
|
57
|
+
};
|
|
58
|
+
readonly evidence: readonly EvidenceRecord[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export declare function createJsTsProjectMergeDeclarationGate(
|
|
62
|
+
input?: JsTsProjectMergeDeclarationGateInput & Record<string, unknown>,
|
|
63
|
+
outputFiles?: readonly { readonly sourcePath?: string; readonly sourceText?: string; readonly sourceHash?: string }[],
|
|
64
|
+
id?: string
|
|
65
|
+
): JsTsProjectMergeDeclarationGate | undefined;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { EvidenceRecord, FrontierSourceLanguage } from '@shapeshift-labs/frontier-lang-kernel';
|
|
2
|
+
import type { JsTsSafeMergeConflict } from './js-ts-safe-merge.js';
|
|
3
|
+
|
|
4
|
+
export type JsTsProjectMergeDiagnosticsGateStatus = 'passed' | 'blocked' | string;
|
|
5
|
+
export type JsTsProjectMergeDiagnosticSeverity = 'error' | 'warning' | 'suggestion' | 'message' | string;
|
|
6
|
+
export type JsTsProjectMergeDiagnosticPhase = 'syntax' | 'semantic' | string;
|
|
7
|
+
|
|
8
|
+
export interface JsTsProjectMergeDiagnostic {
|
|
9
|
+
readonly id?: string;
|
|
10
|
+
readonly source?: string;
|
|
11
|
+
readonly code: string;
|
|
12
|
+
readonly severity: JsTsProjectMergeDiagnosticSeverity;
|
|
13
|
+
readonly message: string;
|
|
14
|
+
readonly sourcePath?: string;
|
|
15
|
+
readonly phase?: JsTsProjectMergeDiagnosticPhase;
|
|
16
|
+
readonly syntax?: boolean;
|
|
17
|
+
readonly start?: number;
|
|
18
|
+
readonly end?: number;
|
|
19
|
+
readonly line?: number;
|
|
20
|
+
readonly column?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface JsTsProjectMergeOutputFileForDiagnostics {
|
|
24
|
+
readonly sourcePath?: string;
|
|
25
|
+
readonly language?: FrontierSourceLanguage | string;
|
|
26
|
+
readonly sourceText?: string;
|
|
27
|
+
readonly sourceHash?: string;
|
|
28
|
+
readonly operation?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface JsTsProjectMergeDiagnosticsGateInput {
|
|
32
|
+
readonly id?: string;
|
|
33
|
+
readonly projectRoot?: string;
|
|
34
|
+
readonly typescript?: unknown;
|
|
35
|
+
readonly ts?: unknown;
|
|
36
|
+
readonly typescriptModule?: unknown;
|
|
37
|
+
readonly compilerOptions?: Record<string, unknown>;
|
|
38
|
+
readonly typescriptCompilerOptions?: Record<string, unknown>;
|
|
39
|
+
readonly diagnosticOptions?: {
|
|
40
|
+
readonly syntactic?: boolean;
|
|
41
|
+
readonly semantic?: boolean;
|
|
42
|
+
};
|
|
43
|
+
readonly typescriptDiagnosticOptions?: {
|
|
44
|
+
readonly syntactic?: boolean;
|
|
45
|
+
readonly semantic?: boolean;
|
|
46
|
+
};
|
|
47
|
+
readonly requireOutputDiagnostics?: boolean;
|
|
48
|
+
readonly requireOutputSyntaxDiagnostics?: boolean;
|
|
49
|
+
readonly requireOutputSyntaxGate?: boolean;
|
|
50
|
+
readonly requireMergedOutputSyntaxDiagnostics?: boolean;
|
|
51
|
+
readonly requireSyntaxGate?: boolean;
|
|
52
|
+
readonly outputDiagnostics?: readonly JsTsProjectMergeDiagnostic[] | JsTsProjectMergeDiagnostic;
|
|
53
|
+
readonly outputSyntaxDiagnostics?: readonly JsTsProjectMergeDiagnostic[] | JsTsProjectMergeDiagnostic;
|
|
54
|
+
readonly mergedOutputSyntaxDiagnostics?: readonly JsTsProjectMergeDiagnostic[] | JsTsProjectMergeDiagnostic;
|
|
55
|
+
readonly syntaxDiagnostics?: {
|
|
56
|
+
readonly output?: readonly JsTsProjectMergeDiagnostic[] | JsTsProjectMergeDiagnostic;
|
|
57
|
+
readonly merged?: readonly JsTsProjectMergeDiagnostic[] | JsTsProjectMergeDiagnostic;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface JsTsProjectMergeDiagnosticsGate {
|
|
62
|
+
readonly kind: 'frontier.lang.jsTsProjectMergeDiagnosticsGate';
|
|
63
|
+
readonly version: 1;
|
|
64
|
+
readonly schema: 'frontier.lang.jsTsProjectMergeDiagnosticsGate.v1';
|
|
65
|
+
readonly id: string;
|
|
66
|
+
readonly hash: string;
|
|
67
|
+
readonly status: JsTsProjectMergeDiagnosticsGateStatus;
|
|
68
|
+
readonly sourcePaths: readonly string[];
|
|
69
|
+
readonly diagnostics: readonly JsTsProjectMergeDiagnostic[];
|
|
70
|
+
readonly conflicts: readonly JsTsSafeMergeConflict[];
|
|
71
|
+
readonly admission: {
|
|
72
|
+
readonly status: 'auto-merge-candidate' | 'blocked' | string;
|
|
73
|
+
readonly action: 'accept-diagnostics' | 'human-review' | string;
|
|
74
|
+
readonly reviewRequired: boolean;
|
|
75
|
+
readonly autoApplyCandidate: boolean;
|
|
76
|
+
readonly autoMergeClaim: false;
|
|
77
|
+
readonly semanticEquivalenceClaim: false;
|
|
78
|
+
readonly reasonCodes: readonly string[];
|
|
79
|
+
};
|
|
80
|
+
readonly summary: {
|
|
81
|
+
readonly diagnostics: number;
|
|
82
|
+
readonly conflicts: number;
|
|
83
|
+
readonly errors: number;
|
|
84
|
+
readonly warnings: number;
|
|
85
|
+
readonly syntaxErrors: number;
|
|
86
|
+
readonly bySeverity: Readonly<Record<string, number>>;
|
|
87
|
+
readonly bySource: Readonly<Record<string, number>>;
|
|
88
|
+
readonly byPhase: Readonly<Record<string, number>>;
|
|
89
|
+
};
|
|
90
|
+
readonly evidence: readonly EvidenceRecord[];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export declare function createJsTsProjectMergeDiagnosticsGate(
|
|
94
|
+
input?: JsTsProjectMergeDiagnosticsGateInput,
|
|
95
|
+
outputFiles?: readonly JsTsProjectMergeOutputFileForDiagnostics[],
|
|
96
|
+
id?: string
|
|
97
|
+
): JsTsProjectMergeDiagnosticsGate | undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface JsTsProjectGlobalAugmentationCompatibilityProof {
|
|
2
|
+
readonly id?: string;
|
|
3
|
+
readonly kind?: 'frontier.lang.globalAugmentationCompatibilityProof' | string;
|
|
4
|
+
readonly schema?: 'frontier.lang.globalAugmentationCompatibilityProof.v1' | string;
|
|
5
|
+
readonly version?: 1;
|
|
6
|
+
readonly status: 'passed' | 'failed' | 'missing' | 'stale' | string;
|
|
7
|
+
readonly surfaceKind: 'global-augmentation' | string;
|
|
8
|
+
readonly sourcePath: string;
|
|
9
|
+
readonly sourceHash?: string;
|
|
10
|
+
readonly sourceHashes?: readonly string[];
|
|
11
|
+
readonly moduleName: 'global' | string;
|
|
12
|
+
readonly moduleDeclarationRecordId?: string;
|
|
13
|
+
readonly moduleDeclarationShapeHash?: string;
|
|
14
|
+
readonly moduleDeclarationSignatureHash?: string;
|
|
15
|
+
readonly sourceSpanHash?: string;
|
|
16
|
+
readonly declarationOutputGateId: string;
|
|
17
|
+
readonly declarationOutputHash: string;
|
|
18
|
+
readonly declarationEmitParityProofId?: string;
|
|
19
|
+
readonly consumerDiagnosticsGateId: string;
|
|
20
|
+
readonly consumerDiagnosticsHash: string;
|
|
21
|
+
readonly consumerEntrypoints: readonly string[];
|
|
22
|
+
readonly consumerDiagnosticsPassed: true;
|
|
23
|
+
readonly proofHash?: string;
|
|
24
|
+
readonly evidenceIds?: readonly string[];
|
|
25
|
+
readonly globalCompatibilityClaim: 'declaration-boundary-consumer-diagnostics-only';
|
|
26
|
+
readonly hostRuntimeInteractionClaim: false;
|
|
27
|
+
readonly autoMergeClaim: false;
|
|
28
|
+
readonly runtimeEquivalenceClaim: false;
|
|
29
|
+
readonly semanticEquivalenceClaim: false;
|
|
30
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type JsTsProjectJsxRenderReturnBranchControlKind = 'conditional-expression' | 'logical-expression' | string;
|
|
2
|
+
export type JsTsProjectJsxRenderReturnBranchArmOrigin = 'base' | 'worker' | 'head' | 'output' | string;
|
|
3
|
+
|
|
4
|
+
export interface JsTsProjectJsxRenderReturnBranchProof {
|
|
5
|
+
readonly id?: string;
|
|
6
|
+
readonly kind?: 'frontier.lang.jsxRenderReturnBranchProof' | string;
|
|
7
|
+
readonly schema?: 'frontier.lang.jsxRenderReturnBranchProof.v1' | string;
|
|
8
|
+
readonly version?: 1;
|
|
9
|
+
readonly status: 'passed' | 'verified' | 'failed' | 'missing' | 'stale' | string;
|
|
10
|
+
readonly evidenceId?: string;
|
|
11
|
+
readonly evidenceIds?: readonly string[];
|
|
12
|
+
readonly sourcePath: string;
|
|
13
|
+
readonly identityKey?: string;
|
|
14
|
+
readonly baseSourceHash: string;
|
|
15
|
+
readonly workerSourceHash: string;
|
|
16
|
+
readonly headSourceHash: string;
|
|
17
|
+
readonly outputSourceHash: string;
|
|
18
|
+
readonly publicOwnerName?: string;
|
|
19
|
+
readonly tagName?: string;
|
|
20
|
+
readonly tagKey?: string;
|
|
21
|
+
readonly returnOrdinal?: number;
|
|
22
|
+
readonly returnKind?: string;
|
|
23
|
+
readonly branchControlKind: JsTsProjectJsxRenderReturnBranchControlKind;
|
|
24
|
+
readonly conditionHash?: string;
|
|
25
|
+
readonly outputConditionHash?: string;
|
|
26
|
+
readonly consequentHash?: string;
|
|
27
|
+
readonly outputConsequentHash?: string;
|
|
28
|
+
readonly consequentOrigin?: JsTsProjectJsxRenderReturnBranchArmOrigin;
|
|
29
|
+
readonly alternateHash?: string;
|
|
30
|
+
readonly outputAlternateHash?: string;
|
|
31
|
+
readonly alternateOrigin?: JsTsProjectJsxRenderReturnBranchArmOrigin;
|
|
32
|
+
readonly operator?: string;
|
|
33
|
+
readonly leftHash?: string;
|
|
34
|
+
readonly outputLeftHash?: string;
|
|
35
|
+
readonly leftOrigin?: JsTsProjectJsxRenderReturnBranchArmOrigin;
|
|
36
|
+
readonly rightHash?: string;
|
|
37
|
+
readonly outputRightHash?: string;
|
|
38
|
+
readonly rightOrigin?: JsTsProjectJsxRenderReturnBranchArmOrigin;
|
|
39
|
+
readonly renderReturnSignatureHash?: string;
|
|
40
|
+
readonly branchArmPreservationHash: string;
|
|
41
|
+
readonly proofHash?: string;
|
|
42
|
+
readonly autoMergeClaim: false;
|
|
43
|
+
readonly semanticEquivalenceClaim: false;
|
|
44
|
+
readonly runtimeEquivalenceClaim: false;
|
|
45
|
+
readonly renderEquivalenceClaim: false;
|
|
46
|
+
readonly branchArmPreservationClaim: true;
|
|
47
|
+
readonly claimScope: 'static-render-return-branch-arm-preservation-only';
|
|
48
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export type JsTsProjectMergeProofLevel =
|
|
2
|
+
| 'syntax-identity'
|
|
3
|
+
| 'source-span-roundtrip'
|
|
4
|
+
| 'semantic-edit-replay-clean'
|
|
5
|
+
| 'parser-roundtrip'
|
|
6
|
+
| 'diagnostics-clean'
|
|
7
|
+
| 'declaration-output-stable'
|
|
8
|
+
| 'focused-test-passed'
|
|
9
|
+
| 'manifest-metadata-validated'
|
|
10
|
+
| 'local-checkout-metadata-proof'
|
|
11
|
+
| 'dependency-install-not-run-default'
|
|
12
|
+
| 'repository-commands-not-run-default'
|
|
13
|
+
| 'semantic-equivalence-external'
|
|
14
|
+
| 'semantic-equivalence-unknown'
|
|
15
|
+
| string;
|
|
16
|
+
|
|
17
|
+
export type JsTsProjectMergeProofEvidenceStatus = 'evidence-only' | 'review-evidence-missing' | 'failed-evidence' | string;
|
|
18
|
+
export type JsTsProjectMergeProofEvidenceRecordStatus = 'passed' | 'failed' | 'skipped' | 'unknown' | string;
|
|
19
|
+
|
|
20
|
+
export interface JsTsProjectMergeProofMissingEvidence {
|
|
21
|
+
readonly code?: string;
|
|
22
|
+
readonly kind: 'proof-level' | string;
|
|
23
|
+
readonly scope?: string;
|
|
24
|
+
readonly status: 'missing' | 'unknown' | string;
|
|
25
|
+
readonly proofLevel?: JsTsProjectMergeProofLevel;
|
|
26
|
+
readonly action: 'review' | string;
|
|
27
|
+
readonly route?: { readonly id: string; readonly lane: string; readonly next: string };
|
|
28
|
+
readonly routeId?: string;
|
|
29
|
+
readonly routeLane?: string;
|
|
30
|
+
readonly routeNext?: string;
|
|
31
|
+
readonly evidenceId?: string;
|
|
32
|
+
readonly summary?: string;
|
|
33
|
+
readonly nextAction?: string;
|
|
34
|
+
readonly autoMergeClaim: false;
|
|
35
|
+
readonly semanticEquivalenceClaim: false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface JsTsProjectMergeProofEvidenceRecord {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly kind: 'js-ts-project-merge-proof-evidence';
|
|
41
|
+
readonly level: JsTsProjectMergeProofLevel;
|
|
42
|
+
readonly status: JsTsProjectMergeProofEvidenceRecordStatus;
|
|
43
|
+
readonly scope: string;
|
|
44
|
+
readonly claimKind: 'evidence' | 'semantic-equivalence-upper-bound' | string;
|
|
45
|
+
readonly evidenceOnly: boolean;
|
|
46
|
+
readonly proofClaim: boolean;
|
|
47
|
+
readonly autoMergeClaim: false;
|
|
48
|
+
readonly semanticEquivalenceClaim: boolean;
|
|
49
|
+
readonly summary: string;
|
|
50
|
+
readonly metadata?: Record<string, unknown> & {
|
|
51
|
+
readonly proofClaim?: boolean;
|
|
52
|
+
readonly autoMergeClaim?: false;
|
|
53
|
+
readonly semanticEquivalenceClaim?: boolean;
|
|
54
|
+
readonly missingSignal?: string;
|
|
55
|
+
readonly nextAction?: string;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface JsTsProjectMergeProofEvidenceSummary {
|
|
60
|
+
readonly records: number;
|
|
61
|
+
readonly passed: number;
|
|
62
|
+
readonly failed: number;
|
|
63
|
+
readonly skipped: number;
|
|
64
|
+
readonly unknown: number;
|
|
65
|
+
readonly evidenceLevels: readonly JsTsProjectMergeProofLevel[];
|
|
66
|
+
readonly passedLevels: readonly JsTsProjectMergeProofLevel[];
|
|
67
|
+
readonly failedLevels: readonly JsTsProjectMergeProofLevel[];
|
|
68
|
+
readonly skippedLevels: readonly JsTsProjectMergeProofLevel[];
|
|
69
|
+
readonly unknownLevels: readonly JsTsProjectMergeProofLevel[];
|
|
70
|
+
readonly missingLevels: readonly JsTsProjectMergeProofLevel[];
|
|
71
|
+
readonly unsupportedSurfaceEvidenceCount?: number;
|
|
72
|
+
readonly unsupportedSurfaceKinds?: readonly string[];
|
|
73
|
+
readonly unsupportedSurfaceReasonCodes?: readonly string[];
|
|
74
|
+
readonly unsupportedSurfaceProofGapRouteIds?: readonly string[];
|
|
75
|
+
readonly unsupportedSurfaceProofGapRouteLanes?: readonly string[];
|
|
76
|
+
readonly unsupportedSurfaceProofGapRouteCounts?: Readonly<Record<string, number>>;
|
|
77
|
+
readonly unsupportedSurfaceProofGapRouteLaneCounts?: Readonly<Record<string, number>>;
|
|
78
|
+
readonly nextUnsupportedSurfaceProofGapRouteId?: string;
|
|
79
|
+
readonly nextUnsupportedSurfaceProofGapRouteLane?: string;
|
|
80
|
+
readonly nextUnsupportedSurfaceProofGapCode?: string;
|
|
81
|
+
readonly missingEvidence: readonly JsTsProjectMergeProofMissingEvidence[];
|
|
82
|
+
readonly nextMissingEvidence?: JsTsProjectMergeProofMissingEvidence;
|
|
83
|
+
readonly semanticEquivalenceLevel: 'semantic-equivalence-unknown' | string;
|
|
84
|
+
readonly semanticEquivalenceClaim: boolean;
|
|
85
|
+
readonly evidenceOnly: true;
|
|
86
|
+
readonly proofClaims: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface JsTsProjectMergeProofEvidence {
|
|
90
|
+
readonly kind: 'frontier.lang.jsTsProjectMergeProofEvidence';
|
|
91
|
+
readonly version: 1;
|
|
92
|
+
readonly schema: 'frontier.lang.jsTsProjectMergeProofEvidence.v1';
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly hash: string;
|
|
95
|
+
readonly status: JsTsProjectMergeProofEvidenceStatus;
|
|
96
|
+
readonly semanticEquivalenceLevel: 'semantic-equivalence-unknown' | string;
|
|
97
|
+
readonly autoMergeClaim: false;
|
|
98
|
+
readonly semanticEquivalenceClaim: boolean;
|
|
99
|
+
readonly records: readonly JsTsProjectMergeProofEvidenceRecord[];
|
|
100
|
+
readonly summary: JsTsProjectMergeProofEvidenceSummary;
|
|
101
|
+
readonly metadata?: Record<string, unknown> & {
|
|
102
|
+
readonly evidenceOnly?: true;
|
|
103
|
+
readonly proofClaims?: number;
|
|
104
|
+
readonly missingLevels?: readonly JsTsProjectMergeProofLevel[];
|
|
105
|
+
readonly nextMissingEvidence?: JsTsProjectMergeProofMissingEvidence;
|
|
106
|
+
readonly autoMergeClaim?: false;
|
|
107
|
+
readonly semanticEquivalenceClaim?: boolean;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { JsTsSafeMergeConflict } from './js-ts-safe-merge.js';
|
|
2
|
+
export type JsTsProjectMergeQualityGateCategory = 'lint' | 'format' | 'test' | 'build' | string;
|
|
3
|
+
export interface JsTsProjectMergeQualityGateInput {
|
|
4
|
+
readonly id?: string; readonly gateId?: string; readonly category?: JsTsProjectMergeQualityGateCategory;
|
|
5
|
+
readonly status?: string; readonly result?: string; readonly command?: string; readonly artifactPath?: string; readonly path?: string;
|
|
6
|
+
readonly evidenceId?: string; readonly summary?: string | Record<string, unknown>; readonly reasonCode?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface JsTsProjectMergeQualityGateRecord {
|
|
9
|
+
readonly id: string; readonly category: JsTsProjectMergeQualityGateCategory; readonly status: string; readonly command?: string;
|
|
10
|
+
readonly artifactPath?: string; readonly evidenceId?: string; readonly summary?: string | Record<string, unknown>; readonly reasonCode?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface JsTsProjectMergeQualityGateEvidence {
|
|
13
|
+
readonly id: string; readonly kind: string; readonly status: 'passed' | 'failed' | string; readonly summary: string;
|
|
14
|
+
readonly metadata?: Record<string, unknown> & {
|
|
15
|
+
readonly gateId?: string; readonly category?: JsTsProjectMergeQualityGateCategory; readonly command?: string; readonly artifactPath?: string;
|
|
16
|
+
readonly admissionAction?: 'apply' | 'block' | string; readonly nextMissingEvidence?: JsTsProjectMergeQualityGateMissingEvidence;
|
|
17
|
+
readonly autoMergeClaim?: false; readonly semanticEquivalenceClaim?: false;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface JsTsProjectMergeQualityGateMissingEvidence {
|
|
21
|
+
readonly code?: string; readonly kind: 'quality-gate' | string; readonly scope: 'quality-gates' | string;
|
|
22
|
+
readonly status: 'missing-or-failed' | string; readonly action: 'rerun-gate' | string;
|
|
23
|
+
readonly gateId?: string; readonly category?: JsTsProjectMergeQualityGateCategory; readonly command?: string; readonly artifactPath?: string;
|
|
24
|
+
readonly summary?: string; readonly autoMergeClaim: false; readonly semanticEquivalenceClaim: false;
|
|
25
|
+
}
|
|
26
|
+
export interface JsTsProjectMergeQualityGateDecision {
|
|
27
|
+
readonly status: 'passed' | 'blocked' | string; readonly action: 'apply' | 'block' | string;
|
|
28
|
+
readonly reviewRequired: boolean; readonly autoApplyCandidate: boolean; readonly reasonCodes: readonly string[];
|
|
29
|
+
readonly nextMissingEvidence?: JsTsProjectMergeQualityGateMissingEvidence;
|
|
30
|
+
readonly autoMergeClaim: false; readonly semanticEquivalenceClaim: false;
|
|
31
|
+
}
|
|
32
|
+
export interface JsTsProjectMergeQualityGate {
|
|
33
|
+
readonly kind: 'frontier.lang.jsTsProjectMergeQualityGate'; readonly version: 1; readonly id: string; readonly status: 'passed' | 'blocked';
|
|
34
|
+
readonly gates: readonly JsTsProjectMergeQualityGateRecord[]; readonly conflicts: readonly JsTsSafeMergeConflict[];
|
|
35
|
+
readonly evidence: readonly JsTsProjectMergeQualityGateEvidence[];
|
|
36
|
+
readonly decision: JsTsProjectMergeQualityGateDecision;
|
|
37
|
+
readonly summary: { readonly gates: number; readonly passed: number; readonly failed: number; readonly lint: number; readonly format: number; readonly test: number; readonly build: number; };
|
|
38
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type JsTsProjectSemanticEquivalenceProofClaimBoundary = 'exact-js-ts-project-source-output-and-gates';
|
|
2
|
+
export type JsTsProjectSemanticEquivalenceProofLevel = 'semantic-equivalence-external';
|
|
3
|
+
|
|
4
|
+
export interface JsTsProjectSemanticEquivalenceProofFileBinding {
|
|
5
|
+
readonly sourcePath: string;
|
|
6
|
+
readonly operation?: string;
|
|
7
|
+
readonly baseHash?: string;
|
|
8
|
+
readonly workerHash?: string;
|
|
9
|
+
readonly headHash?: string;
|
|
10
|
+
readonly outputHash?: string;
|
|
11
|
+
readonly deletedOutput?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface JsTsProjectSemanticEquivalenceProofGateBinding {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly status: 'passed' | string;
|
|
17
|
+
readonly hash: string;
|
|
18
|
+
readonly gateIds?: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface JsTsProjectSemanticEquivalenceProof {
|
|
22
|
+
readonly id?: string;
|
|
23
|
+
readonly kind?: 'frontier.lang.jsTsProjectSemanticEquivalenceProof' | string;
|
|
24
|
+
readonly schema?: 'frontier.lang.jsTsProjectSemanticEquivalenceProof.v1' | string;
|
|
25
|
+
readonly status: 'passed' | 'verified' | 'failed' | string;
|
|
26
|
+
readonly evidenceId?: string;
|
|
27
|
+
readonly verifier?: { readonly name?: string; readonly version?: string; readonly [key: string]: unknown };
|
|
28
|
+
readonly command?: string;
|
|
29
|
+
readonly artifactHash?: string;
|
|
30
|
+
readonly projectId: string;
|
|
31
|
+
readonly language?: string;
|
|
32
|
+
readonly sourceFileBindings: readonly JsTsProjectSemanticEquivalenceProofFileBinding[];
|
|
33
|
+
readonly sourceSetHash: string;
|
|
34
|
+
readonly outputSetHash: string;
|
|
35
|
+
readonly gates: {
|
|
36
|
+
readonly diagnostics: JsTsProjectSemanticEquivalenceProofGateBinding;
|
|
37
|
+
readonly declarations: JsTsProjectSemanticEquivalenceProofGateBinding;
|
|
38
|
+
readonly quality: JsTsProjectSemanticEquivalenceProofGateBinding;
|
|
39
|
+
};
|
|
40
|
+
readonly proofHash: string;
|
|
41
|
+
readonly claimKind: 'external-semantic-equivalence';
|
|
42
|
+
readonly claimBoundary: JsTsProjectSemanticEquivalenceProofClaimBoundary;
|
|
43
|
+
readonly semanticEquivalenceClaim: true;
|
|
44
|
+
readonly autoMergeClaim: false;
|
|
45
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface JsTsProjectReferenceInput {
|
|
2
|
+
readonly path?: string;
|
|
3
|
+
readonly originalPath?: string;
|
|
4
|
+
readonly sourcePath?: string;
|
|
5
|
+
readonly prepend?: boolean;
|
|
6
|
+
readonly circular?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type JsTsProjectReferencesInput = readonly (string | JsTsProjectReferenceInput)[];
|
|
10
|
+
|
|
11
|
+
export interface JsTsProjectTsconfigInput {
|
|
12
|
+
readonly compilerOptions?: Record<string, unknown>;
|
|
13
|
+
readonly references?: JsTsProjectReferencesInput;
|
|
14
|
+
readonly [key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type JsTsProjectCompilerOptionMetadata = Readonly<Record<string, unknown>>;
|
|
18
|
+
|
|
19
|
+
export interface JsTsProjectCompilerOptionSourceMetadata {
|
|
20
|
+
readonly source: string;
|
|
21
|
+
readonly compilerOptions?: JsTsProjectCompilerOptionMetadata;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface JsTsProjectReferenceMetadata {
|
|
25
|
+
readonly path: string;
|
|
26
|
+
readonly originalPath?: string;
|
|
27
|
+
readonly prepend?: boolean;
|
|
28
|
+
readonly circular?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface JsTsProjectCompilerMetadata {
|
|
32
|
+
readonly diagnosticSource?: string;
|
|
33
|
+
readonly compilerOptions?: JsTsProjectCompilerOptionMetadata;
|
|
34
|
+
readonly compilerOptionSources?: readonly JsTsProjectCompilerOptionSourceMetadata[];
|
|
35
|
+
readonly projectReferences?: readonly JsTsProjectReferenceMetadata[];
|
|
36
|
+
readonly projectReferenceCount?: number;
|
|
37
|
+
readonly tsconfigCompilerOptions?: JsTsProjectCompilerOptionMetadata;
|
|
38
|
+
readonly tsconfigReferences?: readonly JsTsProjectReferenceMetadata[];
|
|
39
|
+
readonly hasTypescriptCompilerApi?: boolean;
|
|
40
|
+
readonly hasOptionsOverride?: boolean;
|
|
41
|
+
readonly rootNames?: readonly string[];
|
|
42
|
+
readonly sourceFiles?: number;
|
|
43
|
+
}
|