mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
feat: Call resolvePromptInput on the --system-prompt received on the CLI argument. This is needed to support file paths on the prompt (#287)
This commit is contained in:
@@ -22,7 +22,7 @@ const toolDescriptions: Record<ToolName, string> = {
|
||||
};
|
||||
|
||||
/** Resolve input as file path or literal string */
|
||||
function resolvePromptInput(input: string | undefined, description: string): string | undefined {
|
||||
export function resolvePromptInput(input: string | undefined, description: string): string | undefined {
|
||||
if (!input) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user