@vm0/runner 2.8.3 → 2.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +34 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6379,11 +6379,19 @@ var scheduleResponseSchema = z15.object({
|
|
|
6379
6379
|
volumeVersions: z15.record(z15.string(), z15.string()).nullable(),
|
|
6380
6380
|
enabled: z15.boolean(),
|
|
6381
6381
|
nextRunAt: z15.string().nullable(),
|
|
6382
|
-
lastRunAt: z15.string().nullable(),
|
|
6383
|
-
lastRunId: z15.string().nullable(),
|
|
6384
6382
|
createdAt: z15.string(),
|
|
6385
6383
|
updatedAt: z15.string()
|
|
6386
6384
|
});
|
|
6385
|
+
var runSummarySchema = z15.object({
|
|
6386
|
+
id: z15.string().uuid(),
|
|
6387
|
+
status: z15.enum(["pending", "running", "completed", "failed", "timeout"]),
|
|
6388
|
+
createdAt: z15.string(),
|
|
6389
|
+
completedAt: z15.string().nullable(),
|
|
6390
|
+
error: z15.string().nullable()
|
|
6391
|
+
});
|
|
6392
|
+
var scheduleRunsResponseSchema = z15.object({
|
|
6393
|
+
runs: z15.array(runSummarySchema)
|
|
6394
|
+
});
|
|
6387
6395
|
var scheduleListResponseSchema = z15.object({
|
|
6388
6396
|
schedules: z15.array(scheduleResponseSchema)
|
|
6389
6397
|
});
|
|
@@ -6512,6 +6520,29 @@ var schedulesEnableContract = c11.router({
|
|
|
6512
6520
|
summary: "Disable schedule"
|
|
6513
6521
|
}
|
|
6514
6522
|
});
|
|
6523
|
+
var scheduleRunsContract = c11.router({
|
|
6524
|
+
/**
|
|
6525
|
+
* GET /api/agent/schedules/:name/runs
|
|
6526
|
+
* List recent runs for a schedule
|
|
6527
|
+
*/
|
|
6528
|
+
listRuns: {
|
|
6529
|
+
method: "GET",
|
|
6530
|
+
path: "/api/agent/schedules/:name/runs",
|
|
6531
|
+
pathParams: z15.object({
|
|
6532
|
+
name: z15.string().min(1, "Schedule name required")
|
|
6533
|
+
}),
|
|
6534
|
+
query: z15.object({
|
|
6535
|
+
composeId: z15.string().uuid("Compose ID required"),
|
|
6536
|
+
limit: z15.coerce.number().min(0).max(100).default(5)
|
|
6537
|
+
}),
|
|
6538
|
+
responses: {
|
|
6539
|
+
200: scheduleRunsResponseSchema,
|
|
6540
|
+
401: apiErrorSchema,
|
|
6541
|
+
404: apiErrorSchema
|
|
6542
|
+
},
|
|
6543
|
+
summary: "List recent runs for a schedule"
|
|
6544
|
+
}
|
|
6545
|
+
});
|
|
6515
6546
|
|
|
6516
6547
|
// ../../packages/core/src/contracts/public/common.ts
|
|
6517
6548
|
import { z as z16 } from "zod";
|
|
@@ -11300,7 +11331,7 @@ var benchmarkCommand = new Command3("benchmark").description(
|
|
|
11300
11331
|
});
|
|
11301
11332
|
|
|
11302
11333
|
// src/index.ts
|
|
11303
|
-
var version = true ? "2.8.
|
|
11334
|
+
var version = true ? "2.8.4" : "0.1.0";
|
|
11304
11335
|
program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
|
|
11305
11336
|
program.addCommand(startCommand);
|
|
11306
11337
|
program.addCommand(statusCommand);
|