Repository navigation
·
104 commits
to master
since this release
Patch Changes
-
ec00dd9: Add a machine-readable
benchcommand manifest.@benchsdk/cliexportsCOMMANDS, one table of every platform command with its arguments, allowed flags, and the version that first shipped it (since, plusflagsSincefor flags added later).benchreads its per-command flag allowlists from this table.bench auth login|logout|statusnow reject unknown flags like every other command instead of ignoring them.@benchsdk/runneradds the hiddenbench __manifest [--released]command, which prints the command tree as JSON (runner verbsrunandcheckplusCOMMANDS), and ships the generatedcli-manifest.json. Regenerate it withpnpm --filter @benchsdk/runner run manifest.- The manifest lists
bench reliabilitywithsince: 0.9.2(merged after@benchsdk/cli0.9.1 was published; 0.9.2 is the first release that shipped it) andbench runs run-again/runs run-again-statuswithsince: 0.9.3.
-
ec00dd9: Add the org run feed and daily Run again to
bench.bench runs feed(GET /benchmarks/runs/summary→{runs, analytics}),bench runs days(GET /benchmarks/runs/days→{days, timeZone}) andbench runs day <YYYY-MM-DD>(GET /benchmarks/runs/day/{day}→{day, timeZone, runs, nextCursor, analytics}) read the organization-wide run feed. They take--benchmark(repeatable or a comma list, sent asbenchmarkSlugs),--include-archivedand--include-muted;runs feedtakes--limit(1 to 100),runs days/runs daytake--tz(default: the local zone), andruns daytakes--cursor <createdAt>,<id>(the page'snextCursor, sent ascursorCreatedAtandcursorId) and--all, which follows every page and prints one array of runs. The table marks runs from theirisArchivedandbenchmarkMutedfields.bench reliability cards [--include-muted](GET /benchmarks/reliability-cards→{cards: [{benchmark, card}], mutedCount}) prints one row per reliability benchmark, andbench activity [--days N] [--benchmark <slug>](GET /benchmarks/activity→{days, benchmarkSlug, series: [{date, runs}]}) prints runs per UTC day.bench runs list --benchmark <slug>...narrows the cross-benchmark list (benchmarkSlugs). A platform that ignores the filter makes the command exit 1 instead of printing other benchmarks' runs.bench run-again <slug>(POST /benchmarks/{slug}/run-again, no body → 202{benchmarkSlug, category, runAgainId, statusUrl}) runs a daily benchmark again, once per organization, benchmark and UTC day;--waitpollsGET /benchmarks/{slug}/run-again/{runAgainId}({runAgainId, runId}) every--intervalseconds (default 5) and exits 3 if no run is reported within--timeoutseconds (default 600).bench run-again status <slug> [--request <runAgainId>]shows availability and quota (GET /benchmarks/{slug}/run-again), or one request. An org API key'suser_credential_requiredrefusal prints a hint to sign in withbench auth loginin place of the platform's hint;owner_only,category_not_entitled,run_again_disabledandquota_exceeded(withretryAt) refusals print their code and a next step.@benchsdk/apiaddsgetRunFeed(limitorrunIds, not both;stats: falsesendsstats=0),listRunDays,listRunsForDay,listAllRunsForDay,getReliabilityCards,getActivity,runBenchmarkAgainandgetRunAgainState, with theRunFeedItem,RunDayCursor,ReliabilityCard,BenchmarkActivity,RunAgainAcceptedandRunAgainStatetypes. A daily Run again request is polled with the existinggetRunAgain.cli-manifest.jsonlists the new commands withsince: 0.9.5.
-
ec00dd9:
compute login/bench auth loginnow also request theproviders:readandproviders:writescopes, so the stored login can reach/api/v1/providers(the org's BYOK provider keys and custom rates,compute byok). Logins made before this keep working everywhere else; runcompute loginagain to usecompute byokwith a user login. -
ec00dd9: Add benchmark and run management to
bench.bench benchmarks archive|restore <slug>(PATCH /benchmarks/{slug}withstatus),describe <slug>(--tagline,--description,--description-file,--clear-tagline,--clear-description),mute|unmute <slug>, andpause|resume <slug>for reliability benchmarks (POST|DELETE /benchmarks/{slug}/pause,--start/--end).bench runs archive|unarchive <runId...>(POST /benchmarks/runs/archive, up to 100 ids; the platform replies{archived: <count>, count}) prints{archived, count}, witharchivedas the direction (trueorfalse) andcountthe runs changed.bench benchmarks list --status active|archived|all;bench runs list --archived exclude|include|onlyand, on the cross-benchmark list only,--include-muted(muted benchmarks' runs are kept there by default, so it restates the default).--archived onlyexits 1 when the platform answers with unarchived runs.- Archiving an already-archived benchmark exits 1 with the platform's
409 conflictand a hint to restore it;archivedRunCountis printed only when the platform reports one. benchmarks archiveandruns archive|unarchiveask for confirmation on a terminal; elsewhere they exit 1 without sending anything unless-y/--yesis passed.- API errors now print the platform's
error,message,codeandhint; a member login refused a management write gets a hint that it needs an owner or admin (or an org API key). @benchsdk/apiaddssetBenchmarkArchived,archiveRuns,pauseBenchmark,resumeBenchmark,statusonlistBenchmarks,archivedonlistRunsandlistAllRuns,includeMutedonlistAllRuns(falsesendsincludeMuted=0to leave muted benchmarks' runs out), andtagline/description/mutedonupdateBenchmark.- Behavior change once the platform ships the archive filter: run lists leave archived runs out unless
--archived include|onlyis given. cli-manifest.jsonlists the new commands and flags withsince: 0.9.5.
-
ec00dd9: Add the run analytics reads the dashboard shows to
bench.bench runs show <slug> <runId>prints the run and then its Overview (GET /benchmarks/{slug}/runs/{runId}/overview→{run, generatedAt, progress, overall, customMetrics, dimension, ranking}): progress, overall stats, custom metric medians and the participants ranked by--rank-by(task,step:<name>or a metric key) at--stat min|median|p95|p99|maxwithin an optional--dimension. With--jsonthe overview is the printed run'soverviewkey; it isnullwhen the platform has no overview route (404) or analytics are unavailable (503), unless an overview flag was passed, which makes those exit 1.bench results <slug> --run <id> --timeline [--bucket-ms N](GET …/results/timeline) and--tasks [--bucket-size N] [--failure-limit N](GET …/results/tasks) print a run's event rate and concurrency, or its per-task latency buckets and failures. Both need--runand take no other filter. A single--runalso prints the custom metric medians the platform now returns ascustomMetrics.bench iterations --type steps|tasks(defaultsteps) adds the per-task iterations;--stepsapplies to--type stepsonly.bench workers <slug> <runId> [--participant <slug>](GET …/runs/{runId}/workers→{run, items}) lists the run's workers with progress and artifacts.bench artifacts download <slug> <runId> <workerId> <artifactId> [--out <file>]writes the artifact's bytes as stored to--outor stdout; a binary artifact refuses a terminal stdout, and--jsonneeds--out(it prints{path, bytes, artifact}).bench artifacts listnow rejects--out.bench matrix <slug>andbench model-index <slug>(GET /benchmarks/{slug}/matrix,/model-index, or the~/{sourceOrg}/{slug}form with--source-org) print a matrix index benchmark's dataset or a model index benchmark's results.bench benchmarks listtakes the dashboard directory's--sort name|owner|category|runs|lastRun,--order asc|desc(needs--sort),--group public|stealth|mine,--category(repeatable or a comma list),--owner <org-slug>and--q <text>.@benchsdk/apiaddsgetRunOverview,listRunWorkers,downloadWorkerArtifactBytes(raw bytes, never decompressed),getBenchmarkMatrixandgetModelIndex, the directory options onlistBenchmarks, the list-row fields onBenchmarkResource(categoryName,runCount,latestRun,viewerMuted,effectiveConfidential) andcustomMetricsonBenchmarkRunResults.cli-manifest.jsonlists the new commands and flags withsince: 0.9.5.
-
Updated dependencies [ec00dd9]
-
Updated dependencies [ec00dd9]
-
Updated dependencies [ec00dd9]
- @benchsdk/api@0.11.3