Skip to content

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

upgrade updates, readme

Dane Schneiderd98267af888c
diff --git a/README.md b/README.md
index c04e45ed..b17764ac 100644
--- a/README.md
+++ b/README.md
@@ -2,10 +2,10 @@
๐Ÿ”ฎ Plandex is an open source, terminal-based AI programming engine with long-running agents, context management, versioning, branches, diff review, a protected sandbox for changes, and automatic file updates.
-๐Ÿฅ‡ It's the best tool available for driving robust, end-to-end software development with AI.
-
๐Ÿ’ช It helps you churn through your backlog, work with unfamiliar technologies, get unstuck, and spend less time on tedious tasks.
+๐ŸŽ๏ธ Plandex keeps you, the developer, in the driver's seat. LLMs get better at coding every day, but they still make a **lot** of mistakes. Good results require significant hand-holding. Rather than assuming LLM output will always be great, Plandex focuses on the inevitable failure cases, offering easy escape hatches and corrective options when a plan goes off the rails or a file patch doesn't get generated quite right. Plandex tightens the feedback loop between the programmer and the AI, making it quick and easy to review changes, reject mistakes, and get a wayward task back on track.
+
๐Ÿง  Plandex relies on the OpenAI API and requires an `OPENAI_API_KEY` environment variable. Support for open source models, Google Gemini, and Anthropic Claude is coming soon.
โœ… Plandex supports Mac, Linux, FreeBSD, and Windows. It runs from a single binary with no dependencies.
@@ -39,7 +39,6 @@ Windows is supported via [Git bash](https://gitforwindows.org) or [WSL](https://
- ๐Ÿ—๏ธ Go beyond autocomplete to build complex functionality with AI.
- ๐Ÿšซ Stop the mouse-centered, copy-pasting madness of coding with ChatGPT.
-- ๐Ÿ”„ Tighten the feedback loop between programmer and AI.
- ๐Ÿ“‘ Manage context efficiently in the terminal.
- โšก๏ธ Ensure AI models always have the latest versions of files in context.
- ๐Ÿช™ Retain granular control over what's in context and how many tokens you're using.
@@ -109,6 +108,7 @@ Plandex Cloud follows best practices for network and data security. And whether
- ๐Ÿค Plan sharing and team collaboration
- ๐Ÿ–ผ๏ธ Support for GPT4-Vision and other multi-modal modelsโ€”add images and screenshots to context
- ๐Ÿ–ฅ๏ธ VSCode and JetBrains extensions
+- ๐Ÿ“ฆ Community plugins and modules
- ๐Ÿ”Œ Github integration
- ๐ŸŒ Web dashboard and GUI
- ๐Ÿ” SOC2 compliance
diff --git a/app/cli/go.mod b/app/cli/go.mod
index 9a4bce89..31d1b620 100644
--- a/app/cli/go.mod
+++ b/app/cli/go.mod
@@ -45,6 +45,7 @@ require (
)
require (
+ github.com/Masterminds/semver v1.5.0
github.com/PuerkitoBio/goquery v1.8.1
github.com/briandowns/spinner v1.23.0
github.com/charmbracelet/bubbles v0.17.2-0.20240108170749-ec883029c8e6
diff --git a/app/cli/go.sum b/app/cli/go.sum
index f224b5c2..1d64320f 100644
--- a/app/cli/go.sum
+++ b/app/cli/go.sum
@@ -184,6 +184,8 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
+github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
+github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
diff --git a/app/cli/upgrade.go b/app/cli/upgrade.go
index 12b32980..fe1e19de 100644
--- a/app/cli/upgrade.go
+++ b/app/cli/upgrade.go
@@ -2,14 +2,16 @@ package main
import (
"fmt"
- "io/ioutil"
+ "io"
"log"
"net/http"
"os"
"os/exec"
+ "plandex/term"
"plandex/version"
- "github.com/inconshreveable/go-update"
+
"github.com/Masterminds/semver"
+ "github.com/inconshreveable/go-update"
)
func checkForUpgrade() {
@@ -21,7 +23,7 @@ func checkForUpgrade() {
}
defer resp.Body.Close()
- body, err := ioutil.ReadAll(resp.Body)
+ body, err := io.ReadAll(resp.Body)
if err != nil {
log.Println("Error reading response body:", err)
return
@@ -59,42 +61,6 @@ func checkForUpgrade() {
}
}
-func checkForUpgrade() {
- latestVersionURL := "https://example.com/plandex/latest-version" // Placeholder URL
- resp, err := http.Get(latestVersionURL)
- if err != nil {
- log.Println("Error checking latest version:", err)
- return
- }
- defer resp.Body.Close()
-
- body, err := io.ReadAll(resp.Body)
- if err != nil {
- log.Println("Error reading response body:", err)
- return
- }
-
- latestVersion := string(body)
- if latestVersion > version.Version {
- fmt.Println("A new version of Plandex is available:", latestVersion)
- confirmed, err := term.ConfirmYesNo("Do you want to upgrade to the latest version?")
- if err != nil {
- log.Println("Error reading input:", err)
- return
- }
-
- if confirmed {
- err := doUpgrade(latestVersion)
- if err != nil {
- log.Println("Upgrade failed:", err)
- return
- }
- fmt.Println("Upgrade successful. Restarting Plandex...")
- restartPlandex()
- }
- }
-}
-
func doUpgrade(version string) error {
// Placeholder for download URL. This should point to the actual binary location.
downloadURL := fmt.Sprintf("https://github.com/plandex-ai/plandex/releases/download/%s/plandex_%s_%s_%s.tar.gz", version, version, "os", "arch")