gitarsenal-cli 1.7.8 → 1.7.9
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.
package/package.json
CHANGED
@@ -38,7 +38,7 @@ if args.proxy_api_key:
|
|
38
38
|
class PersistentShell:
|
39
39
|
"""A persistent bash shell using subprocess.Popen for executing commands with state persistence."""
|
40
40
|
|
41
|
-
def __init__(self, working_dir="/root", timeout=
|
41
|
+
def __init__(self, working_dir="/root", timeout=200):
|
42
42
|
self.working_dir = working_dir
|
43
43
|
self.timeout = timeout
|
44
44
|
self.process = None
|
@@ -307,7 +307,7 @@ class PersistentShell:
|
|
307
307
|
if success:
|
308
308
|
if stdout_text:
|
309
309
|
print("")
|
310
|
-
|
310
|
+
print(f"✅ Output: {stdout_text}")
|
311
311
|
# Track virtual environment activation
|
312
312
|
if command.strip().startswith("source ") and "/bin/activate" in command:
|
313
313
|
venv_path = command.replace("source ", "").replace("/bin/activate", "").strip()
|
@@ -1788,7 +1788,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1788
1788
|
cmd_manager = CommandListManager(setup_commands)
|
1789
1789
|
|
1790
1790
|
# Create persistent shell instance starting in /root
|
1791
|
-
shell = PersistentShell(working_dir="/root", timeout=
|
1791
|
+
shell = PersistentShell(working_dir="/root", timeout=200)
|
1792
1792
|
|
1793
1793
|
try:
|
1794
1794
|
# Start the persistent shell
|
@@ -1812,7 +1812,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1812
1812
|
print(f"📋 Executing main command {cmd_index + 1}/{cmd_manager.total_commands}: {cmd_text}")
|
1813
1813
|
|
1814
1814
|
start_time = time.time()
|
1815
|
-
success, stdout, stderr = shell.execute(cmd_text, timeout=
|
1815
|
+
success, stdout, stderr = shell.execute(cmd_text, timeout=200)
|
1816
1816
|
execution_time = time.time() - start_time
|
1817
1817
|
|
1818
1818
|
# Mark command as executed
|
@@ -1840,7 +1840,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1840
1840
|
# Execute the fix command
|
1841
1841
|
print(f"🔄 Running suggested fix command: {fix_command}")
|
1842
1842
|
fix_start_time = time.time()
|
1843
|
-
fix_success, fix_stdout, fix_stderr = shell.execute(fix_command, timeout=
|
1843
|
+
fix_success, fix_stdout, fix_stderr = shell.execute(fix_command, timeout=200)
|
1844
1844
|
fix_execution_time = time.time() - fix_start_time
|
1845
1845
|
|
1846
1846
|
# Mark fix command as executed
|
@@ -1854,7 +1854,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1854
1854
|
# Retry the original command
|
1855
1855
|
print(f"🔄 Retrying original command: {cmd_text}")
|
1856
1856
|
retry_start_time = time.time()
|
1857
|
-
retry_success, retry_stdout, retry_stderr = shell.execute(cmd_text, timeout=
|
1857
|
+
retry_success, retry_stdout, retry_stderr = shell.execute(cmd_text, timeout=200)
|
1858
1858
|
retry_execution_time = time.time() - retry_start_time
|
1859
1859
|
|
1860
1860
|
# Update the original command status
|
@@ -1883,7 +1883,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1883
1883
|
print(f"🔧 Executing fix command {cmd_index + 1}: {cmd_text}")
|
1884
1884
|
|
1885
1885
|
start_time = time.time()
|
1886
|
-
success, stdout, stderr = shell.execute(cmd_text, timeout=
|
1886
|
+
success, stdout, stderr = shell.execute(cmd_text, timeout=200)
|
1887
1887
|
execution_time = time.time() - start_time
|
1888
1888
|
|
1889
1889
|
# Mark fix command as executed
|
@@ -1911,7 +1911,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1911
1911
|
print(f"🔧 Executing additional fix: {cmd_text}")
|
1912
1912
|
|
1913
1913
|
start_time = time.time()
|
1914
|
-
success, stdout, stderr = shell.execute(cmd_text, timeout=
|
1914
|
+
success, stdout, stderr = shell.execute(cmd_text, timeout=200)
|
1915
1915
|
execution_time = time.time() - start_time
|
1916
1916
|
|
1917
1917
|
# Mark fix command as executed
|
@@ -38,7 +38,7 @@ if args.proxy_api_key:
|
|
38
38
|
class PersistentShell:
|
39
39
|
"""A persistent bash shell using subprocess.Popen for executing commands with state persistence."""
|
40
40
|
|
41
|
-
def __init__(self, working_dir="/root", timeout=
|
41
|
+
def __init__(self, working_dir="/root", timeout=200):
|
42
42
|
self.working_dir = working_dir
|
43
43
|
self.timeout = timeout
|
44
44
|
self.process = None
|
@@ -307,7 +307,7 @@ class PersistentShell:
|
|
307
307
|
if success:
|
308
308
|
if stdout_text:
|
309
309
|
print("")
|
310
|
-
|
310
|
+
print(f"✅ Output: {stdout_text}")
|
311
311
|
# Track virtual environment activation
|
312
312
|
if command.strip().startswith("source ") and "/bin/activate" in command:
|
313
313
|
venv_path = command.replace("source ", "").replace("/bin/activate", "").strip()
|
@@ -1788,7 +1788,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1788
1788
|
cmd_manager = CommandListManager(setup_commands)
|
1789
1789
|
|
1790
1790
|
# Create persistent shell instance starting in /root
|
1791
|
-
shell = PersistentShell(working_dir="/root", timeout=
|
1791
|
+
shell = PersistentShell(working_dir="/root", timeout=200)
|
1792
1792
|
|
1793
1793
|
try:
|
1794
1794
|
# Start the persistent shell
|
@@ -1812,7 +1812,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1812
1812
|
print(f"📋 Executing main command {cmd_index + 1}/{cmd_manager.total_commands}: {cmd_text}")
|
1813
1813
|
|
1814
1814
|
start_time = time.time()
|
1815
|
-
success, stdout, stderr = shell.execute(cmd_text, timeout=
|
1815
|
+
success, stdout, stderr = shell.execute(cmd_text, timeout=200)
|
1816
1816
|
execution_time = time.time() - start_time
|
1817
1817
|
|
1818
1818
|
# Mark command as executed
|
@@ -1840,7 +1840,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1840
1840
|
# Execute the fix command
|
1841
1841
|
print(f"🔄 Running suggested fix command: {fix_command}")
|
1842
1842
|
fix_start_time = time.time()
|
1843
|
-
fix_success, fix_stdout, fix_stderr = shell.execute(fix_command, timeout=
|
1843
|
+
fix_success, fix_stdout, fix_stderr = shell.execute(fix_command, timeout=200)
|
1844
1844
|
fix_execution_time = time.time() - fix_start_time
|
1845
1845
|
|
1846
1846
|
# Mark fix command as executed
|
@@ -1854,7 +1854,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1854
1854
|
# Retry the original command
|
1855
1855
|
print(f"🔄 Retrying original command: {cmd_text}")
|
1856
1856
|
retry_start_time = time.time()
|
1857
|
-
retry_success, retry_stdout, retry_stderr = shell.execute(cmd_text, timeout=
|
1857
|
+
retry_success, retry_stdout, retry_stderr = shell.execute(cmd_text, timeout=200)
|
1858
1858
|
retry_execution_time = time.time() - retry_start_time
|
1859
1859
|
|
1860
1860
|
# Update the original command status
|
@@ -1883,7 +1883,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1883
1883
|
print(f"🔧 Executing fix command {cmd_index + 1}: {cmd_text}")
|
1884
1884
|
|
1885
1885
|
start_time = time.time()
|
1886
|
-
success, stdout, stderr = shell.execute(cmd_text, timeout=
|
1886
|
+
success, stdout, stderr = shell.execute(cmd_text, timeout=200)
|
1887
1887
|
execution_time = time.time() - start_time
|
1888
1888
|
|
1889
1889
|
# Mark fix command as executed
|
@@ -1911,7 +1911,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1911
1911
|
print(f"🔧 Executing additional fix: {cmd_text}")
|
1912
1912
|
|
1913
1913
|
start_time = time.time()
|
1914
|
-
success, stdout, stderr = shell.execute(cmd_text, timeout=
|
1914
|
+
success, stdout, stderr = shell.execute(cmd_text, timeout=200)
|
1915
1915
|
execution_time = time.time() - start_time
|
1916
1916
|
|
1917
1917
|
# Mark fix command as executed
|