Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 4b17f98

Browse files
authored
Release: v1.105.0 (#10722)
1 parent d689de3 commit 4b17f98

3 files changed

Lines changed: 79 additions & 1 deletion

File tree

packages/types/npm/package.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@roo-code/types",
3-
"version": "1.103.0",
3+
"version": "1.105.0",
44
"description": "TypeScript type definitions for Roo Code.",
55
"publishConfig": {
66
"access": "public",

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

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,79 @@ describe("organizationCloudSettingsSchema with workspaceTaskVisibility", () => {
331331
expect(result.data?.cloudSettings?.workspaceTaskVisibility).toBe("list-only")
332332
})
333333
})
334+
335+
describe("organizationCloudSettingsSchema with llmEnhancedFeaturesEnabled", () => {
336+
it("should validate without llmEnhancedFeaturesEnabled property", () => {
337+
const input = {
338+
recordTaskMessages: true,
339+
enableTaskSharing: true,
340+
}
341+
const result = organizationCloudSettingsSchema.safeParse(input)
342+
expect(result.success).toBe(true)
343+
expect(result.data?.llmEnhancedFeaturesEnabled).toBeUndefined()
344+
})
345+
346+
it("should validate with llmEnhancedFeaturesEnabled as true", () => {
347+
const input = {
348+
recordTaskMessages: true,
349+
enableTaskSharing: true,
350+
llmEnhancedFeaturesEnabled: true,
351+
}
352+
const result = organizationCloudSettingsSchema.safeParse(input)
353+
expect(result.success).toBe(true)
354+
expect(result.data?.llmEnhancedFeaturesEnabled).toBe(true)
355+
})
356+
357+
it("should validate with llmEnhancedFeaturesEnabled as false", () => {
358+
const input = {
359+
recordTaskMessages: true,
360+
enableTaskSharing: true,
361+
llmEnhancedFeaturesEnabled: false,
362+
}
363+
const result = organizationCloudSettingsSchema.safeParse(input)
364+
expect(result.success).toBe(true)
365+
expect(result.data?.llmEnhancedFeaturesEnabled).toBe(false)
366+
})
367+
368+
it("should reject non-boolean llmEnhancedFeaturesEnabled", () => {
369+
const input = {
370+
llmEnhancedFeaturesEnabled: "true",
371+
}
372+
const result = organizationCloudSettingsSchema.safeParse(input)
373+
expect(result.success).toBe(false)
374+
})
375+
376+
it("should have correct TypeScript type", () => {
377+
// Type-only test to ensure TypeScript compilation
378+
const settings: OrganizationCloudSettings = {
379+
recordTaskMessages: true,
380+
enableTaskSharing: true,
381+
llmEnhancedFeaturesEnabled: true,
382+
}
383+
expect(settings.llmEnhancedFeaturesEnabled).toBe(true)
384+
385+
const settingsWithoutLlmFeatures: OrganizationCloudSettings = {
386+
recordTaskMessages: false,
387+
}
388+
expect(settingsWithoutLlmFeatures.llmEnhancedFeaturesEnabled).toBeUndefined()
389+
})
390+
391+
it("should validate in organizationSettingsSchema with llmEnhancedFeaturesEnabled", () => {
392+
const input = {
393+
version: 1,
394+
cloudSettings: {
395+
recordTaskMessages: true,
396+
enableTaskSharing: true,
397+
llmEnhancedFeaturesEnabled: false,
398+
},
399+
defaultSettings: {},
400+
allowList: {
401+
allowAll: true,
402+
providers: {},
403+
},
404+
}
405+
const result = organizationSettingsSchema.safeParse(input)
406+
expect(result.success).toBe(true)
407+
expect(result.data?.cloudSettings?.llmEnhancedFeaturesEnabled).toBe(false)
408+
})
409+
})

packages/types/src/cloud.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export const organizationCloudSettingsSchema = z.object({
139139
taskShareExpirationDays: z.number().int().positive().optional(),
140140
allowMembersViewAllTasks: z.boolean().optional(),
141141
workspaceTaskVisibility: workspaceTaskVisibilitySchema.optional(),
142+
llmEnhancedFeaturesEnabled: z.boolean().optional(),
142143
})
143144

144145
export type OrganizationCloudSettings = z.infer<typeof organizationCloudSettingsSchema>
@@ -213,6 +214,7 @@ export const ORGANIZATION_DEFAULT: OrganizationSettings = {
213214
allowPublicTaskSharing: true,
214215
taskShareExpirationDays: 30,
215216
allowMembersViewAllTasks: true,
217+
llmEnhancedFeaturesEnabled: false,
216218
},
217219
defaultSettings: {},
218220
allowList: ORGANIZATION_ALLOW_ALL,

0 commit comments

Comments
 (0)