@kenkaiiii/gg-ai 4.3.169 → 4.3.170

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/dist/index.cjs CHANGED
@@ -782,7 +782,10 @@ function createClient(options) {
782
782
  maxRetries: 2,
783
783
  ...isOAuth ? {
784
784
  defaultHeaders: {
785
- "user-agent": "claude-cli/2.1.75",
785
+ // Anthropic's OAuth edge validates the claude-cli version. Callers
786
+ // (ggcoder) resolve the live version at runtime; the literal here
787
+ // is the offline fallback for direct gg-ai consumers.
788
+ "user-agent": options.userAgent ?? "claude-cli/2.1.75 (external, cli)",
786
789
  "x-app": "cli"
787
790
  }
788
791
  } : {}