MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / inspectSession

Function inspectSession

internal/cli/session_cmd.go:171–185  ·  view source on GitHub ↗
(dataDir, daemonURL, sessionID string)

Source from the content-addressed store, hash-verified

169}
170
171func inspectSession(dataDir, daemonURL, sessionID string) (control.SessionInfo, error) {
172 if client, ok := daemonClient(daemonURL); ok {
173 return client.InspectSession(sessionID)
174 }
175 paths, err := store.Init(dataDir)
176 if err != nil {
177 return control.SessionInfo{}, err
178 }
179 db, err := store.Open(paths)
180 if err != nil {
181 return control.SessionInfo{}, err
182 }
183 defer db.Close()
184 return control.Service{DB: db, Paths: paths}.InspectSession(sessionID)
185}

Callers 1

sessionCmdFunction · 0.85

Calls 5

InitFunction · 0.92
OpenFunction · 0.92
daemonClientFunction · 0.85
InspectSessionMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected