Skip to content

Commit ecd9623

Browse files
committed
fix: rename remaining Roo→Zoo identity strings
1 parent bb9cce6 commit ecd9623

5 files changed

Lines changed: 33 additions & 33 deletions

File tree

packages/cloud/src/__tests__/TelemetryClient.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ describe("TelemetryClient", () => {
272272
const client = new TelemetryClient(mockAuthService, mockSettingsService)
273273

274274
const providerProperties = {
275-
appName: "roo-code",
275+
appName: "zoo-code",
276276
appVersion: "1.0.0",
277277
vscodeVersion: "1.60.0",
278278
platform: "darwin",
@@ -317,7 +317,7 @@ describe("TelemetryClient", () => {
317317
mockSettingsService.isTaskSyncEnabled.mockReturnValue(true)
318318

319319
const eventProperties = {
320-
appName: "roo-code",
320+
appName: "zoo-code",
321321
appVersion: "1.0.0",
322322
vscodeVersion: "1.60.0",
323323
platform: "darwin",
@@ -426,7 +426,7 @@ describe("TelemetryClient", () => {
426426
const client = new TelemetryClient(mockAuthService, mockSettingsService)
427427

428428
const providerProperties = {
429-
appName: "roo-code",
429+
appName: "zoo-code",
430430
appVersion: "1.0.0",
431431
vscodeVersion: "1.60.0",
432432
platform: "darwin",

src/api/providers/utils/image-generation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface ImagesApiOptions {
5959
}
6060

6161
/**
62-
* Shared image generation implementation for OpenRouter and Roo Code Cloud providers
62+
* Shared image generation implementation for OpenRouter and Zoo Code Cloud providers
6363
*/
6464
export async function generateImageWithProvider(options: ImageGenerationOptions): Promise<ImageGenerationResult> {
6565
const { baseURL, authToken, model, prompt, inputImage } = options

src/integrations/openai-codex/oauth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { z } from "zod"
1212
* - Authorization endpoint: https://auth.openai.com/oauth/authorize
1313
* - Token endpoint: https://auth.openai.com/oauth/token
1414
* - Fixed callback port: 1455
15-
* - Codex-specific params: codex_cli_simplified_flow=true, originator=roo-code
15+
* - Codex-specific params: codex_cli_simplified_flow=true, originator=zoo-code
1616
*/
1717
export const OPENAI_CODEX_OAUTH_CONFIG = {
1818
authorizationEndpoint: "https://auth.openai.com/oauth/authorize",

src/services/code-index/vector-store/__tests__/qdrant-client.spec.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe("QdrantVectorStore", () => {
7979
port: 6333,
8080
apiKey: mockApiKey,
8181
headers: {
82-
"User-Agent": "Roo-Code",
82+
"User-Agent": "Zoo-Code",
8383
},
8484
})
8585
expect(createHash).toHaveBeenCalledWith("sha256")
@@ -98,7 +98,7 @@ describe("QdrantVectorStore", () => {
9898
port: 6333,
9999
apiKey: undefined,
100100
headers: {
101-
"User-Agent": "Roo-Code",
101+
"User-Agent": "Zoo-Code",
102102
},
103103
})
104104
})
@@ -112,7 +112,7 @@ describe("QdrantVectorStore", () => {
112112
port: 6333,
113113
apiKey: undefined,
114114
headers: {
115-
"User-Agent": "Roo-Code",
115+
"User-Agent": "Zoo-Code",
116116
},
117117
})
118118
})
@@ -132,7 +132,7 @@ describe("QdrantVectorStore", () => {
132132
prefix: undefined, // No prefix for root path
133133
apiKey: undefined,
134134
headers: {
135-
"User-Agent": "Roo-Code",
135+
"User-Agent": "Zoo-Code",
136136
},
137137
})
138138
expect((vectorStore as any).qdrantUrl).toBe("https://qdrant.ashbyfam.com")
@@ -147,7 +147,7 @@ describe("QdrantVectorStore", () => {
147147
prefix: undefined, // No prefix for root path
148148
apiKey: undefined,
149149
headers: {
150-
"User-Agent": "Roo-Code",
150+
"User-Agent": "Zoo-Code",
151151
},
152152
})
153153
expect((vectorStore as any).qdrantUrl).toBe("https://example.com:9000")
@@ -166,7 +166,7 @@ describe("QdrantVectorStore", () => {
166166
prefix: "/api/v1", // Should have prefix
167167
apiKey: undefined,
168168
headers: {
169-
"User-Agent": "Roo-Code",
169+
"User-Agent": "Zoo-Code",
170170
},
171171
})
172172
expect((vectorStore as any).qdrantUrl).toBe("https://example.com/api/v1?key=value")
@@ -183,7 +183,7 @@ describe("QdrantVectorStore", () => {
183183
prefix: undefined, // No prefix for root path
184184
apiKey: undefined,
185185
headers: {
186-
"User-Agent": "Roo-Code",
186+
"User-Agent": "Zoo-Code",
187187
},
188188
})
189189
expect((vectorStore as any).qdrantUrl).toBe("http://example.com")
@@ -198,7 +198,7 @@ describe("QdrantVectorStore", () => {
198198
prefix: undefined, // No prefix for root path
199199
apiKey: undefined,
200200
headers: {
201-
"User-Agent": "Roo-Code",
201+
"User-Agent": "Zoo-Code",
202202
},
203203
})
204204
expect((vectorStore as any).qdrantUrl).toBe("http://localhost:8080")
@@ -217,7 +217,7 @@ describe("QdrantVectorStore", () => {
217217
prefix: "/api/v1", // Should have prefix
218218
apiKey: undefined,
219219
headers: {
220-
"User-Agent": "Roo-Code",
220+
"User-Agent": "Zoo-Code",
221221
},
222222
})
223223
expect((vectorStore as any).qdrantUrl).toBe("http://example.com/api/v1?key=value")
@@ -233,7 +233,7 @@ describe("QdrantVectorStore", () => {
233233
port: 80,
234234
apiKey: undefined,
235235
headers: {
236-
"User-Agent": "Roo-Code",
236+
"User-Agent": "Zoo-Code",
237237
},
238238
})
239239
expect((vectorStore as any).qdrantUrl).toBe("http://qdrant.example.com")
@@ -247,7 +247,7 @@ describe("QdrantVectorStore", () => {
247247
port: 6333,
248248
apiKey: undefined,
249249
headers: {
250-
"User-Agent": "Roo-Code",
250+
"User-Agent": "Zoo-Code",
251251
},
252252
})
253253
expect((vectorStore as any).qdrantUrl).toBe("http://localhost:6333")
@@ -261,7 +261,7 @@ describe("QdrantVectorStore", () => {
261261
port: 9000,
262262
apiKey: undefined,
263263
headers: {
264-
"User-Agent": "Roo-Code",
264+
"User-Agent": "Zoo-Code",
265265
},
266266
})
267267
expect((vectorStore as any).qdrantUrl).toBe("http://localhost:9000")
@@ -277,7 +277,7 @@ describe("QdrantVectorStore", () => {
277277
port: 80,
278278
apiKey: undefined,
279279
headers: {
280-
"User-Agent": "Roo-Code",
280+
"User-Agent": "Zoo-Code",
281281
},
282282
})
283283
expect((vectorStore as any).qdrantUrl).toBe("http://192.168.1.100")
@@ -291,7 +291,7 @@ describe("QdrantVectorStore", () => {
291291
port: 6333,
292292
apiKey: undefined,
293293
headers: {
294-
"User-Agent": "Roo-Code",
294+
"User-Agent": "Zoo-Code",
295295
},
296296
})
297297
expect((vectorStore as any).qdrantUrl).toBe("http://192.168.1.100:6333")
@@ -307,7 +307,7 @@ describe("QdrantVectorStore", () => {
307307
port: 6333,
308308
apiKey: undefined,
309309
headers: {
310-
"User-Agent": "Roo-Code",
310+
"User-Agent": "Zoo-Code",
311311
},
312312
})
313313
expect((vectorStore as any).qdrantUrl).toBe("http://localhost:6333")
@@ -321,7 +321,7 @@ describe("QdrantVectorStore", () => {
321321
port: 6333,
322322
apiKey: undefined,
323323
headers: {
324-
"User-Agent": "Roo-Code",
324+
"User-Agent": "Zoo-Code",
325325
},
326326
})
327327
expect((vectorStore as any).qdrantUrl).toBe("http://localhost:6333")
@@ -335,7 +335,7 @@ describe("QdrantVectorStore", () => {
335335
port: 6333,
336336
apiKey: undefined,
337337
headers: {
338-
"User-Agent": "Roo-Code",
338+
"User-Agent": "Zoo-Code",
339339
},
340340
})
341341
expect((vectorStore as any).qdrantUrl).toBe("http://localhost:6333")
@@ -351,7 +351,7 @@ describe("QdrantVectorStore", () => {
351351
port: 80,
352352
apiKey: undefined,
353353
headers: {
354-
"User-Agent": "Roo-Code",
354+
"User-Agent": "Zoo-Code",
355355
},
356356
})
357357
expect((vectorStore as any).qdrantUrl).toBe("http://invalid-url-format")
@@ -373,7 +373,7 @@ describe("QdrantVectorStore", () => {
373373
prefix: "/some/path",
374374
apiKey: undefined,
375375
headers: {
376-
"User-Agent": "Roo-Code",
376+
"User-Agent": "Zoo-Code",
377377
},
378378
})
379379
expect((vectorStoreWithPrefix as any).qdrantUrl).toBe("http://localhost:6333/some/path")
@@ -392,7 +392,7 @@ describe("QdrantVectorStore", () => {
392392
prefix: undefined,
393393
apiKey: undefined,
394394
headers: {
395-
"User-Agent": "Roo-Code",
395+
"User-Agent": "Zoo-Code",
396396
},
397397
})
398398
expect((vectorStoreWithoutPrefix as any).qdrantUrl).toBe("http://localhost:6333/")
@@ -411,7 +411,7 @@ describe("QdrantVectorStore", () => {
411411
prefix: "/api",
412412
apiKey: undefined,
413413
headers: {
414-
"User-Agent": "Roo-Code",
414+
"User-Agent": "Zoo-Code",
415415
},
416416
})
417417
expect((vectorStoreWithHttpsPrefix as any).qdrantUrl).toBe("https://qdrant.ashbyfam.com/api")
@@ -430,7 +430,7 @@ describe("QdrantVectorStore", () => {
430430
prefix: "/api", // Trailing slash should be removed
431431
apiKey: undefined,
432432
headers: {
433-
"User-Agent": "Roo-Code",
433+
"User-Agent": "Zoo-Code",
434434
},
435435
})
436436
expect((vectorStoreWithTrailingSlash as any).qdrantUrl).toBe("http://localhost:6333/api/")
@@ -449,7 +449,7 @@ describe("QdrantVectorStore", () => {
449449
prefix: "/api", // All trailing slashes should be removed
450450
apiKey: undefined,
451451
headers: {
452-
"User-Agent": "Roo-Code",
452+
"User-Agent": "Zoo-Code",
453453
},
454454
})
455455
expect((vectorStoreWithMultipleTrailingSlashes as any).qdrantUrl).toBe("http://localhost:6333/api///")
@@ -468,7 +468,7 @@ describe("QdrantVectorStore", () => {
468468
prefix: "/api/v1/qdrant",
469469
apiKey: undefined,
470470
headers: {
471-
"User-Agent": "Roo-Code",
471+
"User-Agent": "Zoo-Code",
472472
},
473473
})
474474
expect((vectorStoreWithMultiSegment as any).qdrantUrl).toBe("http://localhost:6333/api/v1/qdrant")
@@ -484,7 +484,7 @@ describe("QdrantVectorStore", () => {
484484
prefix: "/ollama/api/v1", // Trailing slash removed, query/fragment ignored
485485
apiKey: undefined,
486486
headers: {
487-
"User-Agent": "Roo-Code",
487+
"User-Agent": "Zoo-Code",
488488
},
489489
})
490490
expect((vectorStoreComplex as any).qdrantUrl).toBe(complexUrl)
@@ -503,7 +503,7 @@ describe("QdrantVectorStore", () => {
503503
prefix: "/api/path", // Query params and fragment should be ignored
504504
apiKey: undefined,
505505
headers: {
506-
"User-Agent": "Roo-Code",
506+
"User-Agent": "Zoo-Code",
507507
},
508508
})
509509
expect((vectorStoreWithQueryParams as any).qdrantUrl).toBe(

src/services/code-index/vector-store/qdrant-client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class QdrantVectorStore implements IVectorStore {
6262
prefix: urlObj.pathname === "/" ? undefined : urlObj.pathname.replace(/\/+$/, ""),
6363
apiKey,
6464
headers: {
65-
"User-Agent": "Roo-Code",
65+
"User-Agent": "Zoo-Code",
6666
},
6767
})
6868
} catch (urlError) {
@@ -72,7 +72,7 @@ export class QdrantVectorStore implements IVectorStore {
7272
url: parsedUrl,
7373
apiKey,
7474
headers: {
75-
"User-Agent": "Roo-Code",
75+
"User-Agent": "Zoo-Code",
7676
},
7777
})
7878
}

0 commit comments

Comments
 (0)