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

Function isLocalFilePath

packages/codex-native-api/src/codex_app_client.ts:3441–3453  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3439}
3440
3441function isLocalFilePath(value) {
3442 const normalized = String(value ?? '').trim();
3443 if (!normalized) {
3444 return false;
3445 }
3446 if (/^(?:https?:)?\/\//iu.test(normalized)) {
3447 return false;
3448 }
3449 if (/^data:/iu.test(normalized)) {
3450 return false;
3451 }
3452 return path.isAbsolute(normalized);
3453}
3454
3455function extractAllAssistantVisibleText(turn) {
3456 return turn.items

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected