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

Function isTypeChunk

src/orchestration/context-injection.ts:57–61  ·  view source on GitHub ↗

Is this chunk a type-like declaration worth pulling as a dependency?

(symbol: string | undefined, file: string)

Source from the content-addressed store, hash-verified

55
56/** Is this chunk a type-like declaration worth pulling as a dependency? */
57function isTypeChunk(symbol: string | undefined, file: string): boolean {
58 if (TYPE_FILE_RE.test(file)) return true;
59 if (!symbol) return false;
60 return TYPE_SYMBOL_RE.test(symbol) || /Props|Type|Interface|Schema|Options|Config|State/.test(symbol);
61}
62
63/** Extract just the signature (declaration line through the opening brace) of a chunk. */
64function signatureOf(text: string): string {

Callers 1

buildTaskContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected