@wrtnlabs/evidence 0.0.0
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/LICENSE +21 -0
- package/README.md +516 -0
- package/lib/EvidenceChecker.d.ts +85 -0
- package/lib/EvidenceChecker.js +109 -0
- package/lib/adapters/bigquery/BigQueryColumnType.d.ts +14 -0
- package/lib/adapters/bigquery/BigQueryColumnType.js +34 -0
- package/lib/adapters/bigquery/BigQueryFileScanner.d.ts +97 -0
- package/lib/adapters/bigquery/BigQueryFileScanner.js +375 -0
- package/lib/adapters/bigquery/BigQueryIdentifier.d.ts +37 -0
- package/lib/adapters/bigquery/BigQueryIdentifier.js +88 -0
- package/lib/adapters/bigquery/BigQueryString.d.ts +14 -0
- package/lib/adapters/bigquery/BigQueryString.js +82 -0
- package/lib/adapters/bigquery/BigQueryWithdrawals.d.ts +14 -0
- package/lib/adapters/bigquery/BigQueryWithdrawals.js +70 -0
- package/lib/adapters/bigquery/EvidenceBigQueryAdapter.d.ts +17 -0
- package/lib/adapters/bigquery/EvidenceBigQueryAdapter.js +27 -0
- package/lib/adapters/c/CAdapter.d.ts +48 -0
- package/lib/adapters/c/CAdapter.js +677 -0
- package/lib/adapters/c/CDeclarationForm.d.ts +8 -0
- package/lib/adapters/c/CDeclarationForm.js +2 -0
- package/lib/adapters/c/CDeclaratorKind.d.ts +8 -0
- package/lib/adapters/c/CDeclaratorKind.js +2 -0
- package/lib/adapters/c/CDocumentation.d.ts +12 -0
- package/lib/adapters/c/CDocumentation.js +35 -0
- package/lib/adapters/c/CFileScanner.d.ts +64 -0
- package/lib/adapters/c/CFileScanner.js +505 -0
- package/lib/adapters/c/CSyntax.d.ts +24 -0
- package/lib/adapters/c/CSyntax.js +164 -0
- package/lib/adapters/c/EvidenceCAdapter.d.ts +15 -0
- package/lib/adapters/c/EvidenceCAdapter.js +19 -0
- package/lib/adapters/c/ICDeclaration.d.ts +74 -0
- package/lib/adapters/c/ICDeclaration.js +2 -0
- package/lib/adapters/c/ICDeclarationAddress.d.ts +28 -0
- package/lib/adapters/c/ICDeclarationAddress.js +2 -0
- package/lib/adapters/c/ICDeclarationGroup.d.ts +23 -0
- package/lib/adapters/c/ICDeclarationGroup.js +2 -0
- package/lib/adapters/c/ICDeclaratorShape.d.ts +30 -0
- package/lib/adapters/c/ICDeclaratorShape.js +2 -0
- package/lib/adapters/c/ICDocumentation.d.ts +36 -0
- package/lib/adapters/c/ICDocumentation.js +2 -0
- package/lib/adapters/c/ICDocumentationAttachment.d.ts +21 -0
- package/lib/adapters/c/ICDocumentationAttachment.js +2 -0
- package/lib/adapters/c/ICFileAnalysis.d.ts +44 -0
- package/lib/adapters/c/ICFileAnalysis.js +2 -0
- package/lib/adapters/c/ICTypeContext.d.ts +21 -0
- package/lib/adapters/c/ICTypeContext.js +2 -0
- package/lib/adapters/cpp/CppAccess.d.ts +7 -0
- package/lib/adapters/cpp/CppAccess.js +2 -0
- package/lib/adapters/cpp/CppAdapter.d.ts +50 -0
- package/lib/adapters/cpp/CppAdapter.js +707 -0
- package/lib/adapters/cpp/CppAliasKind.d.ts +7 -0
- package/lib/adapters/cpp/CppAliasKind.js +2 -0
- package/lib/adapters/cpp/CppDeclarationForm.d.ts +7 -0
- package/lib/adapters/cpp/CppDeclarationForm.js +2 -0
- package/lib/adapters/cpp/CppDeclaratorKind.d.ts +7 -0
- package/lib/adapters/cpp/CppDeclaratorKind.js +2 -0
- package/lib/adapters/cpp/CppDocumentation.d.ts +12 -0
- package/lib/adapters/cpp/CppDocumentation.js +35 -0
- package/lib/adapters/cpp/CppFileScanner.d.ts +79 -0
- package/lib/adapters/cpp/CppFileScanner.js +792 -0
- package/lib/adapters/cpp/CppScopeKind.d.ts +7 -0
- package/lib/adapters/cpp/CppScopeKind.js +2 -0
- package/lib/adapters/cpp/CppSyntax.d.ts +31 -0
- package/lib/adapters/cpp/CppSyntax.js +342 -0
- package/lib/adapters/cpp/CppVisibility.d.ts +7 -0
- package/lib/adapters/cpp/CppVisibility.js +2 -0
- package/lib/adapters/cpp/EvidenceCppAdapter.d.ts +16 -0
- package/lib/adapters/cpp/EvidenceCppAdapter.js +20 -0
- package/lib/adapters/cpp/ICppAlias.d.ts +44 -0
- package/lib/adapters/cpp/ICppAlias.js +2 -0
- package/lib/adapters/cpp/ICppDeclaration.d.ts +55 -0
- package/lib/adapters/cpp/ICppDeclaration.js +2 -0
- package/lib/adapters/cpp/ICppDeclarationGroup.d.ts +25 -0
- package/lib/adapters/cpp/ICppDeclarationGroup.js +2 -0
- package/lib/adapters/cpp/ICppDeclaratorShape.d.ts +42 -0
- package/lib/adapters/cpp/ICppDeclaratorShape.js +2 -0
- package/lib/adapters/cpp/ICppDocumentation.d.ts +30 -0
- package/lib/adapters/cpp/ICppDocumentation.js +2 -0
- package/lib/adapters/cpp/ICppDocumentationAttachment.d.ts +16 -0
- package/lib/adapters/cpp/ICppDocumentationAttachment.js +2 -0
- package/lib/adapters/cpp/ICppFileAnalysis.d.ts +41 -0
- package/lib/adapters/cpp/ICppFileAnalysis.js +2 -0
- package/lib/adapters/cpp/ICppQualifiedName.d.ts +16 -0
- package/lib/adapters/cpp/ICppQualifiedName.js +2 -0
- package/lib/adapters/cpp/ICppResolvedAlias.d.ts +24 -0
- package/lib/adapters/cpp/ICppResolvedAlias.js +2 -0
- package/lib/adapters/cpp/ICppScopeContext.d.ts +37 -0
- package/lib/adapters/cpp/ICppScopeContext.js +2 -0
- package/lib/adapters/csharp/CSharpAccessibility.d.ts +7 -0
- package/lib/adapters/csharp/CSharpAccessibility.js +2 -0
- package/lib/adapters/csharp/CSharpAdapter.d.ts +47 -0
- package/lib/adapters/csharp/CSharpAdapter.js +687 -0
- package/lib/adapters/csharp/CSharpDeclarationForm.d.ts +7 -0
- package/lib/adapters/csharp/CSharpDeclarationForm.js +2 -0
- package/lib/adapters/csharp/CSharpDocumentation.d.ts +12 -0
- package/lib/adapters/csharp/CSharpDocumentation.js +35 -0
- package/lib/adapters/csharp/CSharpFileScanner.d.ts +54 -0
- package/lib/adapters/csharp/CSharpFileScanner.js +403 -0
- package/lib/adapters/csharp/CSharpSyntax.d.ts +23 -0
- package/lib/adapters/csharp/CSharpSyntax.js +174 -0
- package/lib/adapters/csharp/CSharpTypeKind.d.ts +7 -0
- package/lib/adapters/csharp/CSharpTypeKind.js +2 -0
- package/lib/adapters/csharp/EvidenceCSharpAdapter.d.ts +15 -0
- package/lib/adapters/csharp/EvidenceCSharpAdapter.js +19 -0
- package/lib/adapters/csharp/ICSharpDeclaration.d.ts +63 -0
- package/lib/adapters/csharp/ICSharpDeclaration.js +2 -0
- package/lib/adapters/csharp/ICSharpDeclarationAddress.d.ts +22 -0
- package/lib/adapters/csharp/ICSharpDeclarationAddress.js +2 -0
- package/lib/adapters/csharp/ICSharpDeclarationGroup.d.ts +19 -0
- package/lib/adapters/csharp/ICSharpDeclarationGroup.js +2 -0
- package/lib/adapters/csharp/ICSharpDocumentation.d.ts +43 -0
- package/lib/adapters/csharp/ICSharpDocumentation.js +2 -0
- package/lib/adapters/csharp/ICSharpDocumentationAttachment.d.ts +25 -0
- package/lib/adapters/csharp/ICSharpDocumentationAttachment.js +2 -0
- package/lib/adapters/csharp/ICSharpFileAnalysis.d.ts +51 -0
- package/lib/adapters/csharp/ICSharpFileAnalysis.js +2 -0
- package/lib/adapters/csharp/ICSharpTypeContext.d.ts +41 -0
- package/lib/adapters/csharp/ICSharpTypeContext.js +2 -0
- package/lib/adapters/dart/DartAdapter.d.ts +96 -0
- package/lib/adapters/dart/DartAdapter.js +616 -0
- package/lib/adapters/dart/DartDocumentation.d.ts +16 -0
- package/lib/adapters/dart/DartDocumentation.js +73 -0
- package/lib/adapters/dart/DartFileScanner.d.ts +112 -0
- package/lib/adapters/dart/DartFileScanner.js +415 -0
- package/lib/adapters/dart/DartLibraries.d.ts +24 -0
- package/lib/adapters/dart/DartLibraries.js +228 -0
- package/lib/adapters/dart/EvidenceDartAdapter.d.ts +15 -0
- package/lib/adapters/dart/EvidenceDartAdapter.js +19 -0
- package/lib/adapters/dart/IDartDeclaration.d.ts +69 -0
- package/lib/adapters/dart/IDartDeclaration.js +2 -0
- package/lib/adapters/dart/IDartDirective.d.ts +53 -0
- package/lib/adapters/dart/IDartDirective.js +2 -0
- package/lib/adapters/dart/IDartDocumentation.d.ts +31 -0
- package/lib/adapters/dart/IDartDocumentation.js +2 -0
- package/lib/adapters/dart/IDartDocumentationAttachment.d.ts +23 -0
- package/lib/adapters/dart/IDartDocumentationAttachment.js +2 -0
- package/lib/adapters/dart/IDartExportFilter.d.ts +22 -0
- package/lib/adapters/dart/IDartExportFilter.js +2 -0
- package/lib/adapters/dart/IDartFileAnalysis.d.ts +55 -0
- package/lib/adapters/dart/IDartFileAnalysis.js +2 -0
- package/lib/adapters/dbml/DbmlDocumentation.d.ts +15 -0
- package/lib/adapters/dbml/DbmlDocumentation.js +49 -0
- package/lib/adapters/dbml/DbmlFileScanner.d.ts +114 -0
- package/lib/adapters/dbml/DbmlFileScanner.js +364 -0
- package/lib/adapters/dbml/EvidenceDbmlAdapter.d.ts +88 -0
- package/lib/adapters/dbml/EvidenceDbmlAdapter.js +674 -0
- package/lib/adapters/dbml/IDbmlDeclaration.d.ts +38 -0
- package/lib/adapters/dbml/IDbmlDeclaration.js +2 -0
- package/lib/adapters/dbml/IDbmlDocumentation.d.ts +34 -0
- package/lib/adapters/dbml/IDbmlDocumentation.js +2 -0
- package/lib/adapters/dbml/IDbmlEndpoint.d.ts +20 -0
- package/lib/adapters/dbml/IDbmlEndpoint.js +2 -0
- package/lib/adapters/dbml/IDbmlEnum.d.ts +27 -0
- package/lib/adapters/dbml/IDbmlEnum.js +2 -0
- package/lib/adapters/dbml/IDbmlFileAnalysis.d.ts +56 -0
- package/lib/adapters/dbml/IDbmlFileAnalysis.js +2 -0
- package/lib/adapters/dbml/IDbmlRelation.d.ts +56 -0
- package/lib/adapters/dbml/IDbmlRelation.js +2 -0
- package/lib/adapters/ecmascript/EcmaScriptAdapter.d.ts +71 -0
- package/lib/adapters/ecmascript/EcmaScriptAdapter.js +516 -0
- package/lib/adapters/ecmascript/EcmaScriptExportKind.d.ts +7 -0
- package/lib/adapters/ecmascript/EcmaScriptExportKind.js +2 -0
- package/lib/adapters/ecmascript/EcmaScriptExportResolver.d.ts +175 -0
- package/lib/adapters/ecmascript/EcmaScriptExportResolver.js +510 -0
- package/lib/adapters/ecmascript/EcmaScriptFileScanner.d.ts +84 -0
- package/lib/adapters/ecmascript/EcmaScriptFileScanner.js +946 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleMode.d.ts +7 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleMode.js +2 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleResolver.d.ts +70 -0
- package/lib/adapters/ecmascript/EcmaScriptModuleResolver.js +211 -0
- package/lib/adapters/ecmascript/EcmaScriptSyntax.d.ts +24 -0
- package/lib/adapters/ecmascript/EcmaScriptSyntax.js +263 -0
- package/lib/adapters/ecmascript/EcmaScriptType.d.ts +7 -0
- package/lib/adapters/ecmascript/EcmaScriptType.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptBinding.d.ts +29 -0
- package/lib/adapters/ecmascript/IEcmaScriptBinding.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptComment.d.ts +39 -0
- package/lib/adapters/ecmascript/IEcmaScriptComment.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptCommentAttachment.d.ts +24 -0
- package/lib/adapters/ecmascript/IEcmaScriptCommentAttachment.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptExport.d.ts +51 -0
- package/lib/adapters/ecmascript/IEcmaScriptExport.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptFileAnalysis.d.ts +56 -0
- package/lib/adapters/ecmascript/IEcmaScriptFileAnalysis.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptHostPosition.d.ts +25 -0
- package/lib/adapters/ecmascript/IEcmaScriptHostPosition.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptImport.d.ts +44 -0
- package/lib/adapters/ecmascript/IEcmaScriptImport.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptModule.d.ts +55 -0
- package/lib/adapters/ecmascript/IEcmaScriptModule.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptModuleResolution.d.ts +40 -0
- package/lib/adapters/ecmascript/IEcmaScriptModuleResolution.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptOwnedUnit.d.ts +45 -0
- package/lib/adapters/ecmascript/IEcmaScriptOwnedUnit.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptResolution.d.ts +31 -0
- package/lib/adapters/ecmascript/IEcmaScriptResolution.js +2 -0
- package/lib/adapters/ecmascript/IEcmaScriptStatementContext.d.ts +58 -0
- package/lib/adapters/ecmascript/IEcmaScriptStatementContext.js +2 -0
- package/lib/adapters/ecmascript/IJavaScriptPackageJson.d.ts +16 -0
- package/lib/adapters/ecmascript/IJavaScriptPackageJson.js +2 -0
- package/lib/adapters/go/EvidenceGoAdapter.d.ts +15 -0
- package/lib/adapters/go/EvidenceGoAdapter.js +19 -0
- package/lib/adapters/go/GoAdapter.d.ts +43 -0
- package/lib/adapters/go/GoAdapter.js +509 -0
- package/lib/adapters/go/GoDeclarationForm.d.ts +7 -0
- package/lib/adapters/go/GoDeclarationForm.js +2 -0
- package/lib/adapters/go/GoFileScanner.d.ts +57 -0
- package/lib/adapters/go/GoFileScanner.js +288 -0
- package/lib/adapters/go/GoPackageResolver.d.ts +147 -0
- package/lib/adapters/go/GoPackageResolver.js +306 -0
- package/lib/adapters/go/GoSyntax.d.ts +17 -0
- package/lib/adapters/go/GoSyntax.js +107 -0
- package/lib/adapters/go/IGoDeclaration.d.ts +53 -0
- package/lib/adapters/go/IGoDeclaration.js +2 -0
- package/lib/adapters/go/IGoDocumentation.d.ts +35 -0
- package/lib/adapters/go/IGoDocumentation.js +2 -0
- package/lib/adapters/go/IGoDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/go/IGoDocumentationAttachment.js +2 -0
- package/lib/adapters/go/IGoFileAnalysis.d.ts +60 -0
- package/lib/adapters/go/IGoFileAnalysis.js +2 -0
- package/lib/adapters/go/IGoMaterializedDeclaration.d.ts +28 -0
- package/lib/adapters/go/IGoMaterializedDeclaration.js +2 -0
- package/lib/adapters/java/EvidenceJavaAdapter.d.ts +15 -0
- package/lib/adapters/java/EvidenceJavaAdapter.js +19 -0
- package/lib/adapters/java/IJavaDeclaration.d.ts +65 -0
- package/lib/adapters/java/IJavaDeclaration.js +2 -0
- package/lib/adapters/java/IJavaDocumentation.d.ts +35 -0
- package/lib/adapters/java/IJavaDocumentation.js +2 -0
- package/lib/adapters/java/IJavaDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/java/IJavaDocumentationAttachment.js +2 -0
- package/lib/adapters/java/IJavaFileAnalysis.d.ts +42 -0
- package/lib/adapters/java/IJavaFileAnalysis.js +2 -0
- package/lib/adapters/java/IJavaTypeContext.d.ts +39 -0
- package/lib/adapters/java/IJavaTypeContext.js +2 -0
- package/lib/adapters/java/JavaAdapter.d.ts +45 -0
- package/lib/adapters/java/JavaAdapter.js +572 -0
- package/lib/adapters/java/JavaDeclarationForm.d.ts +7 -0
- package/lib/adapters/java/JavaDeclarationForm.js +2 -0
- package/lib/adapters/java/JavaDocumentation.d.ts +12 -0
- package/lib/adapters/java/JavaDocumentation.js +52 -0
- package/lib/adapters/java/JavaFileScanner.d.ts +51 -0
- package/lib/adapters/java/JavaFileScanner.js +317 -0
- package/lib/adapters/java/JavaSyntax.d.ts +18 -0
- package/lib/adapters/java/JavaSyntax.js +100 -0
- package/lib/adapters/java/JavaTypeKind.d.ts +7 -0
- package/lib/adapters/java/JavaTypeKind.js +2 -0
- package/lib/adapters/javascript/EvidenceJavaScriptAdapter.d.ts +26 -0
- package/lib/adapters/javascript/EvidenceJavaScriptAdapter.js +32 -0
- package/lib/adapters/kotlin/EvidenceKotlinAdapter.d.ts +15 -0
- package/lib/adapters/kotlin/EvidenceKotlinAdapter.js +19 -0
- package/lib/adapters/kotlin/IKotlinDeclaration.d.ts +77 -0
- package/lib/adapters/kotlin/IKotlinDeclaration.js +2 -0
- package/lib/adapters/kotlin/IKotlinDocumentation.d.ts +31 -0
- package/lib/adapters/kotlin/IKotlinDocumentation.js +2 -0
- package/lib/adapters/kotlin/IKotlinDocumentationAttachment.d.ts +23 -0
- package/lib/adapters/kotlin/IKotlinDocumentationAttachment.js +2 -0
- package/lib/adapters/kotlin/IKotlinFileAnalysis.d.ts +39 -0
- package/lib/adapters/kotlin/IKotlinFileAnalysis.js +2 -0
- package/lib/adapters/kotlin/IKotlinResolvedType.d.ts +23 -0
- package/lib/adapters/kotlin/IKotlinResolvedType.js +2 -0
- package/lib/adapters/kotlin/IKotlinTypeReference.d.ts +44 -0
- package/lib/adapters/kotlin/IKotlinTypeReference.js +2 -0
- package/lib/adapters/kotlin/KotlinAdapter.d.ts +114 -0
- package/lib/adapters/kotlin/KotlinAdapter.js +649 -0
- package/lib/adapters/kotlin/KotlinDocumentation.d.ts +18 -0
- package/lib/adapters/kotlin/KotlinDocumentation.js +80 -0
- package/lib/adapters/kotlin/KotlinFileScanner.d.ts +153 -0
- package/lib/adapters/kotlin/KotlinFileScanner.js +508 -0
- package/lib/adapters/kotlin/KotlinReceivers.d.ts +16 -0
- package/lib/adapters/kotlin/KotlinReceivers.js +104 -0
- package/lib/adapters/lua/EvidenceLuaAdapter.d.ts +16 -0
- package/lib/adapters/lua/EvidenceLuaAdapter.js +20 -0
- package/lib/adapters/lua/ILuaDeclaration.d.ts +54 -0
- package/lib/adapters/lua/ILuaDeclaration.js +2 -0
- package/lib/adapters/lua/ILuaDocumentation.d.ts +31 -0
- package/lib/adapters/lua/ILuaDocumentation.js +2 -0
- package/lib/adapters/lua/ILuaDocumentationAttachment.d.ts +23 -0
- package/lib/adapters/lua/ILuaDocumentationAttachment.js +2 -0
- package/lib/adapters/lua/ILuaFileAnalysis.d.ts +39 -0
- package/lib/adapters/lua/ILuaFileAnalysis.js +2 -0
- package/lib/adapters/lua/ILuaValue.d.ts +39 -0
- package/lib/adapters/lua/ILuaValue.js +2 -0
- package/lib/adapters/lua/LuaAdapter.d.ts +114 -0
- package/lib/adapters/lua/LuaAdapter.js +647 -0
- package/lib/adapters/lua/LuaDocumentation.d.ts +19 -0
- package/lib/adapters/lua/LuaDocumentation.js +79 -0
- package/lib/adapters/lua/LuaFileScanner.d.ts +167 -0
- package/lib/adapters/lua/LuaFileScanner.js +585 -0
- package/lib/adapters/markdown/EvidenceMarkdownAdapter.d.ts +28 -0
- package/lib/adapters/markdown/EvidenceMarkdownAdapter.js +296 -0
- package/lib/adapters/markdown/EvidenceMarkdownRenderedEdge.d.ts +7 -0
- package/lib/adapters/markdown/EvidenceMarkdownRenderedEdge.js +2 -0
- package/lib/adapters/markdown/IMarkdownComment.d.ts +31 -0
- package/lib/adapters/markdown/IMarkdownComment.js +2 -0
- package/lib/adapters/markdown/IMarkdownFence.d.ts +25 -0
- package/lib/adapters/markdown/IMarkdownFence.js +2 -0
- package/lib/adapters/markdown/IMarkdownHeading.d.ts +25 -0
- package/lib/adapters/markdown/IMarkdownHeading.js +2 -0
- package/lib/adapters/markdown/MarkdownScanner.d.ts +102 -0
- package/lib/adapters/markdown/MarkdownScanner.js +471 -0
- package/lib/adapters/markdown/MarkdownSyntax.d.ts +34 -0
- package/lib/adapters/markdown/MarkdownSyntax.js +234 -0
- package/lib/adapters/markdown/MarkdownTarget.d.ts +17 -0
- package/lib/adapters/markdown/MarkdownTarget.js +38 -0
- package/lib/adapters/matlab/EvidenceMatlabAdapter.d.ts +15 -0
- package/lib/adapters/matlab/EvidenceMatlabAdapter.js +19 -0
- package/lib/adapters/matlab/IMatlabDeclaration.d.ts +103 -0
- package/lib/adapters/matlab/IMatlabDeclaration.js +2 -0
- package/lib/adapters/matlab/IMatlabDocumentation.d.ts +35 -0
- package/lib/adapters/matlab/IMatlabDocumentation.js +2 -0
- package/lib/adapters/matlab/IMatlabDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/matlab/IMatlabDocumentationAttachment.js +2 -0
- package/lib/adapters/matlab/IMatlabFileAnalysis.d.ts +43 -0
- package/lib/adapters/matlab/IMatlabFileAnalysis.js +2 -0
- package/lib/adapters/matlab/MatlabAdapter.d.ts +104 -0
- package/lib/adapters/matlab/MatlabAdapter.js +625 -0
- package/lib/adapters/matlab/MatlabDocumentation.d.ts +18 -0
- package/lib/adapters/matlab/MatlabDocumentation.js +78 -0
- package/lib/adapters/matlab/MatlabFileScanner.d.ts +118 -0
- package/lib/adapters/matlab/MatlabFileScanner.js +454 -0
- package/lib/adapters/matlab/MatlabOwnership.d.ts +17 -0
- package/lib/adapters/matlab/MatlabOwnership.js +139 -0
- package/lib/adapters/mysql/EvidenceMysqlAdapter.d.ts +16 -0
- package/lib/adapters/mysql/EvidenceMysqlAdapter.js +23 -0
- package/lib/adapters/mysql/MysqlDocumentation.d.ts +15 -0
- package/lib/adapters/mysql/MysqlDocumentation.js +40 -0
- package/lib/adapters/mysql/MysqlFileScanner.d.ts +16 -0
- package/lib/adapters/mysql/MysqlFileScanner.js +78 -0
- package/lib/adapters/mysql/MysqlIdentifier.d.ts +13 -0
- package/lib/adapters/mysql/MysqlIdentifier.js +30 -0
- package/lib/adapters/mysql/MysqlPolicy.d.ts +39 -0
- package/lib/adapters/mysql/MysqlPolicy.js +173 -0
- package/lib/adapters/objc/EvidenceObjcAdapter.d.ts +15 -0
- package/lib/adapters/objc/EvidenceObjcAdapter.js +19 -0
- package/lib/adapters/objc/IObjcDeclaration.d.ts +79 -0
- package/lib/adapters/objc/IObjcDeclaration.js +2 -0
- package/lib/adapters/objc/IObjcDocumentation.d.ts +35 -0
- package/lib/adapters/objc/IObjcDocumentation.js +2 -0
- package/lib/adapters/objc/IObjcDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/objc/IObjcDocumentationAttachment.js +2 -0
- package/lib/adapters/objc/IObjcFileAnalysis.d.ts +43 -0
- package/lib/adapters/objc/IObjcFileAnalysis.js +2 -0
- package/lib/adapters/objc/ObjcAdapter.d.ts +100 -0
- package/lib/adapters/objc/ObjcAdapter.js +646 -0
- package/lib/adapters/objc/ObjcDeclarationForm.d.ts +7 -0
- package/lib/adapters/objc/ObjcDeclarationForm.js +2 -0
- package/lib/adapters/objc/ObjcDocumentation.d.ts +8 -0
- package/lib/adapters/objc/ObjcDocumentation.js +11 -0
- package/lib/adapters/objc/ObjcFileScanner.d.ts +123 -0
- package/lib/adapters/objc/ObjcFileScanner.js +461 -0
- package/lib/adapters/php/EvidencePhpAdapter.d.ts +15 -0
- package/lib/adapters/php/EvidencePhpAdapter.js +19 -0
- package/lib/adapters/php/IPhpDeclaration.d.ts +64 -0
- package/lib/adapters/php/IPhpDeclaration.js +2 -0
- package/lib/adapters/php/IPhpDocumentation.d.ts +35 -0
- package/lib/adapters/php/IPhpDocumentation.js +2 -0
- package/lib/adapters/php/IPhpDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/php/IPhpDocumentationAttachment.js +2 -0
- package/lib/adapters/php/IPhpFileAnalysis.d.ts +48 -0
- package/lib/adapters/php/IPhpFileAnalysis.js +2 -0
- package/lib/adapters/php/PhpAdapter.d.ts +108 -0
- package/lib/adapters/php/PhpAdapter.js +670 -0
- package/lib/adapters/php/PhpDocumentation.d.ts +18 -0
- package/lib/adapters/php/PhpDocumentation.js +80 -0
- package/lib/adapters/php/PhpFileScanner.d.ts +79 -0
- package/lib/adapters/php/PhpFileScanner.js +346 -0
- package/lib/adapters/postgresql/EvidencePostgresqlAdapter.d.ts +26 -0
- package/lib/adapters/postgresql/EvidencePostgresqlAdapter.js +41 -0
- package/lib/adapters/postgresql/IPostgresqlFileAnalysis.d.ts +16 -0
- package/lib/adapters/postgresql/IPostgresqlFileAnalysis.js +2 -0
- package/lib/adapters/postgresql/IPostgresqlReference.d.ts +26 -0
- package/lib/adapters/postgresql/IPostgresqlReference.js +2 -0
- package/lib/adapters/postgresql/PostgresqlFileScanner.d.ts +103 -0
- package/lib/adapters/postgresql/PostgresqlFileScanner.js +431 -0
- package/lib/adapters/postgresql/PostgresqlFingerprint.d.ts +14 -0
- package/lib/adapters/postgresql/PostgresqlFingerprint.js +29 -0
- package/lib/adapters/postgresql/PostgresqlIdentity.d.ts +20 -0
- package/lib/adapters/postgresql/PostgresqlIdentity.js +41 -0
- package/lib/adapters/postgresql/PostgresqlOwnership.d.ts +14 -0
- package/lib/adapters/postgresql/PostgresqlOwnership.js +668 -0
- package/lib/adapters/prisma/EvidencePrismaAdapter.d.ts +57 -0
- package/lib/adapters/prisma/EvidencePrismaAdapter.js +603 -0
- package/lib/adapters/prisma/IPrismaBlockHead.d.ts +21 -0
- package/lib/adapters/prisma/IPrismaBlockHead.js +2 -0
- package/lib/adapters/prisma/IPrismaCacheEntry.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaCacheEntry.js +2 -0
- package/lib/adapters/prisma/IPrismaCommentRun.d.ts +51 -0
- package/lib/adapters/prisma/IPrismaCommentRun.js +2 -0
- package/lib/adapters/prisma/IPrismaDatamodel.d.ts +15 -0
- package/lib/adapters/prisma/IPrismaDatamodel.js +2 -0
- package/lib/adapters/prisma/IPrismaDatamodelField.d.ts +26 -0
- package/lib/adapters/prisma/IPrismaDatamodelField.js +2 -0
- package/lib/adapters/prisma/IPrismaDatamodelModel.d.ts +29 -0
- package/lib/adapters/prisma/IPrismaDatamodelModel.js +2 -0
- package/lib/adapters/prisma/IPrismaField.d.ts +36 -0
- package/lib/adapters/prisma/IPrismaField.js +2 -0
- package/lib/adapters/prisma/IPrismaFileAnalysis.d.ts +31 -0
- package/lib/adapters/prisma/IPrismaFileAnalysis.js +2 -0
- package/lib/adapters/prisma/IPrismaLineParts.d.ts +26 -0
- package/lib/adapters/prisma/IPrismaLineParts.js +2 -0
- package/lib/adapters/prisma/IPrismaLoadResult.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaLoadResult.js +2 -0
- package/lib/adapters/prisma/IPrismaLocatedDeclaration.d.ts +20 -0
- package/lib/adapters/prisma/IPrismaLocatedDeclaration.js +2 -0
- package/lib/adapters/prisma/IPrismaLocation.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaLocation.js +2 -0
- package/lib/adapters/prisma/IPrismaModel.d.ts +36 -0
- package/lib/adapters/prisma/IPrismaModel.js +2 -0
- package/lib/adapters/prisma/IPrismaOwnedUnit.d.ts +37 -0
- package/lib/adapters/prisma/IPrismaOwnedUnit.js +2 -0
- package/lib/adapters/prisma/IPrismaParser.d.ts +28 -0
- package/lib/adapters/prisma/IPrismaParser.js +2 -0
- package/lib/adapters/prisma/IPrismaPendingComment.d.ts +52 -0
- package/lib/adapters/prisma/IPrismaPendingComment.js +2 -0
- package/lib/adapters/prisma/IPrismaSchemaFile.d.ts +22 -0
- package/lib/adapters/prisma/IPrismaSchemaFile.js +2 -0
- package/lib/adapters/prisma/ITrimmedMapping.d.ts +23 -0
- package/lib/adapters/prisma/ITrimmedMapping.js +2 -0
- package/lib/adapters/prisma/PrismaCommentForm.d.ts +7 -0
- package/lib/adapters/prisma/PrismaCommentForm.js +2 -0
- package/lib/adapters/prisma/PrismaFileScanner.d.ts +70 -0
- package/lib/adapters/prisma/PrismaFileScanner.js +361 -0
- package/lib/adapters/prisma/PrismaModelLoader.d.ts +12 -0
- package/lib/adapters/prisma/PrismaModelLoader.js +268 -0
- package/lib/adapters/prisma/PrismaSyntax.d.ts +9 -0
- package/lib/adapters/prisma/PrismaSyntax.js +27 -0
- package/lib/adapters/prisma/PrismaTarget.d.ts +10 -0
- package/lib/adapters/prisma/PrismaTarget.js +23 -0
- package/lib/adapters/python/EvidencePythonAdapter.d.ts +15 -0
- package/lib/adapters/python/EvidencePythonAdapter.js +19 -0
- package/lib/adapters/python/IPythonAll.d.ts +24 -0
- package/lib/adapters/python/IPythonAll.js +2 -0
- package/lib/adapters/python/IPythonBinding.d.ts +52 -0
- package/lib/adapters/python/IPythonBinding.js +2 -0
- package/lib/adapters/python/IPythonClassContext.d.ts +36 -0
- package/lib/adapters/python/IPythonClassContext.js +2 -0
- package/lib/adapters/python/IPythonDocumentation.d.ts +47 -0
- package/lib/adapters/python/IPythonDocumentation.js +2 -0
- package/lib/adapters/python/IPythonDocumentationAttachment.d.ts +31 -0
- package/lib/adapters/python/IPythonDocumentationAttachment.js +2 -0
- package/lib/adapters/python/IPythonFileAnalysis.d.ts +63 -0
- package/lib/adapters/python/IPythonFileAnalysis.js +2 -0
- package/lib/adapters/python/IPythonHostPosition.d.ts +33 -0
- package/lib/adapters/python/IPythonHostPosition.js +2 -0
- package/lib/adapters/python/IPythonModule.d.ts +42 -0
- package/lib/adapters/python/IPythonModule.js +2 -0
- package/lib/adapters/python/IPythonOwnedUnit.d.ts +30 -0
- package/lib/adapters/python/IPythonOwnedUnit.js +2 -0
- package/lib/adapters/python/IPythonResolution.d.ts +21 -0
- package/lib/adapters/python/IPythonResolution.js +2 -0
- package/lib/adapters/python/IPythonResolvedBinding.d.ts +20 -0
- package/lib/adapters/python/IPythonResolvedBinding.js +2 -0
- package/lib/adapters/python/PythonAdapter.d.ts +43 -0
- package/lib/adapters/python/PythonAdapter.js +488 -0
- package/lib/adapters/python/PythonAllState.d.ts +7 -0
- package/lib/adapters/python/PythonAllState.js +2 -0
- package/lib/adapters/python/PythonBindingKind.d.ts +7 -0
- package/lib/adapters/python/PythonBindingKind.js +2 -0
- package/lib/adapters/python/PythonExportResolver.d.ts +146 -0
- package/lib/adapters/python/PythonExportResolver.js +408 -0
- package/lib/adapters/python/PythonFileScanner.d.ts +367 -0
- package/lib/adapters/python/PythonFileScanner.js +1019 -0
- package/lib/adapters/python/PythonResolutionMode.d.ts +7 -0
- package/lib/adapters/python/PythonResolutionMode.js +2 -0
- package/lib/adapters/python/PythonSyntax.d.ts +115 -0
- package/lib/adapters/python/PythonSyntax.js +298 -0
- package/lib/adapters/ruby/EvidenceRubyAdapter.d.ts +15 -0
- package/lib/adapters/ruby/EvidenceRubyAdapter.js +19 -0
- package/lib/adapters/ruby/IRubyConstantPath.d.ts +20 -0
- package/lib/adapters/ruby/IRubyConstantPath.js +2 -0
- package/lib/adapters/ruby/IRubyDeclaration.d.ts +105 -0
- package/lib/adapters/ruby/IRubyDeclaration.js +2 -0
- package/lib/adapters/ruby/IRubyDocumentation.d.ts +42 -0
- package/lib/adapters/ruby/IRubyDocumentation.js +2 -0
- package/lib/adapters/ruby/IRubyDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/ruby/IRubyDocumentationAttachment.js +2 -0
- package/lib/adapters/ruby/IRubyFileAnalysis.d.ts +42 -0
- package/lib/adapters/ruby/IRubyFileAnalysis.js +2 -0
- package/lib/adapters/ruby/IRubyScopeContext.d.ts +48 -0
- package/lib/adapters/ruby/IRubyScopeContext.js +2 -0
- package/lib/adapters/ruby/RubyAdapter.d.ts +50 -0
- package/lib/adapters/ruby/RubyAdapter.js +724 -0
- package/lib/adapters/ruby/RubyAttributeMode.d.ts +7 -0
- package/lib/adapters/ruby/RubyAttributeMode.js +2 -0
- package/lib/adapters/ruby/RubyContainerKind.d.ts +7 -0
- package/lib/adapters/ruby/RubyContainerKind.js +2 -0
- package/lib/adapters/ruby/RubyDeclarationForm.d.ts +7 -0
- package/lib/adapters/ruby/RubyDeclarationForm.js +2 -0
- package/lib/adapters/ruby/RubyFileScanner.d.ts +332 -0
- package/lib/adapters/ruby/RubyFileScanner.js +990 -0
- package/lib/adapters/ruby/RubyMethodSide.d.ts +7 -0
- package/lib/adapters/ruby/RubyMethodSide.js +2 -0
- package/lib/adapters/ruby/RubyScopeKind.d.ts +7 -0
- package/lib/adapters/ruby/RubyScopeKind.js +2 -0
- package/lib/adapters/ruby/RubySyntax.d.ts +81 -0
- package/lib/adapters/ruby/RubySyntax.js +202 -0
- package/lib/adapters/ruby/RubyVisibility.d.ts +7 -0
- package/lib/adapters/ruby/RubyVisibility.js +2 -0
- package/lib/adapters/rust/EvidenceRustAdapter.d.ts +15 -0
- package/lib/adapters/rust/EvidenceRustAdapter.js +19 -0
- package/lib/adapters/rust/IRustDeclaration.d.ts +72 -0
- package/lib/adapters/rust/IRustDeclaration.js +2 -0
- package/lib/adapters/rust/IRustDocumentation.d.ts +41 -0
- package/lib/adapters/rust/IRustDocumentation.js +2 -0
- package/lib/adapters/rust/IRustDocumentationAttachment.d.ts +20 -0
- package/lib/adapters/rust/IRustDocumentationAttachment.js +2 -0
- package/lib/adapters/rust/IRustExportRecord.d.ts +28 -0
- package/lib/adapters/rust/IRustExportRecord.js +2 -0
- package/lib/adapters/rust/IRustExternalModule.d.ts +32 -0
- package/lib/adapters/rust/IRustExternalModule.js +2 -0
- package/lib/adapters/rust/IRustFileAnalysis.d.ts +66 -0
- package/lib/adapters/rust/IRustFileAnalysis.js +2 -0
- package/lib/adapters/rust/IRustFilePlacement.d.ts +35 -0
- package/lib/adapters/rust/IRustFilePlacement.js +2 -0
- package/lib/adapters/rust/IRustImplementation.d.ts +38 -0
- package/lib/adapters/rust/IRustImplementation.js +2 -0
- package/lib/adapters/rust/IRustLocatedDeclaration.d.ts +35 -0
- package/lib/adapters/rust/IRustLocatedDeclaration.js +2 -0
- package/lib/adapters/rust/IRustModuleRecord.d.ts +62 -0
- package/lib/adapters/rust/IRustModuleRecord.js +2 -0
- package/lib/adapters/rust/IRustPublicOccurrence.d.ts +35 -0
- package/lib/adapters/rust/IRustPublicOccurrence.js +2 -0
- package/lib/adapters/rust/IRustResolvedMember.d.ts +34 -0
- package/lib/adapters/rust/IRustResolvedMember.js +2 -0
- package/lib/adapters/rust/IRustUse.d.ts +33 -0
- package/lib/adapters/rust/IRustUse.js +2 -0
- package/lib/adapters/rust/IRustUseBinding.d.ts +26 -0
- package/lib/adapters/rust/IRustUseBinding.js +2 -0
- package/lib/adapters/rust/RustAdapter.d.ts +43 -0
- package/lib/adapters/rust/RustAdapter.js +503 -0
- package/lib/adapters/rust/RustDeclarationForm.d.ts +7 -0
- package/lib/adapters/rust/RustDeclarationForm.js +2 -0
- package/lib/adapters/rust/RustFileScanner.d.ts +61 -0
- package/lib/adapters/rust/RustFileScanner.js +550 -0
- package/lib/adapters/rust/RustModuleResolver.d.ts +70 -0
- package/lib/adapters/rust/RustModuleResolver.js +716 -0
- package/lib/adapters/rust/RustSyntax.d.ts +93 -0
- package/lib/adapters/rust/RustSyntax.js +244 -0
- package/lib/adapters/rust/RustVisibility.d.ts +7 -0
- package/lib/adapters/rust/RustVisibility.js +2 -0
- package/lib/adapters/scala/EvidenceScalaAdapter.d.ts +15 -0
- package/lib/adapters/scala/EvidenceScalaAdapter.js +19 -0
- package/lib/adapters/scala/IScalaDeclaration.d.ts +78 -0
- package/lib/adapters/scala/IScalaDeclaration.js +2 -0
- package/lib/adapters/scala/IScalaDocumentation.d.ts +35 -0
- package/lib/adapters/scala/IScalaDocumentation.js +2 -0
- package/lib/adapters/scala/IScalaDocumentationAttachment.d.ts +22 -0
- package/lib/adapters/scala/IScalaDocumentationAttachment.js +2 -0
- package/lib/adapters/scala/IScalaExport.d.ts +29 -0
- package/lib/adapters/scala/IScalaExport.js +2 -0
- package/lib/adapters/scala/IScalaFileAnalysis.d.ts +50 -0
- package/lib/adapters/scala/IScalaFileAnalysis.js +2 -0
- package/lib/adapters/scala/ScalaAdapter.d.ts +100 -0
- package/lib/adapters/scala/ScalaAdapter.js +638 -0
- package/lib/adapters/scala/ScalaDocumentation.d.ts +16 -0
- package/lib/adapters/scala/ScalaDocumentation.js +77 -0
- package/lib/adapters/scala/ScalaExports.d.ts +16 -0
- package/lib/adapters/scala/ScalaExports.js +136 -0
- package/lib/adapters/scala/ScalaFileScanner.d.ts +111 -0
- package/lib/adapters/scala/ScalaFileScanner.js +434 -0
- package/lib/adapters/sql/EvidenceSqlAdapter.d.ts +13 -0
- package/lib/adapters/sql/EvidenceSqlAdapter.js +28 -0
- package/lib/adapters/sql/ISqlAdapterOptions.d.ts +33 -0
- package/lib/adapters/sql/ISqlAdapterOptions.js +2 -0
- package/lib/adapters/sql/ISqlDeclaration.d.ts +67 -0
- package/lib/adapters/sql/ISqlDeclaration.js +2 -0
- package/lib/adapters/sql/ISqlDocumentation.d.ts +40 -0
- package/lib/adapters/sql/ISqlDocumentation.js +2 -0
- package/lib/adapters/sql/ISqlDocumentationAttachment.d.ts +18 -0
- package/lib/adapters/sql/ISqlDocumentationAttachment.js +2 -0
- package/lib/adapters/sql/ISqlFileAnalysis.d.ts +41 -0
- package/lib/adapters/sql/ISqlFileAnalysis.js +2 -0
- package/lib/adapters/sql/ISqlPolicy.d.ts +43 -0
- package/lib/adapters/sql/ISqlPolicy.js +2 -0
- package/lib/adapters/sql/SqlAdapter.d.ts +123 -0
- package/lib/adapters/sql/SqlAdapter.js +658 -0
- package/lib/adapters/sql/SqlDocumentation.d.ts +16 -0
- package/lib/adapters/sql/SqlDocumentation.js +91 -0
- package/lib/adapters/sql/SqlFileScanner.d.ts +86 -0
- package/lib/adapters/sql/SqlFileScanner.js +299 -0
- package/lib/adapters/sql/SqlPolicy.d.ts +20 -0
- package/lib/adapters/sql/SqlPolicy.js +111 -0
- package/lib/adapters/sqlite/EvidenceSqliteAdapter.d.ts +16 -0
- package/lib/adapters/sqlite/EvidenceSqliteAdapter.js +26 -0
- package/lib/adapters/sqlite/SqliteFileScanner.d.ts +83 -0
- package/lib/adapters/sqlite/SqliteFileScanner.js +285 -0
- package/lib/adapters/sqlite/SqliteSyntax.d.ts +26 -0
- package/lib/adapters/sqlite/SqliteSyntax.js +49 -0
- package/lib/adapters/swagger/EvidenceSwaggerAdapter.d.ts +55 -0
- package/lib/adapters/swagger/EvidenceSwaggerAdapter.js +489 -0
- package/lib/adapters/swagger/IRemoteSwaggerSource.d.ts +19 -0
- package/lib/adapters/swagger/IRemoteSwaggerSource.js +2 -0
- package/lib/adapters/swagger/ISwaggerCacheEntry.d.ts +18 -0
- package/lib/adapters/swagger/ISwaggerCacheEntry.js +2 -0
- package/lib/adapters/swagger/ISwaggerLoadResult.d.ts +13 -0
- package/lib/adapters/swagger/ISwaggerLoadResult.js +2 -0
- package/lib/adapters/swagger/ISwaggerOperation.d.ts +42 -0
- package/lib/adapters/swagger/ISwaggerOperation.js +2 -0
- package/lib/adapters/swagger/ISwaggerOperationLocation.d.ts +21 -0
- package/lib/adapters/swagger/ISwaggerOperationLocation.js +2 -0
- package/lib/adapters/swagger/IYamlScalarMapping.d.ts +36 -0
- package/lib/adapters/swagger/IYamlScalarMapping.js +2 -0
- package/lib/adapters/swagger/SwaggerDescription.d.ts +18 -0
- package/lib/adapters/swagger/SwaggerDescription.js +62 -0
- package/lib/adapters/swagger/SwaggerDocumentInput.d.ts +8 -0
- package/lib/adapters/swagger/SwaggerDocumentInput.js +2 -0
- package/lib/adapters/swagger/SwaggerDocumentLoader.d.ts +15 -0
- package/lib/adapters/swagger/SwaggerDocumentLoader.js +6962 -0
- package/lib/adapters/swagger/SwaggerRemoteReader.d.ts +26 -0
- package/lib/adapters/swagger/SwaggerRemoteReader.js +89 -0
- package/lib/adapters/swagger/SwaggerTarget.d.ts +14 -0
- package/lib/adapters/swagger/SwaggerTarget.js +29 -0
- package/lib/adapters/swagger/YamlScalarMapper.d.ts +11 -0
- package/lib/adapters/swagger/YamlScalarMapper.js +76 -0
- package/lib/adapters/swift/EvidenceSwiftAdapter.d.ts +15 -0
- package/lib/adapters/swift/EvidenceSwiftAdapter.js +19 -0
- package/lib/adapters/swift/ISwiftDeclaration.d.ts +91 -0
- package/lib/adapters/swift/ISwiftDeclaration.js +2 -0
- package/lib/adapters/swift/ISwiftDocumentation.d.ts +35 -0
- package/lib/adapters/swift/ISwiftDocumentation.js +2 -0
- package/lib/adapters/swift/ISwiftDocumentationAttachment.d.ts +22 -0
- package/lib/adapters/swift/ISwiftDocumentationAttachment.js +2 -0
- package/lib/adapters/swift/ISwiftFileAnalysis.d.ts +43 -0
- package/lib/adapters/swift/ISwiftFileAnalysis.js +2 -0
- package/lib/adapters/swift/SwiftAdapter.d.ts +108 -0
- package/lib/adapters/swift/SwiftAdapter.js +666 -0
- package/lib/adapters/swift/SwiftDocumentation.d.ts +16 -0
- package/lib/adapters/swift/SwiftDocumentation.js +75 -0
- package/lib/adapters/swift/SwiftFileScanner.d.ts +87 -0
- package/lib/adapters/swift/SwiftFileScanner.js +341 -0
- package/lib/adapters/swift/SwiftOwnership.d.ts +16 -0
- package/lib/adapters/swift/SwiftOwnership.js +141 -0
- package/lib/adapters/typescript/EvidenceTypeScriptAdapter.d.ts +29 -0
- package/lib/adapters/typescript/EvidenceTypeScriptAdapter.js +35 -0
- package/lib/adapters/zig/EvidenceZigAdapter.d.ts +16 -0
- package/lib/adapters/zig/EvidenceZigAdapter.js +20 -0
- package/lib/adapters/zig/IZigDeclaration.d.ts +73 -0
- package/lib/adapters/zig/IZigDeclaration.js +2 -0
- package/lib/adapters/zig/IZigDocumentation.d.ts +35 -0
- package/lib/adapters/zig/IZigDocumentation.js +2 -0
- package/lib/adapters/zig/IZigDocumentationAttachment.d.ts +21 -0
- package/lib/adapters/zig/IZigDocumentationAttachment.js +2 -0
- package/lib/adapters/zig/IZigFileAnalysis.d.ts +47 -0
- package/lib/adapters/zig/IZigFileAnalysis.js +2 -0
- package/lib/adapters/zig/ZigAdapter.d.ts +114 -0
- package/lib/adapters/zig/ZigAdapter.js +647 -0
- package/lib/adapters/zig/ZigDocumentation.d.ts +18 -0
- package/lib/adapters/zig/ZigDocumentation.js +80 -0
- package/lib/adapters/zig/ZigFileScanner.d.ts +125 -0
- package/lib/adapters/zig/ZigFileScanner.js +538 -0
- package/lib/commands/EvidenceCommand.d.ts +70 -0
- package/lib/commands/EvidenceCommand.js +722 -0
- package/lib/commands/EvidenceCommandError.d.ts +16 -0
- package/lib/commands/EvidenceCommandError.js +23 -0
- package/lib/commands/EvidenceWatcher.d.ts +134 -0
- package/lib/commands/EvidenceWatcher.js +500 -0
- package/lib/contexts/EvidenceQueryPopulationContext.d.ts +102 -0
- package/lib/contexts/EvidenceQueryPopulationContext.js +166 -0
- package/lib/contexts/IEvidenceCheckContext.d.ts +26 -0
- package/lib/contexts/IEvidenceCheckContext.js +2 -0
- package/lib/contexts/IEvidenceClaimContext.d.ts +48 -0
- package/lib/contexts/IEvidenceClaimContext.js +2 -0
- package/lib/contexts/IEvidenceGraphClaimContext.d.ts +40 -0
- package/lib/contexts/IEvidenceGraphClaimContext.js +2 -0
- package/lib/contexts/IEvidenceGraphReferenceContext.d.ts +65 -0
- package/lib/contexts/IEvidenceGraphReferenceContext.js +2 -0
- package/lib/contexts/IEvidenceQueryContext.d.ts +32 -0
- package/lib/contexts/IEvidenceQueryContext.js +2 -0
- package/lib/contexts/IEvidenceTagContext.d.ts +64 -0
- package/lib/contexts/IEvidenceTagContext.js +2 -0
- package/lib/executable/evidence.d.ts +2 -0
- package/lib/executable/evidence.js +14 -0
- package/lib/graph/EvidenceFingerprint.d.ts +27 -0
- package/lib/graph/EvidenceFingerprint.js +37 -0
- package/lib/graph/EvidenceGraph.d.ts +56 -0
- package/lib/graph/EvidenceGraph.js +1944 -0
- package/lib/graph/EvidenceInventory.d.ts +146 -0
- package/lib/graph/EvidenceInventory.js +1165 -0
- package/lib/graph/EvidenceQuery.d.ts +86 -0
- package/lib/graph/EvidenceQuery.js +109 -0
- package/lib/index.d.ts +110 -0
- package/lib/index.js +154 -0
- package/lib/internal/CanonicalJson.d.ts +20 -0
- package/lib/internal/CanonicalJson.js +67 -0
- package/lib/internal/ConfigDependencyScanner.d.ts +40 -0
- package/lib/internal/ConfigDependencyScanner.js +330 -0
- package/lib/internal/EvidenceAdapterFactory.d.ts +15 -0
- package/lib/internal/EvidenceAdapterFactory.js +104 -0
- package/lib/internal/EvidenceArtifactTypes.d.ts +20 -0
- package/lib/internal/EvidenceArtifactTypes.js +41 -0
- package/lib/internal/EvidenceConfigFormat.d.ts +11 -0
- package/lib/internal/EvidenceConfigFormat.js +24 -0
- package/lib/internal/EvidenceFingerprintIndex.d.ts +49 -0
- package/lib/internal/EvidenceFingerprintIndex.js +201 -0
- package/lib/internal/EvidenceTargetApplicability.d.ts +16 -0
- package/lib/internal/EvidenceTargetApplicability.js +144 -0
- package/lib/internal/EvidenceTargetBody.d.ts +21 -0
- package/lib/internal/EvidenceTargetBody.js +66 -0
- package/lib/internal/FileGlob.d.ts +24 -0
- package/lib/internal/FileGlob.js +148 -0
- package/lib/internal/IConfigDependencyScan.d.ts +25 -0
- package/lib/internal/IConfigDependencyScan.js +2 -0
- package/lib/internal/IConfigPackageScope.d.ts +16 -0
- package/lib/internal/IConfigPackageScope.js +2 -0
- package/lib/internal/IEvaluateTypeScriptConfigOptions.d.ts +16 -0
- package/lib/internal/IEvaluateTypeScriptConfigOptions.js +2 -0
- package/lib/internal/IEvidenceMaterializedClaim.d.ts +47 -0
- package/lib/internal/IEvidenceMaterializedClaim.js +2 -0
- package/lib/internal/IEvidenceMaterializedReference.d.ts +31 -0
- package/lib/internal/IEvidenceMaterializedReference.js +2 -0
- package/lib/internal/IEvidenceQueryPopulation.d.ts +43 -0
- package/lib/internal/IEvidenceQueryPopulation.js +2 -0
- package/lib/internal/IEvidenceResolvedAcknowledgement.d.ts +30 -0
- package/lib/internal/IEvidenceResolvedAcknowledgement.js +2 -0
- package/lib/internal/IEvidenceResolvedReview.d.ts +30 -0
- package/lib/internal/IEvidenceResolvedReview.js +2 -0
- package/lib/internal/IEvidenceTargetBody.d.ts +22 -0
- package/lib/internal/IEvidenceTargetBody.js +2 -0
- package/lib/internal/IEvidenceTargetCandidate.d.ts +23 -0
- package/lib/internal/IEvidenceTargetCandidate.js +2 -0
- package/lib/internal/IEvidenceUnhostedChecklist.d.ts +38 -0
- package/lib/internal/IEvidenceUnhostedChecklist.js +2 -0
- package/lib/internal/IEvidenceWatchAttempt.d.ts +39 -0
- package/lib/internal/IEvidenceWatchAttempt.js +2 -0
- package/lib/internal/IFileGlobPattern.d.ts +22 -0
- package/lib/internal/IFileGlobPattern.js +2 -0
- package/lib/internal/IPackageManifest.d.ts +16 -0
- package/lib/internal/IPackageManifest.js +2 -0
- package/lib/internal/IPendingEvidenceTag.d.ts +36 -0
- package/lib/internal/IPendingEvidenceTag.js +2 -0
- package/lib/internal/ITreeSitterAssetLock.d.ts +23 -0
- package/lib/internal/ITreeSitterAssetLock.js +2 -0
- package/lib/internal/ITreeSitterAssetOptions.d.ts +51 -0
- package/lib/internal/ITreeSitterAssetOptions.js +2 -0
- package/lib/internal/ITreeSitterAssetPending.d.ts +29 -0
- package/lib/internal/ITreeSitterAssetPending.js +2 -0
- package/lib/internal/ITtsxExecutables.d.ts +16 -0
- package/lib/internal/ITtsxExecutables.js +2 -0
- package/lib/internal/ITtsxManifest.d.ts +17 -0
- package/lib/internal/ITtsxManifest.js +2 -0
- package/lib/internal/InventoryMerge.d.ts +53 -0
- package/lib/internal/InventoryMerge.js +317 -0
- package/lib/internal/InventorySources.d.ts +16 -0
- package/lib/internal/InventorySources.js +77 -0
- package/lib/internal/ParserSlots.d.ts +79 -0
- package/lib/internal/ParserSlots.js +113 -0
- package/lib/internal/SourceCollector.d.ts +62 -0
- package/lib/internal/SourceCollector.js +301 -0
- package/lib/internal/SourceFailure.d.ts +17 -0
- package/lib/internal/SourceFailure.js +23 -0
- package/lib/internal/SourcePath.d.ts +43 -0
- package/lib/internal/SourcePath.js +93 -0
- package/lib/internal/SourceText.d.ts +40 -0
- package/lib/internal/SourceText.js +81 -0
- package/lib/internal/TreeSitterAssetCache.d.ts +35 -0
- package/lib/internal/TreeSitterAssetCache.js +456 -0
- package/lib/internal/TreeSitterAssetScope.d.ts +23 -0
- package/lib/internal/TreeSitterAssetScope.js +40 -0
- package/lib/internal/TreeSitterAssets.d.ts +67 -0
- package/lib/internal/TreeSitterAssets.js +367 -0
- package/lib/internal/TreeSitterRange.d.ts +17 -0
- package/lib/internal/TreeSitterRange.js +33 -0
- package/lib/internal/TreeSitterRuntime.d.ts +17 -0
- package/lib/internal/TreeSitterRuntime.js +57 -0
- package/lib/internal/WatchDependencySet.d.ts +31 -0
- package/lib/internal/WatchDependencySet.js +59 -0
- package/lib/internal/WatchDependencySnapshot.d.ts +38 -0
- package/lib/internal/WatchDependencySnapshot.js +191 -0
- package/lib/internal/createEvidenceConfigPlan.d.ts +10 -0
- package/lib/internal/createEvidenceConfigPlan.js +90 -0
- package/lib/internal/evaluateTypeScriptConfig.d.ts +9 -0
- package/lib/internal/evaluateTypeScriptConfig.js +341 -0
- package/lib/internal/parser-grammars.json +452 -0
- package/lib/internal/validateEvidenceConfig.d.ts +8 -0
- package/lib/internal/validateEvidenceConfig.js +154 -0
- package/lib/loaders/EvidenceConfigLoader.d.ts +36 -0
- package/lib/loaders/EvidenceConfigLoader.js +557 -0
- package/lib/loaders/EvidenceSourceLoader.d.ts +35 -0
- package/lib/loaders/EvidenceSourceLoader.js +50 -0
- package/lib/parsers/EvidenceDocumentation.d.ts +20 -0
- package/lib/parsers/EvidenceDocumentation.js +77 -0
- package/lib/parsers/EvidenceLanguageRegistry.d.ts +49 -0
- package/lib/parsers/EvidenceLanguageRegistry.js +652 -0
- package/lib/parsers/EvidenceParseSession.d.ts +141 -0
- package/lib/parsers/EvidenceParseSession.js +193 -0
- package/lib/parsers/EvidenceParser.d.ts +109 -0
- package/lib/parsers/EvidenceParser.js +307 -0
- package/lib/parsers/EvidenceParserError.d.ts +71 -0
- package/lib/parsers/EvidenceParserError.js +63 -0
- package/lib/parsers/EvidenceTagParser.d.ts +56 -0
- package/lib/parsers/EvidenceTagParser.js +81 -0
- package/lib/programmers/EvidenceCheckProgrammer.d.ts +36 -0
- package/lib/programmers/EvidenceCheckProgrammer.js +446 -0
- package/lib/programmers/EvidenceQueryProgrammer.d.ts +69 -0
- package/lib/programmers/EvidenceQueryProgrammer.js +970 -0
- package/lib/programmers/EvidenceTagProgrammer.d.ts +25 -0
- package/lib/programmers/EvidenceTagProgrammer.js +252 -0
- package/lib/reporters/EvidenceGraphReporter.d.ts +39 -0
- package/lib/reporters/EvidenceGraphReporter.js +193 -0
- package/lib/reporters/EvidenceQueryReporter.d.ts +33 -0
- package/lib/reporters/EvidenceQueryReporter.js +181 -0
- package/lib/reporters/EvidenceReporter.d.ts +33 -0
- package/lib/reporters/EvidenceReporter.js +117 -0
- package/lib/reporters/EvidenceWatchReporter.d.ts +31 -0
- package/lib/reporters/EvidenceWatchReporter.js +46 -0
- package/lib/structures/IEvidenceAdapter.d.ts +39 -0
- package/lib/structures/IEvidenceAdapter.js +2 -0
- package/lib/structures/IEvidenceAddress.d.ts +29 -0
- package/lib/structures/IEvidenceAddress.js +2 -0
- package/lib/structures/IEvidenceCheckAnalysis.d.ts +37 -0
- package/lib/structures/IEvidenceCheckAnalysis.js +2 -0
- package/lib/structures/IEvidenceCheckClaim.d.ts +48 -0
- package/lib/structures/IEvidenceCheckClaim.js +2 -0
- package/lib/structures/IEvidenceCheckCommand.d.ts +47 -0
- package/lib/structures/IEvidenceCheckCommand.js +2 -0
- package/lib/structures/IEvidenceCheckCounts.d.ts +70 -0
- package/lib/structures/IEvidenceCheckCounts.js +2 -0
- package/lib/structures/IEvidenceCheckObligation.d.ts +67 -0
- package/lib/structures/IEvidenceCheckObligation.js +2 -0
- package/lib/structures/IEvidenceCheckReport.d.ts +74 -0
- package/lib/structures/IEvidenceCheckReport.js +2 -0
- package/lib/structures/IEvidenceClaim.d.ts +12 -0
- package/lib/structures/IEvidenceClaim.js +2 -0
- package/lib/structures/IEvidenceClaimBase.d.ts +111 -0
- package/lib/structures/IEvidenceClaimBase.js +2 -0
- package/lib/structures/IEvidenceCommand.d.ts +16 -0
- package/lib/structures/IEvidenceCommand.js +2 -0
- package/lib/structures/IEvidenceCommandFailure.d.ts +58 -0
- package/lib/structures/IEvidenceCommandFailure.js +2 -0
- package/lib/structures/IEvidenceCommandResult.d.ts +31 -0
- package/lib/structures/IEvidenceCommandResult.js +2 -0
- package/lib/structures/IEvidenceCommentSyntax.d.ts +42 -0
- package/lib/structures/IEvidenceCommentSyntax.js +2 -0
- package/lib/structures/IEvidenceConfig.d.ts +42 -0
- package/lib/structures/IEvidenceConfig.js +2 -0
- package/lib/structures/IEvidenceConfigPlan.d.ts +29 -0
- package/lib/structures/IEvidenceConfigPlan.js +2 -0
- package/lib/structures/IEvidenceConfigPlanClaim.d.ts +49 -0
- package/lib/structures/IEvidenceConfigPlanClaim.js +2 -0
- package/lib/structures/IEvidenceConfigPlanReference.d.ts +40 -0
- package/lib/structures/IEvidenceConfigPlanReference.js +2 -0
- package/lib/structures/IEvidenceDatabaseClaim.d.ts +26 -0
- package/lib/structures/IEvidenceDatabaseClaim.js +2 -0
- package/lib/structures/IEvidenceDatabaseLanguage.d.ts +37 -0
- package/lib/structures/IEvidenceDatabaseLanguage.js +2 -0
- package/lib/structures/IEvidenceDatabaseLanguageAdapter.d.ts +48 -0
- package/lib/structures/IEvidenceDatabaseLanguageAdapter.js +2 -0
- package/lib/structures/IEvidenceDatabaseReference.d.ts +20 -0
- package/lib/structures/IEvidenceDatabaseReference.js +2 -0
- package/lib/structures/IEvidenceDeclaration.d.ts +37 -0
- package/lib/structures/IEvidenceDeclaration.js +2 -0
- package/lib/structures/IEvidenceDiagnostic.d.ts +66 -0
- package/lib/structures/IEvidenceDiagnostic.js +2 -0
- package/lib/structures/IEvidenceDocumentation.d.ts +51 -0
- package/lib/structures/IEvidenceDocumentation.js +2 -0
- package/lib/structures/IEvidenceDocumentedConfig.d.ts +20 -0
- package/lib/structures/IEvidenceDocumentedConfig.js +2 -0
- package/lib/structures/IEvidenceFingerprint.d.ts +49 -0
- package/lib/structures/IEvidenceFingerprint.js +2 -0
- package/lib/structures/IEvidenceGrammar.d.ts +47 -0
- package/lib/structures/IEvidenceGrammar.js +2 -0
- package/lib/structures/IEvidenceGrammarAsset.d.ts +37 -0
- package/lib/structures/IEvidenceGrammarAsset.js +2 -0
- package/lib/structures/IEvidenceGraphBoundary.d.ts +73 -0
- package/lib/structures/IEvidenceGraphBoundary.js +2 -0
- package/lib/structures/IEvidenceGraphClaim.d.ts +65 -0
- package/lib/structures/IEvidenceGraphClaim.js +2 -0
- package/lib/structures/IEvidenceGraphClaimResult.d.ts +36 -0
- package/lib/structures/IEvidenceGraphClaimResult.js +2 -0
- package/lib/structures/IEvidenceGraphCommand.d.ts +40 -0
- package/lib/structures/IEvidenceGraphCommand.js +2 -0
- package/lib/structures/IEvidenceGraphEdge.d.ts +56 -0
- package/lib/structures/IEvidenceGraphEdge.js +2 -0
- package/lib/structures/IEvidenceGraphExportEdge.d.ts +71 -0
- package/lib/structures/IEvidenceGraphExportEdge.js +2 -0
- package/lib/structures/IEvidenceGraphExportReview.d.ts +55 -0
- package/lib/structures/IEvidenceGraphExportReview.js +2 -0
- package/lib/structures/IEvidenceGraphHostCoverage.d.ts +36 -0
- package/lib/structures/IEvidenceGraphHostCoverage.js +2 -0
- package/lib/structures/IEvidenceGraphHostNode.d.ts +46 -0
- package/lib/structures/IEvidenceGraphHostNode.js +2 -0
- package/lib/structures/IEvidenceGraphInput.d.ts +24 -0
- package/lib/structures/IEvidenceGraphInput.js +2 -0
- package/lib/structures/IEvidenceGraphNode.d.ts +82 -0
- package/lib/structures/IEvidenceGraphNode.js +2 -0
- package/lib/structures/IEvidenceGraphObligation.d.ts +79 -0
- package/lib/structures/IEvidenceGraphObligation.js +2 -0
- package/lib/structures/IEvidenceGraphPolicy.d.ts +53 -0
- package/lib/structures/IEvidenceGraphPolicy.js +2 -0
- package/lib/structures/IEvidenceGraphReference.d.ts +95 -0
- package/lib/structures/IEvidenceGraphReference.js +2 -0
- package/lib/structures/IEvidenceGraphReport.d.ts +84 -0
- package/lib/structures/IEvidenceGraphReport.js +2 -0
- package/lib/structures/IEvidenceGraphResolution.d.ts +22 -0
- package/lib/structures/IEvidenceGraphResolution.js +2 -0
- package/lib/structures/IEvidenceGraphResult.d.ts +37 -0
- package/lib/structures/IEvidenceGraphResult.js +2 -0
- package/lib/structures/IEvidenceGraphReviewResolution.d.ts +23 -0
- package/lib/structures/IEvidenceGraphReviewResolution.js +2 -0
- package/lib/structures/IEvidenceHelpCommand.d.ts +14 -0
- package/lib/structures/IEvidenceHelpCommand.js +2 -0
- package/lib/structures/IEvidenceHost.d.ts +78 -0
- package/lib/structures/IEvidenceHost.js +2 -0
- package/lib/structures/IEvidenceInitCommand.d.ts +26 -0
- package/lib/structures/IEvidenceInitCommand.js +2 -0
- package/lib/structures/IEvidenceInspectCommand.d.ts +46 -0
- package/lib/structures/IEvidenceInspectCommand.js +2 -0
- package/lib/structures/IEvidenceInspectReport.d.ts +70 -0
- package/lib/structures/IEvidenceInspectReport.js +2 -0
- package/lib/structures/IEvidenceInspectedAcknowledgement.d.ts +60 -0
- package/lib/structures/IEvidenceInspectedAcknowledgement.js +2 -0
- package/lib/structures/IEvidenceInspectedObligation.d.ts +61 -0
- package/lib/structures/IEvidenceInspectedObligation.js +2 -0
- package/lib/structures/IEvidenceInspectedReview.d.ts +48 -0
- package/lib/structures/IEvidenceInspectedReview.js +2 -0
- package/lib/structures/IEvidenceInspectedUnit.d.ts +36 -0
- package/lib/structures/IEvidenceInspectedUnit.js +2 -0
- package/lib/structures/IEvidenceInspection.d.ts +73 -0
- package/lib/structures/IEvidenceInspection.js +2 -0
- package/lib/structures/IEvidenceInventory.d.ts +114 -0
- package/lib/structures/IEvidenceInventory.js +2 -0
- package/lib/structures/IEvidenceLanguage.d.ts +37 -0
- package/lib/structures/IEvidenceLanguage.js +2 -0
- package/lib/structures/IEvidenceLanguageAdapter.d.ts +49 -0
- package/lib/structures/IEvidenceLanguageAdapter.js +2 -0
- package/lib/structures/IEvidenceLanguageCandidate.d.ts +94 -0
- package/lib/structures/IEvidenceLanguageCandidate.js +2 -0
- package/lib/structures/IEvidenceLanguageGrammar.d.ts +29 -0
- package/lib/structures/IEvidenceLanguageGrammar.js +2 -0
- package/lib/structures/IEvidenceLanguagesCommand.d.ts +33 -0
- package/lib/structures/IEvidenceLanguagesCommand.js +2 -0
- package/lib/structures/IEvidenceLanguagesReport.d.ts +36 -0
- package/lib/structures/IEvidenceLanguagesReport.js +2 -0
- package/lib/structures/IEvidenceListCommand.d.ts +55 -0
- package/lib/structures/IEvidenceListCommand.js +2 -0
- package/lib/structures/IEvidenceListItem.d.ts +69 -0
- package/lib/structures/IEvidenceListItem.js +2 -0
- package/lib/structures/IEvidenceListReport.d.ts +82 -0
- package/lib/structures/IEvidenceListReport.js +2 -0
- package/lib/structures/IEvidenceMarkdownClaim.d.ts +19 -0
- package/lib/structures/IEvidenceMarkdownClaim.js +2 -0
- package/lib/structures/IEvidenceMarkdownReference.d.ts +48 -0
- package/lib/structures/IEvidenceMarkdownReference.js +2 -0
- package/lib/structures/IEvidenceParserInput.d.ts +31 -0
- package/lib/structures/IEvidenceParserInput.js +2 -0
- package/lib/structures/IEvidenceParserOptions.d.ts +19 -0
- package/lib/structures/IEvidenceParserOptions.js +2 -0
- package/lib/structures/IEvidenceParserState.d.ts +34 -0
- package/lib/structures/IEvidenceParserState.js +2 -0
- package/lib/structures/IEvidencePopulation.d.ts +63 -0
- package/lib/structures/IEvidencePopulation.js +2 -0
- package/lib/structures/IEvidenceProgrammingClaim.d.ts +28 -0
- package/lib/structures/IEvidenceProgrammingClaim.js +2 -0
- package/lib/structures/IEvidenceProgrammingReference.d.ts +20 -0
- package/lib/structures/IEvidenceProgrammingReference.js +2 -0
- package/lib/structures/IEvidencePublicAddress.d.ts +21 -0
- package/lib/structures/IEvidencePublicAddress.js +2 -0
- package/lib/structures/IEvidenceQueryScope.d.ts +41 -0
- package/lib/structures/IEvidenceQueryScope.js +2 -0
- package/lib/structures/IEvidenceReference.d.ts +12 -0
- package/lib/structures/IEvidenceReference.js +2 -0
- package/lib/structures/IEvidenceReferenceBase.d.ts +107 -0
- package/lib/structures/IEvidenceReferenceBase.js +2 -0
- package/lib/structures/IEvidenceResolution.d.ts +32 -0
- package/lib/structures/IEvidenceResolution.js +2 -0
- package/lib/structures/IEvidenceReview.d.ts +50 -0
- package/lib/structures/IEvidenceReview.js +2 -0
- package/lib/structures/IEvidenceSourceAddress.d.ts +39 -0
- package/lib/structures/IEvidenceSourceAddress.js +2 -0
- package/lib/structures/IEvidenceSourceDependency.d.ts +24 -0
- package/lib/structures/IEvidenceSourceDependency.js +2 -0
- package/lib/structures/IEvidenceSourceDiagnostic.d.ts +30 -0
- package/lib/structures/IEvidenceSourceDiagnostic.js +2 -0
- package/lib/structures/IEvidenceSourceFile.d.ts +50 -0
- package/lib/structures/IEvidenceSourceFile.js +2 -0
- package/lib/structures/IEvidenceSourceLocation.d.ts +23 -0
- package/lib/structures/IEvidenceSourceLocation.js +2 -0
- package/lib/structures/IEvidenceSourcePosition.d.ts +36 -0
- package/lib/structures/IEvidenceSourcePosition.js +2 -0
- package/lib/structures/IEvidenceSourceRange.d.ts +28 -0
- package/lib/structures/IEvidenceSourceRange.js +2 -0
- package/lib/structures/IEvidenceSourceRoot.d.ts +38 -0
- package/lib/structures/IEvidenceSourceRoot.js +2 -0
- package/lib/structures/IEvidenceSourceSelection.d.ts +23 -0
- package/lib/structures/IEvidenceSourceSelection.js +2 -0
- package/lib/structures/IEvidenceSourceSnapshot.d.ts +53 -0
- package/lib/structures/IEvidenceSourceSnapshot.js +2 -0
- package/lib/structures/IEvidenceSupportedDatabaseLanguage.d.ts +36 -0
- package/lib/structures/IEvidenceSupportedDatabaseLanguage.js +2 -0
- package/lib/structures/IEvidenceSupportedLanguage.d.ts +36 -0
- package/lib/structures/IEvidenceSupportedLanguage.js +2 -0
- package/lib/structures/IEvidenceSwaggerClaim.d.ts +17 -0
- package/lib/structures/IEvidenceSwaggerClaim.js +2 -0
- package/lib/structures/IEvidenceSwaggerReference.d.ts +23 -0
- package/lib/structures/IEvidenceSwaggerReference.js +2 -0
- package/lib/structures/IEvidenceTagParseResult.d.ts +37 -0
- package/lib/structures/IEvidenceTagParseResult.js +2 -0
- package/lib/structures/IEvidenceTargetResolution.d.ts +51 -0
- package/lib/structures/IEvidenceTargetResolution.js +2 -0
- package/lib/structures/IEvidenceTargetStatement.d.ts +32 -0
- package/lib/structures/IEvidenceTargetStatement.js +2 -0
- package/lib/structures/IEvidenceUnit.d.ts +96 -0
- package/lib/structures/IEvidenceUnit.js +2 -0
- package/lib/structures/IEvidenceUnitSite.d.ts +44 -0
- package/lib/structures/IEvidenceUnitSite.js +2 -0
- package/lib/structures/IEvidenceVersionCommand.d.ts +14 -0
- package/lib/structures/IEvidenceVersionCommand.js +2 -0
- package/lib/structures/IEvidenceWatchCheckCycle.d.ts +60 -0
- package/lib/structures/IEvidenceWatchCheckCycle.js +2 -0
- package/lib/structures/IEvidenceWatchFailureCycle.d.ts +70 -0
- package/lib/structures/IEvidenceWatchFailureCycle.js +2 -0
- package/lib/structures/IEvidenceWatchOptions.d.ts +37 -0
- package/lib/structures/IEvidenceWatchOptions.js +2 -0
- package/lib/structures/IEvidenceWithdrawal.d.ts +24 -0
- package/lib/structures/IEvidenceWithdrawal.js +2 -0
- package/lib/structures/index.d.ts +105 -0
- package/lib/structures/index.js +2 -0
- package/lib/targets/EvidenceAccessor.d.ts +31 -0
- package/lib/targets/EvidenceAccessor.js +165 -0
- package/lib/targets/EvidenceFileTarget.d.ts +41 -0
- package/lib/targets/EvidenceFileTarget.js +122 -0
- package/lib/targets/EvidenceTargetResolver.d.ts +174 -0
- package/lib/targets/EvidenceTargetResolver.js +403 -0
- package/lib/typings/EvidenceAcknowledgementKind.d.ts +7 -0
- package/lib/typings/EvidenceAcknowledgementKind.js +2 -0
- package/lib/typings/EvidenceActiveSeverity.d.ts +7 -0
- package/lib/typings/EvidenceActiveSeverity.js +2 -0
- package/lib/typings/EvidenceArtifactType.d.ts +10 -0
- package/lib/typings/EvidenceArtifactType.js +2 -0
- package/lib/typings/EvidenceCheckStatus.d.ts +8 -0
- package/lib/typings/EvidenceCheckStatus.js +2 -0
- package/lib/typings/EvidenceCommandExitCode.d.ts +8 -0
- package/lib/typings/EvidenceCommandExitCode.js +2 -0
- package/lib/typings/EvidenceDatabaseSymbol.d.ts +24 -0
- package/lib/typings/EvidenceDatabaseSymbol.js +2 -0
- package/lib/typings/EvidenceDatabaseType.d.ts +7 -0
- package/lib/typings/EvidenceDatabaseType.js +2 -0
- package/lib/typings/EvidenceGrammarWasmAvailability.d.ts +7 -0
- package/lib/typings/EvidenceGrammarWasmAvailability.js +2 -0
- package/lib/typings/EvidenceGraphFormat.d.ts +7 -0
- package/lib/typings/EvidenceGraphFormat.js +2 -0
- package/lib/typings/EvidenceGraphNode.d.ts +10 -0
- package/lib/typings/EvidenceGraphNode.js +2 -0
- package/lib/typings/EvidenceLanguageCandidateId.d.ts +7 -0
- package/lib/typings/EvidenceLanguageCandidateId.js +2 -0
- package/lib/typings/EvidenceLanguageCandidateKind.d.ts +7 -0
- package/lib/typings/EvidenceLanguageCandidateKind.js +2 -0
- package/lib/typings/EvidenceMarkdownSymbol.d.ts +22 -0
- package/lib/typings/EvidenceMarkdownSymbol.js +2 -0
- package/lib/typings/EvidenceParserErrorCode.d.ts +8 -0
- package/lib/typings/EvidenceParserErrorCode.js +2 -0
- package/lib/typings/EvidencePopulationRole.d.ts +7 -0
- package/lib/typings/EvidencePopulationRole.js +2 -0
- package/lib/typings/EvidenceProgrammingSymbol.d.ts +58 -0
- package/lib/typings/EvidenceProgrammingSymbol.js +2 -0
- package/lib/typings/EvidenceProgrammingType.d.ts +7 -0
- package/lib/typings/EvidenceProgrammingType.js +2 -0
- package/lib/typings/EvidenceQueryReport.d.ts +10 -0
- package/lib/typings/EvidenceQueryReport.js +2 -0
- package/lib/typings/EvidenceReportFormat.d.ts +7 -0
- package/lib/typings/EvidenceReportFormat.js +2 -0
- package/lib/typings/EvidenceSeverity.d.ts +7 -0
- package/lib/typings/EvidenceSeverity.js +2 -0
- package/lib/typings/EvidenceSymbol.d.ts +11 -0
- package/lib/typings/EvidenceSymbol.js +2 -0
- package/lib/typings/EvidenceTargetResolutionStatus.d.ts +8 -0
- package/lib/typings/EvidenceTargetResolutionStatus.js +2 -0
- package/lib/typings/EvidenceUnitSelection.d.ts +7 -0
- package/lib/typings/EvidenceUnitSelection.js +2 -0
- package/lib/typings/EvidenceWatchCycle.d.ts +9 -0
- package/lib/typings/EvidenceWatchCycle.js +2 -0
- package/lib/typings/EvidenceWatchPublisher.d.ts +8 -0
- package/lib/typings/EvidenceWatchPublisher.js +2 -0
- package/lib/typings/index.d.ts +25 -0
- package/lib/typings/index.js +2 -0
- package/package.json +66 -0
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.EvidenceQueryProgrammer = void 0;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const EvidenceFileTarget_1 = require("../targets/EvidenceFileTarget");
|
|
9
|
+
const EvidenceFingerprint_1 = require("../graph/EvidenceFingerprint");
|
|
10
|
+
const EvidenceLanguageRegistry_1 = require("../parsers/EvidenceLanguageRegistry");
|
|
11
|
+
const EvidenceTargetResolver_1 = require("../targets/EvidenceTargetResolver");
|
|
12
|
+
const InventoryMerge_1 = require("../internal/InventoryMerge");
|
|
13
|
+
const EvidenceQueryPopulationContext_1 = require("../contexts/EvidenceQueryPopulationContext");
|
|
14
|
+
const MarkdownTarget_1 = require("../adapters/markdown/MarkdownTarget");
|
|
15
|
+
/**
|
|
16
|
+
* Projects one completed checker analysis into query-command reports.
|
|
17
|
+
*
|
|
18
|
+
* Query operations never re-evaluate graph policy or mutate inventories. They
|
|
19
|
+
* retain the claim/reference coordinates established during checking, so a list,
|
|
20
|
+
* target inspection, and exported graph all describe the same independent
|
|
21
|
+
* obligation boundaries and diagnostic set.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* const report = EvidenceQueryProgrammer.list(queryContext, "typescript");
|
|
25
|
+
* const inspection = await EvidenceQueryProgrammer.inspect(
|
|
26
|
+
* queryContext,
|
|
27
|
+
* "src/user.ts#UserService",
|
|
28
|
+
* );
|
|
29
|
+
*/
|
|
30
|
+
var EvidenceQueryProgrammer;
|
|
31
|
+
(function (EvidenceQueryProgrammer) {
|
|
32
|
+
/**
|
|
33
|
+
* Lists configured identities and the structural ancestors needed to address them.
|
|
34
|
+
*
|
|
35
|
+
* Language and symbol filters apply after each population is projected, so they
|
|
36
|
+
* do not change configured selection or graph coverage. Rows are sorted by
|
|
37
|
+
* stable query identity, and checker diagnostics are passed through unchanged
|
|
38
|
+
* because a list command is an observation of the existing analysis.
|
|
39
|
+
*/
|
|
40
|
+
function list(context, language, kind) {
|
|
41
|
+
const { analysis } = context;
|
|
42
|
+
const root = context.cwd;
|
|
43
|
+
const items = context.populations
|
|
44
|
+
.flatMap((population) => listPopulation(population, root))
|
|
45
|
+
.filter((item) => (language === undefined || item.scope.type === language) &&
|
|
46
|
+
(kind === undefined || item.symbol === kind))
|
|
47
|
+
.sort((left, right) => compare(left.id, right.id));
|
|
48
|
+
return {
|
|
49
|
+
schemaVersion: 1,
|
|
50
|
+
command: "list",
|
|
51
|
+
configFile: analysis.report.configFile,
|
|
52
|
+
status: analysis.report.status,
|
|
53
|
+
success: analysis.report.success,
|
|
54
|
+
exitCode: analysis.report.exitCode,
|
|
55
|
+
...(language === undefined ? {} : { language }),
|
|
56
|
+
...(kind === undefined ? {} : { kind }),
|
|
57
|
+
total: items.length,
|
|
58
|
+
items,
|
|
59
|
+
diagnostics: analysis.report.diagnostics,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
EvidenceQueryProgrammer.list = list;
|
|
63
|
+
/**
|
|
64
|
+
* Inspects one CLI-relative target across the populations that can interpret it.
|
|
65
|
+
*
|
|
66
|
+
* Exact indexed spellings take precedence over grammar inference, preventing a
|
|
67
|
+
* target alias from being hidden by a broad file-extension match. Resolution is
|
|
68
|
+
* isolated per population; the report is resolved only when every selected
|
|
69
|
+
* boundary resolves, and preserves incomplete checker state as exit code 2.
|
|
70
|
+
*/
|
|
71
|
+
async function inspect(context, target) {
|
|
72
|
+
const { analysis } = context;
|
|
73
|
+
const root = context.cwd;
|
|
74
|
+
const all = context.populations;
|
|
75
|
+
const exact = new Set(all.flatMap((population) => populationHasTarget(population, target, root)
|
|
76
|
+
? [scopeId(population.scope)]
|
|
77
|
+
: []));
|
|
78
|
+
// An indexed spelling is authoritative: grammar inference is only a fallback
|
|
79
|
+
// when no configured identity exposes this exact public target.
|
|
80
|
+
const selected = exact.size === 0
|
|
81
|
+
? applicablePopulations(all, target)
|
|
82
|
+
: all.filter((population) => exact.has(scopeId(population.scope)));
|
|
83
|
+
const inspections = (await Promise.all(selected.map((population) => inspectPopulation(analysis, population, root, target)))).sort((left, right) => compare(scopeId(left.scope), scopeId(right.scope)));
|
|
84
|
+
const diagnostics = uniqueDiagnostics([
|
|
85
|
+
...analysis.report.diagnostics,
|
|
86
|
+
...inspections.flatMap((inspection) => inspection.diagnostics),
|
|
87
|
+
]);
|
|
88
|
+
const resolved = inspections.length !== 0 &&
|
|
89
|
+
inspections.every((inspection) => inspection.status === "resolved");
|
|
90
|
+
const incomplete = analysis.report.status === "incomplete" ||
|
|
91
|
+
inspections.some((inspection) => inspection.status === "incomplete");
|
|
92
|
+
const exitCode = incomplete
|
|
93
|
+
? 2
|
|
94
|
+
: !resolved
|
|
95
|
+
? 1
|
|
96
|
+
: analysis.report.exitCode;
|
|
97
|
+
return {
|
|
98
|
+
schemaVersion: 1,
|
|
99
|
+
command: "inspect",
|
|
100
|
+
configFile: analysis.report.configFile,
|
|
101
|
+
status: incomplete ? "incomplete" : "complete",
|
|
102
|
+
success: resolved && exitCode === 0,
|
|
103
|
+
exitCode,
|
|
104
|
+
target,
|
|
105
|
+
inspections,
|
|
106
|
+
diagnostics,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
EvidenceQueryProgrammer.inspect = inspect;
|
|
110
|
+
/**
|
|
111
|
+
* Exports the evaluated graph as boundaries, nodes, acknowledgement edges, and reviews.
|
|
112
|
+
*
|
|
113
|
+
* Each claim/reference pair receives its own boundary even when it reuses an
|
|
114
|
+
* inventory. Nodes are keyed by boundary and role so coverage cannot visually
|
|
115
|
+
* leak between obligations, while documentation-host nodes represent evidence
|
|
116
|
+
* attached outside any selected claim unit.
|
|
117
|
+
*/
|
|
118
|
+
function graph(context) {
|
|
119
|
+
const { analysis } = context;
|
|
120
|
+
const root = context.cwd;
|
|
121
|
+
const configured = context.populations;
|
|
122
|
+
const nodes = new Map();
|
|
123
|
+
const boundaries = [];
|
|
124
|
+
const edges = [];
|
|
125
|
+
const reviews = [];
|
|
126
|
+
// Join inputs, results, and report labels by construction order. A positional
|
|
127
|
+
// mismatch violates analysis invariants and is rejected by the require helpers.
|
|
128
|
+
analysis.graphInput.claims.forEach((claim, claimPosition) => {
|
|
129
|
+
const reportClaim = requireReportClaim(analysis, claimPosition);
|
|
130
|
+
const claimPopulation = requirePopulation(configured, "claim", reportClaim.claim);
|
|
131
|
+
claim.references.forEach((reference, referencePosition) => {
|
|
132
|
+
const reportObligation = requireReportObligation(analysis, claimPosition, referencePosition);
|
|
133
|
+
const obligation = requireResultObligation(analysis, claimPosition, referencePosition);
|
|
134
|
+
const referencePopulation = requirePopulation(configured, "reference", reportClaim.claim, reportObligation.reference);
|
|
135
|
+
const boundaryId = boundary(reportClaim.claim, reportObligation.reference);
|
|
136
|
+
boundaries.push({
|
|
137
|
+
id: boundaryId,
|
|
138
|
+
claim: claimPopulation.scope,
|
|
139
|
+
reference: referencePopulation.scope,
|
|
140
|
+
policy: graphPolicy(reference),
|
|
141
|
+
active: obligation.active,
|
|
142
|
+
complete: obligation.complete,
|
|
143
|
+
unitIds: obligation.unitIds,
|
|
144
|
+
coveredUnitIds: obligation.coveredUnitIds,
|
|
145
|
+
missingUnitIds: obligation.missingUnitIds,
|
|
146
|
+
hostCoverage: obligation.hostCoverage,
|
|
147
|
+
});
|
|
148
|
+
for (const item of listPopulation(claimPopulation, root))
|
|
149
|
+
if (item.selection === "selected")
|
|
150
|
+
nodes.set(graphUnitNodeId(boundaryId, "claim", item.unitId), graphUnitNode(boundaryId, "claim", item, obligation.edges.some((edge) => edge.hostUnitIds.includes(item.unitId)), false));
|
|
151
|
+
for (const item of listPopulation(referencePopulation, root))
|
|
152
|
+
nodes.set(graphUnitNodeId(boundaryId, "reference", item.unitId), graphUnitNode(boundaryId, "reference", item, covered(referencePopulation, item.unitId), missing(referencePopulation, item.unitId)));
|
|
153
|
+
for (const edge of obligation.edges) {
|
|
154
|
+
const declaration = requireDeclaration(claim.inventory, edge.declarationId);
|
|
155
|
+
const sourceNodeIds = graphSourceNodes(nodes, boundaryId, claimPopulation, declaration.hostId, edge.hostUnitIds, root);
|
|
156
|
+
const targetNodeId = graphUnitNodeId(boundaryId, "reference", edge.targetUnitId);
|
|
157
|
+
ensureUnitNode(nodes, boundaryId, "reference", referencePopulation, edge.targetUnitId, root);
|
|
158
|
+
edges.push({
|
|
159
|
+
id: `${boundaryId}:edge:${edge.declarationId}:${edge.targetUnitId}`,
|
|
160
|
+
boundaryId,
|
|
161
|
+
kind: edge.kind,
|
|
162
|
+
declaration,
|
|
163
|
+
sourceNodeIds,
|
|
164
|
+
hostUnitIds: edge.hostUnitIds,
|
|
165
|
+
targetNodeId,
|
|
166
|
+
targetUnitId: edge.targetUnitId,
|
|
167
|
+
unitIds: edge.unitIds,
|
|
168
|
+
fingerprint: edge.fingerprint,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
for (const resolution of reference.reviewResolutions ?? []) {
|
|
172
|
+
const review = requireReview(claim.inventory, resolution.reviewId);
|
|
173
|
+
const sourceNodeIds = graphSourceNodes(nodes, boundaryId, claimPopulation, review.hostId, requireHost(claim.inventory.hosts, review.hostId).unitIds, root);
|
|
174
|
+
const targetNodeIds = resolution.resolution.units.map((unit) => {
|
|
175
|
+
ensureUnitNode(nodes, boundaryId, "reference", referencePopulation, unit.id, root);
|
|
176
|
+
return graphUnitNodeId(boundaryId, "reference", unit.id);
|
|
177
|
+
});
|
|
178
|
+
reviews.push({
|
|
179
|
+
id: `${boundaryId}:review:${review.id}`,
|
|
180
|
+
boundaryId,
|
|
181
|
+
reviews: review.reviews,
|
|
182
|
+
review,
|
|
183
|
+
status: resolution.resolution.status,
|
|
184
|
+
sourceNodeIds,
|
|
185
|
+
targetNodeIds,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
return {
|
|
191
|
+
schemaVersion: 1,
|
|
192
|
+
command: "graph",
|
|
193
|
+
configFile: analysis.report.configFile,
|
|
194
|
+
status: analysis.report.status,
|
|
195
|
+
success: analysis.report.success,
|
|
196
|
+
exitCode: analysis.report.exitCode,
|
|
197
|
+
boundaries,
|
|
198
|
+
nodes: Array.from(nodes.values()).sort((left, right) => compare(left.id, right.id)),
|
|
199
|
+
edges: edges.sort((left, right) => compare(left.id, right.id)),
|
|
200
|
+
reviews: reviews.sort((left, right) => compare(left.id, right.id)),
|
|
201
|
+
diagnostics: analysis.report.diagnostics,
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
EvidenceQueryProgrammer.graph = graph;
|
|
205
|
+
/**
|
|
206
|
+
* Lists artifact adapters that the installed runtime can actually analyze.
|
|
207
|
+
*
|
|
208
|
+
* Registry entries without an adapter remain parser metadata and are omitted.
|
|
209
|
+
* Language and database entries are combined then ordered by type, providing a
|
|
210
|
+
* stable capability report without depending on registry declaration order.
|
|
211
|
+
*/
|
|
212
|
+
function languages() {
|
|
213
|
+
const languages = [
|
|
214
|
+
...EvidenceLanguageRegistry_1.EvidenceLanguageRegistry.list().flatMap((language) => language.adapter === undefined
|
|
215
|
+
? []
|
|
216
|
+
: [
|
|
217
|
+
{
|
|
218
|
+
type: language.type,
|
|
219
|
+
name: language.name,
|
|
220
|
+
grammars: language.grammars,
|
|
221
|
+
adapter: language.adapter,
|
|
222
|
+
},
|
|
223
|
+
]),
|
|
224
|
+
...EvidenceLanguageRegistry_1.EvidenceLanguageRegistry.databases().flatMap((language) => language.adapter === undefined
|
|
225
|
+
? []
|
|
226
|
+
: [
|
|
227
|
+
{
|
|
228
|
+
type: language.type,
|
|
229
|
+
name: language.name,
|
|
230
|
+
grammars: language.grammars,
|
|
231
|
+
adapter: language.adapter,
|
|
232
|
+
},
|
|
233
|
+
]),
|
|
234
|
+
].sort((left, right) => compare(left.type, right.type));
|
|
235
|
+
return {
|
|
236
|
+
schemaVersion: 1,
|
|
237
|
+
command: "languages",
|
|
238
|
+
total: languages.length,
|
|
239
|
+
languages,
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
EvidenceQueryProgrammer.languages = languages;
|
|
243
|
+
/**
|
|
244
|
+
* Builds a query context for every configured claim and reference entry.
|
|
245
|
+
*
|
|
246
|
+
* The context list preserves graph-input order and gives each reference its own
|
|
247
|
+
* wrapper, even when several entries share the same inventory. This preserves
|
|
248
|
+
* obligation-specific selection, policies, and coverage during later queries.
|
|
249
|
+
*/
|
|
250
|
+
function populations(analysis) {
|
|
251
|
+
const output = [];
|
|
252
|
+
analysis.graphInput.claims.forEach((claim, claimPosition) => {
|
|
253
|
+
const reportClaim = requireReportClaim(analysis, claimPosition);
|
|
254
|
+
output.push({
|
|
255
|
+
scope: {
|
|
256
|
+
role: "claim",
|
|
257
|
+
claim: reportClaim.claim,
|
|
258
|
+
...(reportClaim.name === undefined ? {} : { name: reportClaim.name }),
|
|
259
|
+
type: reportClaim.type,
|
|
260
|
+
},
|
|
261
|
+
inventory: claim.inventory,
|
|
262
|
+
unitIds: claim.unitIds,
|
|
263
|
+
});
|
|
264
|
+
claim.references.forEach((reference, referencePosition) => {
|
|
265
|
+
const reportObligation = requireReportObligation(analysis, claimPosition, referencePosition);
|
|
266
|
+
output.push({
|
|
267
|
+
scope: {
|
|
268
|
+
role: "reference",
|
|
269
|
+
claim: reportClaim.claim,
|
|
270
|
+
reference: reportObligation.reference,
|
|
271
|
+
type: reportObligation.type,
|
|
272
|
+
},
|
|
273
|
+
inventory: reference.inventory,
|
|
274
|
+
unitIds: reference.unitIds,
|
|
275
|
+
reference,
|
|
276
|
+
obligation: requireResultObligation(analysis, claimPosition, referencePosition),
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
return output.map((population) => new EvidenceQueryPopulationContext_1.EvidenceQueryPopulationContext(population));
|
|
281
|
+
}
|
|
282
|
+
EvidenceQueryProgrammer.populations = populations;
|
|
283
|
+
/**
|
|
284
|
+
* Lists one population's selected identities and visible structural ancestors.
|
|
285
|
+
*
|
|
286
|
+
* Visibility is owned by {@link EvidenceQueryPopulationContext}; this helper
|
|
287
|
+
* only turns visible units into public rows. Units without a public address are
|
|
288
|
+
* excluded because list output must contain targets that inspect can accept.
|
|
289
|
+
*/
|
|
290
|
+
function listPopulation(population, cwd) {
|
|
291
|
+
const visible = population.visible;
|
|
292
|
+
return population.inventory.units.flatMap((unit) => {
|
|
293
|
+
if (!visible.has(unit.id))
|
|
294
|
+
return [];
|
|
295
|
+
const item = listItem(population, unit, cwd);
|
|
296
|
+
return item === undefined ? [] : [item];
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Creates one public list row for an addressable inventory unit.
|
|
301
|
+
*
|
|
302
|
+
* The first sorted alias becomes the canonical target, while every alias is
|
|
303
|
+
* retained for callers that need an exact spelling. Returning `undefined` for
|
|
304
|
+
* an unaddressable unit lets list operations omit internal identities without
|
|
305
|
+
* manufacturing a target that the resolver cannot round-trip.
|
|
306
|
+
*/
|
|
307
|
+
function listItem(population, unit, cwd) {
|
|
308
|
+
const aliases = targets(population, unit.id, cwd);
|
|
309
|
+
const target = aliases[0];
|
|
310
|
+
if (target === undefined)
|
|
311
|
+
return undefined;
|
|
312
|
+
return {
|
|
313
|
+
id: `${scopeId(population.scope)}:unit:${unit.id}`,
|
|
314
|
+
scope: population.scope,
|
|
315
|
+
unitId: unit.id,
|
|
316
|
+
symbol: unit.symbol,
|
|
317
|
+
name: unit.name,
|
|
318
|
+
selection: selection(population, unit.id),
|
|
319
|
+
target,
|
|
320
|
+
aliases,
|
|
321
|
+
locations: unit.sites.map((site) => ({
|
|
322
|
+
file: site.file,
|
|
323
|
+
range: site.range,
|
|
324
|
+
})),
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Resolves a target and gathers its query evidence within one population boundary.
|
|
329
|
+
*
|
|
330
|
+
* A synthetic attached host gives the shared resolver a CLI-relative source
|
|
331
|
+
* context without pretending that the query came from a real documentation
|
|
332
|
+
* comment. The returned units, coverage, acknowledgements, reviews, and
|
|
333
|
+
* diagnostics all remain scoped to this one claim or reference context.
|
|
334
|
+
*/
|
|
335
|
+
async function inspectPopulation(analysis, population, cwd, target) {
|
|
336
|
+
const host = commandHost(cwd);
|
|
337
|
+
const statement = {
|
|
338
|
+
target,
|
|
339
|
+
hostId: host.id,
|
|
340
|
+
location: { file: host.file, range: host.range },
|
|
341
|
+
};
|
|
342
|
+
const resolution = await new EvidenceTargetResolver_1.EvidenceTargetResolver([population.inventory], population.scope.type).resolve(statement, host, population.unitIds);
|
|
343
|
+
const units = resolution.units.map((unit) => inspectedUnit(population, unit, cwd));
|
|
344
|
+
const unitIds = new Set(units.map((unit) => unit.item.unitId));
|
|
345
|
+
return {
|
|
346
|
+
scope: population.scope,
|
|
347
|
+
status: resolution.status,
|
|
348
|
+
addresses: InventoryMerge_1.InventoryMerge.unique(resolution.addresses.flatMap((address) => formatAddress(population, address.file, address.segments, cwd)), (address) => address).sort(compare),
|
|
349
|
+
units,
|
|
350
|
+
withdrawals: resolution.withdrawals,
|
|
351
|
+
obligations: inspectedObligations(population, unitIds),
|
|
352
|
+
acknowledgements: inspectedAcknowledgements(analysis, population, unitIds),
|
|
353
|
+
reviews: inspectedReviews(analysis, population, unitIds),
|
|
354
|
+
diagnostics: resolution.diagnostics.map((diagnostic) => scopedDiagnostic(diagnostic, population.scope)),
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Builds the detailed inspection record for one resolved unit.
|
|
359
|
+
*
|
|
360
|
+
* Only direct children are included so recursive client views can choose their
|
|
361
|
+
* own expansion. A fingerprint is exposed only from a complete inventory: an
|
|
362
|
+
* incomplete parse cannot safely provide a stable review identity.
|
|
363
|
+
*/
|
|
364
|
+
function inspectedUnit(population, unit, cwd) {
|
|
365
|
+
const item = listItem(population, unit, cwd);
|
|
366
|
+
if (item === undefined)
|
|
367
|
+
throw new Error(`Evidence identity '${unit.id}' has no public address.`);
|
|
368
|
+
const children = population.inventory.units.flatMap((candidate) => {
|
|
369
|
+
if (candidate.parentId !== unit.id)
|
|
370
|
+
return [];
|
|
371
|
+
const child = listItem(population, candidate, cwd);
|
|
372
|
+
return child === undefined ? [] : [child];
|
|
373
|
+
});
|
|
374
|
+
return {
|
|
375
|
+
item,
|
|
376
|
+
children,
|
|
377
|
+
hosts: population.inventory.hosts
|
|
378
|
+
.filter((host) => host.unitIds.includes(unit.id))
|
|
379
|
+
.sort((left, right) => compare(left.id, right.id)),
|
|
380
|
+
...(population.inventory.complete
|
|
381
|
+
? {
|
|
382
|
+
fingerprint: EvidenceFingerprint_1.EvidenceFingerprint.inspect(population.inventory, unit.id),
|
|
383
|
+
}
|
|
384
|
+
: {}),
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Reports the reference obligations that govern inspected selected identities.
|
|
389
|
+
*
|
|
390
|
+
* Claim populations own no coverage obligation, and unselected resolved units
|
|
391
|
+
* must not imply coverage. Missing graph policy data returns no rows so an
|
|
392
|
+
* inconsistent query context cannot be presented as a passing obligation.
|
|
393
|
+
*/
|
|
394
|
+
function inspectedObligations(population, unitIds) {
|
|
395
|
+
if (population.scope.role !== "reference")
|
|
396
|
+
return [];
|
|
397
|
+
const obligation = population.obligation;
|
|
398
|
+
const reference = population.scope.reference;
|
|
399
|
+
if (obligation === undefined || reference === undefined)
|
|
400
|
+
return [];
|
|
401
|
+
return Array.from(unitIds).flatMap((unitId) => {
|
|
402
|
+
const unit = population.inventory.units.find((candidate) => candidate.id === unitId);
|
|
403
|
+
if (unit === undefined)
|
|
404
|
+
return [];
|
|
405
|
+
const state = selection(population, unitId);
|
|
406
|
+
if (state === "unselected")
|
|
407
|
+
return [];
|
|
408
|
+
return [
|
|
409
|
+
{
|
|
410
|
+
claim: population.scope.claim,
|
|
411
|
+
reference,
|
|
412
|
+
policy: graphPolicy(requirePopulationReference(population)),
|
|
413
|
+
active: obligation.active,
|
|
414
|
+
complete: obligation.complete,
|
|
415
|
+
selection: state,
|
|
416
|
+
covered: covered(population, unitId),
|
|
417
|
+
missing: missing(population, unitId),
|
|
418
|
+
},
|
|
419
|
+
];
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Collects acknowledgement edges relevant to inspected reference identities.
|
|
424
|
+
*
|
|
425
|
+
* The search joins graph results to the matching claim input by configured
|
|
426
|
+
* coordinates, preserving duplicate reference obligations. Broken graph links
|
|
427
|
+
* are omitted here because checker construction already owns their diagnostics.
|
|
428
|
+
*/
|
|
429
|
+
function inspectedAcknowledgements(analysis, population, unitIds) {
|
|
430
|
+
if (population.scope.role !== "reference" ||
|
|
431
|
+
population.scope.reference === undefined)
|
|
432
|
+
return [];
|
|
433
|
+
return analysis.graph.claims.flatMap((claim, claimPosition) => {
|
|
434
|
+
if (claim.claim !== population.scope.claim)
|
|
435
|
+
return [];
|
|
436
|
+
const input = analysis.graphInput.claims[claimPosition];
|
|
437
|
+
if (input === undefined)
|
|
438
|
+
return [];
|
|
439
|
+
return claim.obligations.flatMap((obligation) => {
|
|
440
|
+
if (obligation.reference !== population.scope.reference)
|
|
441
|
+
return [];
|
|
442
|
+
return obligation.edges.flatMap((edge) => {
|
|
443
|
+
if (!unitIds.has(edge.targetUnitId) &&
|
|
444
|
+
!edge.unitIds.some((unitId) => unitIds.has(unitId)))
|
|
445
|
+
return [];
|
|
446
|
+
const declaration = input.inventory.declarations.find((candidate) => candidate.id === edge.declarationId);
|
|
447
|
+
if (declaration === undefined)
|
|
448
|
+
return [];
|
|
449
|
+
const host = input.inventory.hosts.find((candidate) => candidate.id === declaration.hostId);
|
|
450
|
+
if (host === undefined)
|
|
451
|
+
return [];
|
|
452
|
+
return [
|
|
453
|
+
{
|
|
454
|
+
claim: obligation.claim,
|
|
455
|
+
reference: obligation.reference,
|
|
456
|
+
declaration,
|
|
457
|
+
host,
|
|
458
|
+
hostUnitIds: edge.hostUnitIds,
|
|
459
|
+
targetUnitId: edge.targetUnitId,
|
|
460
|
+
unitIds: edge.unitIds,
|
|
461
|
+
fingerprint: edge.fingerprint,
|
|
462
|
+
},
|
|
463
|
+
];
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Collects review resolutions whose target contains an inspected identity.
|
|
470
|
+
*
|
|
471
|
+
* Descendant matching lets an inspection of a child expose a review on its
|
|
472
|
+
* selected ancestor. The report retains the reference coordinates so review
|
|
473
|
+
* status cannot be attributed to a different population with the same units.
|
|
474
|
+
*/
|
|
475
|
+
function inspectedReviews(analysis, population, unitIds) {
|
|
476
|
+
if (population.scope.role !== "reference" ||
|
|
477
|
+
population.scope.reference === undefined)
|
|
478
|
+
return [];
|
|
479
|
+
return analysis.graphInput.claims.flatMap((claim, claimPosition) => claim.references.flatMap((reference, referencePosition) => {
|
|
480
|
+
const reportClaim = requireReportClaim(analysis, claimPosition);
|
|
481
|
+
const reportReference = requireReportObligation(analysis, claimPosition, referencePosition);
|
|
482
|
+
if (reportClaim.claim !== population.scope.claim ||
|
|
483
|
+
reportReference.reference !== population.scope.reference)
|
|
484
|
+
return [];
|
|
485
|
+
return (reference.reviewResolutions ?? []).flatMap((entry) => {
|
|
486
|
+
if (!entry.resolution.units.some((target) => Array.from(unitIds).some((unitId) => population.descends(unitId, target.id))))
|
|
487
|
+
return [];
|
|
488
|
+
const review = claim.inventory.reviews.find((candidate) => candidate.id === entry.reviewId);
|
|
489
|
+
if (review === undefined)
|
|
490
|
+
return [];
|
|
491
|
+
const host = claim.inventory.hosts.find((candidate) => candidate.id === review.hostId);
|
|
492
|
+
if (host === undefined)
|
|
493
|
+
return [];
|
|
494
|
+
return [
|
|
495
|
+
{
|
|
496
|
+
claim: reportClaim.claim,
|
|
497
|
+
reference: reportReference.reference,
|
|
498
|
+
review,
|
|
499
|
+
host,
|
|
500
|
+
status: entry.resolution.status,
|
|
501
|
+
unitIds: entry.resolution.units.map((unit) => unit.id),
|
|
502
|
+
},
|
|
503
|
+
];
|
|
504
|
+
});
|
|
505
|
+
}));
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Narrows target inspection to populations whose artifact grammar can accept it.
|
|
509
|
+
*
|
|
510
|
+
* Prisma and Swagger have unmistakable target forms; file targets consult the
|
|
511
|
+
* installed registry. When inference finds no type, every population remains
|
|
512
|
+
* eligible so the resolver can return its own actionable diagnostics.
|
|
513
|
+
*/
|
|
514
|
+
function applicablePopulations(populations, target) {
|
|
515
|
+
if (target.startsWith("prisma:"))
|
|
516
|
+
return populations.filter((population) => population.scope.type === "prisma");
|
|
517
|
+
if (swaggerLike(target))
|
|
518
|
+
return populations.filter((population) => population.scope.type === "swagger");
|
|
519
|
+
const file = targetFile(target);
|
|
520
|
+
const types = new Set();
|
|
521
|
+
if (/\.(?:md|markdown|mdx)$/iu.test(file))
|
|
522
|
+
types.add("markdown");
|
|
523
|
+
for (const language of [
|
|
524
|
+
...EvidenceLanguageRegistry_1.EvidenceLanguageRegistry.list(),
|
|
525
|
+
...EvidenceLanguageRegistry_1.EvidenceLanguageRegistry.databases(),
|
|
526
|
+
])
|
|
527
|
+
try {
|
|
528
|
+
EvidenceLanguageRegistry_1.EvidenceLanguageRegistry.select(language.type, file);
|
|
529
|
+
types.add(language.type);
|
|
530
|
+
}
|
|
531
|
+
catch {
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
const selected = populations.filter((population) => types.has(population.scope.type));
|
|
535
|
+
return selected.length === 0 ? populations : selected;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Classifies an identity by its configured and query-visible membership.
|
|
539
|
+
*
|
|
540
|
+
* Selection is owned by the population context: ancestors exist only to make
|
|
541
|
+
* selected descendants addressable, while unselected identities must not gain
|
|
542
|
+
* coverage semantics merely because they share an inventory.
|
|
543
|
+
*/
|
|
544
|
+
function selection(population, unitId) {
|
|
545
|
+
if (population.selected.has(unitId))
|
|
546
|
+
return "selected";
|
|
547
|
+
return population.visible.has(unitId) ? "ancestor" : "unselected";
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Formats the public aliases for one semantic identity in deterministic order.
|
|
551
|
+
*
|
|
552
|
+
* Inventory aliases may render to the same artifact target, so deduplication
|
|
553
|
+
* occurs after formatting. The sorted result supplies the canonical list target
|
|
554
|
+
* and makes exact-target matching stable across adapter traversal order.
|
|
555
|
+
*/
|
|
556
|
+
function targets(population, unitId, cwd) {
|
|
557
|
+
return InventoryMerge_1.InventoryMerge.unique((population.addresses.get(unitId) ?? []).flatMap((address) => formatAddress(population, address.file, address.segments, cwd)), (target) => target).sort(compare);
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Tests whether a configured identity exposes the exact requested target spelling.
|
|
561
|
+
*
|
|
562
|
+
* Only configured addresses participate because an ancestor's visible address
|
|
563
|
+
* must not override grammar inference for a target that names no obligation.
|
|
564
|
+
* A match is used solely to choose populations; resolution remains authoritative.
|
|
565
|
+
*/
|
|
566
|
+
function populationHasTarget(population, target, cwd) {
|
|
567
|
+
const configured = population.configured;
|
|
568
|
+
return population.inventory.addresses.some((address) => configured.has(address.unitId) &&
|
|
569
|
+
formatAddress(population, address.file, address.segments, cwd).includes(target));
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Renders one indexed address with the target grammar of its population.
|
|
573
|
+
*
|
|
574
|
+
* Prisma and Swagger do not use file-qualified accessors, while Markdown must
|
|
575
|
+
* preserve selected logical aliases for a physical file. Other artifacts are
|
|
576
|
+
* made CLI-relative; an unrenderable Swagger address is omitted from query output.
|
|
577
|
+
*/
|
|
578
|
+
function formatAddress(population, file, segments, cwd) {
|
|
579
|
+
if (population.scope.type === "prisma")
|
|
580
|
+
return [`prisma:${segments.join(".")}`];
|
|
581
|
+
if (population.scope.type === "swagger")
|
|
582
|
+
return segments.length === 1 && segments[0] !== undefined
|
|
583
|
+
? [segments[0]]
|
|
584
|
+
: [];
|
|
585
|
+
if (population.scope.type === "markdown") {
|
|
586
|
+
const logical = population.inventory.sources.flatMap((source) => source.addresses.flatMap((address) => address.selected !== false &&
|
|
587
|
+
EvidenceFileTarget_1.EvidenceFileTarget.normalize(address.absolute) ===
|
|
588
|
+
EvidenceFileTarget_1.EvidenceFileTarget.normalize(file)
|
|
589
|
+
? [address.relative]
|
|
590
|
+
: []));
|
|
591
|
+
const files = logical.length === 0 ? [file] : logical;
|
|
592
|
+
return files.map((candidate) => segments.length === 0
|
|
593
|
+
? MarkdownTarget_1.MarkdownTarget.normalize(candidate)
|
|
594
|
+
: `${MarkdownTarget_1.MarkdownTarget.normalize(candidate)}#${segments.join("#")}`);
|
|
595
|
+
}
|
|
596
|
+
return [
|
|
597
|
+
EvidenceFileTarget_1.EvidenceFileTarget.format({
|
|
598
|
+
file: node_path_1.default.relative(cwd, file),
|
|
599
|
+
segments,
|
|
600
|
+
}),
|
|
601
|
+
];
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Creates the attached synthetic host used for command-line target resolution.
|
|
605
|
+
*
|
|
606
|
+
* Its file anchors relative paths at the query working directory without adding
|
|
607
|
+
* a document to any inventory. The fixed identity prevents command hosts from
|
|
608
|
+
* being confused with authored annotation hosts in resolver diagnostics.
|
|
609
|
+
*/
|
|
610
|
+
function commandHost(cwd) {
|
|
611
|
+
const file = node_path_1.default.join(cwd, ".evidence-inspect");
|
|
612
|
+
return {
|
|
613
|
+
id: "evidence:inspect:host",
|
|
614
|
+
file,
|
|
615
|
+
origins: [file],
|
|
616
|
+
range: zeroLocation(file).range,
|
|
617
|
+
unitIds: [],
|
|
618
|
+
attachment: "attached",
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Creates the zero-width coordinate assigned to a synthetic command host.
|
|
623
|
+
*
|
|
624
|
+
* Query input has no authored source span, but downstream diagnostics require a
|
|
625
|
+
* complete location. Line and column one with offset zero provides that boundary
|
|
626
|
+
* without claiming a real character exists in the synthetic file.
|
|
627
|
+
*/
|
|
628
|
+
function zeroLocation(file) {
|
|
629
|
+
return {
|
|
630
|
+
file,
|
|
631
|
+
range: {
|
|
632
|
+
start: { line: 1, column: 1, offset: 0 },
|
|
633
|
+
end: { line: 1, column: 1, offset: 0 },
|
|
634
|
+
},
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Projects an addressable query row into a boundary-specific graph unit node.
|
|
639
|
+
*
|
|
640
|
+
* The caller supplies coverage state because it differs by reference obligation
|
|
641
|
+
* even when the underlying inventory unit is shared. The generated node carries
|
|
642
|
+
* the public target and source locations needed by graph consumers.
|
|
643
|
+
*/
|
|
644
|
+
function graphUnitNode(boundaryId, role, item, isCovered, isMissing) {
|
|
645
|
+
return {
|
|
646
|
+
id: graphUnitNodeId(boundaryId, role, item.unitId),
|
|
647
|
+
boundaryId,
|
|
648
|
+
role,
|
|
649
|
+
unitId: item.unitId,
|
|
650
|
+
symbol: item.symbol,
|
|
651
|
+
name: item.name,
|
|
652
|
+
target: item.target,
|
|
653
|
+
selection: item.selection,
|
|
654
|
+
covered: isCovered,
|
|
655
|
+
missing: isMissing,
|
|
656
|
+
locations: item.locations,
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Returns graph source nodes for an annotation host within one boundary.
|
|
661
|
+
*
|
|
662
|
+
* Hosts attached to units reuse claim nodes, preserving unit-level edges. A
|
|
663
|
+
* detached-from-selection host becomes a dedicated node so evidence remains
|
|
664
|
+
* visible without inventing a claim unit; absent hosts fail the graph invariant.
|
|
665
|
+
*/
|
|
666
|
+
function graphSourceNodes(nodes, boundaryId, population, hostId, unitIds, cwd) {
|
|
667
|
+
if (unitIds.length !== 0) {
|
|
668
|
+
for (const unitId of unitIds)
|
|
669
|
+
ensureUnitNode(nodes, boundaryId, "claim", population, unitId, cwd);
|
|
670
|
+
return unitIds.map((unitId) => graphUnitNodeId(boundaryId, "claim", unitId));
|
|
671
|
+
}
|
|
672
|
+
const host = requireHost(population.inventory.hosts, hostId);
|
|
673
|
+
const id = `${boundaryId}:host:${host.id}`;
|
|
674
|
+
const node = {
|
|
675
|
+
id,
|
|
676
|
+
boundaryId,
|
|
677
|
+
role: "host",
|
|
678
|
+
hostId: host.id,
|
|
679
|
+
name: host.id,
|
|
680
|
+
location: { file: host.file, range: host.range },
|
|
681
|
+
};
|
|
682
|
+
nodes.set(id, node);
|
|
683
|
+
return [id];
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Ensures a boundary-specific graph node exists for a referenced identity.
|
|
687
|
+
*
|
|
688
|
+
* Existing nodes are retained to preserve their coverage state. An absent unit
|
|
689
|
+
* or missing public address is an invalid graph projection, so this throws
|
|
690
|
+
* instead of exporting an edge that a consumer cannot inspect.
|
|
691
|
+
*/
|
|
692
|
+
function ensureUnitNode(nodes, boundaryId, role, population, unitId, cwd) {
|
|
693
|
+
const id = graphUnitNodeId(boundaryId, role, unitId);
|
|
694
|
+
if (nodes.has(id))
|
|
695
|
+
return;
|
|
696
|
+
const unit = population.inventory.units.find((candidate) => candidate.id === unitId);
|
|
697
|
+
if (unit === undefined)
|
|
698
|
+
throw new Error(`Graph identity '${unitId}' is absent from its inventory.`);
|
|
699
|
+
const item = listItem(population, unit, cwd);
|
|
700
|
+
if (item === undefined)
|
|
701
|
+
throw new Error(`Graph identity '${unitId}' has no public address.`);
|
|
702
|
+
nodes.set(id, graphUnitNode(boundaryId, role, item, false, false));
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Tests whether a reference unit is covered in its obligation.
|
|
706
|
+
*
|
|
707
|
+
* Directly selected units use graph coverage. A visible ancestor is covered
|
|
708
|
+
* only when it has selected descendants and all are covered, preventing an
|
|
709
|
+
* empty structural container from appearing complete.
|
|
710
|
+
*/
|
|
711
|
+
function covered(population, unitId) {
|
|
712
|
+
const obligation = population.obligation;
|
|
713
|
+
if (obligation === undefined)
|
|
714
|
+
return false;
|
|
715
|
+
if (obligation.coveredUnitIds.includes(unitId))
|
|
716
|
+
return true;
|
|
717
|
+
if (selection(population, unitId) !== "ancestor")
|
|
718
|
+
return false;
|
|
719
|
+
const descendants = population.selectedDescendants(unitId);
|
|
720
|
+
return (descendants.length !== 0 &&
|
|
721
|
+
descendants.every((id) => obligation.coveredUnitIds.includes(id)));
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Tests whether a reference unit exposes missing coverage in its obligation.
|
|
725
|
+
*
|
|
726
|
+
* Direct missing identities and ancestors with any missing selected descendant
|
|
727
|
+
* are both marked missing. Without an obligation, the population owns no
|
|
728
|
+
* coverage state and therefore returns false.
|
|
729
|
+
*/
|
|
730
|
+
function missing(population, unitId) {
|
|
731
|
+
const obligation = population.obligation;
|
|
732
|
+
if (obligation === undefined)
|
|
733
|
+
return false;
|
|
734
|
+
if (obligation.missingUnitIds.includes(unitId))
|
|
735
|
+
return true;
|
|
736
|
+
return population
|
|
737
|
+
.selectedDescendants(unitId)
|
|
738
|
+
.some((id) => obligation.missingUnitIds.includes(id));
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Retrieves the query population at an exact claim/reference coordinate.
|
|
742
|
+
*
|
|
743
|
+
* Role is part of the key because one inventory can serve both sides of an
|
|
744
|
+
* obligation. A missing entry means analysis and query context lost positional
|
|
745
|
+
* alignment, so graph export throws rather than relabelling its data.
|
|
746
|
+
*/
|
|
747
|
+
function requirePopulation(entries, role, claim, reference) {
|
|
748
|
+
const population = entries.find((entry) => entry.scope.role === role &&
|
|
749
|
+
entry.scope.claim === claim &&
|
|
750
|
+
entry.scope.reference === reference);
|
|
751
|
+
if (population === undefined)
|
|
752
|
+
throw new Error(`Missing query population '${role}:${claim}:${reference ?? -1}'.`);
|
|
753
|
+
return population;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Retrieves graph reference policy input from a reference population.
|
|
757
|
+
*
|
|
758
|
+
* Only reference contexts own this data. Its absence signals a context assembly
|
|
759
|
+
* invariant failure, and throwing prevents a graph report from silently using
|
|
760
|
+
* fabricated defaults.
|
|
761
|
+
*/
|
|
762
|
+
function requirePopulationReference(population) {
|
|
763
|
+
if (population.reference === undefined)
|
|
764
|
+
throw new Error("A reference query population has no graph input.");
|
|
765
|
+
return population.reference;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Projects effective reference policy flags into a public graph boundary.
|
|
769
|
+
*
|
|
770
|
+
* Optional graph-input flags become explicit booleans so report consumers need
|
|
771
|
+
* not reproduce configuration defaults. Severity is retained unchanged because
|
|
772
|
+
* it controls the consequence of coverage diagnostics.
|
|
773
|
+
*/
|
|
774
|
+
function graphPolicy(reference) {
|
|
775
|
+
return {
|
|
776
|
+
severity: reference.severity,
|
|
777
|
+
noEvidenceExclude: reference.noEvidenceExclude === true,
|
|
778
|
+
uniqueEvidence: reference.uniqueEvidence === true,
|
|
779
|
+
singleEvidencePerSymbol: reference.singleEvidencePerSymbol === true,
|
|
780
|
+
checklist: reference.checklist === true,
|
|
781
|
+
requireReview: reference.requireReview === true,
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Retrieves the checker report claim at a graph-input position.
|
|
786
|
+
*
|
|
787
|
+
* Graph export joins report labels by construction order. A missing row exposes
|
|
788
|
+
* a broken checker-analysis invariant and throws before coordinates can be
|
|
789
|
+
* assigned to a wrong boundary.
|
|
790
|
+
*/
|
|
791
|
+
function requireReportClaim(analysis, position) {
|
|
792
|
+
const claim = analysis.report.claims[position];
|
|
793
|
+
if (claim === undefined)
|
|
794
|
+
throw new Error(`Missing report claim at position ${position}.`);
|
|
795
|
+
return claim;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Retrieves the evaluated graph claim at a graph-input position.
|
|
799
|
+
*
|
|
800
|
+
* This preserves the checker’s positional join with its input and report. A
|
|
801
|
+
* missing result is an internal invariant failure, not an empty claim suitable
|
|
802
|
+
* for graph serialization.
|
|
803
|
+
*/
|
|
804
|
+
function requireResultClaim(analysis, position) {
|
|
805
|
+
const claim = analysis.graph.claims[position];
|
|
806
|
+
if (claim === undefined)
|
|
807
|
+
throw new Error(`Missing graph claim at position ${position}.`);
|
|
808
|
+
return claim;
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* Retrieves the report obligation for exact claim and reference positions.
|
|
812
|
+
*
|
|
813
|
+
* The returned row supplies public coordinates for graph export. Throwing on a
|
|
814
|
+
* missing position prevents edges and policies from being emitted under an
|
|
815
|
+
* unrelated reference label.
|
|
816
|
+
*/
|
|
817
|
+
function requireReportObligation(analysis, claim, reference) {
|
|
818
|
+
const obligation = requireReportClaim(analysis, claim).obligations[reference];
|
|
819
|
+
if (obligation === undefined)
|
|
820
|
+
throw new Error(`Missing report obligation at position ${claim}:${reference}.`);
|
|
821
|
+
return obligation;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Retrieves the evaluated obligation for exact claim and reference positions.
|
|
825
|
+
*
|
|
826
|
+
* Graph export uses its coverage, edges, and completion state together with the
|
|
827
|
+
* matching report row. Missing positional state is fatal because an empty
|
|
828
|
+
* substitute could falsely make a boundary look complete.
|
|
829
|
+
*/
|
|
830
|
+
function requireResultObligation(analysis, claim, reference) {
|
|
831
|
+
const obligation = requireResultClaim(analysis, claim).obligations[reference];
|
|
832
|
+
if (obligation === undefined)
|
|
833
|
+
throw new Error(`Missing graph obligation at position ${claim}:${reference}.`);
|
|
834
|
+
return obligation;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Retrieves an acknowledgement by its inventory-local identity.
|
|
838
|
+
*
|
|
839
|
+
* Graph edges retain only this identity, while export needs the authored target,
|
|
840
|
+
* reason, and location. A missing record breaks that graph-to-inventory link and
|
|
841
|
+
* throws instead of emitting an unverifiable edge.
|
|
842
|
+
*/
|
|
843
|
+
function requireDeclaration(inventory, id) {
|
|
844
|
+
const declaration = inventory.declarations.find((candidate) => candidate.id === id);
|
|
845
|
+
if (declaration === undefined)
|
|
846
|
+
throw new Error(`Missing graph acknowledgement '${id}'.`);
|
|
847
|
+
return declaration;
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Retrieves a review by its inventory-local identity.
|
|
851
|
+
*
|
|
852
|
+
* Review resolutions refer back to the authored annotation through this value.
|
|
853
|
+
* A missing record indicates invalid graph input and is fatal because the public
|
|
854
|
+
* report cannot accurately represent the review without it.
|
|
855
|
+
*/
|
|
856
|
+
function requireReview(inventory, id) {
|
|
857
|
+
const review = inventory.reviews.find((candidate) => candidate.id === id);
|
|
858
|
+
if (review === undefined)
|
|
859
|
+
throw new Error(`Missing graph review '${id}'.`);
|
|
860
|
+
return review;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Retrieves the documentation host identified by an annotation.
|
|
864
|
+
*
|
|
865
|
+
* Hosts supply source locations and attached claim units for graph nodes. An
|
|
866
|
+
* absent host violates inventory ownership, so callers throw before exporting
|
|
867
|
+
* a source edge with a fabricated or incomplete origin.
|
|
868
|
+
*/
|
|
869
|
+
function requireHost(hosts, id) {
|
|
870
|
+
const host = hosts.find((candidate) => candidate.id === id);
|
|
871
|
+
if (host === undefined)
|
|
872
|
+
throw new Error(`Missing graph host '${id}'.`);
|
|
873
|
+
return host;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Adds the query population’s configured coordinates to a diagnostic.
|
|
877
|
+
*
|
|
878
|
+
* Resolver diagnostics are inventory-local; query output must identify the
|
|
879
|
+
* independent claim and reference obligation that produced them. Claim scope is
|
|
880
|
+
* always present, while reference scope remains absent for claim populations.
|
|
881
|
+
*/
|
|
882
|
+
function scopedDiagnostic(diagnostic, scope) {
|
|
883
|
+
return {
|
|
884
|
+
...diagnostic,
|
|
885
|
+
claim: scope.claim,
|
|
886
|
+
...(scope.reference === undefined ? {} : { reference: scope.reference }),
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Deduplicates diagnostics whose complete public content is identical.
|
|
891
|
+
*
|
|
892
|
+
* Inspection combines checker and per-population diagnostics, which can reach
|
|
893
|
+
* the same error through several compatible populations. Serialization includes
|
|
894
|
+
* coordinates and repair text, preserving distinct actionable failures.
|
|
895
|
+
*/
|
|
896
|
+
function uniqueDiagnostics(diagnostics) {
|
|
897
|
+
return InventoryMerge_1.InventoryMerge.unique(diagnostics, (diagnostic) => JSON.stringify(diagnostic));
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* Formats the stable key for a claim scope or one of its reference scopes.
|
|
901
|
+
*
|
|
902
|
+
* The key is internal to query ordering and exact-population selection. Omitting
|
|
903
|
+
* the reference segment for claims preserves the distinct coordinate shape and
|
|
904
|
+
* prevents a claim from colliding with its first reference.
|
|
905
|
+
*/
|
|
906
|
+
function scopeId(scope) {
|
|
907
|
+
return scope.reference === undefined
|
|
908
|
+
? `claim:${scope.claim}`
|
|
909
|
+
: `claim:${scope.claim}:reference:${scope.reference}`;
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Formats the graph boundary identity for one claim/reference obligation.
|
|
913
|
+
*
|
|
914
|
+
* Boundary IDs are intentionally coordinate-based, even when populations share
|
|
915
|
+
* an inventory, so exported nodes and edges cannot leak coverage across policy
|
|
916
|
+
* boundaries.
|
|
917
|
+
*/
|
|
918
|
+
function boundary(claim, reference) {
|
|
919
|
+
return `claim:${claim}:reference:${reference}`;
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Formats a graph node identity for one unit within a boundary and role.
|
|
923
|
+
*
|
|
924
|
+
* Claim and reference nodes need separate IDs because the same semantic unit can
|
|
925
|
+
* appear on both sides of an obligation with different selection and coverage
|
|
926
|
+
* state.
|
|
927
|
+
*/
|
|
928
|
+
function graphUnitNodeId(boundaryId, role, unitId) {
|
|
929
|
+
return `${boundaryId}:${role}:${unitId}`;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Extracts the decoded file portion from a possibly qualified target.
|
|
933
|
+
*
|
|
934
|
+
* Type inference examines only the physical-looking file prefix, leaving accessor
|
|
935
|
+
* syntax untouched. Invalid percent encoding is retained verbatim so inference
|
|
936
|
+
* can fail normally and the resolver can report the authored target.
|
|
937
|
+
*/
|
|
938
|
+
function targetFile(target) {
|
|
939
|
+
const separator = target.indexOf("#");
|
|
940
|
+
const encoded = separator < 0 ? target : target.slice(0, separator);
|
|
941
|
+
try {
|
|
942
|
+
return decodeURIComponent(encoded);
|
|
943
|
+
}
|
|
944
|
+
catch {
|
|
945
|
+
return encoded;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Recognizes target spellings reserved for Swagger operation resolution.
|
|
950
|
+
*
|
|
951
|
+
* HTTP method prefixes and non-single-letter scheme-like prefixes distinguish
|
|
952
|
+
* these targets from ordinary file paths. This early classification keeps a
|
|
953
|
+
* Swagger target from being needlessly sent to unrelated language adapters.
|
|
954
|
+
*/
|
|
955
|
+
function swaggerLike(target) {
|
|
956
|
+
const match = /^([^:\s/]+):\//u.exec(target);
|
|
957
|
+
const method = match?.[1];
|
|
958
|
+
return ((method !== undefined && !/^[A-Za-z]$/u.test(method)) ||
|
|
959
|
+
/^(?:GET|PUT|POST|DELETE|OPTIONS|HEAD|PATCH|TRACE)(?::|\s)/iu.test(target));
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Orders query identities and rendered targets by code-unit comparison.
|
|
963
|
+
*
|
|
964
|
+
* Avoiding locale collation makes list, inspection, and graph output reproducible
|
|
965
|
+
* across operating systems and independent of the invoking process locale.
|
|
966
|
+
*/
|
|
967
|
+
function compare(left, right) {
|
|
968
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
969
|
+
}
|
|
970
|
+
})(EvidenceQueryProgrammer || (exports.EvidenceQueryProgrammer = EvidenceQueryProgrammer = {}));
|