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

Function cloneRawJSON

internal/task/manager.go:4139–4146  ·  view source on GitHub ↗
(raw json.RawMessage)

Source from the content-addressed store, hash-verified

4137}
4138
4139func cloneRawJSON(raw json.RawMessage) json.RawMessage {
4140 if len(raw) == 0 {
4141 return nil
4142 }
4143 cloned := make(json.RawMessage, len(raw))
4144 copy(cloned, raw)
4145 return cloned
4146}
4147
4148func sameRawJSON(left json.RawMessage, right json.RawMessage) bool {
4149 return bytes.Equal(normalizeRawJSON(left), normalizeRawJSON(right))

Callers 15

RecordRunReviewMethod · 0.70
taskBlockFromRequestMethod · 0.70
dispatchTaskBlockedMethod · 0.70
dispatchTaskUnblockedMethod · 0.70
CompleteRunLeaseMethod · 0.70
RetryTaskRunMethod · 0.70
RecoverTaskRunMethod · 0.70
cloneTaskFunction · 0.70
cloneTaskBlockFunction · 0.70
cloneTaskRunFunction · 0.70
cloneTaskEventFunction · 0.70
ForceFailRunMethod · 0.70

Calls

no outgoing calls

Tested by 8

RecordRunReviewMethod · 0.56
CompleteRunLeaseMethod · 0.56
RetryTaskRunMethod · 0.56
RecoverTaskRunMethod · 0.56
cloneTaskFunction · 0.56
cloneTaskBlockFunction · 0.56
cloneTaskRunFunction · 0.56
cloneTaskEventFunction · 0.56