nonebot-plugin-ruok 0.2.0__py3-none-any.whl
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.
- nonebot_plugin_ruok/__init__.py +718 -0
- nonebot_plugin_ruok/api.py +348 -0
- nonebot_plugin_ruok/chat_render.py +154 -0
- nonebot_plugin_ruok/collector.py +197 -0
- nonebot_plugin_ruok/collectors/__init__.py +107 -0
- nonebot_plugin_ruok/collectors/metrics.py +659 -0
- nonebot_plugin_ruok/collectors/modules.py +252 -0
- nonebot_plugin_ruok/collectors/monitor.py +231 -0
- nonebot_plugin_ruok/collectors/notifications.py +325 -0
- nonebot_plugin_ruok/collectors/sessions.py +569 -0
- nonebot_plugin_ruok/collectors/trackers.py +119 -0
- nonebot_plugin_ruok/config.py +50 -0
- nonebot_plugin_ruok/protocol.py +248 -0
- nonebot_plugin_ruok/webui/auth.py +1002 -0
- nonebot_plugin_ruok/webui/jinja.py +87 -0
- nonebot_plugin_ruok/webui/router.py +1571 -0
- nonebot_plugin_ruok/webui/sse.py +238 -0
- nonebot_plugin_ruok/webui/static/vendor/chartjs/LICENSE.md +9 -0
- nonebot_plugin_ruok/webui/static/vendor/chartjs/chart.umd.min.js +14 -0
- nonebot_plugin_ruok/webui/static/vendor/htmx/LICENSE +13 -0
- nonebot_plugin_ruok/webui/static/vendor/htmx/htmx.min.js +1 -0
- nonebot_plugin_ruok/webui/static/vendor/idiomorph/LICENSE +13 -0
- nonebot_plugin_ruok/webui/static/vendor/idiomorph/idiomorph-ext.min.js +1 -0
- nonebot_plugin_ruok/webui/static/vendor/pico/LICENSE.md +21 -0
- nonebot_plugin_ruok/webui/static/vendor/pico/pico.min.css +4 -0
- nonebot_plugin_ruok/webui/templates/_auth_shell.html.jinja2 +268 -0
- nonebot_plugin_ruok/webui/templates/_dashboard_connections.html.jinja2 +13 -0
- nonebot_plugin_ruok/webui/templates/_dashboard_disk.html.jinja2 +26 -0
- nonebot_plugin_ruok/webui/templates/_dashboard_hero.html.jinja2 +19 -0
- nonebot_plugin_ruok/webui/templates/_dashboard_metrics.html.jinja2 +39 -0
- nonebot_plugin_ruok/webui/templates/_dashboard_stats.html.jinja2 +46 -0
- nonebot_plugin_ruok/webui/templates/_dashboard_system.html.jinja2 +232 -0
- nonebot_plugin_ruok/webui/templates/_dashboard_trends.html.jinja2 +195 -0
- nonebot_plugin_ruok/webui/templates/_linked_list.html.jinja2 +18 -0
- nonebot_plugin_ruok/webui/templates/_module_form.html.jinja2 +89 -0
- nonebot_plugin_ruok/webui/templates/_modules_table.html.jinja2 +50 -0
- nonebot_plugin_ruok/webui/templates/_notification_form.html.jinja2 +84 -0
- nonebot_plugin_ruok/webui/templates/_notifications_list.html.jinja2 +65 -0
- nonebot_plugin_ruok/webui/templates/_session_card.html.jinja2 +94 -0
- nonebot_plugin_ruok/webui/templates/_session_container.html.jinja2 +18 -0
- nonebot_plugin_ruok/webui/templates/_sessions_list.html.jinja2 +102 -0
- nonebot_plugin_ruok/webui/templates/_user_sessions.html.jinja2 +36 -0
- nonebot_plugin_ruok/webui/templates/_users_panel.html.jinja2 +271 -0
- nonebot_plugin_ruok/webui/templates/base.html.jinja2 +980 -0
- nonebot_plugin_ruok/webui/templates/chat_session_list.html.jinja2 +117 -0
- nonebot_plugin_ruok/webui/templates/chat_status.html.jinja2 +104 -0
- nonebot_plugin_ruok/webui/templates/dashboard.html.jinja2 +362 -0
- nonebot_plugin_ruok/webui/templates/dashboard_user.html.jinja2 +70 -0
- nonebot_plugin_ruok/webui/templates/login.html.jinja2 +54 -0
- nonebot_plugin_ruok/webui/templates/modules.html.jinja2 +16 -0
- nonebot_plugin_ruok/webui/templates/modules_detail.html.jinja2 +70 -0
- nonebot_plugin_ruok/webui/templates/notifications.html.jinja2 +16 -0
- nonebot_plugin_ruok/webui/templates/notifications_detail.html.jinja2 +70 -0
- nonebot_plugin_ruok/webui/templates/register.html.jinja2 +61 -0
- nonebot_plugin_ruok/webui/templates/reset_password.html.jinja2 +55 -0
- nonebot_plugin_ruok/webui/templates/sessions.html.jinja2 +170 -0
- nonebot_plugin_ruok/webui/templates/sessions_detail.html.jinja2 +234 -0
- nonebot_plugin_ruok/webui/templates/users.html.jinja2 +11 -0
- nonebot_plugin_ruok-0.2.0.dist-info/METADATA +614 -0
- nonebot_plugin_ruok-0.2.0.dist-info/RECORD +61 -0
- nonebot_plugin_ruok-0.2.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"""RUOK collectors subpackage — split from collector.py."""
|
|
2
|
+
|
|
3
|
+
from .metrics import (
|
|
4
|
+
_startup_time,
|
|
5
|
+
_collect_bot_info,
|
|
6
|
+
_connection_history,
|
|
7
|
+
collect_all_statuses,
|
|
8
|
+
collect_fast_metrics,
|
|
9
|
+
_collect_system_metrics,
|
|
10
|
+
collect_process_snapshot,
|
|
11
|
+
_collect_plugin_inventory,
|
|
12
|
+
_collect_connection_status,
|
|
13
|
+
)
|
|
14
|
+
from .modules import (
|
|
15
|
+
get_module,
|
|
16
|
+
list_modules,
|
|
17
|
+
delete_module,
|
|
18
|
+
upsert_module,
|
|
19
|
+
derive_module_status,
|
|
20
|
+
resolve_module_display,
|
|
21
|
+
list_module_related_sessions,
|
|
22
|
+
derive_module_status_with_reasons,
|
|
23
|
+
)
|
|
24
|
+
from .monitor import (
|
|
25
|
+
LogMonitor,
|
|
26
|
+
_make_log_sink,
|
|
27
|
+
)
|
|
28
|
+
from .sessions import (
|
|
29
|
+
SessionPluginValidationError,
|
|
30
|
+
SessionUpdateValidationError,
|
|
31
|
+
get_session,
|
|
32
|
+
_load_session,
|
|
33
|
+
_save_session,
|
|
34
|
+
link_sessions,
|
|
35
|
+
list_sessions,
|
|
36
|
+
create_session,
|
|
37
|
+
unlink_session,
|
|
38
|
+
update_session,
|
|
39
|
+
_gen_session_id,
|
|
40
|
+
_make_signature,
|
|
41
|
+
get_session_stats,
|
|
42
|
+
_handle_ruok_error,
|
|
43
|
+
get_linked_sessions,
|
|
44
|
+
build_plugin_impacts,
|
|
45
|
+
_find_existing_session,
|
|
46
|
+
_publish_session_event,
|
|
47
|
+
rebuild_plugin_impacts,
|
|
48
|
+
confirm_session_plugins,
|
|
49
|
+
)
|
|
50
|
+
from .trackers import (
|
|
51
|
+
DiskRateTracker,
|
|
52
|
+
NetworkRateTracker,
|
|
53
|
+
_disk_tracker,
|
|
54
|
+
_network_tracker,
|
|
55
|
+
)
|
|
56
|
+
from .notifications import (
|
|
57
|
+
register_summary_job,
|
|
58
|
+
dispatch_notification,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
__all__ = [
|
|
62
|
+
"DiskRateTracker",
|
|
63
|
+
"LogMonitor",
|
|
64
|
+
"NetworkRateTracker",
|
|
65
|
+
"SessionPluginValidationError",
|
|
66
|
+
"SessionUpdateValidationError",
|
|
67
|
+
"_collect_bot_info",
|
|
68
|
+
"_collect_connection_status",
|
|
69
|
+
"_collect_plugin_inventory",
|
|
70
|
+
"_collect_system_metrics",
|
|
71
|
+
"_connection_history",
|
|
72
|
+
"_disk_tracker",
|
|
73
|
+
"_find_existing_session",
|
|
74
|
+
"_gen_session_id",
|
|
75
|
+
"_handle_ruok_error",
|
|
76
|
+
"_load_session",
|
|
77
|
+
"_make_log_sink",
|
|
78
|
+
"_make_signature",
|
|
79
|
+
"_network_tracker",
|
|
80
|
+
"_publish_session_event",
|
|
81
|
+
"_save_session",
|
|
82
|
+
"_startup_time",
|
|
83
|
+
"build_plugin_impacts",
|
|
84
|
+
"collect_all_statuses",
|
|
85
|
+
"collect_fast_metrics",
|
|
86
|
+
"collect_process_snapshot",
|
|
87
|
+
"confirm_session_plugins",
|
|
88
|
+
"create_session",
|
|
89
|
+
"delete_module",
|
|
90
|
+
"derive_module_status",
|
|
91
|
+
"derive_module_status_with_reasons",
|
|
92
|
+
"dispatch_notification",
|
|
93
|
+
"get_linked_sessions",
|
|
94
|
+
"get_module",
|
|
95
|
+
"get_session",
|
|
96
|
+
"get_session_stats",
|
|
97
|
+
"link_sessions",
|
|
98
|
+
"list_module_related_sessions",
|
|
99
|
+
"list_modules",
|
|
100
|
+
"list_sessions",
|
|
101
|
+
"rebuild_plugin_impacts",
|
|
102
|
+
"register_summary_job",
|
|
103
|
+
"resolve_module_display",
|
|
104
|
+
"unlink_session",
|
|
105
|
+
"update_session",
|
|
106
|
+
"upsert_module",
|
|
107
|
+
]
|