Compare commits
3 Commits
fix/1280
...
fix/1509-t
| Author | SHA1 | Date | |
|---|---|---|---|
| 2016a7e076 | |||
| 3f7277d920 | |||
|
|
ec2ed3c62f |
@@ -29,7 +29,7 @@ from typing import Any, Callable, Optional
|
||||
|
||||
import websockets
|
||||
|
||||
from bannerlord_trace import BannerlordTraceLogger
|
||||
from nexus.bannerlord_trace import BannerlordTraceLogger
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
# CONFIGURATION
|
||||
|
||||
@@ -304,6 +304,43 @@ async def inject_event(event_type: str, ws_url: str, **kwargs):
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def clean_lines(text: str) -> str:
|
||||
"""Remove ANSI codes and collapse whitespace from log text."""
|
||||
import re
|
||||
text = strip_ansi(text)
|
||||
text = re.sub(r'\s+', ' ', text).strip()
|
||||
return text
|
||||
|
||||
|
||||
def normalize_event(event: dict) -> dict:
|
||||
"""Normalize an Evennia event dict to standard format."""
|
||||
return {
|
||||
"type": event.get("type", "unknown"),
|
||||
"actor": event.get("actor", event.get("name", "")),
|
||||
"room": event.get("room", event.get("location", "")),
|
||||
"message": event.get("message", event.get("text", "")),
|
||||
"timestamp": event.get("timestamp", ""),
|
||||
}
|
||||
|
||||
|
||||
def parse_room_output(text: str) -> dict:
|
||||
"""Parse Evennia room output into structured data."""
|
||||
import re
|
||||
lines = text.strip().split("\n")
|
||||
result = {"name": "", "description": "", "exits": [], "objects": []}
|
||||
if lines:
|
||||
result["name"] = strip_ansi(lines[0]).strip()
|
||||
if len(lines) > 1:
|
||||
result["description"] = strip_ansi(lines[1]).strip()
|
||||
for line in lines[2:]:
|
||||
line = strip_ansi(line).strip()
|
||||
if line.startswith("Exits:"):
|
||||
result["exits"] = [e.strip() for e in line[6:].split(",") if e.strip()]
|
||||
elif line.startswith("You see:"):
|
||||
result["objects"] = [o.strip() for o in line[8:].split(",") if o.strip()]
|
||||
return result
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Evennia -> Nexus WebSocket Bridge")
|
||||
sub = parser.add_subparsers(dest="mode")
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
# OpenClaw Purge Report — 2026-04-12
|
||||
|
||||
Directive: We are Hermes maxis. OpenClaw has been removed from the entire Timmy Foundation stack.
|
||||
|
||||
## What was done
|
||||
|
||||
### the-nexus (this repo)
|
||||
- PR #1278 — Removed OpenClaw sidecar reference from README.md (merged)
|
||||
- PR #1279 — Rewrote Fleet Vocabulary: deprecated Robing pattern, replaced with Hermes-native comms (merged)
|
||||
- Issue #830 — Updated body to remove OpenClaw references from intelligence briefing scope
|
||||
- ACTION NEEDED (rockachopa): Update org description at https://forge.alexanderwhitestone.com/Timmy_Foundation — remove `OpenClaw sidecar` from description.
|
||||
- Current: `Sovereign AI foundation — Hermes harness, canonical Nexus repo, timmy-home training ground, OpenClaw sidecar.`
|
||||
- New: `Sovereign AI foundation — Hermes harness, canonical Nexus repo, timmy-home training ground.`
|
||||
|
||||
### timmy-config (complete)
|
||||
- PR #487 — 7 files changed: code-claw-delegation.md, allegro-wizard-house.md, automation-inventory.md, capacity-inventory.md, topology.md, son-of-timmy.md, health_check.py (merged)
|
||||
|
||||
### timmy-home (complete)
|
||||
- PR #595 — 3 files changed: USER_AUDIT_2026-04-04.md, two greptard reports with deprecation headers (merged)
|
||||
- Issue #141 closed (Robing architecture superseded)
|
||||
- Issue #140 closed (lobster cutover superseded)
|
||||
|
||||
## What was preserved
|
||||
- 27 previously closed OpenClaw issues across repos — left as historical record
|
||||
- Greptard memory architecture reports — preserved with deprecation headers
|
||||
- The Robing/Lobster/Unrobed vocabulary entries — marked deprecated, not deleted
|
||||
|
||||
## Remaining action
|
||||
- Org description — needs org owner (rockachopa) to update. The perplexity account lacks org admin permission.
|
||||
|
||||
## Architecture going forward
|
||||
Hermes handles everything: cognitive core, channels, dispatch, memory, cron, health monitoring. No external gateway layer. Two states: Online or Dead. No split-brain failure modes.
|
||||
|
||||
Reference: openclaw-purge-2026-04-12
|
||||
@@ -1,28 +0,0 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
REPORT = Path("reports/openclaw-purge-2026-04-12.md")
|
||||
|
||||
|
||||
def test_openclaw_purge_report_exists_with_required_sections():
|
||||
assert REPORT.exists(), "expected OpenClaw purge report artifact to exist"
|
||||
content = REPORT.read_text()
|
||||
assert "# OpenClaw Purge Report — 2026-04-12" in content
|
||||
assert "## What was done" in content
|
||||
assert "### the-nexus (this repo)" in content
|
||||
assert "### timmy-config (complete)" in content
|
||||
assert "### timmy-home (complete)" in content
|
||||
assert "## What was preserved" in content
|
||||
assert "## Remaining action" in content
|
||||
assert "## Architecture going forward" in content
|
||||
|
||||
|
||||
def test_openclaw_purge_report_preserves_core_findings():
|
||||
content = REPORT.read_text()
|
||||
assert "PR #1278" in content
|
||||
assert "PR #1279" in content
|
||||
assert "PR #487" in content
|
||||
assert "PR #595" in content
|
||||
assert "27 previously closed OpenClaw issues across repos" in content
|
||||
assert "The perplexity account lacks org admin permission." in content
|
||||
assert "Reference: openclaw-purge-2026-04-12" in content
|
||||
Reference in New Issue
Block a user