@vm0/runner 3.2.1 → 3.3.1
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 +32 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6687,7 +6687,7 @@ var cliAuthDeviceContract = c6.router({
|
|
|
6687
6687
|
200: z10.object({
|
|
6688
6688
|
device_code: z10.string(),
|
|
6689
6689
|
user_code: z10.string(),
|
|
6690
|
-
|
|
6690
|
+
verification_path: z10.string(),
|
|
6691
6691
|
expires_in: z10.number(),
|
|
6692
6692
|
interval: z10.number()
|
|
6693
6693
|
}),
|
|
@@ -7508,6 +7508,11 @@ var timestampSchema = z20.string().datetime();
|
|
|
7508
7508
|
|
|
7509
7509
|
// ../../packages/core/src/contracts/platform.ts
|
|
7510
7510
|
var c15 = initContract();
|
|
7511
|
+
var platformPaginationSchema = z21.object({
|
|
7512
|
+
hasMore: z21.boolean(),
|
|
7513
|
+
nextCursor: z21.string().nullable(),
|
|
7514
|
+
totalPages: z21.number()
|
|
7515
|
+
});
|
|
7511
7516
|
var platformLogStatusSchema = z21.enum([
|
|
7512
7517
|
"pending",
|
|
7513
7518
|
"running",
|
|
@@ -7519,9 +7524,10 @@ var platformLogStatusSchema = z21.enum([
|
|
|
7519
7524
|
var platformLogEntrySchema = z21.object({
|
|
7520
7525
|
id: z21.string().uuid()
|
|
7521
7526
|
});
|
|
7522
|
-
var platformLogsListResponseSchema =
|
|
7523
|
-
platformLogEntrySchema
|
|
7524
|
-
|
|
7527
|
+
var platformLogsListResponseSchema = z21.object({
|
|
7528
|
+
data: z21.array(platformLogEntrySchema),
|
|
7529
|
+
pagination: platformPaginationSchema
|
|
7530
|
+
});
|
|
7525
7531
|
var artifactSchema = z21.object({
|
|
7526
7532
|
name: z21.string().nullable(),
|
|
7527
7533
|
version: z21.string().nullable()
|
|
@@ -7530,7 +7536,7 @@ var platformLogDetailSchema = z21.object({
|
|
|
7530
7536
|
id: z21.string().uuid(),
|
|
7531
7537
|
sessionId: z21.string().nullable(),
|
|
7532
7538
|
agentName: z21.string(),
|
|
7533
|
-
|
|
7539
|
+
framework: z21.string().nullable(),
|
|
7534
7540
|
status: platformLogStatusSchema,
|
|
7535
7541
|
prompt: z21.string(),
|
|
7536
7542
|
error: z21.string().nullable(),
|
|
@@ -7568,6 +7574,26 @@ var platformLogsByIdContract = c15.router({
|
|
|
7568
7574
|
summary: "Get agent run log details by ID"
|
|
7569
7575
|
}
|
|
7570
7576
|
});
|
|
7577
|
+
var artifactDownloadResponseSchema = z21.object({
|
|
7578
|
+
url: z21.string().url(),
|
|
7579
|
+
expiresAt: z21.string()
|
|
7580
|
+
});
|
|
7581
|
+
var platformArtifactDownloadContract = c15.router({
|
|
7582
|
+
getDownloadUrl: {
|
|
7583
|
+
method: "GET",
|
|
7584
|
+
path: "/api/platform/artifacts/download",
|
|
7585
|
+
query: z21.object({
|
|
7586
|
+
name: z21.string().min(1, "Artifact name is required"),
|
|
7587
|
+
version: z21.string().optional()
|
|
7588
|
+
}),
|
|
7589
|
+
responses: {
|
|
7590
|
+
200: artifactDownloadResponseSchema,
|
|
7591
|
+
401: apiErrorSchema,
|
|
7592
|
+
404: apiErrorSchema
|
|
7593
|
+
},
|
|
7594
|
+
summary: "Get presigned URL for artifact download"
|
|
7595
|
+
}
|
|
7596
|
+
});
|
|
7571
7597
|
|
|
7572
7598
|
// ../../packages/core/src/contracts/public/agents.ts
|
|
7573
7599
|
import { z as z22 } from "zod";
|
|
@@ -10411,7 +10437,7 @@ var benchmarkCommand = new Command4("benchmark").description(
|
|
|
10411
10437
|
});
|
|
10412
10438
|
|
|
10413
10439
|
// src/index.ts
|
|
10414
|
-
var version = true ? "3.
|
|
10440
|
+
var version = true ? "3.3.1" : "0.1.0";
|
|
10415
10441
|
program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
|
|
10416
10442
|
program.addCommand(startCommand);
|
|
10417
10443
|
program.addCommand(doctorCommand);
|