@vm0/runner 3.2.0 → 3.2.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 +57 -57
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7486,12 +7486,12 @@ var publicApiErrorSchema = z20.object({
|
|
|
7486
7486
|
code: z20.string(),
|
|
7487
7487
|
message: z20.string(),
|
|
7488
7488
|
param: z20.string().optional(),
|
|
7489
|
-
|
|
7489
|
+
docUrl: z20.string().url().optional()
|
|
7490
7490
|
})
|
|
7491
7491
|
});
|
|
7492
7492
|
var paginationSchema = z20.object({
|
|
7493
|
-
|
|
7494
|
-
|
|
7493
|
+
hasMore: z20.boolean(),
|
|
7494
|
+
nextCursor: z20.string().nullable()
|
|
7495
7495
|
});
|
|
7496
7496
|
function createPaginatedResponseSchema(dataSchema) {
|
|
7497
7497
|
return z20.object({
|
|
@@ -7575,15 +7575,15 @@ var c16 = initContract();
|
|
|
7575
7575
|
var publicAgentSchema = z22.object({
|
|
7576
7576
|
id: z22.string(),
|
|
7577
7577
|
name: z22.string(),
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7578
|
+
currentVersionId: z22.string().nullable(),
|
|
7579
|
+
createdAt: timestampSchema,
|
|
7580
|
+
updatedAt: timestampSchema
|
|
7581
7581
|
});
|
|
7582
7582
|
var agentVersionSchema = z22.object({
|
|
7583
7583
|
id: z22.string(),
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7584
|
+
agentId: z22.string(),
|
|
7585
|
+
versionNumber: z22.number(),
|
|
7586
|
+
createdAt: timestampSchema
|
|
7587
7587
|
});
|
|
7588
7588
|
var publicAgentDetailSchema = publicAgentSchema;
|
|
7589
7589
|
var paginatedAgentsSchema = createPaginatedResponseSchema(publicAgentSchema);
|
|
@@ -7657,50 +7657,50 @@ var publicRunStatusSchema = z23.enum([
|
|
|
7657
7657
|
]);
|
|
7658
7658
|
var publicRunSchema = z23.object({
|
|
7659
7659
|
id: z23.string(),
|
|
7660
|
-
|
|
7661
|
-
|
|
7660
|
+
agentId: z23.string(),
|
|
7661
|
+
agentName: z23.string(),
|
|
7662
7662
|
status: publicRunStatusSchema,
|
|
7663
7663
|
prompt: z23.string(),
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7664
|
+
createdAt: timestampSchema,
|
|
7665
|
+
startedAt: timestampSchema.nullable(),
|
|
7666
|
+
completedAt: timestampSchema.nullable()
|
|
7667
7667
|
});
|
|
7668
7668
|
var publicRunDetailSchema = publicRunSchema.extend({
|
|
7669
7669
|
error: z23.string().nullable(),
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7670
|
+
executionTimeMs: z23.number().nullable(),
|
|
7671
|
+
checkpointId: z23.string().nullable(),
|
|
7672
|
+
sessionId: z23.string().nullable(),
|
|
7673
|
+
artifactName: z23.string().nullable(),
|
|
7674
|
+
artifactVersion: z23.string().nullable(),
|
|
7675
7675
|
volumes: z23.record(z23.string(), z23.string()).optional()
|
|
7676
7676
|
});
|
|
7677
7677
|
var paginatedRunsSchema = createPaginatedResponseSchema(publicRunSchema);
|
|
7678
7678
|
var createRunRequestSchema = z23.object({
|
|
7679
|
-
// Agent identification (one of: agent,
|
|
7679
|
+
// Agent identification (one of: agent, agentId, sessionId, checkpointId)
|
|
7680
7680
|
agent: z23.string().optional(),
|
|
7681
7681
|
// Agent name
|
|
7682
|
-
|
|
7682
|
+
agentId: z23.string().optional(),
|
|
7683
7683
|
// Agent ID
|
|
7684
|
-
|
|
7684
|
+
agentVersion: z23.string().optional(),
|
|
7685
7685
|
// Version specifier (e.g., "latest", "v1", specific ID)
|
|
7686
7686
|
// Continue session
|
|
7687
|
-
|
|
7687
|
+
sessionId: z23.string().optional(),
|
|
7688
7688
|
// Resume from checkpoint
|
|
7689
|
-
|
|
7689
|
+
checkpointId: z23.string().optional(),
|
|
7690
7690
|
// Required
|
|
7691
7691
|
prompt: z23.string().min(1, "Prompt is required"),
|
|
7692
7692
|
// Optional configuration
|
|
7693
7693
|
variables: z23.record(z23.string(), z23.string()).optional(),
|
|
7694
7694
|
secrets: z23.record(z23.string(), z23.string()).optional(),
|
|
7695
|
-
|
|
7695
|
+
artifactName: z23.string().optional(),
|
|
7696
7696
|
// Artifact name to mount
|
|
7697
|
-
|
|
7697
|
+
artifactVersion: z23.string().optional(),
|
|
7698
7698
|
// Artifact version (defaults to latest)
|
|
7699
7699
|
volumes: z23.record(z23.string(), z23.string()).optional()
|
|
7700
7700
|
// volume_name -> version
|
|
7701
7701
|
});
|
|
7702
7702
|
var runListQuerySchema = listQuerySchema.extend({
|
|
7703
|
-
|
|
7703
|
+
agentId: z23.string().optional(),
|
|
7704
7704
|
status: publicRunStatusSchema.optional(),
|
|
7705
7705
|
since: timestampSchema.optional()
|
|
7706
7706
|
});
|
|
@@ -7809,16 +7809,16 @@ var publicRunLogsContract = c17.router({
|
|
|
7809
7809
|
});
|
|
7810
7810
|
var metricPointSchema = z23.object({
|
|
7811
7811
|
timestamp: timestampSchema,
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7812
|
+
cpuPercent: z23.number(),
|
|
7813
|
+
memoryUsedMb: z23.number(),
|
|
7814
|
+
memoryTotalMb: z23.number(),
|
|
7815
|
+
diskUsedMb: z23.number(),
|
|
7816
|
+
diskTotalMb: z23.number()
|
|
7817
7817
|
});
|
|
7818
7818
|
var metricsSummarySchema = z23.object({
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7819
|
+
avgCpuPercent: z23.number(),
|
|
7820
|
+
maxMemoryUsedMb: z23.number(),
|
|
7821
|
+
totalDurationMs: z23.number().nullable()
|
|
7822
7822
|
});
|
|
7823
7823
|
var metricsResponseSchema2 = z23.object({
|
|
7824
7824
|
data: z23.array(metricPointSchema),
|
|
@@ -7869,7 +7869,7 @@ var publicRunEventsContract = c17.router({
|
|
|
7869
7869
|
id: z23.string().min(1, "Run ID is required")
|
|
7870
7870
|
}),
|
|
7871
7871
|
query: z23.object({
|
|
7872
|
-
|
|
7872
|
+
lastEventId: z23.string().optional()
|
|
7873
7873
|
// For reconnection
|
|
7874
7874
|
}),
|
|
7875
7875
|
responses: {
|
|
@@ -7890,27 +7890,27 @@ var c18 = initContract();
|
|
|
7890
7890
|
var publicArtifactSchema = z24.object({
|
|
7891
7891
|
id: z24.string(),
|
|
7892
7892
|
name: z24.string(),
|
|
7893
|
-
|
|
7893
|
+
currentVersionId: z24.string().nullable(),
|
|
7894
7894
|
size: z24.number(),
|
|
7895
7895
|
// Total size in bytes
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7896
|
+
fileCount: z24.number(),
|
|
7897
|
+
createdAt: timestampSchema,
|
|
7898
|
+
updatedAt: timestampSchema
|
|
7899
7899
|
});
|
|
7900
7900
|
var artifactVersionSchema = z24.object({
|
|
7901
7901
|
id: z24.string(),
|
|
7902
7902
|
// SHA-256 content hash
|
|
7903
|
-
|
|
7903
|
+
artifactId: z24.string(),
|
|
7904
7904
|
size: z24.number(),
|
|
7905
7905
|
// Size in bytes
|
|
7906
|
-
|
|
7906
|
+
fileCount: z24.number(),
|
|
7907
7907
|
message: z24.string().nullable(),
|
|
7908
7908
|
// Optional commit message
|
|
7909
|
-
|
|
7910
|
-
|
|
7909
|
+
createdBy: z24.string(),
|
|
7910
|
+
createdAt: timestampSchema
|
|
7911
7911
|
});
|
|
7912
7912
|
var publicArtifactDetailSchema = publicArtifactSchema.extend({
|
|
7913
|
-
|
|
7913
|
+
currentVersion: artifactVersionSchema.nullable()
|
|
7914
7914
|
});
|
|
7915
7915
|
var paginatedArtifactsSchema = createPaginatedResponseSchema(publicArtifactSchema);
|
|
7916
7916
|
var paginatedArtifactVersionsSchema = createPaginatedResponseSchema(
|
|
@@ -7977,7 +7977,7 @@ var publicArtifactDownloadContract = c18.router({
|
|
|
7977
7977
|
id: z24.string().min(1, "Artifact ID is required")
|
|
7978
7978
|
}),
|
|
7979
7979
|
query: z24.object({
|
|
7980
|
-
|
|
7980
|
+
versionId: z24.string().optional()
|
|
7981
7981
|
// Defaults to current version
|
|
7982
7982
|
}),
|
|
7983
7983
|
responses: {
|
|
@@ -7998,27 +7998,27 @@ var c19 = initContract();
|
|
|
7998
7998
|
var publicVolumeSchema = z25.object({
|
|
7999
7999
|
id: z25.string(),
|
|
8000
8000
|
name: z25.string(),
|
|
8001
|
-
|
|
8001
|
+
currentVersionId: z25.string().nullable(),
|
|
8002
8002
|
size: z25.number(),
|
|
8003
8003
|
// Total size in bytes
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8004
|
+
fileCount: z25.number(),
|
|
8005
|
+
createdAt: timestampSchema,
|
|
8006
|
+
updatedAt: timestampSchema
|
|
8007
8007
|
});
|
|
8008
8008
|
var volumeVersionSchema = z25.object({
|
|
8009
8009
|
id: z25.string(),
|
|
8010
8010
|
// SHA-256 content hash
|
|
8011
|
-
|
|
8011
|
+
volumeId: z25.string(),
|
|
8012
8012
|
size: z25.number(),
|
|
8013
8013
|
// Size in bytes
|
|
8014
|
-
|
|
8014
|
+
fileCount: z25.number(),
|
|
8015
8015
|
message: z25.string().nullable(),
|
|
8016
8016
|
// Optional commit message
|
|
8017
|
-
|
|
8018
|
-
|
|
8017
|
+
createdBy: z25.string(),
|
|
8018
|
+
createdAt: timestampSchema
|
|
8019
8019
|
});
|
|
8020
8020
|
var publicVolumeDetailSchema = publicVolumeSchema.extend({
|
|
8021
|
-
|
|
8021
|
+
currentVersion: volumeVersionSchema.nullable()
|
|
8022
8022
|
});
|
|
8023
8023
|
var paginatedVolumesSchema = createPaginatedResponseSchema(publicVolumeSchema);
|
|
8024
8024
|
var paginatedVolumeVersionsSchema = createPaginatedResponseSchema(volumeVersionSchema);
|
|
@@ -8083,7 +8083,7 @@ var publicVolumeDownloadContract = c19.router({
|
|
|
8083
8083
|
id: z25.string().min(1, "Volume ID is required")
|
|
8084
8084
|
}),
|
|
8085
8085
|
query: z25.object({
|
|
8086
|
-
|
|
8086
|
+
versionId: z25.string().optional()
|
|
8087
8087
|
// Defaults to current version
|
|
8088
8088
|
}),
|
|
8089
8089
|
responses: {
|
|
@@ -10411,7 +10411,7 @@ var benchmarkCommand = new Command4("benchmark").description(
|
|
|
10411
10411
|
});
|
|
10412
10412
|
|
|
10413
10413
|
// src/index.ts
|
|
10414
|
-
var version = true ? "3.2.
|
|
10414
|
+
var version = true ? "3.2.1" : "0.1.0";
|
|
10415
10415
|
program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
|
|
10416
10416
|
program.addCommand(startCommand);
|
|
10417
10417
|
program.addCommand(doctorCommand);
|