MCPcopy Create free account
hub / github.com/tiann/hapi / wireIdForCursorSessionState

Function wireIdForCursorSessionState

cli/src/cursor/utils/cursorModeConfig.ts:75–81  ·  view source on GitHub ↗
(requested: string, resolved: string)

Source from the content-addressed store, hash-verified

73
74/** Wire id stored on session + keepalive (preserve explicit variant picks). */
75export function wireIdForCursorSessionState(requested: string, resolved: string): string {
76 const trimmed = requested.trim();
77 if (trimmed.includes('[')) {
78 return trimmed;
79 }
80 return resolved;
81}
82
83/**
84 * Map a spawn / hub wire id onto a live ACP configOptions entry.

Callers 2

applyLiveModelMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected