MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stampWorkspaceManifests

Method stampWorkspaceManifests

src/index.ts:1061–1068  ·  view source on GitHub ↗

* Record where the last walk found the package manifests, with what git's * listings said then (see ManifestStamp), so a sync that sees the same can * read them without walking the tree. '' when there is nothing to trust.

(evidence: ReturnType<ExtractionOrchestrator['takeManifestEvidence']>)

Source from the content-addressed store, hash-verified

1059 * read them without walking the tree. '' when there is nothing to trust.
1060 */
1061 private stampWorkspaceManifests(evidence: ReturnType<ExtractionOrchestrator['takeManifestEvidence']>): void {
1062 try {
1063 const discovery = this.resolver.getWorkspaceDiscovery();
1064 const stamp = discovery ? engine().manifestStamp(evidence, discovery) : null;
1065 const value = stamp ? JSON.stringify(stamp) : '';
1066 if (this.queries.getMetadata(WORKSPACE_MANIFESTS_METADATA_KEY) !== value) this.queries.setMetadata(WORKSPACE_MANIFESTS_METADATA_KEY, value);
1067 } catch { /* metadata is advisory */ }
1068 }
1069
1070 /** Record the frameworks a full index extracted every file with; none has come or gone since. */
1071 private stampIndexedFrameworks(): void {

Callers 2

indexAllMethod · 0.95
syncMethod · 0.95

Calls 4

engineFunction · 0.90
getWorkspaceDiscoveryMethod · 0.80
getMetadataMethod · 0.80
setMetadataMethod · 0.80

Tested by

no test coverage detected