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

Function nativeFanOutDesignationRollupJSON

internal/daemon/native_tools.go:3329–3344  ·  view source on GitHub ↗
(runs []taskpkg.Run)

Source from the content-addressed store, hash-verified

3327}
3328
3329func nativeFanOutDesignationRollupJSON(runs []taskpkg.Run) json.RawMessage {
3330 runIDs := make([]string, 0, len(runs))
3331 for _, run := range runs {
3332 if id := strings.TrimSpace(run.ID); id != "" {
3333 runIDs = append(runIDs, id)
3334 }
3335 }
3336 encoded, err := json.Marshal(map[string]any{
3337 "run_ids": runIDs,
3338 "count": len(runIDs),
3339 })
3340 if err != nil {
3341 return json.RawMessage(`{"run_ids":[],"count":0}`)
3342 }
3343 return encoded
3344}
3345
3346func (n *daemonNativeTools) autonomyClaimNext(
3347 ctx context.Context,

Callers 1

taskFanOutRunsMethod · 0.85

Calls 1

appendFunction · 0.85

Tested by

no test coverage detected