MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / RunDaemonCLI

Function RunDaemonCLI

backend/daemon.go:47–61  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

45 if snapshot, ok := payload.(*luminateam.Snapshot); ok && snapshot != nil {
46 return snapshot.TeamSessionID
47 }
48 raw, err := json.Marshal(payload)
49 if err != nil {
50 return ""
51 }
52 var values map[string]any
53 if json.Unmarshal(raw, &values) != nil {
54 return ""
55 }
56 for _, key := range []string{"team_session_id", "session_id", "id"} {
57 if value, _ := values[key].(string); strings.TrimSpace(value) != "" {
58 return value
59 }
60 }
61 return ""
62}
63
64func durableTeamEventType(eventType string) string {

Callers 1

runFunction · 0.92

Calls 4

GetConfigFunction · 0.92
ServeFunction · 0.85
DefaultEndpointPathFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected