@vm0/runner 2.5.1 → 2.5.2
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 +28 -14
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5302,12 +5302,19 @@ var agentEventsResponseSchema = z6.object({
|
|
|
5302
5302
|
});
|
|
5303
5303
|
var networkLogEntrySchema = z6.object({
|
|
5304
5304
|
timestamp: z6.string(),
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5305
|
+
// Common fields (all modes)
|
|
5306
|
+
mode: z6.enum(["mitm", "sni"]).optional(),
|
|
5307
|
+
action: z6.enum(["ALLOW", "DENY"]).optional(),
|
|
5308
|
+
host: z6.string().optional(),
|
|
5309
|
+
port: z6.number().optional(),
|
|
5310
|
+
rule_matched: z6.string().nullable().optional(),
|
|
5311
|
+
// MITM-only fields (optional)
|
|
5312
|
+
method: z6.string().optional(),
|
|
5313
|
+
url: z6.string().optional(),
|
|
5314
|
+
status: z6.number().optional(),
|
|
5315
|
+
latency_ms: z6.number().optional(),
|
|
5316
|
+
request_size: z6.number().optional(),
|
|
5317
|
+
response_size: z6.number().optional()
|
|
5311
5318
|
});
|
|
5312
5319
|
var networkLogsResponseSchema = z6.object({
|
|
5313
5320
|
networkLogs: z6.array(networkLogEntrySchema),
|
|
@@ -5841,12 +5848,19 @@ var metricDataSchema = z8.object({
|
|
|
5841
5848
|
});
|
|
5842
5849
|
var networkLogSchema = z8.object({
|
|
5843
5850
|
timestamp: z8.string(),
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5851
|
+
// Common fields (all modes)
|
|
5852
|
+
mode: z8.enum(["mitm", "sni"]).optional(),
|
|
5853
|
+
action: z8.enum(["ALLOW", "DENY"]).optional(),
|
|
5854
|
+
host: z8.string().optional(),
|
|
5855
|
+
port: z8.number().optional(),
|
|
5856
|
+
rule_matched: z8.string().nullable().optional(),
|
|
5857
|
+
// MITM-only fields (optional)
|
|
5858
|
+
method: z8.string().optional(),
|
|
5859
|
+
url: z8.string().optional(),
|
|
5860
|
+
status: z8.number().optional(),
|
|
5861
|
+
latency_ms: z8.number().optional(),
|
|
5862
|
+
request_size: z8.number().optional(),
|
|
5863
|
+
response_size: z8.number().optional()
|
|
5850
5864
|
});
|
|
5851
5865
|
var webhookTelemetryContract = c5.router({
|
|
5852
5866
|
/**
|
|
@@ -10011,7 +10025,7 @@ def response(flow: http.HTTPFlow) -> None:
|
|
|
10011
10025
|
if run_id:
|
|
10012
10026
|
log_entry = {
|
|
10013
10027
|
"timestamp": time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime()),
|
|
10014
|
-
"mode": "mitm" if mitm_enabled else "
|
|
10028
|
+
"mode": "mitm" if mitm_enabled else "sni",
|
|
10015
10029
|
"action": firewall_action,
|
|
10016
10030
|
"host": host,
|
|
10017
10031
|
"port": port,
|
|
@@ -10787,7 +10801,7 @@ var statusCommand = new Command2("status").description("Check runner connectivit
|
|
|
10787
10801
|
});
|
|
10788
10802
|
|
|
10789
10803
|
// src/index.ts
|
|
10790
|
-
var version = true ? "2.5.
|
|
10804
|
+
var version = true ? "2.5.2" : "0.1.0";
|
|
10791
10805
|
program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
|
|
10792
10806
|
program.addCommand(startCommand);
|
|
10793
10807
|
program.addCommand(statusCommand);
|