MCPcopy Create free account
hub / github.com/1jehuang/jcode / create_session

Function create_session

scripts/test_swarm_debug.py:58–63  ·  view source on GitHub ↗

Create a headless session for testing.

(cwd="/tmp")

Source from the content-addressed store, hash-verified

56 raise TimeoutError("timed out")
57
58def create_session(cwd="/tmp"):
59 """Create a headless session for testing."""
60 ok, output = send_cmd(f"create_session:{cwd}")
61 if ok:
62 return json.loads(output).get('session_id')
63 return None
64
65def destroy_session(session_id):
66 """Destroy a test session."""

Callers

nothing calls this directly

Calls 2

send_cmdFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected