Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ mesh = [
"starlette>=0.40",
"uvicorn[standard]>=0.30",
"httpx>=0.27",
"textual>=0.60",
]

[project.scripts]
Expand Down Expand Up @@ -67,6 +68,7 @@ mesh-dev = [
"starlette>=0.40",
"uvicorn[standard]>=0.30",
"httpx>=0.27",
"textual>=0.60",
]

[tool.pytest.ini_options]
Expand Down
16 changes: 16 additions & 0 deletions src/synix/cli/mesh_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,22 @@ def dashboard(name: str, refresh: int, lines: int):
)


@mesh.command("view")
@click.option("--name", required=True, help="Mesh name")
def view(name: str):
"""Interactive memory viewer — browse artifacts, search, inspect config."""
from synix.mesh.config import DEFAULT_MESH_ROOT

mesh_dir = DEFAULT_MESH_ROOT / name
if not mesh_dir.exists():
console.print(f"[red]Error:[/red] Mesh '{name}' not found")
sys.exit(1)

from synix.mesh.viewer import run_viewer

run_viewer(name)


@mesh.command()
@click.option("--name", required=True, help="Mesh name")
@click.confirmation_option(prompt="This will remove all mesh data. Continue?")
Expand Down
Loading
Loading