Function: resolveNativeCommands()¶
resolveNativeCommands(
ast,sourceFile,localPath?,options?):Promise\<Program>
Defined in: resolver/src/skills.ts:1305
Auto-discover command .md files from local and universal directories and inject them into the
Parameters¶
ast¶
The resolved AST
sourceFile¶
string
The source file path
localPath?¶
string
Path to local .promptscript directory
options?¶
Skill resolution options (reuses universalDir and logger)
Returns¶
Promise\<Program>
Updated AST with discovered commands
Shortcuts¶
block.
Scans .promptscript/commands/ and optionally .agents/commands/ for .md files. Each file becomes a shortcut entry with the filename as command name. Explicitly declared shortcuts in .prs files take precedence.