pdd-cli 0.0.26__py3-none-any.whl → 0.0.27__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/cli.py +12 -3
- pdd/cli_1_0_2_0_20250510_000314.py +1054 -0
- pdd/cli_2_0_1_0_20250510_000314.py +1054 -0
- pdd/cli_3_0_1_0_20250510_000314.py +1054 -0
- pdd/cli_4_0_1_0_20250510_000314.py +1054 -0
- pdd/fix_verification_errors.py +2 -2
- pdd/fix_verification_errors_loop.py +5 -1
- pdd/fix_verification_main.py +21 -1
- pdd/generate_output_paths.py +43 -2
- pdd/llm_invoke.py +208 -176
- pdd/prompts/find_verification_errors_LLM.prompt +18 -7
- pdd/prompts/fix_verification_errors_LLM.prompt +18 -6
- {pdd_cli-0.0.26.dist-info → pdd_cli-0.0.27.dist-info}/METADATA +3 -3
- {pdd_cli-0.0.26.dist-info → pdd_cli-0.0.27.dist-info}/RECORD +19 -15
- {pdd_cli-0.0.26.dist-info → pdd_cli-0.0.27.dist-info}/WHEEL +0 -0
- {pdd_cli-0.0.26.dist-info → pdd_cli-0.0.27.dist-info}/entry_points.txt +0 -0
- {pdd_cli-0.0.26.dist-info → pdd_cli-0.0.27.dist-info}/licenses/LICENSE +0 -0
- {pdd_cli-0.0.26.dist-info → pdd_cli-0.0.27.dist-info}/top_level.txt +0 -0
pdd/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.27"
|
|
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/cli.py
CHANGED
|
@@ -937,7 +937,7 @@ def auto_deps(
|
|
|
937
937
|
quiet = ctx.obj.get("quiet", False)
|
|
938
938
|
command_name = "auto-deps"
|
|
939
939
|
try:
|
|
940
|
-
clean_directory_path = directory_path.strip('
|
|
940
|
+
clean_directory_path = directory_path.strip('"')
|
|
941
941
|
|
|
942
942
|
modified_prompt, total_cost, model_name = auto_deps_main(
|
|
943
943
|
ctx=ctx,
|
|
@@ -969,6 +969,12 @@ def auto_deps(
|
|
|
969
969
|
default=None,
|
|
970
970
|
help="Specify where to save the verified code file (file or directory).",
|
|
971
971
|
)
|
|
972
|
+
@click.option(
|
|
973
|
+
"--output-program",
|
|
974
|
+
type=click.Path(writable=True),
|
|
975
|
+
default=None,
|
|
976
|
+
help="Specify where to save the verified program file (file or directory).",
|
|
977
|
+
)
|
|
972
978
|
@click.option(
|
|
973
979
|
"--max-attempts",
|
|
974
980
|
type=int,
|
|
@@ -992,6 +998,7 @@ def verify(
|
|
|
992
998
|
program_file: str,
|
|
993
999
|
output_results: Optional[str],
|
|
994
1000
|
output_code: Optional[str],
|
|
1001
|
+
output_program: Optional[str],
|
|
995
1002
|
max_attempts: int,
|
|
996
1003
|
budget: float,
|
|
997
1004
|
) -> Optional[Tuple[Dict[str, Any], float, str]]: # Modified return type
|
|
@@ -1006,8 +1013,9 @@ def verify(
|
|
|
1006
1013
|
program_file=program_file,
|
|
1007
1014
|
output_results=output_results,
|
|
1008
1015
|
output_code=output_code,
|
|
1009
|
-
|
|
1010
|
-
|
|
1016
|
+
output_program=output_program,
|
|
1017
|
+
loop=True, # Default for CLI verify command
|
|
1018
|
+
verification_program=program_file, # Default for CLI verify command
|
|
1011
1019
|
max_attempts=max_attempts,
|
|
1012
1020
|
budget=budget,
|
|
1013
1021
|
)
|
|
@@ -1015,6 +1023,7 @@ def verify(
|
|
|
1015
1023
|
"success": success,
|
|
1016
1024
|
"attempts": attempts,
|
|
1017
1025
|
"verified_code_path": output_code,
|
|
1026
|
+
"verified_program_path": output_program,
|
|
1018
1027
|
"results_log_path": output_results,
|
|
1019
1028
|
}
|
|
1020
1029
|
return result_data, cost, model
|