app: add loopback multi-project registry
This commit is contained in:
@@ -6,6 +6,7 @@ import "github.com/hjbdev/patterm/internal/scratchpad"
|
||||
// ANSI output; this model is the serializable shape a client can draw locally.
|
||||
type chromeModel struct {
|
||||
ProjectKey string `json:"project_key"`
|
||||
ProjectName string `json:"project_name,omitempty"`
|
||||
FocusedID string `json:"focused_id,omitempty"`
|
||||
FocusedPad string `json:"focused_pad,omitempty"`
|
||||
ActiveAgentID string `json:"active_agent_id,omitempty"`
|
||||
@@ -41,6 +42,7 @@ func buildChromeModel(projectKey string, view ClientView, children []*Child, pad
|
||||
}
|
||||
model := chromeModel{
|
||||
ProjectKey: projectKey,
|
||||
ProjectName: view.ProjectName,
|
||||
FocusedID: view.FocusedID,
|
||||
FocusedPad: view.FocusedPad,
|
||||
ActiveAgentID: active,
|
||||
|
||||
Reference in New Issue
Block a user