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 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
- palette = self.query_one("#palette", Static)
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
- palette = self.query_one("#palette", Static)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentram",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Async, model-agnostic Working RAM for coding agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/trancongnghia/AGENT_RAM#readme",
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentram"
7
- version = "0.1.15"
7
+ version = "0.1.16"
8
8
  description = "Async, model-agnostic RAM layer for agentic coding tools."
9
9
  readme = "README.md"
10
10
  license = "MIT"