MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / indexLimits

Function indexLimits

graph-ui/src/twin/render-model.ts:1136–1168  ·  view source on GitHub ↗

* Where this index stops, as a list a reader can count. * * Three kinds, and the difference between them is the whole value of the block: * a family this build did not answer for this symbol is a gap somebody could * close by indexing again; something the engine does not record for anybody is a

(ir: SemanticIR, facets: ReadonlySet<Facet>)

Source from the content-addressed store, hash-verified

1134 * sentence above it.
1135 */
1136function indexLimits(ir: SemanticIR, facets: ReadonlySet<Facet>): TwinLimit[] {
1137 const limits: TwinLimit[] = [];
1138 const families: { key: string; subject: string; state: KnowledgeState }[] = [
1139 { key: 'purpose', subject: SUBJECT_PURPOSE, state: ir.purpose.state },
1140 { key: 'steps', subject: SUBJECT_STEPS, state: ir.steps.state },
1141 { key: 'callers', subject: SUBJECT_CALLERS, state: ir.calledBy.state },
1142 { key: 'state', subject: SUBJECT_STATE, state: ir.reads.state },
1143 { key: 'errors', subject: SUBJECT_ERRORS, state: ir.throws.state },
1144 { key: 'effects', subject: SUBJECT_EFFECTS, state: ir.externalEffects.state },
1145 { key: 'tests', subject: SUBJECT_TESTS, state: ir.tests.state }
1146 ];
1147 for (const family of families) {
1148 const sentence = absenceSentence(family.state, family.subject);
1149 if (sentence.length > 0) {
1150 limits.push({ id: `limit-${family.key}`, kind: 'state', text: limitOfFamily(family.subject, sentence) });
1151 }
1152 }
1153 for (const [index, sentence] of [
1154 LIMIT_NO_TEST_RELATION,
1155 LIMIT_NO_HANDLER_SITES,
1156 LIMIT_NO_ROUTES,
1157 LIMIT_CALLS_DEDUPLICATED
1158 ].entries()) {
1159 limits.push({ id: `limit-engine-${index}`, kind: 'engine', text: sentence });
1160 }
1161 for (const spec of PLACEHOLDER_SECTIONS) {
1162 if (facets.has(spec.facet)) {
1163 limits.push({ id: `limit-lens-${spec.name}`, kind: 'engine', text: spec.sentence });
1164 }
1165 }
1166 limits.push({ id: 'limit-generation', kind: 'generation', text: limitGeneration(ir.generation) });
1167 return limits;
1168}
1169
1170function architect(ir: SemanticIR, presentation: ResolvedPresentation): TwinViewModel {
1171 const facets = presentation.facets;

Callers 1

architectFunction · 0.85

Calls 4

absenceSentenceFunction · 0.90
limitOfFamilyFunction · 0.90
limitGenerationFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected