@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,30 @@
|
|
|
1
|
+
export interface NativeProjectRuntimeOrderPromiseChainRecord {
|
|
2
|
+
readonly kind?: 'promise-chain' | string;
|
|
3
|
+
readonly regionRole?: 'source-promise' | 'chain-expression' | 'chain-handler' | string;
|
|
4
|
+
readonly handlerMethodName?: 'then' | 'catch' | 'finally' | string;
|
|
5
|
+
readonly handlerStepOrdinal?: number;
|
|
6
|
+
readonly chainMethods?: readonly string[];
|
|
7
|
+
readonly stepCount?: number;
|
|
8
|
+
readonly hasThen?: boolean;
|
|
9
|
+
readonly hasCatch?: boolean;
|
|
10
|
+
readonly hasFinally?: boolean;
|
|
11
|
+
readonly chainText?: string;
|
|
12
|
+
readonly steps?: readonly NativeProjectRuntimeOrderPromiseChainStepRecord[];
|
|
13
|
+
readonly regionWithinPromiseChain?: boolean;
|
|
14
|
+
readonly handlerExecutionEquivalenceClaim?: false;
|
|
15
|
+
readonly runtimeEquivalenceClaim?: false;
|
|
16
|
+
readonly semanticEquivalenceClaim?: false;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface NativeProjectRuntimeOrderPromiseChainStepRecord {
|
|
20
|
+
readonly ordinal?: number;
|
|
21
|
+
readonly methodName?: 'then' | 'catch' | 'finally' | string;
|
|
22
|
+
readonly handlerText?: string;
|
|
23
|
+
readonly handlerOrdinal?: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare module './native-project-compiler-scope.js' {
|
|
27
|
+
interface NativeProjectRuntimeOrderEvidence {
|
|
28
|
+
readonly sameLinePromiseChain?: readonly NativeProjectRuntimeOrderPromiseChainRecord[];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface NativeProjectRuntimeOrderPromiseCombinatorRecord {
|
|
2
|
+
readonly kind?: 'promise-combinator' | string;
|
|
3
|
+
readonly methodName?: 'all' | 'allSettled' | 'race' | 'any' | string;
|
|
4
|
+
readonly concurrencySemantics?: string;
|
|
5
|
+
readonly settlementPolicy?: string;
|
|
6
|
+
readonly callText?: string;
|
|
7
|
+
readonly argumentOrdinal?: number;
|
|
8
|
+
readonly argumentText?: string;
|
|
9
|
+
readonly directArrayArgument?: boolean;
|
|
10
|
+
readonly arrayElementOrdinal?: number;
|
|
11
|
+
readonly arrayElementCount?: number;
|
|
12
|
+
readonly arrayElementText?: string;
|
|
13
|
+
readonly regionWithinCombinator?: boolean;
|
|
14
|
+
readonly runtimeEquivalenceClaim?: false;
|
|
15
|
+
readonly semanticEquivalenceClaim?: false;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare module './native-project-compiler-scope.js' {
|
|
19
|
+
interface NativeProjectRuntimeOrderEvidence {
|
|
20
|
+
readonly sameLinePromiseCombinator?: readonly NativeProjectRuntimeOrderPromiseCombinatorRecord[];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface NativeProjectRuntimeOrderReachabilityRecord {
|
|
2
|
+
readonly kind?: 'same-block-unreachable-after-completion' | string;
|
|
3
|
+
readonly status?: 'unreachable' | string;
|
|
4
|
+
readonly proofLevel?: 'lexical-same-block-completion' | string;
|
|
5
|
+
readonly targetLine?: number;
|
|
6
|
+
readonly completionKind?: 'return' | 'throw' | 'break' | 'continue' | string;
|
|
7
|
+
readonly completionLine?: number;
|
|
8
|
+
readonly completionText?: string;
|
|
9
|
+
readonly completionLabel?: string;
|
|
10
|
+
readonly completionProofLevel?: string;
|
|
11
|
+
readonly blockLine?: number;
|
|
12
|
+
readonly ifLine?: number;
|
|
13
|
+
readonly elseLine?: number;
|
|
14
|
+
readonly elseIfLines?: readonly number[];
|
|
15
|
+
readonly branchLineNumbers?: readonly number[];
|
|
16
|
+
readonly branchCompletionKinds?: readonly string[];
|
|
17
|
+
readonly branchCompletionTexts?: readonly string[];
|
|
18
|
+
readonly branchCompletionProofLevels?: readonly string[];
|
|
19
|
+
readonly boundedNestedPathEvidence?: true;
|
|
20
|
+
readonly staticReachabilityEvidence?: true;
|
|
21
|
+
readonly fullPathReachabilityClaim?: false;
|
|
22
|
+
readonly runtimeEquivalenceClaim?: false;
|
|
23
|
+
readonly semanticEquivalenceClaim?: false;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare module './native-project-compiler-scope.js' {
|
|
27
|
+
interface NativeProjectRuntimeOrderEvidence {
|
|
28
|
+
readonly reachabilityOrder?: readonly NativeProjectRuntimeOrderReachabilityRecord[];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface NativeProjectRuntimeOrderResourceManagementRecord {
|
|
2
|
+
readonly kind?: 'resource-management' | string;
|
|
3
|
+
readonly name?: string;
|
|
4
|
+
readonly declarationKind?: 'using' | 'await-using' | string;
|
|
5
|
+
readonly awaitUsing?: boolean;
|
|
6
|
+
readonly line?: number;
|
|
7
|
+
readonly column?: number;
|
|
8
|
+
readonly acquisitionOrderIndex?: number;
|
|
9
|
+
readonly disposalOrderIndex?: number;
|
|
10
|
+
readonly disposalOrder?: 'reverse-lexical-scope' | string;
|
|
11
|
+
readonly scopeStartLine?: number;
|
|
12
|
+
readonly scopeExitLine?: number;
|
|
13
|
+
readonly declarationText?: string;
|
|
14
|
+
readonly initializerText?: string;
|
|
15
|
+
readonly focusedDeclaration?: boolean;
|
|
16
|
+
readonly disposalMethodPolicy?: 'Symbol.dispose' | 'Symbol.asyncDispose-or-Symbol.dispose' | string;
|
|
17
|
+
readonly staticResourceManagementEvidence?: boolean;
|
|
18
|
+
readonly runtimeEquivalenceClaim?: false;
|
|
19
|
+
readonly disposalEffectEquivalenceClaim?: false;
|
|
20
|
+
readonly semanticEquivalenceClaim?: false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare module './native-project-compiler-scope.js' {
|
|
24
|
+
interface NativeProjectRuntimeOrderEvidence {
|
|
25
|
+
readonly resourceManagementOrder?: readonly NativeProjectRuntimeOrderResourceManagementRecord[];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface NativeProjectRuntimeOrderYieldDelegationRecord {
|
|
2
|
+
readonly delegationKind?: 'iterator-delegation' | string;
|
|
3
|
+
readonly delegatedIterableText?: string;
|
|
4
|
+
readonly iteratorProtocolEquivalenceClaim?: false;
|
|
5
|
+
readonly delegatedCompletionPropagationClaim?: false;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare module './native-project-compiler-scope.js' {
|
|
9
|
+
interface NativeProjectRuntimeOrderExitRecord extends NativeProjectRuntimeOrderYieldDelegationRecord {}
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare module './native-project-compiler-scope.js' {
|
|
2
|
+
interface NativeProjectSymbolGraphScopeReferenceRecord {
|
|
3
|
+
readonly templateLiteralKind?: 'template-literal' | 'tagged-template' | string;
|
|
4
|
+
readonly taggedTemplate?: boolean;
|
|
5
|
+
readonly templateTagText?: string;
|
|
6
|
+
readonly templateTagRoot?: string;
|
|
7
|
+
readonly templateTagMemberName?: string;
|
|
8
|
+
readonly templateTagStart?: number;
|
|
9
|
+
readonly templateTagEnd?: number;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FrontierSourceLanguage, SourceSpan } from '@shapeshift-labs/frontier-lang-kernel';
|
|
2
|
+
import type { ParserTriviaOwnershipRelation, ParserTriviaOwnershipStatus } from './source-preservation.js';
|
|
3
|
+
|
|
4
|
+
export interface NativeProjectSourceOwnershipAnchor { readonly schema?: 'frontier.lang.sourceOwnershipAnchor.v1' | string; readonly version?: 1; readonly mode?: string; readonly key?: string; readonly identityKey?: string; readonly identityAnchor?: string; readonly identityOccurrence?: number; readonly anchorKind?: string; readonly sourcePath?: string; readonly sourceHash?: string; readonly role?: string; readonly kind?: string; readonly textHash?: string; readonly textLength?: number; readonly start?: number; readonly end?: number; readonly startLine?: number; readonly startColumn?: number; readonly endLine?: number; readonly endColumn?: number; readonly spanHash?: string; readonly boundaryBefore?: NativeProjectSourceOwnershipBoundary; readonly boundaryAfter?: NativeProjectSourceOwnershipBoundary; readonly insertionAnchor?: NativeProjectSourceInsertionAnchor; readonly parserEvidence?: string; readonly losslessCst?: boolean; readonly parserTriviaExactnessStatus?: string; readonly exactParserTrivia?: boolean; readonly parserTriviaEvidenceId?: string; readonly parserTriviaAdapterId?: string; readonly parserTriviaExactnessReasonCodes?: readonly string[]; readonly parserTriviaExactnessBlockReasonCodes?: readonly string[]; readonly parserTriviaOwnershipStatus?: ParserTriviaOwnershipStatus; readonly parserTriviaOwnershipRelation?: ParserTriviaOwnershipRelation; readonly parserTriviaOwnershipReasonCodes?: readonly string[]; readonly parserTriviaOwnershipBlockReasonCodes?: readonly string[]; }
|
|
5
|
+
export interface NativeProjectSourceOwnershipBoundary { readonly key?: string; readonly role?: string; readonly kind?: string; readonly textHash?: string; readonly startLine?: number; readonly startColumn?: number; readonly endLine?: number; readonly endColumn?: number; }
|
|
6
|
+
export interface NativeProjectSourceInsertionAnchor { readonly mode?: string; readonly anchorKind?: string; readonly before?: NativeProjectSourceOwnershipBoundary; readonly after?: NativeProjectSourceOwnershipBoundary; readonly reasonCodes?: readonly string[]; }
|
|
7
|
+
export interface NativeProjectSymbolGraphSourceFileRecord { readonly id: string; readonly sourcePath?: string; readonly language?: FrontierSourceLanguage | string; readonly sourceHash?: string; readonly preservationId?: string; readonly sourceBytes?: number; readonly lineCount?: number; readonly newline?: string; readonly encoding?: string; readonly exactSourceAvailable?: boolean; readonly tokenCount?: number; readonly triviaCount?: number; readonly directiveCount?: number; readonly commentCount?: number; readonly whitespaceCount?: number; readonly sourceMapCommentCount?: number; readonly protectedRegionCount?: number; readonly importExportSpanCount?: number; readonly braceCount?: number; readonly truncated?: boolean; readonly sourceTextHash?: string; readonly roundtripHash?: string; readonly parserEvidence?: string; readonly losslessCst?: boolean; readonly parserTriviaExactnessStatus?: string; readonly exactParserTrivia?: boolean; readonly parserTriviaEvidenceId?: string; readonly parserTriviaAdapterId?: string; readonly parserTriviaExactnessReasonCodes?: readonly string[]; readonly parserTriviaExactnessBlockReasonCodes?: readonly string[]; readonly sourceLedgerAvailable?: boolean; readonly triviaOwnershipStatus?: string; readonly triviaOwnershipReasonCodes?: readonly string[]; readonly triviaOwnershipBlockReasonCodes?: readonly string[]; readonly ownershipAnchorMode?: string; readonly generatedSourceBoundaryEvidence?: string; readonly shapeHash?: string; }
|
|
8
|
+
export interface NativeProjectSymbolGraphSourceSpanRecord { readonly id: string; readonly stableId?: string; readonly identityKey?: string; readonly sourcePath?: string; readonly sourceHash?: string; readonly preservationId?: string; readonly sourceSpan?: SourceSpan; readonly start?: number; readonly end?: number; readonly role?: string; readonly kind?: string; readonly ordinal?: number; readonly identityOccurrence?: number; readonly textHash?: string; readonly textLength?: number; readonly trivia?: boolean; readonly directive?: boolean; readonly protected?: boolean; readonly ownershipAnchor?: NativeProjectSourceOwnershipAnchor; readonly ownershipAnchorKey?: string; readonly ownershipAnchorHash?: string; readonly ownershipAnchorStatus?: string; readonly ownershipBlockReasonCodes?: readonly string[]; readonly parserEvidence?: string; readonly losslessCst?: boolean; readonly parserTriviaExactnessStatus?: string; readonly exactParserTrivia?: boolean; readonly parserTriviaEvidenceId?: string; readonly parserTriviaAdapterId?: string; readonly parserTriviaExactnessReasonCodes?: readonly string[]; readonly parserTriviaExactnessBlockReasonCodes?: readonly string[]; readonly parserTriviaOwnershipStatus?: ParserTriviaOwnershipStatus; readonly parserTriviaOwnershipRelation?: ParserTriviaOwnershipRelation; readonly parserTriviaOwnershipReasonCodes?: readonly string[]; readonly parserTriviaOwnershipBlockReasonCodes?: readonly string[]; readonly roundtripHash?: string; readonly stableHash?: string; readonly signatureHash?: string; }
|
|
@@ -50,11 +50,13 @@ import type { JavaAstNativeImporterAdapterOptions, KotlinPsiNativeImporterAdapte
|
|
|
50
50
|
import type { NativeTargetProjectionAdapterCoverageInput, NativeTargetProjectionAdapterSummary, NativeTargetProjectionAdapterInput, NativeTargetProjectionAdapterResult, NativeTargetProjectionAdapter, NativeTargetProjectionAdapterResolverInput, NativeTargetProjectionResult } from './target-adapters.js';
|
|
51
51
|
import type { NativeImportRoundtripReadinessStatus, NativeImportRoundtripReadinessOptions, NativeImportRoundtripReadinessClassification } from './roundtrip.js';
|
|
52
52
|
import type { NativeProjectModuleResolutionOptions } from './native-project-module-resolution.js';
|
|
53
|
+
import type { NativeProjectSymbolGraphSourceFileRecord, NativeProjectSymbolGraphSourceSpanRecord } from './native-project-source-evidence.js';
|
|
54
|
+
import type { NativeProjectSymbolGraphJsxElementRecord, NativeProjectSymbolGraphJsxPropRecord } from './native-project-jsx-graph.js';
|
|
55
|
+
import type { NativeProjectSymbolGraphCompilerSymbolRecord, NativeProjectSymbolGraphCompilerTypeRecord, NativeProjectSymbolGraphRuntimeRegionRecord, NativeProjectSymbolGraphScopeBindingRecord, NativeProjectSymbolGraphScopeReferenceRecord } from './native-project-compiler-scope.js';
|
|
56
|
+
import type { NativeProjectSymbolGraphExportAssignmentRecord, NativeProjectSymbolGraphModuleDeclarationRecord } from './native-project-module-declarations.js';
|
|
57
|
+
import type { NativeProjectSymbolGraphCssModuleImportBindingRecord, NativeProjectSymbolGraphCssModuleUseSiteBlockerRecord, NativeProjectSymbolGraphCssModuleUseSiteGraphRecord, NativeProjectSymbolGraphCssModuleUseSiteRecord } from './native-project-css-modules.js';
|
|
53
58
|
|
|
54
|
-
export interface NativeProjectSourceInput extends ImportNativeSourceOptions {
|
|
55
|
-
readonly adapter?: NativeImporterAdapter | string;
|
|
56
|
-
readonly adapterOptions?: Record<string, unknown>; readonly adapterMetadata?: Record<string, unknown>;
|
|
57
|
-
}
|
|
59
|
+
export interface NativeProjectSourceInput extends ImportNativeSourceOptions { readonly adapter?: NativeImporterAdapter | string; readonly adapterOptions?: Record<string, unknown>; readonly adapterMetadata?: Record<string, unknown>; }
|
|
58
60
|
|
|
59
61
|
export interface ImportNativeProjectOptions {
|
|
60
62
|
readonly id?: string;
|
|
@@ -103,11 +105,28 @@ export interface NativeProjectSymbolGraphModuleEdgeRecord {
|
|
|
103
105
|
readonly resolvedModulePath?: string;
|
|
104
106
|
readonly targetDocumentId?: string;
|
|
105
107
|
readonly resolvedTargetSymbolId?: string;
|
|
108
|
+
readonly reExportResolved?: boolean; readonly reExportResolutionKind?: 'export-star' | 're-export-identity' | string;
|
|
109
|
+
readonly reExportIdentityId?: string; readonly reExportRelationId?: string; readonly reExportSourcePath?: string;
|
|
110
|
+
readonly reExportModuleSpecifier?: string; readonly reExportTargetSourcePath?: string; readonly reExportTargetDocumentId?: string;
|
|
106
111
|
readonly resolutionKind?: 'relative-source' | 'relative-missing' | 'alias-source' | 'alias-missing' | 'path-alias-source' | 'path-alias-missing' | 'base-url-source' | 'base-url-missing' | 'package-source' | 'package-missing' | 'package-external' | 'package-import-source' | 'package-import-missing' | 'package-import-external' | string;
|
|
107
112
|
readonly resolutionPathVariant?: 'exact' | 'extension-substitution' | 'extensionless' | 'index' | string;
|
|
108
|
-
readonly packageName?: string; readonly packageSubpath?: string; readonly packageExportCondition?: string;
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
113
|
+
readonly packageName?: string; readonly packageSubpath?: string; readonly packageExportKey?: string; readonly packageExportCondition?: string; readonly packageExportTarget?: string;
|
|
114
|
+
readonly packageRuntimeCondition?: 'import' | 'require' | string; readonly packageRuntimeConditionEvidenceSource?: 'edge-kind' | 'source-extension' | 'package-type' | 'conflict' | string; readonly packageRuntimeConditionEdgeKind?: string; readonly packageRuntimeConditionCandidates?: readonly string[]; readonly packageRuntimeConditionReasonCode?: string;
|
|
115
|
+
readonly packageEnvironmentCondition?: string; readonly packageEnvironmentConditionEvidenceSource?: 'edge-metadata' | 'module-resolution' | string; readonly packageEnvironmentConditionCandidates?: readonly string[]; readonly packageEnvironmentConditionReasonCode?: string; readonly packageType?: 'module' | 'commonjs' | string; readonly packageWorkspaceRootAmbiguous?: boolean; readonly packageWorkspaceRoots?: readonly string[]; readonly packageResolutionReasonCode?: string;
|
|
116
|
+
readonly packageImportKey?: string; readonly packageImportCondition?: string; readonly packageImportTarget?: string; readonly importKind?: string;
|
|
117
|
+
readonly commonJs?: boolean; readonly interopHelper?: string;
|
|
118
|
+
readonly dynamicImport?: boolean;
|
|
119
|
+
readonly dynamicImportSpecifierKind?: 'literal' | 'identifier' | 'template' | 'member' | 'call' | 'binary' | 'conditional' | string;
|
|
120
|
+
readonly dynamicImportExpressionText?: string; readonly dynamicImportExpressionHash?: string;
|
|
121
|
+
readonly dynamicImportStaticSpecifierEvidence?: boolean;
|
|
122
|
+
readonly dynamicImportRuntimeResolutionClaim?: false;
|
|
123
|
+
readonly dynamicImportResolutionProofRequired?: boolean;
|
|
124
|
+
readonly hostDependency?: boolean; readonly hostDependencyKind?: 'import-meta-url' | string; readonly hostDependencyBase?: 'import.meta.url' | string;
|
|
125
|
+
readonly hostDependencyExpressionText?: string; readonly hostDependencyExpressionHash?: string; readonly hostDependencyStaticSpecifierEvidence?: boolean; readonly hostDependencyRuntimeResolutionClaim?: false; readonly hostDependencyResolutionProofRequired?: boolean;
|
|
126
|
+
readonly hasImportAttributes?: boolean;
|
|
127
|
+
readonly importAttributeCount?: number;
|
|
128
|
+
readonly importAttributeKeys?: readonly string[];
|
|
129
|
+
readonly importAttributeHash?: string; readonly importAttributes?: readonly { readonly key: string; readonly value: string }[];
|
|
111
130
|
readonly exportKind?: string;
|
|
112
131
|
readonly importedName?: string;
|
|
113
132
|
readonly exportedName?: string;
|
|
@@ -126,6 +145,7 @@ export interface NativeProjectSymbolGraphReExportIdentityRecord {
|
|
|
126
145
|
readonly sourcePath?: string;
|
|
127
146
|
readonly sourceHash?: string;
|
|
128
147
|
readonly moduleSpecifier?: string;
|
|
148
|
+
readonly hasImportAttributes?: boolean; readonly importAttributeCount?: number; readonly importAttributeKeys?: readonly string[]; readonly importAttributeHash?: string; readonly importAttributes?: readonly { readonly key: string; readonly value: string }[];
|
|
129
149
|
readonly exportedName?: string;
|
|
130
150
|
readonly importedName?: string;
|
|
131
151
|
readonly localName?: string;
|
|
@@ -139,46 +159,27 @@ export interface NativeProjectSymbolGraphReExportIdentityRecord {
|
|
|
139
159
|
readonly factId?: string;
|
|
140
160
|
}
|
|
141
161
|
|
|
142
|
-
export interface NativeProjectSymbolGraphPublicContractRegionRecord {
|
|
143
|
-
readonly id: string;
|
|
144
|
-
readonly key?: string;
|
|
145
|
-
readonly regionKind?: string;
|
|
146
|
-
readonly granularity?: string;
|
|
147
|
-
readonly language?: FrontierSourceLanguage | string;
|
|
148
|
-
readonly documentId?: string;
|
|
149
|
-
readonly sourcePath?: string;
|
|
150
|
-
readonly sourceHash?: string;
|
|
151
|
-
readonly symbolId?: string;
|
|
152
|
-
readonly symbolName?: string;
|
|
153
|
-
readonly symbolKind?: string;
|
|
154
|
-
readonly apiSurfaceKind?: string;
|
|
155
|
-
readonly signatureHash?: string;
|
|
156
|
-
readonly contractHash?: string;
|
|
157
|
-
readonly nativeAstNodeId?: string;
|
|
158
|
-
readonly sourceSpan?: SourceSpan;
|
|
159
|
-
readonly precision?: string;
|
|
160
|
-
readonly publicContract?: boolean;
|
|
161
|
-
readonly exportedName?: string;
|
|
162
|
-
readonly moduleSpecifier?: string;
|
|
163
|
-
readonly edgeKind?: string;
|
|
164
|
-
readonly factId?: string;
|
|
165
|
-
}
|
|
162
|
+
export interface NativeProjectSymbolGraphPublicContractRegionRecord { readonly id: string; readonly key?: string; readonly regionKind?: string; readonly granularity?: string; readonly language?: FrontierSourceLanguage | string; readonly documentId?: string; readonly sourcePath?: string; readonly sourceHash?: string; readonly symbolId?: string; readonly symbolName?: string; readonly symbolKind?: string; readonly apiSurfaceKind?: string; readonly signatureHash?: string; readonly contractHash?: string; readonly nativeAstNodeId?: string; readonly sourceSpan?: SourceSpan; readonly precision?: string; readonly publicContract?: boolean; readonly exportedName?: string; readonly moduleSpecifier?: string; readonly edgeKind?: string; readonly factId?: string; }
|
|
166
163
|
|
|
167
164
|
export interface NativeProjectSymbolGraphSummary {
|
|
168
165
|
readonly kind: 'frontier.lang.projectSymbolGraph';
|
|
169
166
|
readonly version: 1;
|
|
170
167
|
readonly projectRoot?: string;
|
|
171
|
-
readonly sourceCount: number;
|
|
172
|
-
readonly
|
|
173
|
-
readonly symbolCount: number;
|
|
174
|
-
readonly occurrenceCount: number;
|
|
175
|
-
readonly relationCount: number;
|
|
176
|
-
readonly factCount: number;
|
|
168
|
+
readonly sourceCount: number; readonly documentCount: number; readonly symbolCount: number;
|
|
169
|
+
readonly occurrenceCount: number; readonly relationCount: number; readonly factCount: number;
|
|
177
170
|
readonly fileHashes: readonly NativeProjectSymbolGraphFileHashRecord[];
|
|
171
|
+
readonly sourceFileRecords: readonly NativeProjectSymbolGraphSourceFileRecord[]; readonly sourceSpanRecords: readonly NativeProjectSymbolGraphSourceSpanRecord[];
|
|
178
172
|
readonly importEdges: readonly NativeProjectSymbolGraphModuleEdgeRecord[];
|
|
179
173
|
readonly exportEdges: readonly NativeProjectSymbolGraphModuleEdgeRecord[];
|
|
180
|
-
readonly reExportIdentities: readonly NativeProjectSymbolGraphReExportIdentityRecord[];
|
|
181
|
-
readonly
|
|
174
|
+
readonly reExportIdentities: readonly NativeProjectSymbolGraphReExportIdentityRecord[]; readonly publicContractRegions: readonly NativeProjectSymbolGraphPublicContractRegionRecord[];
|
|
175
|
+
readonly moduleDeclarationRecords: readonly NativeProjectSymbolGraphModuleDeclarationRecord[];
|
|
176
|
+
readonly exportAssignmentRecords: readonly NativeProjectSymbolGraphExportAssignmentRecord[];
|
|
177
|
+
readonly compilerSymbolRecords: readonly NativeProjectSymbolGraphCompilerSymbolRecord[]; readonly compilerTypeRecords: readonly NativeProjectSymbolGraphCompilerTypeRecord[];
|
|
178
|
+
readonly runtimeRegionRecords: readonly NativeProjectSymbolGraphRuntimeRegionRecord[];
|
|
179
|
+
readonly scopeBindingRecords: readonly NativeProjectSymbolGraphScopeBindingRecord[]; readonly scopeReferenceRecords: readonly NativeProjectSymbolGraphScopeReferenceRecord[];
|
|
180
|
+
readonly jsxElementRecords: readonly NativeProjectSymbolGraphJsxElementRecord[]; readonly jsxPropRecords: readonly NativeProjectSymbolGraphJsxPropRecord[];
|
|
181
|
+
readonly cssModuleImportBindings: readonly NativeProjectSymbolGraphCssModuleImportBindingRecord[]; readonly cssModuleUseSites: readonly NativeProjectSymbolGraphCssModuleUseSiteRecord[];
|
|
182
|
+
readonly cssModuleUseSiteBlockers: readonly NativeProjectSymbolGraphCssModuleUseSiteBlockerRecord[]; readonly cssModuleUseSiteGraphs: readonly NativeProjectSymbolGraphCssModuleUseSiteGraphRecord[];
|
|
182
183
|
readonly remainingFields: readonly NativeProjectSymbolGraphRemainingField[];
|
|
183
184
|
}
|
|
184
185
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { EvidenceRecord, FrontierSourceLanguage, SemanticMergeReadiness, SourceSpan } from '@shapeshift-labs/frontier-lang-kernel';
|
|
2
2
|
import type { ImportNativeSourceOptions, NativeSourceImportResult } from './import-adapter-core.js';
|
|
3
|
+
import type { NativeProjectRuntimeOrderProofEvidence } from './native-project-runtime-executable-effect-evidence.js';
|
|
3
4
|
import type { SemanticEditReplayDiagnostic } from './semantic-edit-replay-diagnostics.js';
|
|
5
|
+
import type { SemanticStructuralDiff, SemanticStructuralDiffSummary, SemanticStructuralEdit, SemanticStructuralEditAction, SemanticStructuralEditKind } from './semantic-structural-diff.js';
|
|
4
6
|
export type * from './semantic-edit-replay-diagnostics.js';
|
|
7
|
+
export type * from './semantic-structural-diff.js';
|
|
5
8
|
export type SemanticEditScriptOperationStatus = 'candidate' | 'portable' | 'already-applied' | 'covered' | 'needs-port' | 'conflict' | 'stale' | 'blocked';
|
|
6
9
|
export type SemanticEditScriptAdmissionStatus = 'auto-merge-candidate' | 'needs-port' | 'conflict' | 'stale' | 'blocked' | 'evidence-only';
|
|
7
10
|
export interface SemanticEditInsertionAnchorCandidate {
|
|
@@ -39,7 +42,7 @@ export interface SemanticEditScriptOperation {
|
|
|
39
42
|
readonly semanticKey?: string;
|
|
40
43
|
readonly semanticIdentityHash?: string;
|
|
41
44
|
readonly sourceIdentityHash?: string;
|
|
42
|
-
readonly operationContentHash?: string;
|
|
45
|
+
readonly operationContentHash?: string; readonly structuralEdit?: SemanticStructuralEdit;
|
|
43
46
|
readonly spans?: {
|
|
44
47
|
readonly base?: SourceSpan; readonly worker?: SourceSpan; readonly head?: SourceSpan;
|
|
45
48
|
};
|
|
@@ -81,7 +84,7 @@ export interface SemanticEditScriptSummary {
|
|
|
81
84
|
readonly semanticKeys?: readonly string[];
|
|
82
85
|
readonly semanticIdentityHashes?: readonly string[];
|
|
83
86
|
readonly sourceIdentityHashes?: readonly string[];
|
|
84
|
-
readonly operationContentHashes?: readonly string[];
|
|
87
|
+
readonly operationContentHashes?: readonly string[]; readonly structural?: SemanticStructuralDiffSummary;
|
|
85
88
|
}
|
|
86
89
|
export interface SemanticEditScriptAdmission {
|
|
87
90
|
readonly status: SemanticEditScriptAdmissionStatus;
|
|
@@ -109,7 +112,7 @@ export interface SemanticEditScript {
|
|
|
109
112
|
readonly workerChangeSetId: string;
|
|
110
113
|
readonly headChangeSetId?: string;
|
|
111
114
|
readonly lineageInferenceId?: string;
|
|
112
|
-
readonly operations: readonly SemanticEditScriptOperation[];
|
|
115
|
+
readonly operations: readonly SemanticEditScriptOperation[]; readonly structuralDiff?: SemanticStructuralDiff;
|
|
113
116
|
readonly summary: SemanticEditScriptSummary;
|
|
114
117
|
readonly admission: SemanticEditScriptAdmission;
|
|
115
118
|
readonly evidence: readonly EvidenceRecord[];
|
|
@@ -140,8 +143,7 @@ export interface SemanticEditProjectionEdit {
|
|
|
140
143
|
readonly sourceIdentityStatus?: 'same-source' | 'moved-source' | string;
|
|
141
144
|
readonly sourceIdentityAnchorKey?: string; readonly targetIdentityAnchorKey?: string;
|
|
142
145
|
readonly sourceIdentitySourcePath?: string; readonly targetIdentitySourcePath?: string;
|
|
143
|
-
readonly operationContentHash?: string;
|
|
144
|
-
readonly editContentHash?: string;
|
|
146
|
+
readonly operationContentHash?: string; readonly editContentHash?: string; readonly structuralEditId?: string; readonly structuralEditHash?: string; readonly structuralKind?: SemanticStructuralEditKind | string; readonly structuralActions?: readonly (SemanticStructuralEditAction | string)[];
|
|
145
147
|
readonly headStart: number; readonly headEnd: number;
|
|
146
148
|
readonly workerStart?: number; readonly workerEnd?: number;
|
|
147
149
|
readonly headAnchorStart?: number; readonly headAnchorEnd?: number;
|
|
@@ -192,7 +194,7 @@ export interface SemanticEditReplayEdit {
|
|
|
192
194
|
readonly semanticKey?: string;
|
|
193
195
|
readonly semanticIdentityHash?: string;
|
|
194
196
|
readonly sourceIdentityHash?: string;
|
|
195
|
-
readonly editContentHash?: string;
|
|
197
|
+
readonly editContentHash?: string; readonly structuralEditId?: string; readonly structuralEditHash?: string; readonly structuralKind?: SemanticStructuralEditKind | string; readonly structuralActions?: readonly (SemanticStructuralEditAction | string)[];
|
|
196
198
|
readonly editKind?: 'replace' | 'insert' | 'delete' | string;
|
|
197
199
|
readonly editOrder?: number;
|
|
198
200
|
readonly sourceRangeKind?: string;
|
|
@@ -306,8 +308,8 @@ export interface CreateSemanticEditScriptOptions {
|
|
|
306
308
|
readonly headChangeSetId?: string;
|
|
307
309
|
readonly lineageInferenceId?: string;
|
|
308
310
|
readonly generatedAt?: number | string;
|
|
309
|
-
readonly evidenceId?: string;
|
|
310
|
-
readonly metadata?: Record<string, unknown>;
|
|
311
|
+
readonly evidenceId?: string; readonly structuralDiffId?: string; readonly structuralEvidenceId?: string; readonly evidence?: EvidenceRecord | readonly EvidenceRecord[]; readonly typeSyntaxEvidence?: EvidenceRecord | readonly EvidenceRecord[]; readonly typeCheckerEvidence?: EvidenceRecord | readonly EvidenceRecord[]; readonly typescriptEvidence?: EvidenceRecord | readonly EvidenceRecord[]; readonly diagnosticsEvidence?: EvidenceRecord | readonly EvidenceRecord[]; readonly declarationEvidence?: EvidenceRecord | readonly EvidenceRecord[];
|
|
312
|
+
readonly runtimeOrderEvidence?: NativeProjectRuntimeOrderProofEvidence | readonly NativeProjectRuntimeOrderProofEvidence[]; readonly effectOrderEvidence?: NativeProjectRuntimeOrderProofEvidence | readonly NativeProjectRuntimeOrderProofEvidence[]; readonly metadata?: Record<string, unknown>;
|
|
311
313
|
}
|
|
312
314
|
export interface CreateSemanticEditScriptRuntimeOptions {
|
|
313
315
|
readonly metadata?: Record<string, unknown>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { SemanticMergeReadiness, SourceMapMappingRecord, SourceMapRecord } from '@shapeshift-labs/frontier-lang-kernel';
|
|
2
|
+
import type { SemanticImportSidecarAdmission, SemanticImportSidecarQuality } from './semantic-sidecar-admission.js';
|
|
3
|
+
import type { SemanticImportImpactSummary } from './semantic-impact.js';
|
|
4
|
+
import type {
|
|
5
|
+
SemanticImportDependencySummary,
|
|
6
|
+
SemanticImportOwnershipRegion,
|
|
7
|
+
SemanticImportPatchHint,
|
|
8
|
+
SemanticImportSidecar,
|
|
9
|
+
SemanticImportSidecarParadigmSemanticsSummary,
|
|
10
|
+
SemanticImportSidecarProofSpecSummary,
|
|
11
|
+
SemanticImportSidecarSymbol,
|
|
12
|
+
SemanticImportSidecarUniversalAstLayerSummary
|
|
13
|
+
} from './semantic-sidecar.js';
|
|
14
|
+
|
|
15
|
+
export type SemanticGraphLayerKind =
|
|
16
|
+
| 'parser-source-span-trivia'
|
|
17
|
+
| 'scope-use-def'
|
|
18
|
+
| 'module-export-import'
|
|
19
|
+
| 'type-public-api'
|
|
20
|
+
| 'control-flow-effect'
|
|
21
|
+
| 'generic-semantic-edit-admission';
|
|
22
|
+
export type SemanticGraphLayerStatus = 'strong' | 'partial' | 'missing' | 'blocked';
|
|
23
|
+
export interface SemanticGraphLayerRecord {
|
|
24
|
+
readonly kind: 'frontier.lang.semanticGraphLayer';
|
|
25
|
+
readonly version: 1;
|
|
26
|
+
readonly id: SemanticGraphLayerKind;
|
|
27
|
+
readonly title: string;
|
|
28
|
+
readonly status: SemanticGraphLayerStatus;
|
|
29
|
+
readonly summary: Readonly<Record<string, unknown>>;
|
|
30
|
+
readonly reasonCodes: readonly string[];
|
|
31
|
+
readonly evidenceIds: readonly string[];
|
|
32
|
+
}
|
|
33
|
+
export interface SemanticGraphLayerSummary {
|
|
34
|
+
readonly kind: 'frontier.lang.semanticGraphLayers';
|
|
35
|
+
readonly version: 1;
|
|
36
|
+
readonly schema: 'frontier.lang.semanticGraphLayers.v1';
|
|
37
|
+
readonly status: 'partial' | 'missing' | 'blocked';
|
|
38
|
+
readonly layerKinds: readonly SemanticGraphLayerKind[];
|
|
39
|
+
readonly layers: {
|
|
40
|
+
readonly parserSourceSpanTrivia: SemanticGraphLayerRecord;
|
|
41
|
+
readonly scopeUseDef: SemanticGraphLayerRecord;
|
|
42
|
+
readonly moduleExportImport: SemanticGraphLayerRecord;
|
|
43
|
+
readonly typePublicApi: SemanticGraphLayerRecord;
|
|
44
|
+
readonly controlFlowEffect: SemanticGraphLayerRecord;
|
|
45
|
+
readonly genericSemanticEditAdmission: SemanticGraphLayerRecord;
|
|
46
|
+
};
|
|
47
|
+
readonly summary: {
|
|
48
|
+
readonly total: number;
|
|
49
|
+
readonly strong: number;
|
|
50
|
+
readonly partial: number;
|
|
51
|
+
readonly missing: number;
|
|
52
|
+
readonly blocked: number;
|
|
53
|
+
readonly usable: number;
|
|
54
|
+
readonly reasonCodes: readonly string[];
|
|
55
|
+
readonly evidenceIds: readonly string[];
|
|
56
|
+
};
|
|
57
|
+
readonly metadata: { readonly note: string };
|
|
58
|
+
}
|
|
59
|
+
export interface SemanticGraphLayerSummaryInput {
|
|
60
|
+
readonly importResult?: unknown;
|
|
61
|
+
readonly imports?: readonly unknown[];
|
|
62
|
+
readonly symbols?: readonly SemanticImportSidecarSymbol[];
|
|
63
|
+
readonly ownershipRegions?: readonly SemanticImportOwnershipRegion[];
|
|
64
|
+
readonly sourceMaps?: readonly SourceMapRecord[];
|
|
65
|
+
readonly sourceMapMappings?: readonly SourceMapMappingRecord[];
|
|
66
|
+
readonly sourcePreservation?: SemanticImportSidecar['sourcePreservation'];
|
|
67
|
+
readonly universalAstLayers?: SemanticImportSidecarUniversalAstLayerSummary;
|
|
68
|
+
readonly proofSpec?: SemanticImportSidecarProofSpecSummary;
|
|
69
|
+
readonly paradigmSemantics?: SemanticImportSidecarParadigmSemanticsSummary;
|
|
70
|
+
readonly dependencies?: SemanticImportDependencySummary;
|
|
71
|
+
readonly semanticImpact?: SemanticImportImpactSummary;
|
|
72
|
+
readonly patchHints?: readonly SemanticImportPatchHint[];
|
|
73
|
+
readonly quality?: SemanticImportSidecarQuality;
|
|
74
|
+
readonly admission?: SemanticImportSidecarAdmission;
|
|
75
|
+
readonly mergeCandidates?: readonly unknown[];
|
|
76
|
+
readonly readiness?: SemanticMergeReadiness;
|
|
77
|
+
}
|
|
78
|
+
export declare const SemanticGraphLayerKinds: readonly SemanticGraphLayerKind[];
|
|
79
|
+
export declare function createSemanticGraphLayerSummary(input?: SemanticGraphLayerSummaryInput): SemanticGraphLayerSummary;
|
|
@@ -16,8 +16,6 @@ import type {
|
|
|
16
16
|
SemanticIndexRecord,
|
|
17
17
|
SemanticNode,
|
|
18
18
|
SemanticPatchBundle,
|
|
19
|
-
SourceMapMappingRecord,
|
|
20
|
-
SourceMapRecord,
|
|
21
19
|
SourcePreservationLevel,
|
|
22
20
|
SourcePreservationRecord,
|
|
23
21
|
SourceSpan,
|
|
@@ -25,6 +23,7 @@ import type {
|
|
|
25
23
|
UniversalAstLayerRecord
|
|
26
24
|
} from '@shapeshift-labs/frontier-lang-kernel';
|
|
27
25
|
import type { SemanticImportSidecarAdmission, SemanticImportSidecarQuality, SemanticImportSidecarQualityRecord } from './semantic-sidecar-admission.js';
|
|
26
|
+
import type { SemanticGraphLayerSummary } from './semantic-graph-layers.js';
|
|
28
27
|
import type { SemanticMergeCandidateAdmissionRecord, SemanticMergeCandidateProjectionRisk } from './semantic-merge-candidates.js';
|
|
29
28
|
import type { SemanticMergeConflictClass, SemanticMergeConflictSummary } from './semantic-merge-conflicts.js';
|
|
30
29
|
import type { SemanticImportImpactSummary } from './semantic-impact.js';
|
|
@@ -263,6 +262,7 @@ export interface SemanticImportSidecar {
|
|
|
263
262
|
readonly proofSpec: SemanticImportSidecarProofSpecSummary;
|
|
264
263
|
readonly paradigmSemantics: SemanticImportSidecarParadigmSemanticsSummary;
|
|
265
264
|
readonly dependencies: SemanticImportDependencySummary; readonly semanticImpact: SemanticImportImpactSummary;
|
|
265
|
+
readonly graphLayers: SemanticGraphLayerSummary;
|
|
266
266
|
readonly patchHints: readonly SemanticImportPatchHint[];
|
|
267
267
|
readonly quality: SemanticImportSidecarQuality;
|
|
268
268
|
readonly admission: SemanticImportSidecarAdmission;
|
|
@@ -307,6 +307,7 @@ export interface SemanticImportSidecar {
|
|
|
307
307
|
readonly paradigmSemanticsGroups: number;
|
|
308
308
|
readonly paradigmSemanticsLoweringRecords: number;
|
|
309
309
|
readonly dependencyRelations: number; readonly dependencyPredicates: readonly string[];
|
|
310
|
+
readonly graphLayers: number; readonly graphLayersUsable: number; readonly graphLayerStatus: SemanticGraphLayerSummary['status'];
|
|
310
311
|
readonly semanticImpactRecords: number; readonly semanticImpactHighRiskRecords: number; readonly semanticImpactRequiredVerificationSteps: number;
|
|
311
312
|
readonly patchHints: number;
|
|
312
313
|
readonly evidenceWarnings: number;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { FrontierSourceLanguage } from '@shapeshift-labs/frontier-lang-kernel';
|
|
2
|
+
import type { SemanticEditScriptOperationStatus } from './semantic-edit-script.js';
|
|
3
|
+
|
|
4
|
+
export type SemanticStructuralEditAction = 'move' | 'update' | 'insert' | 'delete';
|
|
5
|
+
export type SemanticStructuralEditKind = 'move' | 'update' | 'insert' | 'delete' | 'move-update';
|
|
6
|
+
|
|
7
|
+
export interface SemanticStructuralEditSpanLocation {
|
|
8
|
+
readonly path?: string;
|
|
9
|
+
readonly startLine?: number;
|
|
10
|
+
readonly startColumn?: number;
|
|
11
|
+
readonly endLine?: number;
|
|
12
|
+
readonly endColumn?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SemanticStructuralEdit {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly kind: 'frontier.lang.semanticStructuralEdit';
|
|
18
|
+
readonly version: 1;
|
|
19
|
+
readonly hash: string;
|
|
20
|
+
readonly algorithm: 'frontier.semantic-edit-structural-diff.v1';
|
|
21
|
+
readonly runtimeNeutral: true;
|
|
22
|
+
readonly operationId?: string;
|
|
23
|
+
readonly structuralKind: SemanticStructuralEditKind | string;
|
|
24
|
+
readonly actions: readonly (SemanticStructuralEditAction | string)[];
|
|
25
|
+
readonly operationKind?: string;
|
|
26
|
+
readonly changeKind?: string;
|
|
27
|
+
readonly anchorKey?: string;
|
|
28
|
+
readonly conflictKey?: string;
|
|
29
|
+
readonly regionKind?: string;
|
|
30
|
+
readonly sourcePath?: string;
|
|
31
|
+
readonly symbolName?: string;
|
|
32
|
+
readonly symbolKind?: string;
|
|
33
|
+
readonly from?: SemanticStructuralEditSpanLocation;
|
|
34
|
+
readonly to?: SemanticStructuralEditSpanLocation;
|
|
35
|
+
readonly head?: SemanticStructuralEditSpanLocation;
|
|
36
|
+
readonly baseTextHash?: string;
|
|
37
|
+
readonly workerTextHash?: string;
|
|
38
|
+
readonly headTextHash?: string;
|
|
39
|
+
readonly beforeSignatureHash?: string;
|
|
40
|
+
readonly afterSignatureHash?: string;
|
|
41
|
+
readonly status?: SemanticEditScriptOperationStatus | string;
|
|
42
|
+
readonly reviewRequired: true;
|
|
43
|
+
readonly confidence?: number;
|
|
44
|
+
readonly reasonCodes: readonly string[];
|
|
45
|
+
readonly reanchor?: {
|
|
46
|
+
readonly fromAnchorKey?: string;
|
|
47
|
+
readonly toAnchorKey?: string;
|
|
48
|
+
readonly toSourcePath?: string;
|
|
49
|
+
readonly toSymbolName?: string;
|
|
50
|
+
readonly toSymbolKind?: string;
|
|
51
|
+
readonly lineageStatus?: string;
|
|
52
|
+
readonly traversedEventIds?: readonly string[];
|
|
53
|
+
};
|
|
54
|
+
readonly metadata?: Record<string, unknown>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface SemanticStructuralDiffSummary {
|
|
58
|
+
readonly edits: number;
|
|
59
|
+
readonly byKind: Readonly<Record<string, number>>;
|
|
60
|
+
readonly byAction: Readonly<Record<string, number>>;
|
|
61
|
+
readonly moves: number;
|
|
62
|
+
readonly updates: number;
|
|
63
|
+
readonly inserts: number;
|
|
64
|
+
readonly deletes: number;
|
|
65
|
+
readonly moveUpdates: number;
|
|
66
|
+
readonly reviewRequired: boolean;
|
|
67
|
+
readonly autoMergeClaim: false;
|
|
68
|
+
readonly semanticEquivalenceClaim: false;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface SemanticStructuralDiff {
|
|
72
|
+
readonly kind: 'frontier.lang.semanticStructuralDiff';
|
|
73
|
+
readonly version: 1;
|
|
74
|
+
readonly schema: 'frontier.lang.semanticStructuralDiff.v1';
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly hash: string;
|
|
77
|
+
readonly algorithm: 'frontier.semantic-edit-structural-diff.v1';
|
|
78
|
+
readonly runtimeNeutral: true;
|
|
79
|
+
readonly language?: FrontierSourceLanguage | string;
|
|
80
|
+
readonly sourcePath?: string;
|
|
81
|
+
readonly workerChangeSetId: string;
|
|
82
|
+
readonly headChangeSetId?: string;
|
|
83
|
+
readonly edits: readonly SemanticStructuralEdit[];
|
|
84
|
+
readonly summary: SemanticStructuralDiffSummary;
|
|
85
|
+
readonly admission: {
|
|
86
|
+
readonly status: 'review-required';
|
|
87
|
+
readonly action: 'run-replay-and-diagnostics' | string;
|
|
88
|
+
readonly reviewRequired: true;
|
|
89
|
+
readonly autoMergeClaim: false;
|
|
90
|
+
readonly semanticEquivalenceClaim: false;
|
|
91
|
+
readonly reasonCodes: readonly string[];
|
|
92
|
+
};
|
|
93
|
+
readonly metadata?: Record<string, unknown>;
|
|
94
|
+
}
|
|
@@ -60,6 +60,8 @@ export type NativeSourceTokenKind =
|
|
|
60
60
|
| 'operator'
|
|
61
61
|
| 'punctuation'
|
|
62
62
|
| 'comment'
|
|
63
|
+
| 'jsdoc-comment'
|
|
64
|
+
| 'block-comment'
|
|
63
65
|
| 'source-map-comment'
|
|
64
66
|
| 'whitespace'
|
|
65
67
|
| 'newline'
|
|
@@ -145,6 +147,22 @@ export interface NativeSourceLedger {
|
|
|
145
147
|
readonly summary: NativeSourceLedgerSummary;
|
|
146
148
|
}
|
|
147
149
|
|
|
150
|
+
export type ParserTriviaExactnessStatus = 'exact' | 'approximate' | 'blocked' | (string & {});
|
|
151
|
+
export type ParserTriviaOwnershipStatus = 'exact' | 'blocked' | (string & {});
|
|
152
|
+
export type ParserTriviaOwnershipRelation =
|
|
153
|
+
| 'directive-prologue'
|
|
154
|
+
| 'source-directive'
|
|
155
|
+
| 'leading-comment'
|
|
156
|
+
| 'trailing-comment'
|
|
157
|
+
| 'jsdoc-comment'
|
|
158
|
+
| 'block-comment'
|
|
159
|
+
| 'file-comment'
|
|
160
|
+
| 'generated-source-boundary'
|
|
161
|
+
| 'file-entrypoint-directive'
|
|
162
|
+
| (string & {});
|
|
163
|
+
export interface ParserTriviaEvidenceInput { readonly [key: string]: unknown; readonly status?: ParserTriviaExactnessStatus; readonly exactParserTrivia?: boolean; readonly exact?: boolean; readonly losslessCst?: boolean; readonly sourceHash?: string; readonly sourceId?: string; readonly roundtripHash?: string; readonly evidenceSourceHash?: string; readonly parserEvidence?: string; readonly adapterId?: string; readonly parserAdapterId?: string; readonly parserId?: string; readonly adapter?: string; readonly evidenceId?: string; readonly id?: string; readonly blocked?: boolean; readonly reasonCodes?: readonly string[]; readonly blockReasonCodes?: readonly string[]; readonly metadata?: Record<string, unknown>; }
|
|
164
|
+
export interface ParserTriviaExactnessRecord { readonly schema: 'frontier.lang.parserTriviaExactness.v1'; readonly version: 1; readonly status: ParserTriviaExactnessStatus; readonly exactParserTrivia: boolean; readonly losslessCst?: boolean; readonly sourcePath?: string; readonly sourceHash?: string; readonly evidenceSourceHash?: string; readonly sourceHashVerified?: boolean; readonly parserEvidence?: string; readonly adapterId?: string; readonly evidenceId?: string; readonly reasonCodes: readonly string[]; readonly blockReasonCodes: readonly string[]; readonly reviewRequired: boolean; readonly autoMergeClaim: false; readonly semanticEquivalenceClaim: false; }
|
|
165
|
+
|
|
148
166
|
export interface NativeSourcePreservation {
|
|
149
167
|
readonly kind: 'frontier.lang.nativeSourcePreservation';
|
|
150
168
|
readonly version: 1;
|
|
@@ -174,8 +192,19 @@ export interface NativeSourcePreservation {
|
|
|
174
192
|
readonly braces?: number;
|
|
175
193
|
readonly exactSourceAvailable: boolean;
|
|
176
194
|
readonly truncated: boolean;
|
|
195
|
+
readonly parserTriviaExactnessStatus?: string;
|
|
196
|
+
readonly exactParserTrivia?: boolean;
|
|
197
|
+
readonly parserTriviaExactnessReasonCodes?: readonly string[];
|
|
198
|
+
readonly parserTriviaExactnessBlockReasonCodes?: readonly string[];
|
|
177
199
|
};
|
|
178
|
-
readonly metadata?: Record<string, unknown
|
|
200
|
+
readonly metadata?: Record<string, unknown> & { readonly parserTriviaExactness?: ParserTriviaExactnessRecord };
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface NativeSourceTokenTriviaScan {
|
|
204
|
+
readonly tokens: readonly NativeSourcePreservedToken[];
|
|
205
|
+
readonly trivia: readonly NativeSourcePreservedToken[];
|
|
206
|
+
readonly truncated?: boolean;
|
|
207
|
+
readonly parserEvidence?: string;
|
|
179
208
|
}
|
|
180
209
|
|
|
181
210
|
export interface CreateNativeSourcePreservationOptions {
|
|
@@ -192,7 +221,9 @@ export interface CreateNativeSourcePreservationOptions {
|
|
|
192
221
|
readonly includeSourceLedger?: boolean;
|
|
193
222
|
readonly maxTokens?: number;
|
|
194
223
|
readonly maxTrivia?: number;
|
|
224
|
+
readonly tokensAndTrivia?: NativeSourceTokenTriviaScan;
|
|
195
225
|
readonly maxDirectives?: number;
|
|
196
226
|
readonly maxLedgerSpans?: number;
|
|
227
|
+
readonly parserTriviaEvidence?: ParserTriviaEvidenceInput;
|
|
197
228
|
readonly metadata?: Record<string, unknown>;
|
|
198
229
|
}
|