File tree Expand file tree Collapse file tree 4 files changed +14
-17
lines changed
libs/deepagents-cli/deepagents_cli Expand file tree Collapse file tree 4 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,9 @@ def format_fetch_url_description(tool_call: dict) -> str:
215215 url = args .get ("url" , "unknown" )
216216 timeout = args .get ("timeout" , 30 )
217217
218- return f"URL: { url } \n Timeout: { timeout } s\n \n ⚠️ Will fetch and convert web content to markdown"
218+ return (
219+ f"URL: { url } \n Timeout: { timeout } s\n \n ⚠️ Will fetch and convert web content to markdown"
220+ )
219221
220222 def format_task_description (tool_call : dict ) -> str :
221223 """Format task (subagent) tool call for approval prompt."""
Original file line number Diff line number Diff line change @@ -91,7 +91,9 @@ def parse_args():
9191 create_parser .add_argument ("name" , help = "Name of the skill to create (e.g., web-research)" )
9292
9393 # Skills info
94- info_parser = skills_subparsers .add_parser ("info" , help = "Show detailed information about a skill" )
94+ info_parser = skills_subparsers .add_parser (
95+ "info" , help = "Show detailed information about a skill"
96+ )
9597 info_parser .add_argument ("name" , help = "Name of the skill to show info for" )
9698
9799 # Default interactive mode
@@ -236,7 +238,9 @@ def cli_main():
236238 show_skill_info (args .name )
237239 else :
238240 # No subcommand provided, show help
239- console .print ("[yellow]Please specify a skills subcommand: list, create, or info[/yellow]" )
241+ console .print (
242+ "[yellow]Please specify a skills subcommand: list, create, or info[/yellow]"
243+ )
240244 console .print ("\n Examples:" )
241245 console .print (" deepagents skills list" )
242246 console .print (" deepagents skills create web-research" )
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def create_skill(skill_name: str):
7272description: [Brief description of what this skill does]
7373---
7474
75- # { skill_name .title ().replace ('-' , ' ' )} Skill
75+ # { skill_name .title ().replace ("-" , " " )} Skill
7676
7777## Description
7878
@@ -138,9 +138,7 @@ def create_skill(skill_name: str):
138138 skill_md = skill_dir / "SKILL.md"
139139 skill_md .write_text (template )
140140
141- console .print (
142- f"✓ Skill '{ skill_name } ' created successfully!" , style = COLORS ["primary" ]
143- )
141+ console .print (f"✓ Skill '{ skill_name } ' created successfully!" , style = COLORS ["primary" ])
144142 console .print (f"Location: { skill_dir } \n " , style = COLORS ["dim" ])
145143 console .print (
146144 "[dim]Edit the SKILL.md file to customize:\n "
@@ -165,12 +163,8 @@ def show_skill_info(skill_name: str):
165163 skill = next ((s for s in skills if s ["name" ] == skill_name ), None )
166164
167165 if not skill :
168- console .print (
169- f"[bold red]Error:[/bold red] Skill '{ skill_name } ' not found."
170- )
171- console .print (
172- f"\n [dim]Available skills:[/dim]" , style = COLORS ["dim" ]
173- )
166+ console .print (f"[bold red]Error:[/bold red] Skill '{ skill_name } ' not found." )
167+ console .print (f"\n [dim]Available skills:[/dim]" , style = COLORS ["dim" ])
174168 for s in skills :
175169 console .print (f" - { s ['name' ]} " , style = COLORS ["dim" ])
176170 return
Original file line number Diff line number Diff line change @@ -106,10 +106,7 @@ class SkillsMiddleware(AgentMiddleware):
106106 skills_backend = FilesystemBackend(root_dir=skills_dir, virtual_mode=True)
107107
108108 # Create composite backend with skills routing
109- backend = CompositeBackend(
110- default=FilesystemBackend(),
111- routes={"/skills/": skills_backend}
112- )
109+ backend = CompositeBackend(default=FilesystemBackend(), routes={"/skills/": skills_backend})
113110
114111 # Create middleware
115112 middleware = SkillsMiddleware(skills_dir=skills_dir, skills_path="/skills/")
You can’t perform that action at this time.
0 commit comments