MCPcopy Create free account
hub / github.com/GCWing/BitFun / create_session

Method create_session

src/crates/services/terminal/src/api.rs:313–332  ·  view source on GitHub ↗

Create a new terminal session

(
        &self,
        request: CreateSessionRequest,
    )

Source from the content-addressed store, hash-verified

311
312 /// Create a new terminal session
313 pub async fn create_session(
314 &self,
315 request: CreateSessionRequest,
316 ) -> TerminalResult<SessionResponse> {
317 let session = self
318 .session_manager
319 .create_session(
320 request.session_id,
321 request.name,
322 request.shell_type,
323 request.working_directory,
324 request.env,
325 request.cols,
326 request.rows,
327 request.source,
328 )
329 .await?;
330
331 Ok(SessionResponse::from(session))
332 }
333
334 /// Get a session by ID
335 pub async fn get_session(&self, session_id: &str) -> TerminalResult<SessionResponse> {

Callers 3

terminal_createFunction · 0.45
ensure_sessionMethod · 0.45
create_new_sessionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected