code-puppy 0.0.899__tar.gz → 0.0.901__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.
- {code_puppy-0.0.899 → code_puppy-0.0.901}/PKG-INFO +1 -1
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agent_execution_context.py +19 -3
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_run_signals.py +1 -1
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_runtime.py +7 -3
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/base_agent.py +6 -2
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/cli_runner.py +8 -8
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/config.py +5 -30
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_history.py +5 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_queue.py +14 -1
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_submission.py +12 -6
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/pause_controller.py +9 -1
- {code_puppy-0.0.899 → code_puppy-0.0.901}/pyproject.toml +1 -1
- {code_puppy-0.0.899 → code_puppy-0.0.901}/.gitignore +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/LICENSE +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/README.md +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/__main__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/_plugin_i18n_lifecycle.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/_pydantic_tool_helpers.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/_pydantic_video_patch.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agent_completion_inbox.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_builder.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_code_mode.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_code_mode_guidance.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_compaction.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_diagnostics.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_foreign_thinking.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_history.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_key_listeners.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_model_message_transform.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_non_streaming_render.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_output_limits.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_steer_processor.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_subagent_recursion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_windows_console.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/_wire_tool_names.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_code_puppy.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_creator_agent.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_helios.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_manager.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_model_judge.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_planning.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_qa_kitten.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/agent_web_retriever.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/event_stream_handler.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/json_agent.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/retry_checkpoint.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/retry_profiles.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/run_stats.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/smooth_stream.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/stream_status.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/subagent_stream_handler.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/agents/thinking_output.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/asyncio_cleanup.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/atomic_io.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/atomic_json.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/ca_bundle.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/callbacks.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/capabilities/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/capabilities/compaction.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/capabilities/eager_timing.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/chatgpt_codex_client.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/claude_cache_client.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/claude_oauth_transport.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/add_model_details.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/add_model_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/add_model_menus.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/add_model_vllm.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/agent_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/attachments.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/autosave_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/autosave_search.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/clipboard.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/colors_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/command_handler.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/command_registry.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/completers.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/completion_cache.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/config_apply.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/config_commands.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/core_commands.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/file_index.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/file_path_completion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/help_catalog.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/help_overlay.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/image_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/load_context_completion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/base.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/catalog_server_installer.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/custom_server_form.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/custom_server_installer.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/edit_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/handler.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/help_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/install_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/install_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/list_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/logs_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/mcp_servers_store.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/remove_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/restart_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/search_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/silence_warning_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/start_all_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/start_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/status_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/stop_all_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/stop_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/trust_command.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/wizard_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp_binding_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp_completion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/menu_session.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/model_picker_completion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/model_settings_defs.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/model_settings_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/onboarding_slides.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/onboarding_wizard.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/pagination.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/pin_command_completion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/refresh_models.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/session_browser.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/session_browser_data.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/session_commands.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/set_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/set_menu_catalog.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/set_menu_schema.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/set_menu_settings.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/set_menu_shims.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/set_menu_values.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/shell_passthrough.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/skills_completion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/tui_style.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/uc_menu.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/config_file.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/diagnostics.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/error_logging.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/events/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/events/bridge.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/file_completion_io.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/file_completion_tokens.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/gemini_code_assist.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/gemini_common.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/gemini_model.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/README.md +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/aliases.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/engine.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/executor.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/matcher.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/models.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/registry.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/hook_engine/validator.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/http_retry.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/http_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/httpx2_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/audit.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/catalog.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/formats.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/interpolation.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/locale.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/locales/en-US.json +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/locales/es.json +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/locales/fr-CA.json +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/plugin_catalog.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/plurals.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/pseudo.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/i18n/translate.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/kennel_provider.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/keymap.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/list_filtering.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/main.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/agent_bindings.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/async_lifecycle.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/blocking_startup.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/circuit_breaker.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/config_wizard.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/dashboard.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/error_isolation.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/examples/retry_example.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/health_monitor.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/http_auth.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/managed_server.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/manager.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/manager_lifecycle.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/mcp_logs.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/project_config.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/registry.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/retry_manager.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/server_registry_catalog.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/status_tracker.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/system_tools.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/tool_arg_coercion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_/toolset_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_prompts/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/mcp_prompts/hook_creator.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/bar_painters.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/bar_rendering.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/bottom_bar.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/bus.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/chords.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/commands.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_actions.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_completion.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_display.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_keys.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/editor_paste.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/external_editor.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/identity_line.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/idle_status.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/inline_bar.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/line_editor.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/markdown_patches.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/menu_lifecycle.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/message_queue.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/messages.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/prompt_prefix_style.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/queue_console.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/renderers.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/rich_renderer.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/run_ui.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/run_ui_wiring.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/speculation_line.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/speculation_stats.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/speculation_toggle.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/spinner/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/status_line.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/subagent_console.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/theme_accent.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/tool_output.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/messaging/transcript_guard.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/model_descriptions.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/model_factory.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/model_switching.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/model_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/models.json +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/models_dev_api.json +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/models_dev_parser.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/observability.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/platform_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/plugins/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/plugins/config.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/plugins/oauth_pasteback.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/plugins/oauth_puppy_html.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/plugins/trust.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/plugins/trust_notice.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/private_inference.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/provider_credentials.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/provider_identity.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/pydantic_patches.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/reopenable_async_client.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/round_robin_model.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/secret_store.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/secret_store_backends.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/session_format_migration.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/session_lifecycle.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/session_migration.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/session_storage.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/session_surrogate_unpickler.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/shared_credentials.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/skill_provider.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/splash.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/status_display.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/steer_metadata.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/terminal_utils.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/token_usage.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/_browser_registry.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/_lazy.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/agent_tools.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/approval_feedback.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/constants.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/demo_tui.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/handler.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/models.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/registration.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/renderers.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/terminal_ui.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/theme.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ask_user_question/tui_loop.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/__init__.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_control.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_interactions.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_locator_resolver.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_locators.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_manager.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_navigation.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_page_snapshot.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_screenshot.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_scripts.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_semantic_interactions.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/browser_workflows.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/browser/tool_registry.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/command_runner.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/common.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/display.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/file_modifications.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/file_operations.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/file_permission_state.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/fs_access.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/image_tools.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/io_backends.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/model_tools.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/ripgrep.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/shell_backgrounding.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/skills_tools.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/subagent_context.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/subagent_invocation.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/subagent_usage_metrics.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/tools_content.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/universal_constructor.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/tools/win_shell_io.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/undo_manager.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/universal_constructor_provider.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/version_checker.py +0 -0
- {code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/zai_model.py +0 -0
|
@@ -20,21 +20,37 @@ from typing import TYPE_CHECKING, Any, Generator
|
|
|
20
20
|
if TYPE_CHECKING:
|
|
21
21
|
from code_puppy.agents.base_agent import BaseAgent
|
|
22
22
|
|
|
23
|
-
__all__ = [
|
|
23
|
+
__all__ = [
|
|
24
|
+
"executing_agent_context",
|
|
25
|
+
"get_executing_agent",
|
|
26
|
+
"get_execution_output_type",
|
|
27
|
+
]
|
|
24
28
|
|
|
25
29
|
_executing_agent: ContextVar[Any | None] = ContextVar("executing_agent", default=None)
|
|
30
|
+
_execution_output_type: ContextVar[Any] = ContextVar(
|
|
31
|
+
"execution_output_type", default=str
|
|
32
|
+
)
|
|
26
33
|
|
|
27
34
|
|
|
28
35
|
@contextmanager
|
|
29
|
-
def executing_agent_context(
|
|
30
|
-
|
|
36
|
+
def executing_agent_context(
|
|
37
|
+
agent: Any, *, output_type: Any = str
|
|
38
|
+
) -> Generator[None, None, None]:
|
|
39
|
+
"""Expose the agent and invocation output contract to async-safe hooks."""
|
|
31
40
|
token = _executing_agent.set(agent)
|
|
41
|
+
output_token = _execution_output_type.set(output_type)
|
|
32
42
|
try:
|
|
33
43
|
yield
|
|
34
44
|
finally:
|
|
45
|
+
_execution_output_type.reset(output_token)
|
|
35
46
|
_executing_agent.reset(token)
|
|
36
47
|
|
|
37
48
|
|
|
38
49
|
def get_executing_agent() -> "BaseAgent | None":
|
|
39
50
|
"""Return the agent owning this execution context, if there is one."""
|
|
40
51
|
return _executing_agent.get()
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def get_execution_output_type() -> Any:
|
|
55
|
+
"""Return the invocation's output contract, or ``str`` outside a run."""
|
|
56
|
+
return _execution_output_type.get()
|
|
@@ -230,7 +230,7 @@ def prepare_queued_steer_injection(agent: Any, result: Any) -> Optional[Any]:
|
|
|
230
230
|
agent._message_history = list(result.all_messages())
|
|
231
231
|
steer_text = pending[0]
|
|
232
232
|
for leftover in pending[1:]:
|
|
233
|
-
pc.request_steer(leftover, mode="queue")
|
|
233
|
+
pc.request_steer(leftover, mode="queue", history_recorded=True)
|
|
234
234
|
content, _ = resolve_steer_content(steer_text)
|
|
235
235
|
return content
|
|
236
236
|
|
|
@@ -778,6 +778,10 @@ async def _run_with_mcp_impl(
|
|
|
778
778
|
# Selection must never block a run.
|
|
779
779
|
pass
|
|
780
780
|
|
|
781
|
+
# Expose this invocation's requested contract to lifecycle hooks, even
|
|
782
|
+
# when a previously built wrapper is reused unchanged.
|
|
783
|
+
effective_output_type = output_type if output_type is not None else str
|
|
784
|
+
|
|
781
785
|
if agent._code_generation_agent is None:
|
|
782
786
|
build_pydantic_agent(agent)
|
|
783
787
|
pydantic_agent = agent._code_generation_agent
|
|
@@ -922,7 +926,7 @@ async def _run_with_mcp_impl(
|
|
|
922
926
|
# concurrent runs). Owning the scope here — rather than wrapping the
|
|
923
927
|
# create_task call — keeps it correct regardless of how this coroutine
|
|
924
928
|
# is scheduled.
|
|
925
|
-
with executing_agent_context(agent):
|
|
929
|
+
with executing_agent_context(agent, output_type=effective_output_type):
|
|
926
930
|
return await _run_agent_task_body()
|
|
927
931
|
|
|
928
932
|
async def _run_agent_task_body() -> Any:
|
|
@@ -1027,7 +1031,7 @@ async def _run_with_mcp_impl(
|
|
|
1027
1031
|
# refresh, credential minting) finish before any HTTP leaves — else the
|
|
1028
1032
|
# task races ahead with stale credentials (issue #338).
|
|
1029
1033
|
try:
|
|
1030
|
-
with executing_agent_context(agent):
|
|
1034
|
+
with executing_agent_context(agent, output_type=effective_output_type):
|
|
1031
1035
|
await on_agent_run_start(
|
|
1032
1036
|
agent_name=agent.name,
|
|
1033
1037
|
model_name=agent.get_model_name(),
|
|
@@ -1208,7 +1212,7 @@ async def _run_with_mcp_impl(
|
|
|
1208
1212
|
except Exception:
|
|
1209
1213
|
pass
|
|
1210
1214
|
try:
|
|
1211
|
-
with executing_agent_context(agent):
|
|
1215
|
+
with executing_agent_context(agent, output_type=effective_output_type):
|
|
1212
1216
|
await on_agent_run_end(
|
|
1213
1217
|
agent_name=agent.name,
|
|
1214
1218
|
model_name=agent.get_model_name(),
|
|
@@ -292,8 +292,12 @@ class BaseAgent(ABC):
|
|
|
292
292
|
return probe
|
|
293
293
|
|
|
294
294
|
# ---- Orchestration (thin delegations) ---------------------------------
|
|
295
|
-
def reload_code_generation_agent(
|
|
296
|
-
|
|
295
|
+
def reload_code_generation_agent(
|
|
296
|
+
self, message_group: Optional[str] = None, *, output_type: Any = str
|
|
297
|
+
) -> Any:
|
|
298
|
+
return build_pydantic_agent(
|
|
299
|
+
self, output_type=output_type, message_group=message_group
|
|
300
|
+
)
|
|
297
301
|
|
|
298
302
|
async def run_with_mcp(self, prompt: str, **kwargs: Any) -> Any:
|
|
299
303
|
return await run_with_mcp(self, prompt, **kwargs)
|
|
@@ -30,7 +30,6 @@ from code_puppy.command_line.attachments import (
|
|
|
30
30
|
)
|
|
31
31
|
from code_puppy.config import (
|
|
32
32
|
AUTOSAVE_DIR,
|
|
33
|
-
COMMAND_HISTORY_FILE,
|
|
34
33
|
ensure_config_exists,
|
|
35
34
|
finalize_autosave_session,
|
|
36
35
|
get_current_session_name,
|
|
@@ -949,9 +948,9 @@ async def interactive_mode(message_renderer, initial_command: str = None) -> Non
|
|
|
949
948
|
# the CODE_PUPPY_CLASSIC_PROMPT escape hatch.
|
|
950
949
|
reset_windows_terminal_ansi()
|
|
951
950
|
task = input(">>> ")
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
951
|
+
# Classic input has no editor: capture history here, even for
|
|
952
|
+
# shell/slash/exit commands that return before agent dispatch.
|
|
953
|
+
save_command_to_history(task)
|
|
955
954
|
|
|
956
955
|
except (KeyboardInterrupt, asyncio.CancelledError) as cancel_exc:
|
|
957
956
|
# Ctrl+C: cancel input and continue. Reset terminal state on Windows
|
|
@@ -1131,16 +1130,17 @@ async def interactive_mode(message_renderer, initial_command: str = None) -> Non
|
|
|
1131
1130
|
emit_error(t("cli.autosave.load_failed", error=e))
|
|
1132
1131
|
continue
|
|
1133
1132
|
else:
|
|
1134
|
-
#
|
|
1133
|
+
# The raw slash command was captured by the input owner;
|
|
1134
|
+
# its expansion is a distinct newly created prompt.
|
|
1135
1135
|
task = command_result
|
|
1136
|
+
save_command_to_history(task)
|
|
1136
1137
|
elif command_result is False:
|
|
1137
1138
|
# Command not recognized, continue with normal processing
|
|
1138
1139
|
pass
|
|
1139
1140
|
|
|
1140
1141
|
if task.strip():
|
|
1141
|
-
#
|
|
1142
|
-
|
|
1143
|
-
|
|
1142
|
+
# History belongs to input capture (editor/classic/queue insertion),
|
|
1143
|
+
# not dispatch: queued or deferred inputs may already be recorded.
|
|
1144
1144
|
turn_result = None
|
|
1145
1145
|
turn_success = False
|
|
1146
1146
|
turn_error = None
|
|
@@ -2023,39 +2023,14 @@ def get_command_timeout_seconds() -> int:
|
|
|
2023
2023
|
|
|
2024
2024
|
|
|
2025
2025
|
def save_command_to_history(command: str):
|
|
2026
|
-
"""
|
|
2026
|
+
"""Persist newly captured input using the editor's canonical FileHistory format.
|
|
2027
2027
|
|
|
2028
|
-
|
|
2029
|
-
|
|
2028
|
+
Call at capture/creation, not again when an already-recorded task is dispatched.
|
|
2029
|
+
HistoryStore handles blank input and I/O failures without interrupting the UI.
|
|
2030
2030
|
"""
|
|
2031
|
-
import
|
|
2032
|
-
|
|
2033
|
-
try:
|
|
2034
|
-
timestamp = datetime.datetime.now().isoformat(timespec="seconds")
|
|
2035
|
-
|
|
2036
|
-
# Sanitize command to remove any invalid surrogate characters
|
|
2037
|
-
# that could cause encoding errors on Windows
|
|
2038
|
-
try:
|
|
2039
|
-
command = command.encode("utf-8", errors="surrogatepass").decode(
|
|
2040
|
-
"utf-8", errors="replace"
|
|
2041
|
-
)
|
|
2042
|
-
except (UnicodeEncodeError, UnicodeDecodeError):
|
|
2043
|
-
# If that fails, do a more aggressive cleanup
|
|
2044
|
-
command = "".join(
|
|
2045
|
-
char if ord(char) < 0xD800 or ord(char) > 0xDFFF else "\ufffd"
|
|
2046
|
-
for char in command
|
|
2047
|
-
)
|
|
2048
|
-
|
|
2049
|
-
with open(
|
|
2050
|
-
COMMAND_HISTORY_FILE, "a", encoding="utf-8", errors="surrogateescape"
|
|
2051
|
-
) as f:
|
|
2052
|
-
f.write(f"\n# {timestamp}\n{command}\n")
|
|
2053
|
-
except Exception as e:
|
|
2054
|
-
from code_puppy.messaging import emit_error
|
|
2031
|
+
from code_puppy.messaging.editor_history import HistoryStore
|
|
2055
2032
|
|
|
2056
|
-
|
|
2057
|
-
f"An unexpected error occurred while saving command history: {str(e)}"
|
|
2058
|
-
)
|
|
2033
|
+
HistoryStore(COMMAND_HISTORY_FILE).append(command)
|
|
2059
2034
|
|
|
2060
2035
|
|
|
2061
2036
|
def get_agent_pinned_model(agent_name: str) -> str:
|
|
@@ -51,6 +51,11 @@ class HistoryStore:
|
|
|
51
51
|
return
|
|
52
52
|
with self._lock:
|
|
53
53
|
try:
|
|
54
|
+
# Preserve the old config writer's Windows surrogate cleanup,
|
|
55
|
+
# now shared by every input owner. Ordinary text is unchanged.
|
|
56
|
+
text = text.encode("utf-8", errors="surrogatepass").decode(
|
|
57
|
+
"utf-8", errors="replace"
|
|
58
|
+
)
|
|
54
59
|
self._append_fallback(text)
|
|
55
60
|
except Exception:
|
|
56
61
|
logger.debug("history append failed", exc_info=True)
|
|
@@ -53,6 +53,7 @@ class QueuedMessageNavigator:
|
|
|
53
53
|
|
|
54
54
|
working = self._working
|
|
55
55
|
suppressions = list(self._originals)
|
|
56
|
+
self._record_edits()
|
|
56
57
|
self._restore(self._drafts)
|
|
57
58
|
return False, working, suppressions
|
|
58
59
|
|
|
@@ -66,6 +67,7 @@ class QueuedMessageNavigator:
|
|
|
66
67
|
return True, self._drafts[self._index]
|
|
67
68
|
|
|
68
69
|
working = self._working
|
|
70
|
+
self._record_edits()
|
|
69
71
|
self._restore(self._drafts)
|
|
70
72
|
return True, working
|
|
71
73
|
|
|
@@ -84,6 +86,7 @@ class QueuedMessageNavigator:
|
|
|
84
86
|
return False
|
|
85
87
|
|
|
86
88
|
self._drafts[self._index] = text
|
|
89
|
+
self._record_edits()
|
|
87
90
|
if mode == "now":
|
|
88
91
|
remaining = [
|
|
89
92
|
draft
|
|
@@ -96,6 +99,14 @@ class QueuedMessageNavigator:
|
|
|
96
99
|
self._restore(self._drafts)
|
|
97
100
|
return False
|
|
98
101
|
|
|
102
|
+
def _record_edits(self) -> None:
|
|
103
|
+
"""Persist changed drafts when committed, not on unchanged recall."""
|
|
104
|
+
from code_puppy.config import save_command_to_history
|
|
105
|
+
|
|
106
|
+
for original, draft in zip(self._originals, self._drafts):
|
|
107
|
+
if draft != original:
|
|
108
|
+
save_command_to_history(draft)
|
|
109
|
+
|
|
99
110
|
def cancel(self) -> None:
|
|
100
111
|
"""Abandon edits and put every reserved turn back unchanged."""
|
|
101
112
|
if self.active:
|
|
@@ -125,7 +136,9 @@ class QueuedMessageNavigator:
|
|
|
125
136
|
if controller is None:
|
|
126
137
|
controller = self._controller_provider()
|
|
127
138
|
for item in oldest_first:
|
|
128
|
-
controller.request_steer(
|
|
139
|
+
controller.request_steer(
|
|
140
|
+
item, mode="queue", history_recorded=True
|
|
141
|
+
)
|
|
129
142
|
except Exception:
|
|
130
143
|
logger.exception("queued messages could not be restored")
|
|
131
144
|
self._originals = []
|
|
@@ -37,6 +37,7 @@ def resolve_esc_timeout(editor) -> None:
|
|
|
37
37
|
def submit_buffer(editor, mode: str) -> Optional[str]:
|
|
38
38
|
"""Route the current buffer and return a transcript feedback line, if any."""
|
|
39
39
|
text = editor._buffer
|
|
40
|
+
editing_queue = editor._queued_messages.active
|
|
40
41
|
queue_route = editor._queued_messages.prepare_submit(text, mode)
|
|
41
42
|
editor._buffer = ""
|
|
42
43
|
editor._cursor = 0
|
|
@@ -47,10 +48,11 @@ def submit_buffer(editor, mode: str) -> Optional[str]:
|
|
|
47
48
|
if not stripped:
|
|
48
49
|
return None
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
if not editing_queue:
|
|
52
|
+
try:
|
|
53
|
+
editor._history.record_submit(text)
|
|
54
|
+
except Exception:
|
|
55
|
+
logger.debug("history record failed", exc_info=True)
|
|
54
56
|
|
|
55
57
|
# Plain Enter while editing a queued item updates it in place. There is no
|
|
56
58
|
# second submission to route (which would duplicate the queued turn).
|
|
@@ -95,14 +97,18 @@ def route_default(editor, text: str, mode: str) -> Optional[str]:
|
|
|
95
97
|
if not steer_text:
|
|
96
98
|
return "Usage: /steer <message>"
|
|
97
99
|
try:
|
|
98
|
-
editor._resolve_controller().request_steer(
|
|
100
|
+
editor._resolve_controller().request_steer(
|
|
101
|
+
steer_text, mode="now", history_recorded=True
|
|
102
|
+
)
|
|
99
103
|
except Exception:
|
|
100
104
|
logger.debug("steer fast path failed", exc_info=True)
|
|
101
105
|
return None
|
|
102
106
|
editor._command_queue.put(stripped)
|
|
103
107
|
return None
|
|
104
108
|
try:
|
|
105
|
-
editor._resolve_controller().request_steer(
|
|
109
|
+
editor._resolve_controller().request_steer(
|
|
110
|
+
text, mode=mode, history_recorded=True
|
|
111
|
+
)
|
|
106
112
|
except Exception:
|
|
107
113
|
logger.debug("request_steer failed", exc_info=True)
|
|
108
114
|
return None
|
|
@@ -225,7 +225,9 @@ class PauseController:
|
|
|
225
225
|
# Steering queue
|
|
226
226
|
# =========================================================================
|
|
227
227
|
|
|
228
|
-
def request_steer(
|
|
228
|
+
def request_steer(
|
|
229
|
+
self, text: str, mode: SteerMode = "now", *, history_recorded: bool = False
|
|
230
|
+
) -> None:
|
|
229
231
|
"""Queue a steering message for delivery to the agent.
|
|
230
232
|
|
|
231
233
|
The ``mode`` controls *when* the model sees it:
|
|
@@ -237,6 +239,8 @@ class PauseController:
|
|
|
237
239
|
then drained by ``_runtime._do_run``'s loop and submitted as
|
|
238
240
|
a fresh user turn. Won't interrupt in-progress work.
|
|
239
241
|
|
|
242
|
+
Newly created prompts are persisted at insertion, not drain. Set
|
|
243
|
+
``history_recorded`` for editor-owned input or requeued leftovers.
|
|
240
244
|
Empty / whitespace-only strings are silently ignored regardless
|
|
241
245
|
of mode.
|
|
242
246
|
"""
|
|
@@ -245,6 +249,10 @@ class PauseController:
|
|
|
245
249
|
stripped = text.strip()
|
|
246
250
|
if not stripped:
|
|
247
251
|
return
|
|
252
|
+
if not history_recorded:
|
|
253
|
+
from code_puppy.config import save_command_to_history
|
|
254
|
+
|
|
255
|
+
save_command_to_history(text)
|
|
248
256
|
with self._lock:
|
|
249
257
|
if mode == "queue":
|
|
250
258
|
self._steer_queue_queued.append(text)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/load_context_completion.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/catalog_server_installer.py
RENAMED
|
File without changes
|
|
File without changes
|
{code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/custom_server_installer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_puppy-0.0.899 → code_puppy-0.0.901}/code_puppy/command_line/mcp/silence_warning_command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|