@reqlan/analytical 0.8.2 → 0.10.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/README.md +27 -2
- package/README.template.md +1 -1
- package/out/core/barrel-page.d.ts +2 -1
- package/out/core/barrel-page.js +18 -83
- package/out/core/barrel-page.js.map +1 -1
- package/out/core/base-discovery.d.ts +6 -0
- package/out/core/base-discovery.js +56 -4
- package/out/core/base-discovery.js.map +1 -1
- package/out/core/create-base.js +10 -14
- package/out/core/create-base.js.map +1 -1
- package/out/core/file-reference-resolve.js +8 -2
- package/out/core/file-reference-resolve.js.map +1 -1
- package/out/core/index-error.d.ts +3 -3
- package/out/core/index-error.js.map +1 -1
- package/out/core/index-state-types.d.ts +47 -0
- package/out/core/index-state-types.js +11 -0
- package/out/core/index-state-types.js.map +1 -0
- package/out/core/path-relative.d.ts +15 -0
- package/out/core/path-relative.js +84 -0
- package/out/core/path-relative.js.map +1 -0
- package/out/core/rqignore.js +62 -62
- package/out/core/rqignore.js.map +1 -1
- package/out/core/types.d.ts +12 -3
- package/out/core/types.js +4 -1
- package/out/core/types.js.map +1 -1
- package/out/core/workspace-paths.d.ts +1 -1
- package/out/core/workspace-paths.js +8 -44
- package/out/core/workspace-paths.js.map +1 -1
- package/out/export/build-export-snapshot.js +1 -1
- package/out/export/build-export-snapshot.js.map +1 -1
- package/out/export/export-utils.d.ts +5 -0
- package/out/export/export-utils.js +38 -0
- package/out/export/export-utils.js.map +1 -0
- package/out/export/write-csv-export.js +1 -1
- package/out/export/write-csv-export.js.map +1 -1
- package/out/export/write-markdown-export.js +1 -1
- package/out/export/write-markdown-export.js.map +1 -1
- package/out/index-store/base-registry.d.ts +2 -3
- package/out/index-store/base-registry.js +8 -4
- package/out/index-store/base-registry.js.map +1 -1
- package/out/index-store/fuzzy-search-hit.d.ts +10 -0
- package/out/index-store/fuzzy-search-hit.js +2 -0
- package/out/index-store/fuzzy-search-hit.js.map +1 -0
- package/out/index-store/index-diagnostics-store.d.ts +4 -0
- package/out/index-store/index-diagnostics-store.js +44 -88
- package/out/index-store/index-diagnostics-store.js.map +1 -1
- package/out/index-store/index-file-error.d.ts +1 -1
- package/out/index-store/index-parse-issues.d.ts +4 -3
- package/out/index-store/index-parse-issues.js +0 -38
- package/out/index-store/index-parse-issues.js.map +1 -1
- package/out/index-store/index-status.d.ts +1 -1
- package/out/index-store/schema.d.ts +1 -1
- package/out/index-store/schema.js +6 -2
- package/out/index-store/schema.js.map +1 -1
- package/out/index-store/sqlite-store.d.ts +10 -4
- package/out/index-store/sqlite-store.js +81 -606
- package/out/index-store/sqlite-store.js.map +1 -1
- package/out/index-store/webview-graph-queries.d.ts +7 -0
- package/out/index-store/webview-graph-queries.js.map +1 -1
- package/out/index-store/webview-table-queries.d.ts +1 -1
- package/out/index-store/webview-table-queries.js +9 -0
- package/out/index-store/webview-table-queries.js.map +1 -1
- package/out/index-store/workspace-index-file.d.ts +3 -14
- package/out/index-store/workspace-index-file.js +1 -118
- package/out/index-store/workspace-index-file.js.map +1 -1
- package/out/index-store/workspace-index-sync.d.ts +4 -17
- package/out/index-store/workspace-index-sync.js +29 -11
- package/out/index-store/workspace-index-sync.js.map +1 -1
- package/out/index-store/workspace-index.d.ts +36 -9
- package/out/index-store/workspace-index.js +223 -120
- package/out/index-store/workspace-index.js.map +1 -1
- package/out/index.d.ts +16 -39
- package/out/index.js +9 -23
- package/out/index.js.map +1 -1
- package/out/native/generated.d.ts +102 -0
- package/out/native/generated.js +4 -0
- package/out/native/generated.js.map +1 -0
- package/out/native/index.d.ts +17 -0
- package/out/native/index.js +12 -0
- package/out/native/index.js.map +1 -0
- package/out/native/load-native.d.ts +50 -0
- package/out/native/load-native.js +152 -0
- package/out/native/load-native.js.map +1 -0
- package/out/{analysis-api.d.ts → native/native-analysis-api.d.ts} +24 -20
- package/out/native/native-analysis-api.js +212 -0
- package/out/native/native-analysis-api.js.map +1 -0
- package/out/native/native-index-store.d.ts +5 -0
- package/out/native/native-index-store.js +6 -0
- package/out/native/native-index-store.js.map +1 -0
- package/out/native/native-sql-db.d.ts +135 -0
- package/out/native/native-sql-db.js +217 -0
- package/out/native/native-sql-db.js.map +1 -0
- package/out/native/native-workspace-index.d.ts +164 -0
- package/out/native/native-workspace-index.js +283 -0
- package/out/native/native-workspace-index.js.map +1 -0
- package/out/native/open-analysis-api.d.ts +16 -0
- package/out/native/open-analysis-api.js +21 -0
- package/out/native/open-analysis-api.js.map +1 -0
- package/out/native/parse-source.d.ts +24 -0
- package/out/native/parse-source.js +26 -0
- package/out/native/parse-source.js.map +1 -0
- package/package.json +18 -22
- package/out/analysis/analyser-registry.d.ts +0 -21
- package/out/analysis/analyser-registry.js +0 -33
- package/out/analysis/analyser-registry.js.map +0 -1
- package/out/analysis/completion-tracking-analyser.d.ts +0 -3
- package/out/analysis/completion-tracking-analyser.js +0 -37
- package/out/analysis/completion-tracking-analyser.js.map +0 -1
- package/out/analysis/deprecation-impact-analyser.d.ts +0 -3
- package/out/analysis/deprecation-impact-analyser.js +0 -21
- package/out/analysis/deprecation-impact-analyser.js.map +0 -1
- package/out/analysis/file-related-analyser.d.ts +0 -5
- package/out/analysis/file-related-analyser.js +0 -41
- package/out/analysis/file-related-analyser.js.map +0 -1
- package/out/analysis/fuzzy-search-analyser.d.ts +0 -17
- package/out/analysis/fuzzy-search-analyser.js +0 -25
- package/out/analysis/fuzzy-search-analyser.js.map +0 -1
- package/out/analysis/fuzzy-search-worker-client.d.ts +0 -39
- package/out/analysis/fuzzy-search-worker-client.js +0 -178
- package/out/analysis/fuzzy-search-worker-client.js.map +0 -1
- package/out/analysis/fuzzy-search-worker.d.ts +0 -32
- package/out/analysis/fuzzy-search-worker.js +0 -81
- package/out/analysis/fuzzy-search-worker.js.map +0 -1
- package/out/analysis/fuzzy-search.d.ts +0 -38
- package/out/analysis/fuzzy-search.js +0 -217
- package/out/analysis/fuzzy-search.js.map +0 -1
- package/out/analysis/git-dates-analyser.d.ts +0 -9
- package/out/analysis/git-dates-analyser.js +0 -77
- package/out/analysis/git-dates-analyser.js.map +0 -1
- package/out/analysis/list-ideas-analyser.d.ts +0 -3
- package/out/analysis/list-ideas-analyser.js +0 -7
- package/out/analysis/list-ideas-analyser.js.map +0 -1
- package/out/analysis/local-graph-analyser.d.ts +0 -6
- package/out/analysis/local-graph-analyser.js +0 -42
- package/out/analysis/local-graph-analyser.js.map +0 -1
- package/out/analysis/semantic-search-analyser.d.ts +0 -8
- package/out/analysis/semantic-search-analyser.js +0 -51
- package/out/analysis/semantic-search-analyser.js.map +0 -1
- package/out/analysis-api.js +0 -190
- package/out/analysis-api.js.map +0 -1
- package/out/core/analytical-store.d.ts +0 -85
- package/out/core/analytical-store.js +0 -143
- package/out/core/analytical-store.js.map +0 -1
- package/out/core/context-model.d.ts +0 -204
- package/out/core/context-model.js +0 -36
- package/out/core/context-model.js.map +0 -1
- package/out/core/context-signals.d.ts +0 -149
- package/out/core/context-signals.js +0 -397
- package/out/core/context-signals.js.map +0 -1
- package/out/create-runtime.d.ts +0 -47
- package/out/create-runtime.js +0 -79
- package/out/create-runtime.js.map +0 -1
- package/out/export/export-html.d.ts +0 -4
- package/out/export/export-html.js +0 -12
- package/out/export/export-html.js.map +0 -1
- package/out/export/html-export-assets.d.ts +0 -3
- package/out/export/html-export-assets.js +0 -1926
- package/out/export/html-export-assets.js.map +0 -1
- package/out/export/html-export-template.d.ts +0 -18
- package/out/export/html-export-template.js +0 -1139
- package/out/export/html-export-template.js.map +0 -1
- package/out/export/html-export-utils.d.ts +0 -86
- package/out/export/html-export-utils.js +0 -485
- package/out/export/html-export-utils.js.map +0 -1
- package/out/export/write-html-export.d.ts +0 -2
- package/out/export/write-html-export.js +0 -181
- package/out/export/write-html-export.js.map +0 -1
- package/out/graph/physics-core-source.d.ts +0 -5
- package/out/graph/physics-core-source.js +0 -8
- package/out/graph/physics-core-source.js.map +0 -1
- package/out/graph/physics-core.d.ts +0 -141
- package/out/graph/physics-core.js +0 -237
- package/out/graph/physics-core.js.map +0 -1
- package/out/index-store/idea-extractor.d.ts +0 -11
- package/out/index-store/idea-extractor.js +0 -351
- package/out/index-store/idea-extractor.js.map +0 -1
- package/out/index-store/overview-coverage.d.ts +0 -23
- package/out/index-store/overview-coverage.js +0 -254
- package/out/index-store/overview-coverage.js.map +0 -1
package/out/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export type { IndexErrorPhase } from './core/analytical-store.js';
|
|
1
|
+
export type { DocumentUpdate, DocumentUpdateIdea, IndexError, IndexEvent, FileIndexIssue, IndexState, WorkspaceChange, WorkspaceFileChange } from './core/index-state-types.js';
|
|
2
|
+
export type { IndexErrorPhase } from './core/index-state-types.js';
|
|
4
3
|
export { toIndexErrorDetail, toFileIndexIssueView, errorCauseMessage } from './core/index-error.js';
|
|
5
4
|
export type { IndexErrorDetail, FileIndexIssueView } from './core/index-error.js';
|
|
6
5
|
export { normalizeIndexedDocument, resolveWorkspaceFileUri, toWorkspaceRelativePath } from './core/workspace-paths.js';
|
|
6
|
+
export { fileUriFromFsPath, fsPathFromFileUri, isWindowsAbsolutePath } from './core/path-relative.js';
|
|
7
7
|
export { APPLICATION_MEMORY_DIR, CONFIG_FILENAME, IDEAS_INDEX_FILENAME, INDEX_DIAGNOSTICS_FILENAME, RQIGNORE_FILENAME, resolveApplicationMemoryPath, resolveIdeasIndexDbPath, resolveIndexDiagnosticsDbPath } from './core/application-memory.js';
|
|
8
8
|
export { DEFAULT_RQIGNORE_PATTERNS, createRqIgnoreFilter, defaultRqIgnoreFileContents, isIgnoredPath, loadRqIgnore, resolveRqIgnorePath } from './core/rqignore.js';
|
|
9
9
|
export type { RqIgnoreFilter } from './core/rqignore.js';
|
|
@@ -11,67 +11,44 @@ export { createBase } from './core/create-base.js';
|
|
|
11
11
|
export type { CreateBaseResult } from './core/create-base.js';
|
|
12
12
|
export { barrelPage, planBarrelPage, rewriteSiblingRefs } from './core/barrel-page.js';
|
|
13
13
|
export type { BarrelPageChildPlan, BarrelPageOptions, BarrelPagePlan, BarrelPagePlanOptions, BarrelPageResult } from './core/barrel-page.js';
|
|
14
|
-
export { baseForPath, childBasesOf, discoverBases, discoverBasesUnder, filesOwnedByBase, isPathInsideOrEqual, selectDefaultBase, stableBaseId, toBaseDescriptor } from './core/base-discovery.js';
|
|
14
|
+
export { baseForPath, childBasesOf, discoverBases, discoverBasesUnder, filesOwnedByBase, isPathInsideOrEqual, nearestBaseRoot, selectDefaultBase, stableBaseId, toBaseDescriptor } from './core/base-discovery.js';
|
|
15
15
|
export type { BaseDescriptor } from './core/base-discovery.js';
|
|
16
16
|
export { BaseRegistry } from './index-store/base-registry.js';
|
|
17
17
|
export type { BaseStatusEntry, RegisteredBase } from './index-store/base-registry.js';
|
|
18
18
|
export { resolveReferencedFilePath } from './core/file-reference-resolve.js';
|
|
19
|
-
export type { Analyser, AnalyserContext } from './analysis/analyser-registry.js';
|
|
20
|
-
export { AnalyserRegistry } from './analysis/analyser-registry.js';
|
|
21
|
-
export { listAllIdeasAnalyser } from './analysis/list-ideas-analyser.js';
|
|
22
|
-
export { fileRelatedAnalyser } from './analysis/file-related-analyser.js';
|
|
23
|
-
export { deprecationImpactAnalyser } from './analysis/deprecation-impact-analyser.js';
|
|
24
|
-
export { gitDatesAnalyser } from './analysis/git-dates-analyser.js';
|
|
25
|
-
export type { GitDateInfo } from './analysis/git-dates-analyser.js';
|
|
26
|
-
export { completionTrackingAnalyser } from './analysis/completion-tracking-analyser.js';
|
|
27
|
-
export { localGraphAnalyser } from './analysis/local-graph-analyser.js';
|
|
28
|
-
export { semanticSearchAnalyser } from './analysis/semantic-search-analyser.js';
|
|
29
|
-
export { fuzzySearchAnalyser } from './analysis/fuzzy-search-analyser.js';
|
|
30
|
-
export type { FuzzySearchParams } from './analysis/fuzzy-search-analyser.js';
|
|
31
|
-
export { filterAndScoreIdeas, filterAndScoreIdeasAsync, fuzzySubsequence, matchQueryTokens, normalizeSearchSeparators, splitSearchTokens } from './analysis/fuzzy-search.js';
|
|
32
|
-
export type { FuzzySearchHit } from './analysis/fuzzy-search.js';
|
|
33
|
-
export { FuzzySearchWorkerClient, SearchCancelledError, resolveFuzzySearchWorkerPath } from './analysis/fuzzy-search-worker-client.js';
|
|
34
|
-
export type { FuzzySearchWorkerIdea, FuzzySearchWorkerInbound, FuzzySearchWorkerOutbound } from './analysis/fuzzy-search-worker.js';
|
|
35
|
-
export type { FuzzySearchWorkerSearchResult } from './analysis/fuzzy-search-worker-client.js';
|
|
36
|
-
export { extractIndexedDocument } from './index-store/idea-extractor.js';
|
|
37
19
|
export { SqliteIndexStore } from './index-store/sqlite-store.js';
|
|
38
20
|
export type { IdeasTableQuery, IdeasetsTableQuery, ReferencesTableQuery, AttributesTableQuery, AttributeTableRow, GitIdeaTimelineEvent, ColumnFilter, ReferenceFilter, IdeasSortColumn, IdeasetsSortColumn, ReferencesSortColumn, AttributesSortColumn, IdeasGroupBy, ReferencesGroupBy, SortDirection } from './index-store/webview-table-queries.js';
|
|
39
21
|
export { attributeKeyFromChipItem, attributeJsonPath, formatAttributeValue, aggregateAttributesFromRows, filterAndPageAttributes, edgeKindsForReferenceViewTypes } from './index-store/webview-table-queries.js';
|
|
40
22
|
export type { GraphViewQuery, GraphViewSlice, GraphNodeView, GraphEdgeView, GraphTruncationBasis } from './index-store/webview-graph-queries.js';
|
|
41
|
-
export {
|
|
42
|
-
export type { OverviewCoverageScores, ComputeOverviewCoverageOptions } from './index-store/overview-coverage.js';
|
|
23
|
+
export type { OverviewCoverageScores } from './native/native-workspace-index.js';
|
|
43
24
|
export { GRAPH_MAX_NODES, GRAPH_NODES_HARD_CAP, GRAPH_TRUNCATION_BASIS_OPTIONS, buildGraphFilterWhereClause, buildGraphTruncationOrderClause, buildGraphViewSlice, buildGraphSliceForIdeaIds, toGraphNodeView, isWildcardReferenceEdge, CONTEXT_MIN_HOP_DEPTH, CONTEXT_MAX_HOP_DEPTH, clampGraphHopDepth } from './index-store/webview-graph-queries.js';
|
|
44
25
|
export { ACTIVITY_BAR_MAX_NODES, BLOCKING_STATUSES } from './core/types.js';
|
|
45
|
-
export type { ActivityBarScope, AncestorChainResult, CurrentFileSlice, IdeaWithRange, OutlineNode, ReferenceListRow, ReqlanContextModel, ContextAnomaly, ContextDimensionContribution, ContextDimensionId, ContextFileEntry, ContextFocus, ContextFootprint, GitAuthorRollup, GitContextSlice, GitFocusStats, GitFocusCommit, GitPeerChangeRate, WorkspaceBaseGlance, WorkspaceContextSlice } from './core/types.js';
|
|
46
|
-
export type { ContextFileLensDetail, ContextReferencesSlice, ContextSelection } from './core/context-model.js';
|
|
47
|
-
export { CONTEXT_DIMENSION_LABELS, CONTEXT_DIMENSION_WEIGHTS, CONTEXT_GRAPH_SEARCH_DIMENSIONS, DEFAULT_ENABLED_DIMENSIONS } from './core/context-model.js';
|
|
48
|
-
export { buildAiReadiness, buildContextFingerprint, buildFocusSignals, CONTEXT_FINGERPRINT_AXIS_HELP, CONTEXT_FINGERPRINT_HELP, emptyContextSignals, emptyContextSynthesis, fingerprintAxisTooltip, formatAiReadinessMarkdown, formatFingerprintMarkdown, formatSynthesisMarkdown, hopDistancesFromCenter, hotspotBandFromRisk, hotspotBorderColor, hotspotBorderWidth, impactOpacityForHopDistance, requirementCardCue, synthesizeFocusContext, thinChurnIntensity, timelineMilestones } from './core/context-signals.js';
|
|
49
|
-
export type { AiReadiness, ContextCoverageLevel, ContextFingerprintAxes, ContextHotspotBand, ContextRiskLevel, ContextSignals, ContextSynthesis, DevelopmentHistorySignals, FocusSignalInput, LifecycleSignals, QualitySignals, RelationshipSignals, RiskSignals } from './core/context-signals.js';
|
|
50
26
|
export { resolveBidirectionalIdeaReferences } from './core/idea-references.js';
|
|
51
27
|
export type { IdeaReferenceStore } from './core/idea-references.js';
|
|
52
28
|
export * from './core/types.js';
|
|
53
29
|
export { FILTER_EMPTY, FILTER_EMPTY_LABEL, FILTER_NOT_PRESENT, FILTER_NOT_PRESENT_LABEL, FILTER_UNSPECIFIED, attributePresence, filterDisplayLabel, isFilterEmpty, isFilterNotPresent, isFilterUnspecified, isSpecialFilterValue, statusFilterKey, statusFilterKeyFromAttributes, statusIsNotPresent, tagsAreNotPresent, tagsFilterKeysFromAttributes } from './core/filter-specials.js';
|
|
54
30
|
export type { AttributePresence } from './core/filter-specials.js';
|
|
55
31
|
export { WorkspaceIndex, WorkspaceIndex as HeadlessIndexService } from './index-store/workspace-index.js';
|
|
56
|
-
export type { IdleCheckResult } from './index-store/workspace-index.js';
|
|
32
|
+
export type { FuzzySearchResult, IdleCheckResult } from './index-store/workspace-index.js';
|
|
33
|
+
export type { FuzzySearchHit } from './index-store/fuzzy-search-hit.js';
|
|
57
34
|
export type { IndexStatusSnapshot, IndexSyncProgress } from './index-store/index-status.js';
|
|
58
35
|
export { IndexDiagnosticsStore, pathDepthFromUri } from './index-store/index-diagnostics-store.js';
|
|
59
36
|
export type { IndexDiagnosticsOverview, IndexFileOutcome, IndexFileTimingRecord, IndexFileTimingRow, IndexSyncRunRecord, IndexSyncRunSummary, IndexTimingTrigger } from './index-store/index-diagnostics-store.js';
|
|
60
|
-
export {
|
|
37
|
+
export { fileIssue, fileIssueFromError, unnamedIdeaIssues, validIdeas } from './index-store/index-parse-issues.js';
|
|
61
38
|
export type { FileIndexIssueDraft } from './index-store/index-parse-issues.js';
|
|
62
39
|
export { IndexFileError, recordCaughtFileIssue, recordCaughtIndexError, toFileIndexIssueDraft } from './index-store/index-file-error.js';
|
|
63
|
-
export {
|
|
64
|
-
export type {
|
|
65
|
-
export {
|
|
66
|
-
export
|
|
40
|
+
export { NativeAnalysisApi } from './native/native-analysis-api.js';
|
|
41
|
+
export type { AnalysisRuntimeOptions, InteractionDescriptor, RequirementMatch, SearchRequirementsOptions } from './native/native-analysis-api.js';
|
|
42
|
+
export { openAnalysisApi, type HeadlessAnalysisApi, type OpenedAnalysisApi } from './native/open-analysis-api.js';
|
|
43
|
+
export { nativeEngineRequested, loadNativeEngine, tryLoadNativeEngine, nativeEngineAvailable, addNativeEngineSearchDirs, resetNativeEngineCache } from './native/load-native.js';
|
|
44
|
+
export { NativeWorkspaceIndex } from './native/native-workspace-index.js';
|
|
45
|
+
export type { NativeSyncResult } from './native/native-workspace-index.js';
|
|
46
|
+
export { NativeIndexStore } from './native/native-index-store.js';
|
|
47
|
+
export { NativeSqlConnection } from './native/native-sql-db.js';
|
|
67
48
|
export { buildExportSnapshot } from './export/build-export-snapshot.js';
|
|
68
|
-
export { exportHtml } from './export/export-html.js';
|
|
69
49
|
export { exportMarkdown } from './export/export-markdown.js';
|
|
70
50
|
export { exportJson } from './export/export-json.js';
|
|
71
51
|
export { exportCsv } from './export/export-csv.js';
|
|
72
52
|
export { csvEscape } from './export/write-csv-export.js';
|
|
73
|
-
export { writeHtmlExport } from './export/write-html-export.js';
|
|
74
53
|
export { isSecretRqPath } from './export/secret-rq.js';
|
|
75
54
|
export type { ExportCounts, ExportClusterStrategy, ExportFormat, ExportHeaderLink, ExportProgress, ExportProgressCallback, ExportProgressPhase, ExportRequest, ExportResult, ExportRuntimeMode, ExportScope, ExportSnapshot } from './export/types.js';
|
|
76
|
-
export { DEFAULT_PHYSICS_SETTINGS, ReqlanGraphPhysics, accumulateForces, hashAngle, integrateFromForces, stepPhysics } from './graph/physics-core.js';
|
|
77
|
-
export type { PhysicsCoreSettings, PhysicsEdge, PhysicsStepState } from './graph/physics-core.js';
|
package/out/index.js
CHANGED
|
@@ -1,48 +1,34 @@
|
|
|
1
|
-
export { createAnalyticalStore } from './core/analytical-store.js';
|
|
2
1
|
export { toIndexErrorDetail, toFileIndexIssueView, errorCauseMessage } from './core/index-error.js';
|
|
3
2
|
export { normalizeIndexedDocument, resolveWorkspaceFileUri, toWorkspaceRelativePath } from './core/workspace-paths.js';
|
|
3
|
+
export { fileUriFromFsPath, fsPathFromFileUri, isWindowsAbsolutePath } from './core/path-relative.js';
|
|
4
4
|
export { APPLICATION_MEMORY_DIR, CONFIG_FILENAME, IDEAS_INDEX_FILENAME, INDEX_DIAGNOSTICS_FILENAME, RQIGNORE_FILENAME, resolveApplicationMemoryPath, resolveIdeasIndexDbPath, resolveIndexDiagnosticsDbPath } from './core/application-memory.js';
|
|
5
5
|
export { DEFAULT_RQIGNORE_PATTERNS, createRqIgnoreFilter, defaultRqIgnoreFileContents, isIgnoredPath, loadRqIgnore, resolveRqIgnorePath } from './core/rqignore.js';
|
|
6
6
|
export { createBase } from './core/create-base.js';
|
|
7
7
|
export { barrelPage, planBarrelPage, rewriteSiblingRefs } from './core/barrel-page.js';
|
|
8
|
-
export { baseForPath, childBasesOf, discoverBases, discoverBasesUnder, filesOwnedByBase, isPathInsideOrEqual, selectDefaultBase, stableBaseId, toBaseDescriptor } from './core/base-discovery.js';
|
|
8
|
+
export { baseForPath, childBasesOf, discoverBases, discoverBasesUnder, filesOwnedByBase, isPathInsideOrEqual, nearestBaseRoot, selectDefaultBase, stableBaseId, toBaseDescriptor } from './core/base-discovery.js';
|
|
9
9
|
export { BaseRegistry } from './index-store/base-registry.js';
|
|
10
10
|
export { resolveReferencedFilePath } from './core/file-reference-resolve.js';
|
|
11
|
-
export { AnalyserRegistry } from './analysis/analyser-registry.js';
|
|
12
|
-
export { listAllIdeasAnalyser } from './analysis/list-ideas-analyser.js';
|
|
13
|
-
export { fileRelatedAnalyser } from './analysis/file-related-analyser.js';
|
|
14
|
-
export { deprecationImpactAnalyser } from './analysis/deprecation-impact-analyser.js';
|
|
15
|
-
export { gitDatesAnalyser } from './analysis/git-dates-analyser.js';
|
|
16
|
-
export { completionTrackingAnalyser } from './analysis/completion-tracking-analyser.js';
|
|
17
|
-
export { localGraphAnalyser } from './analysis/local-graph-analyser.js';
|
|
18
|
-
export { semanticSearchAnalyser } from './analysis/semantic-search-analyser.js';
|
|
19
|
-
export { fuzzySearchAnalyser } from './analysis/fuzzy-search-analyser.js';
|
|
20
|
-
export { filterAndScoreIdeas, filterAndScoreIdeasAsync, fuzzySubsequence, matchQueryTokens, normalizeSearchSeparators, splitSearchTokens } from './analysis/fuzzy-search.js';
|
|
21
|
-
export { FuzzySearchWorkerClient, SearchCancelledError, resolveFuzzySearchWorkerPath } from './analysis/fuzzy-search-worker-client.js';
|
|
22
|
-
export { extractIndexedDocument } from './index-store/idea-extractor.js';
|
|
23
11
|
export { SqliteIndexStore } from './index-store/sqlite-store.js';
|
|
24
12
|
export { attributeKeyFromChipItem, attributeJsonPath, formatAttributeValue, aggregateAttributesFromRows, filterAndPageAttributes, edgeKindsForReferenceViewTypes } from './index-store/webview-table-queries.js';
|
|
25
|
-
export { computeOverviewCoverageScores } from './index-store/overview-coverage.js';
|
|
26
13
|
export { GRAPH_MAX_NODES, GRAPH_NODES_HARD_CAP, GRAPH_TRUNCATION_BASIS_OPTIONS, buildGraphFilterWhereClause, buildGraphTruncationOrderClause, buildGraphViewSlice, buildGraphSliceForIdeaIds, toGraphNodeView, isWildcardReferenceEdge, CONTEXT_MIN_HOP_DEPTH, CONTEXT_MAX_HOP_DEPTH, clampGraphHopDepth } from './index-store/webview-graph-queries.js';
|
|
27
14
|
export { ACTIVITY_BAR_MAX_NODES, BLOCKING_STATUSES } from './core/types.js';
|
|
28
|
-
export { CONTEXT_DIMENSION_LABELS, CONTEXT_DIMENSION_WEIGHTS, CONTEXT_GRAPH_SEARCH_DIMENSIONS, DEFAULT_ENABLED_DIMENSIONS } from './core/context-model.js';
|
|
29
|
-
export { buildAiReadiness, buildContextFingerprint, buildFocusSignals, CONTEXT_FINGERPRINT_AXIS_HELP, CONTEXT_FINGERPRINT_HELP, emptyContextSignals, emptyContextSynthesis, fingerprintAxisTooltip, formatAiReadinessMarkdown, formatFingerprintMarkdown, formatSynthesisMarkdown, hopDistancesFromCenter, hotspotBandFromRisk, hotspotBorderColor, hotspotBorderWidth, impactOpacityForHopDistance, requirementCardCue, synthesizeFocusContext, thinChurnIntensity, timelineMilestones } from './core/context-signals.js';
|
|
30
15
|
export { resolveBidirectionalIdeaReferences } from './core/idea-references.js';
|
|
31
16
|
export * from './core/types.js';
|
|
32
17
|
export { FILTER_EMPTY, FILTER_EMPTY_LABEL, FILTER_NOT_PRESENT, FILTER_NOT_PRESENT_LABEL, FILTER_UNSPECIFIED, attributePresence, filterDisplayLabel, isFilterEmpty, isFilterNotPresent, isFilterUnspecified, isSpecialFilterValue, statusFilterKey, statusFilterKeyFromAttributes, statusIsNotPresent, tagsAreNotPresent, tagsFilterKeysFromAttributes } from './core/filter-specials.js';
|
|
33
18
|
export { WorkspaceIndex, WorkspaceIndex as HeadlessIndexService } from './index-store/workspace-index.js';
|
|
34
19
|
export { IndexDiagnosticsStore, pathDepthFromUri } from './index-store/index-diagnostics-store.js';
|
|
35
|
-
export {
|
|
20
|
+
export { fileIssue, fileIssueFromError, unnamedIdeaIssues, validIdeas } from './index-store/index-parse-issues.js';
|
|
36
21
|
export { IndexFileError, recordCaughtFileIssue, recordCaughtIndexError, toFileIndexIssueDraft } from './index-store/index-file-error.js';
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
22
|
+
export { NativeAnalysisApi } from './native/native-analysis-api.js';
|
|
23
|
+
export { openAnalysisApi } from './native/open-analysis-api.js';
|
|
24
|
+
export { nativeEngineRequested, loadNativeEngine, tryLoadNativeEngine, nativeEngineAvailable, addNativeEngineSearchDirs, resetNativeEngineCache } from './native/load-native.js';
|
|
25
|
+
export { NativeWorkspaceIndex } from './native/native-workspace-index.js';
|
|
26
|
+
export { NativeIndexStore } from './native/native-index-store.js';
|
|
27
|
+
export { NativeSqlConnection } from './native/native-sql-db.js';
|
|
39
28
|
export { buildExportSnapshot } from './export/build-export-snapshot.js';
|
|
40
|
-
export { exportHtml } from './export/export-html.js';
|
|
41
29
|
export { exportMarkdown } from './export/export-markdown.js';
|
|
42
30
|
export { exportJson } from './export/export-json.js';
|
|
43
31
|
export { exportCsv } from './export/export-csv.js';
|
|
44
32
|
export { csvEscape } from './export/write-csv-export.js';
|
|
45
|
-
export { writeHtmlExport } from './export/write-html-export.js';
|
|
46
33
|
export { isSecretRqPath } from './export/secret-rq.js';
|
|
47
|
-
export { DEFAULT_PHYSICS_SETTINGS, ReqlanGraphPhysics, accumulateForces, hashAngle, integrateFromForces, stepPhysics } from './graph/physics-core.js';
|
|
48
34
|
//# sourceMappingURL=index.js.map
|
package/out/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEpG,OAAO,EACH,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,iBAAiB,EACjB,4BAA4B,EAC5B,uBAAuB,EACvB,6BAA6B,EAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,EACb,YAAY,EACZ,mBAAmB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AASvF,OAAO,EACH,WAAW,EACX,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,yBA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,EAGlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export type CompletionSummary = {
|
|
2
|
+
total: number;
|
|
3
|
+
byStatus: Partial<{
|
|
4
|
+
[key in string]: number;
|
|
5
|
+
}>;
|
|
6
|
+
byTag: Partial<{
|
|
7
|
+
[key in string]: number;
|
|
8
|
+
}>;
|
|
9
|
+
outstanding: IdeaSummary[];
|
|
10
|
+
deprecated: IdeaSummary[];
|
|
11
|
+
};
|
|
12
|
+
export type DeprecationImpact = {
|
|
13
|
+
deprecated: IdeaSummary;
|
|
14
|
+
dependents: IdeaSummary[];
|
|
15
|
+
};
|
|
16
|
+
export type EdgeDto = {
|
|
17
|
+
id: string;
|
|
18
|
+
sourceId: string;
|
|
19
|
+
targetId?: string | null;
|
|
20
|
+
targetFile?: string | null;
|
|
21
|
+
kind: string;
|
|
22
|
+
label?: string | null;
|
|
23
|
+
};
|
|
24
|
+
export type ExportHeaderLinkDto = {
|
|
25
|
+
href: string;
|
|
26
|
+
label: string;
|
|
27
|
+
};
|
|
28
|
+
export type ExportRequestDto = {
|
|
29
|
+
format: string;
|
|
30
|
+
outputDir: string;
|
|
31
|
+
exportName: string;
|
|
32
|
+
workspaceRoot?: string | null;
|
|
33
|
+
templateId?: string;
|
|
34
|
+
scope?: string;
|
|
35
|
+
sourceFileUri?: string | null;
|
|
36
|
+
includeRequirementsPage?: boolean;
|
|
37
|
+
includeGraphPage?: boolean;
|
|
38
|
+
printEntryFileName?: string;
|
|
39
|
+
excludeSecretFiles?: boolean;
|
|
40
|
+
excludeIgnoredFiles?: boolean;
|
|
41
|
+
runtimeMode?: string;
|
|
42
|
+
clusterStrategy?: string;
|
|
43
|
+
includeIdeaPages?: boolean;
|
|
44
|
+
includeFilePages?: boolean;
|
|
45
|
+
includeCodeFilePages?: boolean;
|
|
46
|
+
includeClusterPages?: boolean;
|
|
47
|
+
includeAttributePages?: boolean;
|
|
48
|
+
includePrintPages?: boolean;
|
|
49
|
+
maxGraphNodes?: number | null;
|
|
50
|
+
urlBase?: string | null;
|
|
51
|
+
headerLink?: ExportHeaderLinkDto | null;
|
|
52
|
+
};
|
|
53
|
+
export type ExportResultDto = {
|
|
54
|
+
outputDir: string;
|
|
55
|
+
indexFilePath: string;
|
|
56
|
+
printFilePath: string;
|
|
57
|
+
dataFilePath: string;
|
|
58
|
+
};
|
|
59
|
+
export type FileReferenceMatch = {
|
|
60
|
+
path: string;
|
|
61
|
+
ideas: IdeaSummary[];
|
|
62
|
+
};
|
|
63
|
+
export type FileRelatedRequirements = {
|
|
64
|
+
fileUri: string;
|
|
65
|
+
ideasInFile: IdeaSummary[];
|
|
66
|
+
referencingIdeas: IdeaSummary[];
|
|
67
|
+
commentLinkedIdeas: IdeaSummary[];
|
|
68
|
+
folderReferencingIdeas: IdeaSummary[];
|
|
69
|
+
};
|
|
70
|
+
export type GraphSlice = {
|
|
71
|
+
centerId: string;
|
|
72
|
+
depth: number;
|
|
73
|
+
nodes: IdeaSummary[];
|
|
74
|
+
edges: EdgeDto[];
|
|
75
|
+
};
|
|
76
|
+
export type IdeaSummary = {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
kind: string;
|
|
80
|
+
fileUri: string;
|
|
81
|
+
lineStart: number;
|
|
82
|
+
summary: string;
|
|
83
|
+
status?: string | null;
|
|
84
|
+
statusKey: string;
|
|
85
|
+
tags: string[];
|
|
86
|
+
tagsKeys: string[];
|
|
87
|
+
};
|
|
88
|
+
export type InteractionDescriptor = {
|
|
89
|
+
name: string;
|
|
90
|
+
description: string;
|
|
91
|
+
parameters: Partial<{
|
|
92
|
+
[key in string]: string;
|
|
93
|
+
}>;
|
|
94
|
+
};
|
|
95
|
+
export type RequirementMatch = {
|
|
96
|
+
idea: IdeaSummary;
|
|
97
|
+
score?: number | null;
|
|
98
|
+
reasons?: string[] | null;
|
|
99
|
+
};
|
|
100
|
+
export type SearchRequirementsOptions = {
|
|
101
|
+
context?: string[];
|
|
102
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../../src/native/generated.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,oEAAoE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core analytical engine for CLI and MCP: Rust via napi, no Langium.
|
|
3
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".native_bridge]
|
|
4
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".cutover]
|
|
5
|
+
*/
|
|
6
|
+
export { createBase } from '../core/create-base.js';
|
|
7
|
+
export type { CreateBaseResult } from '../core/create-base.js';
|
|
8
|
+
export { barrelPage, planBarrelPage, rewriteSiblingRefs } from '../core/barrel-page.js';
|
|
9
|
+
export type { BarrelPageChildPlan, BarrelPageOptions, BarrelPagePlan, BarrelPagePlanOptions, BarrelPageResult } from '../core/barrel-page.js';
|
|
10
|
+
export { toWorkspaceRelativePath } from '../core/path-relative.js';
|
|
11
|
+
export type { CompletionSummary, FileRelatedRequirements, GraphSlice, IdeaSummary } from '../core/types.js';
|
|
12
|
+
export type { ExportClusterStrategy, ExportRuntimeMode, ExportScope } from '../export/types.js';
|
|
13
|
+
export { NativeAnalysisApi } from './native-analysis-api.js';
|
|
14
|
+
export type { AnalysisRuntimeOptions, InteractionDescriptor, RequirementMatch, SearchRequirementsOptions } from './native-analysis-api.js';
|
|
15
|
+
export { openAnalysisApi, type HeadlessAnalysisApi, type OpenedAnalysisApi } from './open-analysis-api.js';
|
|
16
|
+
export { extractIdeaNames, parseReqlanSource } from './parse-source.js';
|
|
17
|
+
export type { NativeParseDiagnostic, NativeParseElement, NativeParseResult } from './parse-source.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core analytical engine for CLI and MCP: Rust via napi, no Langium.
|
|
3
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".native_bridge]
|
|
4
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".cutover]
|
|
5
|
+
*/
|
|
6
|
+
export { createBase } from '../core/create-base.js';
|
|
7
|
+
export { barrelPage, planBarrelPage, rewriteSiblingRefs } from '../core/barrel-page.js';
|
|
8
|
+
export { toWorkspaceRelativePath } from '../core/path-relative.js';
|
|
9
|
+
export { NativeAnalysisApi } from './native-analysis-api.js';
|
|
10
|
+
export { openAnalysisApi } from './open-analysis-api.js';
|
|
11
|
+
export { extractIdeaNames, parseReqlanSource } from './parse-source.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/native/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAQxF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAYnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAO7D,OAAO,EACH,eAAe,EAGlB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { NativeSqlDbHandle } from './native-sql-db.js';
|
|
2
|
+
import type { NativeWorkspaceIndexHandle } from './native-workspace-index.js';
|
|
3
|
+
export interface NativeAnalysisRuntimeHandle {
|
|
4
|
+
ensureReady(): void;
|
|
5
|
+
searchRequirements(query: string, limit: number, context?: string[]): unknown;
|
|
6
|
+
listRequirements(limit: number): unknown;
|
|
7
|
+
getFileContext(filePath: string): unknown;
|
|
8
|
+
getLocalGraph(filePath: string, depth: number): unknown;
|
|
9
|
+
summarizeSubtree(requirementName: string, depth: number): unknown;
|
|
10
|
+
getCompletionStatus(): unknown;
|
|
11
|
+
getDeprecationImpact(): unknown;
|
|
12
|
+
exportGraph(request: unknown): unknown;
|
|
13
|
+
resolveRequirementReference(name?: string): unknown;
|
|
14
|
+
resolveFileReference(pathPrefix?: string): unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface NativeModule {
|
|
17
|
+
NativeAnalysisRuntime: {
|
|
18
|
+
open(workspaceRoot: string, storagePath?: string): NativeAnalysisRuntimeHandle;
|
|
19
|
+
};
|
|
20
|
+
NativeSqlDb: {
|
|
21
|
+
open(path: string): NativeSqlDbHandle;
|
|
22
|
+
};
|
|
23
|
+
NativeWorkspaceIndex: {
|
|
24
|
+
open(workspaceRoot: string, storagePath?: string): NativeWorkspaceIndexHandle;
|
|
25
|
+
};
|
|
26
|
+
/** Single-file parse; present on core engine builds with CLI parse. */
|
|
27
|
+
parseReqlanSource?(source: string): unknown;
|
|
28
|
+
/** Top-level idea names in a document (git-context historical extract). */
|
|
29
|
+
extractIdeaNames?(source: string): string[];
|
|
30
|
+
/** Barrel-page plan from source text (no filesystem writes). */
|
|
31
|
+
barrelPagePlan?(source: string, containerName: string | undefined, sourceFileName: string): unknown;
|
|
32
|
+
/** Seed a reqlan base marker (`.reqlan/` + `config.json` + `.rqignore`). */
|
|
33
|
+
createBase?(baseRoot: string): unknown;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Register directories that may contain a staged host-matching `reqlan_napi.node`
|
|
37
|
+
* (used by the VS Code extension after per-target VSIX packaging).
|
|
38
|
+
*/
|
|
39
|
+
export declare function addNativeEngineSearchDirs(...dirs: string[]): void;
|
|
40
|
+
/**
|
|
41
|
+
* Native engine is required. Env overrides that forced the old JS/sql.js path
|
|
42
|
+
* are rejected so production always uses the host core engine.
|
|
43
|
+
*/
|
|
44
|
+
export declare function nativeEngineRequested(): boolean;
|
|
45
|
+
/** Load the host-matching core engine `.node`, or `undefined` when unavailable. */
|
|
46
|
+
export declare function tryLoadNativeEngine(): NativeModule | undefined;
|
|
47
|
+
export declare function loadNativeEngine(): NativeModule;
|
|
48
|
+
export declare function nativeEngineAvailable(): boolean;
|
|
49
|
+
/** Clear the load cache (tests / after registering new search dirs). */
|
|
50
|
+
export declare function resetNativeEngineCache(): void;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native engine feature flag and napi-rs loader.
|
|
3
|
+
* rq:["../../../reqlan rq/distribution/distribution.rq".rust_binary_distribution]
|
|
4
|
+
* rq:["../../../reqlan rq/distribution/distribution.rq".extension_host_target]
|
|
5
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".native_bridge]
|
|
6
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".cutover]
|
|
7
|
+
*/
|
|
8
|
+
import { createRequire } from 'node:module';
|
|
9
|
+
import { existsSync } from 'node:fs';
|
|
10
|
+
import { dirname, join } from 'node:path';
|
|
11
|
+
import { fileURLToPath } from 'node:url';
|
|
12
|
+
function moduleDirectory() {
|
|
13
|
+
if (typeof __dirname === 'string') {
|
|
14
|
+
return __dirname;
|
|
15
|
+
}
|
|
16
|
+
return dirname(fileURLToPath(import.meta.url));
|
|
17
|
+
}
|
|
18
|
+
function nativeRequire() {
|
|
19
|
+
if (typeof __filename === 'string') {
|
|
20
|
+
return createRequire(__filename);
|
|
21
|
+
}
|
|
22
|
+
return createRequire(import.meta.url);
|
|
23
|
+
}
|
|
24
|
+
/** Extra directories to search for a staged `reqlan_napi.node` (e.g. extension VSIX `native/`). */
|
|
25
|
+
const extraSearchDirs = [];
|
|
26
|
+
/** null = not probed yet; undefined = probed, missing; NativeModule = loaded */
|
|
27
|
+
let cachedEngine = null;
|
|
28
|
+
/**
|
|
29
|
+
* Register directories that may contain a staged host-matching `reqlan_napi.node`
|
|
30
|
+
* (used by the VS Code extension after per-target VSIX packaging).
|
|
31
|
+
*/
|
|
32
|
+
export function addNativeEngineSearchDirs(...dirs) {
|
|
33
|
+
for (const dir of dirs) {
|
|
34
|
+
if (dir && !extraSearchDirs.includes(dir)) {
|
|
35
|
+
extraSearchDirs.push(dir);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
cachedEngine = null;
|
|
39
|
+
}
|
|
40
|
+
function loadCached() {
|
|
41
|
+
if (cachedEngine === null) {
|
|
42
|
+
cachedEngine = tryLoadNativeEngineUncached();
|
|
43
|
+
}
|
|
44
|
+
return cachedEngine;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Native engine is required. Env overrides that forced the old JS/sql.js path
|
|
48
|
+
* are rejected so production always uses the host core engine.
|
|
49
|
+
*/
|
|
50
|
+
export function nativeEngineRequested() {
|
|
51
|
+
const value = process.env.REQLAN_ANALYTICAL_ENGINE?.trim().toLowerCase();
|
|
52
|
+
if (value === 'js' || value === 'typescript' || value === 'sqljs') {
|
|
53
|
+
throw new Error(`REQLAN_ANALYTICAL_ENGINE=${value} is no longer supported; the native engine is required.`);
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
const HOST_PACKAGE_BY_PLATFORM = {
|
|
58
|
+
'linux-x64': '@reqlan/analytical-linux-x64-gnu',
|
|
59
|
+
'linux-arm64': '@reqlan/analytical-linux-arm64-gnu',
|
|
60
|
+
'darwin-arm64': '@reqlan/analytical-darwin-arm64',
|
|
61
|
+
'darwin-x64': '@reqlan/analytical-darwin-x64',
|
|
62
|
+
'win32-x64': '@reqlan/analytical-win32-x64-msvc',
|
|
63
|
+
'win32-arm64': '@reqlan/analytical-win32-arm64-msvc'
|
|
64
|
+
};
|
|
65
|
+
const HOST_BINARY_BY_PLATFORM = {
|
|
66
|
+
'linux-x64': 'reqlan_napi.linux-x64-gnu.node',
|
|
67
|
+
'linux-arm64': 'reqlan_napi.linux-arm64-gnu.node',
|
|
68
|
+
'darwin-arm64': 'reqlan_napi.darwin-arm64.node',
|
|
69
|
+
'darwin-x64': 'reqlan_napi.darwin-x64.node',
|
|
70
|
+
'win32-x64': 'reqlan_napi.win32-x64-msvc.node',
|
|
71
|
+
'win32-arm64': 'reqlan_napi.win32-arm64-msvc.node'
|
|
72
|
+
};
|
|
73
|
+
function hostPackageName(platform = process.platform, arch = process.arch) {
|
|
74
|
+
return HOST_PACKAGE_BY_PLATFORM[`${platform}-${arch}`];
|
|
75
|
+
}
|
|
76
|
+
function candidatePaths() {
|
|
77
|
+
const here = moduleDirectory();
|
|
78
|
+
const hostPkg = hostPackageName();
|
|
79
|
+
const hostBinary = HOST_BINARY_BY_PLATFORM[`${process.platform}-${process.arch}`];
|
|
80
|
+
const staged = extraSearchDirs.flatMap(dir => [
|
|
81
|
+
join(dir, 'reqlan_napi.node'),
|
|
82
|
+
...(hostBinary ? [join(dir, hostBinary)] : []),
|
|
83
|
+
join(dir, 'libreqlan_napi.so'),
|
|
84
|
+
join(dir, 'libreqlan_napi.dylib'),
|
|
85
|
+
join(dir, 'reqlan_napi.dll')
|
|
86
|
+
]);
|
|
87
|
+
return [
|
|
88
|
+
...staged,
|
|
89
|
+
// Prefer the host-matching optionalDependency package first.
|
|
90
|
+
...(hostPkg ? [hostPkg] : []),
|
|
91
|
+
// Local crate builds (dev).
|
|
92
|
+
join(here, '../../../crates/target/release/reqlan_napi.node'),
|
|
93
|
+
join(here, '../../../crates/target/debug/reqlan_napi.node'),
|
|
94
|
+
join(here, '../../../crates/target/release/libreqlan_napi.so'),
|
|
95
|
+
join(here, '../../../crates/target/debug/libreqlan_napi.so'),
|
|
96
|
+
join(here, '../../../crates/target/release/libreqlan_napi.dylib'),
|
|
97
|
+
join(here, '../../../crates/target/debug/libreqlan_napi.dylib'),
|
|
98
|
+
join(here, '../../../crates/target/release/reqlan_napi.dll'),
|
|
99
|
+
join(here, '../../../crates/target/debug/reqlan_napi.dll'),
|
|
100
|
+
// Remaining platform packages (wrong-host installs still listed for clear errors).
|
|
101
|
+
'@reqlan/analytical-linux-x64-gnu',
|
|
102
|
+
'@reqlan/analytical-linux-arm64-gnu',
|
|
103
|
+
'@reqlan/analytical-darwin-arm64',
|
|
104
|
+
'@reqlan/analytical-darwin-x64',
|
|
105
|
+
'@reqlan/analytical-win32-x64-msvc',
|
|
106
|
+
'@reqlan/analytical-win32-arm64-msvc'
|
|
107
|
+
].filter((c, i, arr) => arr.indexOf(c) === i);
|
|
108
|
+
}
|
|
109
|
+
function tryRequire(candidate) {
|
|
110
|
+
// Skip known-missing filesystem paths without attempting require.
|
|
111
|
+
if (!candidate.startsWith('@') && !existsSync(candidate)) {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
try {
|
|
115
|
+
return nativeRequire()(candidate);
|
|
116
|
+
}
|
|
117
|
+
catch {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/** Load the host-matching core engine `.node`, or `undefined` when unavailable. */
|
|
122
|
+
function tryLoadNativeEngineUncached() {
|
|
123
|
+
for (const candidate of candidatePaths()) {
|
|
124
|
+
const loaded = tryRequire(candidate);
|
|
125
|
+
if (loaded?.NativeAnalysisRuntime && loaded?.NativeSqlDb && loaded?.NativeWorkspaceIndex) {
|
|
126
|
+
return loaded;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
/** Load the host-matching core engine `.node`, or `undefined` when unavailable. */
|
|
132
|
+
export function tryLoadNativeEngine() {
|
|
133
|
+
return loadCached();
|
|
134
|
+
}
|
|
135
|
+
export function loadNativeEngine() {
|
|
136
|
+
const loaded = loadCached();
|
|
137
|
+
if (loaded) {
|
|
138
|
+
return loaded;
|
|
139
|
+
}
|
|
140
|
+
const tried = candidatePaths().join('\n');
|
|
141
|
+
throw new Error(`Native analytical engine is required but the host .node was not found. ` +
|
|
142
|
+
`Build crates/reqlan-napi (cargo build -p reqlan-napi) or install the host ` +
|
|
143
|
+
`optionalDependency package. Tried:\n${tried}`);
|
|
144
|
+
}
|
|
145
|
+
export function nativeEngineAvailable() {
|
|
146
|
+
return loadCached() !== undefined;
|
|
147
|
+
}
|
|
148
|
+
/** Clear the load cache (tests / after registering new search dirs). */
|
|
149
|
+
export function resetNativeEngineCache() {
|
|
150
|
+
cachedEngine = null;
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=load-native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-native.js","sourceRoot":"","sources":["../../src/native/load-native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAczC,SAAS,eAAe;IACpB,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,OAAO,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,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,mFAAmF;AACnF,MAAM,UAAU,mBAAmB;IAC/B,OAAO,UAAU,EAAE,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC5B,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,IAAI,MAAM,EAAE,CAAC;QACT,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,IAAI,KAAK,CACX,yEAAyE;QACrE,4EAA4E;QAC5E,uCAAuC,KAAK,EAAE,CACrD,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB;IACjC,OAAO,UAAU,EAAE,KAAK,SAAS,CAAC;AACtC,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,sBAAsB;IAClC,YAAY,GAAG,IAAI,CAAC;AACxB,CAAC"}
|
|
@@ -1,48 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* AnalysisApi-compatible facade over the core Rust engine.
|
|
3
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".native_bridge]
|
|
4
|
+
* rq:["../../../reqlan rq/core_analysis/rust_port.rq".ts_interface]
|
|
5
|
+
*/
|
|
6
|
+
import type { CompletionSummary, DeprecationImpact, FileRelatedRequirements, GraphSlice, IdeaSummary } from '../core/types.js';
|
|
7
|
+
import type { ExportProgressCallback, ExportRequest, ExportResult } from '../export/types.js';
|
|
8
|
+
export interface AnalysisRuntimeOptions {
|
|
9
|
+
workspaceRoot: string;
|
|
10
|
+
storagePath?: string;
|
|
11
|
+
}
|
|
4
12
|
export interface RequirementMatch {
|
|
5
13
|
idea: IdeaSummary;
|
|
6
14
|
score?: number;
|
|
7
15
|
reasons?: string[];
|
|
8
16
|
}
|
|
17
|
+
export interface SearchRequirementsOptions {
|
|
18
|
+
/** Relative `.rq` paths, `path#idea` refs, or bare idea names that bias ranking by hop distance. */
|
|
19
|
+
context?: string[];
|
|
20
|
+
}
|
|
9
21
|
export interface InteractionDescriptor {
|
|
10
22
|
name: string;
|
|
11
23
|
description: string;
|
|
12
24
|
parameters: Record<string, string>;
|
|
13
25
|
}
|
|
14
|
-
export declare class
|
|
15
|
-
private readonly
|
|
16
|
-
constructor(
|
|
26
|
+
export declare class NativeAnalysisApi {
|
|
27
|
+
private readonly native;
|
|
28
|
+
constructor(options: AnalysisRuntimeOptions);
|
|
17
29
|
ensureReady(): Promise<void>;
|
|
18
|
-
searchRequirements(query: string, limit?: number): Promise<RequirementMatch[]>;
|
|
30
|
+
searchRequirements(query: string, limit?: number, options?: SearchRequirementsOptions): Promise<RequirementMatch[]>;
|
|
19
31
|
listRequirements(limit?: number): Promise<IdeaSummary[]>;
|
|
20
32
|
getFileContext(filePath: string): Promise<FileRelatedRequirements>;
|
|
21
33
|
getLocalGraph(filePath: string, depth?: number): Promise<GraphSlice | undefined>;
|
|
22
34
|
summarizeSubtree(requirementName: string, depth?: number): Promise<GraphSlice | undefined>;
|
|
23
35
|
getCompletionStatus(): Promise<CompletionSummary>;
|
|
24
36
|
getDeprecationImpact(): Promise<DeprecationImpact[]>;
|
|
25
|
-
/**
|
|
26
|
-
* Export the indexed requirement graph as a multi-file static HTML site.
|
|
27
|
-
* Headless entry point shared by CLI and site build.
|
|
28
|
-
*/
|
|
29
37
|
exportHtml(request: Omit<ExportRequest, 'workspaceRoot'> & {
|
|
30
38
|
workspaceRoot?: string;
|
|
31
|
-
},
|
|
32
|
-
/**
|
|
33
|
-
* Export the indexed requirement graph as markdown (README + optional idea pages).
|
|
34
|
-
*/
|
|
39
|
+
}, _onProgress?: ExportProgressCallback): Promise<ExportResult>;
|
|
35
40
|
exportMarkdown(request: Omit<ExportRequest, 'workspaceRoot'> & {
|
|
36
41
|
workspaceRoot?: string;
|
|
37
|
-
},
|
|
38
|
-
/** Export structured JSON for tooling and AI consumption. */
|
|
42
|
+
}, _onProgress?: ExportProgressCallback): Promise<ExportResult>;
|
|
39
43
|
exportJson(request: Omit<ExportRequest, 'workspaceRoot'> & {
|
|
40
44
|
workspaceRoot?: string;
|
|
41
|
-
},
|
|
42
|
-
/** Export ideas/references as CSV with flattened tags and attributes. */
|
|
45
|
+
}, _onProgress?: ExportProgressCallback): Promise<ExportResult>;
|
|
43
46
|
exportCsv(request: Omit<ExportRequest, 'workspaceRoot'> & {
|
|
44
47
|
workspaceRoot?: string;
|
|
45
|
-
},
|
|
48
|
+
}, _onProgress?: ExportProgressCallback): Promise<ExportResult>;
|
|
46
49
|
resolveRequirementReference(name?: string): Promise<IdeaSummary[]>;
|
|
47
50
|
resolveFileReference(pathPrefix?: string): Promise<Array<{
|
|
48
51
|
path: string;
|
|
@@ -50,4 +53,5 @@ export declare class AnalysisApi {
|
|
|
50
53
|
}>>;
|
|
51
54
|
listInteractions(): InteractionDescriptor[];
|
|
52
55
|
formatIdea(idea: IdeaSummary): string;
|
|
56
|
+
private exportFormat;
|
|
53
57
|
}
|