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

Method sessionMeta

internal/computerapi/service.go:214–219  ·  view source on GitHub ↗
(sessionID string)

Source from the content-addressed store, hash-verified

212}
213
214func (s Service) sessionMeta(sessionID string) (SessionMeta, error) {
215 var meta SessionMeta
216 err := s.DB.QueryRow(`SELECT run_id, COALESCE(container_id, ''), workspace_host_path FROM sessions WHERE id = ?`, sessionID).
217 Scan(&meta.RunID, &meta.ContainerID, &meta.WorkspacePath)
218 return meta, err
219}
220
221func (s Service) workspacePath(workspaceRoot, requested string) (string, error) {
222 trimmed := strings.TrimPrefix(requested, "/workspace")

Callers 5

ReadFileMethod · 0.95
WriteFileMethod · 0.95
SearchMethod · 0.95
ExportArtifactMethod · 0.95
CallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected