code-puppy 0.0.201__py3-none-any.whl → 0.0.202__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/agents/agent_manager.py +4 -2
- code_puppy/command_line/attachments.py +2 -14
- {code_puppy-0.0.201.dist-info → code_puppy-0.0.202.dist-info}/METADATA +1 -1
- {code_puppy-0.0.201.dist-info → code_puppy-0.0.202.dist-info}/RECORD +8 -8
- {code_puppy-0.0.201.data → code_puppy-0.0.202.data}/data/code_puppy/models.json +0 -0
- {code_puppy-0.0.201.dist-info → code_puppy-0.0.202.dist-info}/WHEEL +0 -0
- {code_puppy-0.0.201.dist-info → code_puppy-0.0.202.dist-info}/entry_points.txt +0 -0
- {code_puppy-0.0.201.dist-info → code_puppy-0.0.202.dist-info}/licenses/LICENSE +0 -0
@@ -252,7 +252,8 @@ def set_current_agent(agent_name: str) -> bool:
|
|
252
252
|
global _CURRENT_AGENT
|
253
253
|
curr_agent = get_current_agent()
|
254
254
|
if curr_agent is not None:
|
255
|
-
|
255
|
+
# Store a shallow copy so future mutations don't affect saved history
|
256
|
+
_AGENT_HISTORIES[curr_agent.name] = list(curr_agent.get_message_history())
|
256
257
|
# Generate a message group ID for agent switching
|
257
258
|
message_group_id = str(uuid.uuid4())
|
258
259
|
_discover_agents(message_group_id=message_group_id)
|
@@ -269,7 +270,8 @@ def set_current_agent(agent_name: str) -> bool:
|
|
269
270
|
_SESSION_AGENTS_CACHE[session_id] = agent_name
|
270
271
|
_save_session_data(_SESSION_AGENTS_CACHE)
|
271
272
|
if agent_obj.name in _AGENT_HISTORIES:
|
272
|
-
|
273
|
+
# Restore a copy to avoid sharing the same list instance
|
274
|
+
agent_obj.set_message_history(list(_AGENT_HISTORIES[agent_obj.name]))
|
273
275
|
on_agent_reload(agent_obj.id, agent_name)
|
274
276
|
return True
|
275
277
|
|
@@ -151,20 +151,8 @@ def _is_supported_extension(path: Path) -> bool:
|
|
151
151
|
|
152
152
|
|
153
153
|
def _parse_link(token: str) -> PromptLinkAttachment | None:
|
154
|
-
|
155
|
-
|
156
|
-
scheme = token.split(":", 1)[0].lower()
|
157
|
-
if scheme not in SUPPORTED_INLINE_SCHEMES:
|
158
|
-
return None
|
159
|
-
if token.lower().endswith(".pdf"):
|
160
|
-
return PromptLinkAttachment(
|
161
|
-
placeholder=token,
|
162
|
-
url_part=DocumentUrl(url=token),
|
163
|
-
)
|
164
|
-
return PromptLinkAttachment(
|
165
|
-
placeholder=token,
|
166
|
-
url_part=ImageUrl(url=token),
|
167
|
-
)
|
154
|
+
"""URL parsing disabled: no URLs are treated as attachments."""
|
155
|
+
return None
|
168
156
|
|
169
157
|
|
170
158
|
@dataclass
|
@@ -21,7 +21,7 @@ code_puppy/agents/agent_cpp_reviewer.py,sha256=H4INgJo2OJ84QT7bfTkw4s1Ml7luwokhA
|
|
21
21
|
code_puppy/agents/agent_creator_agent.py,sha256=IiwVirB6uoIeGOmtetut9eDv6o055ykND3V-fvyA8Lw,23042
|
22
22
|
code_puppy/agents/agent_golang_reviewer.py,sha256=-OMuT8hkapVf2Oox46Ck9SRHlsfd8ab8uefbVfdW72M,3348
|
23
23
|
code_puppy/agents/agent_javascript_reviewer.py,sha256=5YC4kRSvorcNgObjHjD2Rrgnvf8jlKhPqWdjOMjU9A0,3636
|
24
|
-
code_puppy/agents/agent_manager.py,sha256=
|
24
|
+
code_puppy/agents/agent_manager.py,sha256=D5l72Xk3XVeb07FZHKxIMNfhOjxAAzC-8min-gv11mY,11568
|
25
25
|
code_puppy/agents/agent_python_reviewer.py,sha256=D0M3VA12QKdsyg2zIBI2FECxz0IP2fSIfg24xGzDhw0,3837
|
26
26
|
code_puppy/agents/agent_qa_expert.py,sha256=wCGXzuAVElT5c-QigQVb8JX9Gw0JmViCUQQnADMSbVc,3796
|
27
27
|
code_puppy/agents/agent_qa_kitten.py,sha256=5PeFFSwCFlTUvP6h5bGntx0xv5NmRwBiw0HnMqY8nLI,9107
|
@@ -30,7 +30,7 @@ code_puppy/agents/agent_typescript_reviewer.py,sha256=EDY1mFkVpuJ1BPXsJFu2wQ2pfA
|
|
30
30
|
code_puppy/agents/base_agent.py,sha256=dsnoFEHXVhXgK-WIOskCU1Ccx6uz5onfiycWAMxBhaw,41421
|
31
31
|
code_puppy/agents/json_agent.py,sha256=lhopDJDoiSGHvD8A6t50hi9ZBoNRKgUywfxd0Po_Dzc,4886
|
32
32
|
code_puppy/command_line/__init__.py,sha256=y7WeRemfYppk8KVbCGeAIiTuiOszIURCDjOMZv_YRmU,45
|
33
|
-
code_puppy/command_line/attachments.py,sha256=
|
33
|
+
code_puppy/command_line/attachments.py,sha256=rqBUR52wJj4cP-iTkN4KdoHZ9Oovc6tBp6ayifi9UF0,12022
|
34
34
|
code_puppy/command_line/command_handler.py,sha256=alxMe5v_4jq8Sm6HETsgfF-VoDtgExj9dVzxP77fwmY,31614
|
35
35
|
code_puppy/command_line/file_path_completion.py,sha256=gw8NpIxa6GOpczUJRyh7VNZwoXKKn-yvCqit7h2y6Gg,2931
|
36
36
|
code_puppy/command_line/load_context_completion.py,sha256=6eZxV6Bs-EFwZjN93V8ZDZUC-6RaWxvtZk-04Wtikyw,2240
|
@@ -123,9 +123,9 @@ code_puppy/tui/screens/help.py,sha256=eJuPaOOCp7ZSUlecearqsuX6caxWv7NQszUh0tZJjB
|
|
123
123
|
code_puppy/tui/screens/mcp_install_wizard.py,sha256=vObpQwLbXjQsxmSg-WCasoev1usEi0pollKnL0SHu9U,27693
|
124
124
|
code_puppy/tui/screens/settings.py,sha256=EoMxiguyeF0srwV1bj4_MG9rrxkNthh6TdTNsxnXLfE,11460
|
125
125
|
code_puppy/tui/screens/tools.py,sha256=3pr2Xkpa9Js6Yhf1A3_wQVRzFOui-KDB82LwrsdBtyk,1715
|
126
|
-
code_puppy-0.0.
|
127
|
-
code_puppy-0.0.
|
128
|
-
code_puppy-0.0.
|
129
|
-
code_puppy-0.0.
|
130
|
-
code_puppy-0.0.
|
131
|
-
code_puppy-0.0.
|
126
|
+
code_puppy-0.0.202.data/data/code_puppy/models.json,sha256=dClUciCo2RlVDs0ZAQCIur8MOavZUEAXHEecn0uPa-4,1629
|
127
|
+
code_puppy-0.0.202.dist-info/METADATA,sha256=1zqxAnwukbylgLJ9rPwn2DNQ8zMCT7bNFl667rXJ4es,20759
|
128
|
+
code_puppy-0.0.202.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
129
|
+
code_puppy-0.0.202.dist-info/entry_points.txt,sha256=Tp4eQC99WY3HOKd3sdvb22vZODRq0XkZVNpXOag_KdI,91
|
130
|
+
code_puppy-0.0.202.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
|
131
|
+
code_puppy-0.0.202.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|