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

Function galaxyExamples

graph-ui/src/browser-ai/question-intent.ts:148–153  ·  view source on GitHub ↗

Questions that suit the selected kind: "What does JSONBAgg call?" led a class to "no CALLS edge" (W9).

(text: typeof noQuestionText['en'], name: string, evidence?: GalaxyEvidence)

Source from the content-addressed store, hash-verified

146const CONTAINER_KINDS = new Set(['file', 'folder', 'module', 'package', 'namespace', 'project']);
147/** Questions that suit the selected kind: "What does JSONBAgg call?" led a class to "no CALLS edge" (W9). */
148function galaxyExamples(text: typeof noQuestionText['en'], name: string, evidence?: GalaxyEvidence): string[] {
149 const kind = (evidence && evidence.rootCount <= 1 ? evidence.roots[0]?.kind ?? evidence.selectionKind : evidence?.selectionKind)?.toLowerCase() ?? '';
150 if (TYPE_KINDS.has(kind)) return [text.whatIs(name), text.whoUses(name), ...evidence?.relationships.outgoing.some(group => group.type === 'INHERITS') ? [text.whatInherits(name)] : []];
151 if (CONTAINER_KINDS.has(kind)) return [text.whatContains(name), text.inDetail(name)];
152 return [text.whatDoes(name), text.whoCalls(name), text.whatCalls(name)];
153}
154
155/** Two or three questions that work for the selection, as a Markdown list. */
156function examples(language: 'en' | 'de', subject: ExampleSubject): string {

Callers 1

examplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected