shotgun-sh 0.1.0.dev16__py3-none-any.whl → 0.1.0.dev17__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.

@@ -14,7 +14,6 @@ You have access to a structured artifact system for organizing your work. Use ar
14
14
  - **Organization**: `.shotgun/{agent_mode}/{artifact_id}/{section_number}-{section_slug}.md`
15
15
 
16
16
  ### Best Practices:
17
- - Always start by checking existing artifacts with `list_artifacts()`
18
17
  - Use meaningful artifact IDs that describe the work
19
18
  - Organize content into logical sections (overview, analysis, recommendations, etc.)
20
19
  - Use descriptive section titles and slugs
@@ -27,8 +26,6 @@ Use artifact templates to help you create new artifacts.
27
26
 
28
27
  MOST IMPORTANT: WHEN YOU CREATE AN ARTIFACT FROM A TEMPLATE, ALWAYS RESPECT AND FOLLOW THE "INSTRUCTIONS" AND "PROMPT" CONTAINED IN THE TEMPLATE TO THE LETTER.
29
28
 
30
- Use `list_artifact_templates(agent_mode)` to see what templates are available.
31
-
32
29
  Use `create_artifact(artifact_id, agent_mode, name, template_id)` to create a new artifact with a template.
33
30
 
34
31
  Template ID example: "research/market_research"
@@ -423,7 +423,7 @@ class ChatScreen(Screen[None]):
423
423
  question_display.display = False
424
424
 
425
425
  def action_toggle_mode(self) -> None:
426
- modes = [AgentType.RESEARCH, AgentType.PLAN, AgentType.TASKS, AgentType.SPECIFY]
426
+ modes = [AgentType.RESEARCH, AgentType.SPECIFY, AgentType.PLAN, AgentType.TASKS]
427
427
  self.mode = modes[(modes.index(self.mode) + 1) % len(modes)]
428
428
  self.agent_manager.set_agent(self.mode)
429
429
  # whoops it actually changes focus. Let's be brutal for now
@@ -52,6 +52,12 @@ class AgentModeProvider(Provider):
52
52
  lambda: self.set_mode(AgentType.RESEARCH),
53
53
  AgentType.RESEARCH,
54
54
  ),
55
+ (
56
+ "Switch to Specify Mode",
57
+ "📝 Create detailed specifications and requirements documents",
58
+ lambda: self.set_mode(AgentType.SPECIFY),
59
+ AgentType.SPECIFY,
60
+ ),
55
61
  (
56
62
  "Switch to Plan Mode",
57
63
  "📋 Create comprehensive, actionable plans with milestones",
@@ -1,3 +1,5 @@
1
+ import json
2
+
1
3
  from pydantic_ai.messages import (
2
4
  BuiltinToolCallPart,
3
5
  BuiltinToolReturnPart,
@@ -146,6 +148,19 @@ class AgentResponseWidget(Widget):
146
148
  return acc.strip()
147
149
 
148
150
  def _format_tool_call_part(self, part: ToolCallPart) -> str:
151
+ if part.tool_name == "ask_user":
152
+ if isinstance(part.args, str):
153
+ try:
154
+ _args = json.loads(part.args) if part.args.strip() else {}
155
+ except json.JSONDecodeError:
156
+ _args = {}
157
+ else:
158
+ _args = part.args
159
+
160
+ if isinstance(_args, dict) and "question" in _args:
161
+ return f"{_args['question']}"
162
+ else:
163
+ return "❓ "
149
164
  if part.tool_name == "write_artifact_section":
150
165
  if isinstance(part.args, dict) and "section_title" in part.args:
151
166
  return f"{part.tool_name}({part.args['section_title']})"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shotgun-sh
3
- Version: 0.1.0.dev16
3
+ Version: 0.1.0.dev17
4
4
  Summary: AI-powered research, planning, and task management CLI tool
5
5
  Project-URL: Homepage, https://shotgun.sh/
6
6
  Project-URL: Repository, https://github.com/shotgun-sh/shotgun
@@ -89,7 +89,7 @@ shotgun/prompts/agents/plan.j2,sha256=mogmrjqLx5xSXYqWdvLqcObZSfLVLQI39JpVs3Z-V8
89
89
  shotgun/prompts/agents/research.j2,sha256=LxlASYYt45sDmZW8YLJYH8ftGWa6Jvx5aD0MGNXXVjs,3025
90
90
  shotgun/prompts/agents/specify.j2,sha256=1CC2SHsxA1Yma0gSFsq-k3VpwtEohN9nh2qeRMMRPRA,1809
91
91
  shotgun/prompts/agents/tasks.j2,sha256=OYW1zsYRJxoQF4yVMqJNgi4SNz3YmcP4sljHmmqAu4Q,3613
92
- shotgun/prompts/agents/partials/artifact_system.j2,sha256=AD1CvHDSZEmjplmDw443PeOmcXUgM5JdNLu1_mz18kM,1678
92
+ shotgun/prompts/agents/partials/artifact_system.j2,sha256=kaqkMU-t2x3M7z-4HU4KffSFug1WM5VDsin6tCkxjHg,1528
93
93
  shotgun/prompts/agents/partials/codebase_understanding.j2,sha256=AQmN04VRzGmLbxKKthMK4hkJZ9mIU1NMKIpTDOHJrPM,5051
94
94
  shotgun/prompts/agents/partials/common_agent_system_prompt.j2,sha256=UgEHSudzfsCcKHp-Nt6tlsel8ap93z7yevbt0r9SSSg,1663
95
95
  shotgun/prompts/agents/partials/content_formatting.j2,sha256=MG0JB7SSp8YV5akDWpbs2f9DcdREIYqLp38NnoWLeQ0,1854
@@ -123,20 +123,20 @@ shotgun/tui/components/prompt_input.py,sha256=Ss-htqraHZAPaehGE4x86ij0veMjc4Ugad
123
123
  shotgun/tui/components/spinner.py,sha256=ovTDeaJ6FD6chZx_Aepia6R3UkPOVJ77EKHfRmn39MY,2427
124
124
  shotgun/tui/components/splash.py,sha256=vppy9vEIEvywuUKRXn2y11HwXSRkQZHLYoVjhDVdJeU,1267
125
125
  shotgun/tui/components/vertical_tail.py,sha256=kkCH0WjAh54jDvRzIaOffRZXUKn_zHFZ_ichfUpgzaE,1071
126
- shotgun/tui/screens/chat.py,sha256=x9_wdXl6Mbgwr_UfNfvWEkU-ua-Ph--9BmgrkIv-BEY,23922
126
+ shotgun/tui/screens/chat.py,sha256=y63oP_doU2_83UPByB8IebP3SUDqDBz96XhiL8j-snU,23922
127
127
  shotgun/tui/screens/chat.tcss,sha256=2Yq3E23jxsySYsgZf4G1AYrYVcpX0UDW6kNNI0tDmtM,437
128
128
  shotgun/tui/screens/directory_setup.py,sha256=lIZ1J4A6g5Q2ZBX8epW7BhR96Dmdcg22CyiM5S-I5WU,3237
129
129
  shotgun/tui/screens/provider_config.py,sha256=A_tvDHF5KLP5PV60LjMJ_aoOdT3TjI6_g04UIUqGPqM,7126
130
130
  shotgun/tui/screens/splash.py,sha256=E2MsJihi3c9NY1L28o_MstDxGwrCnnV7zdq00MrGAsw,706
131
131
  shotgun/tui/screens/chat_screen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
132
- shotgun/tui/screens/chat_screen/command_providers.py,sha256=jeryNT0WGeU6-8UTdEQk0C8A_HgNGrTskBgpqMDyAQU,6952
133
- shotgun/tui/screens/chat_screen/history.py,sha256=eC8Md4wNyLv19exKLitNadyylTMmm7Rk8acd9h1QXtU,5062
132
+ shotgun/tui/screens/chat_screen/command_providers.py,sha256=4Q8jR7wN4e2q0SWHSsISZP-POyu1B9lyXgoOTKB4ZLc,7198
133
+ shotgun/tui/screens/chat_screen/history.py,sha256=QAVMmtPKXtonrAuyWV6aTteqErH6U9H9V8hB1EPbIkM,5546
134
134
  shotgun/utils/__init__.py,sha256=WinIEp9oL2iMrWaDkXz2QX4nYVPAm8C9aBSKTeEwLtE,198
135
135
  shotgun/utils/env_utils.py,sha256=8QK5aw_f_V2AVTleQQlcL0RnD4sPJWXlDG46fsHu0d8,1057
136
136
  shotgun/utils/file_system_utils.py,sha256=l-0p1bEHF34OU19MahnRFdClHufThfGAjQ431teAIp0,1004
137
137
  shotgun/utils/update_checker.py,sha256=Xf-7w3Pos3etzCoT771gJe2HLkA8_V2GrqWy7ni9UqA,11373
138
- shotgun_sh-0.1.0.dev16.dist-info/METADATA,sha256=BZyZEVZzVDYuVHHMhlc-SkciK_ocrPFpujSW9MtZINU,11271
139
- shotgun_sh-0.1.0.dev16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
140
- shotgun_sh-0.1.0.dev16.dist-info/entry_points.txt,sha256=asZxLU4QILneq0MWW10saVCZc4VWhZfb0wFZvERnzfA,45
141
- shotgun_sh-0.1.0.dev16.dist-info/licenses/LICENSE,sha256=YebsZl590zCHrF_acCU5pmNt0pnAfD2DmAnevJPB1tY,1065
142
- shotgun_sh-0.1.0.dev16.dist-info/RECORD,,
138
+ shotgun_sh-0.1.0.dev17.dist-info/METADATA,sha256=o4PPBFmx5v9oWsXqVW-4kNm-3LHh67PpS7J4yJvIORg,11271
139
+ shotgun_sh-0.1.0.dev17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
140
+ shotgun_sh-0.1.0.dev17.dist-info/entry_points.txt,sha256=asZxLU4QILneq0MWW10saVCZc4VWhZfb0wFZvERnzfA,45
141
+ shotgun_sh-0.1.0.dev17.dist-info/licenses/LICENSE,sha256=YebsZl590zCHrF_acCU5pmNt0pnAfD2DmAnevJPB1tY,1065
142
+ shotgun_sh-0.1.0.dev17.dist-info/RECORD,,