@smilintux/skcapstone 0.5.9 → 0.5.10
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/package.json
CHANGED
|
@@ -28,7 +28,11 @@ def initialize_consciousness(home: Path) -> ConsciousnessState:
|
|
|
28
28
|
ConsciousnessState with current status.
|
|
29
29
|
"""
|
|
30
30
|
agent_name = os.environ.get("SKCAPSTONE_AGENT", "lumina")
|
|
31
|
-
|
|
31
|
+
# home may be the agent dir (~/.skcapstone/agents/jarvis/) or the
|
|
32
|
+
# shared root (~/.skcapstone/). Check for skwhisper/ directly first.
|
|
33
|
+
whisper_dir = home / "skwhisper"
|
|
34
|
+
if not whisper_dir.exists():
|
|
35
|
+
whisper_dir = home / "agents" / agent_name / "skwhisper"
|
|
32
36
|
|
|
33
37
|
state = ConsciousnessState()
|
|
34
38
|
|
|
@@ -81,11 +85,16 @@ def initialize_consciousness(home: Path) -> ConsciousnessState:
|
|
|
81
85
|
pass
|
|
82
86
|
|
|
83
87
|
# Check if consciousness daemon is running (systemd)
|
|
84
|
-
#
|
|
88
|
+
# Check template instance (skcapstone@<agent>), legacy single-agent, and skwhisper
|
|
85
89
|
try:
|
|
86
90
|
import subprocess
|
|
87
91
|
|
|
88
|
-
|
|
92
|
+
service_candidates = [
|
|
93
|
+
f"skcapstone@{agent_name}", # multi-agent template unit
|
|
94
|
+
"skcapstone", # legacy single-agent unit
|
|
95
|
+
"skwhisper", # standalone skwhisper daemon
|
|
96
|
+
]
|
|
97
|
+
for service_name in service_candidates:
|
|
89
98
|
result = subprocess.run(
|
|
90
99
|
["systemctl", "--user", "is-active", service_name],
|
|
91
100
|
capture_output=True,
|