app: add loopback multi-project registry

This commit is contained in:
2026-05-27 13:40:59 +01:00
parent 08c7405c79
commit 80a14502c4
9 changed files with 798 additions and 125 deletions

View File

@@ -188,6 +188,9 @@ func RunStdioProxy(socket, identity string) error {
// "<token>"} + newline. Real protocol handshake is a later
// milestone.
greeting := map[string]string{"patterm_identity": identity}
if key := os.Getenv("PATTERM_PROJECT_KEY"); key != "" {
greeting["project_key"] = key
}
gb, _ := json.Marshal(greeting)
gb = append(gb, '\n')
if _, err := conn.Write(gb); err != nil {