shotgun-sh 0.2.11.dev7__py3-none-any.whl → 0.2.23.dev1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of shotgun-sh might be problematic. Click here for more details.

Files changed (51) hide show
  1. shotgun/agents/agent_manager.py +25 -11
  2. shotgun/agents/config/README.md +89 -0
  3. shotgun/agents/config/__init__.py +10 -1
  4. shotgun/agents/config/manager.py +287 -32
  5. shotgun/agents/config/models.py +26 -1
  6. shotgun/agents/config/provider.py +27 -0
  7. shotgun/agents/config/streaming_test.py +119 -0
  8. shotgun/agents/error/__init__.py +11 -0
  9. shotgun/agents/error/models.py +19 -0
  10. shotgun/agents/history/token_counting/anthropic.py +8 -0
  11. shotgun/agents/runner.py +230 -0
  12. shotgun/build_constants.py +1 -1
  13. shotgun/cli/context.py +43 -0
  14. shotgun/cli/error_handler.py +24 -0
  15. shotgun/cli/export.py +34 -34
  16. shotgun/cli/plan.py +34 -34
  17. shotgun/cli/research.py +17 -9
  18. shotgun/cli/specify.py +20 -19
  19. shotgun/cli/tasks.py +34 -34
  20. shotgun/exceptions.py +323 -0
  21. shotgun/llm_proxy/__init__.py +17 -0
  22. shotgun/llm_proxy/client.py +215 -0
  23. shotgun/llm_proxy/models.py +137 -0
  24. shotgun/logging_config.py +42 -0
  25. shotgun/main.py +2 -0
  26. shotgun/posthog_telemetry.py +18 -25
  27. shotgun/prompts/agents/partials/common_agent_system_prompt.j2 +3 -2
  28. shotgun/sdk/codebase.py +14 -3
  29. shotgun/sentry_telemetry.py +140 -2
  30. shotgun/settings.py +5 -0
  31. shotgun/tui/app.py +35 -10
  32. shotgun/tui/screens/chat/chat_screen.py +192 -91
  33. shotgun/tui/screens/chat/codebase_index_prompt_screen.py +62 -11
  34. shotgun/tui/screens/chat_screen/command_providers.py +3 -2
  35. shotgun/tui/screens/chat_screen/hint_message.py +76 -1
  36. shotgun/tui/screens/chat_screen/history/chat_history.py +37 -2
  37. shotgun/tui/screens/directory_setup.py +45 -41
  38. shotgun/tui/screens/feedback.py +10 -3
  39. shotgun/tui/screens/github_issue.py +11 -2
  40. shotgun/tui/screens/model_picker.py +8 -1
  41. shotgun/tui/screens/pipx_migration.py +12 -6
  42. shotgun/tui/screens/provider_config.py +25 -8
  43. shotgun/tui/screens/shotgun_auth.py +0 -10
  44. shotgun/tui/screens/welcome.py +32 -0
  45. shotgun/tui/widgets/widget_coordinator.py +3 -2
  46. shotgun_sh-0.2.23.dev1.dist-info/METADATA +472 -0
  47. {shotgun_sh-0.2.11.dev7.dist-info → shotgun_sh-0.2.23.dev1.dist-info}/RECORD +50 -42
  48. shotgun_sh-0.2.11.dev7.dist-info/METADATA +0 -130
  49. {shotgun_sh-0.2.11.dev7.dist-info → shotgun_sh-0.2.23.dev1.dist-info}/WHEEL +0 -0
  50. {shotgun_sh-0.2.11.dev7.dist-info → shotgun_sh-0.2.23.dev1.dist-info}/entry_points.txt +0 -0
  51. {shotgun_sh-0.2.11.dev7.dist-info → shotgun_sh-0.2.23.dev1.dist-info}/licenses/LICENSE +0 -0
