Board workspace with real panels, tabs and theme; Nerd Font declared for all three machines

This commit is contained in:
Sam
2026-11-10 13:45:33 +11:00
parent 5b829000ae
commit 1bfb9b05ed
17 changed files with 1424 additions and 15 deletions

View File

@@ -15,13 +15,19 @@ import (
"paperclip-harness/tui/paperclip"
)
// defaultAgent is Builder, the agent this project assigns work to.
const defaultAgent = "403de1f7-645c-4d35-bc7e-19b01d77bacc"
func main() {
screen := flag.String("screen", "tree", "which screen to run: tree, reply, new or log")
agent := flag.String("agent", "403de1f7-645c-4d35-bc7e-19b01d77bacc", "agent id to assign to, default Builder")
screen := flag.String("screen", "board", "which screen to run: board, tree, reply, new or log")
folder := flag.String("folder", "", "project folder, for the board screen (defaults to the current directory)")
light := flag.String("theme", "", "colour variant: dark, light, or empty to follow the terminal")
agent := flag.String("agent", defaultAgent, "agent id to assign to, default Builder")
project := flag.String("project", "", "project id or url key, for the tree screen")
issue := flag.String("issue", "", "task id or identifier such as AUD-160, for the reply screen")
dump := flag.Bool("dump", false, "print the tree as plain text and exit (no full-screen interface)")
flag.Parse()
choosePalette(*light)
client, err := paperclip.New()
if err != nil {
@@ -34,6 +40,18 @@ func main() {
var m tea.Model
switch *screen {
case "board":
proj, err := client.ResolveProject(*project)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
dir := *folder
if dir == "" {
dir, _ = os.Getwd()
}
m = newBoardModel(client, proj, dir)
case "tree":
proj, err := client.ResolveProject(*project)
if err != nil {