@saadnvd1/agent-os 0.3.472 → 0.3.473

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.
@@ -27,10 +27,15 @@ const modelRef = z
27
27
  const modelOverride = z
28
28
  .union([
29
29
  modelRef,
30
- z.partialRecord(
31
- z.enum(TASK_ROLES as [ModelRole, ...ModelRole[]]),
32
- modelRef
33
- ),
30
+ // Named optional keys, not z.partialRecord: its "propertyNames" makes
31
+ // Claude Code drop every tool on this server, not just this one.
32
+ z
33
+ .object(
34
+ Object.fromEntries(
35
+ TASK_ROLES.map((role) => [role, modelRef.optional()])
36
+ ) as Record<ModelRole, z.ZodOptional<typeof modelRef>>
37
+ )
38
+ .strict(),
34
39
  ])
35
40
  .optional()
36
41
  .describe(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saadnvd1/agent-os",
3
- "version": "0.3.472",
3
+ "version": "0.3.473",
4
4
  "description": "Self-hosted web UI for managing Claude Code sessions",
5
5
  "bin": {
6
6
  "agent-os": "scripts/agent-os"