pi-requesty-discover 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-requesty-discover",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Discover available Requesty models for the Pi Coding Agent",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,9 +23,15 @@ const ProviderSchema = z
23
23
 
24
24
  const ModelsJsonSchema = z
25
25
  .object({
26
+ $schema: z.string().optional(),
26
27
  providers: z.record(z.string(), ProviderSchema),
27
28
  })
28
29
  .catchall(z.unknown())
30
+ .transform(({ $schema, providers, ...rest }) => ({
31
+ ...($schema !== undefined ? { $schema } : {}),
32
+ ...rest,
33
+ providers,
34
+ }))
29
35
 
30
36
  export type ModelsJson = z.infer<typeof ModelsJsonSchema>
31
37
  type ModelsJsonProvider = z.infer<typeof ProviderSchema>