yaicli 0.3.1__tar.gz → 0.3.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yaicli
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A simple CLI tool to interact with LLM
5
5
  Project-URL: Homepage, https://github.com/belingud/yaicli
6
6
  Project-URL: Repository, https://github.com/belingud/yaicli
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "yaicli"
3
- version = "0.3.1"
3
+ version = "0.3.2"
4
4
  description = "A simple CLI tool to interact with LLM"
5
5
  authors = [{ name = "belingud", email = "im.victor@qq.com" }]
6
6
  readme = "README.md"
@@ -344,6 +344,7 @@ class CLI:
344
344
  def get_system_prompt(self) -> str:
345
345
  """Get the system prompt based on current role and mode"""
346
346
  # Use the role manager to get the system prompt
347
+ self.console.print(f"Using role: {self.role}")
347
348
  return self.role_manager.get_system_prompt(self.role)
348
349
 
349
350
  def _build_messages(self, user_input: str) -> List[dict]:
@@ -499,6 +500,7 @@ class CLI:
499
500
  @self.bindings.add(Keys.ControlI) # TAB
500
501
  def _(event: KeyPressEvent) -> None:
501
502
  self.current_mode = EXEC_MODE if self.current_mode == CHAT_MODE else CHAT_MODE
503
+ self.role = DefaultRoleNames.SHELL if self.current_mode == EXEC_MODE else DefaultRoleNames.DEFAULT
502
504
 
503
505
  def _run_once(self, input: str, shell: bool) -> None:
504
506
  """Run a single command (non-interactive)."""
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