-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Folder for ChatGPT developers toolbench | ||
|
||
See https://github.com/stoerr/DevelopersChatGPTToolBench . I use that to review and sometimes make changes | ||
automatically from ChatGPT. This directory contains helper files, like actions that can be executed through ChatGPT. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Plugin Action: maven build incl. running unit- and integrationtests | ||
echo executing mvn clean install | ||
mvn -B clean install > build.log 2>&1 | ||
if [ $? -ne 0 ]; then | ||
echo "mvn clean install failed, see build.log. You can use the grep action with at least 10 context lines to look for errors and exceptions in file build.log" | ||
exit 1 | ||
else | ||
echo "successful; build log is in build.log" | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Plugin Action: list all available actions | ||
cd $(dirname $(realpath "$0")) || ( | ||
echo "ERROR: Could not cd to $(dirname $(realpath "$0"))" | ||
exit 1 | ||
) | ||
for fil in *.sh; do | ||
echo "${fil%.sh} : " $(egrep -o "Plugin ""Action: .*" "$fil" | sed -e 's/Plugin ''Action: //') | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Plugin Action: execute a LLM based search for the search string given as input | ||
# echo executing a LLM based search | ||
searchstring=$(cat) | ||
echo "Searching for \"$searchstring\"" | ||
|
||
for type in md java js html jsp; do | ||
bin/llmsearch.sh "$type" "$searchstring" | ||
done | fgrep '{' | jq -c -s 'map(del(.[] | select(. == null))) | sort_by(.score) | reverse[]' | head -n 20 | ||
|
||
echo ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters