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

Function extractAttachedDir

src/agent/attached-dir.ts:12–16  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

10const ATTACHED_DIR_RE = /\[Attached directory:\s*([^\]]+?)\s*\]/;
11
12export function extractAttachedDir(prompt: string): string | null {
13 if (!prompt) return null;
14 const m = prompt.match(ATTACHED_DIR_RE);
15 return m ? m[1]!.trim() : null;
16}

Callers 2

buildInitialMessagesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected