summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xagent.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/agent.sh b/agent.sh
index 597571c..0b4fa7c 100755
--- a/agent.sh
+++ b/agent.sh
@@ -10,13 +10,13 @@ TIMEOUT_MAX="${TIMEOUT_MAX:-300}"
N_RETRIES="${RETRY_MAX:-5}"
teaissue() {
- echo tea issues create --title "$1 (TeAgent)" --body "$2" --login teagent --repo "${REPO}"
+ tea issues create --title "$1 (TeAgent)" --body "$2" --login teagent --repo "${REPO}"
}
SERVER="${OLLAMA_HOST:-http://localhost:11434}"
MODEL="${OLLAMA_MODEL:-llama3.2}"
-read -p "Source file listing cmd: " -e -i "find . -type f -iname \\\\*.py" source_file_fn
+read -p "Source file listing cmd: " -e -i "find src -type f -iname \\\\*.py" source_file_fn
SOURCE_FILES=`eval "${source_file_fn}"`
# Select what files
@@ -26,14 +26,14 @@ for source_file in ${SOURCE_FILES}; do
if [ ! -s "${source_file}" ]; then
continue
fi
- FILE_SELECTIONS+=("${source_file}" "" off)
+ FILE_SELECTIONS+=("${source_file}" "" on)
INDEX=$((INDEX+1))
done
FILE_CHOICES=$(dialog --clear \
--title "Files to process" \
--checklist "Choose files:" \
- 10 40 3 \
+ 0 0 0 \
"${FILE_SELECTIONS[@]}" \
2>&1 >/dev/tty)
if [ "$?" -ne "0" ]; then
@@ -69,6 +69,7 @@ EOF
TASK_NAME="Cleanup"
PROMPT_BASE=$(cat << EOF
Please write tests for the following source, leaving ample documentation.
+The testing backend of choice is pytest.
If there don't seem to be any natural tests, simply write: DONE
EOF
)
@@ -82,7 +83,6 @@ EOF
exit 1
;;
esac
-echo "$PROMPT_BASE"
for source_file in $FILE_CHOICES; do
if [ ! -s "${source_file}" ]; then