npcsh 1.1.8__tar.gz → 1.1.9__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.
Files changed (78) hide show
  1. {npcsh-1.1.8 → npcsh-1.1.9}/PKG-INFO +1 -1
  2. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/_state.py +29 -5
  3. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh.egg-info/PKG-INFO +1 -1
  4. {npcsh-1.1.8 → npcsh-1.1.9}/setup.py +1 -1
  5. {npcsh-1.1.8 → npcsh-1.1.9}/LICENSE +0 -0
  6. {npcsh-1.1.8 → npcsh-1.1.9}/README.md +0 -0
  7. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/__init__.py +0 -0
  8. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/alicanto.py +0 -0
  9. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/build.py +0 -0
  10. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/corca.py +0 -0
  11. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/guac.py +0 -0
  12. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/mcp_helpers.py +0 -0
  13. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/mcp_server.py +0 -0
  14. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc.py +0 -0
  15. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/alicanto.npc +0 -0
  16. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/alicanto.png +0 -0
  17. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/corca.npc +0 -0
  18. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/corca.png +0 -0
  19. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/corca_example.png +0 -0
  20. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/foreman.npc +0 -0
  21. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/frederic.npc +0 -0
  22. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/frederic4.png +0 -0
  23. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/guac.png +0 -0
  24. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/code/python.jinx +0 -0
  25. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/code/sh.jinx +0 -0
  26. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/code/sql.jinx +0 -0
  27. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/alicanto.jinx +0 -0
  28. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/corca.jinx +0 -0
  29. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/guac.jinx +0 -0
  30. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/plonk.jinx +0 -0
  31. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/pti.jinx +0 -0
  32. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/spool.jinx +0 -0
  33. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/wander.jinx +0 -0
  34. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/modes/yap.jinx +0 -0
  35. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/breathe.jinx +0 -0
  36. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/core/build.jinx +0 -0
  37. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/core/compile.jinx +0 -0
  38. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/core/help.jinx +0 -0
  39. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/core/init.jinx +0 -0
  40. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/core/jinxs.jinx +0 -0
  41. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/core/set.jinx +0 -0
  42. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/edit_file.jinx +0 -0
  43. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/flush.jinx +0 -0
  44. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/npc-studio.jinx +0 -0
  45. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/ots.jinx +0 -0
  46. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/plan.jinx +0 -0
  47. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/roll.jinx +0 -0
  48. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/sample.jinx +0 -0
  49. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/search.jinx +0 -0
  50. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/serve.jinx +0 -0
  51. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/sleep.jinx +0 -0
  52. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/trigger.jinx +0 -0
  53. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/jinxs/utils/vixynt.jinx +0 -0
  54. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/kadiefa.npc +0 -0
  55. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/kadiefa.png +0 -0
  56. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/npcsh.ctx +0 -0
  57. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/npcsh_sibiji.png +0 -0
  58. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/plonk.npc +0 -0
  59. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/plonk.png +0 -0
  60. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/plonkjr.npc +0 -0
  61. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/plonkjr.png +0 -0
  62. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/sibiji.npc +0 -0
  63. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/sibiji.png +0 -0
  64. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/spool.png +0 -0
  65. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npc_team/yap.png +0 -0
  66. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/npcsh.py +0 -0
  67. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/plonk.py +0 -0
  68. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/pti.py +0 -0
  69. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/routes.py +0 -0
  70. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/spool.py +0 -0
  71. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/wander.py +0 -0
  72. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh/yap.py +0 -0
  73. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh.egg-info/SOURCES.txt +0 -0
  74. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh.egg-info/dependency_links.txt +0 -0
  75. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh.egg-info/entry_points.txt +0 -0
  76. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh.egg-info/requires.txt +0 -0
  77. {npcsh-1.1.8 → npcsh-1.1.9}/npcsh.egg-info/top_level.txt +0 -0
  78. {npcsh-1.1.8 → npcsh-1.1.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcsh
3
- Version: 1.1.8
3
+ Version: 1.1.9
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
@@ -2108,10 +2108,23 @@ def process_pipeline_command(
2108
2108
  exec_provider = provider_override or npc_provider or state.chat_provider
2109
2109
 
2110
2110
  if cmd_to_process.startswith("/"):
2111
- with SpinnerContext(
2112
- f"Routing to {cmd_to_process.split()[0]}",
2113
- style="arrow"
2114
- ):
2111
+ command_name = cmd_to_process.split()[0].lstrip('/')
2112
+
2113
+ # Check if this is an interactive mode by looking for the jinx file in modes/
2114
+ is_interactive_mode = False
2115
+
2116
+ # Check global modes
2117
+ global_modes_jinx = os.path.expanduser(f'~/.npcsh/npc_team/jinxs/modes/{command_name}.jinx')
2118
+ if os.path.exists(global_modes_jinx):
2119
+ is_interactive_mode = True
2120
+
2121
+ # Check team modes
2122
+ if not is_interactive_mode and state.team and state.team.team_path:
2123
+ team_modes_jinx = os.path.join(state.team.team_path, 'jinxs', 'modes', f'{command_name}.jinx')
2124
+ if os.path.exists(team_modes_jinx):
2125
+ is_interactive_mode = True
2126
+
2127
+ if is_interactive_mode:
2115
2128
  result = execute_slash_command(
2116
2129
  cmd_to_process,
2117
2130
  stdin_input,
@@ -2119,8 +2132,19 @@ def process_pipeline_command(
2119
2132
  stream_final,
2120
2133
  router
2121
2134
  )
2135
+ else:
2136
+ with SpinnerContext(
2137
+ f"Routing to {cmd_to_process.split()[0]}",
2138
+ style="arrow"
2139
+ ):
2140
+ result = execute_slash_command(
2141
+ cmd_to_process,
2142
+ stdin_input,
2143
+ state,
2144
+ stream_final,
2145
+ router
2146
+ )
2122
2147
  return result
2123
-
2124
2148
  cmd_parts = parse_command_safely(cmd_to_process)
2125
2149
  if not cmd_parts:
2126
2150
  return state, stdin_input
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcsh
3
- Version: 1.1.8
3
+ Version: 1.1.9
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
@@ -78,7 +78,7 @@ extra_files = package_files("npcsh/npc_team/")
78
78
 
79
79
  setup(
80
80
  name="npcsh",
81
- version="1.1.8",
81
+ version="1.1.9",
82
82
  packages=find_packages(exclude=["tests*"]),
83
83
  install_requires=base_requirements, # Only install base requirements by default
84
84
  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
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
File without changes
File without changes