ready for production
This commit is contained in:
@@ -20,3 +20,10 @@ scratch
|
|||||||
testall
|
testall
|
||||||
testremote
|
testremote
|
||||||
automation-template.yaml
|
automation-template.yaml
|
||||||
|
|
||||||
|
# Sensitive local files and credentials
|
||||||
|
auth.json
|
||||||
|
key.db
|
||||||
|
config.db
|
||||||
|
*.db
|
||||||
|
testnew/
|
||||||
|
|||||||
@@ -1008,10 +1008,12 @@ class ai:
|
|||||||
|
|
||||||
@MethodHook
|
@MethodHook
|
||||||
def ask(self, user_input, dryrun=False, chat_history=None, status=None, debug=False, stream=True, session_id=None, chunk_callback=None):
|
def ask(self, user_input, dryrun=False, chat_history=None, status=None, debug=False, stream=True, session_id=None, chunk_callback=None):
|
||||||
|
soft_limit_warned = False
|
||||||
is_engineer_keyless = "vertex" in self.engineer_model.lower() or "ollama" in self.engineer_model.lower() or "local" in self.engineer_model.lower()
|
is_engineer_keyless = "vertex" in self.engineer_model.lower() or "ollama" in self.engineer_model.lower() or "local" in self.engineer_model.lower()
|
||||||
if not self.engineer_key and not self.engineer_auth and not is_engineer_keyless:
|
if not self.engineer_key and not self.engineer_auth and not is_engineer_keyless:
|
||||||
raise ValueError("Engineer API key or authentication not configured. Use 'connpy config --engineer-auth <auth>' to set it.")
|
raise ValueError("Engineer API key or authentication not configured. Use 'connpy config --engineer-auth <auth>' to set it.")
|
||||||
|
|
||||||
|
|
||||||
if chat_history is None: chat_history = []
|
if chat_history is None: chat_history = []
|
||||||
|
|
||||||
# Load session if provided and history is empty
|
# Load session if provided and history is empty
|
||||||
|
|||||||
@@ -1016,18 +1016,6 @@ class node:
|
|||||||
cmd += f" {self.options}"
|
cmd += f" {self.options}"
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
@MethodHook
|
|
||||||
def _generate_ssm_cmd(self):
|
|
||||||
region = self.tags.get("region", "") if isinstance(self.tags, dict) else ""
|
|
||||||
profile = self.tags.get("profile", "") if isinstance(self.tags, dict) else ""
|
|
||||||
cmd = f"aws ssm start-session --target {self.host}"
|
|
||||||
if region:
|
|
||||||
cmd += f" --region {region}"
|
|
||||||
if profile:
|
|
||||||
cmd += f" --profile {profile}"
|
|
||||||
if self.options:
|
|
||||||
cmd += f" {self.options}"
|
|
||||||
return cmd
|
|
||||||
|
|
||||||
@MethodHook
|
@MethodHook
|
||||||
def _get_cmd(self):
|
def _get_cmd(self):
|
||||||
|
|||||||
@@ -37,17 +37,17 @@ install_requires =
|
|||||||
pycryptodome>=3.18.0
|
pycryptodome>=3.18.0
|
||||||
PyYAML>=6.0.1
|
PyYAML>=6.0.1
|
||||||
pyfzf>=0.3.1
|
pyfzf>=0.3.1
|
||||||
litellm>=1.40.0
|
litellm>=1.40.0,<2.0.0
|
||||||
grpcio>=1.62.0
|
grpcio>=1.62.0,<2.0.0
|
||||||
grpcio-tools>=1.62.0
|
grpcio-tools>=1.62.0,<2.0.0
|
||||||
protobuf>=6.31.1,<7.0.0
|
protobuf>=6.31.1,<7.0.0
|
||||||
google-api-python-client>=2.125.0
|
google-api-python-client>=2.125.0
|
||||||
google-auth-oauthlib>=1.2.0
|
google-auth-oauthlib>=1.2.0
|
||||||
google-auth-httplib2>=0.2.0
|
google-auth-httplib2>=0.2.0
|
||||||
prompt-toolkit>=3.0.0
|
prompt-toolkit>=3.0.0
|
||||||
mcp>=1.2.0
|
mcp>=1.2.0,<2.0.0
|
||||||
aiohttp>=3.9.0
|
aiohttp>=3.9.0,<4.0.0
|
||||||
httpx>=0.27.0
|
httpx>=0.27.0,<1.0.0
|
||||||
requests>=2.31.0
|
requests>=2.31.0
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
|
|||||||
Reference in New Issue
Block a user