diff --git a/.gitignore b/.gitignore index d93bdab..b9d2a78 100644 --- a/.gitignore +++ b/.gitignore @@ -4,12 +4,12 @@ .lsp /prompts/stable-diffusion/*.png **/.DS_Store -/functions/tree-sitter/.cpcache/ -/functions/tree-sitter/.nrepl-port -/functions/tree-sitter/hs_err_*.log -/functions/tree-sitter/main -/functions/tree-sitter-clj/target/ -/functions/tree-sitter-clj/.cpcache/ +/tools/tree-sitter/.cpcache/ +/tools/tree-sitter/.nrepl-port +/tools/tree-sitter/hs_err_*.log +/tools/tree-sitter/main +/tools/tree-sitter-clj/target/ +/tools/tree-sitter-clj/.cpcache/ /.cpcache/ /.nrepl-port /target/ diff --git a/flake.nix b/flake.nix index a8a626a..95fecd0 100644 --- a/flake.nix +++ b/flake.nix @@ -61,9 +61,9 @@ src = ./.; installPhase = '' mkdir -p $out/extractors - mkdir -p $out/functions + mkdir -p $out/tools cp ./extractors/registry.edn $out/extractors - cp ./functions/registry.edn $out/functions + cp ./tools/registry.edn $out/tools ''; }; diff --git a/functions/codescope/.direnv/flake-profile b/functions/codescope/.direnv/flake-profile deleted file mode 120000 index 0c05709..0000000 --- a/functions/codescope/.direnv/flake-profile +++ /dev/null @@ -1 +0,0 @@ -flake-profile-1-link \ No newline at end of file diff --git a/functions/codescope/.direnv/flake-profile-1-link b/functions/codescope/.direnv/flake-profile-1-link deleted file mode 120000 index aa5de4e..0000000 --- a/functions/codescope/.direnv/flake-profile-1-link +++ /dev/null @@ -1 +0,0 @@ -/nix/store/aq253zh53pswib3bf6xcr6fzjbk45kb5-python-env \ No newline at end of file diff --git a/functions/codescope/result b/functions/codescope/result deleted file mode 120000 index c57ab67..0000000 --- a/functions/codescope/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/i805b3nc1fzncjdad8qnqxxjsga13425-codescope-0.1.0 \ No newline at end of file diff --git a/functions/git/scripts/extract.sh b/functions/git/scripts/extract.sh deleted file mode 100644 index 369d567..0000000 --- a/functions/git/scripts/extract.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# Git status. redirect stderr to stdout -OUTPUT=$(git --no-pager status 2>&1) - -# If git status resulted in error, exit with it -if [ $? -ne 0 ]; then - echo $(jq -n \ - --arg output "$OUTPUT" \ - '{git: $output}') - exit $? -fi - -# Append git remote info -OUTPUT="$OUTPUT\n\n$(git --no-pager remote -v)" - -# Append git branch info -OUTPUT="$OUTPUT\n\n$(git --no-pager branch)" - -# Append git log info -OUTPUT="$OUTPUT\n\n$(git --no-pager log -10 --oneline)" - -# Echo JSON project.git -echo $(jq -n \ - --arg output "$OUTPUT" \ - '{git: $output}') - diff --git a/functions/git/scripts/git.sh b/functions/git/scripts/git.sh deleted file mode 100644 index 6812570..0000000 --- a/functions/git/scripts/git.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -echo "GOT ARGS $1" - -ARGS_JSON=$1 - -# Get the arguments -COMMAND=$(echo $ARGS_JSON | jq -r '.command') - -ARGS=$(echo $ARGS_JSON | jq -r '.args') - -# Run the command - -git $COMMAND $ARGS \ No newline at end of file diff --git a/functions/write_files/.direnv/flake-profile b/functions/write_files/.direnv/flake-profile deleted file mode 120000 index 0c05709..0000000 --- a/functions/write_files/.direnv/flake-profile +++ /dev/null @@ -1 +0,0 @@ -flake-profile-1-link \ No newline at end of file diff --git a/functions/write_files/.direnv/flake-profile-1-link b/functions/write_files/.direnv/flake-profile-1-link deleted file mode 120000 index 7f71ecb..0000000 --- a/functions/write_files/.direnv/flake-profile-1-link +++ /dev/null @@ -1 +0,0 @@ -/nix/store/ii9zj0868m701r51zd8gybnq9jr7il6a-devshell-env \ No newline at end of file diff --git a/functions/write_files/result b/functions/write_files/result deleted file mode 120000 index c1f15b7..0000000 --- a/functions/write_files/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/113z9gi16zpynxna8p7pmmhxq7bbrp3v-install \ No newline at end of file diff --git a/prompts/check-user-facing-pr-toolsonly/readme.md b/prompts/check-user-facing-pr-toolsonly/readme.md index 6e2baf0..478de72 100644 --- a/prompts/check-user-facing-pr-toolsonly/readme.md +++ b/prompts/check-user-facing-pr-toolsonly/readme.md @@ -37,15 +37,11 @@ You are a helpful assistant that checks a PR for user-facing changes. Execute steps one at a time. Don't use more than one tool at a time. Wait for each step to complete before starting the next. 1. Fetch everything and get on latest main. -2. Generate tree-sitter queries for the given project. -3. Checkout the PR branch and pull latest. -4. Run a three-dot git diff against main for just files changed. Write the output to /thread/diff.txt. -5. Run the `run-javascript-sandbox` tool with a script which reads /thread/diff.txt and filters the extensions to only include user-facing files based on the regex pattern. The script should console.log the user-facing files and write them to /thread/user-facing-diff.txt. -6. Run the generated tree-sitter queries against the first user facing diff file and report the results. Make sure any files are prefixed with the project path `/project/`. - - - + +2. Checkout the PR branch and pull latest. +3. Run a three-dot git diff against main for just files changed. Write the output to /thread/diff.txt. + # prompt user -I need you to check the branch `branch`. +I need you to check the branch `ac-4435-change-desktop-settings-reporting-to`. diff --git a/prompts/monologue.md b/prompts/monologue.md index dadd3ea..ed9e17a 100644 --- a/prompts/monologue.md +++ b/prompts/monologue.md @@ -1,6 +1,9 @@ --- extractors: - name: project-facts +url: http://host.docker.internal:11434/v1/chat/completions +model: llama3.2 +stream: false --- # Example prompt @@ -13,5 +16,4 @@ You are an assistant who can write comedic monologues in the style of Stephen Co Tell me about my project. My project uses the following languages: -{{project-facts.languages}} - +{{project-facts.languages}} \ No newline at end of file diff --git a/prompts/npm-project.md b/prompts/npm-project.md index fc2a8fd..9d59a8a 100644 --- a/prompts/npm-project.md +++ b/prompts/npm-project.md @@ -1,5 +1,5 @@ --- -functions: +tools: - name: run-javascript-sandbox description: Run a node.js script in the project parameters: @@ -12,6 +12,8 @@ functions: image: vonwig/javascript-runner command: - "{{javascript|safe}}" +url: https://api.anthropic.com/v1/messages +model: claude-3-5-sonnet-20241022 --- # not a prompt diff --git a/src/registry.clj b/src/registry.clj index c50faed..71e0dec 100644 --- a/src/registry.clj +++ b/src/registry.clj @@ -6,8 +6,8 @@ (set! *warn-on-reflection* true) -(defn- functions-dir [] - (dir/get-dir "./functions" "/app/result/functions" "/app/functions")) +(defn- tools-dir [] + (dir/get-dir "./tools" "/app/result/tools" "/app/tools")) (defn- extractors-dir [] (dir/get-dir "./extractors" "/app/result/extractors" "/app/extractors")) @@ -26,16 +26,16 @@ (into {})))) (comment - (pprint (get-registry functions-dir))) + (pprint (get-registry tools-dir))) -(defn get-function - " returns a function definition or nil" +(defn get-tool + " returns a tool definition or nil" [{:keys [name image]}] (or - (get (get-registry functions-dir) name) - (get (get-container-images functions-dir) image))) + (get (get-registry tools-dir) name) + (get (get-container-images tools-dir) image))) (defn get-extractor - " returns a function definition or nil" + " returns a extractor definition or nil" [{:keys [name]}] (get (get-registry extractors-dir) name)) diff --git a/functions/bash_alpine/Dockerfile b/tools/bash_alpine/Dockerfile similarity index 100% rename from functions/bash_alpine/Dockerfile rename to tools/bash_alpine/Dockerfile diff --git a/functions/bb/Dockerfile b/tools/bb/Dockerfile similarity index 100% rename from functions/bb/Dockerfile rename to tools/bb/Dockerfile diff --git a/functions/bb/flake.lock b/tools/bb/flake.lock similarity index 100% rename from functions/bb/flake.lock rename to tools/bb/flake.lock diff --git a/functions/bb/flake.nix b/tools/bb/flake.nix similarity index 100% rename from functions/bb/flake.nix rename to tools/bb/flake.nix diff --git a/functions/bb/init.clj b/tools/bb/init.clj similarity index 100% rename from functions/bb/init.clj rename to tools/bb/init.clj diff --git a/functions/bb/runbook.md b/tools/bb/runbook.md similarity index 100% rename from functions/bb/runbook.md rename to tools/bb/runbook.md diff --git a/functions/codescope/.envrc b/tools/codescope/.envrc similarity index 100% rename from functions/codescope/.envrc rename to tools/codescope/.envrc diff --git a/functions/codescope/Dockerfile b/tools/codescope/Dockerfile similarity index 100% rename from functions/codescope/Dockerfile rename to tools/codescope/Dockerfile diff --git a/functions/codescope/clipboard.nix b/tools/codescope/clipboard.nix similarity index 100% rename from functions/codescope/clipboard.nix rename to tools/codescope/clipboard.nix diff --git a/functions/codescope/derivation.nix b/tools/codescope/derivation.nix similarity index 100% rename from functions/codescope/derivation.nix rename to tools/codescope/derivation.nix diff --git a/functions/codescope/flake.lock b/tools/codescope/flake.lock similarity index 100% rename from functions/codescope/flake.lock rename to tools/codescope/flake.lock diff --git a/functions/codescope/flake.nix b/tools/codescope/flake.nix similarity index 100% rename from functions/codescope/flake.nix rename to tools/codescope/flake.nix diff --git a/functions/codescope/init.clj b/tools/codescope/init.clj similarity index 100% rename from functions/codescope/init.clj rename to tools/codescope/init.clj diff --git a/functions/codescope/runbook.md b/tools/codescope/runbook.md similarity index 100% rename from functions/codescope/runbook.md rename to tools/codescope/runbook.md diff --git a/functions/copilot_chat/copilot.clj b/tools/copilot_chat/copilot.clj similarity index 100% rename from functions/copilot_chat/copilot.clj rename to tools/copilot_chat/copilot.clj diff --git a/functions/copilot_chat/copilot_api.markdown b/tools/copilot_chat/copilot_api.markdown similarity index 100% rename from functions/copilot_chat/copilot_api.markdown rename to tools/copilot_chat/copilot_api.markdown diff --git a/functions/docker_rag/Dockerfile b/tools/docker_rag/Dockerfile similarity index 100% rename from functions/docker_rag/Dockerfile rename to tools/docker_rag/Dockerfile diff --git a/functions/docker_rag/flake.lock b/tools/docker_rag/flake.lock similarity index 100% rename from functions/docker_rag/flake.lock rename to tools/docker_rag/flake.lock diff --git a/functions/docker_rag/flake.nix b/tools/docker_rag/flake.nix similarity index 100% rename from functions/docker_rag/flake.nix rename to tools/docker_rag/flake.nix diff --git a/functions/docker_rag/init.clj b/tools/docker_rag/init.clj similarity index 100% rename from functions/docker_rag/init.clj rename to tools/docker_rag/init.clj diff --git a/functions/docker_rag/npm-best-practices.md b/tools/docker_rag/npm-best-practices.md similarity index 100% rename from functions/docker_rag/npm-best-practices.md rename to tools/docker_rag/npm-best-practices.md diff --git a/functions/docker_rag/runbook.md b/tools/docker_rag/runbook.md similarity index 100% rename from functions/docker_rag/runbook.md rename to tools/docker_rag/runbook.md diff --git a/functions/docker_scout_tag_recommendation/.envrc b/tools/docker_scout_tag_recommendation/.envrc similarity index 100% rename from functions/docker_scout_tag_recommendation/.envrc rename to tools/docker_scout_tag_recommendation/.envrc diff --git a/functions/docker_scout_tag_recommendation/Dockerfile b/tools/docker_scout_tag_recommendation/Dockerfile similarity index 100% rename from functions/docker_scout_tag_recommendation/Dockerfile rename to tools/docker_scout_tag_recommendation/Dockerfile diff --git a/functions/docker_scout_tag_recommendation/README.md b/tools/docker_scout_tag_recommendation/README.md similarity index 100% rename from functions/docker_scout_tag_recommendation/README.md rename to tools/docker_scout_tag_recommendation/README.md diff --git a/functions/docker_scout_tag_recommendation/flake.lock b/tools/docker_scout_tag_recommendation/flake.lock similarity index 100% rename from functions/docker_scout_tag_recommendation/flake.lock rename to tools/docker_scout_tag_recommendation/flake.lock diff --git a/functions/docker_scout_tag_recommendation/flake.nix b/tools/docker_scout_tag_recommendation/flake.nix similarity index 100% rename from functions/docker_scout_tag_recommendation/flake.nix rename to tools/docker_scout_tag_recommendation/flake.nix diff --git a/functions/docker_scout_tag_recommendation/init.clj b/tools/docker_scout_tag_recommendation/init.clj similarity index 100% rename from functions/docker_scout_tag_recommendation/init.clj rename to tools/docker_scout_tag_recommendation/init.clj diff --git a/functions/docker_scout_tag_recommendation/runbook.md b/tools/docker_scout_tag_recommendation/runbook.md similarity index 100% rename from functions/docker_scout_tag_recommendation/runbook.md rename to tools/docker_scout_tag_recommendation/runbook.md diff --git a/functions/findutils/Dockerfile b/tools/findutils/Dockerfile similarity index 100% rename from functions/findutils/Dockerfile rename to tools/findutils/Dockerfile diff --git a/functions/findutils/flake.lock b/tools/findutils/flake.lock similarity index 100% rename from functions/findutils/flake.lock rename to tools/findutils/flake.lock diff --git a/functions/findutils/flake.nix b/tools/findutils/flake.nix similarity index 100% rename from functions/findutils/flake.nix rename to tools/findutils/flake.nix diff --git a/functions/findutils/init.clj b/tools/findutils/init.clj similarity index 100% rename from functions/findutils/init.clj rename to tools/findutils/init.clj diff --git a/functions/findutils/runbook.md b/tools/findutils/runbook.md similarity index 100% rename from functions/findutils/runbook.md rename to tools/findutils/runbook.md diff --git a/functions/git/Dockerfile b/tools/git_thread_ssh/Dockerfile similarity index 75% rename from functions/git/Dockerfile rename to tools/git_thread_ssh/Dockerfile index 0ab71ee..054a444 100644 --- a/functions/git/Dockerfile +++ b/tools/git_thread_ssh/Dockerfile @@ -1,8 +1,5 @@ FROM alpine/git:latest -# Add jq and bash -RUN apk add --no-cache bash jq - COPY scripts/git.sh /git.sh COPY scripts/extract.sh /extract.sh diff --git a/functions/git/README.md b/tools/git_thread_ssh/README.md similarity index 100% rename from functions/git/README.md rename to tools/git_thread_ssh/README.md diff --git a/functions/github_cli/.envrc b/tools/github_cli/.envrc similarity index 100% rename from functions/github_cli/.envrc rename to tools/github_cli/.envrc diff --git a/functions/github_cli/Dockerfile b/tools/github_cli/Dockerfile similarity index 100% rename from functions/github_cli/Dockerfile rename to tools/github_cli/Dockerfile diff --git a/functions/github_cli/flake.lock b/tools/github_cli/flake.lock similarity index 100% rename from functions/github_cli/flake.lock rename to tools/github_cli/flake.lock diff --git a/functions/github_cli/flake.nix b/tools/github_cli/flake.nix similarity index 100% rename from functions/github_cli/flake.nix rename to tools/github_cli/flake.nix diff --git a/functions/github_cli/init.clj b/tools/github_cli/init.clj similarity index 100% rename from functions/github_cli/init.clj rename to tools/github_cli/init.clj diff --git a/functions/github_cli/runbook.md b/tools/github_cli/runbook.md similarity index 100% rename from functions/github_cli/runbook.md rename to tools/github_cli/runbook.md diff --git a/functions/graphviz/Dockerfile b/tools/graphviz/Dockerfile similarity index 100% rename from functions/graphviz/Dockerfile rename to tools/graphviz/Dockerfile diff --git a/functions/graphviz/flake.lock b/tools/graphviz/flake.lock similarity index 100% rename from functions/graphviz/flake.lock rename to tools/graphviz/flake.lock diff --git a/functions/graphviz/flake.nix b/tools/graphviz/flake.nix similarity index 100% rename from functions/graphviz/flake.nix rename to tools/graphviz/flake.nix diff --git a/functions/graphviz/init.clj b/tools/graphviz/init.clj similarity index 100% rename from functions/graphviz/init.clj rename to tools/graphviz/init.clj diff --git a/functions/graphviz/runbook.md b/tools/graphviz/runbook.md similarity index 100% rename from functions/graphviz/runbook.md rename to tools/graphviz/runbook.md diff --git a/functions/hub/Dockerfile.template b/tools/hub/Dockerfile.template similarity index 100% rename from functions/hub/Dockerfile.template rename to tools/hub/Dockerfile.template diff --git a/functions/hub/clj-kondo/Dockerfile b/tools/hub/clj-kondo/Dockerfile similarity index 100% rename from functions/hub/clj-kondo/Dockerfile rename to tools/hub/clj-kondo/Dockerfile diff --git a/functions/hub/clj-kondo/flake.lock b/tools/hub/clj-kondo/flake.lock similarity index 100% rename from functions/hub/clj-kondo/flake.lock rename to tools/hub/clj-kondo/flake.lock diff --git a/functions/hub/clj-kondo/flake.nix b/tools/hub/clj-kondo/flake.nix similarity index 100% rename from functions/hub/clj-kondo/flake.nix rename to tools/hub/clj-kondo/flake.nix diff --git a/functions/hub/clj-kondo/init.clj b/tools/hub/clj-kondo/init.clj similarity index 100% rename from functions/hub/clj-kondo/init.clj rename to tools/hub/clj-kondo/init.clj diff --git a/functions/hub/clj-kondo/runbook.md b/tools/hub/clj-kondo/runbook.md similarity index 100% rename from functions/hub/clj-kondo/runbook.md rename to tools/hub/clj-kondo/runbook.md diff --git a/functions/hub/curl/Dockerfile b/tools/hub/curl/Dockerfile similarity index 100% rename from functions/hub/curl/Dockerfile rename to tools/hub/curl/Dockerfile diff --git a/functions/hub/curl/flake.lock b/tools/hub/curl/flake.lock similarity index 100% rename from functions/hub/curl/flake.lock rename to tools/hub/curl/flake.lock diff --git a/functions/hub/curl/flake.nix b/tools/hub/curl/flake.nix similarity index 100% rename from functions/hub/curl/flake.nix rename to tools/hub/curl/flake.nix diff --git a/functions/hub/curl/init.clj b/tools/hub/curl/init.clj similarity index 100% rename from functions/hub/curl/init.clj rename to tools/hub/curl/init.clj diff --git a/functions/hub/curl/runbook.md b/tools/hub/curl/runbook.md similarity index 100% rename from functions/hub/curl/runbook.md rename to tools/hub/curl/runbook.md diff --git a/functions/hub/fasttext/Dockerfile b/tools/hub/fasttext/Dockerfile similarity index 100% rename from functions/hub/fasttext/Dockerfile rename to tools/hub/fasttext/Dockerfile diff --git a/functions/hub/fasttext/flake.lock b/tools/hub/fasttext/flake.lock similarity index 100% rename from functions/hub/fasttext/flake.lock rename to tools/hub/fasttext/flake.lock diff --git a/functions/hub/fasttext/flake.nix b/tools/hub/fasttext/flake.nix similarity index 100% rename from functions/hub/fasttext/flake.nix rename to tools/hub/fasttext/flake.nix diff --git a/functions/hub/fasttext/init.clj b/tools/hub/fasttext/init.clj similarity index 100% rename from functions/hub/fasttext/init.clj rename to tools/hub/fasttext/init.clj diff --git a/functions/hub/fasttext/runbook.md b/tools/hub/fasttext/runbook.md similarity index 100% rename from functions/hub/fasttext/runbook.md rename to tools/hub/fasttext/runbook.md diff --git a/functions/hub/flake.lock.template b/tools/hub/flake.lock.template similarity index 100% rename from functions/hub/flake.lock.template rename to tools/hub/flake.lock.template diff --git a/functions/hub/flake.nix.template b/tools/hub/flake.nix.template similarity index 100% rename from functions/hub/flake.nix.template rename to tools/hub/flake.nix.template diff --git a/functions/hub/init.clj.template b/tools/hub/init.clj.template similarity index 100% rename from functions/hub/init.clj.template rename to tools/hub/init.clj.template diff --git a/functions/hub/pull_tools.clj b/tools/hub/pull_tools.clj similarity index 100% rename from functions/hub/pull_tools.clj rename to tools/hub/pull_tools.clj diff --git a/functions/hub/qrencode/Dockerfile b/tools/hub/qrencode/Dockerfile similarity index 100% rename from functions/hub/qrencode/Dockerfile rename to tools/hub/qrencode/Dockerfile diff --git a/functions/hub/qrencode/flake.lock b/tools/hub/qrencode/flake.lock similarity index 100% rename from functions/hub/qrencode/flake.lock rename to tools/hub/qrencode/flake.lock diff --git a/functions/hub/qrencode/flake.nix b/tools/hub/qrencode/flake.nix similarity index 100% rename from functions/hub/qrencode/flake.nix rename to tools/hub/qrencode/flake.nix diff --git a/functions/hub/qrencode/init.clj b/tools/hub/qrencode/init.clj similarity index 100% rename from functions/hub/qrencode/init.clj rename to tools/hub/qrencode/init.clj diff --git a/functions/hub/qrencode/runbook.md b/tools/hub/qrencode/runbook.md similarity index 100% rename from functions/hub/qrencode/runbook.md rename to tools/hub/qrencode/runbook.md diff --git a/functions/hub/typo/Dockerfile b/tools/hub/typo/Dockerfile similarity index 100% rename from functions/hub/typo/Dockerfile rename to tools/hub/typo/Dockerfile diff --git a/functions/hub/typo/flake.lock b/tools/hub/typo/flake.lock similarity index 100% rename from functions/hub/typo/flake.lock rename to tools/hub/typo/flake.lock diff --git a/functions/hub/typo/flake.nix b/tools/hub/typo/flake.nix similarity index 100% rename from functions/hub/typo/flake.nix rename to tools/hub/typo/flake.nix diff --git a/functions/hub/typo/init.clj b/tools/hub/typo/init.clj similarity index 100% rename from functions/hub/typo/init.clj rename to tools/hub/typo/init.clj diff --git a/functions/hub/typo/runbook.md b/tools/hub/typo/runbook.md similarity index 100% rename from functions/hub/typo/runbook.md rename to tools/hub/typo/runbook.md diff --git a/functions/imagemagick/Dockerfile b/tools/imagemagick/Dockerfile similarity index 100% rename from functions/imagemagick/Dockerfile rename to tools/imagemagick/Dockerfile diff --git a/functions/imagemagick/flake.lock b/tools/imagemagick/flake.lock similarity index 100% rename from functions/imagemagick/flake.lock rename to tools/imagemagick/flake.lock diff --git a/functions/imagemagick/flake.nix b/tools/imagemagick/flake.nix similarity index 100% rename from functions/imagemagick/flake.nix rename to tools/imagemagick/flake.nix diff --git a/functions/imagemagick/init.clj b/tools/imagemagick/init.clj similarity index 100% rename from functions/imagemagick/init.clj rename to tools/imagemagick/init.clj diff --git a/functions/imagemagick/runbook.md b/tools/imagemagick/runbook.md similarity index 100% rename from functions/imagemagick/runbook.md rename to tools/imagemagick/runbook.md diff --git a/functions/javascript-runner/Dockerfile b/tools/javascript-runner/Dockerfile similarity index 100% rename from functions/javascript-runner/Dockerfile rename to tools/javascript-runner/Dockerfile diff --git a/functions/javascript-runner/Dockerfile.nix b/tools/javascript-runner/Dockerfile.nix similarity index 100% rename from functions/javascript-runner/Dockerfile.nix rename to tools/javascript-runner/Dockerfile.nix diff --git a/functions/javascript-runner/chat b/tools/javascript-runner/chat similarity index 100% rename from functions/javascript-runner/chat rename to tools/javascript-runner/chat diff --git a/functions/javascript-runner/default.nix b/tools/javascript-runner/default.nix similarity index 100% rename from functions/javascript-runner/default.nix rename to tools/javascript-runner/default.nix diff --git a/functions/javascript-runner/flake.lock b/tools/javascript-runner/flake.lock similarity index 100% rename from functions/javascript-runner/flake.lock rename to tools/javascript-runner/flake.lock diff --git a/functions/javascript-runner/flake.nix b/tools/javascript-runner/flake.nix similarity index 100% rename from functions/javascript-runner/flake.nix rename to tools/javascript-runner/flake.nix diff --git a/functions/javascript-runner/main.js b/tools/javascript-runner/main.js similarity index 100% rename from functions/javascript-runner/main.js rename to tools/javascript-runner/main.js diff --git a/functions/javascript-runner/node-env.nix b/tools/javascript-runner/node-env.nix similarity index 100% rename from functions/javascript-runner/node-env.nix rename to tools/javascript-runner/node-env.nix diff --git a/functions/javascript-runner/node-packages.nix b/tools/javascript-runner/node-packages.nix similarity index 100% rename from functions/javascript-runner/node-packages.nix rename to tools/javascript-runner/node-packages.nix diff --git a/functions/javascript-runner/package-lock.json b/tools/javascript-runner/package-lock.json similarity index 100% rename from functions/javascript-runner/package-lock.json rename to tools/javascript-runner/package-lock.json diff --git a/functions/javascript-runner/package.json b/tools/javascript-runner/package.json similarity index 100% rename from functions/javascript-runner/package.json rename to tools/javascript-runner/package.json diff --git a/functions/javascript-runner/runbook.md b/tools/javascript-runner/runbook.md similarity index 100% rename from functions/javascript-runner/runbook.md rename to tools/javascript-runner/runbook.md diff --git a/functions/node_intersector/Dockerfile b/tools/node_intersector/Dockerfile similarity index 100% rename from functions/node_intersector/Dockerfile rename to tools/node_intersector/Dockerfile diff --git a/functions/node_intersector/main.js b/tools/node_intersector/main.js similarity index 100% rename from functions/node_intersector/main.js rename to tools/node_intersector/main.js diff --git a/functions/node_intersector/readme.md b/tools/node_intersector/readme.md similarity index 100% rename from functions/node_intersector/readme.md rename to tools/node_intersector/readme.md diff --git a/functions/node_intersector/test_file.py b/tools/node_intersector/test_file.py similarity index 100% rename from functions/node_intersector/test_file.py rename to tools/node_intersector/test_file.py diff --git a/functions/pylint/Dockerfile b/tools/pylint/Dockerfile similarity index 100% rename from functions/pylint/Dockerfile rename to tools/pylint/Dockerfile diff --git a/functions/pylint/lint.sh b/tools/pylint/lint.sh similarity index 100% rename from functions/pylint/lint.sh rename to tools/pylint/lint.sh diff --git a/functions/pylint/output_format.sh b/tools/pylint/output_format.sh similarity index 100% rename from functions/pylint/output_format.sh rename to tools/pylint/output_format.sh diff --git a/functions/read_files/Dockerfile b/tools/read_files/Dockerfile similarity index 100% rename from functions/read_files/Dockerfile rename to tools/read_files/Dockerfile diff --git a/functions/read_files/README.md b/tools/read_files/README.md similarity index 100% rename from functions/read_files/README.md rename to tools/read_files/README.md diff --git a/functions/read_files/scripts/read.sh b/tools/read_files/scripts/read.sh similarity index 100% rename from functions/read_files/scripts/read.sh rename to tools/read_files/scripts/read.sh diff --git a/functions/registry.edn b/tools/registry.edn similarity index 100% rename from functions/registry.edn rename to tools/registry.edn diff --git a/functions/registry.yaml b/tools/registry.yaml similarity index 97% rename from functions/registry.yaml rename to tools/registry.yaml index f1c5b60..aa0cd95 100644 --- a/functions/registry.yaml +++ b/tools/registry.yaml @@ -134,7 +134,7 @@ registry: - "{{database}}" - "{{sql|safe}}" - name: run-javascript-sandbox - description: Execute javascript in a Node.JS environment. + description: Execute javascript in a Node.JS environment. STDOUT and STDERR will be returned to you. parameters: type: object properties: diff --git a/functions/runbook.md b/tools/runbook.md similarity index 100% rename from functions/runbook.md rename to tools/runbook.md diff --git a/functions/sqlite/Dockerfile b/tools/sqlite/Dockerfile similarity index 100% rename from functions/sqlite/Dockerfile rename to tools/sqlite/Dockerfile diff --git a/functions/sqlite/flake.lock b/tools/sqlite/flake.lock similarity index 100% rename from functions/sqlite/flake.lock rename to tools/sqlite/flake.lock diff --git a/functions/sqlite/flake.nix b/tools/sqlite/flake.nix similarity index 100% rename from functions/sqlite/flake.nix rename to tools/sqlite/flake.nix diff --git a/functions/sqlite/runbook.md b/tools/sqlite/runbook.md similarity index 100% rename from functions/sqlite/runbook.md rename to tools/sqlite/runbook.md diff --git a/functions/tree-sitter-clj/.envrc b/tools/tree-sitter-clj/.envrc similarity index 100% rename from functions/tree-sitter-clj/.envrc rename to tools/tree-sitter-clj/.envrc diff --git a/functions/tree-sitter-clj/Dockerfile b/tools/tree-sitter-clj/Dockerfile similarity index 100% rename from functions/tree-sitter-clj/Dockerfile rename to tools/tree-sitter-clj/Dockerfile diff --git a/functions/tree-sitter-clj/build.clj b/tools/tree-sitter-clj/build.clj similarity index 100% rename from functions/tree-sitter-clj/build.clj rename to tools/tree-sitter-clj/build.clj diff --git a/functions/tree-sitter-clj/cmd/ts/main.go b/tools/tree-sitter-clj/cmd/ts/main.go similarity index 100% rename from functions/tree-sitter-clj/cmd/ts/main.go rename to tools/tree-sitter-clj/cmd/ts/main.go diff --git a/functions/tree-sitter-clj/deps-lock.json b/tools/tree-sitter-clj/deps-lock.json similarity index 100% rename from functions/tree-sitter-clj/deps-lock.json rename to tools/tree-sitter-clj/deps-lock.json diff --git a/functions/tree-sitter-clj/deps.edn b/tools/tree-sitter-clj/deps.edn similarity index 100% rename from functions/tree-sitter-clj/deps.edn rename to tools/tree-sitter-clj/deps.edn diff --git a/functions/tree-sitter-clj/flake.lock b/tools/tree-sitter-clj/flake.lock similarity index 100% rename from functions/tree-sitter-clj/flake.lock rename to tools/tree-sitter-clj/flake.lock diff --git a/functions/tree-sitter-clj/flake.nix b/tools/tree-sitter-clj/flake.nix similarity index 100% rename from functions/tree-sitter-clj/flake.nix rename to tools/tree-sitter-clj/flake.nix diff --git a/functions/tree-sitter-clj/init.clj b/tools/tree-sitter-clj/init.clj similarity index 100% rename from functions/tree-sitter-clj/init.clj rename to tools/tree-sitter-clj/init.clj diff --git a/functions/tree-sitter-clj/lib.clj b/tools/tree-sitter-clj/lib.clj similarity index 100% rename from functions/tree-sitter-clj/lib.clj rename to tools/tree-sitter-clj/lib.clj diff --git a/functions/tree-sitter-clj/main.c b/tools/tree-sitter-clj/main.c similarity index 100% rename from functions/tree-sitter-clj/main.c rename to tools/tree-sitter-clj/main.c diff --git a/functions/tree-sitter-clj/runbook.md b/tools/tree-sitter-clj/runbook.md similarity index 100% rename from functions/tree-sitter-clj/runbook.md rename to tools/tree-sitter-clj/runbook.md diff --git a/functions/tree-sitter-clj/src/clojure/docker/ts.clj b/tools/tree-sitter-clj/src/clojure/docker/ts.clj similarity index 100% rename from functions/tree-sitter-clj/src/clojure/docker/ts.clj rename to tools/tree-sitter-clj/src/clojure/docker/ts.clj diff --git a/functions/tree-sitter-clj/src/java/com/docker/TreeSitterLibrary.java b/tools/tree-sitter-clj/src/java/com/docker/TreeSitterLibrary.java similarity index 100% rename from functions/tree-sitter-clj/src/java/com/docker/TreeSitterLibrary.java rename to tools/tree-sitter-clj/src/java/com/docker/TreeSitterLibrary.java diff --git a/functions/tree-sitter-clj/test/resources/hello.py b/tools/tree-sitter-clj/test/resources/hello.py similarity index 100% rename from functions/tree-sitter-clj/test/resources/hello.py rename to tools/tree-sitter-clj/test/resources/hello.py diff --git a/functions/tree-sitter/.envrc b/tools/tree-sitter/.envrc similarity index 100% rename from functions/tree-sitter/.envrc rename to tools/tree-sitter/.envrc diff --git a/functions/tree-sitter/Dockerfile b/tools/tree-sitter/Dockerfile similarity index 100% rename from functions/tree-sitter/Dockerfile rename to tools/tree-sitter/Dockerfile diff --git a/functions/tree-sitter/README.md b/tools/tree-sitter/README.md similarity index 100% rename from functions/tree-sitter/README.md rename to tools/tree-sitter/README.md diff --git a/functions/tree-sitter/cmd/ts/main.go b/tools/tree-sitter/cmd/ts/main.go similarity index 100% rename from functions/tree-sitter/cmd/ts/main.go rename to tools/tree-sitter/cmd/ts/main.go diff --git a/functions/tree-sitter/flake.lock b/tools/tree-sitter/flake.lock similarity index 100% rename from functions/tree-sitter/flake.lock rename to tools/tree-sitter/flake.lock diff --git a/functions/tree-sitter/flake.nix b/tools/tree-sitter/flake.nix similarity index 100% rename from functions/tree-sitter/flake.nix rename to tools/tree-sitter/flake.nix diff --git a/functions/tree-sitter/go.mod b/tools/tree-sitter/go.mod similarity index 100% rename from functions/tree-sitter/go.mod rename to tools/tree-sitter/go.mod diff --git a/functions/tree-sitter/go.sum b/tools/tree-sitter/go.sum similarity index 100% rename from functions/tree-sitter/go.sum rename to tools/tree-sitter/go.sum diff --git a/functions/tree-sitter/runbook.md b/tools/tree-sitter/runbook.md similarity index 100% rename from functions/tree-sitter/runbook.md rename to tools/tree-sitter/runbook.md diff --git a/functions/tree-sitter/test/resources/hello.md b/tools/tree-sitter/test/resources/hello.md similarity index 100% rename from functions/tree-sitter/test/resources/hello.md rename to tools/tree-sitter/test/resources/hello.md diff --git a/functions/tree-sitter/test/resources/hello.py b/tools/tree-sitter/test/resources/hello.py similarity index 100% rename from functions/tree-sitter/test/resources/hello.py rename to tools/tree-sitter/test/resources/hello.py diff --git a/functions/tree_sitter/Dockerfile b/tools/tree_sitter/Dockerfile similarity index 100% rename from functions/tree_sitter/Dockerfile rename to tools/tree_sitter/Dockerfile diff --git a/functions/tree_sitter/config.json b/tools/tree_sitter/config.json similarity index 100% rename from functions/tree_sitter/config.json rename to tools/tree_sitter/config.json diff --git a/functions/what_is_my_ip/.envrc b/tools/what_is_my_ip/.envrc similarity index 100% rename from functions/what_is_my_ip/.envrc rename to tools/what_is_my_ip/.envrc diff --git a/functions/what_is_my_ip/Dockerfile b/tools/what_is_my_ip/Dockerfile similarity index 100% rename from functions/what_is_my_ip/Dockerfile rename to tools/what_is_my_ip/Dockerfile diff --git a/functions/what_is_my_ip/README.md b/tools/what_is_my_ip/README.md similarity index 100% rename from functions/what_is_my_ip/README.md rename to tools/what_is_my_ip/README.md diff --git a/functions/what_is_my_ip/flake.lock b/tools/what_is_my_ip/flake.lock similarity index 100% rename from functions/what_is_my_ip/flake.lock rename to tools/what_is_my_ip/flake.lock diff --git a/functions/what_is_my_ip/flake.nix b/tools/what_is_my_ip/flake.nix similarity index 100% rename from functions/what_is_my_ip/flake.nix rename to tools/what_is_my_ip/flake.nix diff --git a/functions/what_is_my_ip/runbook.md b/tools/what_is_my_ip/runbook.md similarity index 100% rename from functions/what_is_my_ip/runbook.md rename to tools/what_is_my_ip/runbook.md diff --git a/functions/write_files/.envrc b/tools/write_files/.envrc similarity index 100% rename from functions/write_files/.envrc rename to tools/write_files/.envrc diff --git a/functions/write_files/Dockerfile b/tools/write_files/Dockerfile similarity index 100% rename from functions/write_files/Dockerfile rename to tools/write_files/Dockerfile diff --git a/functions/write_files/README.md b/tools/write_files/README.md similarity index 100% rename from functions/write_files/README.md rename to tools/write_files/README.md diff --git a/functions/write_files/flake.lock b/tools/write_files/flake.lock similarity index 100% rename from functions/write_files/flake.lock rename to tools/write_files/flake.lock diff --git a/functions/write_files/flake.nix b/tools/write_files/flake.nix similarity index 100% rename from functions/write_files/flake.nix rename to tools/write_files/flake.nix diff --git a/functions/write_files/init.clj b/tools/write_files/init.clj similarity index 100% rename from functions/write_files/init.clj rename to tools/write_files/init.clj diff --git a/functions/write_files/runbook.md b/tools/write_files/runbook.md similarity index 100% rename from functions/write_files/runbook.md rename to tools/write_files/runbook.md