-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
55 lines (40 loc) · 1.82 KB
/
Copy path__init__.py
File metadata and controls
55 lines (40 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"""LivingColor Hermes plugin — agent-side surfaces.
Registers the /delivery slash command and the livingcolor model toolset.
The dashboard tab and HTTP API live under dashboard/ (loaded separately
by the Hermes web server's dashboard-plugin system).
"""
from __future__ import annotations
import logging
import sys
from pathlib import Path
logger = logging.getLogger(__name__)
# The ported packages (delivery_runtime, lc_server, jira_dashboard,
# lc_constants) use absolute imports; make them importable.
_PLUGIN_ROOT = Path(__file__).resolve().parent
if str(_PLUGIN_ROOT) not in sys.path:
sys.path.insert(0, str(_PLUGIN_ROOT))
def register(ctx) -> None:
"""Hermes plugin entry point."""
from jira_dashboard.compat import install_hermes_cli_jira_dashboard_shim
from jira_dashboard.mcp_compat import install_mcp_tool_shims
install_hermes_cli_jira_dashboard_shim()
install_mcp_tool_shims()
try:
from lc_constants import ensure_livingcolor_home_layout
ensure_livingcolor_home_layout()
except Exception:
logger.exception("LivingColor home layout bootstrap failed during plugin register")
try:
from lc_server.bootstrap import bootstrap_livingcolor_server
bootstrap_livingcolor_server()
except Exception:
logger.exception("LivingColor server bootstrap failed during plugin register")
from agent_surfaces import register_surfaces
register_surfaces(ctx)
try:
from lc_server.integrations.livingcolor_pm_profile import ensure_livingcolor_pm_profile
from lc_server.integrations.project_chat_context import install_project_chat_context_hooks
ensure_livingcolor_pm_profile()
install_project_chat_context_hooks()
except Exception:
logger.exception("LivingColor project chat bootstrap failed during plugin register")