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

Method handleAutomationJobsGet

internal/extension/host_api.go:1437–1452  ·  view source on GitHub ↗
(ctx context.Context, raw json.RawMessage)

Source from the content-addressed store, hash-verified

1435}
1436
1437func (h *HostAPIHandler) handleAutomationJobsGet(ctx context.Context, raw json.RawMessage) (any, error) {
1438 automation, err := h.automationManager()
1439 if err != nil {
1440 return nil, err
1441 }
1442
1443 var params hostAPIAutomationTargetParams
1444 if err := decodeHostAPIParams(raw, &params); err != nil {
1445 return nil, err
1446 }
1447 if strings.TrimSpace(params.ID) == "" {
1448 return nil, invalidParamsRPCError(errors.New("id is required"))
1449 }
1450
1451 return automation.GetJob(ctx, params.ID)
1452}
1453
1454func (h *HostAPIHandler) handleAutomationJobsCreate(ctx context.Context, raw json.RawMessage) (any, error) {
1455 automation, err := h.automationManager()

Callers

nothing calls this directly

Calls 4

automationManagerMethod · 0.95
decodeHostAPIParamsFunction · 0.85
invalidParamsRPCErrorFunction · 0.85
GetJobMethod · 0.65

Tested by

no test coverage detected