From 9af6ced8964a7ff36655bbc6f641fe5577e5ada2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Barreiro?= <52393857+BarreiroT@users.noreply.github.com> Date: Tue, 16 Jun 2026 16:50:40 -0300 Subject: [PATCH] Rename Cline Pass to ClinePass everywhere (#11584) * Rename Cline Pass to ClinePass everywhere * Update apps/vscode/src/utils/path.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- apps/cli/src/tui/cline-account.ts | 2 +- apps/cli/src/utils/provider-catalog.test.ts | 2 +- apps/vscode/src/utils/path.ts | 2 +- .../core/src/auth/provider-auth-registry.test.ts | 4 ++-- .../orchestration/runtime-oauth-token-manager.test.ts | 2 +- .../services/providers/local-provider-service.test.ts | 4 ++-- sdk/packages/llms/src/catalog/catalog-live.test.ts | 10 +++++----- sdk/packages/llms/src/providers/builtins.test.ts | 2 +- sdk/packages/llms/src/providers/builtins.ts | 4 ++-- sdk/packages/llms/src/providers/ids.test.ts | 4 ++-- sdk/packages/shared/src/feature-flags.ts | 7 ++++--- 11 files changed, 22 insertions(+), 21 deletions(-) diff --git a/apps/cli/src/tui/cline-account.ts b/apps/cli/src/tui/cline-account.ts index dbea4ce08b..debbf9acf4 100644 --- a/apps/cli/src/tui/cline-account.ts +++ b/apps/cli/src/tui/cline-account.ts @@ -210,7 +210,7 @@ async function onChangeToClinePass(config: ClineAccountConfig) { organizationId: null, }); } catch (error) { - config.logger?.debug("Failed to switch Cline Pass to personal account", { + config.logger?.debug("Failed to switch ClinePass to personal account", { error, }); } diff --git a/apps/cli/src/utils/provider-catalog.test.ts b/apps/cli/src/utils/provider-catalog.test.ts index 866ed7f910..0337d04ef0 100644 --- a/apps/cli/src/utils/provider-catalog.test.ts +++ b/apps/cli/src/utils/provider-catalog.test.ts @@ -20,7 +20,7 @@ vi.mock("./feature-flags", () => ({ })); describe("listLocalProviders", () => { - it("passes the Cline Pass feature flag into the SDK provider list", async () => { + it("passes the ClinePass feature flag into the SDK provider list", async () => { const { listLocalProviders } = await import("./provider-catalog"); const manager = {} as never; diff --git a/apps/vscode/src/utils/path.ts b/apps/vscode/src/utils/path.ts index cc273e9fec..9124e1e850 100644 --- a/apps/vscode/src/utils/path.ts +++ b/apps/vscode/src/utils/path.ts @@ -98,7 +98,7 @@ export function getReadablePath(cwd: string, relPath?: string): string { if (isLocatedInPath(cwd, absolutePath)) { return normalizedRelPath.toPosix() } - // we are outside the cwd, so show the absolute path (useful for when cline passes in '../../' for example) + // we are outside the cwd, so show the absolute path (useful for when Cline passes in '../../' for example) return absolutePath.toPosix() } diff --git a/sdk/packages/core/src/auth/provider-auth-registry.test.ts b/sdk/packages/core/src/auth/provider-auth-registry.test.ts index 9d4a6572f9..5eb1df4c74 100644 --- a/sdk/packages/core/src/auth/provider-auth-registry.test.ts +++ b/sdk/packages/core/src/auth/provider-auth-registry.test.ts @@ -70,7 +70,7 @@ describe("provider auth registry", () => { ).toBe("workos:abc"); }); - it("login/save for Cline Pass stores credentials under Cline storage", async () => { + it("login/save for ClinePass stores credentials under Cline storage", async () => { loginClineOAuth.mockResolvedValueOnce({ access: "new-access", refresh: "new-refresh", @@ -115,7 +115,7 @@ describe("provider auth registry", () => { ); }); - it("Cline Pass resolves API keys from Cline storage", () => { + it("ClinePass resolves API keys from Cline storage", () => { const getProviderSettings = vi.fn().mockReturnValue({ provider: "cline", auth: { accessToken: "abc" }, diff --git a/sdk/packages/core/src/runtime/orchestration/runtime-oauth-token-manager.test.ts b/sdk/packages/core/src/runtime/orchestration/runtime-oauth-token-manager.test.ts index 4a6aac3ea8..88f799a63b 100644 --- a/sdk/packages/core/src/runtime/orchestration/runtime-oauth-token-manager.test.ts +++ b/sdk/packages/core/src/runtime/orchestration/runtime-oauth-token-manager.test.ts @@ -79,7 +79,7 @@ describe("RuntimeOAuthTokenManager", () => { ); }); - it("resolves Cline Pass OAuth using Cline storage and WorkOS formatting", async () => { + it("resolves ClinePass OAuth using Cline storage and WorkOS formatting", async () => { const getProviderSettings = vi.fn().mockReturnValue({ provider: "cline", baseUrl: "https://api.cline.test", diff --git a/sdk/packages/core/src/services/providers/local-provider-service.test.ts b/sdk/packages/core/src/services/providers/local-provider-service.test.ts index c33da384a5..2b7df16cfe 100644 --- a/sdk/packages/core/src/services/providers/local-provider-service.test.ts +++ b/sdk/packages/core/src/services/providers/local-provider-service.test.ts @@ -1090,7 +1090,7 @@ describe("listLocalProviders", () => { expect(ids).toContain("list-provider-b"); }); - it("hides Cline Pass when the Cline Pass feature flag is disabled", async () => { + it("hides ClinePass when the ClinePass feature flag is disabled", async () => { const { providers } = await listLocalProviders(manager, { isClinePassEnabled: false, }); @@ -1098,7 +1098,7 @@ describe("listLocalProviders", () => { expect(providers.map((p) => p.id)).not.toContain("cline-pass"); }); - it("includes Cline Pass when the Cline Pass feature flag is enabled", async () => { + it("includes ClinePass when the ClinePass feature flag is enabled", async () => { const { providers } = await listLocalProviders(manager, { isClinePassEnabled: true, }); diff --git a/sdk/packages/llms/src/catalog/catalog-live.test.ts b/sdk/packages/llms/src/catalog/catalog-live.test.ts index f224427087..93c9781508 100644 --- a/sdk/packages/llms/src/catalog/catalog-live.test.ts +++ b/sdk/packages/llms/src/catalog/catalog-live.test.ts @@ -18,8 +18,8 @@ describe("models-dev-catalog", () => { clinePass: [ { id: "base-model", - name: "Cline Pass Base Model", - description: "Included in Cline Pass", + name: "ClinePass Base Model", + description: "Included in ClinePass", }, { id: "custom-model", @@ -46,8 +46,8 @@ describe("models-dev-catalog", () => { expect(result["cline-pass"]).toEqual({ "base-model": { id: "base-model", - name: "Cline Pass Base Model", - description: "Included in Cline Pass", + name: "ClinePass Base Model", + description: "Included in ClinePass", contextWindow: 200_000, maxInputTokens: 180_000, maxTokens: 16_384, @@ -104,7 +104,7 @@ describe("models-dev-catalog", () => { }); }); - it("returns no Cline Pass models when clinePass is empty or missing", () => { + it("returns no ClinePass models when clinePass is empty or missing", () => { expect(normalizeClineRecommendedProviderModels({}, {})).toEqual({}); expect( normalizeClineRecommendedProviderModels({ clinePass: [] }, {}), diff --git a/sdk/packages/llms/src/providers/builtins.test.ts b/sdk/packages/llms/src/providers/builtins.test.ts index c56dda2b0d..d26902485e 100644 --- a/sdk/packages/llms/src/providers/builtins.test.ts +++ b/sdk/packages/llms/src/providers/builtins.test.ts @@ -57,7 +57,7 @@ describe("cline-pass builtin spec", () => { expect(provider).toMatchObject({ id: "cline-pass", - name: "Cline Pass", + name: "ClinePass", baseUrl: `${CLINE_ENVIRONMENTS.production.apiBaseUrl}/api/v1`, client: "openai-compatible", capabilities: expect.arrayContaining([ diff --git a/sdk/packages/llms/src/providers/builtins.ts b/sdk/packages/llms/src/providers/builtins.ts index acc27ae8df..0b130ce6f7 100644 --- a/sdk/packages/llms/src/providers/builtins.ts +++ b/sdk/packages/llms/src/providers/builtins.ts @@ -485,9 +485,9 @@ const cline = createClineLikeSpec({ const clinePass = createClineLikeSpec({ id: CLINE_PASS_PROVIDER_ID, - name: "Cline Pass", + name: "ClinePass", popular: 2, - description: "Cline API endpoint with Cline Pass models", + description: "Cline API endpoint with ClinePass models", modelsProviderId: CLINE_PASS_PROVIDER_ID, defaultModelId: firstGeneratedModelId(CLINE_PASS_PROVIDER_ID), metadata: { usageCostDisplay: "hide" }, diff --git a/sdk/packages/llms/src/providers/ids.test.ts b/sdk/packages/llms/src/providers/ids.test.ts index 367941d53c..5aec3be82c 100644 --- a/sdk/packages/llms/src/providers/ids.test.ts +++ b/sdk/packages/llms/src/providers/ids.test.ts @@ -85,14 +85,14 @@ describe("provider-ids", () => { ); }); - it("registers Cline Pass as a distinct Cline-compatible built-in provider", async () => { + it("registers ClinePass as a distinct Cline-compatible built-in provider", async () => { expect(BUILT_IN_PROVIDER_IDS).toContain("cline-pass"); const models = await getModelsForProvider("cline-pass"); const provider = await getProvider("cline-pass"); expect(provider).toMatchObject({ id: "cline-pass", - name: "Cline Pass", + name: "ClinePass", client: "openai-compatible", }); expect(models).toHaveProperty(provider?.defaultModelId ?? ""); diff --git a/sdk/packages/shared/src/feature-flags.ts b/sdk/packages/shared/src/feature-flags.ts index 6c3a4d87cd..fe42df6da3 100644 --- a/sdk/packages/shared/src/feature-flags.ts +++ b/sdk/packages/shared/src/feature-flags.ts @@ -1,5 +1,5 @@ export const FeatureFlag = { - /** Enables Cline Pass provider/model list exposure in supported clients. */ + /** Enables ClinePass provider/model list exposure in supported clients. */ CLINE_PASS: "ext-cline-pass", } as const; @@ -35,8 +35,9 @@ type Primitive = string | number | boolean | bigint | symbol | null | undefined; type HasNonPrimitiveFieldNames = { [K in keyof T]-?: Exclude extends never ? never : K; }[keyof T]; -type HasOnlyPrimitiveFields = - HasNonPrimitiveFieldNames extends never ? true : false; +type HasOnlyPrimitiveFields = HasNonPrimitiveFieldNames extends never + ? true + : false; export type FeatureFlagsContextPrimitiveValued = AssertTrue< HasOnlyPrimitiveFields >;