@vm0/runner 2.4.1 → 2.4.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 +2 -18
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4981,13 +4981,6 @@ var agentDefinitionSchema = z5.object({
|
|
|
4981
4981
|
working_dir: z5.string().optional(),
|
|
4982
4982
|
// Optional when provider supports auto-config
|
|
4983
4983
|
environment: z5.record(z5.string(), z5.string()).optional(),
|
|
4984
|
-
/**
|
|
4985
|
-
* Enable network security mode for secrets.
|
|
4986
|
-
* When true, secrets are encrypted into proxy tokens and all traffic
|
|
4987
|
-
* is routed through mitmproxy -> VM0 Proxy for decryption.
|
|
4988
|
-
* Default: false (plaintext secrets in env vars)
|
|
4989
|
-
*/
|
|
4990
|
-
experimental_network_security: z5.boolean().optional().default(false),
|
|
4991
4984
|
/**
|
|
4992
4985
|
* Path to instructions file (e.g., AGENTS.md).
|
|
4993
4986
|
* Auto-uploaded as volume and mounted at /home/user/.claude/CLAUDE.md
|
|
@@ -7200,9 +7193,6 @@ PROXY_URL = f"{API_URL}/api/webhooks/agent/proxy"
|
|
|
7200
7193
|
STORAGE_PREPARE_URL = f"{API_URL}/api/webhooks/agent/storages/prepare"
|
|
7201
7194
|
STORAGE_COMMIT_URL = f"{API_URL}/api/webhooks/agent/storages/commit"
|
|
7202
7195
|
|
|
7203
|
-
# Proxy configuration (for experimental_network_security feature)
|
|
7204
|
-
PROXY_ENABLED = os.environ.get("VM0_PROXY_ENABLED", "false").lower() == "true"
|
|
7205
|
-
|
|
7206
7196
|
# Heartbeat configuration
|
|
7207
7197
|
HEARTBEAT_INTERVAL = 60 # seconds
|
|
7208
7198
|
|
|
@@ -9052,7 +9042,7 @@ sys.path.insert(0, "/usr/local/bin/vm0-agent/lib")
|
|
|
9052
9042
|
from common import (
|
|
9053
9043
|
WORKING_DIR, PROMPT, RESUME_SESSION_ID, COMPLETE_URL, RUN_ID,
|
|
9054
9044
|
EVENT_ERROR_FLAG, HEARTBEAT_URL, HEARTBEAT_INTERVAL, AGENT_LOG_FILE,
|
|
9055
|
-
|
|
9045
|
+
CLI_AGENT_TYPE, OPENAI_MODEL, validate_config
|
|
9056
9046
|
)
|
|
9057
9047
|
from log import log_info, log_error, log_warn
|
|
9058
9048
|
from events import send_event
|
|
@@ -9141,12 +9131,6 @@ def _run() -> tuple[int, str]:
|
|
|
9141
9131
|
|
|
9142
9132
|
log_info(f"Working directory: {WORKING_DIR}")
|
|
9143
9133
|
|
|
9144
|
-
# Log proxy mode status
|
|
9145
|
-
# NOTE: Proxy setup is done as root by e2b-service.ts BEFORE this script starts
|
|
9146
|
-
# This ensures mitmproxy is running and nftables rules are in place
|
|
9147
|
-
if PROXY_ENABLED:
|
|
9148
|
-
log_info("Network security mode enabled (proxy configured by e2b-service)")
|
|
9149
|
-
|
|
9150
9134
|
# Start heartbeat thread
|
|
9151
9135
|
heartbeat_thread = threading.Thread(target=heartbeat_loop, daemon=True)
|
|
9152
9136
|
heartbeat_thread.start()
|
|
@@ -10873,7 +10857,7 @@ var statusCommand = new Command2("status").description("Check runner connectivit
|
|
|
10873
10857
|
});
|
|
10874
10858
|
|
|
10875
10859
|
// src/index.ts
|
|
10876
|
-
var version = true ? "2.4.
|
|
10860
|
+
var version = true ? "2.4.2" : "0.1.0";
|
|
10877
10861
|
program.name("vm0-runner").version(version).description("Self-hosted runner for VM0 agents");
|
|
10878
10862
|
program.addCommand(startCommand);
|
|
10879
10863
|
program.addCommand(statusCommand);
|