Files
orca/tests/e2e/orchestration-run-pages.ts
mirror 34fa2cd5ca
Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
source snapshot 2026-09-02
2026-09-02 02:03:16 +08:00

30 lines
820 B
TypeScript

import { ORCHESTRATION_RUN_PAGE_LIMIT } from '../../src/shared/orchestration-run-pagination'
export type OrchestrationRunSummary = {
id: string
objective: string
}
type RunListClient = {
call<TResult>(method: string, params?: unknown): Promise<{ result: TResult }>
}
export async function listAllOrchestrationRuns(
client: RunListClient
): Promise<OrchestrationRunSummary[]> {
const runs: OrchestrationRunSummary[] = []
let cursor: string | undefined
do {
const page = await client.call<{
runs: OrchestrationRunSummary[]
nextCursor?: string | null
}>('orchestration.runList', {
limit: ORCHESTRATION_RUN_PAGE_LIMIT,
...(cursor ? { cursor } : {})
})
runs.push(...page.result.runs)
cursor = page.result.nextCursor ?? undefined
} while (cursor)
return runs
}