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

Function cursorModelBaseId

shared/src/cursorCliSku.ts:7–11  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

5}
6
7export function cursorModelBaseId(modelId: string): string {
8 const trimmed = modelId.trim();
9 const bracket = trimmed.indexOf('[');
10 return bracket === -1 ? trimmed : trimmed.slice(0, bracket);
11}
12
13/** Longest-first suffixes from Cursor CLI sku ids (e.g. `gpt-5.5-high-fast` → `gpt-5.5`). */
14const CLI_SKU_SUFFIXES = [

Callers 3

cursorCliSkuBaseIdFunction · 0.70
matchCliSkuToAcpWireIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected