meshagent-cli 0.22.2__py3-none-any.whl
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.
Potentially problematic release.
This version of meshagent-cli might be problematic. Click here for more details.
- meshagent/cli/__init__.py +3 -0
- meshagent/cli/agent.py +273 -0
- meshagent/cli/api_keys.py +102 -0
- meshagent/cli/async_typer.py +79 -0
- meshagent/cli/auth.py +30 -0
- meshagent/cli/auth_async.py +295 -0
- meshagent/cli/call.py +215 -0
- meshagent/cli/chatbot.py +1983 -0
- meshagent/cli/cli.py +187 -0
- meshagent/cli/cli_mcp.py +408 -0
- meshagent/cli/cli_secrets.py +414 -0
- meshagent/cli/common_options.py +47 -0
- meshagent/cli/containers.py +725 -0
- meshagent/cli/database.py +997 -0
- meshagent/cli/developer.py +70 -0
- meshagent/cli/exec.py +397 -0
- meshagent/cli/helper.py +236 -0
- meshagent/cli/helpers.py +185 -0
- meshagent/cli/host.py +41 -0
- meshagent/cli/mailbot.py +1295 -0
- meshagent/cli/mailboxes.py +223 -0
- meshagent/cli/meeting_transcriber.py +138 -0
- meshagent/cli/messaging.py +157 -0
- meshagent/cli/multi.py +357 -0
- meshagent/cli/oauth2.py +341 -0
- meshagent/cli/participant_token.py +63 -0
- meshagent/cli/port.py +70 -0
- meshagent/cli/projects.py +105 -0
- meshagent/cli/queue.py +91 -0
- meshagent/cli/room.py +26 -0
- meshagent/cli/rooms.py +214 -0
- meshagent/cli/services.py +722 -0
- meshagent/cli/sessions.py +26 -0
- meshagent/cli/storage.py +813 -0
- meshagent/cli/sync.py +434 -0
- meshagent/cli/task_runner.py +1317 -0
- meshagent/cli/version.py +1 -0
- meshagent/cli/voicebot.py +624 -0
- meshagent/cli/webhook.py +100 -0
- meshagent/cli/worker.py +1403 -0
- meshagent_cli-0.22.2.dist-info/METADATA +49 -0
- meshagent_cli-0.22.2.dist-info/RECORD +45 -0
- meshagent_cli-0.22.2.dist-info/WHEEL +5 -0
- meshagent_cli-0.22.2.dist-info/entry_points.txt +2 -0
- meshagent_cli-0.22.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from meshagent.cli import async_typer
|
|
2
|
+
from meshagent.cli.helper import get_client, print_json_table, resolve_project_id
|
|
3
|
+
from meshagent.cli.common_options import ProjectIdOption
|
|
4
|
+
|
|
5
|
+
app = async_typer.AsyncTyper(help="Inspect recent sessions and events")
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@app.async_command("list", help="List recent sessions")
|
|
9
|
+
async def list(*, project_id: ProjectIdOption):
|
|
10
|
+
client = await get_client()
|
|
11
|
+
sessions = await client.list_recent_sessions(
|
|
12
|
+
project_id=await resolve_project_id(project_id=project_id)
|
|
13
|
+
)
|
|
14
|
+
print_json_table(sessions["sessions"])
|
|
15
|
+
await client.close()
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@app.async_command("show", help="Show events for a session")
|
|
19
|
+
async def show(*, project_id: ProjectIdOption, session_id: str):
|
|
20
|
+
client = await get_client()
|
|
21
|
+
events = await client.list_session_events(
|
|
22
|
+
project_id=await resolve_project_id(project_id=project_id),
|
|
23
|
+
session_id=session_id,
|
|
24
|
+
)
|
|
25
|
+
print_json_table(events["events"], "type", "data")
|
|
26
|
+
await client.close()
|