feat: implement sprint 014 hermes renewal
This commit is contained in:
@@ -31,6 +31,10 @@ export class AvatarService {
|
||||
}
|
||||
|
||||
const files = [
|
||||
{ path: '~/.hermes/avatar.png', type: 'image/png' },
|
||||
{ path: '~/.hermes/avatar.jpg', type: 'image/jpeg' },
|
||||
{ path: '~/.hermes/avatar.jpeg', type: 'image/jpeg' },
|
||||
{ path: '~/.hermes/avatar.webp', type: 'image/webp' },
|
||||
{ path: '~/.openclaw/avatar.png', type: 'image/png' },
|
||||
{ path: '~/.openclaw/avatar.jpg', type: 'image/jpeg' },
|
||||
{ path: '~/.openclaw/avatar.jpeg', type: 'image/jpeg' },
|
||||
|
||||
@@ -39,7 +39,7 @@ export class SisterDetailService {
|
||||
sister.ip,
|
||||
sister.user,
|
||||
sshKeyPath,
|
||||
'cat ~/.openclaw/workspace/SOUL.md 2>/dev/null | head -60; echo "---AGENTS---"; cat ~/.openclaw/workspace/AGENTS.md 2>/dev/null | head -40',
|
||||
'WORKSPACE=~/.hermes/workspace; [ -d "$WORKSPACE" ] || WORKSPACE=~/.openclaw/workspace; cat "$WORKSPACE"/SOUL.md 2>/dev/null | head -60; echo "---AGENTS---"; cat "$WORKSPACE"/AGENTS.md 2>/dev/null | head -40',
|
||||
);
|
||||
|
||||
return {
|
||||
@@ -67,7 +67,7 @@ export class SisterDetailService {
|
||||
sister.ip,
|
||||
sister.user,
|
||||
sshKeyPath,
|
||||
'ls -lt ~/.openclaw/sessions/ 2>/dev/null | head -20 || echo ""',
|
||||
'SESSION_DIR=~/.hermes/sessions; [ -d "$SESSION_DIR" ] || SESSION_DIR=~/.openclaw/sessions; ls -lt "$SESSION_DIR"/ 2>/dev/null | head -20 || echo ""',
|
||||
);
|
||||
|
||||
const lines = result.stdout.split('\n').filter((l) => l && !l.startsWith('total'));
|
||||
@@ -93,7 +93,7 @@ export class SisterDetailService {
|
||||
sister.ip,
|
||||
sister.user,
|
||||
sshKeyPath,
|
||||
'ls ~/.openclaw/workspace/agents/ 2>/dev/null || echo ""',
|
||||
'AGENT_DIR=~/.hermes/workspace/agents; [ -d "$AGENT_DIR" ] || AGENT_DIR=~/.openclaw/workspace/agents; ls "$AGENT_DIR"/ 2>/dev/null || echo ""',
|
||||
);
|
||||
|
||||
const agents = result.stdout.split('\n').filter((l) => l.trim().endsWith('.md'));
|
||||
|
||||
@@ -96,7 +96,7 @@ export class SistersService {
|
||||
sister.ip,
|
||||
sister.user,
|
||||
sshKeyPath,
|
||||
'systemctl --user is-active openclaw-gateway 2>/dev/null || echo "inactive"',
|
||||
'if systemctl --user is-active hermes-agent >/dev/null 2>&1; then echo active; elif systemctl --user is-active hermes-gateway >/dev/null 2>&1; then echo active; elif pgrep -f "hermes.*gateway|hermes.*agent" >/dev/null 2>&1; then echo active; elif systemctl --user is-active openclaw-gateway >/dev/null 2>&1; then echo active; else echo inactive; fi',
|
||||
);
|
||||
|
||||
const isActive = result.stdout.trim() === 'active';
|
||||
|
||||
Reference in New Issue
Block a user