From aa542cb6eb8625e3d4636f26a5199c460617f399 Mon Sep 17 00:00:00 2001 From: Fede Luzzi Date: Wed, 27 May 2026 14:44:01 -0300 Subject: [PATCH] ready for production --- .dockerignore | 7 +++++++ connpy/ai.py | 2 ++ connpy/core.py | 12 ------------ setup.cfg | 12 ++++++------ 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.dockerignore b/.dockerignore index 7ae3f2b..9ff048b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -20,3 +20,10 @@ scratch testall testremote automation-template.yaml + +# Sensitive local files and credentials +auth.json +key.db +config.db +*.db +testnew/ diff --git a/connpy/ai.py b/connpy/ai.py index 3cadd49..526d42a 100755 --- a/connpy/ai.py +++ b/connpy/ai.py @@ -1008,9 +1008,11 @@ class ai: @MethodHook 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() 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 ' to set it.") + if chat_history is None: chat_history = [] diff --git a/connpy/core.py b/connpy/core.py index cb890d8..5b46270 100755 --- a/connpy/core.py +++ b/connpy/core.py @@ -1016,18 +1016,6 @@ class node: cmd += f" {self.options}" 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 def _get_cmd(self): diff --git a/setup.cfg b/setup.cfg index c32d933..a4ddc96 100644 --- a/setup.cfg +++ b/setup.cfg @@ -37,17 +37,17 @@ install_requires = pycryptodome>=3.18.0 PyYAML>=6.0.1 pyfzf>=0.3.1 - litellm>=1.40.0 - grpcio>=1.62.0 - grpcio-tools>=1.62.0 + litellm>=1.40.0,<2.0.0 + grpcio>=1.62.0,<2.0.0 + grpcio-tools>=1.62.0,<2.0.0 protobuf>=6.31.1,<7.0.0 google-api-python-client>=2.125.0 google-auth-oauthlib>=1.2.0 google-auth-httplib2>=0.2.0 prompt-toolkit>=3.0.0 - mcp>=1.2.0 - aiohttp>=3.9.0 - httpx>=0.27.0 + mcp>=1.2.0,<2.0.0 + aiohttp>=3.9.0,<4.0.0 + httpx>=0.27.0,<1.0.0 requests>=2.31.0 [options.entry_points]