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

Function toolSourcePayload

internal/api/core/tools.go:352–363  ·  view source on GitHub ↗

toolSourcePayload carries provenance fields needed for operator audits.

(source toolspkg.SourceRef)

Source from the content-addressed store, hash-verified

350
351// toolSourcePayload carries provenance fields needed for operator audits.
352func toolSourcePayload(source toolspkg.SourceRef) contract.ToolSourceRefPayload {
353 return contract.ToolSourceRefPayload{
354 Kind: source.Kind,
355 Owner: source.Owner,
356 RawServerName: source.RawServerName,
357 RawToolName: source.RawToolName,
358 ResourceID: source.ResourceID,
359 ResourceVersion: source.ResourceVersion,
360 WorkspaceID: source.WorkspaceID,
361 Scope: source.Scope,
362 }
363}
364
365// toolAvailabilityPayload keeps availability reasons stable across transports.
366func toolAvailabilityPayload(availability toolspkg.Availability) contract.ToolAvailabilityPayload {

Callers 1

toolDescriptorPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected