@ankhorage/dependency-graph 1.4.0 → 1.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ankhorage/dependency-graph
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e0d1baa: Expose deterministic, evidence-backed SourceGraph feature projections from explicit TypeScript `@feature <name>` declaration tags, with bounded queries and capability diagnostics.
8
+
9
+ ## 1.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 13a6d60: Add canonical repository metadata.
14
+
3
15
  ## 1.4.0
4
16
 
5
17
  ### Minor Changes
@@ -3,14 +3,17 @@ export { projectDependencyGraphFromProjectAnalysisSnapshots } from './features/d
3
3
  export { createDependencyGraphAsync } from './features/dependency-analysis/composition/createDependencyGraphAsync.js';
4
4
  export { createDependencyGraphFromInspectionsAsync } from './features/dependency-analysis/composition/createDependencyGraphFromInspectionsAsync.js';
5
5
  export { createDependencyGraphFromProjectAnalysisSnapshots } from './features/dependency-analysis/composition/createDependencyGraphFromProjectAnalysisSnapshots.js';
6
+ export { projectSourceFeatures } from './features/source-graph/application/projectSourceFeatures.js';
6
7
  export { createProjectAnalysisSnapshotAsync } from './features/source-graph/composition/createProjectAnalysisSnapshotAsync.js';
7
8
  export { createSourceGraphAsync } from './features/source-graph/composition/createSourceGraphAsync.js';
8
9
  export { createSourceGraphFromInspectionsAsync } from './features/source-graph/composition/createSourceGraphFromInspectionsAsync.js';
9
10
  export { createSourceGraphFromProjectAnalysisSnapshots } from './features/source-graph/composition/createSourceGraphFromProjectAnalysisSnapshots.js';
11
+ export { createSourceFeatureProjectionIndex } from './features/source-graph/domain/createSourceFeatureProjectionIndex.js';
10
12
  export { createSourceGraph } from './features/source-graph/domain/createSourceGraph.js';
11
13
  export { createSourceGraphIndex } from './features/source-graph/domain/createSourceGraphIndex.js';
12
14
  export { createSourceRollupIndex, findRolledUpDependency, outgoingRolledUpDependencies, } from './features/source-graph/domain/createSourceRollupIndex.js';
13
15
  export { deserializeProjectAnalysisSnapshot } from './features/source-graph/domain/deserializeProjectAnalysisSnapshot.js';
16
+ export { findSourceFeature, listSourceFeatureMembers, listSourceFeatures, } from './features/source-graph/domain/querySourceFeatureProjection.js';
14
17
  export { findSourceFile, findSourceNode, findSourceRelationsBetween, findSourceSymbols, incomingSourceRelations, outgoingSourceRelations, } from './features/source-graph/domain/querySourceGraph.js';
15
18
  export { rollupSourceRelations } from './features/source-graph/domain/rollupSourceRelations.js';
16
19
  export { serializeProjectAnalysisSnapshot } from './features/source-graph/domain/serializeProjectAnalysisSnapshot.js';
@@ -18,5 +21,5 @@ export { deserializeSourceGraph, serializeSourceGraph, } from './features/source
18
21
  export { summarizeSourceNode } from './features/source-graph/domain/summarizeSourceNode.js';
19
22
  export type { CreateDependencyGraphFromInspectionsInput, CreateDependencyGraphInput, DependencyDeclaration, DependencyDeclarationKind, DependencyGraph, DependencyGraphEdgeData, DependencyGraphInspectionProjectInput, DependencyGraphNodeData, DependencyGraphPackage, DependencyGraphProjectInput, DependencyImportEvidence, DependencyNodeClassification, DependencyNodeKind, DependencyReferenceClassification, } from './types/dependencyGraph.js';
20
23
  export type { CreateProjectAnalysisSnapshotInput, ProjectAnalysisAnalyzer, ProjectAnalysisPackage, ProjectAnalysisSnapshot, ProjectAnalysisSourceFile, ProjectAnalysisWorkspace, } from './types/projectAnalysisSnapshot.js';
21
- export type { CreateSourceGraphFromInspectionsInput, CreateSourceGraphInput, SourceAnalyzedFile, SourceCapability, SourceCapabilityReport, SourceDeclarationFact, SourceDocumentation, SourceEdgeData, SourceEdgeDraft, SourceFileFacts, SourceGraph, SourceGraphDraft, SourceGraphIndex, SourceImportFact, SourceInspectionProjectInput, SourceLocation, SourceNodeData, SourceNodeDraft, SourceNodeKind, SourceNodeSummary, SourceRelationEvidence, SourceRelationKind, SourceRelationView, SourceRollupEdge, SourceRollupIndex, SourceVisibility, } from './types/sourceGraph.js';
24
+ export type { CreateSourceGraphFromInspectionsInput, CreateSourceGraphInput, SourceAnalyzedFile, SourceCapability, SourceCapabilityReport, SourceDeclarationFact, SourceDocumentation, SourceEdgeData, SourceEdgeDraft, SourceFeature, SourceFeatureCapability, SourceFeatureDiagnostic, SourceFeatureMember, SourceFeaturePage, SourceFeatureProjection, SourceFeatureProjectionIndex, SourceFileFacts, SourceGraph, SourceGraphDraft, SourceGraphIndex, SourceImportFact, SourceInspectionProjectInput, SourceLocation, SourceNodeData, SourceNodeDraft, SourceNodeKind, SourceNodeSummary, SourceRelationEvidence, SourceRelationKind, SourceRelationView, SourceRollupEdge, SourceRollupIndex, SourceVisibility, } from './types/sourceGraph.js';
22
25
  //# sourceMappingURL=dependencyGraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dependencyGraph.d.ts","sourceRoot":"","sources":["../src/dependencyGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qFAAqF,CAAC;AAC5I,OAAO,EAAE,kDAAkD,EAAE,MAAM,kGAAkG,CAAC;AACtK,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,yCAAyC,EAAE,MAAM,yFAAyF,CAAC;AACpJ,OAAO,EAAE,iDAAiD,EAAE,MAAM,iGAAiG,CAAC;AACpK,OAAO,EAAE,kCAAkC,EAAE,MAAM,2EAA2E,CAAC;AAC/H,OAAO,EAAE,sBAAsB,EAAE,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAE,qCAAqC,EAAE,MAAM,8EAA8E,CAAC;AACrI,OAAO,EAAE,6CAA6C,EAAE,MAAM,sFAAsF,CAAC;AACrJ,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sEAAsE,CAAC;AAC1H,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AACtH,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,YAAY,EACV,yCAAyC,EACzC,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,qCAAqC,EACrC,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC5B,kBAAkB,EAClB,iCAAiC,GAClC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,kCAAkC,EAClC,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,qCAAqC,EACrC,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"dependencyGraph.d.ts","sourceRoot":"","sources":["../src/dependencyGraph.ts"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E,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC5F,YAAY,EACV,yCAAyC,EACzC,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,qCAAqC,EACrC,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC5B,kBAAkB,EAClB,iCAAiC,GAClC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,kCAAkC,EAClC,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,qCAAqC,EACrC,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,4BAA4B,EAC5B,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC"}
@@ -3,14 +3,17 @@ export { projectDependencyGraphFromProjectAnalysisSnapshots } from './features/d
3
3
  export { createDependencyGraphAsync } from './features/dependency-analysis/composition/createDependencyGraphAsync.js';
4
4
  export { createDependencyGraphFromInspectionsAsync } from './features/dependency-analysis/composition/createDependencyGraphFromInspectionsAsync.js';
5
5
  export { createDependencyGraphFromProjectAnalysisSnapshots } from './features/dependency-analysis/composition/createDependencyGraphFromProjectAnalysisSnapshots.js';
6
+ export { projectSourceFeatures } from './features/source-graph/application/projectSourceFeatures.js';
6
7
  export { createProjectAnalysisSnapshotAsync } from './features/source-graph/composition/createProjectAnalysisSnapshotAsync.js';
7
8
  export { createSourceGraphAsync } from './features/source-graph/composition/createSourceGraphAsync.js';
8
9
  export { createSourceGraphFromInspectionsAsync } from './features/source-graph/composition/createSourceGraphFromInspectionsAsync.js';
9
10
  export { createSourceGraphFromProjectAnalysisSnapshots } from './features/source-graph/composition/createSourceGraphFromProjectAnalysisSnapshots.js';
11
+ export { createSourceFeatureProjectionIndex } from './features/source-graph/domain/createSourceFeatureProjectionIndex.js';
10
12
  export { createSourceGraph } from './features/source-graph/domain/createSourceGraph.js';
11
13
  export { createSourceGraphIndex } from './features/source-graph/domain/createSourceGraphIndex.js';
12
14
  export { createSourceRollupIndex, findRolledUpDependency, outgoingRolledUpDependencies, } from './features/source-graph/domain/createSourceRollupIndex.js';
13
15
  export { deserializeProjectAnalysisSnapshot } from './features/source-graph/domain/deserializeProjectAnalysisSnapshot.js';
16
+ export { findSourceFeature, listSourceFeatureMembers, listSourceFeatures, } from './features/source-graph/domain/querySourceFeatureProjection.js';
14
17
  export { findSourceFile, findSourceNode, findSourceRelationsBetween, findSourceSymbols, incomingSourceRelations, outgoingSourceRelations, } from './features/source-graph/domain/querySourceGraph.js';
15
18
  export { rollupSourceRelations } from './features/source-graph/domain/rollupSourceRelations.js';
16
19
  export { serializeProjectAnalysisSnapshot } from './features/source-graph/domain/serializeProjectAnalysisSnapshot.js';
