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

Function isInside

scripts/check-codex-native-api-boundary.mjs:50–53  ·  view source on GitHub ↗
(child, parent)

Source from the content-addressed store, hash-verified

48}
49
50function isInside(child, parent) {
51 const relative = path.relative(parent, child);
52 return relative === '' || (!relative.startsWith('..') && !path.isAbsolute(relative));
53}
54
55function resolveRelativeImport(fromFile, specifier) {
56 const resolved = path.resolve(path.dirname(fromFile), specifier);

Calls

no outgoing calls

Tested by

no test coverage detected