From 9ef4818c021900dc1452985fa52d9d589bee5c32 Mon Sep 17 00:00:00 2001 From: Senko Rasic Date: Sat, 10 Feb 2024 17:39:34 -0800 Subject: [PATCH] small tweaks and fixes --- pilot/prompts/architecture/technologies.prompt | 2 +- pilot/prompts/development/implement_changes.prompt | 2 +- pilot/prompts/development/parse_task.prompt | 13 +++++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pilot/prompts/architecture/technologies.prompt b/pilot/prompts/architecture/technologies.prompt index 1e87a607ce..64f097ac26 100644 --- a/pilot/prompts/architecture/technologies.prompt +++ b/pilot/prompts/architecture/technologies.prompt @@ -21,7 +21,7 @@ Based on these details, think step by step to design the architecture for the pr * If a dependency (such as database) has a cloud alternative or can be installed on another computer (ie. isn't required on this computer), you must mark it as `required_locally: false` Output only your response in JSON format like in this example, without other commentary: -``` +```json { "architecture": "Detailed description of the architecture of the application", "system_dependencies": [ diff --git a/pilot/prompts/development/implement_changes.prompt b/pilot/prompts/development/implement_changes.prompt index 52806eebe8..ed8e2ce831 100644 --- a/pilot/prompts/development/implement_changes.prompt +++ b/pilot/prompts/development/implement_changes.prompt @@ -14,6 +14,6 @@ the full contents of the updated file, without skipping over any content ``` ------------------------end_of_format--------------------------- -**IMPORTANT**: Your reply MUST NOT omit any code in the new implementation or substitute anything with comments like `// .. rest of the code goes here ..` or `# insert existing code here`, because I will overwrite the existing file with the content you provide. Output ONLY the content for this file, without additional explanation. Your output MUST start with ``` and MUST end with ``` and include only the complete file contents. +**IMPORTANT**: Your reply MUST NOT omit any code in the new implementation or substitute anything with comments like `// .. rest of the code goes here ..` or `# insert existing code here`, because I will overwrite the existing file with the content you provide. Output ONLY the content for this file, without additional explanation, suggestions or notes. Your output MUST start with ``` and MUST end with ``` and include only the complete file contents. {{ logs_and_error_handling }} diff --git a/pilot/prompts/development/parse_task.prompt b/pilot/prompts/development/parse_task.prompt index 99b199a6df..f4e41e2632 100644 --- a/pilot/prompts/development/parse_task.prompt +++ b/pilot/prompts/development/parse_task.prompt @@ -26,7 +26,7 @@ Examples: "type": "modify_file", "modify_file": { "name": "server.js", - "path": "/server.ejs", + "path": "/server.js", "code_change_description": "Update code to use port from environment instead of hardcoding it.\nReplace this line:\nconst port = 3001;\nwith\nconst port = process.env.PORT || 3001;\n", }, }, @@ -34,7 +34,7 @@ Examples: "type": "modify_file", "modify_file": { "name": "server.js", - "path": "/server.ejs", + "path": "/server.js", "code_change_description": "Within findByEmail() method of User model, replace `return await User.find({email});` with a try/catch block:\ntry\n{ return await User.find({email});\n} catch (err)\n{ return null; }\n", }, }, @@ -45,6 +45,15 @@ Examples: "path": "/README.md", "content": "# Example Readme\n\nThis is an example readme for the example project.\n\nThanks to everyone who contributes to this repository!\n" } + }, + { + "type": "command", + "command": { + "command": "ls", + "timeout": "5000", + "success_message": "README.md", + "command_id": "check_existence_of_readme_file" + } } ] }