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

Function nativeFanOutDesignationIdempotencyKey

internal/daemon/native_tools.go:3315–3327  ·  view source on GitHub ↗
(
	requestKey string,
	designation contract.TaskFanOutRunDesignationRequest,
	index int,
)

Source from the content-addressed store, hash-verified

3313}
3314
3315func nativeFanOutDesignationIdempotencyKey(
3316 requestKey string,
3317 designation contract.TaskFanOutRunDesignationRequest,
3318 index int,
3319) string {
3320 if key := strings.TrimSpace(designation.IdempotencyKey); key != "" {
3321 return key
3322 }
3323 if key := strings.TrimSpace(requestKey); key != "" {
3324 return fmt.Sprintf("%s:%d", key, index)
3325 }
3326 return ""
3327}
3328
3329func nativeFanOutDesignationRollupJSON(runs []taskpkg.Run) json.RawMessage {
3330 runIDs := make([]string, 0, len(runs))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected