Release 0.13.0: agent API for deployments and benchmarks
Release / release (push) Successful in 3m0s
Release / release (push) Successful in 3m0s
Scopes deployments:read/write and benchmarks:read/run; /api/v1 endpoints for runtimes, deployments (create with dry run, edit, start, stop, delete own ones), benchmark runs, A/B, sweeps and comparisons; ?wait= on all status endpoints. Guardrails: approval, agent deployments at once, one GPU job at a time, time limits, sweep variants, runtime and argument allowlists, host port range, memory/CPU caps, protected deployments with a VRAM check. Requested-by filters, approval bars, per-token activity log, scope editing, docs/agent/SKILL-tuning.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e007a35143
commit
716bd8f2f0
62 files changed
+6091
-219
No files matched your search
@@ -6,6 +6,7 @@ import { access, mkdir, readFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { promisify } from "node:util";
|
||||
import { asc, eq } from "drizzle-orm";
|
||||
import { overTime } from "@/lib/agent-tuning";
|
||||
import { engineLabel, metaNotes, modelLabel, withLoadLinks } from "@/lib/benchmark-meta";
|
||||
import { REPORT_FILE, RESULTS_FILE, runDir } from "@/lib/benchmark-paths";
|
||||
import { effectiveHardware, runSetup } from "@/lib/benchmark-snapshot";
|
||||
@@ -366,12 +367,21 @@ export async function tickBenchmarks(): Promise<void> {
|
||||
if (starting) return;
|
||||
if (current) {
|
||||
const cur = current;
|
||||
const [run] = await db().select({ cancel: benchmarkRuns.cancelRequestedAt }).from(benchmarkRuns).where(eq(benchmarkRuns.id, cur.runId));
|
||||
const [run] = await db()
|
||||
.select({ cancel: benchmarkRuns.cancelRequestedAt, startedAt: benchmarkRuns.startedAt, timeLimitS: benchmarkRuns.timeLimitS })
|
||||
.from(benchmarkRuns)
|
||||
.where(eq(benchmarkRuns.id, cur.runId));
|
||||
if (!run || run.cancel) {
|
||||
cur.cancelled = true;
|
||||
stop(cur);
|
||||
return;
|
||||
}
|
||||
// Agent runs have a time limit (Settings → API tokens).
|
||||
if (overTime(run.startedAt, run.timeLimitS)) {
|
||||
cur.lost = `Stopped: the run exceeded the time limit for agent runs (${Math.round((run.timeLimitS ?? 0) / 60)} min).`;
|
||||
stop(cur);
|
||||
return;
|
||||
}
|
||||
for (const depId of cur.deploymentIds) {
|
||||
const [d] = await db().select({ state: deployments.state }).from(deployments).where(eq(deployments.id, depId));
|
||||
if (!d || d.state !== "running") {
|
||||
|
||||
Reference in new issue
Block a user