feat(hilfe): Subcommands für multiroom/busy/allowalways/setfakt/curate ergänzen
- ::multiroom: start/stop/status (on/off als Aliase), Status zeigt subskribierte Räume - ::busy: on/off/status als Busy-Toggle (🟥/🟩) + queue/steer behalten - ::allowalways: list/add/remove (In-Memory-Liste) - ::setfakt: path <pfad> setzt FAKT-Speicherort direkt - ::curate: status/run dokumentiert - build_help_text_parts: RC-Sektion wandert in Teil 2, damit beide Teile < 4500 Zeichen - Tests: Subcommand-Assertions + Split-Logik angepasst
This commit is contained in:
@@ -342,11 +342,23 @@ class TestBuildHelpText:
|
||||
"busy", dummy,
|
||||
"Zeigt/steuert den Busy-Status (::Variante von /busy)",
|
||||
category="Standard",
|
||||
subcommands={
|
||||
"on": "Busy-Status aktivieren (Bot zeigt 🟥 beschäftigt)",
|
||||
"off": "Busy-Status deaktivieren (Bot zeigt 🟩 verfügbar)",
|
||||
"status": "Aktuellen Busy-Status anzeigen",
|
||||
"queue <text>": "Nachricht in die Queue parken",
|
||||
"steer <text>": "Nachricht nach dem nächsten Tool-Call einschieben",
|
||||
},
|
||||
)
|
||||
registry.register(
|
||||
"allowalways", dummy,
|
||||
"Verwaltet die Allow-Always-Liste (::Variante von /allow-always)",
|
||||
category="Standard",
|
||||
subcommands={
|
||||
"list": "Zeigt alle Allow-Always-Einträge",
|
||||
"add": "Fügt einen Befehl zur Allow-Always-Liste hinzu",
|
||||
"remove": "Entfernt einen Befehl aus der Allow-Always-Liste",
|
||||
},
|
||||
)
|
||||
registry.register(
|
||||
"commands", dummy,
|
||||
@@ -367,6 +379,10 @@ class TestBuildHelpText:
|
||||
"setfakt", dummy,
|
||||
"Ändert den FAKT-Speicherort",
|
||||
category="Konfiguration",
|
||||
subcommands={
|
||||
"path": "Setzt den Pfad für FAKT-Speicherung "
|
||||
"(z.B. ::setfakt path /data/Wissensdatenbank/0100 Inbox)",
|
||||
},
|
||||
)
|
||||
registry.register(
|
||||
"hilfe", dummy,
|
||||
@@ -382,6 +398,11 @@ class TestBuildHelpText:
|
||||
"multiroom", dummy,
|
||||
"Multi-Room-Agent aktivieren/deaktivieren/Status",
|
||||
category="Plugin",
|
||||
subcommands={
|
||||
"start": "Multi-Room-Agent aktivieren (Archivar + Butler)",
|
||||
"stop": "Multi-Room-Agent deaktivieren (Single-Room-Modus)",
|
||||
"status": "Zeigt ob Multi-Room aktiv ist und wieviele Räume subskribiert sind",
|
||||
},
|
||||
)
|
||||
registry.register(
|
||||
"onboarding", dummy,
|
||||
@@ -400,6 +421,10 @@ class TestBuildHelpText:
|
||||
"curate", dummy,
|
||||
"Kuratiert die Room-Map-Keywords (R10)",
|
||||
category="Plugin",
|
||||
subcommands={
|
||||
"status": "Zeigt den Keyword-Kuratierungs-Status",
|
||||
"run": "Führt eine Keyword-Kuratierung durch",
|
||||
},
|
||||
)
|
||||
registry.register(
|
||||
"keywords", dummy,
|
||||
@@ -483,6 +508,23 @@ class TestBuildHelpText:
|
||||
# keywords Subcommands
|
||||
assert "::keywords review" in text
|
||||
assert "::keywords status" in text
|
||||
# multiroom Subcommands
|
||||
assert "::multiroom start" in text
|
||||
assert "::multiroom stop" in text
|
||||
assert "::multiroom status" in text
|
||||
# busy Subcommands
|
||||
assert "::busy on" in text
|
||||
assert "::busy off" in text
|
||||
assert "::busy status" in text
|
||||
# allowalways Subcommands
|
||||
assert "::allowalways list" in text
|
||||
assert "::allowalways add" in text
|
||||
assert "::allowalways remove" in text
|
||||
# setfakt Subcommands
|
||||
assert "::setfakt path" in text
|
||||
# curate Subcommands
|
||||
assert "::curate status" in text
|
||||
assert "::curate run" in text
|
||||
# butler Subcommands
|
||||
assert "::butler mode" in text
|
||||
assert "::butler mode proactive" in text
|
||||
@@ -527,11 +569,11 @@ class TestBuildHelpText:
|
||||
f"maximal erlaubt sind < 4500"
|
||||
)
|
||||
|
||||
# Teil 1 enthält die Befehlslisten (Core + Standard + RC)
|
||||
# Teil 1 enthält Core + Standard-Hermes-Befehle
|
||||
assert "Core-Befehle" in parts[0]
|
||||
assert "Standard-Hermes-Befehle" in parts[0]
|
||||
assert "RC-Plugin-spezifische Befehle" in parts[0]
|
||||
# Teil 2 enthält natürliche Sprache + Status + Tipp
|
||||
# Teil 2 enthält RC-Plugin-Befehle + natürliche Sprache + Status + Tipp
|
||||
assert "RC-Plugin-spezifische Befehle" in parts[1]
|
||||
assert "Natürliche Sprach-Befehle" in parts[1]
|
||||
assert "Plugin-Status" in parts[1]
|
||||
assert "Tipp" in parts[1]
|
||||
|
||||
Reference in New Issue
Block a user