orstrum_get_exports
Returns all exported symbols from a file with their kind and a compact signature extracted from the parsed AST.
Input
path requiredstring
File path. Absolute, cwd-relative,
repo/relPath shorthand, or repo/relPath.md note form.Output
note: "api-service/src/lib/jwt",
exports: [
name: "verifyJwt",
kind: "function",
signature: "(token: string) => Promise<JwtPayload>"
,
name: "JwtPayload",
kind: "type",
signature: null
]
Export kinds
Possible values for kind, across all languages:
function— TS/JS and Pythonclass— TS/JS and Pythonvariable— TS/JS and Pythontype— TypeScript onlyinterface— TypeScript onlyenum— TypeScript onlynamespace— TypeScript onlyreexport— a symbol re-exported from another module; TS/JS onlydefault— the module's default export; TS/JS only
Signatures are extracted directly from the parsed AST (ts-morph for TypeScript/JavaScript, tree-sitter for Python), so they reflect the declared symbols rather than a regex over the source.
Python files
Python has no export keyword, so the public surface is reconstructed from
module scope: top-level def, class, and assignments,
filtered by __all__ when it is declared as a literal and by the
leading-underscore convention otherwise. Signatures are parameter names only.
note: "Trading-Scripts/strategy/live_runner",
exports: [
name: "LiveRunner",
kind: "class",
signature: "class"
,
name: "run_live",
kind: "function",
signature: "async (symbol, config)"
]
See Language support for the full rules,
including how __all__ is interpreted.