npcsh 1.0.5__tar.gz → 1.0.7__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: npcsh
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: npcsh is a command-line toolkit for using AI agents in novel ways.
5
5
  Home-page: https://github.com/NPC-Worldwide/npcsh
6
6
  Author: Christopher Agostino
@@ -389,7 +389,6 @@ BASH_COMMANDS = [
389
389
  "sudo",
390
390
  "whoami",
391
391
  "who",
392
- "w",
393
392
  "last",
394
393
  "finger",
395
394
  "uptime",
@@ -560,10 +559,8 @@ def validate_bash_command(command_parts: list) -> bool:
560
559
 
561
560
  if base_command == 'which':
562
561
  return False # disable which arbitrarily cause the command parsing for it is too finnicky.
563
-
564
-
565
- if base_command not in COMMAND_PATTERNS:
566
- return True # Allow other commands to pass through
562
+ if base_command not in COMMAND_PATTERNS and base_command not in BASH_COMMANDS:
563
+ return False # Allow other commands to pass through
567
564
 
568
565
  pattern = COMMAND_PATTERNS[base_command]
569
566
  args = []
@@ -17,7 +17,7 @@ from npcpy.npc_sysenv import (
17
17
  render_markdown,
18
18
  )
19
19
  from npcpy.npc_compiler import NPC, Team
20
- from npcpy.routes import router
20
+ from npcsh.routes import router
21
21
  from npcpy.llm_funcs import check_llm_command
22
22
 
23
23
  def load_npc_by_name(npc_name: str = "sibiji", db_path: str = NPCSH_DB_PATH) -> Optional[NPC]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcsh
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: npcsh is a command-line toolkit for using AI agents in novel ways.
5
5
  Home-page: https://github.com/NPC-Worldwide/npcsh
6
6
  Author: Christopher Agostino
@@ -84,7 +84,7 @@ extra_files = package_files("npcpy/npc_team/")
84
84
 
85
85
  setup(
86
86
  name="npcsh",
87
- version="1.0.5",
87
+ version="1.0.7",
88
88
  packages=find_packages(exclude=["tests*"]),
89
89
  install_requires=base_requirements, # Only install base requirements by default
90
90
  extras_require={
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
File without changes