kopipasta 0.16.0__tar.gz → 0.17.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of kopipasta might be problematic. Click here for more details.
- {kopipasta-0.16.0/kopipasta.egg-info → kopipasta-0.17.0}/PKG-INFO +1 -1
- {kopipasta-0.16.0 → kopipasta-0.17.0}/kopipasta/main.py +25 -4
- {kopipasta-0.16.0 → kopipasta-0.17.0/kopipasta.egg-info}/PKG-INFO +1 -1
- {kopipasta-0.16.0 → kopipasta-0.17.0}/setup.py +1 -1
- {kopipasta-0.16.0 → kopipasta-0.17.0}/LICENSE +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/MANIFEST.in +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/README.md +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/kopipasta/__init__.py +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/kopipasta.egg-info/SOURCES.txt +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/kopipasta.egg-info/dependency_links.txt +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/kopipasta.egg-info/entry_points.txt +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/kopipasta.egg-info/requires.txt +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/kopipasta.egg-info/top_level.txt +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/requirements.txt +0 -0
- {kopipasta-0.16.0 → kopipasta-0.17.0}/setup.cfg +0 -0
|
@@ -706,15 +706,36 @@ def generate_prompt(files_to_include: List[FileTuple], ignore_patterns: List[str
|
|
|
706
706
|
prompt += "## Task Instructions\n\n"
|
|
707
707
|
task_instructions = input("Enter the task instructions: ")
|
|
708
708
|
prompt += f"{task_instructions}\n\n"
|
|
709
|
-
prompt += "##
|
|
709
|
+
prompt += "## Instructions for Achieving the Task\n\n"
|
|
710
710
|
analysis_text = (
|
|
711
|
-
"
|
|
712
|
-
"
|
|
713
|
-
"
|
|
711
|
+
"1. **Confirm and Understand the Task**:\n"
|
|
712
|
+
" - Rephrase the task in your own words to ensure understanding.\n"
|
|
713
|
+
" - Ask for any necessary clarifications.\n"
|
|
714
|
+
" - Once everything is clear, ask to proceed.\n\n"
|
|
715
|
+
"2. **Outline a Plan**:\n"
|
|
716
|
+
" - Provide a brief plan on how to approach the task.\n"
|
|
717
|
+
" - Make minimal incremental changes to maintain a working codebase at each step.\n"
|
|
718
|
+
" - This is an iterative process aimed at achieving the task step by step.\n\n"
|
|
719
|
+
"3. **Implement Changes Iteratively**:\n"
|
|
720
|
+
" - Apply changes in small, manageable increments.\n"
|
|
721
|
+
" - Ensure the codebase remains functional after each change.\n"
|
|
722
|
+
" - After each increment, verify stability before proceeding to the next step.\n\n"
|
|
723
|
+
"4. **Present Code Changes Clearly**:\n"
|
|
724
|
+
" - Specify the file being modified at the beginning of each code block.\n"
|
|
725
|
+
" - Format changes for clarity:\n"
|
|
726
|
+
" - For small changes: Show only the changed lines with clear comments.\n"
|
|
727
|
+
" - For larger changes: Provide the full new implementation of changed parts, using placeholders like `'// ... (rest of the function)'` for unchanged code.\n"
|
|
728
|
+
" - Provide context by including important unchanged parts as needed.\n"
|
|
729
|
+
" - Use clear comments to explain the changes and reference old code if helpful.\n\n"
|
|
730
|
+
"5. **Encourage User Testing and Collaboration**:\n"
|
|
731
|
+
" - Ask the user to test the code on their machine after each change.\n"
|
|
732
|
+
" - If debugging is needed, include debugging messages in the code.\n"
|
|
733
|
+
" - Request the user to share any error messages or outputs from debugging to assist further.\n"
|
|
714
734
|
)
|
|
715
735
|
prompt += analysis_text
|
|
716
736
|
return prompt
|
|
717
737
|
|
|
738
|
+
|
|
718
739
|
def main():
|
|
719
740
|
parser = argparse.ArgumentParser(description="Generate a prompt with project structure, file contents, and web content.")
|
|
720
741
|
parser.add_argument('inputs', nargs='+', help='Files, directories, or URLs to include in the prompt')
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="kopipasta",
|
|
8
|
-
version="0.
|
|
8
|
+
version="0.17.0",
|
|
9
9
|
author="Mikko Korpela",
|
|
10
10
|
author_email="mikko.korpela@gmail.com",
|
|
11
11
|
description="A CLI tool to generate prompts with project structure and file contents",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|