npcsh 1.0.0__tar.gz → 1.0.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: npcsh
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: npcsh is a command-line toolkit for using AI agents.
5
5
  Home-page: https://github.com/NPC-Worldwide/npcsh
6
6
  Author: Christopher Agostino
@@ -20,7 +20,7 @@ import importlib.util
20
20
  from npcpy.memory.command_history import CommandHistory
21
21
  from npcpy.npc_compiler import Team, NPC
22
22
  from npcpy.llm_funcs import get_llm_response, check_llm_command, execute_llm_command
23
- from npcpy.modes._state import initial_state as npcsh_initial_state
23
+ from npcsh._state import initial_state as npcsh_initial_state
24
24
  from npcpy.npc_sysenv import render_markdown, print_and_process_stream_with_markdown
25
25
 
26
26
  try:
@@ -28,6 +28,7 @@ except ImportError:
28
28
  import shutil
29
29
 
30
30
  import yaml
31
+
31
32
  # Local Application Imports
32
33
  from npcsh._state import (
33
34
  setup_npcsh_config,
@@ -36,17 +37,17 @@ from npcsh._state import (
36
37
  orange,
37
38
  interactive_commands,
38
39
  BASH_COMMANDS,
39
- log_action
40
+ start_interactive_session,
41
+
40
42
  )
41
43
 
42
44
  from npcpy.npc_sysenv import (
43
45
  print_and_process_stream_with_markdown,
44
46
  render_markdown,
45
47
  get_locally_available_models,
46
- start_interactive_session,
47
48
  get_model_and_provider,
48
49
  )
49
- from npcpy.routes import router
50
+ from npcsh.routes import router
50
51
  from npcpy.data.image import capture_screenshot
51
52
  from npcpy.memory.command_history import (
52
53
  CommandHistory,
@@ -86,7 +87,7 @@ class CommandNotFoundError(Exception):
86
87
  pass
87
88
 
88
89
 
89
- from npcpy.modes._state import initial_state, ShellState
90
+ from npcsh._state import initial_state, ShellState
90
91
 
91
92
  def readline_safe_prompt(prompt: str) -> str:
92
93
  ansi_escape = re.compile(r"(\033\[[0-9;]*[a-zA-Z])")
@@ -10,8 +10,7 @@ from datetime import datetime
10
10
  from sqlalchemy import create_engine
11
11
  import logging
12
12
 
13
- from npcpy.npc_sysenv import (
14
- render_code_block, render_markdown,
13
+ from npcsh._state import (
15
14
  NPCSH_VISION_MODEL, NPCSH_VISION_PROVIDER, NPCSH_API_URL,
16
15
  NPCSH_CHAT_MODEL, NPCSH_CHAT_PROVIDER, NPCSH_STREAM_OUTPUT,
17
16
  NPCSH_IMAGE_GEN_MODEL, NPCSH_IMAGE_GEN_PROVIDER,
@@ -41,14 +40,15 @@ from npcpy.memory.command_history import CommandHistory
41
40
 
42
41
  from npcpy.memory.knowledge_graph import breathe
43
42
  from npcpy.memory.sleep import sleep, forget
43
+ from npcpy.serve import start_flask_server
44
44
 
45
- from npcpy.modes.guac import enter_guac_mode
46
- from npcpy.modes.plonk import execute_plonk_command
47
- from npcpy.modes.serve import start_flask_server
48
- from npcpy.modes.alicanto import alicanto
49
- from npcpy.modes.spool import enter_spool_mode
50
- from npcpy.modes.wander import enter_wander_mode
51
- from npcpy.modes.yap import enter_yap_mode
45
+
46
+ from npcsh.guac import enter_guac_mode
47
+ from npcsh.plonk import execute_plonk_command
48
+ from npcsh.alicanto import alicanto
49
+ from npcsh.spool import enter_spool_mode
50
+ from npcsh.wander import enter_wander_mode
51
+ from npcsh.yap import enter_yap_mode
52
52
 
53
53
 
54
54
 
@@ -7,10 +7,13 @@ import os
7
7
  from npcpy.npc_sysenv import (
8
8
  print_and_process_stream_with_markdown,
9
9
  )
10
+ from npcpy.npc_sysenv import (
11
+ get_system_message,
12
+ render_markdown,
13
+
14
+ )
10
15
  from npcsh._state import (
11
16
  orange,
12
- get_system_message,
13
- render_markdown,
14
17
  NPCSH_VISION_MODEL,
15
18
  NPCSH_VISION_PROVIDER,
16
19
  NPCSH_CHAT_MODEL,
@@ -21,7 +24,7 @@ from npcpy.llm_funcs import (get_llm_response,)
21
24
 
22
25
  from npcpy.npc_compiler import NPC
23
26
  from typing import Any, List, Dict, Union
24
- from npcpy.modes.yap import enter_yap_mode
27
+ from npcsh.yap import enter_yap_mode
25
28
 
26
29
 
27
30
  def enter_spool_mode(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npcsh
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: npcsh is a command-line toolkit for using AI agents.
5
5
  Home-page: https://github.com/NPC-Worldwide/npcsh
6
6
  Author: Christopher Agostino
@@ -0,0 +1,9 @@
1
+ [console_scripts]
2
+ guac = npcsh.guac:main
3
+ npc = npcsh.npc:main
4
+ npcsh = npcsh.npcsh:main
5
+ npcsh-mcp = npcsh.mcp_npcsh:main
6
+ pti = npcsh.pti:main
7
+ spool = npcsh.spool:main
8
+ wander = npcsh.wander:main
9
+ yap = npcsh.yap:main
@@ -84,7 +84,7 @@ extra_files = package_files("npcpy/npc_team/")
84
84
 
85
85
  setup(
86
86
  name="npcsh",
87
- version="1.0.0",
87
+ version="1.0.2",
88
88
  packages=find_packages(exclude=["tests*"]),
89
89
  install_requires=base_requirements, # Only install base requirements by default
90
90
  extras_require={
@@ -96,14 +96,14 @@ setup(
96
96
  },
97
97
  entry_points={
98
98
  "console_scripts": [
99
- "npcsh=npcpy.modes.npcsh:main",
100
- "npcsh-mcp=npcpy.modes.mcp_npcsh:main",
101
- "npc=npcpy.modes.npc:main",
102
- "yap=npcpy.modes.yap:main",
103
- "pti=npcpy.modes.pti:main",
104
- "guac=npcpy.modes.guac:main",
105
- "wander=npcpy.modes.wander:main",
106
- "spool=npcpy.modes.spool:main",
99
+ "npcsh=npcsh.npcsh:main",
100
+ "npcsh-mcp=npcsh.mcp_npcsh:main",
101
+ "npc=npcsh.npc:main",
102
+ "yap=npcsh.yap:main",
103
+ "pti=npcsh.pti:main",
104
+ "guac=npcsh.guac:main",
105
+ "wander=npcsh.wander:main",
106
+ "spool=npcsh.spool:main",
107
107
  ],
108
108
  },
109
109
  author="Christopher Agostino",
@@ -1,9 +0,0 @@
1
- [console_scripts]
2
- guac = npcpy.modes.guac:main
3
- npc = npcpy.modes.npc:main
4
- npcsh = npcpy.modes.npcsh:main
5
- npcsh-mcp = npcpy.modes.mcp_npcsh:main
6
- pti = npcpy.modes.pti:main
7
- spool = npcpy.modes.spool:main
8
- wander = npcpy.modes.wander:main
9
- yap = npcpy.modes.yap:main
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