opencode-agy-auth 2.0.0

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.
Files changed (235) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +745 -0
  3. package/dist/index.d.ts +4 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +3 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/src/antigravity/oauth.d.ts +31 -0
  8. package/dist/src/antigravity/oauth.d.ts.map +1 -0
  9. package/dist/src/antigravity/oauth.js +171 -0
  10. package/dist/src/antigravity/oauth.js.map +1 -0
  11. package/dist/src/constants.d.ts +155 -0
  12. package/dist/src/constants.d.ts.map +1 -0
  13. package/dist/src/constants.js +251 -0
  14. package/dist/src/constants.js.map +1 -0
  15. package/dist/src/hooks/auto-update-checker/cache.d.ts +3 -0
  16. package/dist/src/hooks/auto-update-checker/cache.d.ts.map +1 -0
  17. package/dist/src/hooks/auto-update-checker/cache.js +71 -0
  18. package/dist/src/hooks/auto-update-checker/cache.js.map +1 -0
  19. package/dist/src/hooks/auto-update-checker/checker.d.ts +16 -0
  20. package/dist/src/hooks/auto-update-checker/checker.d.ts.map +1 -0
  21. package/dist/src/hooks/auto-update-checker/checker.js +237 -0
  22. package/dist/src/hooks/auto-update-checker/checker.js.map +1 -0
  23. package/dist/src/hooks/auto-update-checker/constants.d.ts +9 -0
  24. package/dist/src/hooks/auto-update-checker/constants.d.ts.map +1 -0
  25. package/dist/src/hooks/auto-update-checker/constants.js +23 -0
  26. package/dist/src/hooks/auto-update-checker/constants.js.map +1 -0
  27. package/dist/src/hooks/auto-update-checker/index.d.ts +34 -0
  28. package/dist/src/hooks/auto-update-checker/index.d.ts.map +1 -0
  29. package/dist/src/hooks/auto-update-checker/index.js +125 -0
  30. package/dist/src/hooks/auto-update-checker/index.js.map +1 -0
  31. package/dist/src/hooks/auto-update-checker/types.d.ts +25 -0
  32. package/dist/src/hooks/auto-update-checker/types.d.ts.map +1 -0
  33. package/dist/src/hooks/auto-update-checker/types.js +1 -0
  34. package/dist/src/hooks/auto-update-checker/types.js.map +1 -0
  35. package/dist/src/plugin/accounts.d.ts +174 -0
  36. package/dist/src/plugin/accounts.d.ts.map +1 -0
  37. package/dist/src/plugin/accounts.js +1243 -0
  38. package/dist/src/plugin/accounts.js.map +1 -0
  39. package/dist/src/plugin/auth.d.ts +21 -0
  40. package/dist/src/plugin/auth.d.ts.map +1 -0
  41. package/dist/src/plugin/auth.js +46 -0
  42. package/dist/src/plugin/auth.js.map +1 -0
  43. package/dist/src/plugin/cache/index.d.ts +5 -0
  44. package/dist/src/plugin/cache/index.d.ts.map +1 -0
  45. package/dist/src/plugin/cache/index.js +5 -0
  46. package/dist/src/plugin/cache/index.js.map +1 -0
  47. package/dist/src/plugin/cache/signature-cache.d.ts +111 -0
  48. package/dist/src/plugin/cache/signature-cache.d.ts.map +1 -0
  49. package/dist/src/plugin/cache/signature-cache.js +375 -0
  50. package/dist/src/plugin/cache/signature-cache.js.map +1 -0
  51. package/dist/src/plugin/cache.d.ts +44 -0
  52. package/dist/src/plugin/cache.d.ts.map +1 -0
  53. package/dist/src/plugin/cache.js +200 -0
  54. package/dist/src/plugin/cache.js.map +1 -0
  55. package/dist/src/plugin/cli.d.ts +27 -0
  56. package/dist/src/plugin/cli.d.ts.map +1 -0
  57. package/dist/src/plugin/cli.js +130 -0
  58. package/dist/src/plugin/cli.js.map +1 -0
  59. package/dist/src/plugin/config/index.d.ts +16 -0
  60. package/dist/src/plugin/config/index.d.ts.map +1 -0
  61. package/dist/src/plugin/config/index.js +16 -0
  62. package/dist/src/plugin/config/index.js.map +1 -0
  63. package/dist/src/plugin/config/loader.d.ts +38 -0
  64. package/dist/src/plugin/config/loader.d.ts.map +1 -0
  65. package/dist/src/plugin/config/loader.js +204 -0
  66. package/dist/src/plugin/config/loader.js.map +1 -0
  67. package/dist/src/plugin/config/models.d.ts +27 -0
  68. package/dist/src/plugin/config/models.d.ts.map +1 -0
  69. package/dist/src/plugin/config/models.js +79 -0
  70. package/dist/src/plugin/config/models.js.map +1 -0
  71. package/dist/src/plugin/config/schema.d.ts +134 -0
  72. package/dist/src/plugin/config/schema.d.ts.map +1 -0
  73. package/dist/src/plugin/config/schema.js +445 -0
  74. package/dist/src/plugin/config/schema.js.map +1 -0
  75. package/dist/src/plugin/config/updater.d.ts +55 -0
  76. package/dist/src/plugin/config/updater.d.ts.map +1 -0
  77. package/dist/src/plugin/config/updater.js +133 -0
  78. package/dist/src/plugin/config/updater.js.map +1 -0
  79. package/dist/src/plugin/core/streaming/index.d.ts +3 -0
  80. package/dist/src/plugin/core/streaming/index.d.ts.map +1 -0
  81. package/dist/src/plugin/core/streaming/index.js +3 -0
  82. package/dist/src/plugin/core/streaming/index.js.map +1 -0
  83. package/dist/src/plugin/core/streaming/transformer.d.ts +10 -0
  84. package/dist/src/plugin/core/streaming/transformer.d.ts.map +1 -0
  85. package/dist/src/plugin/core/streaming/transformer.js +271 -0
  86. package/dist/src/plugin/core/streaming/transformer.js.map +1 -0
  87. package/dist/src/plugin/core/streaming/types.d.ts +27 -0
  88. package/dist/src/plugin/core/streaming/types.d.ts.map +1 -0
  89. package/dist/src/plugin/core/streaming/types.js +1 -0
  90. package/dist/src/plugin/core/streaming/types.js.map +1 -0
  91. package/dist/src/plugin/debug.d.ts +94 -0
  92. package/dist/src/plugin/debug.d.ts.map +1 -0
  93. package/dist/src/plugin/debug.js +418 -0
  94. package/dist/src/plugin/debug.js.map +1 -0
  95. package/dist/src/plugin/errors.d.ts +28 -0
  96. package/dist/src/plugin/errors.d.ts.map +1 -0
  97. package/dist/src/plugin/errors.js +42 -0
  98. package/dist/src/plugin/errors.js.map +1 -0
  99. package/dist/src/plugin/fingerprint.d.ts +71 -0
  100. package/dist/src/plugin/fingerprint.d.ts.map +1 -0
  101. package/dist/src/plugin/fingerprint.js +140 -0
  102. package/dist/src/plugin/fingerprint.js.map +1 -0
  103. package/dist/src/plugin/image-saver.d.ts +25 -0
  104. package/dist/src/plugin/image-saver.d.ts.map +1 -0
  105. package/dist/src/plugin/image-saver.js +86 -0
  106. package/dist/src/plugin/image-saver.js.map +1 -0
  107. package/dist/src/plugin/logger.d.ts +54 -0
  108. package/dist/src/plugin/logger.d.ts.map +1 -0
  109. package/dist/src/plugin/logger.js +120 -0
  110. package/dist/src/plugin/logger.js.map +1 -0
  111. package/dist/src/plugin/project.d.ts +33 -0
  112. package/dist/src/plugin/project.d.ts.map +1 -0
  113. package/dist/src/plugin/project.js +234 -0
  114. package/dist/src/plugin/project.js.map +1 -0
  115. package/dist/src/plugin/proxy.d.ts +2 -0
  116. package/dist/src/plugin/proxy.d.ts.map +1 -0
  117. package/dist/src/plugin/proxy.js +20 -0
  118. package/dist/src/plugin/proxy.js.map +1 -0
  119. package/dist/src/plugin/quota.d.ts +58 -0
  120. package/dist/src/plugin/quota.d.ts.map +1 -0
  121. package/dist/src/plugin/quota.js +430 -0
  122. package/dist/src/plugin/quota.js.map +1 -0
  123. package/dist/src/plugin/recovery/constants.d.ts +22 -0
  124. package/dist/src/plugin/recovery/constants.d.ts.map +1 -0
  125. package/dist/src/plugin/recovery/constants.js +43 -0
  126. package/dist/src/plugin/recovery/constants.js.map +1 -0
  127. package/dist/src/plugin/recovery/index.d.ts +12 -0
  128. package/dist/src/plugin/recovery/index.d.ts.map +1 -0
  129. package/dist/src/plugin/recovery/index.js +12 -0
  130. package/dist/src/plugin/recovery/index.js.map +1 -0
  131. package/dist/src/plugin/recovery/storage.d.ts +24 -0
  132. package/dist/src/plugin/recovery/storage.d.ts.map +1 -0
  133. package/dist/src/plugin/recovery/storage.js +354 -0
  134. package/dist/src/plugin/recovery/storage.js.map +1 -0
  135. package/dist/src/plugin/recovery/types.d.ts +116 -0
  136. package/dist/src/plugin/recovery/types.d.ts.map +1 -0
  137. package/dist/src/plugin/recovery/types.js +6 -0
  138. package/dist/src/plugin/recovery/types.js.map +1 -0
  139. package/dist/src/plugin/recovery.d.ts +61 -0
  140. package/dist/src/plugin/recovery.d.ts.map +1 -0
  141. package/dist/src/plugin/recovery.js +378 -0
  142. package/dist/src/plugin/recovery.js.map +1 -0
  143. package/dist/src/plugin/refresh-queue.d.ts +101 -0
  144. package/dist/src/plugin/refresh-queue.d.ts.map +1 -0
  145. package/dist/src/plugin/refresh-queue.js +248 -0
  146. package/dist/src/plugin/refresh-queue.js.map +1 -0
  147. package/dist/src/plugin/request-helpers.d.ts +306 -0
  148. package/dist/src/plugin/request-helpers.d.ts.map +1 -0
  149. package/dist/src/plugin/request-helpers.js +2476 -0
  150. package/dist/src/plugin/request-helpers.js.map +1 -0
  151. package/dist/src/plugin/request.d.ts +98 -0
  152. package/dist/src/plugin/request.d.ts.map +1 -0
  153. package/dist/src/plugin/request.js +1513 -0
  154. package/dist/src/plugin/request.js.map +1 -0
  155. package/dist/src/plugin/rotation.d.ts +169 -0
  156. package/dist/src/plugin/rotation.d.ts.map +1 -0
  157. package/dist/src/plugin/rotation.js +328 -0
  158. package/dist/src/plugin/rotation.js.map +1 -0
  159. package/dist/src/plugin/search.d.ts +32 -0
  160. package/dist/src/plugin/search.d.ts.map +1 -0
  161. package/dist/src/plugin/search.js +195 -0
  162. package/dist/src/plugin/search.js.map +1 -0
  163. package/dist/src/plugin/server.d.ts +23 -0
  164. package/dist/src/plugin/server.d.ts.map +1 -0
  165. package/dist/src/plugin/server.js +324 -0
  166. package/dist/src/plugin/server.js.map +1 -0
  167. package/dist/src/plugin/storage.d.ts +137 -0
  168. package/dist/src/plugin/storage.d.ts.map +1 -0
  169. package/dist/src/plugin/storage.js +588 -0
  170. package/dist/src/plugin/storage.js.map +1 -0
  171. package/dist/src/plugin/stores/signature-store.d.ts +5 -0
  172. package/dist/src/plugin/stores/signature-store.d.ts.map +1 -0
  173. package/dist/src/plugin/stores/signature-store.js +25 -0
  174. package/dist/src/plugin/stores/signature-store.js.map +1 -0
  175. package/dist/src/plugin/thinking-recovery.d.ts +90 -0
  176. package/dist/src/plugin/thinking-recovery.d.ts.map +1 -0
  177. package/dist/src/plugin/thinking-recovery.js +316 -0
  178. package/dist/src/plugin/thinking-recovery.js.map +1 -0
  179. package/dist/src/plugin/token.d.ts +19 -0
  180. package/dist/src/plugin/token.d.ts.map +1 -0
  181. package/dist/src/plugin/token.js +128 -0
  182. package/dist/src/plugin/token.js.map +1 -0
  183. package/dist/src/plugin/transform/claude.d.ts +82 -0
  184. package/dist/src/plugin/transform/claude.d.ts.map +1 -0
  185. package/dist/src/plugin/transform/claude.js +278 -0
  186. package/dist/src/plugin/transform/claude.js.map +1 -0
  187. package/dist/src/plugin/transform/cross-model-sanitizer.d.ts +35 -0
  188. package/dist/src/plugin/transform/cross-model-sanitizer.d.ts.map +1 -0
  189. package/dist/src/plugin/transform/cross-model-sanitizer.js +225 -0
  190. package/dist/src/plugin/transform/cross-model-sanitizer.js.map +1 -0
  191. package/dist/src/plugin/transform/gemini.d.ts +100 -0
  192. package/dist/src/plugin/transform/gemini.d.ts.map +1 -0
  193. package/dist/src/plugin/transform/gemini.js +504 -0
  194. package/dist/src/plugin/transform/gemini.js.map +1 -0
  195. package/dist/src/plugin/transform/index.d.ts +15 -0
  196. package/dist/src/plugin/transform/index.d.ts.map +1 -0
  197. package/dist/src/plugin/transform/index.js +14 -0
  198. package/dist/src/plugin/transform/index.js.map +1 -0
  199. package/dist/src/plugin/transform/model-resolver.d.ts +104 -0
  200. package/dist/src/plugin/transform/model-resolver.d.ts.map +1 -0
  201. package/dist/src/plugin/transform/model-resolver.js +409 -0
  202. package/dist/src/plugin/transform/model-resolver.js.map +1 -0
  203. package/dist/src/plugin/transform/types.d.ts +111 -0
  204. package/dist/src/plugin/transform/types.d.ts.map +1 -0
  205. package/dist/src/plugin/transform/types.js +1 -0
  206. package/dist/src/plugin/transform/types.js.map +1 -0
  207. package/dist/src/plugin/types.d.ts +97 -0
  208. package/dist/src/plugin/types.d.ts.map +1 -0
  209. package/dist/src/plugin/types.js +1 -0
  210. package/dist/src/plugin/types.js.map +1 -0
  211. package/dist/src/plugin/ui/ansi.d.ts +32 -0
  212. package/dist/src/plugin/ui/ansi.d.ts.map +1 -0
  213. package/dist/src/plugin/ui/ansi.js +52 -0
  214. package/dist/src/plugin/ui/ansi.js.map +1 -0
  215. package/dist/src/plugin/ui/auth-menu.d.ts +37 -0
  216. package/dist/src/plugin/ui/auth-menu.d.ts.map +1 -0
  217. package/dist/src/plugin/ui/auth-menu.js +182 -0
  218. package/dist/src/plugin/ui/auth-menu.js.map +1 -0
  219. package/dist/src/plugin/ui/confirm.d.ts +2 -0
  220. package/dist/src/plugin/ui/confirm.d.ts.map +1 -0
  221. package/dist/src/plugin/ui/confirm.js +15 -0
  222. package/dist/src/plugin/ui/confirm.js.map +1 -0
  223. package/dist/src/plugin/ui/select.d.ts +23 -0
  224. package/dist/src/plugin/ui/select.d.ts.map +1 -0
  225. package/dist/src/plugin/ui/select.js +254 -0
  226. package/dist/src/plugin/ui/select.js.map +1 -0
  227. package/dist/src/plugin/version.d.ts +19 -0
  228. package/dist/src/plugin/version.d.ts.map +1 -0
  229. package/dist/src/plugin/version.js +74 -0
  230. package/dist/src/plugin/version.js.map +1 -0
  231. package/dist/src/plugin.d.ts +40 -0
  232. package/dist/src/plugin.d.ts.map +1 -0
  233. package/dist/src/plugin.js +3407 -0
  234. package/dist/src/plugin.js.map +1 -0
  235. package/package.json +73 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugin/transform/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAeH,mBAAmB;AACnB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,cAAc,EACd,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAG1B,oBAAoB;AACpB,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,iCAAiC,EACjC,gCAAgC,GACjC,MAAM,UAAU,CAAC;AAGlB,oBAAoB;AACpB,OAAO,EACL,aAAa,EACb,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAGlB,2BAA2B;AAC3B,OAAO,EACL,yBAAyB,EACzB,gCAAgC,EAChC,cAAc,IAAI,mBAAmB,EACrC,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Model Resolution with Thinking Tier Support
