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

Function requestUpgrade

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

Source from the content-addressed store, hash-verified

275/** Run `/ctx-session-upgrade` for the session (full recomp + once-per-project
276 * memory migration). Fired from the upgrade dialog's "Run upgrade now" action. */
277export async function requestUpgrade(sessionId: string): Promise<boolean> {
278 if (!rpcClient) return false;
279 try {
280 const result = await rpcClient.call<{ ok: boolean }>("upgrade", { sessionId });
281 return result.ok ?? false;
282 } catch {
283 return false;
284 }
285}
286
287/** Mark the upgrade reminder dismissed (the user made an explicit Confirm/Cancel
288 * choice), setting the durable stamp so the FRESH dialog won't re-show. Resume

Callers 1

showUpgradeDialogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected