MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getCompartmentCount

Function getCompartmentCount

packages/plugin/src/tui/data/context-db.ts:254–262  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

252
253/** Get compartment count via RPC. */
254export async function getCompartmentCount(sessionId: string): Promise<number> {
255 if (!rpcClient) return 0;
256 try {
257 const result = await rpcClient.call<{ count: number }>("compartment-count", { sessionId });
258 return result.count ?? 0;
259 } catch {
260 return 0;
261 }
262}
263
264/** Send recomp request to server via RPC. */
265export async function requestRecomp(sessionId: string): Promise<boolean> {

Callers 1

showRecompDialogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected