@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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -782,7 +782,10 @@ function createClient(options) {
|
|
|
782
782
|
maxRetries: 2,
|
|
783
783
|
...isOAuth ? {
|
|
784
784
|
defaultHeaders: {
|
|
785
|
-
|
|
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
|
} : {}
|