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

Function isStructuralPrompt

src/directory.ts:508–510  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

506 * non-candidate prompt ("fix this typo", in any language) stays a zero-cost no-op.
507 */
508export function isStructuralPrompt(prompt: string): boolean {
509 return hasStructuralKeyword(prompt) || extractCodeTokens(prompt).length > 0;
510}
511
512/**
513 * What the front-load hook should do for a prompt issued from a directory.

Callers 1

Calls 2

hasStructuralKeywordFunction · 0.85
extractCodeTokensFunction · 0.85

Tested by

no test coverage detected