shotgun-sh 0.1.13__tar.gz → 0.1.14.dev1__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.
Potentially problematic release.
This version of shotgun-sh might be problematic. Click here for more details.
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/PKG-INFO +1 -1
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/pyproject.toml +1 -1
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/agent_manager.py +20 -24
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/build_constants.py +2 -2
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat.py +2 -21
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/.gitignore +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/LICENSE +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/README.md +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/hatch_build.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/common.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/config/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/config/constants.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/config/manager.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/config/models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/config/provider.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/conversation_history.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/conversation_manager.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/export.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/compaction.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/constants.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/context_extraction.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/history_building.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/history_processors.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/message_utils.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/token_counting.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/token_estimation.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/messages.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/plan.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/research.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/specify.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tasks.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/codebase_shell.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/directory_lister.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/file_read.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/query_graph.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/retrieve_code.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/file_management.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/user_interaction.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/web_search/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/web_search/anthropic.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/web_search/gemini.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/web_search/openai.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/web_search/utils.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/codebase/commands.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/codebase/models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/config.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/export.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/plan.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/research.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/specify.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/tasks.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/update.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/cli/utils.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/change_detector.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/code_retrieval.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/cypher_models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/ingestor.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/language_config.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/manager.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/nl_query.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/core/parser_loader.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/codebase/service.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/logging_config.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/main.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/posthog_telemetry.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/export.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/partials/codebase_understanding.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/partials/common_agent_system_prompt.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/partials/content_formatting.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/partials/interactive_mode.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/plan.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/research.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/specify.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/state/codebase/codebase_graphs_available.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/state/system_state.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/tasks.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/cypher_query_patterns.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/cypher_system.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/enhanced_query_context.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/partials/cypher_rules.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/partials/graph_schema.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/partials/temporal_context.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/history/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/history/incremental_summarization.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/history/summarization.j2 +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/loader.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/py.typed +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/sdk/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/sdk/codebase.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/sdk/exceptions.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/sdk/models.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/sdk/services.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/sentry_telemetry.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/telemetry.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/app.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/commands/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/components/prompt_input.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/components/spinner.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/components/splash.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/components/vertical_tail.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/filtered_codebase_service.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat.tcss +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat_screen/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat_screen/command_providers.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat_screen/hint_message.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat_screen/history.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/directory_setup.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/provider_config.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/splash.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/styles.tcss +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/utils/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/utils/mode_progress.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/utils/__init__.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/utils/env_utils.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/utils/file_system_utils.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/utils/source_detection.py +0 -0
- {shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/utils/update_checker.py +0 -0
|
@@ -31,7 +31,6 @@ from pydantic_ai.messages import (
|
|
|
31
31
|
SystemPromptPart,
|
|
32
32
|
ToolCallPart,
|
|
33
33
|
ToolCallPartDelta,
|
|
34
|
-
ToolReturnPart,
|
|
35
34
|
)
|
|
36
35
|
from textual.message import Message
|
|
37
36
|
from textual.widget import Widget
|
|
@@ -273,8 +272,15 @@ class AgentManager(Widget):
|
|
|
273
272
|
# Use merged deps (shared state + agent-specific system prompt) if not provided
|
|
274
273
|
if deps is None:
|
|
275
274
|
deps = self._create_merged_deps(self._current_agent_type)
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
ask_user_part = self.get_unanswered_ask_user_part()
|
|
276
|
+
if ask_user_part and prompt:
|
|
277
|
+
if not deferred_tool_results:
|
|
278
|
+
deferred_tool_results = DeferredToolResults()
|
|
279
|
+
deferred_tool_results.calls[ask_user_part.tool_call_id] = UserAnswer(
|
|
280
|
+
answer=prompt,
|
|
281
|
+
tool_call_id=ask_user_part.tool_call_id,
|
|
282
|
+
)
|
|
283
|
+
prompt = None
|
|
278
284
|
|
|
279
285
|
# Ensure deps is not None
|
|
280
286
|
if deps is None:
|
|
@@ -677,31 +683,21 @@ class AgentManager(Widget):
|
|
|
677
683
|
self.ui_message_history.append(message)
|
|
678
684
|
self._post_messages_updated()
|
|
679
685
|
|
|
680
|
-
def
|
|
686
|
+
def get_unanswered_ask_user_part(self) -> ToolCallPart | None:
|
|
681
687
|
if not self.message_history:
|
|
682
|
-
return
|
|
688
|
+
return None
|
|
683
689
|
self.last_response = self.message_history[-1]
|
|
684
690
|
## we're searching for unanswered ask_user parts
|
|
685
|
-
found_tool =
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
tool_result = ModelRequest(
|
|
693
|
-
parts=[
|
|
694
|
-
ToolReturnPart(
|
|
695
|
-
tool_call_id=found_tool.tool_call_id,
|
|
696
|
-
tool_name=found_tool.tool_name,
|
|
697
|
-
content=UserAnswer(
|
|
698
|
-
answer="⚠️ Operation cancelled by user",
|
|
699
|
-
tool_call_id=found_tool.tool_call_id,
|
|
700
|
-
),
|
|
701
|
-
)
|
|
702
|
-
]
|
|
691
|
+
found_tool = next(
|
|
692
|
+
(
|
|
693
|
+
part
|
|
694
|
+
for part in self.message_history[-1].parts
|
|
695
|
+
if isinstance(part, ToolCallPart) and part.tool_name == "ask_user"
|
|
696
|
+
),
|
|
697
|
+
None,
|
|
703
698
|
)
|
|
704
|
-
|
|
699
|
+
|
|
700
|
+
return found_tool
|
|
705
701
|
|
|
706
702
|
|
|
707
703
|
# Re-export AgentType for backward compatibility
|
|
@@ -12,8 +12,8 @@ POSTHOG_API_KEY = ''
|
|
|
12
12
|
POSTHOG_PROJECT_ID = '191396'
|
|
13
13
|
|
|
14
14
|
# Logfire configuration embedded at build time (only for dev builds)
|
|
15
|
-
LOGFIRE_ENABLED = ''
|
|
16
|
-
LOGFIRE_TOKEN = ''
|
|
15
|
+
LOGFIRE_ENABLED = 'true'
|
|
16
|
+
LOGFIRE_TOKEN = 'pylf_v1_us_KZ5NM1pP3NwgJkbBJt6Ftdzk8mMhmrXcGJHQQgDJ1LfK'
|
|
17
17
|
|
|
18
18
|
# Build metadata
|
|
19
19
|
BUILD_TIME_ENV = "production" if SENTRY_DSN else "development"
|
|
@@ -4,7 +4,7 @@ from dataclasses import dataclass
|
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from typing import cast
|
|
6
6
|
|
|
7
|
-
from pydantic_ai import
|
|
7
|
+
from pydantic_ai import RunContext
|
|
8
8
|
from pydantic_ai.messages import (
|
|
9
9
|
ModelMessage,
|
|
10
10
|
ModelRequest,
|
|
@@ -37,7 +37,6 @@ from shotgun.agents.models import (
|
|
|
37
37
|
AgentDeps,
|
|
38
38
|
AgentType,
|
|
39
39
|
FileOperationTracker,
|
|
40
|
-
UserAnswer,
|
|
41
40
|
UserQuestion,
|
|
42
41
|
)
|
|
43
42
|
from shotgun.codebase.core.manager import CodebaseAlreadyIndexedError
|
|
@@ -712,7 +711,6 @@ class ChatScreen(Screen[None]):
|
|
|
712
711
|
|
|
713
712
|
@work
|
|
714
713
|
async def run_agent(self, message: str) -> None:
|
|
715
|
-
deferred_tool_results = None
|
|
716
714
|
prompt = None
|
|
717
715
|
self.working = True
|
|
718
716
|
|
|
@@ -721,32 +719,15 @@ class ChatScreen(Screen[None]):
|
|
|
721
719
|
|
|
722
720
|
self._current_worker = get_current_worker()
|
|
723
721
|
|
|
724
|
-
|
|
725
|
-
# This is a response to a question from the agent
|
|
726
|
-
self.question.result.set_result(
|
|
727
|
-
UserAnswer(answer=message, tool_call_id=self.question.tool_call_id)
|
|
728
|
-
)
|
|
729
|
-
|
|
730
|
-
deferred_tool_results = DeferredToolResults()
|
|
731
|
-
|
|
732
|
-
deferred_tool_results.calls[self.question.tool_call_id] = UserAnswer(
|
|
733
|
-
answer=message, tool_call_id=self.question.tool_call_id
|
|
734
|
-
)
|
|
735
|
-
|
|
736
|
-
self.question = None
|
|
737
|
-
else:
|
|
738
|
-
# This is a new user prompt
|
|
739
|
-
prompt = message
|
|
722
|
+
prompt = message
|
|
740
723
|
|
|
741
724
|
try:
|
|
742
725
|
await self.agent_manager.run(
|
|
743
726
|
prompt=prompt,
|
|
744
|
-
deferred_tool_results=deferred_tool_results,
|
|
745
727
|
)
|
|
746
728
|
except asyncio.CancelledError:
|
|
747
729
|
# Handle cancellation gracefully - DO NOT re-raise
|
|
748
730
|
self.mount_hint("⚠️ Operation cancelled by user")
|
|
749
|
-
self.agent_manager.ensure_agent_canecelled_safely()
|
|
750
731
|
finally:
|
|
751
732
|
self.working = False
|
|
752
733
|
self._current_worker = None
|
|
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
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/context_extraction.py
RENAMED
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/history/history_processors.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
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/codebase_shell.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/directory_lister.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/query_graph.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/codebase/retrieve_code.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/web_search/__init__.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/agents/tools/web_search/anthropic.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
|
|
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
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/partials/interactive_mode.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/agents/state/system_state.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/cypher_query_patterns.j2
RENAMED
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/enhanced_query_context.j2
RENAMED
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/partials/cypher_rules.j2
RENAMED
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/prompts/codebase/partials/graph_schema.j2
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
|
|
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
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat_screen/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.13 → shotgun_sh-0.1.14.dev1}/src/shotgun/tui/screens/chat_screen/hint_message.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
|
|
File without changes
|