@link-assistant/agent 0.26.3 → 0.26.4

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": "@link-assistant/agent",
3
- "version": "0.26.3",
3
+ "version": "0.26.4",
4
4
  "description": "A minimal, public domain AI CLI agent compatible with OpenCode's JSON interface. Bun-only runtime.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -57,8 +57,17 @@ export namespace ClaudeOAuth {
57
57
  refreshToken: z.string(),
58
58
  expiresAt: z.number(),
59
59
  scopes: z.array(z.string()).optional(),
60
- subscriptionType: z.string().optional(),
61
- rateLimitTier: z.string().optional(),
60
+ // Claude Code writes null when subscription metadata is unavailable.
61
+ // Normalize that JSON representation to the same value as an omitted
62
+ // optional field while keeping every other non-string value invalid.
63
+ subscriptionType: z
64
+ .string()
65
+ .nullish()
66
+ .transform((value) => value ?? undefined),
67
+ rateLimitTier: z
68
+ .string()
69
+ .nullish()
70
+ .transform((value) => value ?? undefined),
62
71
  })
63
72
  .optional(),
64
73
  });