MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _integrations_flow

Function _integrations_flow

src/harness/ephemeral/repl.py:335–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333
334
335def _integrations_flow() -> None:
336 dispatch = {
337 "Setup Slack": lambda: _exec_script("setup_slack.py"),
338 "Setup Discord": lambda: _exec_script("setup_discord.py"),
339 "Listen on Slack": lambda: _exec_script(
340 "slack_listener.py",
341 *(
342 ["--with-dashboard"]
343 if inquirer.confirm("Enable live dashboard?", default=False).execute()
344 else []
345 ),
346 ),
347 "Listen on Discord": lambda: _exec_script(
348 "discord_listener.py",
349 *(
350 ["--with-dashboard"]
351 if inquirer.confirm("Enable live dashboard?", default=False).execute()
352 else []
353 ),
354 ),
355 }
356
357 while True:
358 choice = inquirer.select(
359 "Integrations:",
360 choices=[*dispatch.keys(), "← Back"],
361 ).execute()
362
363 if choice == "← Back" or choice is None:
364 break
365 dispatch[choice]()
366
367
368def _vm_flow() -> None:

Callers 1

repl.pyFile · 0.85

Calls 2

_exec_scriptFunction · 0.70
executeMethod · 0.45

Tested by

no test coverage detected