MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / disposeToken

Method disposeToken

src/workspaces/session-pool.ts:175–180  ·  view source on GitHub ↗

Dispose ONE session by id. Returns false if not found.

(recordId: string, reason: string)

Source from the content-addressed store, hash-verified

173
174 /** Dispose ONE session by id. Returns false if not found. */
175 disposeToken(recordId: string, reason: string): boolean {
176 const session = this.sessions.get(recordId);
177 if (!session) return false;
178 session.dispose(reason);
179 return true;
180 }
181
182 /** Dispose ALL sessions for a workspace (DELETE /workspaces/:id). */
183 dispose(wsId: string, reason: string): boolean {

Callers 2

createWorkspaceRoutesFunction · 0.80
doResumeFunction · 0.80

Calls 2

getMethod · 0.65
disposeMethod · 0.65

Tested by

no test coverage detected