npcsh 1.0.5__py3-none-any.whl → 1.0.6__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.
npcsh/_state.py CHANGED
@@ -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 = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcsh
3
- Version: 1.0.5
3
+ Version: 1.0.6
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
@@ -1,5 +1,5 @@
1
1
  npcsh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- npcsh/_state.py,sha256=3DbJ9X6Ol5ubXFjy-OrV2ioDt6qMLvh4CAsoLCJ5kbg,27347
2
+ npcsh/_state.py,sha256=Fm3fqPd1Pfv3bjmLlh9h59IRkjk3EARQE_yw_4cr378,27374
3
3
  npcsh/alicanto.py,sha256=zJF5YwSNvtbK2EUKXzG45WOCMsSFu5cek5jCR7FgiuE,44709
4
4
  npcsh/guac.py,sha256=Ocmk_c4NUtGsC3JOtmkbgLvD6u-XtBPRFRYcckpgUJU,33099
5
5
  npcsh/mcp_helpers.py,sha256=Ktd2yXuBnLL2P7OMalgGLj84PXJSzaucjqmJVvWx6HA,12723
@@ -13,9 +13,9 @@ npcsh/routes.py,sha256=ufQVc6aqgC14_YHV88iwV53TN1Pk095NB6gFDqQqfB4,37208
13
13
  npcsh/spool.py,sha256=GhnSFX9uAtrB4m_ijuyA5tufH12DrWdABw0z8FmiCHc,11497
14
14
  npcsh/wander.py,sha256=BiN6eYyFnEsFzo8MFLRkdZ8xS9sTKkQpjiCcy9chMcc,23225
15
15
  npcsh/yap.py,sha256=h5KNt9sNOrDPhGe_zfn_yFIeQhizX09zocjcPWH7m3k,20905
16
- npcsh-1.0.5.dist-info/licenses/LICENSE,sha256=IKBvAECHP-aCiJtE4cHGCE5Yl0tozYz02PomGeWS3y4,1070
17
- npcsh-1.0.5.dist-info/METADATA,sha256=f9x6EEZT5YlU83DcV-uLA5egMSVHYF0qyHF3DczuRMs,22747
18
- npcsh-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
- npcsh-1.0.5.dist-info/entry_points.txt,sha256=qxOYTm3ym3JWyWf2nv2Mk71uMcJIdUoNEJ8VYMkyHiY,214
20
- npcsh-1.0.5.dist-info/top_level.txt,sha256=kHSNgKMCkfjV95-DH0YSp1LLBi0HXdF3w57j7MQON3E,6
21
- npcsh-1.0.5.dist-info/RECORD,,
16
+ npcsh-1.0.6.dist-info/licenses/LICENSE,sha256=IKBvAECHP-aCiJtE4cHGCE5Yl0tozYz02PomGeWS3y4,1070
17
+ npcsh-1.0.6.dist-info/METADATA,sha256=rdecMT04dSNnUrxj9yiX7iv3gIGEiVKF-jxcZ2iz-CA,22747
18
+ npcsh-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
+ npcsh-1.0.6.dist-info/entry_points.txt,sha256=qxOYTm3ym3JWyWf2nv2Mk71uMcJIdUoNEJ8VYMkyHiY,214
20
+ npcsh-1.0.6.dist-info/top_level.txt,sha256=kHSNgKMCkfjV95-DH0YSp1LLBi0HXdF3w57j7MQON3E,6
21
+ npcsh-1.0.6.dist-info/RECORD,,
File without changes