3
+ *
4
+ * Resolves model names with tier suffixes (e.g., gemini-3.1-pro-high, claude-sonnet-4-5-thinking-low)
5
+ * to their actual API model names and corresponding thinking configurations.
6
+ */
7
+ import type { ResolvedModel, GoogleSearchConfig } from "./types";
8
+ export interface ModelResolverOptions {
9
+ cli_first?: boolean;
10
+ }
11
+ /**
12
+ * Thinking tier budgets by model family.
13
+ * Claude and Gemini 2.5 Pro use numeric budgets.
14
+ */
15
+ export declare const THINKING_TIER_BUDGETS: {
16
+ readonly claude: {
17
+ readonly low: 8192;
18
+ readonly medium: 16384;
19
+ readonly high: 32768;
20
+ };
21
+ readonly "gemini-2.5-pro": {
22
+ readonly low: 8192;
23
+ readonly medium: 16384;
24
+ readonly high: 32768;
25
+ };
26
+ readonly "gemini-2.5-flash": {
27
+ readonly low: 6144;
28
+ readonly medium: 12288;
29
+ readonly high: 24576;
30
+ };
31
+ readonly default: {
32
+ readonly low: 4096;
33
+ readonly medium: 8192;
34
+ readonly high: 16384;
35
+ };
36
+ };
37
+ /**
38
+ * Gemini 3 uses thinkingLevel strings instead of numeric budgets.
39
+ * Flash supports: minimal, low, medium, high
40
+ * Pro supports: low, high (no minimal/medium)
41
+ */
42
+ export declare const GEMINI_3_THINKING_LEVELS: readonly ["minimal", "low", "medium", "high"];
43
+ /**
44
+ * Model aliases - maps user-friendly names to API model names.
45
+ *
46
+ * Format:
47
+ * - Gemini 3.1 Pro variants: gemini-3.1-pro-{low,medium,high}
48
+ * - Claude thinking variants: claude-{model}-thinking-{low,medium,high}
49
+ * - Claude non-thinking: claude-{model} (no -thinking suffix)
50
+ */
51
+ export declare const MODEL_ALIASES: Record<string, string>;
52
+ /**
53
+ * Model fallbacks when primary model is unavailable.
54
+ * NOTE: Image models should NOT fall back to non-image models!
55
+ */
56
+ export declare const MODEL_FALLBACKS: Record<string, string>;
57
+ /**
58
+ * Resolves a model name with optional tier suffix and quota prefix to its actual API model name
59
+ * and corresponding thinking configuration.
60
+ *
61
+ * Quota routing:
62
+ * - Default to Antigravity quota unless cli_first is enabled for Gemini models
63
+ * - Fallback to Gemini CLI happens at account rotation level when Antigravity is exhausted
64
+ * - "antigravity-" prefix marks explicit quota (no fallback allowed)
65
+ * - Claude and image models always use Antigravity
66
+ *
67
+ * Examples:
68
+ * - "gemini-2.5-flash" → { quotaPreference: "antigravity" }
69
+ * - "gemini-3.1-pro-preview" → { quotaPreference: "antigravity" }
70
+ * - "antigravity-gemini-3.1-pro-high" → { quotaPreference: "antigravity", explicitQuota: true }
71
+ * - "claude-sonnet-4-5-thinking-medium" → { quotaPreference: "antigravity" }
72
+ *
73
+ * @param requestedModel - The model name from the request
74
+ * @param options - Optional configuration including cli_first preference
75
+ * @returns Resolved model with thinking configuration
76
+ */
77
+ export declare function resolveModelWithTier(requestedModel: string, options?: ModelResolverOptions): ResolvedModel;
78
+ /**
79
+ * Gets the model family for routing decisions.
80
+ */
81
+ export declare function getModelFamily(model: string): "claude" | "gemini-flash" | "gemini-pro";
82
+ /**
83
+ * Variant config from OpenCode's providerOptions.
84
+ */
85
+ export interface VariantConfig {
86
+ thinkingBudget?: number;
87
+ googleSearch?: GoogleSearchConfig;
88
+ }
89
+ /**
90
+ * Resolves model name for a specific headerStyle (quota fallback support).
91
+ * Transforms model names when switching between gemini-cli and antigravity quotas.
92
+ *
93
+ * Issue #103: When quota fallback occurs, model names need to be transformed:
94
+ * - gemini-3-flash-preview (gemini-cli) → gemini-3-flash (antigravity)
95
+ * - gemini-3.1-pro-preview (gemini-cli) → gemini-3.1-pro-low (antigravity)
96
+ * - gemini-3-flash (antigravity) → gemini-3-flash-preview (gemini-cli)
97
+ */
98
+ export declare function resolveModelForHeaderStyle(requestedModel: string, headerStyle: "antigravity" | "gemini-cli"): ResolvedModel;
99
+ /**
100
+ * Resolves model with variant config from providerOptions.
101
+ * Variant config takes priority over tier suffix in model name.
102
+ */
103
+ export declare function resolveModelWithVariant(requestedModel: string, variantConfig?: VariantConfig): ResolvedModel;
104
+ //# sourceMappingURL=model-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-resolver.d.ts","sourceRoot":"","sources":["../../../../src/plugin/transform/model-resolver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,+CAAgD,CAAC;AAEtF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA+BhD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAElD,CAAC;AA+HF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,GAAE,oBAAyB,GAAG,aAAa,CA8H9G;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,CAStF;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC;AAYD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,aAAa,GAAG,YAAY,GACxC,aAAa,CAmCf;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,EACtB,aAAa,CAAC,EAAE,aAAa,GAC5B,aAAa,CAkDf"}
@@ -0,0 +1,409 @@
1
+ /**
2
+ * Model Resolution with Thinking Tier Support
3
+ *
4
+ * Resolves model names with tier suffixes (e.g., gemini-3.1-pro-high, claude-sonnet-4-5-thinking-low)
5
+ * to their actual API model names and corresponding thinking configurations.
6
+ */
7
+ /**
8
+ * Thinking tier budgets by model family.
9
+ * Claude and Gemini 2.5 Pro use numeric budgets.
10
+ */
11
+ export const THINKING_TIER_BUDGETS = {
12
+ claude: { low: 8192, medium: 16384, high: 32768 },
13
+ "gemini-2.5-pro": { low: 8192, medium: 16384, high: 32768 },
14
+ "gemini-2.5-flash": { low: 6144, medium: 12288, high: 24576 },
15
+ default: { low: 4096, medium: 8192, high: 16384 },
16
+ };
17
+ /**
18
+ * Gemini 3 uses thinkingLevel strings instead of numeric budgets.
19
+ * Flash supports: minimal, low, medium, high
20
+ * Pro supports: low, high (no minimal/medium)
21
+ */
22
+ export const GEMINI_3_THINKING_LEVELS = ["minimal", "low", "medium", "high"];
23
+ /**
24
+ * Model aliases - maps user-friendly names to API model names.
25
+ *
26
+ * Format:
27
+ * - Gemini 3.1 Pro variants: gemini-3.1-pro-{low,medium,high}
28
+ * - Claude thinking variants: claude-{model}-thinking-{low,medium,high}
29
+ * - Claude non-thinking: claude-{model} (no -thinking suffix)
30
+ */
31
+ export const MODEL_ALIASES = {
32
+ // Gemini 3 variants - for Gemini CLI only (tier stripped, thinkingLevel used)
33
+ // For Antigravity, these are bypassed and full model name is kept
34
+ "gemini-3.1-pro-low": "gemini-3.1-pro-low",
35
+ "gemini-3.1-pro-high": "gemini-3.1-pro-high",
36
+ "gemini-3-flash-low": "gemini-3-flash",
37
+ "gemini-3-flash-medium": "gemini-3-flash",
38
+ "gemini-3-flash-high": "gemini-3-flash",
39
+ // Claude proxy names (gemini- prefix for compatibility)
40
+ "gemini-claude-sonnet-4-5": "claude-sonnet-4-5",
41
+ "gemini-claude-sonnet-4-5-thinking-low": "claude-sonnet-4-5-thinking",
42
+ "gemini-claude-sonnet-4-5-thinking-medium": "claude-sonnet-4-5-thinking",
43
+ "gemini-claude-sonnet-4-5-thinking-high": "claude-sonnet-4-5-thinking",
44
+ "gemini-claude-sonnet-4-6": "claude-sonnet-4-6",
45
+ // Antigravity exposes Sonnet 4.6 as non-thinking only for now until rolled out
46
+ "gemini-claude-sonnet-4-6-thinking": "claude-sonnet-4-6",
47
+ "claude-sonnet-4-6-thinking": "claude-sonnet-4-6",
48
+ "gemini-claude-sonnet-4-6-thinking-low": "claude-sonnet-4-6",
49
+ "gemini-claude-sonnet-4-6-thinking-medium": "claude-sonnet-4-6",
50
+ "gemini-claude-sonnet-4-6-thinking-high": "claude-sonnet-4-6",
51
+ "gemini-claude-opus-4-5-thinking-low": "claude-opus-4-5-thinking",
52
+ "gemini-claude-opus-4-5-thinking-medium": "claude-opus-4-5-thinking",
53
+ "gemini-claude-opus-4-5-thinking-high": "claude-opus-4-5-thinking",
54
+ "gemini-claude-opus-4-6-thinking-low": "claude-opus-4-6-thinking",
55
+ "gemini-claude-opus-4-6-thinking-medium": "claude-opus-4-6-thinking",
56
+ "gemini-claude-opus-4-6-thinking-high": "claude-opus-4-6-thinking",
57
+ // Image generation models - only gemini-3.1-pro-image is available via Antigravity API
58
+ // Note: gemini-2.5-flash-image (Nano Banana) is NOT supported by Antigravity - only Google AI API
59
+ // Reference: Antigravity-Manager/src-tauri/src/proxy/common/model_mapping.rs
60
+ };
61
+ /**
62
+ * Model fallbacks when primary model is unavailable.
63
+ * NOTE: Image models should NOT fall back to non-image models!
64
+ */
65
+ export const MODEL_FALLBACKS = {
66
+ // No fallbacks for image models - they must stay as image models
67
+ };
68
+ /**
69
+ * Gemini text models verified working in E2E.
70
+ * Non-image Gemini requests are normalized to this allowlist.
71
+ */
72
+ const WORKING_GEMINI_TEXT_MODELS = new Set([
73
+ "gemini-3-flash-preview",
74
+ "gemini-3.1-pro-preview",
75
+ "gemini-2.5-pro",
76
+ "gemini-2.5-flash",
77
+ "gemini-3.1-pro-low",
78
+ "gemini-3.1-pro-high",
79
+ "gemini-3-flash",
80
+ ]);
81
+ /**
82
+ * Legacy/alias Gemini text model redirects toward known working models.
83
+ */
84
+ const LEGACY_GEMINI_TEXT_REDIRECTS = {
85
+ "gemini-pro": "gemini-2.5-pro",
86
+ "gemini-flash": "gemini-2.5-flash",
87
+ "gemini-3.1-pro": "gemini-3.1-pro-preview",
88
+ "gemini-3.1-pro-medium": "gemini-3.1-pro-low",
89
+ "gemini-3.1-pro-minimal": "gemini-3.1-pro-low",
90
+ "gemini-3.1-pro-preview-customtools": "gemini-3.1-pro-preview",
91
+ "gemini-2.5-pro-preview": "gemini-2.5-pro",
92
+ "gemini-2.5-flash-preview": "gemini-2.5-flash",
93
+ };
94
+ const TIER_REGEX = /-(minimal|low|medium|high)$/;
95
+ const QUOTA_PREFIX_REGEX = /^antigravity-/i;
96
+ // ANTIGRAVITY_ONLY_MODELS removed - all models now default to antigravity
97
+ /**
98
+ * Image generation models - always route to Antigravity.
99
+ * These models don't support thinking and require imageConfig.
100
+ */
101
+ const IMAGE_GENERATION_MODELS = /image|imagen/i;
102
+ // Legacy LEGACY_ANTIGRAVITY_GEMINI3 regex removed - all Gemini models now default to antigravity
103
+ /**
104
+ * Models that support thinking tier suffixes.
105
+ * Only these models should have -low/-medium/-high stripped as thinking tiers.
106
+ * GPT models like gpt-oss-120b-medium should NOT have -medium stripped.
107
+ */
108
+ function supportsThinkingTiers(model) {
109
+ const lower = model.toLowerCase();
110
+ return (lower.includes("gemini-3") ||
111
+ lower.includes("gemini-3.1") ||
112
+ lower.includes("gemini-2.5") ||
113
+ (lower.includes("claude") && lower.includes("thinking")));
114
+ }
115
+ /**
116
+ * Extracts thinking tier from model name suffix.
117
+ * Only extracts tier for models that support thinking tiers.
118
+ */
119
+ function extractThinkingTierFromModel(model) {
120
+ // Only extract tier for models that support thinking tiers
121
+ if (!supportsThinkingTiers(model)) {
122
+ return undefined;
123
+ }
124
+ const tierMatch = model.match(TIER_REGEX);
125
+ return tierMatch?.[1];
126
+ }
127
+ /**
128
+ * Determines the budget family for a model.
129
+ */
130
+ function getBudgetFamily(model) {
131
+ if (model.includes("claude")) {
132
+ return "claude";
133
+ }
134
+ if (model.includes("gemini-2.5-pro")) {
135
+ return "gemini-2.5-pro";
136
+ }
137
+ if (model.includes("gemini-2.5-flash")) {
138
+ return "gemini-2.5-flash";
139
+ }
140
+ return "default";
141
+ }
142
+ /**
143
+ * Checks if a model is a thinking-capable model.
144
+ */
145
+ function isThinkingCapableModel(model) {
146
+ const lower = model.toLowerCase();
147
+ return (lower.includes("thinking") ||
148
+ lower.includes("gemini-3") ||
149
+ lower.includes("gemini-3.1") ||
150
+ lower.includes("gemini-2.5"));
151
+ }
152
+ function normalizeGeminiTextModelName(modelWithoutQuota) {
153
+ const lower = modelWithoutQuota.toLowerCase();
154
+ return LEGACY_GEMINI_TEXT_REDIRECTS[lower] ?? lower;
155
+ }
156
+ function assertSupportedGeminiTextModel(requestedModel, resolvedModel) {
157
+ if (WORKING_GEMINI_TEXT_MODELS.has(resolvedModel.toLowerCase())) {
158
+ return;
159
+ }
160
+ const allowed = Array.from(WORKING_GEMINI_TEXT_MODELS)
161
+ .map((m) => `google/${m}`)
162
+ .join(", ");
163
+ throw new Error(`Unsupported Gemini text model '${requestedModel}'. Allowed working models: ${allowed}`);
164
+ }
165
+ function isPureGeminiTextModel(modelWithoutQuota) {
166
+ const lower = modelWithoutQuota.toLowerCase();
167
+ return lower.includes("gemini") && !lower.includes("claude") && !IMAGE_GENERATION_MODELS.test(lower);
168
+ }
169
+ /**
170
+ * Resolves a model name with optional tier suffix and quota prefix to its actual API model name
171
+ * and corresponding thinking configuration.
172
+ *
173
+ * Quota routing:
174
+ * - Default to Antigravity quota unless cli_first is enabled for Gemini models
175
+ * - Fallback to Gemini CLI happens at account rotation level when Antigravity is exhausted
176
+ * - "antigravity-" prefix marks explicit quota (no fallback allowed)
177
+ * - Claude and image models always use Antigravity
178
+ *
179
+ * Examples:
180
+ * - "gemini-2.5-flash" → { quotaPreference: "antigravity" }
181
+ * - "gemini-3.1-pro-preview" → { quotaPreference: "antigravity" }
182
+ * - "antigravity-gemini-3.1-pro-high" → { quotaPreference: "antigravity", explicitQuota: true }
183
+ * - "claude-sonnet-4-5-thinking-medium" → { quotaPreference: "antigravity" }
184
+ *
185
+ * @param requestedModel - The model name from the request
186
+ * @param options - Optional configuration including cli_first preference
187
+ * @returns Resolved model with thinking configuration
188
+ */
189
+ export function resolveModelWithTier(requestedModel, options = {}) {
190
+ const isAntigravity = QUOTA_PREFIX_REGEX.test(requestedModel);
191
+ const originalModelWithoutQuota = requestedModel.replace(QUOTA_PREFIX_REGEX, "");
192
+ const isGeminiModel = originalModelWithoutQuota.toLowerCase().includes("gemini");
193
+ const isImageModel = IMAGE_GENERATION_MODELS.test(originalModelWithoutQuota);
194
+ const isPureGeminiText = isPureGeminiTextModel(originalModelWithoutQuota);
195
+ const modelWithoutQuota = isGeminiModel && !isImageModel
196
+ ? normalizeGeminiTextModelName(originalModelWithoutQuota)
197
+ : originalModelWithoutQuota;
198
+ const tier = extractThinkingTierFromModel(modelWithoutQuota);
199
+ const baseName = tier ? modelWithoutQuota.replace(TIER_REGEX, "") : modelWithoutQuota;
200
+ const isClaudeModel = modelWithoutQuota.toLowerCase().includes("claude");
201
+ // All models default to Antigravity quota unless cli_first is enabled
202
+ // Fallback to gemini-cli happens at the account rotation level when Antigravity is exhausted
203
+ const preferGeminiCli = options.cli_first === true && !isAntigravity && !isImageModel && !isClaudeModel;
204
+ const quotaPreference = preferGeminiCli ? "gemini-cli" : "antigravity";
205
+ const explicitQuota = isAntigravity || isImageModel;
206
+ const isGemini3 = modelWithoutQuota.toLowerCase().startsWith("gemini-3");
207
+ const skipAlias = isAntigravity && (isGemini3 || modelWithoutQuota.toLowerCase().startsWith("gemini-3.1"));
208
+ // For Antigravity Gemini 3.1 Pro models without explicit tier, append default tier (-low)
209
+ // Antigravity API: gemini-3.1-pro requires tier suffix (gemini-3.1-pro-low/high)
210
+ // gemini-3-flash uses bare name + thinkingLevel param
211
+ const isGemini3Pro = /^gemini-3(?:\.\d+)?-pro/i.test(modelWithoutQuota);
212
+ const isGemini3Flash = /^gemini-3(?:\.\d+)?-flash/i.test(modelWithoutQuota);
213
+ let antigravityModel = modelWithoutQuota;
214
+ if (skipAlias) {
215
+ if (isGemini3Pro && !isImageModel) {
216
+ antigravityModel = `gemini-3.1-pro-${tier || "low"}`;
217
+ }
218
+ else if (isGemini3Flash && tier) {
219
+ antigravityModel = baseName;
220
+ }
221
+ }
222
+ const actualModel = skipAlias
223
+ ? antigravityModel
224
+ : MODEL_ALIASES[modelWithoutQuota] || MODEL_ALIASES[baseName] || baseName;
225
+ const resolvedModel = MODEL_FALLBACKS[actualModel] || actualModel;
226
+ const isThinking = isThinkingCapableModel(resolvedModel);
227
+ if (isPureGeminiText) {
228
+ assertSupportedGeminiTextModel(requestedModel, resolvedModel);
229
+ }
230
+ // Image generation models don't support thinking - return early without thinking config
231
+ if (isImageModel) {
232
+ return {
233
+ actualModel: resolvedModel,
234
+ isThinkingModel: false,
235
+ isImageModel: true,
236
+ quotaPreference,
237
+ explicitQuota,
238
+ };
239
+ }
240
+ // Check if this is a Gemini 3 model (works for both aliased and skipAlias paths)
241
+ const isEffectiveGemini3 = /gemini-3(?:\.\d+)?/i.test(resolvedModel);
242
+ const isClaudeThinking = resolvedModel.toLowerCase().includes("claude") && resolvedModel.toLowerCase().includes("thinking");
243
+ if (!tier) {
244
+ // Gemini 3 models without explicit tier get a default thinkingLevel
245
+ if (isEffectiveGemini3) {
246
+ // Both Pro and Flash default to "low" per Google's API docs
247
+ return {
248
+ actualModel: resolvedModel,
249
+ thinkingLevel: "low",
250
+ isThinkingModel: true,
251
+ quotaPreference,
252
+ explicitQuota,
253
+ };
254
+ }
255
+ // Claude thinking models without explicit tier get max budget (32768)
256
+ // Per Anthropic docs, budget_tokens is required when enabling extended thinking
257
+ if (isClaudeThinking) {
258
+ return {
259
+ actualModel: resolvedModel,
260
+ thinkingBudget: THINKING_TIER_BUDGETS.claude.high,
261
+ isThinkingModel: true,
262
+ quotaPreference,
263
+ explicitQuota,
264
+ };
265
+ }
266
+ return { actualModel: resolvedModel, isThinkingModel: isThinking, quotaPreference, explicitQuota };
267
+ }
268
+ // Gemini 3 models with tier always get thinkingLevel set
269
+ if (isEffectiveGemini3) {
270
+ return {
271
+ actualModel: resolvedModel,
272
+ thinkingLevel: tier,
273
+ tier,
274
+ isThinkingModel: true,
275
+ quotaPreference,
276
+ explicitQuota,
277
+ };
278
+ }
279
+ // Tier-suffixed aliases can resolve to non-thinking models (e.g. Sonnet 4.6).
280
+ // In that case, ignore tier/budget and keep the result explicitly non-thinking.
281
+ if (!isThinking) {
282
+ return {
283
+ actualModel: resolvedModel,
284
+ isThinkingModel: false,
285
+ quotaPreference,
286
+ explicitQuota,
287
+ };
288
+ }
289
+ const budgetFamily = getBudgetFamily(resolvedModel);
290
+ const budgets = THINKING_TIER_BUDGETS[budgetFamily];
291
+ const thinkingBudget = budgets[tier];
292
+ return {
293
+ actualModel: resolvedModel,
294
+ thinkingBudget,
295
+ tier,
296
+ isThinkingModel: isThinking,
297
+ quotaPreference,
298
+ explicitQuota,
299
+ };
300
+ }
301
+ /**
302
+ * Gets the model family for routing decisions.
303
+ */
304
+ export function getModelFamily(model) {
305
+ const lower = model.toLowerCase();
306
+ if (lower.includes("claude")) {
307
+ return "claude";
308
+ }
309
+ if (lower.includes("flash")) {
310
+ return "gemini-flash";
311
+ }
312
+ return "gemini-pro";
313
+ }
314
+ /**
315
+ * Maps a thinking budget to Gemini 3 thinking level.
316
+ * ≤8192 → low, ≤16384 → medium, >16384 → high
317
+ */
318
+ function budgetToGemini3Level(budget) {
319
+ if (budget <= 8192)
320
+ return "low";
321
+ if (budget <= 16384)
322
+ return "medium";
323
+ return "high";
324
+ }
325
+ /**
326
+ * Resolves model name for a specific headerStyle (quota fallback support).
327
+ * Transforms model names when switching between gemini-cli and antigravity quotas.
328
+ *
329
+ * Issue #103: When quota fallback occurs, model names need to be transformed:
330
+ * - gemini-3-flash-preview (gemini-cli) → gemini-3-flash (antigravity)
331
+ * - gemini-3.1-pro-preview (gemini-cli) → gemini-3.1-pro-low (antigravity)
332
+ * - gemini-3-flash (antigravity) → gemini-3-flash-preview (gemini-cli)
333
+ */
334
+ export function resolveModelForHeaderStyle(requestedModel, headerStyle) {
335
+ const lower = requestedModel.toLowerCase();
336
+ const isGemini3 = /gemini-3(?:\.\d+)?/i.test(lower);
337
+ if (!isGemini3) {
338
+ return resolveModelWithTier(requestedModel);
339
+ }
340
+ if (headerStyle === "antigravity") {
341
+ let transformedModel = requestedModel
342
+ .replace(/-preview-customtools$/i, "")
343
+ .replace(/-preview$/i, "")
344
+ .replace(/^antigravity-/i, "");
345
+ const prefixedModel = `antigravity-${transformedModel}`;
346
+ return resolveModelWithTier(prefixedModel);
347
+ }
348
+ if (headerStyle === "gemini-cli") {
349
+ let transformedModel = requestedModel
350
+ .replace(/^antigravity-/i, "")
351
+ .replace(/-preview-customtools$/i, "")
352
+ .replace(/-(low|medium|high)$/i, "");
353
+ if (!transformedModel.endsWith("-preview")) {
354
+ transformedModel = `${transformedModel}-preview`;
355
+ }
356
+ return {
357
+ ...resolveModelWithTier(transformedModel),
358
+ quotaPreference: "gemini-cli",
359
+ };
360
+ }
361
+ return resolveModelWithTier(requestedModel);
362
+ }
363
+ /**
364
+ * Resolves model with variant config from providerOptions.
365
+ * Variant config takes priority over tier suffix in model name.
366
+ */
367
+ export function resolveModelWithVariant(requestedModel, variantConfig) {
368
+ const base = resolveModelWithTier(requestedModel);
369
+ if (!variantConfig) {
370
+ return base;
371
+ }
372
+ // Apply Google Search config if present
373
+ if (variantConfig.googleSearch) {
374
+ base.googleSearch = variantConfig.googleSearch;
375
+ base.configSource = "variant";
376
+ }
377
+ // Do not attach thinking budgets to models that are explicitly non-thinking.
378
+ if (!base.isThinkingModel) {
379
+ return base;
380
+ }
381
+ if (!variantConfig.thinkingBudget) {
382
+ return base;
383
+ }
384
+ const budget = variantConfig.thinkingBudget;
385
+ const isGemini3 = base.actualModel.toLowerCase().includes("gemini-3");
386
+ if (isGemini3) {
387
+ const level = budgetToGemini3Level(budget);
388
+ const isAntigravityGemini3Pro = base.quotaPreference === "antigravity" &&
389
+ /^gemini-3(?:\.\d+)?-pro/i.test(base.actualModel);
390
+ let actualModel = base.actualModel;
391
+ if (isAntigravityGemini3Pro) {
392
+ const baseModel = base.actualModel.replace(/-(low|medium|high)$/, "");
393
+ actualModel = `${baseModel}-${level}`;
394
+ }
395
+ return {
396
+ ...base,
397
+ actualModel,
398
+ thinkingLevel: level,
399
+ thinkingBudget: undefined,
400
+ configSource: "variant",
401
+ };
402
+ }
403
+ return {
404
+ ...base,
405
+ thinkingBudget: budget,
406
+ configSource: "variant",
407
+ };
408
+ }
409
+ //# sourceMappingURL=model-resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-resolver.js","sourceRoot":"","sources":["../../../../src/plugin/transform/model-resolver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;IACjD,gBAAgB,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAA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A6E;IAC7E,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,cAAc,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,aAAa,CAAC,cAAc,CAAC;IAC5C,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAEtE,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,KAAK,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,KAAK,aAAa;YACpE,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEpD,IAAI,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACnC,IAAI,uBAAuB,EAAE,CAAC;YAC5B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;YACtE,WAAW,GAAG,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC;QACxC,CAAC;QAED,OAAO;YACL,GAAG,IAAI;YACP,WAAW;YACX,aAAa,EAAE,KAAK;YACpB,cAAc,EAAE,SAAS;YACzB,YAAY,EAAE,SAAS;SACxB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,GAAG,IAAI;QACP,cAAc,EAAE,MAAM;QACtB,YAAY,EAAE,SAAS;KACxB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,111 @@
1
+ import type { HeaderStyle } from "../../constants";
2
+ export type ModelFamily = "claude" | "gemini-flash" | "gemini-pro";
3
+ export type ThinkingTier = "low" | "medium" | "high";
4
+ /**
5
+ * Context for request transformation.
6
+ * Contains all information needed to transform a request payload.
7
+ */
8
+ export interface TransformContext {
9
+ /** The resolved project ID for the API call */
10
+ projectId: string;
11
+ /** The resolved model name (after alias resolution) */
12
+ model: string;
13
+ /** The original model name from the request */
14
+ requestedModel: string;
15
+ /** Model family for routing decisions */
16
+ family: ModelFamily;
17
+ /** Whether this is a streaming request */
18
+ streaming: boolean;
19
+ /** Unique request ID for tracking */
20
+ requestId: string;
21
+ /** Session ID for signature caching */
22
+ sessionId?: string;
23
+ /** Thinking tier if specified via model suffix */
24
+ thinkingTier?: ThinkingTier;
25
+ /** Thinking budget for Claude models (derived from tier) */
26
+ thinkingBudget?: number;
27
+ /** Thinking level for Gemini 3 models (derived from tier) */
28
+ thinkingLevel?: string;
29
+ }
30
+ /**
31
+ * Result of request transformation.
32
+ */
33
+ export interface TransformResult {
34
+ /** The transformed request body as JSON string */
35
+ body: string;
36
+ /** Debug information about the transformation */
37
+ debugInfo: TransformDebugInfo;
38
+ }
39
+ /**
40
+ * Debug information from transformation.
41
+ */
42
+ export interface TransformDebugInfo {
43
+ /** Which transformer was used */
44
+ transformer: "claude" | "gemini";
45
+ /** Number of tools in the request */
46
+ toolCount: number;
47
+ /** Whether tools were transformed */
48
+ toolsTransformed?: boolean;
49
+ /** Thinking tier if resolved */
50
+ thinkingTier?: string;
51
+ /** Thinking budget if set */
52
+ thinkingBudget?: number;
53
+ /** Thinking level if set (Gemini 3) */
54
+ thinkingLevel?: string;
55
+ }
56
+ /**
57
+ * Generic request payload type.
58
+ * The actual structure varies between Claude and Gemini.
59
+ */
60
+ export type RequestPayload = Record<string, unknown>;
61
+ /**
62
+ * Thinking configuration normalized from various input formats.
63
+ */
64
+ export interface ThinkingConfig {
65
+ /** Numeric thinking budget (for Claude and Gemini 2.5) */
66
+ thinkingBudget?: number;
67
+ /** String thinking level (for Gemini 3: 'low', 'medium', 'high') */
68
+ thinkingLevel?: string;
69
+ /** Whether to include thinking in the response */
70
+ includeThoughts?: boolean;
71
+ /** Snake_case variant for Antigravity backend */
72
+ include_thoughts?: boolean;
73
+ }
74
+ /**
75
+ * Google Search Grounding configuration.
76
+ *
77
+ * Note: The new googleSearch API for Gemini 2.0+ does not support threshold
78
+ * configuration. The model automatically decides when to search.
79
+ * The threshold field is kept for backward compatibility but is ignored.
80
+ */
81
+ export interface GoogleSearchConfig {
82
+ mode?: 'auto' | 'off';
83
+ /** @deprecated No longer used - kept for backward compatibility */
84
+ threshold?: number;
85
+ }
86
+ /**
87
+ * Model resolution result with tier information.
88
+ */
89
+ export interface ResolvedModel {
90
+ /** The actual model name for the API call */
91
+ actualModel: string;
92
+ /** Thinking level for Gemini 3 models */
93
+ thinkingLevel?: string;
94
+ /** Thinking budget for Claude/Gemini 2.5 */
95
+ thinkingBudget?: number;
96
+ /** The tier suffix that was extracted */
97
+ tier?: ThinkingTier;
98
+ /** Whether this is a thinking-capable model */
99
+ isThinkingModel?: boolean;
100
+ /** Whether this is an image generation model */
101
+ isImageModel?: boolean;
102
+ /** Quota preference - all models default to antigravity, with CLI as fallback */
103
+ quotaPreference?: HeaderStyle;
104
+ /** Whether user explicitly specified quota via suffix (vs default selection) */
105
+ explicitQuota?: boolean;
106
+ /** Source of thinking config: "variant" (providerOptions) or "tier" (model suffix) */
107
+ configSource?: "variant" | "tier";
108
+ /** Google Search configuration from variant or global config */
109
+ googleSearch?: GoogleSearchConfig;
110
+ }
111
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugin/transform/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C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AW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACtB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gDAAgD;IAChD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,gFAAgF;IAChF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sFAAsF;IACtF,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAClC,gEAAgE;IAChE,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugin/transform/types.ts"],"names":[],"mappings":""}