Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
Extensive refactoring to migrate the project to v2: rename package from github.com/plandex/plandex/shared to plandex-shared across all import statements, update config directories to use -v2 suffix (e.g. .plandex to .plandex-v2, .plandex-home to .plandex-home-v2), implement backwards compatibility by renaming existing v1 CLI binary to plandex1/pdx1, increase trial plan response limit from 15 to 20 messages, update copyright from Dane Schneider to PlandexAI Inc., and add log rotation with compression using lumberjack logger.
Dane Schneiderc90a287e1ecd
diff --git a/LICENSE b/LICENSEindex 6843fce2..c304daf3 100644--- a/LICENSE+++ b/LICENSE@@ -629,7 +629,7 @@ state the exclusion of warranty; and each file should have at leastthe "copyright" line and a pointer to where the full notice is found.Plandex: AI programming engine for complex tasks-Copyright (C) 2024 Dane Schneider+Copyright (C) 2025 PlandexAI Inc.This program is free software: you can redistribute it and/or modifyit under the terms of the GNU Affero General Public License as publisheddiff --git a/Makefile b/Makefiledeleted file mode 100644index efc12bb4..00000000--- a/Makefile+++ /dev/null@@ -1,77 +0,0 @@-# Go parameters-GOCMD = go-GOBUILD = $(GOCMD) build-GOCLEAN = $(GOCMD) clean-GOTEST = $(GOCMD) test-GOGET = $(GOCMD) get--# Main package name-MAIN_PACKAGE = main--# Output binary name-BINARY_NAME = plandex--# Check the PLANDEX_ENVIRONMENT environment variable, reassign the BINARY_NAME if necessary-ifeq ($(PLANDEX_ENV),development)-BINARY_NAME = plandex-dev-endif--# create a dev cmd that runs a shell script-dev:- @cd app/scripts && ./dev.sh--# Build target-build:- @$(GOBUILD) -o $(BINARY_NAME) -v $(MAIN_PACKAGE)--# Clean target-clean:- @$(GOCLEAN)- @rm -f $(BINARY_NAME)--# Test target-test: render- @$(GOTEST) -v ./...--#### Evals and Providers ####---#! No cache is used to ensure that the latest changes are reflected in the eval-# TODO: Implement eval all-eval:- @cd test/evals/promptfoo-poc/$(filter-out $@,$(MAKECMDGOALS)) && promptfoo eval --no-cache--view-eval:- @cd test/evals/promptfoo-poc/$(filter-out $@,$(MAKECMDGOALS)) && promptfoo view--gen-eval:- @$(GOCMD) run app/scripts/cmd/gen/gen.go test/evals/promptfoo-poc/$(filter-out $@,$(MAKECMDGOALS))--gen-provider:- @$(GOCMD) run app/scripts/cmd/provider/gen_provider.go--#### End Evals and Providers ####--# Get dependencies-deps:- $(GOGET) -v ./...--# Default target-default: build--# Usage-help:- @echo "Usage:"- @echo " make dev - to run the development scripts"- @echo " make eval <directory_name> - to run the promptfoo eval command on a specific directory"- @echo " make view-eval - to view the promptfoo eval output"- @echo " make gen-eval <directory_name> - to create a new promptfoo eval directory structure"- @echo " make gen-provider - to create a new promptfoo provider file from the promptfoo diretory structure"- @echo " make clean - to remove generated files and directories"- @echo " make help - to display this help message"--# Prevents make from interpreting the arguments as targets-%:- @:--.PHONY: all render build clean test deps\ No newline at end of filediff --git a/app/cli/api/clients.go b/app/cli/api/clients.goindex 97b994e8..6dde4aa7 100644--- a/app/cli/api/clients.go+++ b/app/cli/api/clients.go@@ -4,8 +4,8 @@ import ("net""net/http""os"- "plandex/auth"- "plandex/types"+ "plandex-cli/auth"+ "plandex-cli/types""time")diff --git a/app/cli/api/errors.go b/app/cli/api/errors.goindex 2e8604cf..733b3b2a 100644--- a/app/cli/api/errors.go+++ b/app/cli/api/errors.go@@ -4,11 +4,11 @@ import ("encoding/json""log""net/http"- "plandex/auth"- "plandex/term"+ "plandex-cli/auth"+ "plandex-cli/term""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func HandleApiError(r *http.Response, errBody []byte) *shared.ApiError {diff --git a/app/cli/api/methods.go b/app/cli/api/methods.goindex 0d35085c..1829903b 100644--- a/app/cli/api/methods.go+++ b/app/cli/api/methods.go@@ -7,10 +7,10 @@ import ("io""log""net/http"- "plandex/types"+ "plandex-cli/types""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func (a *Api) CreateCliTrialSession() (string, *shared.ApiError) {diff --git a/app/cli/api/stream.go b/app/cli/api/stream.goindex 8a0dde71..aa0d054c 100644--- a/app/cli/api/stream.go+++ b/app/cli/api/stream.go@@ -6,9 +6,9 @@ import ("encoding/json""io""log"- "plandex/types"+ "plandex-cli/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func connectPlanRespStream(body io.ReadCloser, onStream types.OnStreamPlan) {diff --git a/app/cli/auth/account.go b/app/cli/auth/account.goindex abb914bb..c3889f77 100644--- a/app/cli/auth/account.go+++ b/app/cli/auth/account.go@@ -2,10 +2,11 @@ package authimport ("fmt"- "plandex/term"+ "plandex-cli/term"++ shared "plandex-shared""github.com/fatih/color"- "github.com/plandex/plandex/shared")const (diff --git a/app/cli/auth/api.go b/app/cli/auth/api.goindex 60088cb4..e8ec7ab1 100644--- a/app/cli/auth/api.go+++ b/app/cli/auth/api.go@@ -5,9 +5,9 @@ import ("encoding/json""fmt""net/http"- "plandex/types"+ "plandex-cli/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")var apiClient types.ApiClientdiff --git a/app/cli/auth/auth.go b/app/cli/auth/auth.goindex 2186cb90..be8ad585 100644--- a/app/cli/auth/auth.go+++ b/app/cli/auth/auth.go@@ -4,10 +4,10 @@ import ("encoding/json""fmt""os"- "plandex/fs"- "plandex/term"+ "plandex-cli/fs"+ "plandex-cli/term"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")var openUnauthenticatedCloudURL func(msg, path string)diff --git a/app/cli/auth/org.go b/app/cli/auth/org.goindex 8f6c0aee..d0c6aa37 100644--- a/app/cli/auth/org.go+++ b/app/cli/auth/org.go@@ -2,10 +2,10 @@ package authimport ("fmt"- "plandex/term"+ "plandex-cli/term""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func resolveOrgAuth(orgs []*shared.Org) (*shared.Org, error) {diff --git a/app/cli/auth/state.go b/app/cli/auth/state.goindex bc7160b1..8edf1abf 100644--- a/app/cli/auth/state.go+++ b/app/cli/auth/state.go@@ -4,9 +4,9 @@ import ("encoding/json""fmt""os"- "plandex/fs"+ "plandex-cli/fs"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")var Current *shared.ClientAuthdiff --git a/app/cli/auth/trial.go b/app/cli/auth/trial.goindex e0bfeaa6..18c3168b 100644--- a/app/cli/auth/trial.go+++ b/app/cli/auth/trial.go@@ -2,7 +2,7 @@ package authimport ("fmt"- "plandex/term"+ "plandex-cli/term""time")diff --git a/app/cli/changes_tui/actions.go b/app/cli/changes_tui/actions.goindex 1c66d1f0..a21ed901 100644--- a/app/cli/changes_tui/actions.go+++ b/app/cli/changes_tui/actions.go@@ -3,12 +3,13 @@ package changes_tuiimport ("fmt""log"- "plandex/api"- "plandex/lib"+ "plandex-cli/api"+ "plandex-cli/lib"++ shared "plandex-shared""github.com/atotto/clipboard""github.com/muesli/reflow/wrap"- "github.com/plandex/plandex/shared")func (m *changesUIModel) rejectFile() (*shared.CurrentPlanState, *shared.ApiError) {diff --git a/app/cli/changes_tui/main_viewport.go b/app/cli/changes_tui/main_viewport.goindex 9ee6d864..2e551a99 100644--- a/app/cli/changes_tui/main_viewport.go+++ b/app/cli/changes_tui/main_viewport.go@@ -2,7 +2,7 @@ package changes_tuiimport ("fmt"- "plandex/term"+ "plandex-cli/term""github.com/charmbracelet/lipgloss""github.com/fatih/color"diff --git a/app/cli/changes_tui/model.go b/app/cli/changes_tui/model.goindex e035551e..c1d56283 100644--- a/app/cli/changes_tui/model.go+++ b/app/cli/changes_tui/model.go@@ -1,13 +1,14 @@package changes_tuiimport (+ shared "plandex-shared"+"github.com/charmbracelet/bubbles/help"bubbleKey "github.com/charmbracelet/bubbles/key""github.com/charmbracelet/bubbles/spinner""github.com/charmbracelet/bubbles/viewport"tea "github.com/charmbracelet/bubbletea""github.com/charmbracelet/lipgloss"- "github.com/plandex/plandex/shared")type changesUIModel struct {diff --git a/app/cli/changes_tui/path_tabs.go b/app/cli/changes_tui/path_tabs.goindex 0b6c9330..b1bb07a2 100644--- a/app/cli/changes_tui/path_tabs.go+++ b/app/cli/changes_tui/path_tabs.go@@ -1,7 +1,7 @@package changes_tuiimport (- "plandex/term"+ "plandex-cli/term""strings""github.com/charmbracelet/lipgloss"diff --git a/app/cli/changes_tui/replace.go b/app/cli/changes_tui/replace.goindex cb8c7f40..1d3d5a62 100644--- a/app/cli/changes_tui/replace.go+++ b/app/cli/changes_tui/replace.go@@ -1,12 +1,13 @@package changes_tuiimport (- "plandex/term"+ "plandex-cli/term""strings"+ shared "plandex-shared"+"github.com/fatih/color""github.com/muesli/reflow/wrap"- "github.com/plandex/plandex/shared")const replacementPrependLines = 20diff --git a/app/cli/changes_tui/run.go b/app/cli/changes_tui/run.goindex 8a1b0e0d..844885ad 100644--- a/app/cli/changes_tui/run.go+++ b/app/cli/changes_tui/run.go@@ -2,12 +2,13 @@ package changes_tuiimport ("fmt"- "plandex/lib"- "plandex/plan_exec"- "plandex/term"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"+ "plandex-cli/term"++ shared "plandex-shared"tea "github.com/charmbracelet/bubbletea"- "github.com/plandex/plandex/shared")var program *tea.Programdiff --git a/app/cli/changes_tui/selection.go b/app/cli/changes_tui/selection.goindex 274e245d..f9e208fa 100644--- a/app/cli/changes_tui/selection.go+++ b/app/cli/changes_tui/selection.go@@ -3,9 +3,9 @@ package changes_tuiimport ("fmt""log"- "plandex/term"+ "plandex-cli/term"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")type selectionInfo struct {diff --git a/app/cli/changes_tui/sidebar.go b/app/cli/changes_tui/sidebar.goindex ba5f4371..50ee6c93 100644--- a/app/cli/changes_tui/sidebar.go+++ b/app/cli/changes_tui/sidebar.go@@ -1,12 +1,13 @@package changes_tuiimport (- "plandex/term"+ "plandex-cli/term""strings"+ shared "plandex-shared"+"github.com/charmbracelet/lipgloss""github.com/fatih/color"- "github.com/plandex/plandex/shared")func (m changesUIModel) renderSidebar() string {diff --git a/app/cli/changes_tui/update.go b/app/cli/changes_tui/update.goindex 9817cd82..8c00fea8 100644--- a/app/cli/changes_tui/update.go+++ b/app/cli/changes_tui/update.go@@ -1,13 +1,14 @@package changes_tuiimport (- "plandex/types"+ "plandex-cli/types""time"+ shared "plandex-shared"+bubbleKey "github.com/charmbracelet/bubbles/key""github.com/charmbracelet/bubbles/spinner"tea "github.com/charmbracelet/bubbletea"- "github.com/plandex/plandex/shared")type toggleDidCopyOffMsg struct{}diff --git a/app/cli/changes_tui/view.go b/app/cli/changes_tui/view.goindex 5f30f1dc..49e6eb75 100644--- a/app/cli/changes_tui/view.go+++ b/app/cli/changes_tui/view.go@@ -1,7 +1,7 @@package changes_tuiimport (- "plandex/term"+ "plandex-cli/term""strings""github.com/charmbracelet/bubbles/viewport"diff --git a/app/cli/cmd/apply.go b/app/cli/cmd/apply.goindex 95e710bc..37a37e0a 100644--- a/app/cli/cmd/apply.go+++ b/app/cli/cmd/apply.go@@ -1,10 +1,10 @@package cmdimport (- "plandex/auth"- "plandex/lib"- "plandex/plan_exec"- "plandex/term"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"+ "plandex-cli/term""github.com/spf13/cobra")diff --git a/app/cli/cmd/archive.go b/app/cli/cmd/archive.goindex fcdd5f73..2ae8d0fb 100644--- a/app/cli/cmd/archive.go+++ b/app/cli/cmd/archive.go@@ -2,15 +2,16 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""strings"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/billing.go b/app/cli/cmd/billing.goindex 01d1ae5c..18880c31 100644--- a/app/cli/cmd/billing.go+++ b/app/cli/cmd/billing.go@@ -1,9 +1,9 @@package cmdimport (- "plandex/auth"- "plandex/term"- "plandex/ui"+ "plandex-cli/auth"+ "plandex-cli/term"+ "plandex-cli/ui""github.com/spf13/cobra")diff --git a/app/cli/cmd/branches.go b/app/cli/cmd/branches.goindex da27098e..74460a1f 100644--- a/app/cli/cmd/branches.go+++ b/app/cli/cmd/branches.go@@ -3,11 +3,11 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/format"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/format"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""github.com/fatih/color"diff --git a/app/cli/cmd/build.go b/app/cli/cmd/build.goindex afff1354..36013363 100644--- a/app/cli/cmd/build.go+++ b/app/cli/cmd/build.go@@ -2,12 +2,13 @@ package cmdimport ("fmt"- "plandex/auth"- "plandex/lib"- "plandex/plan_exec"- "plandex/term"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"+ "plandex-cli/term"++ shared "plandex-shared"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/cd.go b/app/cli/cmd/cd.goindex f0940a2a..c97e4573 100644--- a/app/cli/cmd/cd.go+++ b/app/cli/cmd/cd.go@@ -2,16 +2,17 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""strings""time"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/changes.go b/app/cli/cmd/changes.goindex fd091ee3..ec47a55d 100644--- a/app/cli/cmd/changes.go+++ b/app/cli/cmd/changes.go@@ -2,14 +2,15 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/changes_tui"- "plandex/lib"- "plandex/plan_exec"- "plandex/term"-- "github.com/plandex/plandex/shared"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/changes_tui"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"+ "plandex-cli/term"++ shared "plandex-shared"+"github.com/spf13/cobra")diff --git a/app/cli/cmd/chat.go b/app/cli/cmd/chat.goindex 0936d71b..fcaa36ae 100644--- a/app/cli/cmd/chat.go+++ b/app/cli/cmd/chat.go@@ -2,11 +2,12 @@ package cmdimport ("fmt"- "plandex/auth"- "plandex/lib"- "plandex/plan_exec"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"++ shared "plandex-shared"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/checkout.go b/app/cli/cmd/checkout.goindex 493fc5d9..2d49c828 100644--- a/app/cli/cmd/checkout.go+++ b/app/cli/cmd/checkout.go@@ -2,15 +2,16 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""strings"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/clear.go b/app/cli/cmd/clear.goindex 18c32ed2..676fbfa2 100644--- a/app/cli/cmd/clear.go+++ b/app/cli/cmd/clear.go@@ -2,12 +2,13 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term"++ shared "plandex-shared"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/config.go b/app/cli/cmd/config.goindex ab95a2f4..582764c1 100644--- a/app/cli/cmd/config.go+++ b/app/cli/cmd/config.go@@ -2,10 +2,10 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""github.com/fatih/color""github.com/spf13/cobra"diff --git a/app/cli/cmd/connect.go b/app/cli/cmd/connect.goindex 346cd17b..2a4fb373 100644--- a/app/cli/cmd/connect.go+++ b/app/cli/cmd/connect.go@@ -3,12 +3,12 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/stream"- streamtui "plandex/stream_tui"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/stream"+ streamtui "plandex-cli/stream_tui"+ "plandex-cli/term""github.com/spf13/cobra")diff --git a/app/cli/cmd/context_show.go b/app/cli/cmd/context_show.goindex 07d0b3f1..5f97828a 100644--- a/app/cli/cmd/context_show.go+++ b/app/cli/cmd/context_show.go@@ -3,9 +3,9 @@ package cmdimport ("fmt""log"- "plandex/api"- "plandex/auth"- "plandex/lib"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib""strconv""github.com/spf13/cobra"diff --git a/app/cli/cmd/continue.go b/app/cli/cmd/continue.goindex 7680a27b..d8755a7c 100644--- a/app/cli/cmd/continue.go+++ b/app/cli/cmd/continue.go@@ -1,11 +1,12 @@package cmdimport (- "plandex/auth"- "plandex/lib"- "plandex/plan_exec"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"++ shared "plandex-shared"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/convo.go b/app/cli/cmd/convo.goindex 9aca3228..c2b90859 100644--- a/app/cli/cmd/convo.go+++ b/app/cli/cmd/convo.go@@ -2,16 +2,17 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""regexp""strings""time"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/credits.go b/app/cli/cmd/credits.goindex aec382af..ea41d5f6 100644--- a/app/cli/cmd/credits.go+++ b/app/cli/cmd/credits.go@@ -3,9 +3,9 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/term""strings""github.com/olekukonko/tablewriter"diff --git a/app/cli/cmd/credits_log.go b/app/cli/cmd/credits_log.goindex 79e3edc7..c93b5574 100644--- a/app/cli/cmd/credits_log.go+++ b/app/cli/cmd/credits_log.go@@ -2,17 +2,18 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/term""strconv""strings""unicode"+ shared "plandex-shared"+"github.com/eiannone/keyboard""github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/shopspring/decimal""github.com/spf13/cobra")diff --git a/app/cli/cmd/current.go b/app/cli/cmd/current.goindex 9bd67aa8..d2c7ee80 100644--- a/app/cli/cmd/current.go+++ b/app/cli/cmd/current.go@@ -2,12 +2,13 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term"++ shared "plandex-shared"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/debug.go b/app/cli/cmd/debug.goindex 5fbaf2eb..73a8595e 100644--- a/app/cli/cmd/debug.go+++ b/app/cli/cmd/debug.go@@ -4,15 +4,16 @@ import ("fmt""os""os/exec"- "plandex/auth"- "plandex/lib"- "plandex/plan_exec"- "plandex/term"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"+ "plandex-cli/term""strconv""strings"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/delete_branch.go b/app/cli/cmd/delete_branch.goindex 92d6fc99..08de12e0 100644--- a/app/cli/cmd/delete_branch.go+++ b/app/cli/cmd/delete_branch.go@@ -2,10 +2,10 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""strings"diff --git a/app/cli/cmd/delete_plan.go b/app/cli/cmd/delete_plan.goindex 8f4e85e8..ee0dc796 100644--- a/app/cli/cmd/delete_plan.go+++ b/app/cli/cmd/delete_plan.go@@ -6,13 +6,14 @@ import ("strconv""strings"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term"++ shared "plandex-shared""github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/diffs.go b/app/cli/cmd/diffs.goindex e57f6fa7..ece08f74 100644--- a/app/cli/cmd/diffs.go+++ b/app/cli/cmd/diffs.go@@ -7,11 +7,11 @@ import ("net""net/http""os"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"- "plandex/ui"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term"+ "plandex-cli/ui""github.com/fatih/color""github.com/spf13/cobra"diff --git a/app/cli/cmd/invite.go b/app/cli/cmd/invite.goindex db1ce895..721354ac 100644--- a/app/cli/cmd/invite.go+++ b/app/cli/cmd/invite.go@@ -2,11 +2,12 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/term"++ shared "plandex-shared"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/load.go b/app/cli/cmd/load.goindex 65728312..2a9748ac 100644--- a/app/cli/cmd/load.go+++ b/app/cli/cmd/load.go@@ -2,10 +2,10 @@ package cmdimport ("fmt"- "plandex/auth"- "plandex/lib"- "plandex/term"- "plandex/types"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term"+ "plandex-cli/types""github.com/sashabaranov/go-openai""github.com/spf13/cobra"diff --git a/app/cli/cmd/log.go b/app/cli/cmd/log.goindex 3c02d2ff..1dd6c0e7 100644--- a/app/cli/cmd/log.go+++ b/app/cli/cmd/log.go@@ -2,10 +2,10 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""regexp""time"diff --git a/app/cli/cmd/ls.go b/app/cli/cmd/ls.goindex e95946e4..48f7b216 100644--- a/app/cli/cmd/ls.go+++ b/app/cli/cmd/ls.go@@ -3,16 +3,17 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/format"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/format"+ "plandex-cli/lib"+ "plandex-cli/term""strconv"+ shared "plandex-shared"+"github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/model_packs.go b/app/cli/cmd/model_packs.goindex 3ef7417f..3326450c 100644--- a/app/cli/cmd/model_packs.go+++ b/app/cli/cmd/model_packs.go@@ -3,15 +3,16 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv"+ shared "plandex-shared"+"github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/models.go b/app/cli/cmd/models.goindex da56ed00..bb87d236 100644--- a/app/cli/cmd/models.go+++ b/app/cli/cmd/models.go@@ -3,16 +3,17 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""strings"+ shared "plandex-shared"+"github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/new.go b/app/cli/cmd/new.goindex eb80b3ab..6387eb05 100644--- a/app/cli/cmd/new.go+++ b/app/cli/cmd/new.go@@ -3,14 +3,15 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"- "plandex/types"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term"+ "plandex-cli/types"++ shared "plandex-shared""github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/plan_exec_helpers.go b/app/cli/cmd/plan_exec_helpers.goindex 823dd695..86cc8ccc 100644--- a/app/cli/cmd/plan_exec_helpers.go+++ b/app/cli/cmd/plan_exec_helpers.go@@ -3,12 +3,13 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/lib"+ "plandex-cli/term""strconv"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/spf13/cobra")diff --git a/app/cli/cmd/plans.go b/app/cli/cmd/plans.goindex ca205e49..1f3ca8bd 100644--- a/app/cli/cmd/plans.go+++ b/app/cli/cmd/plans.go@@ -11,16 +11,17 @@ import ("strings""time"- "plandex/api"- "plandex/auth"- "plandex/format"- "plandex/fs"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/format"+ "plandex-cli/fs"+ "plandex-cli/lib"+ "plandex-cli/term"++ shared "plandex-shared""github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/spf13/cobra""github.com/xlab/treeprint")diff --git a/app/cli/cmd/ps.go b/app/cli/cmd/ps.goindex 9bc96757..5a712d8d 100644--- a/app/cli/cmd/ps.go+++ b/app/cli/cmd/ps.go@@ -3,14 +3,15 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/format"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/format"+ "plandex-cli/lib"+ "plandex-cli/term"++ shared "plandex-shared""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/reject.go b/app/cli/cmd/reject.goindex 864b8587..1f88225b 100644--- a/app/cli/cmd/reject.go+++ b/app/cli/cmd/reject.go@@ -1,13 +1,11 @@-package cmdimport ("fmt"- "os"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""sort""github.com/plandex-ai/survey/v2"@@ -136,4 +134,3 @@ func reject(cmd *cobra.Command, args []string) {}fmt.Printf("β Rejected changes to %d file%s\n", len(selectedFiles), suffix)}-diff --git a/app/cli/cmd/rename.go b/app/cli/cmd/rename.goindex 7f041eab..708acf84 100644--- a/app/cli/cmd/rename.go+++ b/app/cli/cmd/rename.go@@ -2,10 +2,10 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""github.com/fatih/color""github.com/spf13/cobra"diff --git a/app/cli/cmd/repl.go b/app/cli/cmd/repl.goindex eea63f51..a51b88f3 100644--- a/app/cli/cmd/repl.go+++ b/app/cli/cmd/repl.go@@ -4,21 +4,22 @@ import ("fmt""os""path/filepath"- "plandex/api"- "plandex/auth"- "plandex/fs"- "plandex/lib"- "plandex/term"- "plandex/types"- "plandex/version"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/fs"+ "plandex-cli/lib"+ "plandex-cli/term"+ "plandex-cli/types"+ "plandex-cli/version""regexp""sort""strings""unicode"+ shared "plandex-shared"+"github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/spf13/cobra""github.com/plandex-ai/go-prompt"diff --git a/app/cli/cmd/revoke.go b/app/cli/cmd/revoke.goindex faf02200..b2e041f1 100644--- a/app/cli/cmd/revoke.go+++ b/app/cli/cmd/revoke.go@@ -2,11 +2,12 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/term"++ shared "plandex-shared"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/rewind.go b/app/cli/cmd/rewind.goindex 165f0aea..bea0cca1 100644--- a/app/cli/cmd/rewind.go+++ b/app/cli/cmd/rewind.go@@ -2,15 +2,16 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""regexp""strconv""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/spf13/cobra")diff --git a/app/cli/cmd/rm.go b/app/cli/cmd/rm.goindex c10bc428..1fbafa18 100644--- a/app/cli/cmd/rm.go+++ b/app/cli/cmd/rm.go@@ -3,14 +3,15 @@ package cmdimport ("fmt""path/filepath"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/spf13/cobra")diff --git a/app/cli/cmd/root.go b/app/cli/cmd/root.goindex 46046eb6..6c700ed6 100644--- a/app/cli/cmd/root.go+++ b/app/cli/cmd/root.go@@ -3,7 +3,7 @@ package cmdimport ("fmt""os"- "plandex/term"+ "plandex-cli/term""github.com/fatih/color""github.com/spf13/cobra"diff --git a/app/cli/cmd/set_config.go b/app/cli/cmd/set_config.goindex 3a6a51cf..b903fa99 100644--- a/app/cli/cmd/set_config.go+++ b/app/cli/cmd/set_config.go@@ -2,15 +2,16 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""slices""strconv""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/spf13/cobra")diff --git a/app/cli/cmd/set_model.go b/app/cli/cmd/set_model.goindex 2b103fa6..dc9dfe62 100644--- a/app/cli/cmd/set_model.go+++ b/app/cli/cmd/set_model.go@@ -3,15 +3,16 @@ package cmdimport ("encoding/json""fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""reflect""strconv""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/spf13/cobra")diff --git a/app/cli/cmd/sign_in.go b/app/cli/cmd/sign_in.goindex cd172f16..55b32101 100644--- a/app/cli/cmd/sign_in.go+++ b/app/cli/cmd/sign_in.go@@ -1,8 +1,8 @@package cmdimport (- "plandex/auth"- "plandex/term"+ "plandex-cli/auth"+ "plandex-cli/term""github.com/spf13/cobra")diff --git a/app/cli/cmd/stop.go b/app/cli/cmd/stop.goindex 2d90739f..cfba0b8e 100644--- a/app/cli/cmd/stop.go+++ b/app/cli/cmd/stop.go@@ -2,10 +2,10 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""github.com/spf13/cobra")diff --git a/app/cli/cmd/summary.go b/app/cli/cmd/summary.goindex d3537264..fa8293e7 100644--- a/app/cli/cmd/summary.go+++ b/app/cli/cmd/summary.go@@ -2,10 +2,10 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""github.com/spf13/cobra")diff --git a/app/cli/cmd/tell.go b/app/cli/cmd/tell.goindex f451a86e..34483cde 100644--- a/app/cli/cmd/tell.go+++ b/app/cli/cmd/tell.go@@ -6,13 +6,14 @@ import ("io""os""os/exec"- "plandex/auth"- "plandex/lib"- "plandex/plan_exec"- "plandex/term"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"+ "plandex-cli/term""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/spf13/cobra")diff --git a/app/cli/cmd/unarchive.go b/app/cli/cmd/unarchive.goindex d98069b3..8c08256b 100644--- a/app/cli/cmd/unarchive.go+++ b/app/cli/cmd/unarchive.go@@ -2,15 +2,16 @@ package cmdimport ("fmt"- "plandex/api"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""strconv""strings"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/update.go b/app/cli/cmd/update.goindex eb793f0c..9fdf4e1c 100644--- a/app/cli/cmd/update.go+++ b/app/cli/cmd/update.go@@ -2,9 +2,9 @@ package cmdimport ("fmt"- "plandex/auth"- "plandex/lib"- "plandex/term"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term""github.com/spf13/cobra")diff --git a/app/cli/cmd/users.go b/app/cli/cmd/users.goindex 9e685917..8c4560b7 100644--- a/app/cli/cmd/users.go+++ b/app/cli/cmd/users.go@@ -3,12 +3,13 @@ package cmdimport ("fmt""os"- "plandex/api"- "plandex/auth"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/term"++ shared "plandex-shared""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/app/cli/cmd/version.go b/app/cli/cmd/version.goindex f53d3326..c322a50f 100644--- a/app/cli/cmd/version.go+++ b/app/cli/cmd/version.go@@ -3,7 +3,7 @@ package cmdimport ("fmt"- "plandex/version"+ "plandex-cli/version""github.com/spf13/cobra")diff --git a/app/cli/fs/fs.go b/app/cli/fs/fs.goindex da418e0d..d9d5b254 100644--- a/app/cli/fs/fs.go+++ b/app/cli/fs/fs.go@@ -7,12 +7,13 @@ import ("os""os/exec""path/filepath"- "plandex/term"- "plandex/types"+ "plandex-cli/term"+ "plandex-cli/types""strings""sync"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+ignore "github.com/sabhiram/go-gitignore")@@ -40,9 +41,9 @@ func init() {HomeDir = homeif os.Getenv("PLANDEX_ENV") == "development" {- HomePlandexDir = filepath.Join(home, ".plandex-home-dev")+ HomePlandexDir = filepath.Join(home, ".plandex-home-dev-v2")} else {- HomePlandexDir = filepath.Join(home, ".plandex-home")+ HomePlandexDir = filepath.Join(home, ".plandex-home-v2")}// Create the home plandex directory if it doesn't exist@@ -80,9 +81,9 @@ func FindOrCreatePlandex() (string, bool, error) {// Determine the directory pathvar dir stringif os.Getenv("PLANDEX_ENV") == "development" {- dir = filepath.Join(Cwd, ".plandex-dev")+ dir = filepath.Join(Cwd, ".plandex-dev-v2")} else {- dir = filepath.Join(Cwd, ".plandex")+ dir = filepath.Join(Cwd, ".plandex-v2")}err := os.Mkdir(dir, os.ModePerm)@@ -288,7 +289,7 @@ func GetPaths(baseDir, currentDir string) (*types.ProjectPaths, error) {if info.Name() == ".git" {return filepath.SkipDir}- if info.Name() == ".plandex" || info.Name() == ".plandex-dev" {+ if strings.HasPrefix(info.Name(), ".plandex") {return filepath.SkipDir}@@ -548,9 +549,9 @@ func FindPlandexDir() {func findPlandex(baseDir string) string {var dir stringif os.Getenv("PLANDEX_ENV") == "development" {- dir = filepath.Join(baseDir, ".plandex-dev")+ dir = filepath.Join(baseDir, ".plandex-dev-v2")} else {- dir = filepath.Join(baseDir, ".plandex")+ dir = filepath.Join(baseDir, ".plandex-v2")}if _, err := os.Stat(dir); !os.IsNotExist(err) {return dirdiff --git a/app/cli/go.mod b/app/cli/go.modindex 0fa4e2f6..53a76d2c 100644--- a/app/cli/go.mod+++ b/app/cli/go.mod@@ -1,4 +1,4 @@-module plandex+module plandex-cligo 1.23.3@@ -15,6 +15,7 @@ require (github.com/shopspring/decimal v1.4.0github.com/spf13/cobra v1.8.0golang.org/x/term v0.19.0+ gopkg.in/natefinch/lumberjack.v2 v2.2.1)require (@@ -66,12 +67,12 @@ require (github.com/mattn/go-runewidth v0.0.16 // indirectgithub.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141cgithub.com/pkoukk/tiktoken-go v0.1.7 // indirect- github.com/plandex/plandex/shared v0.0.0-00010101000000-000000000000github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06github.com/spf13/pflag v1.0.5 // indirectgithub.com/xlab/treeprint v1.2.0golang.org/x/image v0.22.0 // indirectgolang.org/x/text v0.22.0 // indirect+ plandex-shared v0.0.0-00010101000000-000000000000)-replace github.com/plandex/plandex/shared => ../shared+replace plandex-shared => ../shareddiff --git a/app/cli/go.sum b/app/cli/go.sumindex 54842f02..449174a5 100644--- a/app/cli/go.sum+++ b/app/cli/go.sum@@ -1306,6 +1306,8 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=+gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=+gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc=gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=diff --git a/app/cli/install.sh b/app/cli/install.shindex 21dbfa6c..1e3eba40 100755--- a/app/cli/install.sh+++ b/app/cli/install.sh@@ -66,7 +66,7 @@ fiwelcome_plandex () {echo "Plandex $VERSION Quick Install"- echo "Copyright (c) 2024 Plandex Inc."+ echo "Copyright (c) 2025 PlandexAI Inc."echo ""}@@ -138,10 +138,40 @@ download_plandex () {fi}+check_existing_installation () {+ if command -v plandex >/dev/null 2>&1; then+ existing_version=$(plandex version 2>/dev/null || echo "unknown")+ # Check if version starts with 1.x.x+ if [[ "$existing_version" =~ ^1\. ]]; then+ echo "Found existing Plandex v1.x installation ($existing_version). Renaming to 'plandex1' before installing v2..."++ # Get the location of existing binary+ existing_binary=$(which plandex)+ binary_dir=$(dirname "$existing_binary")++ # Rename plandex to plandex1+ if ! mv "$existing_binary" "${binary_dir}/plandex1" 2>/dev/null; then+ sudo mv "$existing_binary" "${binary_dir}/plandex1"+ fi++ # Rename pdx to pdx1 if it exists+ if [ -L "${binary_dir}/pdx" ]; then+ if ! mv "${binary_dir}/pdx" "${binary_dir}/pdx1" 2>/dev/null; then+ sudo mv "${binary_dir}/pdx" "${binary_dir}/pdx1"+ fi+ echo "Renamed 'pdx' alias to 'pdx1'"+ fi++ echo "Your v1.x installation is now accessible as 'plandex1' and 'pdx1'"+ fi+ fi+}+welcome_plandex+check_existing_installationdownload_plandex-echo "Installation complete. Info:"+echo "Installation complete! Starting Plandex REPL..."echo ""-plandex help+plandexdiff --git a/app/cli/lib/active_stream.go b/app/cli/lib/active_stream.goindex 1336eeaa..a41af83a 100644--- a/app/cli/lib/active_stream.go+++ b/app/cli/lib/active_stream.go@@ -2,10 +2,10 @@ package libimport ("fmt"- "plandex/api"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/term"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func SelectActiveStream(args []string) (string, string, bool) {diff --git a/app/cli/lib/apply.go b/app/cli/lib/apply.goindex 44b44bc8..20abc64e 100644--- a/app/cli/lib/apply.go+++ b/app/cli/lib/apply.go@@ -9,17 +9,18 @@ import ("os/exec""os/signal""path/filepath"- "plandex/api"- "plandex/auth"- "plandex/fs"- "plandex/term"- "plandex/types"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/fs"+ "plandex-cli/term"+ "plandex-cli/types""strings""sync""syscall"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared")type ApplyFlags struct {diff --git a/app/cli/lib/build.go b/app/cli/lib/build.goindex 6d0a541d..f018033b 100644--- a/app/cli/lib/build.go+++ b/app/cli/lib/build.go@@ -1,6 +1,6 @@package lib-import "github.com/plandex/plandex/shared"+import shared "plandex-shared"var buildPlanInlineFn func(autoConfirm bool, maybeContexts []*shared.Context) (bool, error)diff --git a/app/cli/lib/context_conflict.go b/app/cli/lib/context_conflict.goindex 004c2a30..eba7ad28 100644--- a/app/cli/lib/context_conflict.go+++ b/app/cli/lib/context_conflict.go@@ -3,8 +3,8 @@ package libimport ("fmt""os"- "plandex/api"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/term""github.com/fatih/color")diff --git a/app/cli/lib/context_display.go b/app/cli/lib/context_display.goindex 03a208d6..dd434390 100644--- a/app/cli/lib/context_display.go+++ b/app/cli/lib/context_display.go@@ -1,7 +1,6 @@-package lib-import "github.com/plandex/plandex/shared"+import shared "plandex-shared"func GetContextLabelAndIcon(contextType shared.ContextType) (string, string) {var icon stringdiff --git a/app/cli/lib/context_load.go b/app/cli/lib/context_load.goindex 8f0e03a5..a3a93182 100644--- a/app/cli/lib/context_load.go+++ b/app/cli/lib/context_load.go@@ -7,17 +7,18 @@ import ("io""os""path/filepath"- "plandex/api"- "plandex/auth"- "plandex/fs"- "plandex/term"- "plandex/types"- "plandex/url"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/fs"+ "plandex-cli/term"+ "plandex-cli/types"+ "plandex-cli/url""strings""sync"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared")func MustLoadContext(resources []string, params *types.LoadContextParams) {diff --git a/app/cli/lib/context_paths.go b/app/cli/lib/context_paths.goindex e930f887..e63b8417 100644--- a/app/cli/lib/context_paths.go+++ b/app/cli/lib/context_paths.go@@ -4,7 +4,7 @@ import ("fmt""os""path/filepath"- "plandex/types"+ "plandex-cli/types""strings""sync")diff --git a/app/cli/lib/context_update.go b/app/cli/lib/context_update.goindex ddb9840b..d7c26966 100644--- a/app/cli/lib/context_update.go+++ b/app/cli/lib/context_update.go@@ -5,18 +5,19 @@ import ("encoding/hex""fmt""os"- "plandex/api"- "plandex/fs"- "plandex/term"- "plandex/types"- "plandex/url"+ "plandex-cli/api"+ "plandex-cli/fs"+ "plandex-cli/term"+ "plandex-cli/types"+ "plandex-cli/url""strconv""strings""sync"+ shared "plandex-shared"+"github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared")func CheckOutdatedContextWithOutput(quiet, autoConfirm bool, maybeContexts []*shared.Context) (contextOutdated, updated bool, err error) {diff --git a/app/cli/lib/current.go b/app/cli/lib/current.goindex 4abb8e2c..35214bac 100644--- a/app/cli/lib/current.go+++ b/app/cli/lib/current.go@@ -6,18 +6,19 @@ import ("log""os""path/filepath"- "plandex/api"- "plandex/auth"- "plandex/format"- "plandex/fs"- "plandex/term"- "plandex/types"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/format"+ "plandex-cli/fs"+ "plandex-cli/term"+ "plandex-cli/types""strconv""strings"+ shared "plandex-shared"+"github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared")var CurrentProjectId stringdiff --git a/app/cli/lib/legacy_files.go b/app/cli/lib/legacy_files.goindex 2796c2b1..26bbbd85 100644--- a/app/cli/lib/legacy_files.go+++ b/app/cli/lib/legacy_files.go@@ -5,9 +5,9 @@ import ("log""os""path/filepath"- "plandex/fs"- "plandex/term"- "plandex/types"+ "plandex-cli/fs"+ "plandex-cli/term"+ "plandex-cli/types")func MigrateLegacyProjectFile(currentUserId string) {diff --git a/app/cli/lib/model_settings.go b/app/cli/lib/model_settings.goindex 4a461ed1..61b1b9d7 100644--- a/app/cli/lib/model_settings.go+++ b/app/cli/lib/model_settings.go@@ -3,11 +3,12 @@ package libimport ("fmt""os"- "plandex/api"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/term"++ shared "plandex-shared""github.com/fatih/color"- "github.com/plandex/plandex/shared")const GoBack = "β Go back"diff --git a/app/cli/lib/plan_config.go b/app/cli/lib/plan_config.goindex 6ace1fb4..bb4731ae 100644--- a/app/cli/lib/plan_config.go+++ b/app/cli/lib/plan_config.go@@ -4,8 +4,9 @@ import ("os""sort"+ shared "plandex-shared"+"github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared")func ShowPlanConfig(config *shared.PlanConfig, key string) {diff --git a/app/cli/lib/plans.go b/app/cli/lib/plans.goindex d6cabfed..4bc10e61 100644--- a/app/cli/lib/plans.go+++ b/app/cli/lib/plans.go@@ -5,9 +5,9 @@ import ("fmt""os""path/filepath"- "plandex/auth"- "plandex/fs"- "plandex/types"+ "plandex-cli/auth"+ "plandex-cli/fs"+ "plandex-cli/types""sync")diff --git a/app/cli/lib/repl.go b/app/cli/lib/repl.goindex 492979d0..cb566546 100644--- a/app/cli/lib/repl.go+++ b/app/cli/lib/repl.go@@ -5,8 +5,8 @@ import ("os""os/exec""path/filepath"- "plandex/fs"- "plandex/term"+ "plandex-cli/fs"+ "plandex-cli/term""strconv")diff --git a/app/cli/main.go b/app/cli/main.goindex ef3b87cd..ef426a8a 100644--- a/app/cli/main.go+++ b/app/cli/main.go@@ -4,16 +4,18 @@ import ("log""os""path/filepath"- "plandex/api"- "plandex/auth"- "plandex/cmd"- "plandex/fs"- "plandex/lib"- "plandex/plan_exec"- "plandex/term"- "plandex/ui"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/cmd"+ "plandex-cli/fs"+ "plandex-cli/lib"+ "plandex-cli/plan_exec"+ "plandex-cli/term"+ "plandex-cli/ui"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"++ "gopkg.in/natefinch/lumberjack.v2")func init() {@@ -42,16 +44,17 @@ func init() {}, false)})- // set up a file logger- // TODO: log rotation-- file, err := os.OpenFile(filepath.Join(fs.HomePlandexDir, "plandex.log"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0666)- if err != nil {- term.OutputErrorAndExit("Error opening log file: %v", err)+ // set up a rotating file logger+ logger := &lumberjack.Logger{+ Filename: filepath.Join(fs.HomePlandexDir, "plandex-v2.log"),+ MaxSize: 10, // megabytes before rotation+ MaxBackups: 3, // number of backups to keep+ MaxAge: 28, // days to keep old logs+ Compress: true, // compress rotated files}- // Set the output of the logger to the file- log.SetOutput(file)+ // Set the output of the logger+ log.SetOutput(logger)log.SetFlags(log.LstdFlags | log.Lmicroseconds)// log.Println("Starting Plandex - logging initialized")diff --git a/app/cli/plan_exec/apply_exec.go b/app/cli/plan_exec/apply_exec.goindex 3e640438..71758bfe 100644--- a/app/cli/plan_exec/apply_exec.go+++ b/app/cli/plan_exec/apply_exec.go@@ -3,13 +3,14 @@ package plan_execimport ("fmt""log"- "plandex/auth"- "plandex/lib"- "plandex/term"- "plandex/types"+ "plandex-cli/auth"+ "plandex-cli/lib"+ "plandex-cli/term"+ "plandex-cli/types"++ shared "plandex-shared""github.com/fatih/color"- "github.com/plandex/plandex/shared")func GetOnApplyExecFail(flags lib.ApplyFlags) types.OnApplyExecFailFn {diff --git a/app/cli/plan_exec/build.go b/app/cli/plan_exec/build.goindex f65c0d27..eadb81cb 100644--- a/app/cli/plan_exec/build.go+++ b/app/cli/plan_exec/build.go@@ -4,13 +4,13 @@ import ("fmt""log""os"- "plandex/api"- "plandex/fs"- "plandex/stream"- streamtui "plandex/stream_tui"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/fs"+ "plandex-cli/stream"+ streamtui "plandex-cli/stream_tui"+ "plandex-cli/term"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func Build(params ExecParams, buildBg bool) (bool, error) {diff --git a/app/cli/plan_exec/params.go b/app/cli/plan_exec/params.goindex 3cd4412d..6e09153a 100644--- a/app/cli/plan_exec/params.go+++ b/app/cli/plan_exec/params.go@@ -1,6 +1,6 @@package plan_exec-import "github.com/plandex/plandex/shared"+import shared "plandex-shared"type ExecParams struct {CurrentPlanId stringdiff --git a/app/cli/plan_exec/tell.go b/app/cli/plan_exec/tell.goindex 84775754..ad9d5f6e 100644--- a/app/cli/plan_exec/tell.go+++ b/app/cli/plan_exec/tell.go@@ -4,20 +4,21 @@ import ("fmt""log""os"- "plandex/api"- "plandex/auth"- "plandex/fs"- "plandex/lib"- "plandex/stream"- streamtui "plandex/stream_tui"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/auth"+ "plandex-cli/fs"+ "plandex-cli/lib"+ "plandex-cli/stream"+ streamtui "plandex-cli/stream_tui"+ "plandex-cli/term""strings"+ shared "plandex-shared"+"github.com/eiannone/keyboard""github.com/fatih/color""github.com/olekukonko/tablewriter"- "github.com/plandex/plandex/shared")type hotkeyOption struct {diff --git a/app/cli/stream/stream.go b/app/cli/stream/stream.goindex 98046e7e..e7fde21b 100644--- a/app/cli/stream/stream.go+++ b/app/cli/stream/stream.go@@ -2,10 +2,10 @@ package streamimport ("log"- streamtui "plandex/stream_tui"- "plandex/types"+ streamtui "plandex-cli/stream_tui"+ "plandex-cli/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")var OnStreamPlan types.OnStreamPlan = func(params types.OnStreamPlanParams) {diff --git a/app/cli/stream_tui/model.go b/app/cli/stream_tui/model.goindex 1ec9c670..32ceacec 100644--- a/app/cli/stream_tui/model.go+++ b/app/cli/stream_tui/model.go@@ -5,12 +5,13 @@ import ("sync""time"+ shared "plandex-shared"+bubbleKey "github.com/charmbracelet/bubbles/key""github.com/charmbracelet/bubbles/spinner""github.com/charmbracelet/bubbles/viewport"tea "github.com/charmbracelet/bubbletea""github.com/charmbracelet/lipgloss"- "github.com/plandex/plandex/shared")const (diff --git a/app/cli/stream_tui/run.go b/app/cli/stream_tui/run.goindex 205cfc65..0c54f76e 100644--- a/app/cli/stream_tui/run.go+++ b/app/cli/stream_tui/run.go@@ -4,12 +4,13 @@ import ("fmt""log""os"- "plandex/term"+ "plandex-cli/term""sync"+ shared "plandex-shared"+tea "github.com/charmbracelet/bubbletea""github.com/fatih/color"- "github.com/plandex/plandex/shared")var ui *tea.Programdiff --git a/app/cli/stream_tui/update.go b/app/cli/stream_tui/update.goindex 3de41ab6..b60b5ebf 100644--- a/app/cli/stream_tui/update.go+++ b/app/cli/stream_tui/update.go@@ -4,19 +4,20 @@ import ("fmt""log""os"- "plandex/api"- "plandex/lib"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/lib"+ "plandex-cli/term""strings""time"+ shared "plandex-shared"+bubbleKey "github.com/charmbracelet/bubbles/key""github.com/charmbracelet/bubbles/spinner""github.com/charmbracelet/bubbles/viewport"tea "github.com/charmbracelet/bubbletea""github.com/charmbracelet/lipgloss""github.com/fatih/color"- "github.com/plandex/plandex/shared")func (m streamUIModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {diff --git a/app/cli/stream_tui/view.go b/app/cli/stream_tui/view.goindex e296f957..0821b242 100644--- a/app/cli/stream_tui/view.go+++ b/app/cli/stream_tui/view.go@@ -5,7 +5,7 @@ import ("sort""strings"- "plandex/term"+ "plandex-cli/term""github.com/charmbracelet/lipgloss""github.com/fatih/color"diff --git a/app/cli/term/errors.go b/app/cli/term/errors.goindex 626cc0c9..95d4c668 100644--- a/app/cli/term/errors.go+++ b/app/cli/term/errors.go@@ -5,8 +5,9 @@ import ("os""strings"+ shared "plandex-shared"+"github.com/fatih/color"- "github.com/plandex/plandex/shared")var openUnauthenticatedCloudURL func(msg, path string)diff --git a/app/cli/types/api.go b/app/cli/types/api.goindex 476834eb..efd2c509 100644--- a/app/cli/types/api.go+++ b/app/cli/types/api.go@@ -1,7 +1,7 @@package typesimport (- "github.com/plandex/plandex/shared"+ shared "plandex-shared")type OnStreamPlanParams struct {diff --git a/app/cli/types/types.go b/app/cli/types/types.goindex fc84f39f..314ed094 100644--- a/app/cli/types/types.go+++ b/app/cli/types/types.go@@ -1,7 +1,8 @@package typesimport (- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/cli/ui/ui.go b/app/cli/ui/ui.goindex 04aec1e2..6e9260f1 100644--- a/app/cli/ui/ui.go+++ b/app/cli/ui/ui.go@@ -5,14 +5,14 @@ import ("encoding/json""fmt""log"- "plandex/api"- "plandex/term"+ "plandex-cli/api"+ "plandex-cli/term""strings""github.com/fatih/color""github.com/pkg/browser"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func OpenAuthenticatedURL(msg, path string) {diff --git a/app/cli/upgrade.go b/app/cli/upgrade.goindex a477f17c..e0820594 100644--- a/app/cli/upgrade.go+++ b/app/cli/upgrade.go@@ -12,8 +12,8 @@ import ("net/url""os""os/exec"- "plandex/term"- "plandex/version"+ "plandex-cli/term"+ "plandex-cli/version""runtime""strings"@@ -33,7 +33,7 @@ func checkForUpgrade() {term.StartSpinner("")defer term.StopSpinner()- latestVersionURL := "https://plandex.ai/cli-version.txt"+ latestVersionURL := "https://plandex.ai/v2/cli-version.txt"resp, err := http.Get(latestVersionURL)if err != nil {log.Println("Error checking latest version:", err)diff --git a/app/cli/url/url.go b/app/cli/url/url.goindex eed30e09..59de0e20 100644--- a/app/cli/url/url.go+++ b/app/cli/url/url.go@@ -5,7 +5,7 @@ import ("io""net/http""net/url"- "plandex/term"+ "plandex-cli/term""regexp""strings""time"diff --git a/app/server/db/branch_helpers.go b/app/server/db/branch_helpers.goindex e3555df6..b59a8959 100644--- a/app/server/db/branch_helpers.go+++ b/app/server/db/branch_helpers.go@@ -5,9 +5,10 @@ import ("fmt""log"+ shared "plandex-shared"+"github.com/jmoiron/sqlx""github.com/lib/pq"- "github.com/plandex/plandex/shared")func CreateBranch(plan *Plan, parentBranch *Branch, name string, tx *sqlx.Tx) (*Branch, error) {diff --git a/app/server/db/context_helpers.go b/app/server/db/context_helpers.goindex 3a02cfe9..3e187cd8 100644--- a/app/server/db/context_helpers.go+++ b/app/server/db/context_helpers.go@@ -16,8 +16,9 @@ import ("sync""time"+ shared "plandex-shared"+"github.com/google/uuid"- "github.com/plandex/plandex/shared")type Ctx context.Contextdiff --git a/app/server/db/convo_helpers.go b/app/server/db/convo_helpers.goindex 23b8fa8a..f73eec6a 100644--- a/app/server/db/convo_helpers.go+++ b/app/server/db/convo_helpers.go@@ -8,9 +8,10 @@ import ("sort""time"+ shared "plandex-shared"+"github.com/fatih/color""github.com/google/uuid"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/db/data_models.go b/app/server/db/data_models.goindex f5d4fb80..7d320499 100644--- a/app/server/db/data_models.go+++ b/app/server/db/data_models.go@@ -3,7 +3,8 @@ package dbimport ("time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/db/diff_helpers.go b/app/server/db/diff_helpers.goindex 7b6314f7..3cf758cc 100644--- a/app/server/db/diff_helpers.go+++ b/app/server/db/diff_helpers.go@@ -6,7 +6,7 @@ import ("os/exec""path/filepath"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func GetPlanDiffs(orgId, planId string, plain bool) (string, error) {diff --git a/app/server/db/org_helpers.go b/app/server/db/org_helpers.goindex 4b435864..14ba2f1f 100644--- a/app/server/db/org_helpers.go+++ b/app/server/db/org_helpers.go@@ -6,9 +6,10 @@ import ("log""strings"+ shared "plandex-shared"+"github.com/jmoiron/sqlx""github.com/lib/pq"- "github.com/plandex/plandex/shared")const orgFields = "id, name, domain, auto_add_domain_users, owner_id, is_trial, created_at, updated_at"diff --git a/app/server/db/plan_config_helpers.go b/app/server/db/plan_config_helpers.goindex 04748e8a..afa15a0f 100644--- a/app/server/db/plan_config_helpers.go+++ b/app/server/db/plan_config_helpers.go@@ -3,8 +3,9 @@ package dbimport ("fmt"+ shared "plandex-shared"+"github.com/jmoiron/sqlx"- "github.com/plandex/plandex/shared")func GetPlanConfig(planId string) (*shared.PlanConfig, error) {diff --git a/app/server/db/plan_helpers.go b/app/server/db/plan_helpers.goindex 21f0246e..890b24f0 100644--- a/app/server/db/plan_helpers.go+++ b/app/server/db/plan_helpers.go@@ -9,10 +9,11 @@ import ("strconv""time"+ shared "plandex-shared"+"github.com/google/uuid""github.com/jmoiron/sqlx""github.com/lib/pq"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/db/result_helpers.go b/app/server/db/result_helpers.goindex 0aec62fd..31caf8cd 100644--- a/app/server/db/result_helpers.go+++ b/app/server/db/result_helpers.go@@ -11,8 +11,9 @@ import ("strings""time"+ shared "plandex-shared"+"github.com/google/uuid"- "github.com/plandex/plandex/shared")func StorePlanResult(result *PlanFileResult) error {diff --git a/app/server/db/settings_helpers.go b/app/server/db/settings_helpers.goindex a32db463..82bd9776 100644--- a/app/server/db/settings_helpers.go+++ b/app/server/db/settings_helpers.go@@ -9,8 +9,9 @@ import ("path/filepath""time"+ shared "plandex-shared"+"github.com/jmoiron/sqlx"- "github.com/plandex/plandex/shared")func GetPlanSettings(plan *Plan, fillDefaultModelPack bool) (*shared.PlanSettings, error) {diff --git a/app/server/db/stream_helpers.go b/app/server/db/stream_helpers.goindex ba85995d..c3a80a6d 100644--- a/app/server/db/stream_helpers.go+++ b/app/server/db/stream_helpers.go@@ -7,8 +7,9 @@ import ("log""time"+ shared "plandex-shared"+"github.com/lib/pq"- "github.com/plandex/plandex/shared")const modelStreamHeartbeatInterval = 1 * time.Seconddiff --git a/app/server/diff/diff.go b/app/server/diff/diff.goindex 0775913f..2d5560ea 100644--- a/app/server/diff/diff.go+++ b/app/server/diff/diff.go@@ -10,8 +10,9 @@ import ("strconv""strings"+ shared "plandex-shared"+"github.com/google/uuid"- "github.com/plandex/plandex/shared")func GetDiffs(original, updated string) (string, error) {diff --git a/app/server/go.mod b/app/server/go.modindex 271ced47..198a8b59 100644--- a/app/server/go.mod+++ b/app/server/go.mod@@ -7,7 +7,7 @@ require (github.com/google/uuid v1.6.0github.com/gorilla/mux v1.8.1github.com/pkg/errors v0.9.1- github.com/plandex/plandex/shared v0.0.0-00010101000000-000000000000+ plandex-shared v0.0.0-00010101000000-000000000000github.com/sashabaranov/go-openai v1.36.1)@@ -48,4 +48,4 @@ require (golang.org/x/net v0.34.0)-replace github.com/plandex/plandex/shared => ../shared+replace plandex-shared => ../shareddiff --git a/app/server/handlers/accounts.go b/app/server/handlers/accounts.goindex 5d81557f..d8541696 100644--- a/app/server/handlers/accounts.go+++ b/app/server/handlers/accounts.go@@ -11,7 +11,7 @@ import ("plandex-server/types""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func CreateAccountHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/auth_helpers.go b/app/server/handlers/auth_helpers.goindex 238d6350..ef875142 100644--- a/app/server/handlers/auth_helpers.go+++ b/app/server/handlers/auth_helpers.go@@ -13,7 +13,7 @@ import ("strings""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func Authenticate(w http.ResponseWriter, r *http.Request, requireOrg bool) *types.ServerAuth {diff --git a/app/server/handlers/branches.go b/app/server/handlers/branches.goindex 40c8d804..c1aba3f5 100644--- a/app/server/handlers/branches.go+++ b/app/server/handlers/branches.go@@ -8,8 +8,9 @@ import ("net/http""plandex-server/db"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func ListBranchesHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/context_helper.go b/app/server/handlers/context_helper.goindex 66af16e7..d72c632d 100644--- a/app/server/handlers/context_helper.go+++ b/app/server/handlers/context_helper.go@@ -10,7 +10,7 @@ import ("plandex-server/model""plandex-server/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func loadContexts(diff --git a/app/server/handlers/err_helper.go b/app/server/handlers/err_helper.goindex 276b6157..53f1c500 100644--- a/app/server/handlers/err_helper.go+++ b/app/server/handlers/err_helper.go@@ -5,7 +5,7 @@ import ("log""net/http"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func writeApiError(w http.ResponseWriter, apiErr shared.ApiError) {diff --git a/app/server/handlers/file_maps.go b/app/server/handlers/file_maps.goindex fc3b2e2f..9082e4d4 100644--- a/app/server/handlers/file_maps.go+++ b/app/server/handlers/file_maps.go@@ -10,8 +10,9 @@ import ("runtime""sync"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func GetFileMapHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/invites.go b/app/server/handlers/invites.goindex bbce7ffe..7841aa59 100644--- a/app/server/handlers/invites.go+++ b/app/server/handlers/invites.go@@ -8,8 +8,9 @@ import ("plandex-server/email""strings"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func InviteUserHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/models.go b/app/server/handlers/models.goindex 1e3110e8..3cb2268f 100644--- a/app/server/handlers/models.go+++ b/app/server/handlers/models.go@@ -6,8 +6,9 @@ import ("net/http""plandex-server/db"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func CreateCustomModelHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/org_helpers.go b/app/server/handlers/org_helpers.goindex e7849a4e..eda29695 100644--- a/app/server/handlers/org_helpers.go+++ b/app/server/handlers/org_helpers.go@@ -5,7 +5,7 @@ import ("plandex-server/db""plandex-server/hooks"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func toApiOrgs(orgs []*db.Org) ([]*shared.Org, *shared.ApiError) {diff --git a/app/server/handlers/orgs.go b/app/server/handlers/orgs.goindex 43e3ceb8..45738484 100644--- a/app/server/handlers/orgs.go+++ b/app/server/handlers/orgs.go@@ -9,7 +9,7 @@ import ("plandex-server/db""plandex-server/hooks"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func ListOrgsHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/plan_config.go b/app/server/handlers/plan_config.goindex 8e95fee2..1cc32dc7 100644--- a/app/server/handlers/plan_config.go+++ b/app/server/handlers/plan_config.go@@ -6,8 +6,9 @@ import ("net/http""plandex-server/db"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func GetPlanConfigHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/plans_changes.go b/app/server/handlers/plans_changes.goindex 8a97dc97..ee4c6ab0 100644--- a/app/server/handlers/plans_changes.go+++ b/app/server/handlers/plans_changes.go@@ -11,8 +11,9 @@ import (modelPlan "plandex-server/model/plan""time"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func CurrentPlanHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/plans_context.go b/app/server/handlers/plans_context.goindex 23e9cf10..7d15be5b 100644--- a/app/server/handlers/plans_context.go+++ b/app/server/handlers/plans_context.go@@ -8,8 +8,9 @@ import ("net/http""plandex-server/db"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func ListContextHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/plans_convo.go b/app/server/handlers/plans_convo.goindex ae2206d9..641b0c6c 100644--- a/app/server/handlers/plans_convo.go+++ b/app/server/handlers/plans_convo.go@@ -7,8 +7,9 @@ import ("net/http""plandex-server/db"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func ListConvoHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/plans_crud.go b/app/server/handlers/plans_crud.goindex 8aaf7fa2..d4a41a7c 100644--- a/app/server/handlers/plans_crud.go+++ b/app/server/handlers/plans_crud.go@@ -12,8 +12,9 @@ import ("strings""time"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func CreatePlanHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/plans_exec.go b/app/server/handlers/plans_exec.goindex f5f6920a..36f68fd5 100644--- a/app/server/handlers/plans_exec.go+++ b/app/server/handlers/plans_exec.go@@ -13,8 +13,9 @@ import ("plandex-server/types""time"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")const TrialMaxReplies = 10diff --git a/app/server/handlers/plans_versions.go b/app/server/handlers/plans_versions.goindex 4fd71baf..620228dc 100644--- a/app/server/handlers/plans_versions.go+++ b/app/server/handlers/plans_versions.go@@ -8,8 +8,9 @@ import ("net/http""plandex-server/db"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func ListLogsHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/projects.go b/app/server/handlers/projects.goindex a933ca33..ba69c909 100644--- a/app/server/handlers/projects.go+++ b/app/server/handlers/projects.go@@ -7,8 +7,9 @@ import ("net/http""plandex-server/db"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func CreateProjectHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/proxy_helper.go b/app/server/handlers/proxy_helper.goindex 9dbc100f..7e912828 100644--- a/app/server/handlers/proxy_helper.go+++ b/app/server/handlers/proxy_helper.go@@ -10,7 +10,7 @@ import ("plandex-server/host""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func proxyActivePlanMethod(w http.ResponseWriter, r *http.Request, planId, branch, method string) {diff --git a/app/server/handlers/sessions.go b/app/server/handlers/sessions.goindex 98faa48e..a3cbd949 100644--- a/app/server/handlers/sessions.go+++ b/app/server/handlers/sessions.go@@ -11,7 +11,7 @@ import ("plandex-server/email""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func CreateEmailVerificationHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/settings.go b/app/server/handlers/settings.goindex b69e061d..04775183 100644--- a/app/server/handlers/settings.go+++ b/app/server/handlers/settings.go@@ -9,8 +9,9 @@ import ("plandex-server/db""reflect"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func GetSettingsHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/handlers/stream_helper.go b/app/server/handlers/stream_helper.goindex 4fecee44..9e5948c7 100644--- a/app/server/handlers/stream_helper.go+++ b/app/server/handlers/stream_helper.go@@ -10,7 +10,7 @@ import ("plandex-server/types""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func startResponseStream(w http.ResponseWriter, auth *types.ServerAuth, planId, branch string, isConnect bool) {diff --git a/app/server/handlers/users.go b/app/server/handlers/users.goindex b0b7318e..04dba2ec 100644--- a/app/server/handlers/users.go+++ b/app/server/handlers/users.go@@ -7,8 +7,9 @@ import ("plandex-server/db""strings"+ shared "plandex-shared"+"github.com/gorilla/mux"- "github.com/plandex/plandex/shared")func ListUsersHandler(w http.ResponseWriter, r *http.Request) {diff --git a/app/server/hooks/hooks.go b/app/server/hooks/hooks.goindex b32c7c85..2b75518c 100644--- a/app/server/hooks/hooks.go+++ b/app/server/hooks/hooks.go@@ -4,8 +4,9 @@ import ("plandex-server/db""plandex-server/types"+ shared "plandex-shared"+"github.com/jmoiron/sqlx"- "github.com/plandex/plandex/shared")const (diff --git a/app/server/model/client.go b/app/server/model/client.goindex 4555529e..a3b6ed50 100644--- a/app/server/model/client.go+++ b/app/server/model/client.go@@ -15,7 +15,8 @@ import ("sync""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/name.go b/app/server/model/name.goindex 1b3d5c55..d0b71d74 100644--- a/app/server/model/name.go+++ b/app/server/model/name.go@@ -10,7 +10,8 @@ import ("plandex-server/model/prompts""plandex-server/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/activate.go b/app/server/model/plan/activate.goindex 909e9f6a..7c724c8e 100644--- a/app/server/model/plan/activate.go+++ b/app/server/model/plan/activate.go@@ -9,7 +9,7 @@ import ("plandex-server/types""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func activatePlan(diff --git a/app/server/model/plan/build_exec.go b/app/server/model/plan/build_exec.goindex 4d4ffd30..ef59df06 100644--- a/app/server/model/plan/build_exec.go+++ b/app/server/model/plan/build_exec.go@@ -8,7 +8,7 @@ import ("plandex-server/types""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func Build(diff --git a/app/server/model/plan/build_finish.go b/app/server/model/plan/build_finish.goindex be9bb2cd..dabc9d08 100644--- a/app/server/model/plan/build_finish.go+++ b/app/server/model/plan/build_finish.go@@ -8,7 +8,7 @@ import ("plandex-server/types""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func (state *activeBuildStreamFileState) onFinishBuild() {diff --git a/app/server/model/plan/build_load.go b/app/server/model/plan/build_load.goindex 866a07d2..98a85ec7 100644--- a/app/server/model/plan/build_load.go+++ b/app/server/model/plan/build_load.go@@ -8,7 +8,7 @@ import ("plandex-server/syntax""plandex-server/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func (state *activeBuildStreamState) loadPendingBuilds() (map[string][]*types.ActiveBuild, error) {diff --git a/app/server/model/plan/build_state.go b/app/server/model/plan/build_state.goindex baf3e119..8b02d81f 100644--- a/app/server/model/plan/build_state.go+++ b/app/server/model/plan/build_state.go@@ -5,7 +5,8 @@ import ("plandex-server/model""plandex-server/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+sitter "github.com/smacker/go-tree-sitter")diff --git a/app/server/model/plan/build_structured_edits.go b/app/server/model/plan/build_structured_edits.goindex b2590315..459b6666 100644--- a/app/server/model/plan/build_structured_edits.go+++ b/app/server/model/plan/build_structured_edits.go@@ -13,8 +13,9 @@ import ("strings""time"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/build_whole_file.go b/app/server/model/plan/build_whole_file.goindex c385b747..a19513d8 100644--- a/app/server/model/plan/build_whole_file.go+++ b/app/server/model/plan/build_whole_file.go@@ -12,8 +12,9 @@ import ("strings""time"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/commit_msg.go b/app/server/model/plan/commit_msg.goindex f46f4e78..6aad1695 100644--- a/app/server/model/plan/commit_msg.go+++ b/app/server/model/plan/commit_msg.go@@ -12,8 +12,9 @@ import ("plandex-server/model/prompts""plandex-server/types"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/exec_status.go b/app/server/model/plan/exec_status.goindex 44ad4005..67c40084 100644--- a/app/server/model/plan/exec_status.go+++ b/app/server/model/plan/exec_status.go@@ -11,8 +11,9 @@ import ("plandex-server/types""strings"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/state.go b/app/server/model/plan/state.goindex f5b2e850..7b5f16e7 100644--- a/app/server/model/plan/state.go+++ b/app/server/model/plan/state.go@@ -8,7 +8,7 @@ import ("strings""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")var (diff --git a/app/server/model/plan/tell_build_pending.go b/app/server/model/plan/tell_build_pending.goindex 629397e1..fbf4ef2f 100644--- a/app/server/model/plan/tell_build_pending.go+++ b/app/server/model/plan/tell_build_pending.go@@ -4,7 +4,7 @@ import ("log""net/http"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func (state *activeTellStreamState) queuePendingBuilds() {diff --git a/app/server/model/plan/tell_context.go b/app/server/model/plan/tell_context.goindex 8e92580f..76a9b1ac 100644--- a/app/server/model/plan/tell_context.go+++ b/app/server/model/plan/tell_context.go@@ -7,7 +7,8 @@ import ("regexp""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_exec.go b/app/server/model/plan/tell_exec.goindex 77745ec0..95594119 100644--- a/app/server/model/plan/tell_exec.go+++ b/app/server/model/plan/tell_exec.go@@ -12,9 +12,10 @@ import ("plandex-server/model/prompts""plandex-server/types"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew""github.com/google/uuid"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_load.go b/app/server/model/plan/tell_load.goindex ca3d8b34..75e77cf7 100644--- a/app/server/model/plan/tell_load.go+++ b/app/server/model/plan/tell_load.go@@ -8,7 +8,8 @@ import ("plandex-server/model""plandex-server/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_missing_file.go b/app/server/model/plan/tell_missing_file.goindex e286e452..5c4505ba 100644--- a/app/server/model/plan/tell_missing_file.go+++ b/app/server/model/plan/tell_missing_file.go@@ -5,7 +5,8 @@ import ("plandex-server/model/prompts""plandex-server/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_prompt_message.go b/app/server/model/plan/tell_prompt_message.goindex dcd11a68..33c975af 100644--- a/app/server/model/plan/tell_prompt_message.go+++ b/app/server/model/plan/tell_prompt_message.go@@ -5,7 +5,8 @@ import ("net/http""plandex-server/model/prompts"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_state.go b/app/server/model/plan/tell_state.goindex a7a2f03e..e4cf14a2 100644--- a/app/server/model/plan/tell_state.go+++ b/app/server/model/plan/tell_state.go@@ -5,7 +5,8 @@ import ("plandex-server/model""plandex-server/types"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_stream_error.go b/app/server/model/plan/tell_stream_error.goindex c585966e..a86a9670 100644--- a/app/server/model/plan/tell_stream_error.go+++ b/app/server/model/plan/tell_stream_error.go@@ -9,7 +9,7 @@ import ("strconv""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")type onErrorParams struct {diff --git a/app/server/model/plan/tell_stream_finish.go b/app/server/model/plan/tell_stream_finish.goindex 3e984951..68f401d2 100644--- a/app/server/model/plan/tell_stream_finish.go+++ b/app/server/model/plan/tell_stream_finish.go@@ -9,7 +9,8 @@ import ("strings""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_stream_main.go b/app/server/model/plan/tell_stream_main.goindex 5f605621..453e7681 100644--- a/app/server/model/plan/tell_stream_main.go+++ b/app/server/model/plan/tell_stream_main.go@@ -6,7 +6,7 @@ import ("plandex-server/model""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func (state *activeTellStreamState) listenStream(stream *model.ExtendedChatCompletionStream) {diff --git a/app/server/model/plan/tell_stream_processor.go b/app/server/model/plan/tell_stream_processor.goindex 3ec66f33..83f4817e 100644--- a/app/server/model/plan/tell_stream_processor.go+++ b/app/server/model/plan/tell_stream_processor.go@@ -10,8 +10,9 @@ import ("strings""time"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_stream_usage.go b/app/server/model/plan/tell_stream_usage.goindex 9dcac97f..3b27da6f 100644--- a/app/server/model/plan/tell_stream_usage.go+++ b/app/server/model/plan/tell_stream_usage.go@@ -4,8 +4,9 @@ import ("log""plandex-server/hooks"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/plan/tell_summary.go b/app/server/model/plan/tell_summary.goindex b7052b9e..ae093ac1 100644--- a/app/server/model/plan/tell_summary.go+++ b/app/server/model/plan/tell_summary.go@@ -12,8 +12,9 @@ import ("plandex-server/types""time"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared""github.com/sashabaranov/go-openai")diff --git a/app/server/model/prompts/build.go b/app/server/model/prompts/build.goindex 0b96c179..5a180418 100644--- a/app/server/model/prompts/build.go+++ b/app/server/model/prompts/build.go@@ -5,7 +5,7 @@ import ("plandex-server/syntax""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")type ValidateEditsPromptParams struct {diff --git a/app/server/model/summarize.go b/app/server/model/summarize.goindex 4ab760ed..4d22b963 100644--- a/app/server/model/summarize.go+++ b/app/server/model/summarize.go@@ -12,7 +12,8 @@ import ("strings""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"github.com/sashabaranov/go-openai")diff --git a/app/server/syntax/comments.go b/app/server/syntax/comments.goindex d2f4bfe7..54b83269 100644--- a/app/server/syntax/comments.go+++ b/app/server/syntax/comments.go@@ -5,7 +5,8 @@ import ("fmt""sort"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+tree_sitter "github.com/smacker/go-tree-sitter")diff --git a/app/server/syntax/file_map/cli/go.mod b/app/server/syntax/file_map/cli/go.modindex 047d7f30..46ad2578 100644--- a/app/server/syntax/file_map/cli/go.mod+++ b/app/server/syntax/file_map/cli/go.mod@@ -4,12 +4,12 @@ go 1.23.3replace plandex-server => ../../../-replace github.com/plandex/plandex/shared => ../../../../shared+replace plandex-shared => ../../../../sharedreplace plandex => ../../../../clirequire (- github.com/plandex/plandex/shared v0.0.0-00010101000000-000000000000+ plandex-shared v0.0.0-00010101000000-000000000000plandex v0.0.0-00010101000000-000000000000plandex-server v0.0.0-00010101000000-000000000000)diff --git a/app/server/syntax/file_map/cli/main.go b/app/server/syntax/file_map/cli/main.goindex 0dce531d..e3df0951 100644--- a/app/server/syntax/file_map/cli/main.go+++ b/app/server/syntax/file_map/cli/main.go@@ -10,7 +10,7 @@ import ("sync""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func main() {diff --git a/app/server/syntax/file_map/examples/markdown_example.md b/app/server/syntax/file_map/examples/markdown_example.mdnew file mode 100644index 00000000..aae7f69d--- /dev/null+++ b/app/server/syntax/file_map/examples/markdown_example.md@@ -0,0 +1,113 @@+# SoundScape π΅++An AI-powered music visualization and generation platform that creates real-time visual art from audio input.++## Features β¨++- Real-time audio processing using WebAudio API+- Dynamic visualization generation using Three.js+- AI-powered music analysis for enhanced visual mapping+- Multiple visualization styles (geometric, particle, liquid simulation)+- Audio recording and export capabilities+- Collaborative mode for live performances++## Getting Started π++### Prerequisites++- Node.js (v18 or higher)+- GPU with WebGL 2.0 support+- Microphone access (for live input)++### Installation++1. Clone the repository:+```bash+git clone https://github.com/yourusername/soundscape.git+cd soundscape+```++2. Install dependencies:+```bash+npm install+```++3. Start the development server:+```bash+npm run dev+```++The application will be available at `http://localhost:3000`++## Architecture ποΈ++SoundScape uses a modular architecture with the following core components:++- **AudioEngine**: Handles audio input processing and analysis+- **VisualizationCore**: Manages the 3D rendering pipeline+- **AIProcessor**: Processes audio features for enhanced visualization+- **StateManager**: Handles application state and user preferences++## API Reference π++### Audio Processing++```typescript+interface AudioProcessor {+ analyze(input: AudioBuffer): AudioFeatures;+ extractBeat(features: AudioFeatures): BeatPattern;+ generateVisuals(pattern: BeatPattern): Scene;+}+```++### Visualization++```typescript+interface VisualizationStyle {+ name: string;+ parameters: VisualParameters;+ render(scene: Scene): void;+ updateParams(params: Partial<VisualParameters>): void;+}+```++## Contributing π€++We welcome contributions! Please read our [Contributing Guidelines](CONTRIBUTING.md) before submitting a pull request.++### Development Workflow++1. Fork the repository+2. Create a feature branch (`git checkout -b feature/amazing-feature`)+3. Commit your changes (`git commit -m 'Add amazing feature'`)+4. Push to the branch (`git push origin feature/amazing-feature`)+5. Open a Pull Request++## Performance Optimization Tips π‘++- Use Web Workers for heavy audio processing+- Implement lazy loading for visualization styles+- Enable GPU acceleration when available+- Cache frequently used audio features+- Optimize render loops for smooth performance++## License π++This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.++## Acknowledgments π++- Three.js community for 3D rendering support+- TensorFlow.js team for machine learning capabilities+- Web Audio API working group+- All our amazing contributors++## Contact π§++Project Lead - [@projectlead](https://twitter.com/projectlead)++Project Link: [https://github.com/yourusername/soundscape](https://github.com/yourusername/soundscape)++---++Made with β€οΈ by the SoundScape Team\ No newline at end of filediff --git a/app/server/syntax/file_map/map.go b/app/server/syntax/file_map/map.goindex f5bf1c3d..fdfffde1 100644--- a/app/server/syntax/file_map/map.go+++ b/app/server/syntax/file_map/map.go@@ -8,7 +8,8 @@ import ("plandex-server/syntax""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+tree_sitter "github.com/smacker/go-tree-sitter")diff --git a/app/server/syntax/file_map/multi.go b/app/server/syntax/file_map/multi.goindex d9c0357c..9a2f0cd4 100644--- a/app/server/syntax/file_map/multi.go+++ b/app/server/syntax/file_map/multi.go@@ -11,7 +11,8 @@ import ("strings""sync"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+tree_sitter "github.com/smacker/go-tree-sitter")diff --git a/app/server/syntax/file_map/nodes_config.go b/app/server/syntax/file_map/nodes_config.goindex 3e8fce53..37c742f2 100644--- a/app/server/syntax/file_map/nodes_config.go+++ b/app/server/syntax/file_map/nodes_config.go@@ -1,6 +1,6 @@package file_map-import "github.com/plandex/plandex/shared"+import shared "plandex-shared"type nodeType stringdiff --git a/app/server/syntax/file_map/nodes_find.go b/app/server/syntax/file_map/nodes_find.goindex 99db58f9..0ad05d77 100644--- a/app/server/syntax/file_map/nodes_find.go+++ b/app/server/syntax/file_map/nodes_find.go@@ -4,7 +4,7 @@ import ("fmt""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func isDefinitionNode(node Node, parentNode *Node) bool {diff --git a/app/server/syntax/file_map/svelte.go b/app/server/syntax/file_map/svelte.goindex 255144e9..5b2fb10f 100644--- a/app/server/syntax/file_map/svelte.go+++ b/app/server/syntax/file_map/svelte.go@@ -8,7 +8,8 @@ import ("plandex-server/syntax""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+"golang.org/x/net/html")diff --git a/app/server/syntax/parsers.go b/app/server/syntax/parsers.goindex fd186606..667c9ed4 100644--- a/app/server/syntax/parsers.go+++ b/app/server/syntax/parsers.go@@ -36,7 +36,7 @@ import ("github.com/smacker/go-tree-sitter/typescript/typescript""github.com/smacker/go-tree-sitter/yaml"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func GetLanguageForPath(path string) shared.Language {diff --git a/app/server/syntax/structured_edits_apply.go b/app/server/syntax/structured_edits_apply.goindex 1dacc019..375bdcc1 100644--- a/app/server/syntax/structured_edits_apply.go+++ b/app/server/syntax/structured_edits_apply.go@@ -7,8 +7,9 @@ import ("regexp""strings"+ shared "plandex-shared"+"github.com/davecgh/go-spew/spew"- "github.com/plandex/plandex/shared"sitter "github.com/smacker/go-tree-sitter")diff --git a/app/server/syntax/structured_edits_tree_sitter.go b/app/server/syntax/structured_edits_tree_sitter.goindex b8693956..16638e89 100644--- a/app/server/syntax/structured_edits_tree_sitter.go+++ b/app/server/syntax/structured_edits_tree_sitter.go@@ -5,7 +5,8 @@ import ("fmt""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+tree_sitter "github.com/smacker/go-tree-sitter")diff --git a/app/server/syntax/validate.go b/app/server/syntax/validate.goindex ec9e4d5d..58cc4150 100644--- a/app/server/syntax/validate.go+++ b/app/server/syntax/validate.go@@ -4,7 +4,8 @@ import ("strings""time"- "github.com/plandex/plandex/shared"+ shared "plandex-shared"+tree_sitter "github.com/smacker/go-tree-sitter""context"diff --git a/app/server/types/active_plan.go b/app/server/types/active_plan.goindex 8ef18865..efef94e4 100644--- a/app/server/types/active_plan.go+++ b/app/server/types/active_plan.go@@ -10,8 +10,9 @@ import ("sync""time"+ shared "plandex-shared"+"github.com/google/uuid"- "github.com/plandex/plandex/shared")const MaxStreamRate = 70 * time.Milliseconddiff --git a/app/server/types/active_plan_pending_builds.go b/app/server/types/active_plan_pending_builds.goindex fced3df6..3e018d71 100644--- a/app/server/types/active_plan_pending_builds.go+++ b/app/server/types/active_plan_pending_builds.go@@ -5,7 +5,7 @@ import ("log""plandex-server/db"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func (ap *ActivePlan) PendingBuildsByPath(orgId, userId string, convoMessagesArg []*db.ConvoMessage) (map[string][]*ActiveBuild, error) {diff --git a/app/server/types/auth.go b/app/server/types/auth.goindex 07340e7d..9d9d3f12 100644--- a/app/server/types/auth.go+++ b/app/server/types/auth.go@@ -3,7 +3,7 @@ package typesimport ("plandex-server/db"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")type ServerAuth struct {diff --git a/app/server/types/convo_message_desc.go b/app/server/types/convo_message_desc.goindex dbe8bc89..61e3bebe 100644--- a/app/server/types/convo_message_desc.go+++ b/app/server/types/convo_message_desc.go@@ -3,7 +3,7 @@ package typesimport ("plandex-server/db"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")func HasPendingBuilds(planDescs []*db.ConvoMessageDescription) bool {diff --git a/app/server/types/model.go b/app/server/types/model.goindex 28741ad1..695ddcb8 100644--- a/app/server/types/model.go+++ b/app/server/types/model.go@@ -4,7 +4,7 @@ import ("fmt""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")type StreamedFile struct {diff --git a/app/server/types/reply.go b/app/server/types/reply.goindex 5aeeed81..c7ee9707 100644--- a/app/server/types/reply.go+++ b/app/server/types/reply.go@@ -7,7 +7,7 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")const verboseLogging = falsediff --git a/app/server/types/reply_test.go b/app/server/types/reply_test.goindex f0532878..7d033ce8 100644--- a/app/server/types/reply_test.go+++ b/app/server/types/reply_test.go@@ -6,7 +6,7 @@ import ("strconv""testing"- "github.com/plandex/plandex/shared"+ shared "plandex-shared")type TestExample struct {diff --git a/app/server/types/reply_test_examples/10.md b/app/server/types/reply_test_examples/10.mdindex 8e34ac8e..3b03cdb6 100644--- a/app/server/types/reply_test_examples/10.md+++ b/app/server/types/reply_test_examples/10.md@@ -10,7 +10,7 @@ package promptsimport ("fmt"- "github.com/plandex/plandex/shared"+ "plandex-shared")const SysDescribe = `You are an AI parser. You turn an AI's plan for a programming task into a structured description. You must output a commit message for the changes proposed using XML tags.diff --git a/app/server/types/trial.go b/app/server/types/trial.goindex 396b5a47..fdfcbda5 100644--- a/app/server/types/trial.go+++ b/app/server/types/trial.go@@ -1,4 +1,4 @@package types-const TrialMaxReplies = 15+const TrialMaxReplies = 20const TrialMaxPlans = 10diff --git a/app/shared/go.mod b/app/shared/go.modindex 51b4fe1a..97e43af2 100644--- a/app/shared/go.mod+++ b/app/shared/go.mod@@ -1,19 +1,15 @@-module shared+module plandex-sharedgo 1.23.3require (github.com/davecgh/go-spew v1.1.1- github.com/fatih/color v1.18.0github.com/pkoukk/tiktoken-go v0.1.7)require (- github.com/mattn/go-colorable v0.1.13 // indirect- github.com/mattn/go-isatty v0.0.20 // indirectgithub.com/mattn/go-runewidth v0.0.16 // indirectgithub.com/rivo/uniseg v0.4.7 // indirect- golang.org/x/sys v0.25.0 // indirect)require (diff --git a/app/shared/go.sum b/app/shared/go.sumindex 727a343a..391df034 100644--- a/app/shared/go.sum+++ b/app/shared/go.sum@@ -2,15 +2,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97cgithub.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=github.com/dlclark/regexp2 v1.11.4 h1:rPYF9/LECdNymJufQKmri9gV604RvvABwgOA8un7yAo=github.com/dlclark/regexp2 v1.11.4/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=-github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=-github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=-github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=-github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=-github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=-github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=-github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=@@ -31,9 +24,5 @@ github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJgithub.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=golang.org/x/image v0.22.0 h1:UtK5yLUzilVrkjMAZAZ34DXGpASN8i8pj8g+O+yd10g=golang.org/x/image v0.22.0/go.mod h1:9hPFhljd4zZ1GNSIZJ49sqbp45GKK9t6w+iXvGqZUz4=-golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=-golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=-golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=-golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=diff --git a/docs/docs/core-concepts/plans.md b/docs/docs/core-concepts/plans.mdindex 94d08555..c6cd575a 100644--- a/docs/docs/core-concepts/plans.md+++ b/docs/docs/core-concepts/plans.md@@ -5,7 +5,7 @@ sidebar_label: Plans# Plans-A **plan** in Plandex is similar to a conversation in ChatGPT. It might only include a single prompt and model response that executes one small task, or it could represent a long back and forth with the model that generates dozens of files and builds a whole feature or an entire app.+A **plan** in Plandex is similar to a conversation in ChatGPT. It might only include a single prompt and model response that executes one small task, or it could represent a long back and forth with the model that generates dozens of files and builds a whole feature or an entire project.A plan includes:diff --git a/docs/docs/hosting/cloud.md b/docs/docs/hosting/cloud.mdindex c4578b42..d398e95e 100644--- a/docs/docs/hosting/cloud.md+++ b/docs/docs/hosting/cloud.md@@ -25,7 +25,7 @@ Plandex Cloud has two billing modes:- Use your own OpenAI, OpenRouter.ai, or other OpenAI-compatible provider accounts.- Supply your own API keys.-- Start with a free trial up to 10 plans and 15 model responses per plan.+- Start with a free trial up to 10 plans and 20 model responses per plan.- After the trial, you can upgrade to a paid plan for $20 per month.## Billing Settingsdiff --git a/test/evals/promptfoo-poc/build/assets/build/changes.md b/test/evals/promptfoo-poc/build/assets/build/changes.mdindex 4e06dca6..ba58aa06 100644--- a/test/evals/promptfoo-poc/build/assets/build/changes.md+++ b/test/evals/promptfoo-poc/build/assets/build/changes.md@@ -13,7 +13,7 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")@@ -58,7 +58,7 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/build/assets/build/post_build.go b/test/evals/promptfoo-poc/build/assets/build/post_build.goindex 4f855553..ef48f2f4 100644--- a/test/evals/promptfoo-poc/build/assets/build/post_build.go+++ b/test/evals/promptfoo-poc/build/assets/build/post_build.go@@ -10,7 +10,7 @@ pdx-9: "plandex/term"pdx-10: "strconv"pdx-11: "strings"pdx-12:-pdx-13: "github.com/plandex/plandex/shared"+pdx-13: "plandex-shared"pdx-14: "github.com/spf13/cobra"pdx-15: )pdx-16:diff --git a/test/evals/promptfoo-poc/build/assets/shared/pre_build.go b/test/evals/promptfoo-poc/build/assets/shared/pre_build.goindex c90eeb79..d80044b4 100644--- a/test/evals/promptfoo-poc/build/assets/shared/pre_build.go+++ b/test/evals/promptfoo-poc/build/assets/shared/pre_build.go@@ -8,7 +8,7 @@ import ("plandex/lib""plandex/term"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/fix/assets/removal/changes.md b/test/evals/promptfoo-poc/fix/assets/removal/changes.mdindex 4e06dca6..ba58aa06 100644--- a/test/evals/promptfoo-poc/fix/assets/removal/changes.md+++ b/test/evals/promptfoo-poc/fix/assets/removal/changes.md@@ -13,7 +13,7 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")@@ -58,7 +58,7 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/fix/assets/removal/post_build.go b/test/evals/promptfoo-poc/fix/assets/removal/post_build.goindex 4f855553..ef48f2f4 100644--- a/test/evals/promptfoo-poc/fix/assets/removal/post_build.go+++ b/test/evals/promptfoo-poc/fix/assets/removal/post_build.go@@ -10,7 +10,7 @@ pdx-9: "plandex/term"pdx-10: "strconv"pdx-11: "strings"pdx-12:-pdx-13: "github.com/plandex/plandex/shared"+pdx-13: "plandex-shared"pdx-14: "github.com/spf13/cobra"pdx-15: )pdx-16:diff --git a/test/evals/promptfoo-poc/fix/assets/shared/pre_build.go b/test/evals/promptfoo-poc/fix/assets/shared/pre_build.goindex c90eeb79..b9321bb7 100644--- a/test/evals/promptfoo-poc/fix/assets/shared/pre_build.go+++ b/test/evals/promptfoo-poc/fix/assets/shared/pre_build.go@@ -8,7 +8,6 @@ import ("plandex/lib""plandex/term"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/verify/assets/removal/changes.md b/test/evals/promptfoo-poc/verify/assets/removal/changes.mdindex 4e06dca6..ba58aa06 100644--- a/test/evals/promptfoo-poc/verify/assets/removal/changes.md+++ b/test/evals/promptfoo-poc/verify/assets/removal/changes.md@@ -13,7 +13,7 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")@@ -58,7 +58,7 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/verify/assets/removal/diff.txt b/test/evals/promptfoo-poc/verify/assets/removal/diff.txtindex 20745f62..707b5010 100644--- a/test/evals/promptfoo-poc/verify/assets/removal/diff.txt+++ b/test/evals/promptfoo-poc/verify/assets/removal/diff.txt@@ -9,7 +9,7 @@ index c90eeb7..e9da642 100644+ "strconv"+ "strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/verify/assets/removal/post_build.go b/test/evals/promptfoo-poc/verify/assets/removal/post_build.goindex e9da642e..0eec62dc 100644--- a/test/evals/promptfoo-poc/verify/assets/removal/post_build.go+++ b/test/evals/promptfoo-poc/verify/assets/removal/post_build.go@@ -10,7 +10,6 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/verify/assets/shared/pre_build.go b/test/evals/promptfoo-poc/verify/assets/shared/pre_build.goindex 7979a199..5a9e62c8 100644--- a/test/evals/promptfoo-poc/verify/assets/shared/pre_build.go+++ b/test/evals/promptfoo-poc/verify/assets/shared/pre_build.go@@ -8,7 +8,7 @@ pdx-7: "plandex/auth"pdx-8: "plandex/lib"pdx-9: "plandex/term"pdx-10:-pdx-11: "github.com/plandex/plandex/shared"+pdx-11: "plandex-shared"pdx-12: "github.com/spf13/cobra"pdx-13: )pdx-14:diff --git a/test/evals/promptfoo-poc/verify/assets/valid/changes.md b/test/evals/promptfoo-poc/verify/assets/valid/changes.mdindex 2703da18..ccb6256f 100644--- a/test/evals/promptfoo-poc/verify/assets/valid/changes.md+++ b/test/evals/promptfoo-poc/verify/assets/valid/changes.md@@ -13,7 +13,7 @@"strconv""strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/verify/assets/valid/diff.txt b/test/evals/promptfoo-poc/verify/assets/valid/diff.txtindex 6e6d5348..f95c8211 100644--- a/test/evals/promptfoo-poc/verify/assets/valid/diff.txt+++ b/test/evals/promptfoo-poc/verify/assets/valid/diff.txt@@ -9,7 +9,7 @@ index c90eeb7..90405e7 100644+ "strconv"+ "strings"- "github.com/plandex/plandex/shared"+ "plandex-shared""github.com/spf13/cobra")diff --git a/test/evals/promptfoo-poc/verify/assets/valid/post_build.go b/test/evals/promptfoo-poc/verify/assets/valid/post_build.goindex 90405e7c..3f7a14f2 100644--- a/test/evals/promptfoo-poc/verify/assets/valid/post_build.go+++ b/test/evals/promptfoo-poc/verify/assets/valid/post_build.go@@ -10,7 +10,6 @@ import ("strconv""strings"- "github.com/plandex/plandex/shared""github.com/spf13/cobra")