Skip to content

Commit 3c6a1c6

Browse files
refactor(server): keep Cursor fallback models private
1 parent eced382 commit 3c6a1c6

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

‎apps/server/src/provider/Layers/CursorProvider.test.ts‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
buildCursorCapabilitiesFromConfigOptions,
1717
checkCursorProviderStatus,
1818
discoverCursorModelsViaAcp,
19-
getCursorFallbackModels,
2019
getCursorParameterizedModelPickerUnsupportedMessage,
2120
parseCursorAboutOutput,
2221
parseCursorCliConfigChannel,
@@ -475,16 +474,6 @@ describe("Cursor skills", () => {
475474
});
476475
});
477476

478-
describe("getCursorFallbackModels", () => {
479-
it("does not publish any built-in cursor models before ACP discovery", () => {
480-
expect(
481-
getCursorFallbackModels({
482-
customModels: ["internal/cursor-model"],
483-
}).map((model) => model.slug),
484-
).toEqual(["internal/cursor-model"]);
485-
});
486-
});
487-
488477
describe("buildCursorProviderSnapshot", () => {
489478
it("downgrades ready status to warning when ACP model discovery times out", () => {
490479
expect(

‎apps/server/src/provider/Layers/CursorProvider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export const discoverCursorModelsViaAcp = (
572572
environment?: NodeJS.ProcessEnv,
573573
) => discoverCursorModelsViaListAvailableModels(cursorSettings, environment);
574574

575-
export function getCursorFallbackModels(
575+
function getCursorFallbackModels(
576576
cursorSettings: Pick<CursorSettings, "customModels">,
577577
): ReadonlyArray<ServerProviderModel> {
578578
return providerModelsFromSettings([], cursorSettings.customModels, EMPTY_CAPABILITIES);

0 commit comments

Comments
 (0)