mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 02:01:29 +00: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:
parent
c57ed89110
commit
35ebe88870
2 changed files with 11 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue