pdd-cli 0.0.31__py3-none-any.whl → 0.0.32__py3-none-any.whl
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 pdd-cli might be problematic. Click here for more details.
- pdd/__init__.py +1 -1
- pdd/change_main.py +2 -2
- pdd/cli.py +9 -0
- pdd/data/llm_model.csv +1 -1
- pdd/prompts/change_LLM.prompt +5 -1
- {pdd_cli-0.0.31.dist-info → pdd_cli-0.0.32.dist-info}/METADATA +7 -7
- {pdd_cli-0.0.31.dist-info → pdd_cli-0.0.32.dist-info}/RECORD +11 -11
- {pdd_cli-0.0.31.dist-info → pdd_cli-0.0.32.dist-info}/WHEEL +1 -1
- {pdd_cli-0.0.31.dist-info → pdd_cli-0.0.32.dist-info}/entry_points.txt +0 -0
- {pdd_cli-0.0.31.dist-info → pdd_cli-0.0.32.dist-info}/licenses/LICENSE +0 -0
- {pdd_cli-0.0.31.dist-info → pdd_cli-0.0.32.dist-info}/top_level.txt +0 -0
pdd/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.32"
|
|
2
2
|
|
|
3
3
|
# Strength parameter used for LLM extraction across the codebase
|
|
4
4
|
# Used in postprocessing, XML tagging, code generation, and other extraction operations. The module should have a large context window and be affordable.
|
pdd/change_main.py
CHANGED
|
@@ -31,6 +31,7 @@ def change_main(
|
|
|
31
31
|
input_prompt_file: Optional[str],
|
|
32
32
|
output: Optional[str],
|
|
33
33
|
use_csv: bool,
|
|
34
|
+
budget: float,
|
|
34
35
|
) -> Tuple[str, float, str]:
|
|
35
36
|
"""
|
|
36
37
|
Handles the core logic for the 'change' command.
|
|
@@ -46,6 +47,7 @@ def change_main(
|
|
|
46
47
|
input_prompt_file: Path to the input prompt file (required in non-CSV mode).
|
|
47
48
|
output: Optional output path (file or directory).
|
|
48
49
|
use_csv: Flag indicating whether to use CSV mode.
|
|
50
|
+
budget: Budget for the operation.
|
|
49
51
|
|
|
50
52
|
Returns:
|
|
51
53
|
A tuple containing:
|
|
@@ -64,8 +66,6 @@ def change_main(
|
|
|
64
66
|
quiet: bool = ctx.obj.get("quiet", False)
|
|
65
67
|
strength: float = ctx.obj.get("strength", DEFAULT_STRENGTH)
|
|
66
68
|
temperature: float = ctx.obj.get("temperature", 0.0)
|
|
67
|
-
# Default budget to 5.0 if not specified - needed for process_csv_change
|
|
68
|
-
budget: float = ctx.obj.get("budget", 5.0)
|
|
69
69
|
# --- Get language and extension from context ---
|
|
70
70
|
# These are crucial for knowing the target code file types, especially in CSV mode
|
|
71
71
|
target_language: str = ctx.obj.get("language", "") # Get from context
|
pdd/cli.py
CHANGED
|
@@ -589,6 +589,13 @@ def split(
|
|
|
589
589
|
@click.argument("change_prompt_file", type=click.Path(exists=True, dir_okay=False))
|
|
590
590
|
@click.argument("input_code", type=click.Path(exists=True)) # Can be file or dir
|
|
591
591
|
@click.argument("input_prompt_file", type=click.Path(exists=True, dir_okay=False), required=False)
|
|
592
|
+
@click.option(
|
|
593
|
+
"--budget",
|
|
594
|
+
type=float,
|
|
595
|
+
default=5.0,
|
|
596
|
+
show_default=True,
|
|
597
|
+
help="Maximum cost allowed for the change process.",
|
|
598
|
+
)
|
|
592
599
|
@click.option(
|
|
593
600
|
"--output",
|
|
594
601
|
type=click.Path(writable=True),
|
|
@@ -611,6 +618,7 @@ def change(
|
|
|
611
618
|
input_prompt_file: Optional[str],
|
|
612
619
|
output: Optional[str],
|
|
613
620
|
use_csv: bool,
|
|
621
|
+
budget: float,
|
|
614
622
|
) -> Optional[Tuple[str | Dict, float, str]]: # Modified return type
|
|
615
623
|
"""Modify prompt(s) based on change instructions."""
|
|
616
624
|
quiet = ctx.obj.get("quiet", False)
|
|
@@ -639,6 +647,7 @@ def change(
|
|
|
639
647
|
input_prompt_file=input_prompt_file,
|
|
640
648
|
output=output,
|
|
641
649
|
use_csv=use_csv,
|
|
650
|
+
budget=budget,
|
|
642
651
|
)
|
|
643
652
|
return result_data, total_cost, model_name
|
|
644
653
|
except (click.UsageError, Exception) as e: # Catch specific and general exceptions
|
pdd/data/llm_model.csv
CHANGED
|
@@ -5,7 +5,7 @@ Anthropic,claude-3-5-haiku-20241022,.8,4,1261,,ANTHROPIC_API_KEY,0,True,none
|
|
|
5
5
|
OpenAI,deepseek/deepseek-chat,.27,1.1,1353,https://api.deepseek.com/beta,DEEPSEEK_API_KEY,0,False,none
|
|
6
6
|
Google,vertex_ai/gemini-2.5-flash-preview-04-17,0.15,0.6,1330,,VERTEX_CREDENTIALS,0,True,effort
|
|
7
7
|
Google,gemini-2.5-pro-exp-03-25,1.25,10.0,1360,,GOOGLE_API_KEY,0,True,none
|
|
8
|
-
Anthropic,claude-
|
|
8
|
+
Anthropic,claude-sonnet-4-20250514,3.0,15.0,1340,,ANTHROPIC_API_KEY,64000,True,budget
|
|
9
9
|
Google,vertex_ai/gemini-2.5-pro-preview-05-06,1.25,10.0,1361,,VERTEX_CREDENTIALS,0,True,none
|
|
10
10
|
OpenAI,o4-mini,1.1,4.4,1333,,OPENAI_API_KEY,0,True,effort
|
|
11
11
|
OpenAI,o3,10.0,40.0,1389,,OPENAI_API_KEY,0,True,effort
|
pdd/prompts/change_LLM.prompt
CHANGED
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
</output>
|
|
15
15
|
</inputs_outputs_definitions>
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
<change_prompt_examples>
|
|
18
|
+
<include>
|
|
19
|
+
../prompts/xml/change_example_partial_processed.prompt
|
|
20
|
+
</include>
|
|
21
|
+
</change_prompt_examples>
|
|
18
22
|
|
|
19
23
|
<context>
|
|
20
24
|
Here is the input_prompt to change: <input_prompt>{input_prompt}</input_prompt>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdd-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.32
|
|
4
4
|
Summary: PDD (Prompt-Driven Development) Command Line Interface
|
|
5
5
|
Author: Greg Tanaka
|
|
6
6
|
Author-email: glt@alumni.caltech.edu
|
|
7
7
|
License: MIT
|
|
8
|
-
Project-URL: Homepage, https://github.com/
|
|
9
|
-
Project-URL: Repository, https://github.com/
|
|
10
|
-
Project-URL: Issue-Tracker, https://github.com/
|
|
8
|
+
Project-URL: Homepage, https://github.com/promptdriven/pdd.git
|
|
9
|
+
Project-URL: Repository, https://github.com/promptdriven/pdd.git
|
|
10
|
+
Project-URL: Issue-Tracker, https://github.com/promptdriven/pdd/issues
|
|
11
11
|
Keywords: prompt-driven development,code generation,AI,LLM,unit testing,software development
|
|
12
12
|
Classifier: Development Status :: 3 - Alpha
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Classifier: Topic :: Software Development :: Code Generators
|
|
18
18
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
-
Requires-Python: >=3.
|
|
19
|
+
Requires-Python: >=3.12
|
|
20
20
|
Description-Content-Type: text/x-rst
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: GitPython==3.1.44
|
|
@@ -46,7 +46,7 @@ Requires-Dist: pytest-asyncio; extra == "dev"
|
|
|
46
46
|
Requires-Dist: z3-solver; extra == "dev"
|
|
47
47
|
Dynamic: license-file
|
|
48
48
|
|
|
49
|
-
.. image:: https://img.shields.io/badge/pdd--cli-v0.0.
|
|
49
|
+
.. image:: https://img.shields.io/badge/pdd--cli-v0.0.32-blue
|
|
50
50
|
:alt: PDD-CLI Version
|
|
51
51
|
|
|
52
52
|
PDD (Prompt-Driven Development) Command Line Interface
|
|
@@ -130,7 +130,7 @@ After installation, verify:
|
|
|
130
130
|
|
|
131
131
|
pdd --version
|
|
132
132
|
|
|
133
|
-
You'll see the current PDD version (e.g., 0.0.
|
|
133
|
+
You'll see the current PDD version (e.g., 0.0.32).
|
|
134
134
|
|
|
135
135
|
Advanced Installation Tips
|
|
136
136
|
--------------------------
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
pdd/__init__.py,sha256=
|
|
1
|
+
pdd/__init__.py,sha256=oBlK2EdKLxWULcsuHgrlD34jImz8M12FUeCXxTkbxIk,632
|
|
2
2
|
pdd/auto_deps_main.py,sha256=NVLqL5FHxe2eorViXTuh8z2zH9Sb-b6MNN9aZ1hqevY,3552
|
|
3
3
|
pdd/auto_include.py,sha256=aCa2QXDlOdKbh4vS3uDjWptkHB_Qv3QBNCbZe6mGWoo,6074
|
|
4
4
|
pdd/auto_update.py,sha256=Pfav1hrqQIDjZIPuIvryBeM7k-Rc72feVUTJZPtigaU,2889
|
|
5
5
|
pdd/bug_main.py,sha256=cSGBnHmFIA8WrkGiohJFVRuM2086v-wlPvTJqTv00WQ,4631
|
|
6
6
|
pdd/bug_to_unit_test.py,sha256=oejqoKomLseKknYDFlQKQ04TNT3soqOjMPghxty8Guo,6311
|
|
7
7
|
pdd/change.py,sha256=EKmv7WvXNX24rjLCnrcaoo4xOVkNhCa9HLRbpMAxQSw,5036
|
|
8
|
-
pdd/change_main.py,sha256=
|
|
9
|
-
pdd/cli.py,sha256=
|
|
8
|
+
pdd/change_main.py,sha256=Tk0aHY8Z2d-d0m7lLfc_HqgOqs4x_dJD1IrVZSxuxIM,25580
|
|
9
|
+
pdd/cli.py,sha256=VFoyx3iJmFeHCc4HhOc_7tiz3FY9oJjCUtS9PR1wwl0,38341
|
|
10
10
|
pdd/cmd_test_main.py,sha256=aSCxRnSurg15AvPcJDAPp9xy8p_qqnjU1oV14Hi2R54,5301
|
|
11
11
|
pdd/code_generator.py,sha256=DqQNN6jCNjSJvHi0IFyqkSfak6LeDG-yQHPYnvd4AJQ,4424
|
|
12
12
|
pdd/code_generator_main.py,sha256=wup3O2dVh9JzlGsWtXvypqAHgHyBZHOWAe3NJuV_-g4,18648
|
|
@@ -65,10 +65,10 @@ pdd/update_model_costs.py,sha256=zfGqWoVIjBppKUt1Naq2ZsIdiucwfH6at2DflcwkJf8,229
|
|
|
65
65
|
pdd/update_prompt.py,sha256=OdPRIAMu7OBx7E4SOU95hWgdtBY4oO8XOe1dvPChMlU,4351
|
|
66
66
|
pdd/xml_tagger.py,sha256=5AWzOboNuXMJmmIpi1hhPPAB6nxbBOkRqgoPLpoGYT8,4292
|
|
67
67
|
pdd/data/language_format.csv,sha256=xUTmFHXSBVBRfPV-NKG3oWo5_ped5ukP-ekFcIlVzJk,877
|
|
68
|
-
pdd/data/llm_model.csv,sha256=
|
|
68
|
+
pdd/data/llm_model.csv,sha256=BZioMyxUlDuJdcxFCDV2BTw1ssiHKZBf4OxELIy4JGY,1487
|
|
69
69
|
pdd/prompts/auto_include_LLM.prompt,sha256=0t-Jmm5o6vVTmqsISTUiewqPT8bB389UZnJoHZvgtu4,13967
|
|
70
70
|
pdd/prompts/bug_to_unit_test_LLM.prompt,sha256=KdMkvRVnjVSf0NTYIaDXIMT93xPttXEwkMpjWx5leLs,1588
|
|
71
|
-
pdd/prompts/change_LLM.prompt,sha256=
|
|
71
|
+
pdd/prompts/change_LLM.prompt,sha256=5rgWIL16p3VRURd2_lNtcbu_MVRqPhI8gFIBt1gkzDQ,2164
|
|
72
72
|
pdd/prompts/code_patcher_LLM.prompt,sha256=yeV4lsRuPQzNdKRV_LQUOmmWh2yhu8YgKXUWo4bge4I,2392
|
|
73
73
|
pdd/prompts/conflict_LLM.prompt,sha256=46DB_qOCtsfVsj6y8E8grI0izxAk_-ixoENUUHQAkHc,1593
|
|
74
74
|
pdd/prompts/continue_generation_LLM.prompt,sha256=Jsd3eeu23heqw2frfOLzZ5c9dn0QZrfWGratfyWV-ac,111
|
|
@@ -101,9 +101,9 @@ pdd/prompts/trim_results_start_LLM.prompt,sha256=OKz8fAf1cYWKWgslFOHEkUpfaUDARh3
|
|
|
101
101
|
pdd/prompts/unfinished_prompt_LLM.prompt,sha256=-JgBpiPTQZdWOAwOG1XpfpD9waynFTAT3Jo84eQ4bTw,1543
|
|
102
102
|
pdd/prompts/update_prompt_LLM.prompt,sha256=prIc8uLp2jqnLTHt6JvWDZGanPZipivhhYeXe0lVaYw,1328
|
|
103
103
|
pdd/prompts/xml_convertor_LLM.prompt,sha256=YGRGXJeg6EhM9690f-SKqQrKqSJjLFD51UrPOlO0Frg,2786
|
|
104
|
-
pdd_cli-0.0.
|
|
105
|
-
pdd_cli-0.0.
|
|
106
|
-
pdd_cli-0.0.
|
|
107
|
-
pdd_cli-0.0.
|
|
108
|
-
pdd_cli-0.0.
|
|
109
|
-
pdd_cli-0.0.
|
|
104
|
+
pdd_cli-0.0.32.dist-info/licenses/LICENSE,sha256=-1bjYH-CEjGEQ8VixtnRYuu37kN6F9NxmZSDkBuUQ9o,1062
|
|
105
|
+
pdd_cli-0.0.32.dist-info/METADATA,sha256=gnrubUf69rPVr3t01FvagrPuxrJ3B6JRbHXjYQYB3OQ,7778
|
|
106
|
+
pdd_cli-0.0.32.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
107
|
+
pdd_cli-0.0.32.dist-info/entry_points.txt,sha256=Kr8HtNVb8uHZtQJNH4DnF8j7WNgWQbb7_Pw5hECSR-I,36
|
|
108
|
+
pdd_cli-0.0.32.dist-info/top_level.txt,sha256=xjnhIACeMcMeDfVNREgQZl4EbTni2T11QkL5r7E-sbE,4
|
|
109
|
+
pdd_cli-0.0.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|