code-puppy 0.0.129__py3-none-any.whl → 0.0.130__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/model_picker_completion.py +1 -12
- code_puppy/command_line/prompt_toolkit_completion.py +2 -2
- {code_puppy-0.0.129.dist-info → code_puppy-0.0.130.dist-info}/METADATA +1 -1
- {code_puppy-0.0.129.dist-info → code_puppy-0.0.130.dist-info}/RECORD +8 -8
- {code_puppy-0.0.129.data → code_puppy-0.0.130.data}/data/code_puppy/models.json +0 -0
- {code_puppy-0.0.129.dist-info → code_puppy-0.0.130.dist-info}/WHEEL +0 -0
- {code_puppy-0.0.129.dist-info → code_puppy-0.0.130.dist-info}/entry_points.txt +0 -0
- {code_puppy-0.0.129.dist-info → code_puppy-0.0.130.dist-info}/licenses/LICENSE +0 -0
|
@@ -70,7 +70,7 @@ class ModelNameCompleter(Completer):
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
def update_model_in_input(text: str) -> Optional[str]:
|
|
73
|
-
# If input starts with /model
|
|
73
|
+
# If input starts with /model and a model name, set model and strip it out
|
|
74
74
|
content = text.strip()
|
|
75
75
|
|
|
76
76
|
# Check for /model command
|
|
@@ -84,17 +84,6 @@ def update_model_in_input(text: str) -> Optional[str]:
|
|
|
84
84
|
if idx != -1:
|
|
85
85
|
new_text = (text[:idx] + text[idx + len("/model" + model) :]).strip()
|
|
86
86
|
return new_text
|
|
87
|
-
# Also check for legacy /m command for backward compatibility
|
|
88
|
-
elif content.startswith("/m"):
|
|
89
|
-
rest = content[2:].strip() # Remove '/m'
|
|
90
|
-
for model in load_model_names():
|
|
91
|
-
if rest == model:
|
|
92
|
-
set_active_model(model)
|
|
93
|
-
# Remove /m from the input
|
|
94
|
-
idx = text.find("/m" + model)
|
|
95
|
-
if idx != -1:
|
|
96
|
-
new_text = (text[:idx] + text[idx + len("/m" + model) :]).strip()
|
|
97
|
-
return new_text
|
|
98
87
|
return None
|
|
99
88
|
|
|
100
89
|
|
|
@@ -163,7 +163,7 @@ async def get_input_with_combined_completion(
|
|
|
163
163
|
completer = merge_completers(
|
|
164
164
|
[
|
|
165
165
|
FilePathCompleter(symbol="@"),
|
|
166
|
-
ModelNameCompleter(trigger="/
|
|
166
|
+
ModelNameCompleter(trigger="/model"),
|
|
167
167
|
CDCompleter(trigger="/cd"),
|
|
168
168
|
SetCompleter(trigger="/set"),
|
|
169
169
|
LoadContextCompleter(trigger="/load_context"),
|
|
@@ -226,7 +226,7 @@ async def get_input_with_combined_completion(
|
|
|
226
226
|
|
|
227
227
|
|
|
228
228
|
if __name__ == "__main__":
|
|
229
|
-
print("Type '@' for path-completion or '/
|
|
229
|
+
print("Type '@' for path-completion or '/model' to pick a model. Ctrl+D to exit.")
|
|
230
230
|
|
|
231
231
|
async def main():
|
|
232
232
|
while True:
|
|
@@ -27,9 +27,9 @@ code_puppy/command_line/file_path_completion.py,sha256=gw8NpIxa6GOpczUJRyh7VNZwo
|
|
|
27
27
|
code_puppy/command_line/load_context_completion.py,sha256=6eZxV6Bs-EFwZjN93V8ZDZUC-6RaWxvtZk-04Wtikyw,2240
|
|
28
28
|
code_puppy/command_line/mcp_commands.py,sha256=qqEdac7zR4Wydn0JE3lTVnLi3dh_Lc8DJmjOq8dQeJM,55379
|
|
29
29
|
code_puppy/command_line/meta_command_handler.py,sha256=02NU4Lspf5qRMPTsrGiMRLSUshZhdmS0XQA26k8vUjw,5665
|
|
30
|
-
code_puppy/command_line/model_picker_completion.py,sha256=
|
|
30
|
+
code_puppy/command_line/model_picker_completion.py,sha256=xvwgthVmLRA9a8RJG6iFImxR2yD6rJYPJJav0YJoVCc,3599
|
|
31
31
|
code_puppy/command_line/motd.py,sha256=PEdkp3ZnydVfvd7mNJylm8YyFNUKg9jmY6uwkA1em8c,2152
|
|
32
|
-
code_puppy/command_line/prompt_toolkit_completion.py,sha256=
|
|
32
|
+
code_puppy/command_line/prompt_toolkit_completion.py,sha256=BKNw-DwacZPNTKjjXlxnjrd4q7UfOVynReUFQrVes_g,9052
|
|
33
33
|
code_puppy/command_line/utils.py,sha256=7eyxDHjPjPB9wGDJQQcXV_zOsGdYsFgI0SGCetVmTqE,1251
|
|
34
34
|
code_puppy/mcp/__init__.py,sha256=LJd9mGStskhXYBEp1UhtHlrAQ3rCHnfTa7KSmqtZe34,1143
|
|
35
35
|
code_puppy/mcp/async_lifecycle.py,sha256=45tw7ZcDV6LVBrTvvNkMCDhnTapgQCYcc01W8Gp9c5A,8064
|
|
@@ -100,9 +100,9 @@ code_puppy/tui/tests/test_sidebar_history_navigation.py,sha256=JGiyua8A2B8dLfwiE
|
|
|
100
100
|
code_puppy/tui/tests/test_status_bar.py,sha256=nYT_FZGdmqnnbn6o0ZuOkLtNUtJzLSmtX8P72liQ5Vo,1797
|
|
101
101
|
code_puppy/tui/tests/test_timestamped_history.py,sha256=nVXt9hExZZ_8MFP-AZj4L4bB_1Eo_mc-ZhVICzTuw3I,1799
|
|
102
102
|
code_puppy/tui/tests/test_tools.py,sha256=kgzzAkK4r0DPzQwHHD4cePpVNgrHor6cFr05Pg6DBWg,2687
|
|
103
|
-
code_puppy-0.0.
|
|
104
|
-
code_puppy-0.0.
|
|
105
|
-
code_puppy-0.0.
|
|
106
|
-
code_puppy-0.0.
|
|
107
|
-
code_puppy-0.0.
|
|
108
|
-
code_puppy-0.0.
|
|
103
|
+
code_puppy-0.0.130.data/data/code_puppy/models.json,sha256=GpvtWnBKERm6T7HCZJQUIVAS5256-tZ_bFuRtnKXEsY,3128
|
|
104
|
+
code_puppy-0.0.130.dist-info/METADATA,sha256=4ZUO2tCKE7Iztu63OFd-FDXLU5_hTXyjyfbddKu8hbI,19873
|
|
105
|
+
code_puppy-0.0.130.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
106
|
+
code_puppy-0.0.130.dist-info/entry_points.txt,sha256=d8YkBvIUxF-dHNJAj-x4fPEqizbY5d_TwvYpc01U5kw,58
|
|
107
|
+
code_puppy-0.0.130.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
|
|
108
|
+
code_puppy-0.0.130.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|