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
working on color fixes for light backgrounds
Dane Schneider9689938ea48f
diff --git a/app/cli/changes_tui/main_viewport.go b/app/cli/changes_tui/main_viewport.goindex a0ec5ea8..684e5be3 100644--- a/app/cli/changes_tui/main_viewport.go+++ b/app/cli/changes_tui/main_viewport.go@@ -141,7 +141,7 @@ func (m changesUIModel) renderScrollFooter() string {var footer stringif m.selectedNewFile() || m.selectedFullFile() {- footer = ` (j/k) scroll • (d/u) page • (g/G) start/end • (r)eject file changes`+ footer = ` (j/k) scroll • (d/u) page • (g/G) start/end • (r)eject file`} else {footer = ` (j/k) scroll`if m.oldScrollable() && m.newScrollable() {diff --git a/app/cli/changes_tui/view.go b/app/cli/changes_tui/view.goindex f07babe2..4fd9ea52 100644--- a/app/cli/changes_tui/view.go+++ b/app/cli/changes_tui/view.go@@ -218,7 +218,7 @@ func (m *changesUIModel) scrollReplacementIntoView(oldContent, newContent stringfunc (m changesUIModel) renderConfirmRejectFile() string {style := lipgloss.NewStyle().Padding(1).BorderStyle(lipgloss.NormalBorder()).BorderForeground(lipgloss.Color(borderColor)).Width(m.width - 2).Height(m.height - 2)- prompt := color.New(color.FgHiWhite, color.Bold).Sprintf("🧐 Are you sure you want to reject changes to ") ++ prompt := color.New(color.Bold).Sprintf("🧐 Are you sure you want to reject changes to ") +color.New(color.Bold, color.FgHiMagenta).Sprint(m.selectionInfo.currentPath) + "?\n\n" +color.New(color.FgHiCyan, color.Bold).Sprintf("(y)es | (n)o")diff --git a/app/cli/cmd/branches.go b/app/cli/cmd/branches.goindex e60df248..256bab33 100644--- a/app/cli/cmd/branches.go+++ b/app/cli/cmd/branches.go@@ -58,7 +58,7 @@ func branches(cmd *cobra.Command, args []string) {var name stringif b.Name == lib.CurrentBranch {- name = color.New(color.Bold, color.FgGreen).Sprint(b.Name) + color.New(color.FgWhite).Sprint(" 👈")+ name = color.New(color.Bold, color.FgGreen).Sprint(b.Name) + " 👈"} else {name = b.Name}@@ -79,8 +79,7 @@ func branches(cmd *cobra.Command, args []string) {}} else {style = []tablewriter.Colors{- {tablewriter.FgHiWhiteColor, tablewriter.Bold},- {tablewriter.FgHiWhiteColor},+ {tablewriter.Bold},}}diff --git a/app/cli/cmd/convo.go b/app/cli/cmd/convo.goindex f10cb377..47cfe034 100644--- a/app/cli/cmd/convo.go+++ b/app/cli/cmd/convo.go@@ -80,7 +80,7 @@ func convo(cmd *cobra.Command, args []string) {convo += mdif msg.Stopped {- convo += fmt.Sprintf(" 🛑 %s\n\n", color.New(color.Bold, color.FgHiWhite).Sprint(stoppedEarlyMsg))+ convo += fmt.Sprintf(" 🛑 %s\n\n", color.New(color.Bold).Sprint(stoppedEarlyMsg))}totalTokens += msg.Tokensdiff --git a/app/cli/cmd/ls.go b/app/cli/cmd/ls.goindex c8031940..0c5049ca 100644--- a/app/cli/cmd/ls.go+++ b/app/cli/cmd/ls.go@@ -60,12 +60,8 @@ func listContext(cmd *cobra.Command, args []string) {format.Time(context.UpdatedAt),}table.Rich(row, []tablewriter.Colors{- {tablewriter.FgHiWhiteColor, tablewriter.Bold},+ {tablewriter.Bold},{tablewriter.FgHiGreenColor, tablewriter.Bold},- {tablewriter.FgHiWhiteColor},- {tablewriter.FgHiWhiteColor},- {tablewriter.FgHiWhiteColor},- {tablewriter.FgHiWhiteColor},})}@@ -73,7 +69,7 @@ func listContext(cmd *cobra.Command, args []string) {tokensTbl := tablewriter.NewWriter(os.Stdout)tokensTbl.SetAutoWrapText(false)- tokensTbl.Append([]string{color.New(color.FgHiCyan, color.Bold).Sprintf("Total tokens →") + color.New(color.FgHiWhite, color.Bold).Sprintf(" %d 🪙", totalTokens)})+ tokensTbl.Append([]string{color.New(color.FgHiCyan, color.Bold).Sprintf("Total tokens →") + color.New(color.Bold).Sprintf(" %d 🪙", totalTokens)})tokensTbl.Render()diff --git a/app/cli/cmd/plans.go b/app/cli/cmd/plans.goindex 4628304b..82a8a668 100644--- a/app/cli/cmd/plans.go+++ b/app/cli/cmd/plans.go@@ -172,7 +172,7 @@ func plans(cmd *cobra.Command, args []string) {var name stringif p.Id == lib.CurrentPlanId {- name = color.New(color.Bold, color.FgHiGreen).Sprint(p.Name) + color.New(color.FgWhite).Sprint(" 👈")+ name = color.New(color.Bold, color.FgHiGreen).Sprint(p.Name) + fmt.Sprint(" 👈")} else {name = p.Name}@@ -197,8 +197,7 @@ func plans(cmd *cobra.Command, args []string) {}} else {style = []tablewriter.Colors{- {tablewriter.FgHiWhiteColor, tablewriter.Bold},- {tablewriter.FgHiWhiteColor},+ {tablewriter.Bold},}}@@ -270,8 +269,8 @@ func plans(cmd *cobra.Command, args []string) {if len(parentProjectIdsWithPaths) > 0 {fmt.Println()- color.New(color.Bold, color.FgHiWhite).Println("Plans in parent directories")- color.New(color.FgWhite).Println("cd into a directory to work on a plan in that directory")+ color.New(color.Bold).Println("Plans in parent directories")+ fmt.Println("cd into a directory to work on a plan in that directory")parentTree := treeprint.NewWithRoot("~")for i := len(parentProjectIdsWithPaths) - 1; i >= 0; i-- {@@ -290,8 +289,8 @@ func plans(cmd *cobra.Command, args []string) {if len(childProjectIdsWithPaths) > 0 {fmt.Println()- color.New(color.Bold, color.FgHiWhite).Println("Plans in child directories")- color.New(color.FgWhite).Println("cd into a directory to work on a plan in that directory")+ color.New(color.Bold).Println("Plans in child directories")+ fmt.Println("cd into a directory to work on a plan in that directory")childTree := treeprint.New()for _, p := range childProjectIdsWithPaths {rel, err := filepath.Rel(fs.Cwd, p[0])diff --git a/app/cli/cmd/ps.go b/app/cli/cmd/ps.goindex e553f5d5..bdf8f5f9 100644--- a/app/cli/cmd/ps.go+++ b/app/cli/cmd/ps.go@@ -83,8 +83,7 @@ func ps(cmd *cobra.Command, args []string) {}} else {style = []tablewriter.Colors{- {tablewriter.FgHiWhiteColor, tablewriter.Bold},- {tablewriter.FgHiWhiteColor},+ {tablewriter.Bold},}}diff --git a/releases/cli/versions/0.7.2.md b/releases/cli/versions/0.7.2.mdnew file mode 100644index 00000000..f6cf7dfd--- /dev/null+++ b/releases/cli/versions/0.7.2.md@@ -0,0 +1 @@+- PLANDEX_SKIP_UPGRADE environment variable can be used to disable upgrades