@@ -1,130 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: shotgun-sh
3
- Version: 0.2.11.dev7
4
- Summary: AI-powered research, planning, and task management CLI tool
5
- Project-URL: Homepage, https://shotgun.sh/
6
- Project-URL: Repository, https://github.com/shotgun-sh/shotgun
7
- Project-URL: Issues, https://github.com/shotgun-sh/shotgun-alpha/issues
8
- Project-URL: Discord, https://discord.gg/5RmY6J2N7s
9
- Author-email: "Proofs.io" <hello@proofs.io>
10
- License: MIT
11
- License-File: LICENSE
12
- Keywords: agent,ai,cli,llm,planning,productivity,pydantic-ai,research,task-management
13
- Classifier: Development Status :: 3 - Alpha
14
- Classifier: Environment :: Console
15
- Classifier: Intended Audience :: Developers
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Operating System :: OS Independent
18
- Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.11
20
- Classifier: Programming Language :: Python :: 3.12
21
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
- Classifier: Topic :: Utilities
23
- Requires-Python: >=3.11
24
- Requires-Dist: aiofiles>=24.0.0
25
- Requires-Dist: anthropic>=0.39.0
26
- Requires-Dist: dependency-injector>=4.41.0
27
- Requires-Dist: genai-prices>=0.0.27
28
- Requires-Dist: httpx>=0.27.0
29
- Requires-Dist: jinja2>=3.1.0
30
- Requires-Dist: kuzu>=0.7.0
31
- Requires-Dist: logfire>=2.0.0
32
- Requires-Dist: openai>=1.0.0
33
- Requires-Dist: packaging>=23.0
34
- Requires-Dist: posthog>=3.0.0
35
- Requires-Dist: pydantic-ai>=0.0.14
36
- Requires-Dist: pydantic-settings>=2.0.0
37
- Requires-Dist: rich>=13.0.0
38
- Requires-Dist: sentencepiece>=0.2.0
39
- Requires-Dist: sentry-sdk[pure-eval]>=2.0.0
40
- Requires-Dist: tenacity>=8.0.0
41
- Requires-Dist: textual-dev>=1.7.0
42
- Requires-Dist: textual-serve>=0.1.0
43
- Requires-Dist: textual>=6.1.0
44
- Requires-Dist: tiktoken>=0.7.0
45
- Requires-Dist: tree-sitter-go>=0.23.0
46
- Requires-Dist: tree-sitter-javascript>=0.23.0
47
- Requires-Dist: tree-sitter-python>=0.23.0
48
- Requires-Dist: tree-sitter-rust>=0.23.0
49
- Requires-Dist: tree-sitter-typescript>=0.23.0
50
- Requires-Dist: tree-sitter>=0.21.0
51
- Requires-Dist: typer>=0.12.0
52
- Requires-Dist: watchdog>=4.0.0
53
- Provides-Extra: dev
54
- Requires-Dist: commitizen>=3.13.0; extra == 'dev'
55
- Requires-Dist: lefthook>=1.12.0; extra == 'dev'
56
- Requires-Dist: mypy>=1.11.0; extra == 'dev'
57
- Requires-Dist: ruff>=0.6.0; extra == 'dev'
58
- Description-Content-Type: text/markdown
59
-
60
- # Shotgun
61
-
62
- **Spec-Driven Development for AI Code Generation**
63
-
64
- Shotgun is a CLI tool that turns work with AI code-gen tools from "I want to build X" into: **research → specs → plans → tasks → implementation**. It reads your entire codebase, coordinates AI agents to do the heavy lifting, and exports clean artifacts in the agents.md format so your code-gen tools actually know what they're building.
65
-
66
- 🌐 **Learn more at [shotgun.sh](https://shotgun.sh/)**
67
-
68
- ## Features
69
-
70
- ### 📊 Complete Codebase Understanding
71
-
72
- Before writing a single line, Shotgun reads all of it. Your patterns. Your dependencies. Your technical debt. Whether you're adding features, onboarding devs, planning migrations, or refactoring - Shotgun knows what you're working with.
73
-
74
- ### 🔄 Five Modes. One Journey. Zero Gaps.
75
-
76
- **Research** (what exists) → **Specify** (what to build) → **Plan** (how to build) → **Tasks** (break it down) → **Export** (to any tool)
77
-
78
- Not another chatbot. A complete workflow where each mode feeds the next.
79
-
80
- ### ➡️ Export to agents.md
81
-
82
- Outputs plug into many code-generation tools including Codex, Cursor, Warp, Devin, opencode, Jules, and more.
83
-
84
- ### 📝 Specs That Don't Die in Slack
85
-
86
- Every research finding, every architectural decision, every "here's why we didn't use that library" - captured as markdown in your repo. Version controlled. Searchable.
87
-
88
- ## Installation
89
-
90
- ### Using uvx (Recommended)
91
-
92
- **Quick start (ephemeral):**
93
- ```bash
94
- uvx shotgun-sh@latest
95
- ```
96
-
97
- **Install permanently:**
98
- ```bash
99
- uv tool install shotgun-sh
100
- ```
101
-
102
- If you don't have `uv` installed, get it at [astral.sh/uv](https://astral.sh/uv) or `curl -LsSf https://astral.sh/uv/install.sh | sh`
103
-
104
- ## Quick Start
105
-
106
- ```bash
107
- # Research your codebase or a topic
108
- shotgun research "What is our authentication flow?"
109
-
110
- # Generate specifications
111
- shotgun spec "Add OAuth2 authentication"
112
-
113
- # Create an implementation plan
114
- shotgun plan "Build user dashboard"
115
-
116
- # Break down into tasks
117
- shotgun tasks "Implement payment system"
118
-
119
- # Export to agents.md format for your code-gen tools
120
- shotgun export
121
- ```
122
-
123
- ## Support
124
-
125
- Have questions? Join our community on **[Discord](https://discord.gg/5RmY6J2N7s)**
126
-
127
- ---
128
-
129
- **License:** MIT
130
- **Python:** 3.11+