Skip to content

Commit 446be4b

Browse files
committed
fix(schema): avoid capability schema initialization order issue
1 parent 507a4cb commit 446be4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/schema/src/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const ApiV1SkillListResponseSchema = type({
171171
version: 'string',
172172
createdAt: 'number',
173173
changelog: 'string',
174-
capabilities: SkillCapabilitySchema.array().optional(),
174+
capabilities: '("shell"|"filesystem"|"network"|"browser"|"sessions")[]?',
175175
}).optional(),
176176
}).array(),
177177
nextCursor: 'string|null',
@@ -191,7 +191,7 @@ export const ApiV1SkillResponseSchema = type({
191191
version: 'string',
192192
createdAt: 'number',
193193
changelog: 'string',
194-
capabilities: SkillCapabilitySchema.array().optional(),
194+
capabilities: '("shell"|"filesystem"|"network"|"browser"|"sessions")[]?',
195195
}).or('null'),
196196
owner: type({
197197
handle: 'string|null',

0 commit comments

Comments
 (0)