MCPcopy Create free account
hub / github.com/compozy/agh / sessionScopedPath

Method sessionScopedPath

internal/cli/client.go:2730–2741  ·  view source on GitHub ↗
(ctx context.Context, id string, suffix string)

Source from the content-addressed store, hash-verified

2728}
2729
2730func (c *unixSocketClient) sessionScopedPath(ctx context.Context, id string, suffix string) (string, error) {
2731 sessionID, err := requireNetworkPathValue("session_id", id)
2732 if err != nil {
2733 return "", err
2734 }
2735 workspaceRef, err := c.sessionWorkspaceRef(ctx, sessionID)
2736 if err != nil {
2737 return "", err
2738 }
2739 return "/api/workspaces/" + url.PathEscape(workspaceRef) + "/sessions/" +
2740 url.PathEscape(sessionID) + suffix, nil
2741}
2742
2743func (c *unixSocketClient) sessionWorkspaceRef(ctx context.Context, sessionID string) (string, error) {
2744 sessions, err := c.ListSessions(ctx, SessionListQuery{})

Callers 15

GetSessionMethod · 0.95
GetSessionHealthMethod · 0.95
GetSessionStatusMethod · 0.95
InspectSessionMethod · 0.95
RefreshSessionSoulMethod · 0.95
StopSessionMethod · 0.95
DeleteSessionMethod · 0.95
ResumeSessionMethod · 0.95
SessionRecapMethod · 0.95
RepairSessionMethod · 0.95
ApproveSessionMethod · 0.95
SendSessionPromptMethod · 0.95

Calls 2

sessionWorkspaceRefMethod · 0.95
requireNetworkPathValueFunction · 0.85

Tested by

no test coverage detected