code-puppy 0.0.883__tar.gz → 0.0.885__tar.gz

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.
Files changed (321) hide show
  1. {code_puppy-0.0.883 → code_puppy-0.0.885}/PKG-INFO +2 -2
  2. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_code_mode.py +34 -4
  3. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_code_mode_guidance.py +21 -3
  4. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_key_listeners.py +20 -16
  5. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/set_menu_catalog.py +2 -49
  6. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/set_menu_shims.py +0 -10
  7. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/config.py +3 -9
  8. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/terminal_utils.py +51 -19
  9. {code_puppy-0.0.883 → code_puppy-0.0.885}/pyproject.toml +2 -2
  10. {code_puppy-0.0.883 → code_puppy-0.0.885}/.gitignore +0 -0
  11. {code_puppy-0.0.883 → code_puppy-0.0.885}/LICENSE +0 -0
  12. {code_puppy-0.0.883 → code_puppy-0.0.885}/README.md +0 -0
  13. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/__init__.py +0 -0
  14. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/__main__.py +0 -0
  15. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/_plugin_i18n_lifecycle.py +0 -0
  16. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/_pydantic_tool_helpers.py +0 -0
  17. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/_pydantic_video_patch.py +0 -0
  18. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agent_completion_inbox.py +0 -0
  19. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agent_execution_context.py +0 -0
  20. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/__init__.py +0 -0
  21. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_builder.py +0 -0
  22. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_compaction.py +0 -0
  23. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_diagnostics.py +0 -0
  24. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_history.py +0 -0
  25. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_model_message_transform.py +0 -0
  26. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_non_streaming_render.py +0 -0
  27. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_output_limits.py +0 -0
  28. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_run_signals.py +0 -0
  29. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_runtime.py +0 -0
  30. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_steer_processor.py +0 -0
  31. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_subagent_recursion.py +0 -0
  32. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_windows_console.py +0 -0
  33. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/_wire_tool_names.py +0 -0
  34. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_code_puppy.py +0 -0
  35. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_creator_agent.py +0 -0
  36. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_helios.py +0 -0
  37. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_manager.py +0 -0
  38. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_model_judge.py +0 -0
  39. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_planning.py +0 -0
  40. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_qa_kitten.py +0 -0
  41. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/agent_web_retriever.py +0 -0
  42. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/base_agent.py +0 -0
  43. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/event_stream_handler.py +0 -0
  44. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/json_agent.py +0 -0
  45. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/retry_checkpoint.py +0 -0
  46. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/retry_profiles.py +0 -0
  47. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/run_stats.py +0 -0
  48. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/smooth_stream.py +0 -0
  49. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/stream_status.py +0 -0
  50. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/subagent_stream_handler.py +0 -0
  51. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/agents/thinking_output.py +0 -0
  52. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/asyncio_cleanup.py +0 -0
  53. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/atomic_io.py +0 -0
  54. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/atomic_json.py +0 -0
  55. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/callbacks.py +0 -0
  56. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/capabilities/__init__.py +0 -0
  57. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/capabilities/compaction.py +0 -0
  58. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/capabilities/eager_timing.py +0 -0
  59. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/chatgpt_codex_client.py +0 -0
  60. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/claude_cache_client.py +0 -0
  61. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/claude_oauth_transport.py +0 -0
  62. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/cli_runner.py +0 -0
  63. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/__init__.py +0 -0
  64. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/add_model_details.py +0 -0
  65. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/add_model_menu.py +0 -0
  66. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/add_model_menus.py +0 -0
  67. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/add_model_vllm.py +0 -0
  68. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/agent_menu.py +0 -0
  69. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/attachments.py +0 -0
  70. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/autosave_menu.py +0 -0
  71. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/autosave_search.py +0 -0
  72. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/clipboard.py +0 -0
  73. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/colors_menu.py +0 -0
  74. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/command_handler.py +0 -0
  75. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/command_registry.py +0 -0
  76. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/completers.py +0 -0
  77. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/completion_cache.py +0 -0
  78. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/config_apply.py +0 -0
  79. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/config_commands.py +0 -0
  80. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/core_commands.py +0 -0
  81. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/file_index.py +0 -0
  82. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/file_path_completion.py +0 -0
  83. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/help_catalog.py +0 -0
  84. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/help_overlay.py +0 -0
  85. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/image_utils.py +0 -0
  86. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/load_context_completion.py +0 -0
  87. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/__init__.py +0 -0
  88. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/base.py +0 -0
  89. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/catalog_server_installer.py +0 -0
  90. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/custom_server_form.py +0 -0
  91. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/custom_server_installer.py +0 -0
  92. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/edit_command.py +0 -0
  93. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/handler.py +0 -0
  94. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/help_command.py +0 -0
  95. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/install_command.py +0 -0
  96. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/install_menu.py +0 -0
  97. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/list_command.py +0 -0
  98. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/logs_command.py +0 -0
  99. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/mcp_servers_store.py +0 -0
  100. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/remove_command.py +0 -0
  101. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/restart_command.py +0 -0
  102. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/search_command.py +0 -0
  103. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/silence_warning_command.py +0 -0
  104. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/start_all_command.py +0 -0
  105. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/start_command.py +0 -0
  106. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/status_command.py +0 -0
  107. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/stop_all_command.py +0 -0
  108. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/stop_command.py +0 -0
  109. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/trust_command.py +0 -0
  110. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/utils.py +0 -0
  111. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp/wizard_utils.py +0 -0
  112. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp_binding_menu.py +0 -0
  113. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/mcp_completion.py +0 -0
  114. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/menu_session.py +0 -0
  115. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/model_picker_completion.py +0 -0
  116. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/model_settings_defs.py +0 -0
  117. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/model_settings_menu.py +0 -0
  118. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/onboarding_slides.py +0 -0
  119. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/onboarding_wizard.py +0 -0
  120. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/pagination.py +0 -0
  121. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/pin_command_completion.py +0 -0
  122. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/refresh_models.py +0 -0
  123. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/session_browser.py +0 -0
  124. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/session_browser_data.py +0 -0
  125. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/session_commands.py +0 -0
  126. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/set_menu.py +0 -0
  127. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/set_menu_schema.py +0 -0
  128. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/set_menu_settings.py +0 -0
  129. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/set_menu_values.py +0 -0
  130. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/shell_passthrough.py +0 -0
  131. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/skills_completion.py +0 -0
  132. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/tui_style.py +0 -0
  133. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/uc_menu.py +0 -0
  134. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/command_line/utils.py +0 -0
  135. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/config_file.py +0 -0
  136. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/diagnostics.py +0 -0
  137. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/error_logging.py +0 -0
  138. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/events/__init__.py +0 -0
  139. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/events/bridge.py +0 -0
  140. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/file_completion_io.py +0 -0
  141. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/file_completion_tokens.py +0 -0
  142. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/gemini_code_assist.py +0 -0
  143. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/gemini_common.py +0 -0
  144. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/gemini_model.py +0 -0
  145. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/README.md +0 -0
  146. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/__init__.py +0 -0
  147. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/aliases.py +0 -0
  148. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/engine.py +0 -0
  149. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/executor.py +0 -0
  150. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/matcher.py +0 -0
  151. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/models.py +0 -0
  152. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/registry.py +0 -0
  153. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/hook_engine/validator.py +0 -0
  154. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/http_retry.py +0 -0
  155. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/http_utils.py +0 -0
  156. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/httpx2_utils.py +0 -0
  157. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/__init__.py +0 -0
  158. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/audit.py +0 -0
  159. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/catalog.py +0 -0
  160. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/formats.py +0 -0
  161. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/interpolation.py +0 -0
  162. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/locale.py +0 -0
  163. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/locales/en-US.json +0 -0
  164. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/locales/es.json +0 -0
  165. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/locales/fr-CA.json +0 -0
  166. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/plugin_catalog.py +0 -0
  167. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/plurals.py +0 -0
  168. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/pseudo.py +0 -0
  169. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/i18n/translate.py +0 -0
  170. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/kennel_provider.py +0 -0
  171. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/keymap.py +0 -0
  172. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/list_filtering.py +0 -0
  173. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/main.py +0 -0
  174. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/__init__.py +0 -0
  175. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/agent_bindings.py +0 -0
  176. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/async_lifecycle.py +0 -0
  177. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/blocking_startup.py +0 -0
  178. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/circuit_breaker.py +0 -0
  179. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/config_wizard.py +0 -0
  180. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/dashboard.py +0 -0
  181. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/error_isolation.py +0 -0
  182. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/examples/retry_example.py +0 -0
  183. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/health_monitor.py +0 -0
  184. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/http_auth.py +0 -0
  185. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/managed_server.py +0 -0
  186. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/manager.py +0 -0
  187. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/manager_lifecycle.py +0 -0
  188. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/mcp_logs.py +0 -0
  189. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/project_config.py +0 -0
  190. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/registry.py +0 -0
  191. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/retry_manager.py +0 -0
  192. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/server_registry_catalog.py +0 -0
  193. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/status_tracker.py +0 -0
  194. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/system_tools.py +0 -0
  195. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/tool_arg_coercion.py +0 -0
  196. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_/toolset_utils.py +0 -0
  197. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_prompts/__init__.py +0 -0
  198. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/mcp_prompts/hook_creator.py +0 -0
  199. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/__init__.py +0 -0
  200. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/bar_painters.py +0 -0
  201. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/bar_rendering.py +0 -0
  202. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/bottom_bar.py +0 -0
  203. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/bus.py +0 -0
  204. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/chords.py +0 -0
  205. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/commands.py +0 -0
  206. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_actions.py +0 -0
  207. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_completion.py +0 -0
  208. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_display.py +0 -0
  209. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_history.py +0 -0
  210. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_keys.py +0 -0
  211. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_paste.py +0 -0
  212. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_queue.py +0 -0
  213. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/editor_submission.py +0 -0
  214. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/external_editor.py +0 -0
  215. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/identity_line.py +0 -0
  216. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/idle_status.py +0 -0
  217. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/inline_bar.py +0 -0
  218. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/line_editor.py +0 -0
  219. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/markdown_patches.py +0 -0
  220. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/menu_lifecycle.py +0 -0
  221. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/message_queue.py +0 -0
  222. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/messages.py +0 -0
  223. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/pause_controller.py +0 -0
  224. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/prompt_prefix_style.py +0 -0
  225. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/queue_console.py +0 -0
  226. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/renderers.py +0 -0
  227. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/rich_renderer.py +0 -0
  228. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/run_ui.py +0 -0
  229. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/run_ui_wiring.py +0 -0
  230. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/speculation_line.py +0 -0
  231. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/speculation_stats.py +0 -0
  232. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/speculation_toggle.py +0 -0
  233. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/spinner/__init__.py +0 -0
  234. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/status_line.py +0 -0
  235. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/subagent_console.py +0 -0
  236. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/theme_accent.py +0 -0
  237. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/tool_output.py +0 -0
  238. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/messaging/transcript_guard.py +0 -0
  239. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/model_descriptions.py +0 -0
  240. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/model_factory.py +0 -0
  241. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/model_switching.py +0 -0
  242. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/model_utils.py +0 -0
  243. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/models.json +0 -0
  244. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/models_dev_api.json +0 -0
  245. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/models_dev_parser.py +0 -0
  246. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/observability.py +0 -0
  247. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/platform_utils.py +0 -0
  248. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/plugins/__init__.py +0 -0
  249. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/plugins/config.py +0 -0
  250. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/plugins/oauth_pasteback.py +0 -0
  251. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/plugins/oauth_puppy_html.py +0 -0
  252. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/plugins/trust.py +0 -0
  253. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/plugins/trust_notice.py +0 -0
  254. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/private_inference.py +0 -0
  255. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/provider_credentials.py +0 -0
  256. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/provider_identity.py +0 -0
  257. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/pydantic_patches.py +0 -0
  258. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/reopenable_async_client.py +0 -0
  259. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/round_robin_model.py +0 -0
  260. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/secret_store.py +0 -0
  261. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/secret_store_backends.py +0 -0
  262. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/session_format_migration.py +0 -0
  263. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/session_lifecycle.py +0 -0
  264. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/session_migration.py +0 -0
  265. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/session_storage.py +0 -0
  266. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/session_surrogate_unpickler.py +0 -0
  267. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/shared_credentials.py +0 -0
  268. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/skill_provider.py +0 -0
  269. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/splash.py +0 -0
  270. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/status_display.py +0 -0
  271. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/steer_metadata.py +0 -0
  272. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/token_usage.py +0 -0
  273. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/__init__.py +0 -0
  274. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/_browser_registry.py +0 -0
  275. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/_lazy.py +0 -0
  276. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/agent_tools.py +0 -0
  277. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/__init__.py +0 -0
  278. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/constants.py +0 -0
  279. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/demo_tui.py +0 -0
  280. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/handler.py +0 -0
  281. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/models.py +0 -0
  282. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/registration.py +0 -0
  283. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/renderers.py +0 -0
  284. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/terminal_ui.py +0 -0
  285. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/theme.py +0 -0
  286. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ask_user_question/tui_loop.py +0 -0
  287. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/__init__.py +0 -0
  288. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_control.py +0 -0
  289. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_interactions.py +0 -0
  290. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_locator_resolver.py +0 -0
  291. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_locators.py +0 -0
  292. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_manager.py +0 -0
  293. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_navigation.py +0 -0
  294. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_page_snapshot.py +0 -0
  295. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_screenshot.py +0 -0
  296. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_scripts.py +0 -0
  297. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_semantic_interactions.py +0 -0
  298. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/browser_workflows.py +0 -0
  299. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/browser/tool_registry.py +0 -0
  300. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/command_runner.py +0 -0
  301. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/common.py +0 -0
  302. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/display.py +0 -0
  303. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/file_modifications.py +0 -0
  304. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/file_operations.py +0 -0
  305. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/file_permission_state.py +0 -0
  306. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/fs_access.py +0 -0
  307. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/image_tools.py +0 -0
  308. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/io_backends.py +0 -0
  309. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/model_tools.py +0 -0
  310. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/ripgrep.py +0 -0
  311. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/shell_backgrounding.py +0 -0
  312. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/skills_tools.py +0 -0
  313. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/subagent_context.py +0 -0
  314. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/subagent_invocation.py +0 -0
  315. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/subagent_usage_metrics.py +0 -0
  316. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/tools_content.py +0 -0
  317. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/tools/universal_constructor.py +0 -0
  318. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/undo_manager.py +0 -0
  319. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/universal_constructor_provider.py +0 -0
  320. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/version_checker.py +0 -0
  321. {code_puppy-0.0.883 → code_puppy-0.0.885}/code_puppy/zai_model.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: code-puppy
3
- Version: 0.0.883
3
+ Version: 0.0.885
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
@@ -20,7 +20,7 @@ Requires-Dist: anthropic<2,>=1.0.0
20
20
  Requires-Dist: anyio>=4.7.0
21
21
  Requires-Dist: azure-identity>=1.15.0
22
22
  Requires-Dist: boto3>=1.43.9
23
- Requires-Dist: code-puppy-core-plugins>=0.0.74
23
+ Requires-Dist: code-puppy-core-plugins>=0.0.75
24
24
  Requires-Dist: httpx2>=2.7
25
25
  Requires-Dist: httpx[http2]>=0.24.1
26
26
  Requires-Dist: json-repair>=0.46.2
@@ -27,6 +27,7 @@ from __future__ import annotations
27
27
 
28
28
  import os
29
29
  import warnings
30
+ from pathlib import PureWindowsPath
30
31
  from typing import Any, List, Sequence
31
32
 
32
33
  import pydantic_ai
@@ -56,6 +57,16 @@ for _invalid_escape_category in (SyntaxWarning, DeprecationWarning):
56
57
  module=r"^<unknown>$",
57
58
  )
58
59
 
60
+ # MCP servers routinely ship tools without an output schema (Blender's
61
+ # screenshot tools, for one); the sandbox signature just degrades to
62
+ # ``-> Any``. Nothing the user can act on, so keep it off the terminal. The
63
+ # harness's name-collision warning is actionable and stays visible.
64
+ warnings.filterwarnings(
65
+ "ignore",
66
+ message=r"CodeMode: tool .* has no return schema",
67
+ category=UserWarning,
68
+ )
69
+
59
70
  # The read-only trio: pure with respect to the workspace, safe to re-run or discard.
60
71
  # Speculated even before an agent is bound (see DeclaredSpeculation).
61
72
  SANDBOXED_READ_ONLY_TOOLS = ("list_files", "read_file", "grep")
@@ -163,6 +174,23 @@ class SilenceToolOutput(AbstractCapability[Any]):
163
174
  bus.pop_tool_output_quiet()
164
175
 
165
176
 
177
+ def sandbox_mount_path(host_path: str) -> str:
178
+ """Where ``host_path`` appears inside the sandbox.
179
+
180
+ Monty's virtual filesystem is POSIX-only and rejects ``C:\\...`` outright,
181
+ so Windows paths get the Git Bash spelling every model already knows:
182
+ ``C:\\Users\\x`` -> ``/c/Users/x``, ``\\\\srv\\share\\x`` -> ``/srv/share/x``.
183
+ POSIX paths pass through untouched.
184
+ """
185
+ if host_path.startswith("/"):
186
+ return host_path
187
+ posix = PureWindowsPath(host_path).as_posix()
188
+ drive, colon, rest = posix.partition(":/")
189
+ if colon:
190
+ return f"/{drive.lower()}/{rest}".rstrip("/")
191
+ return "/" + posix.lstrip("/")
192
+
193
+
166
194
  def build_speculative_code_mode(agent_tools: Sequence[str]) -> List[Any]:
167
195
  """Build the speculative CodeMode capabilities when the flag is on, else ``[]``.
168
196
 
@@ -178,6 +206,7 @@ def build_speculative_code_mode(agent_tools: Sequence[str]) -> List[Any]:
178
206
  [name for name in SANDBOXED_READ_ONLY_TOOLS if name in agent_tools]
179
207
  )
180
208
  workspace = os.getcwd()
209
+ mount_path = sandbox_mount_path(workspace)
181
210
  return [
182
211
  CodeMode(
183
212
  tools=_sandbox_tool,
@@ -187,10 +216,11 @@ def build_speculative_code_mode(agent_tools: Sequence[str]) -> List[Any]:
187
216
  # launches the read-only calls beyond the execution frontier and the eager
188
217
  # feeds claim them.
189
218
  eager=True,
190
- # The workspace under its real path, so absolute paths in
191
- # prompts and snippets need no translation.
219
+ # The workspace under its real path on POSIX, so absolute paths
220
+ # need no translation; Windows needs a POSIX spelling, which
221
+ # CodeModeGuidance spells out for the model.
192
222
  mount=MountDir(
193
- virtual_path=workspace, host_path=workspace, mode="read-write"
223
+ virtual_path=mount_path, host_path=workspace, mode="read-write"
194
224
  ),
195
225
  # Isolated env + in-memory scratch files + host clock.
196
226
  os_access=OSAccess(),
@@ -198,5 +228,5 @@ def build_speculative_code_mode(agent_tools: Sequence[str]) -> List[Any]:
198
228
  SilenceToolOutput(),
199
229
  EagerTiming(),
200
230
  StreamedToolNameNormalizer(),
201
- CodeModeGuidance(),
231
+ CodeModeGuidance(host_path=workspace, mount_path=mount_path),
202
232
  ]
@@ -7,6 +7,7 @@ system prompt changes model behavior.
7
7
 
8
8
  from __future__ import annotations
9
9
 
10
+ from dataclasses import dataclass
10
11
  from typing import Any
11
12
 
12
13
  from pydantic_ai.capabilities import AbstractCapability
@@ -20,8 +21,10 @@ use them; do not attempt to call those functions as native tools.
20
21
 
21
22
  The sandbox also has direct capabilities, no function call needed:
22
23
 
23
- - The workspace is mounted read-write at its real absolute path: use
24
- `pathlib.Path` to read, write, glob, and stat project files directly.
24
+ - The workspace is mounted read-write (mount path at the end of these
25
+ instructions): use `pathlib.Path` with absolute paths under the mount to
26
+ read, write, glob, and stat project files directly. Relative paths do
27
+ not resolve inside the sandbox.
25
28
  - Environment variables (isolated), in-memory scratch files, and the real
26
29
  clock (`time` module) work.
27
30
  - There is NO network in the sandbox: anything remote goes through a
@@ -78,8 +81,23 @@ determines how fast it runs:
78
81
  """
79
82
 
80
83
 
84
+ def mount_note(host_path: str, mount_path: str) -> str:
85
+ """Where the workspace lives in the sandbox, spelled out for the model."""
86
+ if mount_path == host_path:
87
+ return f"\nWorkspace mount: `{mount_path}` (same as the host path).\n"
88
+ return (
89
+ f"\nWorkspace mount: `{mount_path}` is the host directory `{host_path}`.\n"
90
+ "Tool functions (`read_file`, `grep`, shell, ...) take host paths;\n"
91
+ "`pathlib` inside the sandbox takes mount paths.\n"
92
+ )
93
+
94
+
95
+ @dataclass
81
96
  class CodeModeGuidance(AbstractCapability[Any]):
82
97
  """Teach the model the fast-path snippet shape when the mode is on."""
83
98
 
99
+ host_path: str
100
+ mount_path: str
101
+
84
102
  def get_instructions(self) -> str:
85
- return CODE_MODE_GUIDANCE
103
+ return CODE_MODE_GUIDANCE + mount_note(self.host_path, self.mount_path)
@@ -604,17 +604,18 @@ def _listen_windows(
604
604
  suspend_event: Optional[threading.Event] = None,
605
605
  released_event: Optional[threading.Event] = None,
606
606
  ) -> None:
607
- """Windows listener entry — wraps the loop so VT input is ALWAYS
607
+ """Windows listener entry — wraps the loop so raw input is ALWAYS
608
608
  released on the way out (the parent shell expects classic key
609
- events; see ``enable_windows_vt_input`` for the scope contract)."""
610
- from code_puppy.terminal_utils import disable_windows_vt_input
609
+ events and line mode; see ``enable_windows_raw_input`` for the
610
+ scope contract)."""
611
+ from code_puppy.terminal_utils import disable_windows_raw_input
611
612
 
612
613
  try:
613
614
  _listen_windows_loop(
614
615
  stop_event, on_escape, on_cancel_agent, suspend_event, released_event
615
616
  )
616
617
  finally:
617
- disable_windows_vt_input()
618
+ disable_windows_raw_input()
618
619
 
619
620
 
620
621
  def _listen_windows_loop(
@@ -628,8 +629,8 @@ def _listen_windows_loop(
628
629
  import time
629
630
 
630
631
  from code_puppy.terminal_utils import (
631
- disable_windows_vt_input,
632
- enable_windows_vt_input,
632
+ disable_windows_raw_input,
633
+ enable_windows_raw_input,
633
634
  ensure_ctrl_c_disabled,
634
635
  )
635
636
 
@@ -640,11 +641,11 @@ def _listen_windows_loop(
640
641
  next_clamp_check = 0.0 # first lap re-clamps immediately
641
642
 
642
643
  while not stop_event.is_set():
643
- # Suspend: whoever suspended us reads via ReadConsoleInput and
644
- # expects classic key events — hand back without VT, re-clamp
645
- # immediately on resume so a post-menu paste isn't dropped.
644
+ # Suspend: whoever suspended us expects classic key events and
645
+ # its own console mode — hand back cooked, re-clamp immediately
646
+ # on resume so a post-menu paste isn't dropped.
646
647
  if suspend_event is not None and suspend_event.is_set():
647
- disable_windows_vt_input()
648
+ disable_windows_raw_input()
648
649
  _wait_while_suspended(stop_event, suspend_event, released_event)
649
650
  if stop_event.is_set():
650
651
  return
@@ -663,12 +664,14 @@ def _listen_windows_loop(
663
664
  ensure_ctrl_c_disabled()
664
665
  except Exception:
665
666
  pass
666
- # Same cadence for the VT-input clamp: without it ConPTY
667
- # drops the paste markers on image-only Ctrl+V (empty paste,
668
- # no key events to synthesize) — the paste-goes-dead bug.
669
- # No-op when the flag is already set.
667
+ # Same cadence for the raw-input clamp: without VT input
668
+ # ConPTY drops the paste markers on image-only Ctrl+V (empty
669
+ # paste, no key events to synthesize) — the paste-goes-dead
670
+ # bug; with LINE_INPUT left on, conhost turns Ctrl+S into
671
+ # "pause output" and freezes the Ctrl+X Ctrl+S chord (the
672
+ # IXON twin below). No-op when already raw.
670
673
  try:
671
- enable_windows_vt_input()
674
+ enable_windows_raw_input()
672
675
  except Exception:
673
676
  pass
674
677
 
@@ -881,7 +884,8 @@ def _posix_read_session(
881
884
  # quote-prefix (the 'Ctrl+V twice to paste an image' bug);
882
885
  # VDISCARD (Ctrl+O) is likewise IEXTEN-gated.
883
886
  # - IXON/IXOFF off: Ctrl+S would freeze output and brick a
884
- # repaint on this thread (2026-07-11 incident).
887
+ # repaint on this thread (2026-07-11 incident). Windows
888
+ # twin: ``enable_windows_raw_input`` drops LINE_INPUT.
885
889
  # - VINTR to _POSIX_VDISABLE: deliver ^C raw as \x03 instead
886
890
  # of SIGINT, keeping ^Z/^\ job control (ISIG stays on).
887
891
  # Restored with the original attrs on suspend/exit.
@@ -15,11 +15,9 @@ from __future__ import annotations
15
15
 
16
16
  from typing import Tuple
17
17
 
18
- from code_puppy.callbacks import get_feature_capability
19
18
  from code_puppy.command_line.set_menu_schema import Setting, SettingsCategory
20
19
  from code_puppy.command_line.set_menu_shims import (
21
20
  get_disable_mcp_servers_effective,
22
- get_goal_max_iterations_effective,
23
21
  get_max_pause_seconds_effective,
24
22
  )
25
23
  from code_puppy.config import (
@@ -35,9 +33,6 @@ from code_puppy.config import (
35
33
  get_diff_deletion_color,
36
34
  get_disable_dangerous_command_guard,
37
35
  get_enable_streaming,
38
- get_frontend_emitter_enabled,
39
- get_frontend_emitter_max_recent_events,
40
- get_frontend_emitter_queue_size,
41
36
  get_global_model_name,
42
37
  get_grep_max_matches,
43
38
  get_grep_output_verbose,
@@ -333,49 +328,8 @@ _FEATURES = SettingsCategory(
333
328
  type_hint="bool",
334
329
  effective_getter=get_universal_constructor_enabled,
335
330
  ),
336
- Setting(
337
- key="enable_dbos",
338
- display_name="DBOS Durable Execution",
339
- description="Enable DBOS durable execution plugin.",
340
- type_hint="bool",
341
- effective_getter=lambda: get_feature_capability("dbos_durable_exec"),
342
- requires_restart=True,
343
- ),
344
- Setting(
345
- key="frontend_emitter_enabled",
346
- display_name="Frontend Emitter",
347
- description="Enable the frontend event emitter for external integrations.",
348
- type_hint="bool",
349
- effective_getter=get_frontend_emitter_enabled,
350
- ),
351
- Setting(
352
- key="frontend_emitter_max_recent_events",
353
- display_name="Emitter Max Events",
354
- description="Maximum number of recent events kept in the emitter buffer.",
355
- type_hint="int",
356
- effective_getter=get_frontend_emitter_max_recent_events,
357
- ),
358
- Setting(
359
- key="frontend_emitter_queue_size",
360
- display_name="Emitter Queue Size",
361
- description="Size of the frontend emitter event queue.",
362
- type_hint="int",
363
- effective_getter=get_frontend_emitter_queue_size,
364
- ),
365
- ),
366
- )
367
-
368
-
369
- _GOAL = SettingsCategory(
370
- name="Goal",
371
- settings=(
372
- Setting(
373
- key="goal_max_iterations",
374
- display_name="Goal Max Iterations",
375
- description="Maximum number of iterations for goal-driven tasks (1-1000).",
376
- type_hint="int",
377
- effective_getter=get_goal_max_iterations_effective,
378
- ),
331
+ # Plugin-owned features (DBOS, frontend emitter, ...) merge in here
332
+ # via the register_settings hook.
379
333
  ),
380
334
  )
381
335
 
@@ -666,7 +620,6 @@ SETTINGS_CATEGORIES: Tuple[SettingsCategory, ...] = (
666
620
  _OUTPUT,
667
621
  _FEATURES,
668
622
  _MCP,
669
- _GOAL,
670
623
  _KEYBOARD,
671
624
  _DIFF,
672
625
  _RETRY,
@@ -26,16 +26,6 @@ def get_max_pause_seconds_effective() -> float:
26
26
  return 180.0
27
27
 
28
28
 
29
- def get_goal_max_iterations_effective() -> int:
30
- """Mirrors the goal-iteration clamp owned by the wiggum plugin."""
31
- val = get_value("goal_max_iterations")
32
- try:
33
- n = int(val) if val else 10 # GOAL_MAX_ITERATIONS_DEFAULT
34
- except (TypeError, ValueError):
35
- n = 10
36
- return max(1, min(n, 1000))
37
-
38
-
39
29
  def get_disable_mcp_servers_effective() -> bool:
40
30
  """Mirrors the inline check at ``tools/subagent_invocation.py``.
41
31
 
@@ -641,6 +641,9 @@ def get_config_keys():
641
641
  """
642
642
  Returns the list of all config keys currently in puppy.cfg,
643
643
  plus certain preset expected keys (e.g. "yolo_mode", "model", "compaction_strategy", "message_limit", "allow_recursion").
644
+
645
+ Only core-owned keys belong in ``default_keys``: plugins declare theirs
646
+ through the ``register_settings`` hook (see :func:`_plugin_setting_keys`).
644
647
  """
645
648
  default_keys = [
646
649
  "yolo_mode",
@@ -649,7 +652,6 @@ def get_config_keys():
649
652
  "protected_token_count",
650
653
  "compaction_threshold",
651
654
  "summarization_model",
652
- "auto_continue_model",
653
655
  "message_limit",
654
656
  "allow_recursion",
655
657
  "subagent_recursion_limit",
@@ -660,13 +662,8 @@ def get_config_keys():
660
662
  "diff_context_lines",
661
663
  "default_agent",
662
664
  "temperature",
663
- "frontend_emitter_enabled",
664
- "frontend_emitter_max_recent_events",
665
- "frontend_emitter_queue_size",
666
665
  "locale",
667
- "timestamp_heartbeat_interval",
668
666
  ]
669
- # 'enable_dbos' is plugin-reserved (read via get_value); not in default_keys.
670
667
  # Add pack agents control key
671
668
  default_keys.append("enable_pack_agents")
672
669
  # Add universal constructor control key
@@ -694,9 +691,6 @@ def get_config_keys():
694
691
  # Tool-output reduction threshold in chars for the harness ToolOutputLimits
695
692
  # capability (see get_tool_output_limit_chars()). 0 or negative disables.
696
693
  default_keys.append("tool_output_limit_chars")
697
- # Add /goal iteration cap (owned by the wiggum plugin, surfaced here so
698
- # /set autocompletes it). See plugins/wiggum/register_callbacks.py.
699
- default_keys.append("goal_max_iterations")
700
694
  # How relentlessly the agent proceeds without checking in; headless -p
701
695
  # runs always behave as 'extreme' (see get_agency_level()).
702
696
  default_keys.append("agency_level")
@@ -154,9 +154,24 @@ def ensure_windows_vt_processing() -> bool:
154
154
  #: ENABLE_VIRTUAL_TERMINAL_INPUT — stdin delivers VT sequences verbatim.
155
155
  _ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200
156
156
 
157
+ #: Cooked-mode bits (ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT; ECHO is only
158
+ #: legal alongside LINE, so they travel together). With LINE_INPUT on,
159
+ #: conhost treats Ctrl+S / Pause as "suspend output" — the Windows twin of
160
+ #: POSIX XOFF (see the IXON clamp in ``_key_listeners``) — which froze the
161
+ #: terminal on the Ctrl+X Ctrl+S speculation chord.
162
+ _COOKED_INPUT_BITS = 0x0002 | 0x0004
157
163
 
158
- def enable_windows_vt_input() -> bool:
159
- """Enable VT input (``ENABLE_VIRTUAL_TERMINAL_INPUT``) on stdin, verified.
164
+ #: Cooked bits the raw clamp stripped; handed back on release so we only
165
+ #: ever restore what we took (0 = nothing to restore).
166
+ _stripped_cooked_bits: int = 0
167
+
168
+
169
+ def enable_windows_raw_input() -> bool:
170
+ """Put stdin in listener raw mode: cooked bits off, VT input on (verified).
171
+
172
+ Cooked bits go first and independently: every host supports clearing
173
+ them, while ancient hosts reject the VT flag outright — Ctrl+S must
174
+ stop freezing the console even there.
160
175
 
161
176
  ConPTY only forwards terminal-side VT input sequences to a client
162
177
  whose stdin carries this flag. Bracketed-paste markers
@@ -170,12 +185,16 @@ def enable_windows_vt_input() -> bool:
170
185
  empty bracketed paste.
171
186
 
172
187
  Scope contract: only the Windows key listener enables this, while it
173
- owns stdin — and it disables it around suspensions, because
174
- ``ReadConsoleInput``-based readers (prompt_toolkit TUIs) expect
175
- classic key events. Returns True when the flag is CONFIRMED set via
176
- a mode read-back (mirrors :func:`ensure_windows_vt_processing`;
177
- ancient hosts silently no-op ``SetConsoleMode``). Never raises.
188
+ owns stdin (both of its readers use ``ReadConsoleInput``, which
189
+ ignores line mode) — and it disables it around suspensions, because
190
+ other readers (prompt_toolkit TUIs, ``input()``) expect classic key
191
+ events and their own console mode. Returns True when the VT flag is
192
+ CONFIRMED set via a mode read-back (mirrors
193
+ :func:`ensure_windows_vt_processing`; ancient hosts silently no-op
194
+ ``SetConsoleMode``). Never raises.
178
195
  """
196
+ global _stripped_cooked_bits
197
+
179
198
  if platform.system() != "Windows":
180
199
  return False
181
200
 
@@ -188,11 +207,20 @@ def enable_windows_vt_input() -> bool:
188
207
  mode = ctypes.c_ulong()
189
208
  if not kernel32.GetConsoleMode(stdin_handle, ctypes.byref(mode)):
190
209
  return False
191
- if mode.value & _ENABLE_VIRTUAL_TERMINAL_INPUT:
210
+ current = mode.value
211
+
212
+ cooked = current & _COOKED_INPUT_BITS
213
+ if cooked and kernel32.SetConsoleMode(
214
+ stdin_handle, current & ~_COOKED_INPUT_BITS
215
+ ):
216
+ _stripped_cooked_bits |= cooked
217
+ current &= ~_COOKED_INPUT_BITS
218
+
219
+ if current & _ENABLE_VIRTUAL_TERMINAL_INPUT:
192
220
  return True # already on
193
221
 
194
222
  if not kernel32.SetConsoleMode(
195
- stdin_handle, mode.value | _ENABLE_VIRTUAL_TERMINAL_INPUT
223
+ stdin_handle, current | _ENABLE_VIRTUAL_TERMINAL_INPUT
196
224
  ):
197
225
  return False
198
226
 
@@ -204,14 +232,17 @@ def enable_windows_vt_input() -> bool:
204
232
  return False
205
233
 
206
234
 
207
- def disable_windows_vt_input() -> None:
208
- """Clear ``ENABLE_VIRTUAL_TERMINAL_INPUT`` from stdin (best-effort).
235
+ def disable_windows_raw_input() -> None:
236
+ """Undo :func:`enable_windows_raw_input` on stdin (best-effort).
209
237
 
210
- Called by the Windows key listener before parking for a suspension
211
- and on exit, so ``ReadConsoleInput``-based readers (prompt_toolkit
212
- TUIs, the parent shell after we quit) get classic key events instead
213
- of raw VT sequences. Never raises.
238
+ Clears VT input and hands back exactly the cooked bits the clamp
239
+ stripped. Called by the Windows key listener before parking for a
240
+ suspension and on exit, so other readers (prompt_toolkit TUIs, the
241
+ parent shell after we quit) get classic key events and line mode
242
+ instead of raw VT sequences. Never raises.
214
243
  """
244
+ global _stripped_cooked_bits
245
+
215
246
  if platform.system() != "Windows":
216
247
  return
217
248
 
@@ -224,10 +255,11 @@ def disable_windows_vt_input() -> None:
224
255
  mode = ctypes.c_ulong()
225
256
  if not kernel32.GetConsoleMode(stdin_handle, ctypes.byref(mode)):
226
257
  return
227
- if mode.value & _ENABLE_VIRTUAL_TERMINAL_INPUT:
228
- kernel32.SetConsoleMode(
229
- stdin_handle, mode.value & ~_ENABLE_VIRTUAL_TERMINAL_INPUT
230
- )
258
+ restored = (
259
+ mode.value & ~_ENABLE_VIRTUAL_TERMINAL_INPUT
260
+ ) | _stripped_cooked_bits
261
+ if restored == mode.value or kernel32.SetConsoleMode(stdin_handle, restored):
262
+ _stripped_cooked_bits = 0
231
263
  except Exception:
232
264
  pass
233
265
 
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "code-puppy"
7
- version = "0.0.883"
7
+ version = "0.0.885"
8
8
  description = "Code generation agent"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11,<3.15"
11
11
  dependencies = [
12
- "code-puppy-core-plugins>=0.0.74",
12
+ "code-puppy-core-plugins>=0.0.75",
13
13
  "logfire>=4.0",
14
14
  "pydantic-ai-slim[openai,anthropic,mcp]==2.51.0",
15
15
  "pydantic-ai-harness[code-mode]==0.35.0",
File without changes
File without changes
File without changes