yumoqing d423a03a6d feat(hermes-web-cli): refactor user context, settings, services and sessions management
- Remove deprecated UNKNOWN.egg-info and user_context.py
- Refactor crud_ops, db_tables, and init modules
- Update settings UI and save handlers (appearance, general, security)
- Update services list, remove, and test DSPY files
- Update sessions list DSPY file
- Add multi-user test script
- Update pyproject.toml dependencies
2026-04-25 21:47:46 +08:00

15 lines
455 B
Plaintext

# Test service connection by ID
# This .dspy file uses functions provided by load_hermes_web_cli()
try:
service_id = params_kw.get('id')
if not service_id:
return {"error": "Service ID is required"}
# Call the function provided by the hermes-web-cli module
is_connected, status_msg = await test_service_connection(service_id)
return {"status": status_msg}
except Exception as e:
return {"error": str(e)}