mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
parent
1f9e846c84
commit
f4e9ca7466
1 changed files with 1 additions and 12 deletions
|
|
@ -36,14 +36,7 @@ export function buildSystemPrompt(options: BuildSystemPromptOptions): string {
|
|||
contextFiles: providedContextFiles,
|
||||
skills: providedSkills,
|
||||
} = options;
|
||||
const resolvedCwd = cwd;
|
||||
const promptCwd = resolvedCwd.replace(/\\/g, "/");
|
||||
|
||||
const now = new Date();
|
||||
const year = now.getFullYear();
|
||||
const month = String(now.getMonth() + 1).padStart(2, "0");
|
||||
const day = String(now.getDate()).padStart(2, "0");
|
||||
const date = `${year}-${month}-${day}`;
|
||||
const promptCwd = cwd.replace(/\\/g, "/");
|
||||
|
||||
const appendSection = appendSystemPrompt ? `\n\n${appendSystemPrompt}` : "";
|
||||
|
||||
|
|
@ -73,8 +66,6 @@ export function buildSystemPrompt(options: BuildSystemPromptOptions): string {
|
|||
prompt += formatSkillsForPrompt(skills);
|
||||
}
|
||||
|
||||
// Add date and working directory last
|
||||
prompt += `\nCurrent date: ${date}`;
|
||||
prompt += `\nCurrent working directory: ${promptCwd}`;
|
||||
|
||||
return prompt;
|
||||
|
|
@ -165,8 +156,6 @@ Pi documentation (read only when the user asks about pi itself, its SDK, extensi
|
|||
prompt += formatSkillsForPrompt(skills);
|
||||
}
|
||||
|
||||
// Add date and working directory last
|
||||
prompt += `\nCurrent date: ${date}`;
|
||||
prompt += `\nCurrent working directory: ${promptCwd}`;
|
||||
|
||||
return prompt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue