code-puppy 0.0.51__py3-none-any.whl → 0.0.53__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.
- code_puppy/command_line/meta_command_handler.py +11 -1
- code_puppy/main.py +4 -0
- {code_puppy-0.0.51.dist-info → code_puppy-0.0.53.dist-info}/METADATA +1 -1
- {code_puppy-0.0.51.dist-info → code_puppy-0.0.53.dist-info}/RECORD +8 -8
- {code_puppy-0.0.51.data → code_puppy-0.0.53.data}/data/code_puppy/models.json +0 -0
- {code_puppy-0.0.51.dist-info → code_puppy-0.0.53.dist-info}/WHEEL +0 -0
- {code_puppy-0.0.51.dist-info → code_puppy-0.0.53.dist-info}/entry_points.txt +0 -0
- {code_puppy-0.0.51.dist-info → code_puppy-0.0.53.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
META_COMMANDS_HELP = '''
|
|
2
|
+
[bold magenta]Meta Commands Help[/bold magenta]
|
|
3
|
+
~help, ~h Show this help message
|
|
4
|
+
~cd [dir] Change directory or show directories
|
|
5
|
+
~codemap [dir] Show code structure for [dir]
|
|
6
|
+
~m <model> Set active model
|
|
7
|
+
~show Show puppy status info
|
|
8
|
+
~<unknown> Show unknown meta command warning
|
|
9
|
+
'''
|
|
10
|
+
|
|
1
11
|
from code_puppy.command_line.model_picker_completion import update_model_in_input, load_model_names, get_active_model
|
|
2
12
|
from rich.console import Console
|
|
3
13
|
import os
|
|
@@ -103,7 +113,7 @@ def handle_meta_command(command: str, console: Console) -> bool:
|
|
|
103
113
|
console.print(f"[yellow]Usage:[/yellow] ~m <model_name>")
|
|
104
114
|
return True
|
|
105
115
|
if command in ("~help", "~h"):
|
|
106
|
-
console.print(
|
|
116
|
+
console.print(META_COMMANDS_HELP)
|
|
107
117
|
return True
|
|
108
118
|
if command.startswith("~"):
|
|
109
119
|
name = command[1:].split()[0] if len(command)>1 else ""
|
code_puppy/main.py
CHANGED
|
@@ -102,6 +102,10 @@ async def interactive_mode(history_file_path: str) -> None:
|
|
|
102
102
|
console.print("Type 'clear' to reset the conversation history.")
|
|
103
103
|
console.print("Type [bold blue]@[/bold blue] for path completion, or [bold blue]~m[/bold blue] to pick a model.")
|
|
104
104
|
|
|
105
|
+
# Show meta commands right at startup - DRY!
|
|
106
|
+
from code_puppy.command_line.meta_command_handler import META_COMMANDS_HELP
|
|
107
|
+
console.print(META_COMMANDS_HELP)
|
|
108
|
+
|
|
105
109
|
# Check if prompt_toolkit is installed
|
|
106
110
|
try:
|
|
107
111
|
import prompt_toolkit
|
|
@@ -2,14 +2,14 @@ code_puppy/__init__.py,sha256=orgffM-uGp8g1XCqXGKWaFB4tCCz8TVgsLMPKCOGNx0,81
|
|
|
2
2
|
code_puppy/agent.py,sha256=avoOEorAYUyQYnYVVCezLz1QKDm0Qgx3i_C-BqgDiQQ,3198
|
|
3
3
|
code_puppy/agent_prompts.py,sha256=A6ADydqbHozIAtwOy_UY-fYZ2XDE9_5oV3oxOMtVCFA,6782
|
|
4
4
|
code_puppy/config.py,sha256=jsPnwDjz_H69Oww5JyEg3eud3rYMKp3ah2WrnablRak,3894
|
|
5
|
-
code_puppy/main.py,sha256=
|
|
5
|
+
code_puppy/main.py,sha256=_xm5qCLnG2al4yVtoq9dGkOu0CBsLlHLZEoDiPAmVAI,10220
|
|
6
6
|
code_puppy/model_factory.py,sha256=vDlEoEKkOoikExCqi5oxb_PuTF8STUMABXAbPHV_p34,11639
|
|
7
7
|
code_puppy/models.json,sha256=7H-y97YK9BXhag5wJU19rtg24JtZWYx60RsBLBW3WiI,2162
|
|
8
8
|
code_puppy/session_memory.py,sha256=vuLSw1Pfa-MXD4lD8hj2qt65OR_aL2WdoMuF6Jwnc1k,2597
|
|
9
9
|
code_puppy/version_checker.py,sha256=cK-eU7Y_yYjn7feIONqzzZUdiedozL0iiKXlGKjfq68,395
|
|
10
10
|
code_puppy/command_line/__init__.py,sha256=y7WeRemfYppk8KVbCGeAIiTuiOszIURCDjOMZv_YRmU,45
|
|
11
11
|
code_puppy/command_line/file_path_completion.py,sha256=HAlOu9XVYgJ7FbjdrhKBL0rFmCVFxSGGewdcfKTUsPw,2865
|
|
12
|
-
code_puppy/command_line/meta_command_handler.py,sha256=
|
|
12
|
+
code_puppy/command_line/meta_command_handler.py,sha256=YKXthyXl-4J0MixdTtzABK_E8ReDEBGi3ftGICglwUA,5407
|
|
13
13
|
code_puppy/command_line/model_picker_completion.py,sha256=5VEa6OE9shsF0EafJXzBLpFXhFIkqevJi9RRD-eUvZA,3718
|
|
14
14
|
code_puppy/command_line/prompt_toolkit_completion.py,sha256=R-ykRmhVTieE4zIQnn7H1GDKk32yvalot0rZpFizLAQ,7358
|
|
15
15
|
code_puppy/command_line/utils.py,sha256=L1PnV9tNupEW1zeziyb5aGAq8DYP8sMiuQbFYLO5Nus,1236
|
|
@@ -20,9 +20,9 @@ code_puppy/tools/common.py,sha256=dbmyZTrTBQh_0WWpaYN6jEync62W2mMrzNS8UFK0co4,14
|
|
|
20
20
|
code_puppy/tools/file_modifications.py,sha256=nT87uAoY14RTAapnFCgkLTmW9g9P9bymxts2MpSpoo0,19297
|
|
21
21
|
code_puppy/tools/file_operations.py,sha256=LJU_1b3WCXTAHa2B5VAbckrn1VVWb-HhcI3TF3BxYWs,11625
|
|
22
22
|
code_puppy/tools/web_search.py,sha256=HhcwX0MMvMDPFO8gr8gzgesD5wPXOypjkxyLZeNwL5g,589
|
|
23
|
-
code_puppy-0.0.
|
|
24
|
-
code_puppy-0.0.
|
|
25
|
-
code_puppy-0.0.
|
|
26
|
-
code_puppy-0.0.
|
|
27
|
-
code_puppy-0.0.
|
|
28
|
-
code_puppy-0.0.
|
|
23
|
+
code_puppy-0.0.53.data/data/code_puppy/models.json,sha256=7H-y97YK9BXhag5wJU19rtg24JtZWYx60RsBLBW3WiI,2162
|
|
24
|
+
code_puppy-0.0.53.dist-info/METADATA,sha256=xFkD0g5Fz2wvxBzyokBGr0eB8lKE3Ihn_NvPCJUB8MA,4716
|
|
25
|
+
code_puppy-0.0.53.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
26
|
+
code_puppy-0.0.53.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
|
|
27
|
+
code_puppy-0.0.53.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
|
|
28
|
+
code_puppy-0.0.53.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|