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

Method stampIndexedFrameworks

src/index.ts:1071–1079  ·  view source on GitHub ↗

Record the frameworks a full index extracted every file with; none has come or gone since.

()

Source from the content-addressed store, hash-verified

1069
1070 /** Record the frameworks a full index extracted every file with; none has come or gone since. */
1071 private stampIndexedFrameworks(): void {
1072 const names = this.orchestrator.getDetectedFrameworkNames();
1073 if (names === null) return;
1074 try {
1075 this.queries.setMetadata(FRAMEWORKS_AT_INDEX_KEY, JSON.stringify([...names].sort()));
1076 this.queries.setMetadata(FRAMEWORKS_SINCE_INDEX_KEY, '');
1077 this.queries.setMetadata(RESOLVER_FRAMEWORKS_AT_INDEX_KEY, JSON.stringify([...this.resolver.getDetectedFrameworks()].sort()));
1078 } catch { /* metadata is advisory */ }
1079 }
1080
1081 /**
1082 * A sync detected frameworks again because what detection read had changed

Callers 1

indexAllMethod · 0.95

Calls 3

setMetadataMethod · 0.80
getDetectedFrameworksMethod · 0.45

Tested by

no test coverage detected