Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

readme, development guide, license, other tweaks

Dane Schneider34a04021e7b3
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
new file mode 100644
index 00000000..660417db
--- /dev/null
+++ b/DEVELOPMENT.md
@@ -0,0 +1,18 @@
+## Development
+
+To set up a development environment, first install dependencies:
+
+- Go 1.21.3 - [install here](https://go.dev/doc/install)
+- [reflex](https://github.com/cespare/reflex) 0.3.1 - for watching files and rebuilding in development. Install with `go install github.com/cespare/[email protected]`
+
+Then from the root directory, run:
+
+```bash
+./dev.sh
+```
+
+This creates watchers with `reflex` to rebuild both the server and the CLI when relevant files change.
+
+The server runs on port 8088 by default.
+
+After each build, the CLI is copied to `/usr/local/bin/plandex` so you can use it with just `plandex` in any directory. A `pdx` alias is also created.
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 00000000..2d1f7df0
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,7 @@
+Copyright (c) 2024 Dane Schneider
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
index 02b37946..81fff0c5 100644
--- a/README.md
+++ b/README.md
@@ -1,39 +1,180 @@
# Plandex
-Iterative development with AI.
+🏗️ Build large features and entire projects with AI.
-## Dependencies
+🤖 Plandex is an open source, terminal-based AI programming engine with long-running agents, automatic file updates, versioning, branches, and diff review.
-- Go 1.21.3 - [install here](https://go.dev/doc/install)
-- [reflex](https://github.com/cespare/reflex) 0.3.1 - for watching files and rebuilding in development. Install with `go install github.com/cespare/[email protected]`
+🔄 It enables a tight feedback loop between programmer and AI.
-## Development
+🔮 It helps you churn through your backlog, learn new technologies, get unstuck, and spend less time on tedious tasks.
-From the root directory, run:
+🧠 It relies on the OpenAI API and requires an OPENAI_API_KEY environment variable to be set. Support for Open Source models, Google Gemini, and Anthropic Claude is coming soon.
-```bash
-export OPENAI_API_KEY=...
-./dev.sh
-```
-
-This creates watchers with `reflex` to rebuild both the server and the CLI when relevant files change.
+## Install 📥
-The server runs on port 8088 by default.
+curl -s https://plandex.ai/install.sh | bash
-After each build, the CLI is copied to `/usr/local/bin/plandex` so you can use it with just `plandex` in any directory. A `pdx` alias is also created.
+## Why Plandex? 🤔
-## Usage
+- Go beyond autocomplete to build complex functionality with AI 🛠️
+- Stop the mouse-centered, copy-pasting-back-and-forth madness of coding with ChatGPT 🚫🖱️
+- Manage context efficiently in the terminal 📑
+- Ensure the AI model is always working with the latest version of your files ⚡️
+- Experiment, revise, and review in a protected sandbox before applying changes 🚧
+- Rewind and retry as needed with version control ⏪
+- Explore multiple approaches with branches 🌱
+- Work on multiple tasks in parallel 🏎️ 🏎️ 🏎️
+- Try different models and model settings 🧠 🌡️
-To start on a new plan, run:
+## Get started 🚀
```
plandex new
```
-For many commands (like `plandex new`), after the command is run, additional commands that may make sense to run next will be suggested.
+To type a bit less, you can use the `pdx` alias instead of `plandex` if you like:
+
+```
+pdx new
+```
+
+After any plandex command is run, additional commands that may make sense to run next will be suggested.
To see all available commands, run:
```
plandex help
```
+
+For help on any command, run:
+
+```
+plandex [command] --help
+```
+
+## Plandex Cloud ☁️
+
+Plandex Cloud is the easiest and most reliable way to use Plandex. You'll be prompted to start an anonymous trial (no email required) when you create your first plan with `plandex new`. Anonymous trial accounts are limited to 10 plans and 10 replies per plan. You can upgrade to a full account at any time with a name and email.
+
+Plandex Cloud accounts are free for now. In the future, it will have a monthly fee comparable to other popular AI co-pilot tools.
+
+## Self-hosting 🏠
+
+### Anywhere
+
+The Plandex server runs from a Dockerfile at `app/Dockerfile.server`. It requires a PostgreSQL database and these environment variables:
+
+```bash
+export DATABASE_URL=postgres://user:password@host:5432/plandex # replace with your own database URL
+export GOENV=production
+```
+
+Authentication emails are sent through AWS SES, so you'll need an AWS account with SES enabled. You'll be able to sub in SMTP credentials in the future (PRs welcome).
+
+### AWS
+
+Run `./infra/deploy.sh` to deploy a production-ready Cloudformation stack to AWS.
+
+It requires an AWS account in ~/.aws/credentials, and these environment variables:
+
+```bash
+AWS_PROFILE=your-aws-profile
+AWS_REGION=your-aws-region
+NOTIFY_EMAIL=your-email # AWS cloudwatch alerts and notifications
+NOTIFY_SMS=country-code-plus-full-number # e.g. +14155552671 | for urgent AWS alerts
+CERTIFICATE_ARN=your-aws-cert-manager-arn # for HTTPS -- must be a valid certificate in AWS Certificate Manager in the same region
+```
+
+### Locally
+
+To run the Plandex server locally, run it in development mode with `./dev.sh`. You'll need a PostgreSQL database running locally as well as these environment variables:
+
+```bash
+export DATABASE_URL=postgres://user:password@localhost:5432/plandex # replace with your own local database URL
+export GOENV=development
+```
+
+Authentication codes will be copied to your clipboard with a system notification instead of being sent by email.
+
+## Security 🔐
+
+Plandex follows best practices for network and data security. As I'm also the founder of a devops-security company ([EnvKey](https://envkey.com)), this is an area I have experience in and take extremely seriously. Data is encrypted in transit and at rest. The database runs within a private, hardened network.
+
+### Ignore sensitive files
+
+Plandex respects .gitignore and won't load any files that you're ignoring. You can also add a .plandexignore file with ignore patterns to any directory.
+
+### API key security
+
+Plandex is a bring-your-own-API-key tool. On the server, API keys are only stored ephemerally in RAM while they are in active use. They are never written to disk, logged, or stored in a database.
+
+It's up to you to manage your API keys securely. Try to avoid storing them in multiple places, exposing them to third party services, or sending them around in plain text. If you'd like some help, please do check out the aforementioned [EnvKey](https://envkey.com). It's open source, end-to-end encrypted, easy to use, and free for up to 3 users. To set your `OPENAI_API_KEY` with EnvKey, you'd add it to an app in the EnvKey UI or CLI, then run `eval $(envkey-source)` in your terminal.
+
+### Third party services
+
+Plandex Cloud relies on AWS for all database and hosting services, Github for code storage, and the OpenAI API for AI models. No other third party services are used.
+
+## Privacy and data retention 🛡️
+
+Data you send to Plandex Cloud is retained in order to debug and improve Plandex. In the future, this data may also be used to train and fine-tune models to improve performance.
+
+That said, if you delete a plan or delete your account, all associated data will be removed from the database. It will still be included in database backups for up to 7 days, then it will no longer exist anywhere on our servers.
+
+If you self-host Plandex, no data will be sent to Plandex Cloud for any reason.
+
+Data sent to the OpenAI API is subject to OpenAI's privacy policy.
+
+## Roadmap 🗺️
+
+- Support for Open Source models, Google Gemini, and Anthropic Claude in addition to OpenAI ✨
+- Plan sharing and team collaboration 🤝
+- GPT4-Vision support; add images and screenshots to context 🖼️
+- VSCode extension 💻
+- Github integration 🔌
+- Web dashboard and GUI 🌐
+
+This list will grow and be prioritized based on your feedback.
+
+## Discord and discussion 💬
+
+Speaking of feedback, feel free to give yours, ask questions, report a bug, or just hang out:
+
+- Discord
+- Discussions
+- Issues
+
+## Contributors 👥
+
+Contributors are welcomed, celebrated, and high fived a lot 🙌
+
+Please star ⭐, fork ⑂, explore 🔍, and contribute 🤝
+
+## Comparable tools 🛠️
+
+- [Aider](https://github.com/paul-gauthier/aider)
+- [Mentat](https://github.com/AbanteAI/mentat)
+- [Pythagora Gpt-pilot](https://github.com/Pythagora-io/gpt-pilot)
+- [Sourcegraph Cody](https://github.com/sourcegraph/cody)
+- [Continue.dev](https://github.com/continuedev/continue)
+- [Sweep.dev](https://github.com/sweepai/sweep)
+- [Cursor](https://github.com/getcursor/cursor)
+- [Github Copilot](https://github.com/features/copilot)
+- [Replit Ghostwriter](https://replit.com/ai)
+
+## About the developer 👋
+
+Hi, I'm Dane. I've been building and launching software products for 17 years. I went through YCombinator in winter 2018 with my devops security company, EnvKey, which I continue to run today. I'm fascinated by LLMs and their potential to transform the practice of software development.
+
+I live with my wife and 4 year old daughter on the SF peninsula. I grew up in the Finger Lakes region of upstate New York. I like reading fiction, listening to podcasts, fitness, and surfing. I started Brazilian Jiu-Jitsu recently and am pretty absorbed with that these days as well.
+
+## Possible co-founder? 😎
+
+I'm looking for a technical co-founder or two with Golang/Devops/TypeScript experience to help me get Plandex off the ground as an open source project, a product, and a fun, WFH-friendly company. If you're interested, please reach out or jump in and start contributing.
+
+## Possible employee? 👩‍💻
+
+While I'm not currently hiring for Plandex, I hope to in the future. If you're an experienced Golang or TypeScript engineer and are interested in working remotely on Plandex for a salary at some point with a group of smart, nice, and fun people, please reach out or jump in and start contributing.
+
+## Possible investor? 💰
+
+I'd love for Plandex's users and contributors to own a significant share of the cap table. Please reach out if you're an angel investor and are interested in investing.
diff --git a/app/cli/auth/account.go b/app/cli/auth/account.go
index 4b2b0a13..4bf4f634 100644
--- a/app/cli/auth/account.go
+++ b/app/cli/auth/account.go
@@ -10,8 +10,8 @@ import (
)
const (
- AuthFreeTrialOption = "Start a free trial on Plandex Cloud (no email or credit card required)"
- AuthAccountOption = "Sign in, create an account, or accept an invite"
+ AuthFreeTrialOption = "Start an anonymous trial on Plandex Cloud (no email required)"
+ AuthAccountOption = "Sign in or create an account"
)
func promptInitialAuth() error {
diff --git a/app/cli/cmd/new.go b/app/cli/cmd/new.go
index 74763de9..03198b41 100644
--- a/app/cli/cmd/new.go
+++ b/app/cli/cmd/new.go
@@ -41,9 +41,9 @@ func new(cmd *cobra.Command, args []string) {
if apiErr != nil {
if apiErr.Type == shared.ApiErrorTypeTrialPlansExceeded {
- fmt.Fprintf(os.Stderr, "🚨 You've reached the free trial limit of %d plans\n", apiErr.TrialPlansExceededError.MaxPlans)
+ fmt.Fprintf(os.Stderr, "🚨 You've reached the Plandex Cloud anonymous trial limit of %d plans\n", apiErr.TrialPlansExceededError.MaxPlans)
- res, err := term.ConfirmYesNo("Upgrade trial now?")
+ res, err := term.ConfirmYesNo("Upgrade to an unlimited free account?")
if err != nil {
term.OutputErrorAndExit("Error prompting upgrade trial: %v", err)
diff --git a/app/cli/plan_exec/tell.go b/app/cli/plan_exec/tell.go
index 196b72d4..aff6bf4c 100644
--- a/app/cli/plan_exec/tell.go
+++ b/app/cli/plan_exec/tell.go
@@ -77,9 +77,9 @@ func TellPlan(
if apiErr != nil {
if apiErr.Type == shared.ApiErrorTypeTrialMessagesExceeded {
- fmt.Fprintf(os.Stderr, "\n🚨 You've reached the free trial limit of %d messages per plan\n", apiErr.TrialMessagesExceededError.MaxReplies)
+ fmt.Fprintf(os.Stderr, "\n🚨 You've reached the Plandex Cloud anonymous trial limit of %d messages per plan\n", apiErr.TrialMessagesExceededError.MaxReplies)
- res, err := term.ConfirmYesNo("Upgrade now?")
+ res, err := term.ConfirmYesNo("Upgrade to an unlimited free account?")
if err != nil {
term.OutputErrorAndExit("Error prompting upgrade trial: %v", err)
diff --git a/app/cli/term/help.go b/app/cli/term/help.go
index f6e79636..3b1bc3a9 100644
--- a/app/cli/term/help.go
+++ b/app/cli/term/help.go
@@ -102,43 +102,43 @@ func PrintCustomHelp() {
fmt.Fprintf(builder, " Create a new plan in your project's root directory with %s\n\n", color.New(color.Bold, color.BgCyan).Sprint(" plandex new "))
color.New(color.Bold, color.BgMagenta).Fprintln(builder, " Key Commands ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "new", "load", "tell", "changes", "apply")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiMagenta}, "new", "load", "tell", "changes", "apply")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " Plans ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "new", "plans", "cd", "current", "delete-plan")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " Plans ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "new", "plans", "cd", "current", "delete-plan")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " Changes ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "changes", "apply")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " Changes ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "changes", "apply")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " Context ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "load", "ls", "rm", "update", "clear")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " Context ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "load", "ls", "rm", "update", "clear")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " Branches ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "branches", "checkout", "delete-branch")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " Branches ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "branches", "checkout", "delete-branch")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " History ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "convo", "log", "rewind")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " History ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "convo", "log", "rewind")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " Execution ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "tell", "continue", "build")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " Control ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "tell", "continue", "build")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " Active Plans ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "ps", "connect", "stop")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " Streams ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "ps", "connect", "stop")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " AI Models ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "models", "set-model")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " AI Models ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "models", "set-model")
fmt.Fprintln(builder)
- color.New(color.Bold, color.BgBlue).Fprintln(builder, " Accounts ")
- printCmds(builder, " ", []color.Attribute{color.Bold}, "sign-in")
+ color.New(color.Bold, color.BgCyan).Fprintln(builder, " Accounts ")
+ printCmds(builder, " ", []color.Attribute{color.Bold, color.FgHiCyan}, "sign-in")
fmt.Fprintln(builder)
fmt.Print(builder.String())
diff --git a/app/server/db/auth_helpers.go b/app/server/db/auth_helpers.go
index d1fc582d..7231776a 100644
--- a/app/server/db/auth_helpers.go
+++ b/app/server/db/auth_helpers.go
@@ -11,7 +11,7 @@ import (
"github.com/pkg/errors"
)
-const tokenExpirationDays = 90 // (free trial tokens don't expire)
+const tokenExpirationDays = 90 // (trial tokens don't expire)
func CreateAuthToken(userId string, isTrial bool, tx *sql.Tx) (token, id string, err error) {
uid := uuid.New()
@@ -40,7 +40,7 @@ func ValidateAuthToken(token string) (*AuthToken, error) {
tokenHash := hex.EncodeToString(hashBytes[:])
var authToken AuthToken
- // free trial tokens don't expire
+ // trial tokens don't expire
err = Conn.Get(&authToken, "SELECT * FROM auth_tokens WHERE token_hash = $1 AND (created_at > $2 OR is_trial = TRUE) AND deleted_at IS NULL", tokenHash, time.Now().AddDate(0, 0, -tokenExpirationDays))
if err != nil {
diff --git a/app/server/handlers/invites.go b/app/server/handlers/invites.go
index c387ee38..e34883f0 100644
--- a/app/server/handlers/invites.go
+++ b/app/server/handlers/invites.go
@@ -23,7 +23,7 @@ func InviteUserHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't invite other users",
+ Msg: "Anonymous trial user can't invite other users",
})
return
@@ -138,7 +138,7 @@ func ListPendingInvitesHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't list invites",
+ Msg: "Anonymous trial user can't list invites",
})
return
}
@@ -179,7 +179,7 @@ func ListAcceptedInvitesHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't list invites",
+ Msg: "Anonymous trial user can't list invites",
})
return
}
@@ -220,7 +220,7 @@ func ListAllInvitesHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't list invites",
+ Msg: "Anonymous trial user can't list invites",
})
return
}
@@ -261,7 +261,7 @@ func DeleteInviteHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't delete invites",
+ Msg: "Anonymous trial user can't delete invites",
})
return
}
diff --git a/app/server/handlers/orgs.go b/app/server/handlers/orgs.go
index 3a1bb1dd..28021fcf 100644
--- a/app/server/handlers/orgs.go
+++ b/app/server/handlers/orgs.go
@@ -57,7 +57,7 @@ func CreateOrgHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't create org",
+ Msg: "Anonymous trial user can't create org",
})
return
}
@@ -164,7 +164,7 @@ func ListOrgRolesHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't list org roles",
+ Msg: "Anonymous trial user can't list org roles",
})
return
}
diff --git a/app/server/handlers/plans_crud.go b/app/server/handlers/plans_crud.go
index ecff54a3..b2762997 100644
--- a/app/server/handlers/plans_crud.go
+++ b/app/server/handlers/plans_crud.go
@@ -54,7 +54,7 @@ func CreatePlanHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialPlansExceeded,
Status: http.StatusForbidden,
- Msg: "User has reached max number of free trial plans",
+ Msg: "User has reached max number of anonymous trial plans",
TrialPlansExceededError: &shared.TrialPlansExceededError{
MaxPlans: types.TrialMaxPlans,
},
diff --git a/app/server/handlers/plans_exec.go b/app/server/handlers/plans_exec.go
index c584813a..05b335d5 100644
--- a/app/server/handlers/plans_exec.go
+++ b/app/server/handlers/plans_exec.go
@@ -76,7 +76,7 @@ func TellPlanHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialMessagesExceeded,
Status: http.StatusForbidden,
- Msg: "Free trial message limit exceeded",
+ Msg: "Anonymous trial message limit exceeded",
TrialMessagesExceededError: &shared.TrialMessagesExceededError{
MaxReplies: types.TrialMaxReplies,
},
diff --git a/app/server/handlers/users.go b/app/server/handlers/users.go
index 2370ea75..25466e5b 100644
--- a/app/server/handlers/users.go
+++ b/app/server/handlers/users.go
@@ -23,7 +23,7 @@ func ListUsersHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't list users",
+ Msg: "Anonymous trial user can't list users",
})
return
}
@@ -58,7 +58,7 @@ func DeleteOrgUserHandler(w http.ResponseWriter, r *http.Request) {
writeApiError(w, shared.ApiError{
Type: shared.ApiErrorTypeTrialActionNotAllowed,
Status: http.StatusForbidden,
- Msg: "Free trial user can't delete users",
+ Msg: "Anonymous trial user can't delete users",
})
return
}
diff --git a/app/server/model/plan/tell_exec.go b/app/server/model/plan/tell_exec.go
index 71004292..7263a030 100644
--- a/app/server/model/plan/tell_exec.go
+++ b/app/server/model/plan/tell_exec.go
@@ -66,7 +66,7 @@ func execTellPlan(
active.StreamDoneCh <- &shared.ApiError{
Type: shared.ApiErrorTypeTrialMessagesExceeded,
Status: http.StatusForbidden,
- Msg: "Free trial message limit exceeded",
+ Msg: "Anonymous trial message limit exceeded",
TrialMessagesExceededError: &shared.TrialMessagesExceededError{
MaxReplies: types.TrialMaxReplies,
},
diff --git a/prompt.txt b/prompt.txt
deleted file mode 100644
index 14dff525..00000000
--- a/prompt.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-In 'deploy.sh' it seems that the tag will not be added on the 'px cdk deploy
- "plandex-stack-*" line.
-
- I'm thinking a better idea would be to generate the tag in the deploy script
- and then pass it to the cdk script with an environment variable. Please make
- the updates.
\ No newline at end of file
diff --git a/test_prompts/aws-infra.txt b/test_prompts/aws-infra.txt
index 8e709866..4b30329f 100644
--- a/test_prompts/aws-infra.txt
+++ b/test_prompts/aws-infra.txt
@@ -1,33 +1,33 @@
I want to deploy api infrastructure with the following components:
- These should all be done with the AWS CDK and tied together in
- infra/lib/main.ts. The infra project will need simple, minimalistic package.json and tsconfig.json files in `infra`.
-
- Please pay close attention to detail and ensure every setting is correct,
- secure, and production ready. At the same time, do not include any
- nonessential attributes or complexity. Keep it as simple as it can be while
- still being correct.
-
- • A basic VPC
- • Two public subnets that allow outgoing requests
- • Two private subnets for the database
- • An RDS Aurora postgresql database with smallest possible size--just a single
- instance with no replicas for now. it should run in the private subnets.
- • An ECR repository where container images can be stored that are loaded by
- the fargate cluster
- • A fargate ECS cluster that runs an image from the ECR repository. just one
- replica in the cluster for now
- • The fargate cluster should have access to the RDS database. the cluster
- should run in public subnets that can make outgoing requests to the
- internet.
- • Replicas within the fargate cluster should be able to make requests to
- each other internally- The fargate cluster and RDS should use a secrets
- manager secret for the database credentials.
- • I need an EFS shared file system that all the fargate cluster containers
- are connected to
- • The fargate containers also need to send emails via SES... please include
- any necessary resources
-
- please use your best judgement and select reasonable values for all of
- these. the db password should be generated by secrets manager. use defaults
- and best practices.
+These should all be done with the AWS CDK and tied together in
+infra/lib/main.ts. The infra project will need simple, minimalistic package.json and tsconfig.json files in `infra`.
+
+Please pay close attention to detail and ensure every setting is correct,
+secure, and production ready. At the same time, do not include any
+nonessential attributes or complexity. Keep it as simple as it can be while
+still being correct.
+
+• A basic VPC
+• Two public subnets that allow outgoing requests
+• Two private subnets for the database
+• An RDS Aurora postgresql database with smallest possible size--just a single
+instance with no replicas for now. it should run in the private subnets.
+• An ECR repository where container images can be stored that are loaded by
+the fargate cluster
+• A fargate ECS cluster that runs an image from the ECR repository. just one
+replica in the cluster for now
+• The fargate cluster should have access to the RDS database. the cluster
+should run in public subnets that can make outgoing requests to the
+internet.
+• Replicas within the fargate cluster should be able to make requests to
+each other internally- The fargate cluster and RDS should use a secrets
+manager secret for the database credentials.
+• I need an EFS shared file system that all the fargate cluster containers
+are connected to
+• The fargate containers also need to send emails via SES... please include
+any necessary resources
+
+please use your best judgement and select reasonable values for all of
+these. the db password should be generated by secrets manager. use defaults
+and best practices.