agentram 0.1.15 → 0.1.16
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/agentram/cli.py +10 -2
- package/package.json +1 -1
- package/pyproject.toml +1 -1
package/agentram/cli.py
CHANGED
|
@@ -388,12 +388,18 @@ def run_textual_tui(context: McpContext) -> bool:
|
|
|
388
388
|
self.query_one("#input", Input).focus()
|
|
389
389
|
|
|
390
390
|
def hide_palette(self) -> None:
|
|
391
|
-
|
|
391
|
+
try:
|
|
392
|
+
palette = self.query_one("#palette", Static)
|
|
393
|
+
except Exception: # noqa: BLE001 - widget may not be mounted yet
|
|
394
|
+
return
|
|
392
395
|
palette.update("")
|
|
393
396
|
palette.styles.display = "none"
|
|
394
397
|
|
|
395
398
|
def show_palette(self, value: str) -> None:
|
|
396
|
-
|
|
399
|
+
try:
|
|
400
|
+
palette = self.query_one("#palette", Static)
|
|
401
|
+
except Exception: # noqa: BLE001 - widget may not be mounted yet
|
|
402
|
+
return
|
|
397
403
|
query = value.strip().lower().lstrip("/")
|
|
398
404
|
matches = []
|
|
399
405
|
for command, description in SLASH_COMMANDS:
|
|
@@ -414,6 +420,8 @@ def run_textual_tui(context: McpContext) -> bool:
|
|
|
414
420
|
palette.styles.display = "block"
|
|
415
421
|
|
|
416
422
|
def on_input_changed(self, event: Input.Changed) -> None:
|
|
423
|
+
if event.input.id != "input":
|
|
424
|
+
return
|
|
417
425
|
value = event.value.strip()
|
|
418
426
|
if value.startswith("/"):
|
|
419
427
|
self.show_palette(value)
|
package/package.json
CHANGED