Skip to content

Commit e444af6

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@0b42e7c623a32fedf06e442a78e27a39f1186999
1 parent 5b12202 commit e444af6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎common/src/desktop-cloud/project-settings.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { z } from 'zod/v4'
22

3+
export const CLOUD_SKILL_MAX_RESOURCE_FILES = 100
4+
35
export const cloudSkillSchema = z
46
.object({
57
name: z.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/),
@@ -29,7 +31,10 @@ export const cloudSkillSchema = z
2931
})
3032
.strict(),
3133
)
32-
.max(50)
34+
.max(
35+
CLOUD_SKILL_MAX_RESOURCE_FILES,
36+
`A skill can include at most ${CLOUD_SKILL_MAX_RESOURCE_FILES} supporting files.`,
37+
)
3338
.refine(
3439
(files) =>
3540
files.every((file, i) =>

0 commit comments

Comments
 (0)