fn(request$0) =>
@definy.read-snapshot-summary-list(
then: fn(commits$1) =>
@definy.read-branch-status-records(
then: fn(records$2) =>
let branches$3 = @core.project-branches(
commits: @core.list-map(
T: @definy.event-snapshot,
U: @core.snapshot-summary,
f: fn(item$4) =>
@definy.snapshot-summary-of(commit: $4),
xs: $1
)
);
@definy.store-read-events(
event_hashes: @definy.branch-latest-event-hashes(branches: $3, index: 0),
then: fn(events$5) =>
@definy.json-response(
status: 200,
body: #object<@definy.json>([
{
key: "branches",
value: #array<@definy.json>(@definy.branch-items-json(branches: $3, events: $5, index: 0, records: $2, merges: @definy.branch-merges(commits: $1)))
}
])
)
)
)
)