Skip to content

Commit 650bfc1

Browse files
committed
dev: текущие изменения и правки
1 parent c5d8b52 commit 650bfc1

File tree

3 files changed

+15
-35
lines changed

3 files changed

+15
-35
lines changed

agents/init.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# === INSTALL DEPENDENCIES ===
4+
echo "--------------------------"
5+
echo "Installing requirements..."
6+
echo "--------------------------"
7+
pip install -r requirements.txt
8+
9+
# === RUN AGENT ===
10+
echo --------------------------
11+
echo Running initialization...
12+
echo --------------------------
13+
python repl.py

agents/start_repl.bat

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
@echo off
2-
REM === CONFIGURATION ===
3-
set ENABLE_NOTEBOOK=true
4-
set ENABLE_MESH=true
5-
set NOTEBOOK_PATH=user_notebook.txt
6-
set MESH_PORT=8080
7-
82
echo --------------------------
93
echo Installing requirements...
104
echo --------------------------
@@ -14,16 +8,6 @@ echo --------------------------
148
echo Running HMP REPL-agent...
159
echo --------------------------
1610

17-
set ARGS=
18-
19-
if "%ENABLE_NOTEBOOK%"=="true" (
20-
set ARGS=%ARGS% --enable-user-notebook --notebook-path %NOTEBOOK_PATH%
21-
)
22-
23-
if "%ENABLE_MESH%"=="true" (
24-
set ARGS=%ARGS% --enable-mesh --mesh-port %MESH_PORT%
25-
)
26-
27-
python repl.py %ARGS%
11+
python repl.py
2812

2913
pause

agents/start_repl.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11
#!/bin/bash
22

3-
# === CONFIG ===
4-
ENABLE_NOTEBOOK=true
5-
ENABLE_MESH=true
6-
MESH_PORT=8080
7-
NOTEBOOK_PATH="user_notebook.txt"
8-
93
# === INSTALL DEPENDENCIES ===
104
echo "--------------------------"
115
echo "Installing requirements..."
126
echo "--------------------------"
137
pip install -r requirements.txt
148

15-
# === BUILD ARGUMENTS ===
16-
ARGS=""
17-
18-
if [ "$ENABLE_NOTEBOOK" = true ]; then
19-
ARGS="$ARGS --enable-user-notebook --notebook-path $NOTEBOOK_PATH"
20-
fi
21-
22-
if [ "$ENABLE_MESH" = true ]; then
23-
ARGS="$ARGS --enable-mesh --mesh-port $MESH_PORT"
24-
fi
25-
269
# === RUN AGENT ===
2710
echo "--------------------------"
2811
echo "Running HMP REPL-agent..."
2912
echo "--------------------------"
30-
python repl.py $ARGS
13+
python repl.py

0 commit comments

Comments
 (0)