Skip to content

Commit bf5204f

Browse files
committed
[DCV-3510] Post-merge regressions: version pill display, drop upstream bug/security links, rebrand test assertions
1 parent 9a20420 commit bf5204f

16 files changed

Lines changed: 48 additions & 67 deletions

File tree

src/activate/__tests__/registerCommands.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ describe("getVisibleProviderOrLog", () => {
6262
const result = getVisibleProviderOrLog(mockOutputChannel)
6363

6464
expect(result).toBeUndefined()
65-
expect(mockOutputChannel.appendLine).toHaveBeenCalledWith("Cannot find any visible Roo Code instances.")
65+
expect(mockOutputChannel.appendLine).toHaveBeenCalledWith(
66+
"Cannot find any visible Datacoves Copilot instances.",
67+
)
6668
})
6769
})

src/api/providers/__tests__/constants.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("DEFAULT_HEADERS", () => {
1111
})
1212

1313
it("should have correct HTTP-Referer value", () => {
14-
expect(DEFAULT_HEADERS["HTTP-Referer"]).toBe("https://github.com/RooVetGit/Roo-Cline")
14+
expect(DEFAULT_HEADERS["HTTP-Referer"]).toBe("https://github.com/datacoves/Roo-Code")
1515
})
1616

1717
it("should have correct X-Title value", () => {
@@ -20,15 +20,15 @@ describe("DEFAULT_HEADERS", () => {
2020

2121
it("should have correct User-Agent format", () => {
2222
const userAgent = DEFAULT_HEADERS["User-Agent"]
23-
expect(userAgent).toBe(`RooCode/${Package.version}`)
23+
expect(userAgent).toBe(`DatacovesCopilot/${Package.version}`)
2424

2525
// Verify it follows the tool_name/version pattern
2626
expect(userAgent).toMatch(/^[a-zA-Z-]+\/\d+\.\d+\.\d+$/)
2727
})
2828

2929
it("should have User-Agent with correct tool name", () => {
3030
const userAgent = DEFAULT_HEADERS["User-Agent"]
31-
expect(userAgent.startsWith("RooCode/")).toBe(true)
31+
expect(userAgent.startsWith("DatacovesCopilot/")).toBe(true)
3232
})
3333

3434
it("should have User-Agent with semantic version format", () => {

src/api/providers/__tests__/openai.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ describe("OpenAiHandler", () => {
111111
baseURL: expect.any(String),
112112
apiKey: expect.any(String),
113113
defaultHeaders: {
114-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
115-
"X-Title": "Roo Code",
116-
"User-Agent": `RooCode/${Package.version}`,
114+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
115+
"X-Title": "Datacoves Copilot",
116+
"User-Agent": `DatacovesCopilot/${Package.version}`,
117117
},
118118
timeout: expect.any(Number),
119119
})

src/api/providers/__tests__/openrouter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ describe("OpenRouterHandler", () => {
9090
baseURL: "https://openrouter.ai/api/v1",
9191
apiKey: mockOptions.openRouterApiKey,
9292
defaultHeaders: {
93-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
94-
"X-Title": "Roo Code",
95-
"User-Agent": `RooCode/${Package.version}`,
93+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
94+
"X-Title": "Datacoves Copilot",
95+
"User-Agent": `DatacovesCopilot/${Package.version}`,
9696
},
9797
})
9898
})

src/api/providers/__tests__/requesty.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ describe("RequestyHandler", () => {
5858
baseURL: "https://router.requesty.ai/v1",
5959
apiKey: mockOptions.requestyApiKey,
6060
defaultHeaders: {
61-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
62-
"X-Title": "Roo Code",
63-
"User-Agent": `RooCode/${Package.version}`,
61+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
62+
"X-Title": "Datacoves Copilot",
63+
"User-Agent": `DatacovesCopilot/${Package.version}`,
6464
},
6565
})
6666
})
@@ -73,9 +73,9 @@ describe("RequestyHandler", () => {
7373
baseURL: "https://custom.requesty.ai/v1",
7474
apiKey: mockOptions.requestyApiKey,
7575
defaultHeaders: {
76-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
77-
"X-Title": "Roo Code",
78-
"User-Agent": `RooCode/${Package.version}`,
76+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
77+
"X-Title": "Datacoves Copilot",
78+
"User-Agent": `DatacovesCopilot/${Package.version}`,
7979
},
8080
})
8181
})

src/api/providers/__tests__/vercel-ai-gateway.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ describe("VercelAiGatewayHandler", () => {
9696
baseURL: "https://ai-gateway.vercel.sh/v1",
9797
apiKey: mockOptions.vercelAiGatewayApiKey,
9898
defaultHeaders: expect.objectContaining({
99-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
100-
"X-Title": "Roo Code",
101-
"User-Agent": expect.stringContaining("RooCode/"),
99+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
100+
"X-Title": "Datacoves Copilot",
101+
"User-Agent": expect.stringContaining("DatacovesCopilot/"),
102102
}),
103103
})
104104
})

src/integrations/terminal/__tests__/TerminalProcess.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("TerminalProcess", () => {
3535
shellIntegration: {
3636
executeCommand: vi.fn(),
3737
},
38-
name: "Roo Code",
38+
name: "Datacoves Copilot",
3939
processId: Promise.resolve(123),
4040
creationOptions: {},
4141
exitStatus: undefined,

src/integrations/terminal/__tests__/TerminalProcessExec.bash.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async function testTerminalCommand(
149149
executeCommand: vi.fn(),
150150
cwd: vscode.Uri.file("/test/path"),
151151
},
152-
name: "Roo Code",
152+
name: "Datacoves Copilot",
153153
processId: Promise.resolve(123),
154154
creationOptions: {},
155155
exitStatus: undefined,

src/integrations/terminal/__tests__/TerminalProcessExec.cmd.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function testCmdCommand(
8383
executeCommand: vi.fn(),
8484
cwd: vscode.Uri.file("C:\\test\\path"),
8585
},
86-
name: "Roo Code",
86+
name: "Datacoves Copilot",
8787
processId: Promise.resolve(123),
8888
creationOptions: {},
8989
exitStatus: undefined,

src/integrations/terminal/__tests__/TerminalProcessExec.pwsh.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function testPowerShellCommand(
8484
executeCommand: vi.fn(),
8585
cwd: vscode.Uri.file("/test/path"),
8686
},
87-
name: "Roo Code",
87+
name: "Datacoves Copilot",
8888
processId: Promise.resolve(123),
8989
creationOptions: {},
9090
exitStatus: undefined,

0 commit comments

Comments
 (0)