@@ -1 +1 @@
1
- {"version":3,"file":"dependencyGraph.js","sourceRoot":"","sources":["../src/dependencyGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qFAAqF,CAAC;AAC5I,OAAO,EAAE,kDAAkD,EAAE,MAAM,kGAAkG,CAAC;AACtK,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,yCAAyC,EAAE,MAAM,yFAAyF,CAAC;AACpJ,OAAO,EAAE,iDAAiD,EAAE,MAAM,iGAAiG,CAAC;AACpK,OAAO,EAAE,kCAAkC,EAAE,MAAM,2EAA2E,CAAC;AAC/H,OAAO,EAAE,sBAAsB,EAAE,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAE,qCAAqC,EAAE,MAAM,8EAA8E,CAAC;AACrI,OAAO,EAAE,6CAA6C,EAAE,MAAM,sFAAsF,CAAC;AACrJ,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sEAAsE,CAAC;AAC1H,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AACtH,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC","sourcesContent":["export { projectDependencyGraphFromInspections } from './features/dependency-analysis/application/projectDependencyGraphFromInspections.js';\nexport { projectDependencyGraphFromProjectAnalysisSnapshots } from './features/dependency-analysis/application/projectDependencyGraphFromProjectAnalysisSnapshots.js';\nexport { createDependencyGraphAsync } from './features/dependency-analysis/composition/createDependencyGraphAsync.js';\nexport { createDependencyGraphFromInspectionsAsync } from './features/dependency-analysis/composition/createDependencyGraphFromInspectionsAsync.js';\nexport { createDependencyGraphFromProjectAnalysisSnapshots } from './features/dependency-analysis/composition/createDependencyGraphFromProjectAnalysisSnapshots.js';\nexport { createProjectAnalysisSnapshotAsync } from './features/source-graph/composition/createProjectAnalysisSnapshotAsync.js';\nexport { createSourceGraphAsync } from './features/source-graph/composition/createSourceGraphAsync.js';\nexport { createSourceGraphFromInspectionsAsync } from './features/source-graph/composition/createSourceGraphFromInspectionsAsync.js';\nexport { createSourceGraphFromProjectAnalysisSnapshots } from './features/source-graph/composition/createSourceGraphFromProjectAnalysisSnapshots.js';\nexport { createSourceGraph } from './features/source-graph/domain/createSourceGraph.js';\nexport { createSourceGraphIndex } from './features/source-graph/domain/createSourceGraphIndex.js';\nexport {\n createSourceRollupIndex,\n findRolledUpDependency,\n outgoingRolledUpDependencies,\n} from './features/source-graph/domain/createSourceRollupIndex.js';\nexport { deserializeProjectAnalysisSnapshot } from './features/source-graph/domain/deserializeProjectAnalysisSnapshot.js';\nexport {\n findSourceFile,\n findSourceNode,\n findSourceRelationsBetween,\n findSourceSymbols,\n incomingSourceRelations,\n outgoingSourceRelations,\n} from './features/source-graph/domain/querySourceGraph.js';\nexport { rollupSourceRelations } from './features/source-graph/domain/rollupSourceRelations.js';\nexport { serializeProjectAnalysisSnapshot } from './features/source-graph/domain/serializeProjectAnalysisSnapshot.js';\nexport {\n deserializeSourceGraph,\n serializeSourceGraph,\n} from './features/source-graph/domain/serializeSourceGraph.js';\nexport { summarizeSourceNode } from './features/source-graph/domain/summarizeSourceNode.js';\nexport type {\n CreateDependencyGraphFromInspectionsInput,\n CreateDependencyGraphInput,\n DependencyDeclaration,\n DependencyDeclarationKind,\n DependencyGraph,\n DependencyGraphEdgeData,\n DependencyGraphInspectionProjectInput,\n DependencyGraphNodeData,\n DependencyGraphPackage,\n DependencyGraphProjectInput,\n DependencyImportEvidence,\n DependencyNodeClassification,\n DependencyNodeKind,\n DependencyReferenceClassification,\n} from './types/dependencyGraph.js';\nexport type {\n CreateProjectAnalysisSnapshotInput,\n ProjectAnalysisAnalyzer,\n ProjectAnalysisPackage,\n ProjectAnalysisSnapshot,\n ProjectAnalysisSourceFile,\n ProjectAnalysisWorkspace,\n} from './types/projectAnalysisSnapshot.js';\nexport type {\n CreateSourceGraphFromInspectionsInput,\n CreateSourceGraphInput,\n SourceAnalyzedFile,\n SourceCapability,\n SourceCapabilityReport,\n SourceDeclarationFact,\n SourceDocumentation,\n SourceEdgeData,\n SourceEdgeDraft,\n SourceFileFacts,\n SourceGraph,\n SourceGraphDraft,\n SourceGraphIndex,\n SourceImportFact,\n SourceInspectionProjectInput,\n SourceLocation,\n SourceNodeData,\n SourceNodeDraft,\n SourceNodeKind,\n SourceNodeSummary,\n SourceRelationEvidence,\n SourceRelationKind,\n SourceRelationView,\n SourceRollupEdge,\n SourceRollupIndex,\n SourceVisibility,\n} from './types/sourceGraph.js';\n"]}
1
+ {"version":3,"file":"dependencyGraph.js","sourceRoot":"","sources":["../src/dependencyGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qFAAqF,CAAC;AAC5I,OAAO,EAAE,kDAAkD,EAAE,MAAM,kGAAkG,CAAC;AACtK,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,yCAAyC,EAAE,MAAM,yFAAyF,CAAC;AACpJ,OAAO,EAAE,iDAAiD,EAAE,MAAM,iGAAiG,CAAC;AACpK,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAE,kCAAkC,EAAE,MAAM,2EAA2E,CAAC;AAC/H,OAAO,EAAE,sBAAsB,EAAE,MAAM,+DAA+D,CAAC;AACvG,OAAO,EAAE,qCAAqC,EAAE,MAAM,8EAA8E,CAAC;AACrI,OAAO,EAAE,6CAA6C,EAAE,MAAM,sFAAsF,CAAC;AACrJ,OAAO,EAAE,kCAAkC,EAAE,MAAM,sEAAsE,CAAC;AAC1H,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sEAAsE,CAAC;AAC1H,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AACtH,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC","sourcesContent":["export { projectDependencyGraphFromInspections } from './features/dependency-analysis/application/projectDependencyGraphFromInspections.js';\nexport { projectDependencyGraphFromProjectAnalysisSnapshots } from './features/dependency-analysis/application/projectDependencyGraphFromProjectAnalysisSnapshots.js';\nexport { createDependencyGraphAsync } from './features/dependency-analysis/composition/createDependencyGraphAsync.js';\nexport { createDependencyGraphFromInspectionsAsync } from './features/dependency-analysis/composition/createDependencyGraphFromInspectionsAsync.js';\nexport { createDependencyGraphFromProjectAnalysisSnapshots } from './features/dependency-analysis/composition/createDependencyGraphFromProjectAnalysisSnapshots.js';\nexport { projectSourceFeatures } from './features/source-graph/application/projectSourceFeatures.js';\nexport { createProjectAnalysisSnapshotAsync } from './features/source-graph/composition/createProjectAnalysisSnapshotAsync.js';\nexport { createSourceGraphAsync } from './features/source-graph/composition/createSourceGraphAsync.js';\nexport { createSourceGraphFromInspectionsAsync } from './features/source-graph/composition/createSourceGraphFromInspectionsAsync.js';\nexport { createSourceGraphFromProjectAnalysisSnapshots } from './features/source-graph/composition/createSourceGraphFromProjectAnalysisSnapshots.js';\nexport { createSourceFeatureProjectionIndex } from './features/source-graph/domain/createSourceFeatureProjectionIndex.js';\nexport { createSourceGraph } from './features/source-graph/domain/createSourceGraph.js';\nexport { createSourceGraphIndex } from './features/source-graph/domain/createSourceGraphIndex.js';\nexport {\n createSourceRollupIndex,\n findRolledUpDependency,\n outgoingRolledUpDependencies,\n} from './features/source-graph/domain/createSourceRollupIndex.js';\nexport { deserializeProjectAnalysisSnapshot } from './features/source-graph/domain/deserializeProjectAnalysisSnapshot.js';\nexport {\n findSourceFeature,\n listSourceFeatureMembers,\n listSourceFeatures,\n} from './features/source-graph/domain/querySourceFeatureProjection.js';\nexport {\n findSourceFile,\n findSourceNode,\n findSourceRelationsBetween,\n findSourceSymbols,\n incomingSourceRelations,\n outgoingSourceRelations,\n} from './features/source-graph/domain/querySourceGraph.js';\nexport { rollupSourceRelations } from './features/source-graph/domain/rollupSourceRelations.js';\nexport { serializeProjectAnalysisSnapshot } from './features/source-graph/domain/serializeProjectAnalysisSnapshot.js';\nexport {\n deserializeSourceGraph,\n serializeSourceGraph,\n} from './features/source-graph/domain/serializeSourceGraph.js';\nexport { summarizeSourceNode } from './features/source-graph/domain/summarizeSourceNode.js';\nexport type {\n CreateDependencyGraphFromInspectionsInput,\n CreateDependencyGraphInput,\n DependencyDeclaration,\n DependencyDeclarationKind,\n DependencyGraph,\n DependencyGraphEdgeData,\n DependencyGraphInspectionProjectInput,\n DependencyGraphNodeData,\n DependencyGraphPackage,\n DependencyGraphProjectInput,\n DependencyImportEvidence,\n DependencyNodeClassification,\n DependencyNodeKind,\n DependencyReferenceClassification,\n} from './types/dependencyGraph.js';\nexport type {\n CreateProjectAnalysisSnapshotInput,\n ProjectAnalysisAnalyzer,\n ProjectAnalysisPackage,\n ProjectAnalysisSnapshot,\n ProjectAnalysisSourceFile,\n ProjectAnalysisWorkspace,\n} from './types/projectAnalysisSnapshot.js';\nexport type {\n CreateSourceGraphFromInspectionsInput,\n CreateSourceGraphInput,\n SourceAnalyzedFile,\n SourceCapability,\n SourceCapabilityReport,\n SourceDeclarationFact,\n SourceDocumentation,\n SourceEdgeData,\n SourceEdgeDraft,\n SourceFeature,\n SourceFeatureCapability,\n SourceFeatureDiagnostic,\n SourceFeatureMember,\n SourceFeaturePage,\n SourceFeatureProjection,\n SourceFeatureProjectionIndex,\n SourceFileFacts,\n SourceGraph,\n SourceGraphDraft,\n SourceGraphIndex,\n SourceImportFact,\n SourceInspectionProjectInput,\n SourceLocation,\n SourceNodeData,\n SourceNodeDraft,\n SourceNodeKind,\n SourceNodeSummary,\n SourceRelationEvidence,\n SourceRelationKind,\n SourceRelationView,\n SourceRollupEdge,\n SourceRollupIndex,\n SourceVisibility,\n} from './types/sourceGraph.js';\n"]}
@@ -0,0 +1,4 @@
1
+ import type { SourceFeatureProjection, SourceGraph } from '../../../types/sourceGraph.js';
2
+ /*** Project only explicit TypeScript `@feature <name>` declaration evidence from a SourceGraph. */
3
+ export declare function projectSourceFeatures(sourceGraph: SourceGraph): SourceFeatureProjection;
4
+ //# sourceMappingURL=projectSourceFeatures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectSourceFeatures.d.ts","sourceRoot":"","sources":["../../../../src/features/source-graph/application/projectSourceFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,uBAAuB,EACvB,WAAW,EAEZ,MAAM,+BAA+B,CAAC;AAGvC,mGAAmG;AACnG,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,uBAAuB,CAmBvF"}
@@ -0,0 +1,111 @@
1
+ import { sourceSemanticPath } from '../domain/sourceSemanticPath.js';
2
+ /*** Project only explicit TypeScript `@feature <name>` declaration evidence from a SourceGraph. */
3
+ export function projectSourceFeatures(sourceGraph) {
4
+ const analyzersByFile = new Map(sourceGraph.graph.nodes
5
+ .filter(({ data }) => data.kind === 'file' && data.filePath !== undefined)
6
+ .map(({ data }) => [fileKey(data.projectId, data.filePath), data.analyzerId]));
7
+ const evidence = sourceGraph.graph.nodes.flatMap(({ data }) => featureEvidence(data, analyzersByFile.get(fileKey(data.projectId, data.filePath))));
8
+ const diagnostics = evidence.flatMap(({ diagnostic }) => diagnostic === undefined ? [] : [diagnostic]);
9
+ const members = evidence.flatMap(({ member }) => (member === undefined ? [] : [member]));
10
+ return {
11
+ version: 1,
12
+ capabilities: featureCapabilities(sourceGraph),
13
+ diagnostics: diagnostics.sort(compareDiagnostic),
14
+ features: featuresFromMembers(members),
15
+ };
16
+ }
17
+ /*** Accept only the published one-token feature tag contract from TypeScript declarations. */
18
+ function featureEvidence(data, analyzerId) {
19
+ if (analyzerId !== 'typescript' || data.filePath === undefined || data.location === undefined)
20
+ return {};
21
+ const tags = data.documentation?.tags.feature ?? [];
22
+ if (tags.length === 0)
23
+ return {};
24
+ const names = tags.map((tag) => tag.trim());
25
+ const [name] = names;
26
+ if (names.length !== 1 || name === undefined || !isFeatureName(name)) {
27
+ return {
28
+ diagnostic: {
29
+ analyzerId,
30
+ projectId: data.projectId,
31
+ filePath: data.filePath,
32
+ location: data.location,
33
+ semanticPath: data.semanticPath,
34
+ message: 'A TypeScript feature declaration must have exactly one @feature <name> tag.',
35
+ },
36
+ };
37
+ }
38
+ return {
39
+ member: {
40
+ featureName: name,
41
+ featureId: sourceSemanticPath('feature', data.projectId, name),
42
+ member: {
43
+ analyzerId,
44
+ filePath: data.filePath,
45
+ evidence: data.location,
46
+ semanticPath: data.semanticPath,
47
+ },
48
+ },
49
+ };
50
+ }
51
+ /*** Build deterministic project-scoped features without treating absent tags as negative evidence. */
52
+ function featuresFromMembers(members) {
53
+ const grouped = new Map();
54
+ for (const item of members) {
55
+ const existing = grouped.get(item.featureId);
56
+ if (existing === undefined) {
57
+ grouped.set(item.featureId, {
58
+ id: item.featureId,
59
+ name: item.featureName,
60
+ projectId: projectIdFromFeatureId(item.featureId),
61
+ members: [item.member],
62
+ });
63
+ }
64
+ else
65
+ existing.members.push(item.member);
66
+ }
67
+ return [...grouped.values()]
68
+ .map(({ members: groupedMembers, ...feature }) => ({
69
+ ...feature,
70
+ members: [...groupedMembers].sort((left, right) => compareText(left.semanticPath, right.semanticPath)),
71
+ }))
72
+ .sort((left, right) => compareText(left.id, right.id));
73
+ }
74
+ /*** Preserve analyzer-level unavailable states instead of guessing feature support from source shape. */
75
+ function featureCapabilities(sourceGraph) {
76
+ return sourceGraph.capabilities
77
+ .map(({ analyzerId, projectId, available }) => ({
78
+ analyzerId,
79
+ projectId,
80
+ state: analyzerId === 'typescript' &&
81
+ available.includes('declarations') &&
82
+ available.includes('documentation') &&
83
+ available.includes('source-locations')
84
+ ? 'available'
85
+ : 'unavailable',
86
+ }))
87
+ .sort((left, right) => compareText(`${left.projectId}:${left.analyzerId}`, `${right.projectId}:${right.analyzerId}`));
88
+ }
89
+ /*** Reject spaces and prose so a feature identity remains portable and stable. */
90
+ function isFeatureName(value) {
91
+ return /^[A-Za-z][A-Za-z0-9._/-]*$/u.test(value);
92
+ }
93
+ /*** Recover the encoded project identity already embedded in the canonical feature semantic path. */
94
+ function projectIdFromFeatureId(id) {
95
+ return decodeURIComponent(id.split(':')[1] ?? '');
96
+ }
97
+ /*** Scope an analyzed file lookup without conflating equally named project files. */
98
+ function fileKey(projectId, filePath) {
99
+ return `${projectId}\u0000${filePath ?? ''}`;
100
+ }
101
+ /*** Keep diagnostic order reproducible across fresh and restored source snapshots. */
102
+ function compareDiagnostic(left, right) {
103
+ return compareText(`${left.semanticPath}:${left.message}`, `${right.semanticPath}:${right.message}`);
104
+ }
105
+ /*** Compare portable identities without host locale effects. */
106
+ function compareText(left, right) {
107
+ if (left < right)
108
+ return -1;
109
+ return left > right ? 1 : 0;
110
+ }
111
+ //# sourceMappingURL=projectSourceFeatures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectSourceFeatures.js","sourceRoot":"","sources":["../../../../src/features/source-graph/application/projectSourceFeatures.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,mGAAmG;AACnG,MAAM,UAAU,qBAAqB,CAAC,WAAwB;IAC5D,MAAM,eAAe,GAAG,IAA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C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["import type {\n SourceFeature,\n SourceFeatureCapability,\n SourceFeatureDiagnostic,\n SourceFeatureProjection,\n SourceGraph,\n SourceNodeData,\n} from '../../../types/sourceGraph.js';\nimport { sourceSemanticPath } from '../domain/sourceSemanticPath.js';\n\n/*** Project only explicit TypeScript `@feature <name>` declaration evidence from a SourceGraph. */\nexport function projectSourceFeatures(sourceGraph: SourceGraph): SourceFeatureProjection {\n const analyzersByFile = new Map(\n sourceGraph.graph.nodes\n .filter(({ data }) => data.kind === 'file' && data.filePath !== undefined)\n .map(({ data }) => [fileKey(data.projectId, data.filePath), data.analyzerId]),\n );\n const evidence = sourceGraph.graph.nodes.flatMap(({ data }) =>\n featureEvidence(data, analyzersByFile.get(fileKey(data.projectId, data.filePath))),\n );\n const diagnostics = evidence.flatMap(({ diagnostic }) =>\n diagnostic === undefined ? [] : [diagnostic],\n );\n const members = evidence.flatMap(({ member }) => (member === undefined ? [] : [member]));\n return {\n version: 1,\n capabilities: featureCapabilities(sourceGraph),\n diagnostics: diagnostics.sort(compareDiagnostic),\n features: featuresFromMembers(members),\n };\n}\n\ninterface FeatureEvidence {\n readonly diagnostic?: SourceFeatureDiagnostic;\n readonly member?: {\n readonly featureName: string;\n readonly featureId: string;\n readonly member: SourceFeature['members'][number];\n };\n}\n\n/*** Accept only the published one-token feature tag contract from TypeScript declarations. */\nfunction featureEvidence(data: SourceNodeData, analyzerId: string | undefined): FeatureEvidence {\n if (analyzerId !== 'typescript' || data.filePath === undefined || data.location === undefined)\n return {};\n const tags = data.documentation?.tags.feature ?? [];\n if (tags.length === 0) return {};\n const names = tags.map((tag) => tag.trim());\n const [name] = names;\n if (names.length !== 1 || name === undefined || !isFeatureName(name)) {\n return {\n diagnostic: {\n analyzerId,\n projectId: data.projectId,\n filePath: data.filePath,\n location: data.location,\n semanticPath: data.semanticPath,\n message: 'A TypeScript feature declaration must have exactly one @feature <name> tag.',\n },\n };\n }\n return {\n member: {\n featureName: name,\n featureId: sourceSemanticPath('feature', data.projectId, name),\n member: {\n analyzerId,\n filePath: data.filePath,\n evidence: data.location,\n semanticPath: data.semanticPath,\n },\n },\n };\n}\n\n/*** Build deterministic project-scoped features without treating absent tags as negative evidence. */\nfunction featuresFromMembers(\n members: readonly NonNullable<FeatureEvidence['member']>[],\n): readonly SourceFeature[] {\n const grouped = new Map<\n string,\n {\n readonly id: string;\n readonly name: string;\n readonly projectId: string;\n readonly members: SourceFeature['members'][number][];\n }\n >();\n for (const item of members) {\n const existing = grouped.get(item.featureId);\n if (existing === undefined) {\n grouped.set(item.featureId, {\n id: item.featureId,\n name: item.featureName,\n projectId: projectIdFromFeatureId(item.featureId),\n members: [item.member],\n });\n } else existing.members.push(item.member);\n }\n return [...grouped.values()]\n .map(({ members: groupedMembers, ...feature }) => ({\n ...feature,\n members: [...groupedMembers].sort((left, right) =>\n compareText(left.semanticPath, right.semanticPath),\n ),\n }))\n .sort((left, right) => compareText(left.id, right.id));\n}\n\n/*** Preserve analyzer-level unavailable states instead of guessing feature support from source shape. */\nfunction featureCapabilities(sourceGraph: SourceGraph): readonly SourceFeatureCapability[] {\n return sourceGraph.capabilities\n .map(({ analyzerId, projectId, available }) => ({\n analyzerId,\n projectId,\n state:\n analyzerId === 'typescript' &&\n available.includes('declarations') &&\n available.includes('documentation') &&\n available.includes('source-locations')\n ? ('available' as const)\n : ('unavailable' as const),\n }))\n .sort((left, right) =>\n compareText(`${left.projectId}:${left.analyzerId}`, `${right.projectId}:${right.analyzerId}`),\n );\n}\n\n/*** Reject spaces and prose so a feature identity remains portable and stable. */\nfunction isFeatureName(value: string): boolean {\n return /^[A-Za-z][A-Za-z0-9._/-]*$/u.test(value);\n}\n\n/*** Recover the encoded project identity already embedded in the canonical feature semantic path. */\nfunction projectIdFromFeatureId(id: string): string {\n return decodeURIComponent(id.split(':')[1] ?? '');\n}\n\n/*** Scope an analyzed file lookup without conflating equally named project files. */\nfunction fileKey(projectId: string, filePath: string | undefined): string {\n return `${projectId}\\u0000${filePath ?? ''}`;\n}\n\n/*** Keep diagnostic order reproducible across fresh and restored source snapshots. */\nfunction compareDiagnostic(left: SourceFeatureDiagnostic, right: SourceFeatureDiagnostic): number {\n return compareText(\n `${left.semanticPath}:${left.message}`,\n `${right.semanticPath}:${right.message}`,\n );\n}\n\n/*** Compare portable identities without host locale effects. */\nfunction compareText(left: string, right: string): number {\n if (left < right) return -1;\n return left > right ? 1 : 0;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { SourceFeatureProjection, SourceFeatureProjectionIndex } from '../../../types/sourceGraph.js';
2
+ /*** Index a completed feature projection for interaction-time lookup without source graph traversal. */
3
+ export declare function createSourceFeatureProjectionIndex(projection: SourceFeatureProjection): SourceFeatureProjectionIndex;
4
+ //# sourceMappingURL=createSourceFeatureProjectionIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSourceFeatureProjectionIndex.d.ts","sourceRoot":"","sources":["../../../../src/features/source-graph/domain/createSourceFeatureProjectionIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,+BAA+B,CAAC;AAEvC,wGAAwG;AACxG,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,uBAAuB,GAClC,4BAA4B,CAY9B"}
@@ -0,0 +1,17 @@
1
+ /*** Index a completed feature projection for interaction-time lookup without source graph traversal. */
2
+ export function createSourceFeatureProjectionIndex(projection) {
3
+ return {
4
+ projection,
5
+ featureById: new Map(projection.features.map((feature) => [feature.id, feature])),
6
+ featureOffsetById: offsets(projection.features, (feature) => feature.id),
7
+ memberOffsetByFeatureId: new Map(projection.features.map((feature) => [
8
+ feature.id,
9
+ offsets(feature.members, (member) => member.semanticPath),
10
+ ])),
11
+ };
12
+ }
13
+ /*** Materialize stable cursor offsets once so later page traversal never linearly searches evidence. */
14
+ function offsets(values, identity) {
15
+ return new Map(values.map((value, offset) => [identity(value), offset]));
16
+ }
17
+ //# sourceMappingURL=createSourceFeatureProjectionIndex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSourceFeatureProjectionIndex.js","sourceRoot":"","sources":["../../../../src/features/source-graph/domain/createSourceFeatureProjectionIndex.ts"],"names":[],"mappings":"AAKA,wGAAwG;AACxG,MAAM,UAAU,kCAAkC,CAChD,UAAmC;IAEnC,OAAO;QACL,UAAU;QACV,WAAW,EAAE,IAAI,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;QACjF,iBAAiB,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QACxE,uBAAuB,EAAE,IAAI,GAAG,CAC9B,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;YACnC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC;SAC1D,CAAC,CACH;KACF,CAAC;AACJ,CAAC;AAED,wGAAwG;AACxG,SAAS,OAAO,CACd,MAAoB,EACpB,QAA8B;IAE9B,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AAC3E,CAAC","sourcesContent":["import type {\n SourceFeatureProjection,\n SourceFeatureProjectionIndex,\n} from '../../../types/sourceGraph.js';\n\n/*** Index a completed feature projection for interaction-time lookup without source graph traversal. */\nexport function createSourceFeatureProjectionIndex(\n projection: SourceFeatureProjection,\n): SourceFeatureProjectionIndex {\n return {\n projection,\n featureById: new Map(projection.features.map((feature) => [feature.id, feature])),\n featureOffsetById: offsets(projection.features, (feature) => feature.id),\n memberOffsetByFeatureId: new Map(\n projection.features.map((feature) => [\n feature.id,\n offsets(feature.members, (member) => member.semanticPath),\n ]),\n ),\n };\n}\n\n/*** Materialize stable cursor offsets once so later page traversal never linearly searches evidence. */\nfunction offsets<T>(\n values: readonly T[],\n identity: (value: T) => string,\n): ReadonlyMap<string, number> {\n return new Map(values.map((value, offset) => [identity(value), offset]));\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import type { SourceFeature, SourceFeaturePage, SourceFeatureProjectionIndex } from '../../../types/sourceGraph.js';
2
+ /*** Resolve one stable feature identity in constant time. */
3
+ export declare function findSourceFeature(index: SourceFeatureProjectionIndex, id: string): SourceFeature | undefined;
4
+ /*** Return a bounded deterministic page of evidenced features. */
5
+ export declare function listSourceFeatures(index: SourceFeatureProjectionIndex, input: {
6
+ readonly cursor?: string;
7
+ readonly limit: number;
8
+ }): SourceFeaturePage<SourceFeature>;
9
+ /*** Return bounded component or module evidence for one resolved feature. */
10
+ export declare function listSourceFeatureMembers(index: SourceFeatureProjectionIndex, featureId: string, input: {
11
+ readonly cursor?: string;
12
+ readonly limit: number;
13
+ }): SourceFeaturePage<SourceFeature['members'][number]>;
14
+ //# sourceMappingURL=querySourceFeatureProjection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"querySourceFeatureProjection.d.ts","sourceRoot":"","sources":["../../../../src/features/source-graph/domain/querySourceFeatureProjection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,4BAA4B,EAC7B,MAAM,+BAA+B,CAAC;AAEvC,6DAA6D;AAC7D,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,4BAA4B,EACnC,EAAE,EAAE,MAAM,GACT,aAAa,GAAG,SAAS,CAE3B;AAED,kEAAkE;AAClE,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,4BAA4B,EACnC,KAAK,EAAE;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1D,iBAAiB,CAAC,aAAa,CAAC,CAElC;AAED,6EAA6E;AAC7E,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,4BAA4B,EACnC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1D,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAMrD"}
@@ -0,0 +1,34 @@
1
+ /*** Resolve one stable feature identity in constant time. */
2
+ export function findSourceFeature(index, id) {
3
+ return index.featureById.get(id);
4
+ }
5
+ /*** Return a bounded deterministic page of evidenced features. */
6
+ export function listSourceFeatures(index, input) {
7
+ return page(index.projection.features, index.featureOffsetById, input);
8
+ }
9
+ /*** Return bounded component or module evidence for one resolved feature. */
10
+ export function listSourceFeatureMembers(index, featureId, input) {
11
+ return page(index.featureById.get(featureId)?.members ?? [], index.memberOffsetByFeatureId.get(featureId) ?? new Map(), input);
12
+ }
13
+ /*** Enforce finite query bounds and use the last returned stable identity as the cursor. */
14
+ function page(values, offsets, input) {
15
+ if (!Number.isSafeInteger(input.limit) || input.limit < 1 || input.limit > 1000)
16
+ throw new Error('Feature projection query limit must be between 1 and 1000.');
17
+ const offset = input.cursor === undefined ? undefined : offsets.get(input.cursor);
18
+ if (input.cursor !== undefined && offset === undefined)
19
+ throw new Error('Feature projection cursor is invalid.');
20
+ const start = offset === undefined ? 0 : offset + 1;
21
+ const items = values.slice(start, start + input.limit);
22
+ const last = items.at(-1);
23
+ return {
24
+ items,
25
+ ...(last !== undefined && start + items.length < values.length
26
+ ? { nextCursor: identity(last) }
27
+ : {}),
28
+ };
29
+ }
30
+ /*** Use canonical feature or member identities as opaque pagination cursors. */
31
+ function identity(value) {
32
+ return value.id ?? value.semanticPath ?? '';
33
+ }
34
+ //# sourceMappingURL=querySourceFeatureProjection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"querySourceFeatureProjection.js","sourceRoot":"","sources":["../../../../src/features/source-graph/domain/querySourceFeatureProjection.ts"],"names":[],"mappings":"AAMA,6DAA6D;AAC7D,MAAM,UAAU,iBAAiB,CAC/B,KAAmC,EACnC,EAAU;IAEV,OAAO,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,kBAAkB,CAChC,KAAmC,EACnC,KAA2D;IAE3D,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AACzE,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,wBAAwB,CACtC,KAAmC,EACnC,SAAiB,EACjB,KAA2D;IAE3D,OAAO,IAAI,CACT,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,OAAO,IAAI,EAAE,EAC/C,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,IAAI,GAAG,EAAE,EACzD,KAAK,CACN,CAAC;AACJ,CAAC;AAED,4FAA4F;AAC5F,SAAS,IAAI,CACX,MAAoB,EACpB,OAAoC,EACpC,KAA2D;IAE3D,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,GAAG,IAAI;QAC7E,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClF,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,SAAS;QACpD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC3D,MAAM,KAAK,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO;QACL,KAAK;QACL,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM;YAC5D,CAAC,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE;YAChC,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,SAAS,QAAQ,CAAC,KAA+D;IAC/E,OAAO,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC;AAC9C,CAAC","sourcesContent":["import type {\n SourceFeature,\n SourceFeaturePage,\n SourceFeatureProjectionIndex,\n} from '../../../types/sourceGraph.js';\n\n/*** Resolve one stable feature identity in constant time. */\nexport function findSourceFeature(\n index: SourceFeatureProjectionIndex,\n id: string,\n): SourceFeature | undefined {\n return index.featureById.get(id);\n}\n\n/*** Return a bounded deterministic page of evidenced features. */\nexport function listSourceFeatures(\n index: SourceFeatureProjectionIndex,\n input: { readonly cursor?: string; readonly limit: number },\n): SourceFeaturePage<SourceFeature> {\n return page(index.projection.features, index.featureOffsetById, input);\n}\n\n/*** Return bounded component or module evidence for one resolved feature. */\nexport function listSourceFeatureMembers(\n index: SourceFeatureProjectionIndex,\n featureId: string,\n input: { readonly cursor?: string; readonly limit: number },\n): SourceFeaturePage<SourceFeature['members'][number]> {\n return page(\n index.featureById.get(featureId)?.members ?? [],\n index.memberOffsetByFeatureId.get(featureId) ?? new Map(),\n input,\n );\n}\n\n/*** Enforce finite query bounds and use the last returned stable identity as the cursor. */\nfunction page<T extends { readonly semanticPath?: string; readonly id?: string }>(\n values: readonly T[],\n offsets: ReadonlyMap<string, number>,\n input: { readonly cursor?: string; readonly limit: number },\n): SourceFeaturePage<T> {\n if (!Number.isSafeInteger(input.limit) || input.limit < 1 || input.limit > 1000)\n throw new Error('Feature projection query limit must be between 1 and 1000.');\n const offset = input.cursor === undefined ? undefined : offsets.get(input.cursor);\n if (input.cursor !== undefined && offset === undefined)\n throw new Error('Feature projection cursor is invalid.');\n const start = offset === undefined ? 0 : offset + 1;\n const items = values.slice(start, start + input.limit);\n const last = items.at(-1);\n return {\n items,\n ...(last !== undefined && start + items.length < values.length\n ? { nextCursor: identity(last) }\n : {}),\n };\n}\n\n/*** Use canonical feature or member identities as opaque pagination cursors. */\nfunction identity(value: { readonly semanticPath?: string; readonly id?: string }): string {\n return value.id ?? value.semanticPath ?? '';\n}\n"]}
@@ -167,6 +167,54 @@ export interface SourceNodeSummary {
167
167
  readonly outgoingRelations: number;
168
168
  readonly dependencies: Readonly<Record<'intrinsic' | 'unknown' | 'vendor', number>>;
169
169
  }
170
+ /*** One declaration-backed feature identity scoped to its analyzed project. */
171
+ export interface SourceFeature {
172
+ readonly id: string;
173
+ readonly name: string;
174
+ readonly projectId: string;
175
+ readonly members: readonly SourceFeatureMember[];
176
+ }
177
+ /*** A declared component or module member with its canonical source evidence. */
178
+ export interface SourceFeatureMember {
179
+ readonly analyzerId: string;
180
+ readonly evidence: SourceLocation;
181
+ readonly filePath: string;
182
+ readonly semanticPath: string;
183
+ }
184
+ /*** One analyzer's ability to discover explicit feature declarations in a project snapshot. */
185
+ export interface SourceFeatureCapability {
186
+ readonly analyzerId: string;
187
+ readonly projectId: string;
188
+ readonly state: 'available' | 'unavailable';
189
+ }
190
+ /*** Invalid explicit feature metadata retained without manufacturing a feature. */
191
+ export interface SourceFeatureDiagnostic {
192
+ readonly analyzerId: string;
193
+ readonly filePath: string;
194
+ readonly location: SourceLocation;
195
+ readonly message: string;
196
+ readonly projectId: string;
197
+ readonly semanticPath: string;
198
+ }
199
+ /*** Portable feature projection derived once from canonical SourceGraph evidence. */
200
+ export interface SourceFeatureProjection {
201
+ readonly capabilities: readonly SourceFeatureCapability[];
202
+ readonly diagnostics: readonly SourceFeatureDiagnostic[];
203
+ readonly features: readonly SourceFeature[];
204
+ readonly version: 1;
205
+ }
206
+ /*** Derived lookup structures for bounded feature interaction without graph rescans. */
207
+ export interface SourceFeatureProjectionIndex {
208
+ readonly featureById: ReadonlyMap<string, SourceFeature>;
209
+ readonly featureOffsetById: ReadonlyMap<string, number>;
210
+ readonly memberOffsetByFeatureId: ReadonlyMap<string, ReadonlyMap<string, number>>;
211
+ readonly projection: SourceFeatureProjection;
212
+ }
213
+ /*** A deterministic bounded page returned by feature and member queries. */
214
+ export interface SourceFeaturePage<T> {
215
+ readonly items: readonly T[];
216
+ readonly nextCursor?: string;
217
+ }
170
218
  import type { Graph, GraphEdge, GraphNode } from '@ankhorage/graph';
171
219
  import type { ProjectInspection } from '@ankhorage/project-detector/types';
172
220
  import type { DependencyDeclaration } from './dependencyGraph.js';
@@ -1 +1 @@
1
- {"version":3,"file":"sourceGraph.d.ts","sourceRoot":"","sources":["../../src/types/sourceGraph.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,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;AACxF,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACzD,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxD,QAAQ,CAAC,uBAAuB,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnF,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC;CAC9C;AAED,4EAA4E;AAC5E,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sourceGraph.js","sourceRoot":"","sources":["../../src/types/sourceGraph.ts"],"names":[],"mappings":"","sourcesContent":["/*** A portable one-based source span emitted by a language analyzer. */\nexport interface SourceLocation {\n readonly column: number;\n readonly endColumn: number;\n readonly endLine: number;\n readonly line: number;\n}\n\n/*** Analyzer-observed source documentation, distinct from consumer interpretation. */\nexport interface SourceDocumentation {\n readonly text: string;\n readonly tags: Readonly<Record<string, readonly string[]>>;\n}\n\ntype SourceDeclarationKind =\n 'class' | 'constant' | 'enum' | 'function' | 'interface' | 'method' | 'type' | 'variable';\n\nexport type SourceVisibility = 'package' | 'private' | 'protected' | 'public';\n\n/*** A source declaration before graph-wide identity and relationship resolution. */\nexport interface SourceDeclarationFact {\n readonly children: readonly SourceDeclarationFact[];\n readonly documentation?: SourceDocumentation;\n readonly exported?: boolean;\n readonly typeOnly?: boolean;\n readonly extends: readonly string[];\n readonly implements: readonly string[];\n readonly kind: SourceDeclarationKind;\n readonly location: SourceLocation;\n readonly modifiers: readonly string[];\n readonly name: string;\n readonly signature?: string;\n readonly visibility: SourceVisibility;\n}\n\n/*** An import observed at an exact source position. */\nexport interface SourceImportFact {\n readonly kind?: 'import' | 'reexport';\n readonly local?: boolean;\n readonly location?: SourceLocation;\n readonly specifier: string;\n readonly resolvedPath?: string;\n readonly typeOnly?: boolean;\n}\n\n/*** Portable facts extracted from one source file by its language analyzer. */\nexport interface SourceFileFacts {\n readonly declarations: readonly SourceDeclarationFact[];\n readonly imports: readonly SourceImportFact[];\n readonly packageName?: string;\n}\n\n/*** Analyzer capabilities whose absence must not be interpreted as a negative fact. */\nexport type SourceCapability =\n | 'calls'\n | 'containment'\n | 'declarations'\n | 'documentation'\n | 'exports'\n | 'extends'\n | 'implements'\n | 'imports'\n | 'signatures'\n | 'source-locations'\n | 'visibility';\n\nexport interface SourceCapabilityReport {\n readonly analyzerId: string;\n readonly available: readonly SourceCapability[];\n readonly projectId: string;\n}\n\nexport type SourceNodeKind = 'project' | 'package' | 'directory' | 'file' | SourceDeclarationKind;\nexport type SourceRelationKind =\n 'contains' | 'declares-in' | 'exports' | 'extends' | 'implements' | 'imports';\n\n/*** Factual node data with a stable semantic key independent from its dense local ID. */\nexport interface SourceNodeData {\n readonly analyzerId?: string;\n readonly kind: SourceNodeKind;\n readonly semanticPath: string;\n readonly name: string;\n readonly projectId: string;\n readonly filePath?: string;\n readonly path?: string;\n readonly packageName?: string;\n readonly classification?: 'intrinsic' | 'unknown' | 'vendor';\n readonly location?: SourceLocation;\n readonly visibility?: SourceVisibility;\n readonly modifiers?: readonly string[];\n readonly signature?: string;\n readonly documentation?: SourceDocumentation;\n readonly typeOnly?: boolean;\n}\n\n/*** Evidence for one observed relationship, including analyzer provenance. */\nexport interface SourceRelationEvidence {\n readonly analyzerId: string;\n readonly sourcePath: string;\n readonly location?: SourceLocation;\n readonly specifier?: string;\n readonly typeOnly?: boolean;\n readonly declarations?: readonly DependencyDeclaration[];\n}\n\nexport interface SourceEdgeData {\n readonly kind: SourceRelationKind;\n readonly evidence: readonly SourceRelationEvidence[];\n}\n\n/*** Compact serializable source graph; its indexes and rollups are derived separately. */\nexport interface SourceGraph {\n readonly version: 1;\n readonly graph: Graph<SourceNodeData, SourceEdgeData, number, number>;\n readonly capabilities: readonly SourceCapabilityReport[];\n}\n\nexport interface SourceNodeDraft {\n readonly data: SourceNodeData;\n}\n\nexport interface SourceEdgeDraft {\n readonly source: string;\n readonly target: string;\n readonly data: SourceEdgeData;\n}\n\nexport interface SourceGraphDraft {\n readonly nodes: readonly SourceNodeDraft[];\n readonly edges: readonly SourceEdgeDraft[];\n readonly capabilities: readonly SourceCapabilityReport[];\n}\n\n/*** Parsed source fact associated with a project-relative path. */\nexport interface SourceAnalyzedFile {\n readonly analyzerId: string;\n readonly facts: SourceFileFacts;\n readonly path: string;\n readonly projectId: string;\n readonly declaredDependencies?: Readonly<Record<string, readonly DependencyDeclaration[]>>;\n}\n\nexport interface SourceInspectionProjectInput {\n readonly id: string;\n readonly inspection: ProjectInspection;\n}\n\nexport interface CreateSourceGraphFromInspectionsInput {\n readonly projects: readonly SourceInspectionProjectInput[];\n readonly signal?: AbortSignal;\n}\n\nexport interface CreateSourceGraphInput {\n readonly projects: readonly { readonly id: string; readonly rootPath: string }[];\n readonly signal?: AbortSignal;\n}\n\n/*** Indexed semantic access built from a serializable source graph snapshot. */\nexport interface SourceGraphIndex {\n readonly nodeById: ReadonlyMap<number, GraphNode<SourceNodeData, number>>;\n readonly nodeBySemanticPath: ReadonlyMap<string, GraphNode<SourceNodeData, number>>;\n readonly fileByPath: ReadonlyMap<string, GraphNode<SourceNodeData, number>>;\n readonly symbolsByFileAndName: ReadonlyMap<string, readonly GraphNode<SourceNodeData, number>[]>;\n readonly incomingByNodeId: ReadonlyMap<\n number,\n readonly GraphEdge<SourceEdgeData, number, number>[]\n >;\n readonly outgoingByNodeId: ReadonlyMap<\n number,\n readonly GraphEdge<SourceEdgeData, number, number>[]\n >;\n readonly parentByNodeId: ReadonlyMap<number, number>;\n}\n\n/*** Semantic relation view with source evidence and no required ID lookup. */\nexport interface SourceRelationView {\n readonly edgeId: number;\n readonly kind: SourceRelationKind;\n readonly source: SourceNodeData;\n readonly target: SourceNodeData;\n readonly evidence: readonly SourceRelationEvidence[];\n}\n\n/*** Pairwise projected dependency with references to canonical observed edges. */\nexport interface SourceRollupEdge {\n readonly source: number;\n readonly target: number;\n readonly sourceSemanticPath: string;\n readonly targetSemanticPath: string;\n readonly weight: number;\n readonly evidenceEdgeIds: readonly number[];\n}\n\n/*** Cached semantic queries for one deterministic projection level. */\nexport interface SourceRollupIndex {\n readonly byPair: ReadonlyMap<string, SourceRollupEdge>;\n readonly outgoingBySource: ReadonlyMap<string, readonly SourceRollupEdge[]>;\n}\n\nexport interface SourceNodeSummary {\n readonly nodeId: number;\n readonly descendants: Readonly<Partial<Record<SourceNodeKind, number>>>;\n readonly exports: Readonly<{ readonly runtime: number; readonly typeOnly: number }>;\n readonly incomingRelations: number;\n readonly outgoingRelations: number;\n readonly dependencies: Readonly<Record<'intrinsic' | 'unknown' | 'vendor', number>>;\n}\nimport type { Graph, GraphEdge, GraphNode } from '@ankhorage/graph';\nimport type { ProjectInspection } from '@ankhorage/project-detector/types';\n\nimport type { DependencyDeclaration } from './dependencyGraph.js';\n"]}
1
+ {"version":3,"file":"sourceGraph.js","sourceRoot":"","sources":["../../src/types/sourceGraph.ts"],"names":[],"mappings":"","sourcesContent":["/*** A portable one-based source span emitted by a language analyzer. */\nexport interface SourceLocation {\n readonly column: number;\n readonly endColumn: number;\n readonly endLine: number;\n readonly line: number;\n}\n\n/*** Analyzer-observed source documentation, distinct from consumer interpretation. */\nexport interface SourceDocumentation {\n readonly text: string;\n readonly tags: Readonly<Record<string, readonly string[]>>;\n}\n\ntype SourceDeclarationKind =\n 'class' | 'constant' | 'enum' | 'function' | 'interface' | 'method' | 'type' | 'variable';\n\nexport type SourceVisibility = 'package' | 'private' | 'protected' | 'public';\n\n/*** A source declaration before graph-wide identity and relationship resolution. */\nexport interface SourceDeclarationFact {\n readonly children: readonly SourceDeclarationFact[];\n readonly documentation?: SourceDocumentation;\n readonly exported?: boolean;\n readonly typeOnly?: boolean;\n readonly extends: readonly string[];\n readonly implements: readonly string[];\n readonly kind: SourceDeclarationKind;\n readonly location: SourceLocation;\n readonly modifiers: readonly string[];\n readonly name: string;\n readonly signature?: string;\n readonly visibility: SourceVisibility;\n}\n\n/*** An import observed at an exact source position. */\nexport interface SourceImportFact {\n readonly kind?: 'import' | 'reexport';\n readonly local?: boolean;\n readonly location?: SourceLocation;\n readonly specifier: string;\n readonly resolvedPath?: string;\n readonly typeOnly?: boolean;\n}\n\n/*** Portable facts extracted from one source file by its language analyzer. */\nexport interface SourceFileFacts {\n readonly declarations: readonly SourceDeclarationFact[];\n readonly imports: readonly SourceImportFact[];\n readonly packageName?: string;\n}\n\n/*** Analyzer capabilities whose absence must not be interpreted as a negative fact. */\nexport type SourceCapability =\n | 'calls'\n | 'containment'\n | 'declarations'\n | 'documentation'\n | 'exports'\n | 'extends'\n | 'implements'\n | 'imports'\n | 'signatures'\n | 'source-locations'\n | 'visibility';\n\nexport interface SourceCapabilityReport {\n readonly analyzerId: string;\n readonly available: readonly SourceCapability[];\n readonly projectId: string;\n}\n\nexport type SourceNodeKind = 'project' | 'package' | 'directory' | 'file' | SourceDeclarationKind;\nexport type SourceRelationKind =\n 'contains' | 'declares-in' | 'exports' | 'extends' | 'implements' | 'imports';\n\n/*** Factual node data with a stable semantic key independent from its dense local ID. */\nexport interface SourceNodeData {\n readonly analyzerId?: string;\n readonly kind: SourceNodeKind;\n readonly semanticPath: string;\n readonly name: string;\n readonly projectId: string;\n readonly filePath?: string;\n readonly path?: string;\n readonly packageName?: string;\n readonly classification?: 'intrinsic' | 'unknown' | 'vendor';\n readonly location?: SourceLocation;\n readonly visibility?: SourceVisibility;\n readonly modifiers?: readonly string[];\n readonly signature?: string;\n readonly documentation?: SourceDocumentation;\n readonly typeOnly?: boolean;\n}\n\n/*** Evidence for one observed relationship, including analyzer provenance. */\nexport interface SourceRelationEvidence {\n readonly analyzerId: string;\n readonly sourcePath: string;\n readonly location?: SourceLocation;\n readonly specifier?: string;\n readonly typeOnly?: boolean;\n readonly declarations?: readonly DependencyDeclaration[];\n}\n\nexport interface SourceEdgeData {\n readonly kind: SourceRelationKind;\n readonly evidence: readonly SourceRelationEvidence[];\n}\n\n/*** Compact serializable source graph; its indexes and rollups are derived separately. */\nexport interface SourceGraph {\n readonly version: 1;\n readonly graph: Graph<SourceNodeData, SourceEdgeData, number, number>;\n readonly capabilities: readonly SourceCapabilityReport[];\n}\n\nexport interface SourceNodeDraft {\n readonly data: SourceNodeData;\n}\n\nexport interface SourceEdgeDraft {\n readonly source: string;\n readonly target: string;\n readonly data: SourceEdgeData;\n}\n\nexport interface SourceGraphDraft {\n readonly nodes: readonly SourceNodeDraft[];\n readonly edges: readonly SourceEdgeDraft[];\n readonly capabilities: readonly SourceCapabilityReport[];\n}\n\n/*** Parsed source fact associated with a project-relative path. */\nexport interface SourceAnalyzedFile {\n readonly analyzerId: string;\n readonly facts: SourceFileFacts;\n readonly path: string;\n readonly projectId: string;\n readonly declaredDependencies?: Readonly<Record<string, readonly DependencyDeclaration[]>>;\n}\n\nexport interface SourceInspectionProjectInput {\n readonly id: string;\n readonly inspection: ProjectInspection;\n}\n\nexport interface CreateSourceGraphFromInspectionsInput {\n readonly projects: readonly SourceInspectionProjectInput[];\n readonly signal?: AbortSignal;\n}\n\nexport interface CreateSourceGraphInput {\n readonly projects: readonly { readonly id: string; readonly rootPath: string }[];\n readonly signal?: AbortSignal;\n}\n\n/*** Indexed semantic access built from a serializable source graph snapshot. */\nexport interface SourceGraphIndex {\n readonly nodeById: ReadonlyMap<number, GraphNode<SourceNodeData, number>>;\n readonly nodeBySemanticPath: ReadonlyMap<string, GraphNode<SourceNodeData, number>>;\n readonly fileByPath: ReadonlyMap<string, GraphNode<SourceNodeData, number>>;\n readonly symbolsByFileAndName: ReadonlyMap<string, readonly GraphNode<SourceNodeData, number>[]>;\n readonly incomingByNodeId: ReadonlyMap<\n number,\n readonly GraphEdge<SourceEdgeData, number, number>[]\n >;\n readonly outgoingByNodeId: ReadonlyMap<\n number,\n readonly GraphEdge<SourceEdgeData, number, number>[]\n >;\n readonly parentByNodeId: ReadonlyMap<number, number>;\n}\n\n/*** Semantic relation view with source evidence and no required ID lookup. */\nexport interface SourceRelationView {\n readonly edgeId: number;\n readonly kind: SourceRelationKind;\n readonly source: SourceNodeData;\n readonly target: SourceNodeData;\n readonly evidence: readonly SourceRelationEvidence[];\n}\n\n/*** Pairwise projected dependency with references to canonical observed edges. */\nexport interface SourceRollupEdge {\n readonly source: number;\n readonly target: number;\n readonly sourceSemanticPath: string;\n readonly targetSemanticPath: string;\n readonly weight: number;\n readonly evidenceEdgeIds: readonly number[];\n}\n\n/*** Cached semantic queries for one deterministic projection level. */\nexport interface SourceRollupIndex {\n readonly byPair: ReadonlyMap<string, SourceRollupEdge>;\n readonly outgoingBySource: ReadonlyMap<string, readonly SourceRollupEdge[]>;\n}\n\nexport interface SourceNodeSummary {\n readonly nodeId: number;\n readonly descendants: Readonly<Partial<Record<SourceNodeKind, number>>>;\n readonly exports: Readonly<{ readonly runtime: number; readonly typeOnly: number }>;\n readonly incomingRelations: number;\n readonly outgoingRelations: number;\n readonly dependencies: Readonly<Record<'intrinsic' | 'unknown' | 'vendor', number>>;\n}\n\n/*** One declaration-backed feature identity scoped to its analyzed project. */\nexport interface SourceFeature {\n readonly id: string;\n readonly name: string;\n readonly projectId: string;\n readonly members: readonly SourceFeatureMember[];\n}\n\n/*** A declared component or module member with its canonical source evidence. */\nexport interface SourceFeatureMember {\n readonly analyzerId: string;\n readonly evidence: SourceLocation;\n readonly filePath: string;\n readonly semanticPath: string;\n}\n\n/*** One analyzer's ability to discover explicit feature declarations in a project snapshot. */\nexport interface SourceFeatureCapability {\n readonly analyzerId: string;\n readonly projectId: string;\n readonly state: 'available' | 'unavailable';\n}\n\n/*** Invalid explicit feature metadata retained without manufacturing a feature. */\nexport interface SourceFeatureDiagnostic {\n readonly analyzerId: string;\n readonly filePath: string;\n readonly location: SourceLocation;\n readonly message: string;\n readonly projectId: string;\n readonly semanticPath: string;\n}\n\n/*** Portable feature projection derived once from canonical SourceGraph evidence. */\nexport interface SourceFeatureProjection {\n readonly capabilities: readonly SourceFeatureCapability[];\n readonly diagnostics: readonly SourceFeatureDiagnostic[];\n readonly features: readonly SourceFeature[];\n readonly version: 1;\n}\n\n/*** Derived lookup structures for bounded feature interaction without graph rescans. */\nexport interface SourceFeatureProjectionIndex {\n readonly featureById: ReadonlyMap<string, SourceFeature>;\n readonly featureOffsetById: ReadonlyMap<string, number>;\n readonly memberOffsetByFeatureId: ReadonlyMap<string, ReadonlyMap<string, number>>;\n readonly projection: SourceFeatureProjection;\n}\n\n/*** A deterministic bounded page returned by feature and member queries. */\nexport interface SourceFeaturePage<T> {\n readonly items: readonly T[];\n readonly nextCursor?: string;\n}\nimport type { Graph, GraphEdge, GraphNode } from '@ankhorage/graph';\nimport type { ProjectInspection } from '@ankhorage/project-detector/types';\n\nimport type { DependencyDeclaration } from './dependencyGraph.js';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/dependency-graph",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "description": "Project-aware dependency analysis that produces canonical Ankhorage graphs.",
6
6
  "license": "MIT",