MCPcopy Create free account
hub / github.com/apache/maka / remove

Method remove

packages/runtime/src/session-manager.ts:2015–2025  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

2013 }
2014
2015 async remove(sessionId: string): Promise<void> {
2016 const shellRunClose = await this.deps.shellRuns?.terminateSession(sessionId);
2017 try {
2018 await this.runtimeKernel.disposeBackend(sessionId);
2019 await this.deps.store.remove(sessionId);
2020 } catch (error) {
2021 if (shellRunClose) this.deps.shellRuns?.rollbackSessionClose(shellRunClose);
2022 throw error;
2023 }
2024 if (shellRunClose) await this.deps.shellRuns?.commitSessionClose(shellRunClose);
2025 }
2026
2027 // --------------------------------------------------------------------------
2028 // Send / stream — Phase 1 vertical heart

Calls 5

terminateSessionMethod · 0.80
rollbackSessionCloseMethod · 0.80
commitSessionCloseMethod · 0.80
disposeBackendMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected