447 Commits

Author SHA1 Message Date
Dane Schneider
18933f0af0 Merge pull request #18 from nathanwaldman/patch-1
fixed USAGE.md typo
2024-04-03 19:49:42 -07:00
Dane Schneider
620fc24529 readme: add missing survey fork dependency to CLI build from source instructions, fixes #19 2024-04-03 19:48:00 -07:00
Nathan Waldman
d1aaf5dadb fixed typo?
I haven't used plandex, but reading through your USAGE.md, this makes more sense to me.  Probably a typo?
2024-04-03 20:56:37 -05:00
Dane Schneider
1d0d8e0d49 Bump version to 0.8.1 cli/v0.8.1 2024-04-03 07:52:20 -07:00
Dane Schneider
e6418ccf30 cli 0.8.1 release notes 2024-04-03 07:50:39 -07:00
Dane Schneider
2a8efa5570 readme 2024-04-03 07:46:15 -07:00
Dane Schneider
eca0b3d66e add invite, revoke, and users commands to 'plandex help' output 2024-04-03 07:44:03 -07:00
Dane Schneider
49698bc292 Merge branch 'docker-compose' 2024-04-03 07:40:26 -07:00
Dane Schneider
97509d0b8f chmod +x wait-for-it.sh script 2024-04-03 07:39:51 -07:00
Dane Schneider
b60f127f34 fix #12 - 'add' alias for 'load' command + 'unload' alias for 'rm' command 2024-04-03 07:38:56 -07:00
Dane Schneider
2ef6970494 fix #11 - host key missing when creating an account and signing in to a self-hosted host 2024-04-03 07:38:00 -07:00
Dane Schneider
899b234449 pulled in docker-compose PR and logging auth pin in dev PR, made a few updates 2024-04-02 17:47:06 -07:00
Alan Young
ab732913a3 Merge branch 'add-docker-compose' into pin-to-log 2024-04-02 17:22:14 -06:00
Alan Young
7e42b47319 Merge branch 'main' into add-docker-compose 2024-04-02 17:17:29 -06:00
Alan Young
602f60a0be Update environment variable name from PG_DATA_DIR to PGDATA_DIR and fix database name variable in init script. 2024-04-02 17:15:44 -06:00
Dane Schneider
c99043e4e3 Bump version to 0.8.1 server/v0.8.1 2024-04-02 13:57:56 -07:00
Dane Schneider
d122b97f16 - Fixes for two potential server crashes
- Fix for server git repo remaining in locked state after a crash, which caused various issues
- Fix for server git user and email not being set in some environments (https://github.com/plandex-ai/plandex/issues/8)
- Fix for 'replacements failed' error that was popping up in some circumstances
- Fix for build issue that could cause large updates to fail, take too long, or use too many tokens in some circumstances
- Clean up extraneous logging
- Prompt update to prevent ouputting files at absolute paths (like '/etc/config.txt')
- Prompt update to prevent sometimes using file block format for explanations, causing explanations to be outputted as files
- Prompt update to prevent stopping before the the plan is really finished
- Increase maximum number of auto-continuations to 50 (from 30)
2024-04-02 13:53:54 -07:00
Dane Schneider
2d50e6a839 some logging cleanup, as well as additional logging around streamed token limit for retries in builds 2024-04-02 13:53:54 -07:00
Dane Schneider
865d743653 ensure that SafeMap update function won't panic with a missing key 2024-04-02 13:53:54 -07:00
Alan Young
95a5a60068 Merge branch 'add-docker-compose' into pin-to-log 2024-03-31 16:36:20 -06:00
Alan Young
6951502ab1 Added environment variables and volumes for PostgreSQL and PlanDex databases, and created an initialization script for database setup. 2024-03-31 16:32:09 -06:00
Alan Young
d349c53ad9 Updated Docker configurations and added logging for email verification pin. 2024-03-31 00:02:18 -06:00
Alan Young
d497d14155 Add logging statement for development mode detection. 2024-03-30 23:16:04 -06:00
Alan Young
074ff876a5 quiet the annoying no such file when removing plandex server 2024-03-30 23:11:49 -06:00
Alan Young
e280d2acc8 aider: Add information about the PIN2LOG variable in the HOSTING.md file for development mode.
# Aider chat conversation:

USER: Update HOSTING.md to reflect the PIN2LOG variable. Note that it only applies when GOENV is set to development.

ASSISTANT: Here is the diff to update the `HOSTING.md` file to include information about the `PIN2LOG` environment variable:

```diff
--- guides/HOSTING.md
+++ guides/HOSTING.md
@@ ... @@

 ### Development Mode

 If you set `export GOENV=development` instead of `production`:

+ - If you want to log the verification pin to the console instead of copying it to the clipboard, you can set `export PIN2LOG=true`.
+
  - Authentication tokens will be copied to the clipboard instead of sent via email, and a system notification will pop up to let you know that the token is ready to paste. (SMTP environment variables are not required in development mode.)

  - The default base directory will be `$HOME/plandex-server` instead of `/plandex-server`. It can still be overridden with `PLANDEX_BASE_DIR`.

 ### Health Check
```

This change adds a bullet point under the "Development Mode" section to explain the use of the `PIN2LOG` variable when `GOENV` is set to `development`.
2024-03-30 22:59:40 -06:00
Alan Young
5b93ed6bcd aider: Add PIN2LOG=true to _env and .env files to enable pin logging in development mode.
# Aider chat conversation:

USER: Add PIN2LOG= with a true value that will be read by go as "true" to _env and .env

ASSISTANT: Here are the diffs to add `PIN2LOG=true` to both `_env` and `.env` files:

```diff
--- app/_env
+++ app/_env
@@ ... @@
 GOENV=development
+PIN2LOG=true
```

```diff
--- app/.env
+++ app/.env
@@ ... @@
 GOENV=development
+PIN2LOG=true
```

These changes add the `PIN2LOG=true` line to both environment configuration files, enabling the logging of the pin in development mode as per the existing Go code's behavior.

USER: Add PIN2LOG= with a true value that will be read by go as "true" to _env

ASSISTANT: Here is the diff to add `PIN2LOG=true` to the `_env` file:

```diff
--- app/_env
+++ app/_env
@@ ... @@
 GOENV=development
+PIN2LOG=true
```
2024-03-30 22:58:56 -06:00
Alan Young
b05f0329e5 aider: Update PIN2LOG check to look for a true value.
# Aider chat conversation:

USER: for the PIN2LOG, make it check for a true value.

ASSISTANT: Here is the diff to update the `PIN2LOG` check to look for a true value:

```diff
--- app/server/email/verification.go
+++ app/server/email/verification.go
@@ ... @@
 func SendVerificationEmail(email string, pin string) error {
 	// Check if the environment is production
 	if os.Getenv("GOENV") == "production" {
 		// Production environment - send email using AWS SES
 		// ... existing code ...
 	}

 	if os.Getenv("GOENV") == "development" {
 		// Development environment
-		if os.Getenv("PIN2LOG") == "yes" {
+		if os.Getenv("PIN2LOG") == "true" {
 			// Dump pin to log output
 			fmt.Printf("Development mode: Verification pin is %s for email %s\n", pin, email)
 		} else {
 			// Copy pin to clipboard
 			// ... existing code ...
 		}
 	}

 	return nil
 }
```

This change modifies the condition to check if the `PIN2LOG` environment variable is set to `"true"` instead of `"yes"`.
2024-03-30 22:56:55 -06:00
Alan Young
392e12b630 Refactored email verification to handle different actions based on environment variables. 2024-03-30 22:55:39 -06:00
Alan Young
024e30fa3e Merge branch 'add-docker-compose' into pin-to-log 2024-03-30 22:47:09 -06:00
Alan Young
b5bf704929 oops, fixt ports 2024-03-30 22:46:19 -06:00
Alan Young
6241c20e2d Removed redundant production email sending code and added pin notification for development mode. 2024-03-30 22:45:15 -06:00
Alan Young
a7ebf94618 aider: Added logging of the pin to the log output in the SendVerificationEmail function for development mode.
# Aider chat conversation:

USER: Dump the pin to the log output

ASSISTANT: To dump the pin to the log output in the `SendVerificationEmail` function, I will add a log statement that outputs the pin to the standard output. Here is the diff for the change:

```diff
--- app/server/email/verification.go
+++ app/server/email/verification.go
@@ ... @@
 func SendVerificationEmail(email string, pin string) error {
 	// Check if the environment is production
^C KeyboardInterrupt

USER: Dump the pin to the log output only if in development mode.

ASSISTANT: Here is the diff to add a log statement that dumps the pin to the log output only if the application is in development mode:

```diff
--- app/server/email/verification.go
+++ app/server/email/verification.go
@@ ... @@
 func SendVerificationEmail(email string, pin string) error {
 	// Check if the environment is production
 	if os.Getenv("GOENV") == "production" {
 		// Production environment - send email using AWS SES
 		// ... existing code ...
 	}

 	if os.Getenv("GOENV") == "development" {
 		// Development environment
 		// Copy pin to clipboard
 		if err := clipboard.WriteAll(pin); err != nil {
 			return fmt.Errorf("error copying pin to clipboard in dev: %v", err)
 		}
+		// Dump pin to log output
+		fmt.Printf("Development mode: Verification pin is %s for email %s\n", pin, email)
 		// Send notification
 		err := beeep.Notify("Verification Pin", fmt.Sprintf("Verification pin %s copied to clipboard %s", pin, email), "")
 		if err != nil {
 			return fmt.Errorf("error sending notification in dev: %v", err)
 		}

 	}

 	return nil
 }
```

This change adds a `fmt.Printf` statement to log the pin when the `GOENV` environment variable is set to `"development"`.
2024-03-30 22:29:00 -06:00
Alan Young
78202f1161 Updated hosting guide with Docker build and compose instructions, and clarified default ports and environment variables. 2024-03-30 22:21:28 -06:00
Alan Young
4bedc6c251 Added .gitignore file to ignore .env, added _env file with environment variables, and created docker-compose.yml for services configuration. 2024-03-30 21:41:21 -06:00
Alan Young
9e91571b2d Added new entries to .gitignore. 2024-03-30 21:40:53 -06:00
Dane Schneider
19b90db977 Update README.md 2024-03-29 22:55:42 -07:00
Dane Schneider
fb4e966375 Update README.md 2024-03-29 09:12:54 -07:00
Dane Schneider
d4325729fc Update README.md 2024-03-29 09:07:55 -07:00
Dane Schneider
956efd7de2 readme 2024-03-28 16:17:28 -07:00
Dane Schneider
f5ac6eeff1 play button overlay for readme video 2024-03-27 09:56:35 -07:00
Dane Schneider
3c1c1a5e31 play button overlay for readme video 2024-03-27 09:44:50 -07:00
Dane Schneider
0c91d7101b readme discord links 2024-03-27 08:10:19 -07:00
Dane Schneider
aba800a453 Bump version to 0.8.0 server/v0.8.0 2024-03-27 07:16:16 -07:00
Dane Schneider
27638b590d Bump version to 0.8.0 cli/v0.8.0 2024-03-27 07:14:01 -07:00
Dane Schneider
204e9bd15a more user management fixes 2024-03-27 07:07:48 -07:00
Dane Schneider
507215fad5 cleanup, release prep 2024-03-27 06:56:13 -07:00
Dane Schneider
bcd37770f9 drop users_projects, fixes for org membership/invite issues 2024-03-27 06:46:35 -07:00
Dane Schneider
63eecd9a8a readme 2024-03-27 05:24:35 -07:00
Dane Schneider
7c0b04ee47 clean up, readme 2024-03-27 05:16:59 -07:00
Dane Schneider
c26661eab1 usage 2024-03-27 05:05:55 -07:00