🎨 Import groups of the files split on this branch: std, mm, third party
splitgo + goimports left the standard library and mm/... in one group; the repository's files keep them apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f5f2d92 parent: 7944710 modified
banner_wiring.go +4 -3 | @@ -4,6 +4,10 @@ import ( | ||
| 4 | 4 | "bytes" |
| 5 | 5 | "context" |
| 6 | 6 | "fmt" |
| 7 | + "os" | |
| 8 | + "path/filepath" | |
| 9 | + "strings" | |
| 10 | + | |
| 7 | 11 | "mm/internal/command" |
| 8 | 12 | "mm/internal/config" |
| 9 | 13 | "mm/internal/engine" |
| @@ -12,9 +16,6 @@ import ( | ||
| 12 | 16 | "mm/internal/tui" |
| 13 | 17 | "mm/internal/ui" |
| 14 | 18 | "mm/internal/version" |
| 15 | - "os" | |
| 16 | - "path/filepath" | |
| 17 | - "strings" | |
| 18 | 19 | ) |
| 19 | 20 | |
| 20 | 21 | // printBanner probes the server and prints the warnings and the one-line |
| @@ -4,6 +4,10 @@ import ( | |||
| 4 | "bytes" | 4 | "bytes" |
| 5 | "context" | 5 | "context" |
| 6 | "fmt" | 6 | "fmt" |
| 7 | + "os" | ||
| 8 | + "path/filepath" | ||
| 9 | + "strings" | ||
| 10 | + | ||
| 7 | "mm/internal/command" | 11 | "mm/internal/command" |
| 8 | "mm/internal/config" | 12 | "mm/internal/config" |
| 9 | "mm/internal/engine" | 13 | "mm/internal/engine" |
| @@ -12,9 +16,6 @@ import ( | |||
| 12 | "mm/internal/tui" | 16 | "mm/internal/tui" |
| 13 | "mm/internal/ui" | 17 | "mm/internal/ui" |
| 14 | "mm/internal/version" | 18 | "mm/internal/version" |
| 15 | - "os" | ||
| 16 | - "path/filepath" | ||
| 17 | - "strings" | ||
| 18 | ) | 19 | ) |
| 19 | 20 | ||
| 20 | // printBanner probes the server and prints the warnings and the one-line | 21 | // printBanner probes the server and prints the warnings and the one-line |
modified
internal/acp/clienttools_call.go +2 -1 | @@ -5,12 +5,13 @@ import ( | ||
| 5 | 5 | "encoding/json" |
| 6 | 6 | "errors" |
| 7 | 7 | "fmt" |
| 8 | + "strings" | |
| 9 | + | |
| 8 | 10 | "mm/internal/config" |
| 9 | 11 | "mm/internal/consent" |
| 10 | 12 | "mm/internal/detector" |
| 11 | 13 | "mm/internal/mcp" |
| 12 | 14 | "mm/internal/ui" |
| 13 | - "strings" | |
| 14 | 15 | |
| 15 | 16 | sdk "github.com/coder/acp-go-sdk" |
| 16 | 17 | "github.com/firebase/genkit/go/ai" |
| @@ -5,12 +5,13 @@ import ( | |||
| 5 | "encoding/json" | 5 | "encoding/json" |
| 6 | "errors" | 6 | "errors" |
| 7 | "fmt" | 7 | "fmt" |
| 8 | + "strings" | ||
| 9 | + | ||
| 8 | "mm/internal/config" | 10 | "mm/internal/config" |
| 9 | "mm/internal/consent" | 11 | "mm/internal/consent" |
| 10 | "mm/internal/detector" | 12 | "mm/internal/detector" |
| 11 | "mm/internal/mcp" | 13 | "mm/internal/mcp" |
| 12 | "mm/internal/ui" | 14 | "mm/internal/ui" |
| 13 | - "strings" | ||
| 14 | 15 | ||
| 15 | sdk "github.com/coder/acp-go-sdk" | 16 | sdk "github.com/coder/acp-go-sdk" |
| 16 | "github.com/firebase/genkit/go/ai" | 17 | "github.com/firebase/genkit/go/ai" |
modified
internal/agent/history.go +1 -0 | @@ -3,6 +3,7 @@ package agent | ||
| 3 | 3 | import ( |
| 4 | 4 | "context" |
| 5 | 5 | "fmt" |
| 6 | + | |
| 6 | 7 | "mm/internal/agentsmd" |
| 7 | 8 | "mm/internal/clipboard" |
| 8 | 9 | "mm/internal/command" |
| @@ -3,6 +3,7 @@ package agent | |||
| 3 | import ( | 3 | import ( |
| 4 | "context" | 4 | "context" |
| 5 | "fmt" | 5 | "fmt" |
| 6 | + | ||
| 6 | "mm/internal/agentsmd" | 7 | "mm/internal/agentsmd" |
| 7 | "mm/internal/clipboard" | 8 | "mm/internal/clipboard" |
| 8 | "mm/internal/command" | 9 | "mm/internal/command" |
modified
internal/agent/recap.go +2 -1 | @@ -3,10 +3,11 @@ package agent | ||
| 3 | 3 | import ( |
| 4 | 4 | "fmt" |
| 5 | 5 | "io" |
| 6 | + "strings" | |
| 7 | + | |
| 6 | 8 | "mm/internal/config" |
| 7 | 9 | "mm/internal/hooks" |
| 8 | 10 | "mm/internal/spinner" |
| 9 | - "strings" | |
| 10 | 11 | ) |
| 11 | 12 | |
| 12 | 13 | // printCommands recaps the commands of the turn, in green. |
| @@ -3,10 +3,11 @@ package agent | |||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | "io" | 5 | "io" |
| 6 | + "strings" | ||
| 7 | + | ||
| 6 | "mm/internal/config" | 8 | "mm/internal/config" |
| 7 | "mm/internal/hooks" | 9 | "mm/internal/hooks" |
| 8 | "mm/internal/spinner" | 10 | "mm/internal/spinner" |
| 9 | - "strings" | ||
| 10 | ) | 11 | ) |
| 11 | 12 | ||
| 12 | // printCommands recaps the commands of the turn, in green. | 13 | // printCommands recaps the commands of the turn, in green. |
modified
internal/agentinit/base.go +2 -1 | @@ -2,9 +2,10 @@ package agentinit | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "context" |
| 5 | + "strings" | |
| 6 | + | |
| 5 | 7 | "mm/internal/config" |
| 6 | 8 | "mm/internal/engine" |
| 7 | - "strings" | |
| 8 | 9 | ) |
| 9 | 10 | |
| 10 | 11 | // resolveBase is the server's address the wizard lists models from: the |
| @@ -2,9 +2,10 @@ package agentinit | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "context" | 4 | "context" |
| 5 | + "strings" | ||
| 6 | + | ||
| 5 | "mm/internal/config" | 7 | "mm/internal/config" |
| 6 | "mm/internal/engine" | 8 | "mm/internal/engine" |
| 7 | - "strings" | ||
| 8 | ) | 9 | ) |
| 9 | 10 | ||
| 10 | // resolveBase is the server's address the wizard lists models from: the | 11 | // resolveBase is the server's address the wizard lists models from: the |
modified
internal/agentinit/flow_answers.go +2 -1 | @@ -2,9 +2,10 @@ package agentinit | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "fmt" |
| 5 | - "mm/internal/config" | |
| 6 | 5 | "path/filepath" |
| 7 | 6 | "strings" |
| 7 | + | |
| 8 | + "mm/internal/config" | |
| 8 | 9 | ) |
| 9 | 10 | |
| 10 | 11 | // checkLayout refuses a Project layout whose file is not in .mm/: its paths |
| @@ -2,9 +2,10 @@ package agentinit | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | - "mm/internal/config" | ||
| 6 | "path/filepath" | 5 | "path/filepath" |
| 7 | "strings" | 6 | "strings" |
| 7 | + | ||
| 8 | + "mm/internal/config" | ||
| 8 | ) | 9 | ) |
| 9 | 10 | ||
| 10 | // checkLayout refuses a Project layout whose file is not in .mm/: its paths | 11 | // checkLayout refuses a Project layout whose file is not in .mm/: its paths |
modified
internal/agentinit/flow_steps.go +2 -1 | @@ -2,8 +2,9 @@ package agentinit | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "fmt" |
| 5 | - "mm/internal/elicit" | |
| 6 | 5 | "path/filepath" |
| 6 | + | |
| 7 | + "mm/internal/elicit" | |
| 7 | 8 | ) |
| 8 | 9 | |
| 9 | 10 | // Step builds one question as it stands now: its options may depend on the |
| @@ -2,8 +2,9 @@ package agentinit | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | - "mm/internal/elicit" | ||
| 6 | "path/filepath" | 5 | "path/filepath" |
| 6 | + | ||
| 7 | + "mm/internal/elicit" | ||
| 7 | ) | 8 | ) |
| 8 | 9 | ||
| 9 | // Step builds one question as it stands now: its options may depend on the | 10 | // Step builds one question as it stands now: its options may depend on the |
modified
internal/agentinit/linewizard.go +2 -1 | @@ -4,8 +4,9 @@ import ( | ||
| 4 | 4 | "bufio" |
| 5 | 5 | "fmt" |
| 6 | 6 | "io" |
| 7 | - "mm/internal/elicit" | |
| 8 | 7 | "strings" |
| 8 | + | |
| 9 | + "mm/internal/elicit" | |
| 9 | 10 | ) |
| 10 | 11 | |
| 11 | 12 | // lineWizard asks the questions one per line (internal/elicit's format). |
| @@ -4,8 +4,9 @@ import ( | |||
| 4 | "bufio" | 4 | "bufio" |
| 5 | "fmt" | 5 | "fmt" |
| 6 | "io" | 6 | "io" |
| 7 | - "mm/internal/elicit" | ||
| 8 | "strings" | 7 | "strings" |
| 8 | + | ||
| 9 | + "mm/internal/elicit" | ||
| 9 | ) | 10 | ) |
| 10 | 11 | ||
| 11 | // lineWizard asks the questions one per line (internal/elicit's format). | 12 | // lineWizard asks the questions one per line (internal/elicit's format). |
modified
internal/agentinit/render_server.go +2 -1 | @@ -2,10 +2,11 @@ package agentinit | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "fmt" |
| 5 | - "mm/internal/engine" | |
| 6 | 5 | "net" |
| 7 | 6 | "net/url" |
| 8 | 7 | "strings" |
| 8 | + | |
| 9 | + "mm/internal/engine" | |
| 9 | 10 | ) |
| 10 | 11 | |
| 11 | 12 | // coupledTo is the comment above the model line: the settings chosen for |
| @@ -2,10 +2,11 @@ package agentinit | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | - "mm/internal/engine" | ||
| 6 | "net" | 5 | "net" |
| 7 | "net/url" | 6 | "net/url" |
| 8 | "strings" | 7 | "strings" |
| 8 | + | ||
| 9 | + "mm/internal/engine" | ||
| 9 | ) | 10 | ) |
| 10 | 11 | ||
| 11 | // coupledTo is the comment above the model line: the settings chosen for | 12 | // coupledTo is the comment above the model line: the settings chosen for |
modified
internal/agentinit/write.go +2 -1 | @@ -5,12 +5,13 @@ import ( | ||
| 5 | 5 | "errors" |
| 6 | 6 | "fmt" |
| 7 | 7 | "io" |
| 8 | - "mm/internal/config" | |
| 9 | 8 | "os" |
| 10 | 9 | "os/exec" |
| 11 | 10 | "path/filepath" |
| 12 | 11 | "strings" |
| 13 | 12 | "time" |
| 13 | + | |
| 14 | + "mm/internal/config" | |
| 14 | 15 | ) |
| 15 | 16 | |
| 16 | 17 | // WriteFile writes the file the answered flow describes — or prints it, for |
| @@ -5,12 +5,13 @@ import ( | |||
| 5 | "errors" | 5 | "errors" |
| 6 | "fmt" | 6 | "fmt" |
| 7 | "io" | 7 | "io" |
| 8 | - "mm/internal/config" | ||
| 9 | "os" | 8 | "os" |
| 10 | "os/exec" | 9 | "os/exec" |
| 11 | "path/filepath" | 10 | "path/filepath" |
| 12 | "strings" | 11 | "strings" |
| 13 | "time" | 12 | "time" |
| 13 | + | ||
| 14 | + "mm/internal/config" | ||
| 14 | ) | 15 | ) |
| 15 | 16 | ||
| 16 | // WriteFile writes the file the answered flow describes — or prints it, for | 17 | // WriteFile writes the file the answered flow describes — or prints it, for |
modified
internal/engine/summarize.go +2 -1 | @@ -4,10 +4,11 @@ import ( | ||
| 4 | 4 | "context" |
| 5 | 5 | "fmt" |
| 6 | 6 | "maps" |
| 7 | - "mm/internal/config" | |
| 8 | 7 | "strings" |
| 9 | 8 | "sync/atomic" |
| 10 | 9 | |
| 10 | + "mm/internal/config" | |
| 11 | + | |
| 11 | 12 | "github.com/firebase/genkit/go/ai" |
| 12 | 13 | "github.com/firebase/genkit/go/genkit" |
| 13 | 14 | ) |
| @@ -4,10 +4,11 @@ import ( | |||
| 4 | "context" | 4 | "context" |
| 5 | "fmt" | 5 | "fmt" |
| 6 | "maps" | 6 | "maps" |
| 7 | - "mm/internal/config" | ||
| 8 | "strings" | 7 | "strings" |
| 9 | "sync/atomic" | 8 | "sync/atomic" |
| 10 | 9 | ||
| 10 | + "mm/internal/config" | ||
| 11 | + | ||
| 11 | "github.com/firebase/genkit/go/ai" | 12 | "github.com/firebase/genkit/go/ai" |
| 12 | "github.com/firebase/genkit/go/genkit" | 13 | "github.com/firebase/genkit/go/genkit" |
| 13 | ) | 14 | ) |
modified
internal/mcp/names.go +2 -1 | @@ -2,8 +2,9 @@ package mcp | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "fmt" |
| 5 | - "mm/internal/config" | |
| 6 | 5 | "strings" |
| 6 | + | |
| 7 | + "mm/internal/config" | |
| 7 | 8 | ) |
| 8 | 9 | |
| 9 | 10 | // BuiltinTools is the list of mini-me's built-in tool names that must not be collided with. |
| @@ -2,8 +2,9 @@ package mcp | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | - "mm/internal/config" | ||
| 6 | "strings" | 5 | "strings" |
| 6 | + | ||
| 7 | + "mm/internal/config" | ||
| 7 | ) | 8 | ) |
| 8 | 9 | ||
| 9 | // BuiltinTools is the list of mini-me's built-in tool names that must not be collided with. | 10 | // BuiltinTools is the list of mini-me's built-in tool names that must not be collided with. |
modified
internal/tui/initwin_draw.go +2 -1 | @@ -2,9 +2,10 @@ package tui | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "fmt" |
| 5 | + "strings" | |
| 6 | + | |
| 5 | 7 | "mm/internal/agentinit" |
| 6 | 8 | "mm/internal/elicit" |
| 7 | - "strings" | |
| 8 | 9 | |
| 9 | 10 | "github.com/gdamore/tcell/v2" |
| 10 | 11 | ) |
| @@ -2,9 +2,10 @@ package tui | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | + "strings" | ||
| 6 | + | ||
| 5 | "mm/internal/agentinit" | 7 | "mm/internal/agentinit" |
| 6 | "mm/internal/elicit" | 8 | "mm/internal/elicit" |
| 7 | - "strings" | ||
| 8 | 9 | ||
| 9 | "github.com/gdamore/tcell/v2" | 10 | "github.com/gdamore/tcell/v2" |
| 10 | ) | 11 | ) |
modified
internal/tui/picker_choices.go +4 -3 | @@ -1,13 +1,14 @@ | ||
| 1 | 1 | package tui |
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | - "mm/internal/command" | |
| 5 | - "mm/internal/metaprompt" | |
| 6 | - "mm/internal/skills" | |
| 7 | 4 | "os" |
| 8 | 5 | "path/filepath" |
| 9 | 6 | "sort" |
| 10 | 7 | "strings" |
| 8 | + | |
| 9 | + "mm/internal/command" | |
| 10 | + "mm/internal/metaprompt" | |
| 11 | + "mm/internal/skills" | |
| 11 | 12 | ) |
| 12 | 13 | |
| 13 | 14 | // choices returns what the popup offers, or nothing when it must stay shut. |
| @@ -1,13 +1,14 @@ | |||
| 1 | package tui | 1 | package tui |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | - "mm/internal/command" | ||
| 5 | - "mm/internal/metaprompt" | ||
| 6 | - "mm/internal/skills" | ||
| 7 | "os" | 4 | "os" |
| 8 | "path/filepath" | 5 | "path/filepath" |
| 9 | "sort" | 6 | "sort" |
| 10 | "strings" | 7 | "strings" |
| 8 | + | ||
| 9 | + "mm/internal/command" | ||
| 10 | + "mm/internal/metaprompt" | ||
| 11 | + "mm/internal/skills" | ||
| 11 | ) | 12 | ) |
| 12 | 13 | ||
| 13 | // choices returns what the popup offers, or nothing when it must stay shut. | 14 | // choices returns what the popup offers, or nothing when it must stay shut. |
modified
internal/tui/question_draw.go +1 -0 | @@ -2,6 +2,7 @@ package tui | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "fmt" |
| 5 | + | |
| 5 | 6 | "mm/internal/elicit" |
| 6 | 7 | ) |
| 7 | 8 | |
| @@ -2,6 +2,7 @@ package tui | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | 4 | "fmt" |
| 5 | + | ||
| 5 | "mm/internal/elicit" | 6 | "mm/internal/elicit" |
| 6 | ) | 7 | ) |
| 7 | 8 | ||
modified
internal/tui/question_runner.go +1 -0 | @@ -2,6 +2,7 @@ package tui | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "context" |
| 5 | + | |
| 5 | 6 | "mm/internal/elicit" |
| 6 | 7 | ) |
| 7 | 8 | |
| @@ -2,6 +2,7 @@ package tui | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "context" | 4 | "context" |
| 5 | + | ||
| 5 | "mm/internal/elicit" | 6 | "mm/internal/elicit" |
| 6 | ) | 7 | ) |
| 7 | 8 | ||
modified
internal/tui/turn_compact.go +1 -0 | @@ -3,6 +3,7 @@ package tui | ||
| 3 | 3 | import ( |
| 4 | 4 | "context" |
| 5 | 5 | "fmt" |
| 6 | + | |
| 6 | 7 | "mm/internal/compact" |
| 7 | 8 | "mm/internal/config" |
| 8 | 9 | |
| @@ -3,6 +3,7 @@ package tui | |||
| 3 | import ( | 3 | import ( |
| 4 | "context" | 4 | "context" |
| 5 | "fmt" | 5 | "fmt" |
| 6 | + | ||
| 6 | "mm/internal/compact" | 7 | "mm/internal/compact" |
| 7 | "mm/internal/config" | 8 | "mm/internal/config" |
| 8 | 9 | ||
modified
internal/tui/turn_permissions.go +1 -0 | @@ -2,6 +2,7 @@ package tui | ||
| 2 | 2 | |
| 3 | 3 | import ( |
| 4 | 4 | "context" |
| 5 | + | |
| 5 | 6 | "mm/internal/ui" |
| 6 | 7 | ) |
| 7 | 8 | |
| @@ -2,6 +2,7 @@ package tui | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "context" | 4 | "context" |
| 5 | + | ||
| 5 | "mm/internal/ui" | 6 | "mm/internal/ui" |
| 6 | ) | 7 | ) |
| 7 | 8 | ||
modified
tools_wiring.go +3 -2 | @@ -3,6 +3,9 @@ package main | ||
| 3 | 3 | import ( |
| 4 | 4 | "context" |
| 5 | 5 | "fmt" |
| 6 | + "os" | |
| 7 | + "slices" | |
| 8 | + | |
| 6 | 9 | "mm/internal/config" |
| 7 | 10 | "mm/internal/detector" |
| 8 | 11 | "mm/internal/engine" |
| @@ -12,8 +15,6 @@ import ( | ||
| 12 | 15 | "mm/internal/tools" |
| 13 | 16 | "mm/internal/version" |
| 14 | 17 | "mm/internal/webmd" |
| 15 | - "os" | |
| 16 | - "slices" | |
| 17 | 18 | |
| 18 | 19 | "github.com/firebase/genkit/go/ai" |
| 19 | 20 | ) |
| @@ -3,6 +3,9 @@ package main | |||
| 3 | import ( | 3 | import ( |
| 4 | "context" | 4 | "context" |
| 5 | "fmt" | 5 | "fmt" |
| 6 | + "os" | ||
| 7 | + "slices" | ||
| 8 | + | ||
| 6 | "mm/internal/config" | 9 | "mm/internal/config" |
| 7 | "mm/internal/detector" | 10 | "mm/internal/detector" |
| 8 | "mm/internal/engine" | 11 | "mm/internal/engine" |
| @@ -12,8 +15,6 @@ import ( | |||
| 12 | "mm/internal/tools" | 15 | "mm/internal/tools" |
| 13 | "mm/internal/version" | 16 | "mm/internal/version" |
| 14 | "mm/internal/webmd" | 17 | "mm/internal/webmd" |
| 15 | - "os" | ||
| 16 | - "slices" | ||
| 17 | 18 | ||
| 18 | "github.com/firebase/genkit/go/ai" | 19 | "github.com/firebase/genkit/go/ai" |
| 19 | ) | 20 | ) |