MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / looksLikeAdvisoryQuestion

Function looksLikeAdvisoryQuestion

src/agent/preflight-gate.ts:56–63  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

54 * writing an unsolicited DESIGN.md. A build imperative ("build…", "بساز") overrides this.
55 */
56export function looksLikeAdvisoryQuestion(prompt: string): boolean {
57 if (!prompt) return false;
58 const p = prompt.toLowerCase();
59 if (BUILD_IMPERATIVES.some(v => p.includes(v))) return false;
60 const isQuestion = /[?؟]/.test(prompt);
61 const hasMarker = ADVISORY_MARKERS.some(m => p.includes(m));
62 return isQuestion || hasMarker;
63}
64
65/**
66 * Does this user request look like a build/refactor that deserves a plan first?

Callers 2

looksLikeBuildTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected