Revert "update(gpt-engineer)[2]"

This reverts commit 399a67e162.

Revert "update(gpt-engineer)[1]"

This reverts commit a38f5f1973.

Revert "update(gpt-engineer)"

This reverts commit ef47d55b43.
This commit is contained in:
Jacob Heider 2023-10-10 14:44:37 -04:00
parent c75393353a
commit cdebf5af62
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6
2 changed files with 12 additions and 10 deletions

View file

@ -1,15 +1,18 @@
#!/usr/bin/env -S pkgx +gum bash #!/usr/bin/env -S tea bash
# shellcheck shell=bash
#---
# dependencies:
# charm.sh/gum: '*'
#---
set -eo pipefail set -eo pipefail
# attempt to get the key from the users shell rc files (if set) # attempt to get the key from the users shell rc files (if set)
if [ -z "$OPENAI_API_KEY" ] && [ -n "$SHELL" ]; then if [ -z "$OPENAI_API_KEY" -a -n "$SHELL" ]; then
# shellcheck disable=SC2155,2016
export OPENAI_API_KEY="$(env -i "$SHELL" -ic 'echo $OPENAI_API_KEY')" export OPENAI_API_KEY="$(env -i "$SHELL" -ic 'echo $OPENAI_API_KEY')"
fi fi
if [ -z "$OPENAI_API_KEY" ]; then if [ -z "$OPENAI_API_KEY"]; then
gum format <<EoMD gum format <<EoMD
# OpenAI API key required # OpenAI API key required
You need an OpenAI API key to use this package. You need an OpenAI API key to use this package.
@ -19,12 +22,11 @@ if [ -z "$OPENAI_API_KEY" ]; then
GPT4 is recommended (but you gotta sign up for the GPT4 is recommended (but you gotta sign up for the
the [waitlist](https://openai.com/waitlist/gpt-4-api)) the [waitlist](https://openai.com/waitlist/gpt-4-api))
**this key will not be persisted by pkgx!** **this key will not be persisted by tea!**
EoMD EoMD
echo # spacer echo # spacer
# shellcheck disable=SC2155
export OPENAI_API_KEY="$(gum input --placeholder 'key pls')" export OPENAI_API_KEY="$(gum input --placeholder 'key pls')"
fi fi

View file

@ -1,5 +1,5 @@
distributable: distributable:
url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/v{{version}}.tar.gz url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/v0.0.3.tar.gz
strip-components: 1 strip-components: 1
versions: versions:
@ -9,9 +9,9 @@ display-name: GPT Engineer
dependencies: dependencies:
python.org: '>=3<3.12' python.org: '>=3<3.12'
pkgx.sh: ^1 tea.xyz: ^0
entrypoint: pkgx ./entrypoint.sh entrypoint: tea ./entrypoint.sh
build: build:
dependencies: dependencies: