- 将 Windows/Linux service control 执行器从占位实现推进到可用 - 新增 service control 测试,覆盖 status/start/stop/restart 主路径 - 增强 edge-agent 启动脚本,优先使用包内私有 Python 运行时 - 增强 Windows/Linux 打包脚本,支持携带私有 Python 运行时 - 更新 edge-agent README 与当前进度总结 - 新增 dist 忽略规则,避免打包产物污染仓库
Smart Deploy Agent Demo Edge Agent
Setup
python -m venv .venv
.venv\Scripts\python -m pip install -e edge-agent
Run Once
set PYTHONPATH=edge-agent
.venv\Scripts\python -m app.main --once
Run Loop
set PYTHONPATH=edge-agent
.venv\Scripts\python -m app.main
Test
set PYTHONPATH=edge-agent
C:\Users\MH\AppData\Local\Programs\Python\Python311\python.exe -m pytest edge-agent/tests -q -p no:cacheprovider
Default Runtime Notes
- default backend url:
http://127.0.0.1:8000 - default edge id:
edge-shanghai-001 - current registered tools:
http_health_checkcheck_portcheck_processgrep_logwindows_service_controllinux_service_control - current bootstrap implements: heartbeat pull task execute registered tools report result report event
Package Scripts
Current repo includes:
scripts/start-windows.ps1scripts/start-linux.shscripts/package-windows.ps1scripts/package-linux.sh
These scripts currently prepare a portable package skeleton and startup entrypoints.
Current Windows package script already bundles a private Python runtime into:
runtime/python/
Current Linux package script supports bundling a private Python runtime directory passed in by argument or EDGE_PYTHON_HOME.
Packaging Direction
For user-side delivery, this edge agent is intended to be bundled as:
- Windows:
zipportable package - Linux:
tar.gzself-contained runtime directory
Current Verification Baseline
Current edge-agent baseline: 10 passed
Verified Packaging
Current verified artifact:
- Windows portable package zip has been generated and verified to include:
start.ps1app/main.pyruntime/python/python.exe