shotgun-sh 0.1.0.dev28__tar.gz → 0.1.0.dev29__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.0.dev28 → shotgun_sh-0.1.0.dev29}/PKG-INFO +1 -1
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/pyproject.toml +1 -1
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/anthropic.py +4 -7
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/logging_config.py +21 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/main.py +9 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/posthog_telemetry.py +4 -2
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/sentry_telemetry.py +4 -2
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/telemetry.py +3 -2
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat.py +2 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/.gitignore +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/LICENSE +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/README.md +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/hatch_build.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/agent_manager.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/common.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/config/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/config/constants.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/config/manager.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/config/models.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/config/provider.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/conversation_history.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/conversation_manager.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/export.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/compaction.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/constants.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/context_extraction.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/history_building.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/history_processors.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/message_utils.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/token_counting.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/token_estimation.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/messages.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/models.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/plan.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/research.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/specify.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tasks.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/codebase_shell.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/directory_lister.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/file_read.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/models.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/query_graph.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/retrieve_code.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/file_management.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/user_interaction.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/gemini.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/openai.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/utils.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/build_constants.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/codebase/commands.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/codebase/models.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/config.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/export.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/models.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/plan.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/research.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/specify.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/tasks.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/update.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/cli/utils.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/change_detector.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/code_retrieval.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/ingestor.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/language_config.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/manager.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/nl_query.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/parser_loader.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/models.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/service.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/export.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/partials/codebase_understanding.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/partials/common_agent_system_prompt.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/partials/content_formatting.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/partials/interactive_mode.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/plan.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/research.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/specify.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/state/codebase/codebase_graphs_available.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/state/system_state.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/tasks.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/cypher_query_patterns.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/cypher_system.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/enhanced_query_context.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/partials/cypher_rules.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/partials/graph_schema.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/partials/temporal_context.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/history/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/history/incremental_summarization.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/history/summarization.j2 +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/loader.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/py.typed +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/sdk/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/sdk/codebase.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/sdk/exceptions.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/sdk/models.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/sdk/services.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/app.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/commands/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/components/prompt_input.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/components/spinner.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/components/splash.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/components/vertical_tail.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat.tcss +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat_screen/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat_screen/command_providers.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat_screen/hint_message.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat_screen/history.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/directory_setup.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/provider_config.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/splash.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/styles.tcss +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/utils/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/utils/mode_progress.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/utils/__init__.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/utils/env_utils.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/utils/file_system_utils.py +0 -0
- {shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/utils/update_checker.py +0 -0
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/anthropic.py
RENAMED
|
@@ -90,16 +90,13 @@ def anthropic_web_search_tool(query: str) -> str:
|
|
|
90
90
|
|
|
91
91
|
def main() -> None:
|
|
92
92
|
"""Main function for testing the Anthropic web search tool."""
|
|
93
|
-
import logging
|
|
94
93
|
import os
|
|
95
94
|
import sys
|
|
96
95
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
stream=sys.stdout,
|
|
102
|
-
)
|
|
96
|
+
from shotgun.logging_config import setup_logger
|
|
97
|
+
|
|
98
|
+
# Use project's logging configuration instead of basicConfig
|
|
99
|
+
setup_logger(__name__)
|
|
103
100
|
|
|
104
101
|
if len(sys.argv) < 2:
|
|
105
102
|
print(
|
|
@@ -158,6 +158,27 @@ def setup_logger(
|
|
|
158
158
|
return logger
|
|
159
159
|
|
|
160
160
|
|
|
161
|
+
def get_early_logger(name: str) -> logging.Logger:
|
|
162
|
+
"""Get a logger with NullHandler for early initialization.
|
|
163
|
+
|
|
164
|
+
Use this for loggers created at module import time, before
|
|
165
|
+
configure_root_logger() is called. The NullHandler prevents
|
|
166
|
+
Python from automatically adding a StreamHandler when WARNING
|
|
167
|
+
or ERROR messages are logged.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
name: Logger name (typically __name__)
|
|
171
|
+
|
|
172
|
+
Returns:
|
|
173
|
+
Logger with NullHandler attached
|
|
174
|
+
"""
|
|
175
|
+
logger = logging.getLogger(name)
|
|
176
|
+
# Only add NullHandler if no handlers exist
|
|
177
|
+
if not logger.handlers:
|
|
178
|
+
logger.addHandler(logging.NullHandler())
|
|
179
|
+
return logger
|
|
180
|
+
|
|
181
|
+
|
|
161
182
|
def get_logger(name: str) -> logging.Logger:
|
|
162
183
|
"""Get a logger instance with default configuration.
|
|
163
184
|
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"""Main CLI application for shotgun."""
|
|
2
2
|
|
|
3
|
+
import logging
|
|
4
|
+
|
|
5
|
+
# CRITICAL: Add NullHandler to root logger before ANY other imports.
|
|
6
|
+
# This prevents Python from automatically adding a StreamHandler when
|
|
7
|
+
# WARNING/ERROR messages are logged by modules during import.
|
|
8
|
+
# DO NOT MOVE THIS BELOW OTHER IMPORTS.
|
|
9
|
+
logging.getLogger().addHandler(logging.NullHandler())
|
|
10
|
+
|
|
11
|
+
# ruff: noqa: E402 (module import not at top - intentionally after NullHandler setup)
|
|
3
12
|
from typing import Annotated
|
|
4
13
|
|
|
5
14
|
import typer
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"""PostHog analytics setup for Shotgun."""
|
|
2
2
|
|
|
3
|
-
import logging
|
|
4
3
|
import os
|
|
5
4
|
from typing import Any
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
from shotgun.logging_config import get_early_logger
|
|
7
|
+
|
|
8
|
+
# Use early logger to prevent automatic StreamHandler creation
|
|
9
|
+
logger = get_early_logger(__name__)
|
|
8
10
|
|
|
9
11
|
# Global PostHog client instance
|
|
10
12
|
_posthog_client = None
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"""Sentry observability setup for Shotgun."""
|
|
2
2
|
|
|
3
|
-
import logging
|
|
4
3
|
import os
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
from shotgun.logging_config import get_early_logger
|
|
6
|
+
|
|
7
|
+
# Use early logger to prevent automatic StreamHandler creation
|
|
8
|
+
logger = get_early_logger(__name__)
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
def setup_sentry_observability() -> bool:
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Observability setup for Logfire."""
|
|
2
2
|
|
|
3
|
-
import logging
|
|
4
3
|
import os
|
|
5
4
|
|
|
5
|
+
from shotgun.logging_config import get_early_logger
|
|
6
6
|
from shotgun.utils.env_utils import is_falsy, is_truthy
|
|
7
7
|
|
|
8
|
-
logger
|
|
8
|
+
# Use early logger to prevent automatic StreamHandler creation
|
|
9
|
+
logger = get_early_logger(__name__)
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
def setup_logfire_observability() -> bool:
|
|
@@ -760,6 +760,7 @@ def codebase_indexed_hint(codebase_name: str) -> str:
|
|
|
760
760
|
|
|
761
761
|
def help_text_with_codebase() -> str:
|
|
762
762
|
return (
|
|
763
|
+
"Howdy! Welcome to Shotgun - the context tool for software engineering. \n\nYou can research, build specs, plan, create tasks, and export context to your favorite code-gen agents.\n\n"
|
|
763
764
|
"I can help with:\n\n"
|
|
764
765
|
"- Speccing out a new feature\n"
|
|
765
766
|
"- Onboarding you onto this project\n"
|
|
@@ -770,6 +771,7 @@ def help_text_with_codebase() -> str:
|
|
|
770
771
|
|
|
771
772
|
def help_text_empty_dir() -> str:
|
|
772
773
|
return (
|
|
774
|
+
"Howdy! Welcome to Shotgun - the context tool for software engineering.\n\nYou can research, build specs, plan, create tasks, and export context to your favorite code-gen agents.\n\n"
|
|
773
775
|
"What would you like to build? Here are some examples:\n\n"
|
|
774
776
|
"- Research FastAPI vs Django\n"
|
|
775
777
|
"- Plan my new web app using React\n"
|
|
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.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/conversation_history.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/conversation_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/context_extraction.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/history_building.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/history_processors.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/message_utils.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/token_counting.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/history/token_estimation.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
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/file_read.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/models.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/query_graph.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/codebase/retrieve_code.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/file_management.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/user_interaction.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/__init__.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/gemini.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/openai.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/agents/tools/web_search/utils.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
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/change_detector.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/code_retrieval.py
RENAMED
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/language_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/codebase/core/parser_loader.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
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/agents/state/system_state.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/codebase/cypher_system.j2
RENAMED
|
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.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/prompts/history/summarization.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
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/components/prompt_input.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/components/vertical_tail.py
RENAMED
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat_screen/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/chat_screen/history.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/directory_setup.py
RENAMED
|
File without changes
|
{shotgun_sh-0.1.0.dev28 → shotgun_sh-0.1.0.dev29}/src/shotgun/tui/screens/provider_config.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
|