orstrum_get_imports
Returns all outbound import edges from a file with the resolved target note, imported symbols, and cross-repo flags.
Input
path requiredstring
File path. Absolute, cwd-relative,
repo/relPath shorthand, or repo/relPath.md note form.Output
note: "api-service/src/api/auth",
imports: [
specifier: "../lib/jwt",
symbols: ["verifyJwt", "JwtPayload"],
isLocal: true,
isCrossRepo: false,
packageName: null,
resolvedNote: "api-service/src/lib/jwt"
,
specifier: "@supabase/supabase-js",
symbols: ["createClient"],
isLocal: false,
isCrossRepo: false,
packageName: "@supabase/supabase-js",
resolvedNote: null
]
resolvedNote is the target file's note path when the import resolves to a file in
the scan set; it is null for external packages and imports that couldn't be
resolved. packageName is set for external (npm) imports.
isCrossRepo is true when the edge crosses from one indexed
repo into another.