code-puppy 0.0.352__py3-none-any.whl → 0.0.353__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.
@@ -33,6 +33,7 @@ from code_puppy.messaging import (
33
33
  set_session_context,
34
34
  )
35
35
  from code_puppy.model_factory import ModelFactory, make_model_settings
36
+ from code_puppy.model_utils import is_claude_code_model
36
37
  from code_puppy.tools.common import generate_group_id
37
38
 
38
39
  # Set to track active subagent invocation tasks
@@ -539,6 +540,15 @@ def register_invoke_agent(agent):
539
540
  # Run the temporary agent with the provided prompt as an asyncio task
540
541
  # Pass the message_history from the session to continue the conversation
541
542
  workflow_id = None # Track for potential cancellation
543
+
544
+ # For claude-code models, we MUST use streaming to properly handle
545
+ # tool name unprefixing in the HTTP transport layer
546
+ stream_handler = None
547
+ if is_claude_code_model(model_name):
548
+ from code_puppy.agents.event_stream_handler import event_stream_handler
549
+
550
+ stream_handler = event_stream_handler
551
+
542
552
  if get_use_dbos():
543
553
  # Generate a unique workflow ID for DBOS - ensures no collisions in back-to-back calls
544
554
  workflow_id = _generate_dbos_workflow_id(group_id)
@@ -554,6 +564,7 @@ def register_invoke_agent(agent):
554
564
  prompt,
555
565
  message_history=message_history,
556
566
  usage_limits=UsageLimits(request_limit=get_message_limit()),
567
+ event_stream_handler=stream_handler,
557
568
  )
558
569
  )
559
570
  _active_subagent_tasks.add(task)
@@ -563,6 +574,7 @@ def register_invoke_agent(agent):
563
574
  prompt,
564
575
  message_history=message_history,
565
576
  usage_limits=UsageLimits(request_limit=get_message_limit()),
577
+ event_stream_handler=stream_handler,
566
578
  )
567
579
  )
568
580
  _active_subagent_tasks.add(task)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-puppy
3
- Version: 0.0.352
3
+ Version: 0.0.353
4
4
  Summary: Code generation agent
5
5
  Project-URL: repository, https://github.com/mpfaffenberger/code_puppy
6
6
  Project-URL: HomePage, https://github.com/mpfaffenberger/code_puppy
@@ -160,7 +160,7 @@ code_puppy/plugins/shell_safety/register_callbacks.py,sha256=W3v664RR48Fdbbbltf_
160
160
  code_puppy/prompts/antigravity_system_prompt.md,sha256=ZaTfRyY57ttROyZMmOBtqZQu1to7sdTNTv8_0fTgPNw,6807
161
161
  code_puppy/prompts/codex_system_prompt.md,sha256=hEFTCziroLqZmqNle5kG34A8kvTteOWezCiVrAEKhE0,24400
162
162
  code_puppy/tools/__init__.py,sha256=eQY-GL2ToV9IdRKlrnWlcPLyncJyU1VGZxq9yy0twNI,6137
163
- code_puppy/tools/agent_tools.py,sha256=faN0QPwfUvQFwN3Pv8kVL4wN9rV3IX0PRM_lSKhcGQQ,23570
163
+ code_puppy/tools/agent_tools.py,sha256=3MI7ZvlBBbu2CbZCPIZfW0q4lnD_mS-wdDygQt9mQIM,24123
164
164
  code_puppy/tools/command_runner.py,sha256=3qXVnVTaBPia6y2D29As47_TRKgpyCj82yMFK-8UUYc,44954
165
165
  code_puppy/tools/common.py,sha256=IYf-KOcP5eN2MwTlpULSXNATn7GzloAKl7_M1Uyfe4Y,40360
166
166
  code_puppy/tools/display.py,sha256=T2bIyb233eds0q8C1jZRl6NjwERrLgT_APhEz9drN1w,2472
@@ -177,10 +177,10 @@ code_puppy/tools/browser/browser_scripts.py,sha256=sNb8eLEyzhasy5hV4B9OjM8yIVMLV
177
177
  code_puppy/tools/browser/browser_workflows.py,sha256=nitW42vCf0ieTX1gLabozTugNQ8phtoFzZbiAhw1V90,6491
178
178
  code_puppy/tools/browser/camoufox_manager.py,sha256=RZjGOEftE5sI_tsercUyXFSZI2wpStXf-q0PdYh2G3I,8680
179
179
  code_puppy/tools/browser/vqa_agent.py,sha256=DBn9HKloILqJSTSdNZzH_PYWT0B2h9VwmY6akFQI_uU,2913
180
- code_puppy-0.0.352.data/data/code_puppy/models.json,sha256=FMQdE_yvP_8y0xxt3K918UkFL9cZMYAqW1SfXcQkU_k,3105
181
- code_puppy-0.0.352.data/data/code_puppy/models_dev_api.json,sha256=wHjkj-IM_fx1oHki6-GqtOoCrRMR0ScK0f-Iz0UEcy8,548187
182
- code_puppy-0.0.352.dist-info/METADATA,sha256=Xn8t9aW_j6L5_M5V7Zg6pnClsVdoJLa5IDZyGnT2NBY,27572
183
- code_puppy-0.0.352.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
184
- code_puppy-0.0.352.dist-info/entry_points.txt,sha256=Tp4eQC99WY3HOKd3sdvb22vZODRq0XkZVNpXOag_KdI,91
185
- code_puppy-0.0.352.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
186
- code_puppy-0.0.352.dist-info/RECORD,,
180
+ code_puppy-0.0.353.data/data/code_puppy/models.json,sha256=FMQdE_yvP_8y0xxt3K918UkFL9cZMYAqW1SfXcQkU_k,3105
181
+ code_puppy-0.0.353.data/data/code_puppy/models_dev_api.json,sha256=wHjkj-IM_fx1oHki6-GqtOoCrRMR0ScK0f-Iz0UEcy8,548187
182
+ code_puppy-0.0.353.dist-info/METADATA,sha256=SZGW2VJQ_sk4iAb3UBANyh8Tzit9QwP47l1XHaRIrjY,27572
183
+ code_puppy-0.0.353.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
184
+ code_puppy-0.0.353.dist-info/entry_points.txt,sha256=Tp4eQC99WY3HOKd3sdvb22vZODRq0XkZVNpXOag_KdI,91
185
+ code_puppy-0.0.353.dist-info/licenses/LICENSE,sha256=31u8x0SPgdOq3izJX41kgFazWsM43zPEF9eskzqbJMY,1075
186
+ code_puppy-0.0.353.dist-info/RECORD,,