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.
- {npcsh-1.0.0 → npcsh-1.0.2}/PKG-INFO +1 -1
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/guac.py +1 -1
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/npcsh.py +5 -4
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/routes.py +9 -9
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/spool.py +6 -3
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh.egg-info/PKG-INFO +1 -1
- npcsh-1.0.2/npcsh.egg-info/entry_points.txt +9 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/setup.py +9 -9
- npcsh-1.0.0/npcsh.egg-info/entry_points.txt +0 -9
- {npcsh-1.0.0 → npcsh-1.0.2}/LICENSE +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/README.md +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/__init__.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/_state.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/alicanto.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/mcp_helpers.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/mcp_npcsh.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/mcp_server.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/npc.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/plonk.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/pti.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/wander.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh/yap.py +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh.egg-info/SOURCES.txt +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh.egg-info/dependency_links.txt +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh.egg-info/requires.txt +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/npcsh.egg-info/top_level.txt +0 -0
- {npcsh-1.0.0 → npcsh-1.0.2}/setup.cfg +0 -0
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
46
|
-
from
|
|
47
|
-
from
|
|
48
|
-
from
|
|
49
|
-
from
|
|
50
|
-
from
|
|
51
|
-
from
|
|
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
|
|
27
|
+
from npcsh.yap import enter_yap_mode
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
def enter_spool_mode(
|
|
@@ -84,7 +84,7 @@ extra_files = package_files("npcpy/npc_team/")
|
|
|
84
84
|
|
|
85
85
|
setup(
|
|
86
86
|
name="npcsh",
|
|
87
|
-
version="1.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=
|
|
100
|
-
"npcsh-mcp=
|
|
101
|
-
"npc=
|
|
102
|
-
"yap=
|
|
103
|
-
"pti=
|
|
104
|
-
"guac=
|
|
105
|
-
"wander=
|
|
106
|
-
"spool=
|
|
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
|
|
File without changes
|
|
File without changes
|