MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / isLocalFilePath

Function isLocalFilePath

src/providers/codex/app_client.ts:3808–3820  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3806}
3807
3808function isLocalFilePath(value) {
3809 const normalized = String(value ?? '').trim();
3810 if (!normalized) {
3811 return false;
3812 }
3813 if (/^(?:https?:)?\/\//iu.test(normalized)) {
3814 return false;
3815 }
3816 if (/^data:/iu.test(normalized)) {
3817 return false;
3818 }
3819 return path.isAbsolute(normalized);
3820}
3821
3822function extractAllAssistantVisibleText(turn) {
3823 return turn.items

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected