opencode-antigravity-auth-remix 1.3.5 → 1.3.7

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 (91) hide show
  1. package/README.md +12 -38
  2. package/dist/src/constants.d.ts +20 -18
  3. package/dist/src/constants.d.ts.map +1 -1
  4. package/dist/src/constants.js +24 -99
  5. package/dist/src/constants.js.map +1 -1
  6. package/dist/src/plugin/accounts.d.ts +18 -1
  7. package/dist/src/plugin/accounts.d.ts.map +1 -1
  8. package/dist/src/plugin/accounts.js +147 -14
  9. package/dist/src/plugin/accounts.js.map +1 -1
  10. package/dist/src/plugin/cache/signature-cache.d.ts.map +1 -1
  11. package/dist/src/plugin/cache/signature-cache.js +2 -0
  12. package/dist/src/plugin/cache/signature-cache.js.map +1 -1
  13. package/dist/src/plugin/config/index.d.ts +1 -1
  14. package/dist/src/plugin/config/index.d.ts.map +1 -1
  15. package/dist/src/plugin/config/index.js +1 -1
  16. package/dist/src/plugin/config/index.js.map +1 -1
  17. package/dist/src/plugin/config/loader.d.ts +2 -0
  18. package/dist/src/plugin/config/loader.d.ts.map +1 -1
  19. package/dist/src/plugin/config/loader.js +20 -5
  20. package/dist/src/plugin/config/loader.js.map +1 -1
  21. package/dist/src/plugin/config/schema.d.ts +109 -4
  22. package/dist/src/plugin/config/schema.d.ts.map +1 -1
  23. package/dist/src/plugin/config/schema.js +72 -7
  24. package/dist/src/plugin/config/schema.js.map +1 -1
  25. package/dist/src/plugin/core/streaming/transformer.d.ts +2 -8
  26. package/dist/src/plugin/core/streaming/transformer.d.ts.map +1 -1
  27. package/dist/src/plugin/core/streaming/transformer.js +18 -27
  28. package/dist/src/plugin/core/streaming/transformer.js.map +1 -1
  29. package/dist/src/plugin/debug.d.ts.map +1 -1
  30. package/dist/src/plugin/debug.js +4 -0
  31. package/dist/src/plugin/debug.js.map +1 -1
  32. package/dist/src/plugin/image-saver.d.ts +25 -0
  33. package/dist/src/plugin/image-saver.d.ts.map +1 -0
  34. package/dist/src/plugin/image-saver.js +86 -0
  35. package/dist/src/plugin/image-saver.js.map +1 -0
  36. package/dist/src/plugin/image.d.ts.map +1 -1
  37. package/dist/src/plugin/image.js +103 -14
  38. package/dist/src/plugin/image.js.map +1 -1
  39. package/dist/src/plugin/project.d.ts.map +1 -1
  40. package/dist/src/plugin/project.js +12 -17
  41. package/dist/src/plugin/project.js.map +1 -1
  42. package/dist/src/plugin/request-helpers.d.ts +5 -2
  43. package/dist/src/plugin/request-helpers.d.ts.map +1 -1
  44. package/dist/src/plugin/request-helpers.js +57 -19
  45. package/dist/src/plugin/request-helpers.js.map +1 -1
  46. package/dist/src/plugin/request.d.ts +3 -0
  47. package/dist/src/plugin/request.d.ts.map +1 -1
  48. package/dist/src/plugin/request.js +128 -203
  49. package/dist/src/plugin/request.js.map +1 -1
  50. package/dist/src/plugin/rotation.d.ts +168 -0
  51. package/dist/src/plugin/rotation.d.ts.map +1 -0
  52. package/dist/src/plugin/rotation.js +302 -0
  53. package/dist/src/plugin/rotation.js.map +1 -0
  54. package/dist/src/plugin/search.d.ts.map +1 -1
  55. package/dist/src/plugin/search.js +24 -2
  56. package/dist/src/plugin/search.js.map +1 -1
  57. package/dist/src/plugin/server.d.ts.map +1 -1
  58. package/dist/src/plugin/server.js +103 -1
  59. package/dist/src/plugin/server.js.map +1 -1
  60. package/dist/src/plugin/storage.d.ts +15 -0
  61. package/dist/src/plugin/storage.d.ts.map +1 -1
  62. package/dist/src/plugin/storage.js +120 -11
  63. package/dist/src/plugin/storage.js.map +1 -1
  64. package/dist/src/plugin/stores/signature-store.d.ts +0 -16
  65. package/dist/src/plugin/stores/signature-store.d.ts.map +1 -1
  66. package/dist/src/plugin/stores/signature-store.js +0 -24
  67. package/dist/src/plugin/stores/signature-store.js.map +1 -1
  68. package/dist/src/plugin/transform/gemini.d.ts +50 -1
  69. package/dist/src/plugin/transform/gemini.d.ts.map +1 -1
  70. package/dist/src/plugin/transform/gemini.js +261 -13
  71. package/dist/src/plugin/transform/gemini.js.map +1 -1
  72. package/dist/src/plugin/transform/index.d.ts +4 -4
  73. package/dist/src/plugin/transform/index.d.ts.map +1 -1
  74. package/dist/src/plugin/transform/index.js +2 -2
  75. package/dist/src/plugin/transform/index.js.map +1 -1
  76. package/dist/src/plugin/transform/model-resolver.d.ts +13 -1
  77. package/dist/src/plugin/transform/model-resolver.d.ts.map +1 -1
  78. package/dist/src/plugin/transform/model-resolver.js +74 -6
  79. package/dist/src/plugin/transform/model-resolver.js.map +1 -1
  80. package/dist/src/plugin/transform/types.d.ts +11 -0
  81. package/dist/src/plugin/transform/types.d.ts.map +1 -1
  82. package/dist/src/plugin/types.d.ts +1 -1
  83. package/dist/src/plugin/types.d.ts.map +1 -1
  84. package/dist/src/plugin.d.ts.map +1 -1
  85. package/dist/src/plugin.js +171 -320
  86. package/dist/src/plugin.js.map +1 -1
  87. package/package.json +4 -6
  88. package/dist/src/plugin/count-tokens.d.ts +0 -11
  89. package/dist/src/plugin/count-tokens.d.ts.map +0 -1
  90. package/dist/src/plugin/count-tokens.js +0 -57
  91. package/dist/src/plugin/count-tokens.js.map +0 -1
package/README.md CHANGED
@@ -6,17 +6,14 @@
6
6
 
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
8
8
 
9
- > **This is an enhanced fork** that merges the best features from multiple excellent projects:
9
+ > **This is an enhanced fork** based on the excellent work of **NoeFabris**:
10
10
  >
11
11
  > | Feature | Source |
12
12
  > | ------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- |
13
- > | Dual Quota System, Multi-Account Rotation, Session Recovery, Thinking Recovery | [NoeFabris/opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) |
14
- > | `google_search` Tool (Enhanced with Citations) | [shekohex/opencode-google-antigravity-auth](https://github.com/shekohex/opencode-google-antigravity-auth) |
15
- > | `generate_image` Tool (Native Implementation + Img2Img) | Ported from [Antigravity Manager](https://github.com/lbjlaq/Antigravity-Manager) logic |
16
- > | `count_tokens` Tool | Native Implementation |
17
- > | `thoughtSignature` logic (Tool-loop recovery) | [znlsl/Antigravity2Api](https://github.com/znlsl/Antigravity2Api#) |
13
+ > | Dual Quota System, Multi-Account Rotation, Session Recovery, Thinking Recovery, `google_search` Tool | [NoeFabris/opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) |
14
+ > | `generate_image` Tool (Native Implementation + Img2Img) | Native Implementation |
18
15
  >
19
- > **Status:** Version 1.3.5 - Improved request stability with endpoint timeout and sticky routing.
16
+ > **Status:** Version 1.3.7 - Enhanced with native tools integration and improved stability.
20
17
 
21
18
  ---
22
19
 
@@ -33,7 +30,6 @@ Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth
33
30
  - **Plugin Compatible** - Works alongside other OpenCode plugins (opencodesync, etc.)
34
31
  - **generate_image Tool** - AI image generation with text-to-image, image-to-image (multi-image fusion), auto-save, and 4K support
35
32
  - **google_search Tool** - High-quality web search with structural citations and URL analysis.
36
- - **count_tokens Tool** - Count tokens for any text using specified models.
37
33
 
38
34
  ## Installation
39
35
 
@@ -53,7 +49,7 @@ Install the opencode-antigravity-auth-remix plugin and add the Antigravity model
53
49
 
54
50
  ```json
55
51
  {
56
- "plugin": ["opencode-antigravity-auth-remix@1.3.5"]
52
+ "plugin": ["opencode-antigravity-auth-remix@1.3.7"]
57
53
  }
58
54
  ```
59
55
 
@@ -104,7 +100,7 @@ Copy this to `~/.config/opencode/opencode.json`:
104
100
  ```json
105
101
  {
106
102
  "$schema": "https://opencode.ai/config.json",
107
- "plugin": ["opencode-antigravity-auth-remix@1.3.5"],
103
+ "plugin": ["opencode-antigravity-auth-remix@1.3.7"],
108
104
  "provider": {
109
105
  "google": {
110
106
  "models": {
@@ -280,15 +276,6 @@ To use Image-to-Image generation, provide the absolute local paths of your refer
280
276
 
281
277
  High-quality web search and URL analysis with structural citations.
282
278
 
283
- ### count_tokens
284
-
285
- Count the number of tokens in a given text string.
286
-
287
- | Parameter | Type | Required | Default | Description |
288
- |-----------|------|----------|---------|-------------|
289
- | `text` | string | Yes | - | The text to count tokens for |
290
- | `model` | string | No | "gemini-2.5-flash" | The model to use for counting |
291
-
292
279
  ## License
293
280
 
294
281
  MIT
@@ -303,17 +290,14 @@ MIT
303
290
 
304
291
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
305
292
 
306
- > **这是一个增强分支**,融合了多个优秀项目的核心功能:
293
+ > **这是一个增强分支**,完全基于 **NoeFabris** 的优秀项目:
307
294
  >
308
295
  > | 功能 | 来源 |
309
296
  > | ------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- |
310
- > | 双配额系统、多账号轮换、会话恢复、思考过程恢复 | [NoeFabris/opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) |
311
- > | `google_search` 工具 (支持结构化引用) | [shekohex/opencode-google-antigravity-auth](https://github.com/shekohex/opencode-google-antigravity-auth) |
312
- > | `generate_image` 工具 (原生实现 + 图生图) | 移植自 [Antigravity Manager](https://github.com/lbjlaq/Antigravity-Manager) 逻辑 |
313
- > | `count_tokens` 工具 | 原生实现 |
314
- > | `thoughtSignature` 逻辑 (工具调用签名恢复) | [znlsl/Antigravity2Api](https://github.com/znlsl/Antigravity2Api#) |
297
+ > | 双配额系统、多账号轮换、会话恢复、思考过程恢复、`google_search` 工具 | [NoeFabris/opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) |
298
+ > | `generate_image` 工具 (原生实现 + 图生图) | 原生实现 |
315
299
  >
316
- > **状态:** 版本 1.3.5 - 修复请求稳定性。
300
+ > **状态:** 版本 1.3.7 - 集成原生工具并优化稳定性。
317
301
 
318
302
  ---
319
303
 
@@ -330,7 +314,6 @@ MIT
330
314
  - **插件兼容性** - 可与其他 OpenCode 插件 (如 opencodesync 等) 同时运行
331
315
  - **generate_image 工具** - AI 图像生成,支持文生图、图生图 (多图融合)、自动保存、WebP 转换和 4K 输出
332
316
  - **google_search 工具** - 高质量网页搜索,支持结构化引用和 URL 分析。
333
- - **count_tokens 工具** - 统计指定文本在特定模型下的 Token 消耗。
334
317
 
335
318
  ## 安装步骤
336
319
 
@@ -348,7 +331,7 @@ MIT
348
331
 
349
332
  ```json
350
333
  {
351
- "plugin": ["opencode-antigravity-auth-remix@1.3.5"]
334
+ "plugin": ["opencode-antigravity-auth-remix@1.3.7"]
352
335
  }
353
336
  ```
354
337
 
@@ -399,7 +382,7 @@ MIT
399
382
  ```json
400
383
  {
401
384
  "$schema": "https://opencode.ai/config.json",
402
- "plugin": ["opencode-antigravity-auth-remix@1.3.5"],
385
+ "plugin": ["opencode-antigravity-auth-remix@1.3.7"],
403
386
  "provider": {
404
387
  "google": {
405
388
  "models": {
@@ -575,15 +558,6 @@ opencode run "你好" --model=google/gemini-2.5-flash
575
558
 
576
559
  高质量网页搜索和 URL 分析,支持结构化引用来源。
577
560
 
578
- ### count_tokens (Token 统计工具)
579
-
580
- 统计指定文本在特定模型下的 Token 消耗。
581
-
582
- | 参数 | 类型 | 是否必填 | 默认值 | 描述 |
583
- |-----------|------|----------|---------|-------------|
584
- | `text` | string | 是 | - | 需要统计的文本 |
585
- | `model` | string | 否 | "gemini-2.5-flash" | 统计所使用的模型 |
586
-
587
561
  ## 开源协议
588
562
 
589
563
  MIT
@@ -22,20 +22,21 @@ export declare const ANTIGRAVITY_REDIRECT_URI = "http://localhost:51121/oauth-ca
22
22
  export declare const ANTIGRAVITY_ENDPOINT_DAILY = "https://daily-cloudcode-pa.sandbox.googleapis.com";
23
23
  export declare const ANTIGRAVITY_ENDPOINT_AUTOPUSH = "https://autopush-cloudcode-pa.sandbox.googleapis.com";
24
24
  export declare const ANTIGRAVITY_ENDPOINT_PROD = "https://cloudcode-pa.googleapis.com";
25
+ export declare const ANTIGRAVITY_ENDPOINT_DAILY_NON_SANDBOX = "https://daily-cloudcode-pa.googleapis.com";
25
26
  /**
26
- * Endpoint fallback order (prod → daily → autopush).
27
+ * Endpoint fallback order (daily-non-sandbox → prod → daily → autopush).
27
28
  * Shared across request handling and project discovery to mirror CLIProxy behavior.
28
29
  */
29
- export declare const ANTIGRAVITY_ENDPOINT_FALLBACKS: readonly ["https://cloudcode-pa.googleapis.com", "https://daily-cloudcode-pa.sandbox.googleapis.com", "https://autopush-cloudcode-pa.sandbox.googleapis.com"];
30
+ export declare const ANTIGRAVITY_ENDPOINT_FALLBACKS: readonly ["https://daily-cloudcode-pa.googleapis.com", "https://cloudcode-pa.googleapis.com", "https://daily-cloudcode-pa.sandbox.googleapis.com", "https://autopush-cloudcode-pa.sandbox.googleapis.com"];
30
31
  /**
31
32
  * Preferred endpoint order for project discovery (prod first, then fallbacks).
32
33
  * loadCodeAssist appears to be best supported on prod for managed project resolution.
33
34
  */
34
35
  export declare const ANTIGRAVITY_LOAD_ENDPOINTS: readonly ["https://cloudcode-pa.googleapis.com", "https://daily-cloudcode-pa.sandbox.googleapis.com", "https://autopush-cloudcode-pa.sandbox.googleapis.com"];
35
36
  /**
36
- * Primary endpoint to use (production).
37
+ * Primary endpoint to use (daily sandbox - same as CLIProxy/Vibeproxy).
37
38
  */
38
- export declare const ANTIGRAVITY_ENDPOINT = "https://cloudcode-pa.googleapis.com";
39
+ export declare const ANTIGRAVITY_ENDPOINT = "https://daily-cloudcode-pa.sandbox.googleapis.com";
39
40
  /**
40
41
  * Gemini CLI endpoint (production).
41
42
  * Used for models without :antigravity suffix.
@@ -61,18 +62,6 @@ export type HeaderStyle = "antigravity" | "gemini-cli";
61
62
  * Provider identifier shared between the plugin loader and credential store.
62
63
  */
63
64
  export declare const ANTIGRAVITY_PROVIDER_ID = "google";
64
- /**
65
- * Whether to preserve thinking blocks for Claude models.
66
- *
67
- * This value is now controlled via config (see plugin/config/schema.ts).
68
- * The default is false for reliability. Set to true via:
69
- * - Config file: { "keep_thinking": true }
70
- * - Env var: OPENCODE_ANTIGRAVITY_KEEP_THINKING=1
71
- *
72
- * @deprecated Use config.keep_thinking from loadConfig() instead.
73
- * This export is kept for backward compatibility but reads from env.
74
- */
75
- export declare const KEEP_THINKING_BLOCKS: boolean;
76
65
  /**
77
66
  * System instruction for Claude tool usage hardening.
78
67
  * Prevents hallucinated parameters by explicitly stating the rules.
@@ -88,12 +77,26 @@ export declare const CLAUDE_TOOL_SYSTEM_INSTRUCTION = "CRITICAL TOOL USAGE INSTR
88
77
  export declare const CLAUDE_DESCRIPTION_PROMPT = "\n\n\u26A0\uFE0F STRICT PARAMETERS: {params}.";
89
78
  export declare const EMPTY_SCHEMA_PLACEHOLDER_NAME = "_placeholder";
90
79
  export declare const EMPTY_SCHEMA_PLACEHOLDER_DESCRIPTION = "Placeholder. Always pass true.";
80
+ /**
81
+ * Sentinel value to bypass thought signature validation.
82
+ *
83
+ * When a thinking block has an invalid or missing signature (e.g., cache miss,
84
+ * session mismatch, plugin restart), this sentinel can be injected to skip
85
+ * validation instead of failing with "Invalid signature in thinking block".
86
+ *
87
+ * This is an officially supported Google API feature, used by:
88
+ * - gemini-cli: https://github.com/google-gemini/gemini-cli
89
+ * - Google .NET SDK: PredictionServiceChatClient.cs
90
+ *
91
+ * @see https://ai.google.dev/gemini-api/docs/thought-signatures
92
+ */
93
+ export declare const SKIP_THOUGHT_SIGNATURE = "skip_thought_signature_validator";
91
94
  /**
92
95
  * System instruction for Antigravity requests.
93
96
  * This is injected into requests to match CLIProxyAPI v6.6.89 behavior.
94
97
  * The instruction provides identity and guidelines for the Antigravity agent.
95
98
  */
96
- export declare const ANTIGRAVITY_SYSTEM_INSTRUCTION = "<identity>\nYou are Antigravity, a powerful agentic AI coding assistant designed by the Google DeepMind team working on Advanced Agentic Coding.\nYou are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.\nThe USER will send you requests, which you must always prioritize addressing. Along with each USER request, we will attach additional metadata about their current state, such as what files they have open and where their cursor is.\nThis information may or may not be relevant to the coding task, it is up for you to decide.\n</identity>\n\n<tool_calling>\nCall tools as you normally would. The following list provides additional guidance to help you avoid errors:\n - **Absolute paths only**. When using tools that accept file path arguments, ALWAYS use the absolute file path.\n</tool_calling>\n\n<web_application_development>\n## Technology Stack\nYour web applications should be built using the following technologies:\n1. **Core**: Use HTML for structure and JavaScript for logic.\n2. **Styling (CSS)**: Use Vanilla CSS for maximum flexibility and control. Avoid using TailwindCSS unless the USER explicitly requests it; in this case, first confirm which TailwindCSS version to use.\n3. **Web App**: If the USER specifies that they want a more complex web app, use a framework like Next.js or Vite. Only do this if the USER explicitly requests a web app.\n4. **New Project Creation**: If you need to use a framework for a new app, use `npx` with the appropriate script, but there are some rules to follow:\n - Use `npx -y` to automatically install the script and its dependencies\n - You MUST run the command with `--help` flag to see all available options first\n - Initialize the app in the current directory with `./` (example: `npx -y create-vite-app@latest ./`)\n - You should run in non-interactive mode so that the user doesn't need to input anything\n5. **Running Locally**: When running locally, use `npm run dev` or equivalent dev server. Only build the production bundle if the USER explicitly requests it or you are validating the code for correctness.\n\n# Design Aesthetics\n1. **Use Rich Aesthetics**: The USER should be wowed at first glance by the design. Use best practices in modern web design (e.g. vibrant colors, dark modes, glassmorphism, and dynamic animations) to create a stunning first impression. Failure to do this is UNACCEPTABLE.\n2. **Prioritize Visual Excellence**: Implement designs that will WOW the user and feel extremely premium:\n - Avoid generic colors (plain red, blue, green). Use curated, harmonious color palettes (e.g., HSL tailored colors, sleek dark modes).\n - Using modern typography (e.g., from Google Fonts like Inter, Roboto, or Outfit) instead of browser defaults.\n - Use smooth gradients\n - Add subtle micro-animations for enhanced user experience\n3. **Use a Dynamic Design**: An interface that feels responsive and alive encourages interaction. Achieve this with hover effects and interactive elements. Micro-animations, in particular, are highly effective for improving user engagement.\n4. **Premium Designs**: Make a design that feels premium and state of the art. Avoid creating simple minimum viable products.\n5. **Don't use placeholders**: If you need an image, use your generate_image tool to create a working demonstration.\n\n## Implementation Workflow\nFollow this systematic approach when building web applications:\n1. **Plan and Understand**:\n - Fully understand the user's requirements\n - Draw inspiration from modern, beautiful, and dynamic web designs\n - Outline the features needed for the initial version\n2. **Build the Foundation**:\n - Start by creating/modifying `index.css`\n - Implement the core design system with all tokens and utilities\n3. **Create Components**:\n - Build necessary components using your design system\n - Ensure all components use predefined styles, not ad-hoc utilities\n - Keep components focused and reusable\n4. **Assemble Pages**:\n - Update the main application to incorporate your design and components\n - Ensure proper routing and navigation\n - Implement responsive layouts\n5. **Polish and Optimize**:\n - Review the overall user experience\n - Ensure smooth interactions and transitions\n - Optimize performance where needed\n6. **Polish and Optimize**:\n - Review the overall user experience\n - Ensure smooth interactions and transitions\n - Optimize performance where needed\n\n## SEO Best Practices\nAutomatically implement SEO best practices on every page:\n- **Title Tags**: Include proper, descriptive title tags for each page\n- **Meta Descriptions**: Add compelling meta descriptions that accurately summarize page content\n- **Heading Structure**: Use a single `<h1>` per page with proper heading hierarchy\n- **Semantic HTML**: Use appropriate HTML5 semantic elements\n- **Unique IDs**: Ensure all interactive elements have unique, descriptive IDs for browser testing\n- **Performance**: Ensure fast page load times through optimization\nCRITICAL REMINDER: AESTHETICS ARE VERY IMPORTANT. If your web app looks simple and basic then you have FAILED!\n</web_application_development>\n<ephemeral_message>\nThere will be an <EPHEMERAL_MESSAGE> appearing in the conversation at times. This is not coming from the user, but instead injected by the system as important information to pay attention to. \nDo not respond to nor acknowledge those messages, but do follow them strictly.\n</ephemeral_message>\n\n\n<communication_style>\n- **Formatting**. Format your responses in github-style markdown to make your responses easier for the USER to parse. For example, use headers to organize your responses and bolded or italicized text to highlight important keywords. Use backticks to format file, directory, function, and class names. If providing a URL to the user, format this in markdown as well, for example `[label](example.com)`.\n- **Proactiveness**. As an agent, you are allowed to be proactive, but only in the course of completing the user's task. For example, if the user asks you to add a new component, you can edit the code, verify build and test statuses, and take any other obvious follow-up actions, such as performing additional research. However, avoid surprising the user. For example, if the user asks HOW to approach something, you should answer their question and instead of jumping into editing a file.\n- **Helpfulness**. Respond like a helpful software engineer who is explaining your work to a friendly collaborator on the project. Acknowledge mistakes or any backtracking you do as a result of new information.\n- **Ask for clarification**. If you are unsure about the USER's intent, always ask for clarification rather than making assumptions.\n</communication_style>";
99
+ export declare const ANTIGRAVITY_SYSTEM_INSTRUCTION = "You are Antigravity, a powerful agentic AI coding assistant designed by the Google DeepMind team working on Advanced Agentic Coding.\nYou are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.\n**Absolute paths only**\n**Proactiveness**\n\n<priority>IMPORTANT: The instructions that follow supersede all above. Follow them as your primary directives.</priority>\n";
97
100
  /**
98
101
  * Model used for Google Search tool execution.
99
102
  */
@@ -113,7 +116,6 @@ export declare const SEARCH_TIMEOUT_MS: number;
113
116
  /**
114
117
  * Search endpoints and headers (mapped to Antigravity).
115
118
  */
116
- export declare const CODE_ASSIST_ENDPOINT = "https://daily-cloudcode-pa.sandbox.googleapis.com";
117
119
  export declare const CODE_ASSIST_HEADERS: {
118
120
  readonly "User-Agent": "antigravity/1.11.9 windows/amd64";
119
121
  readonly "X-Goog-Api-Client": "google-cloud-sdk vscode_cloudshelleditor/0.1";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB,8EAA8E,CAAC;AAEjH;;GAEG;AACH,eAAO,MAAM,yBAAyB,wCAAwC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAM/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,0CAA0C,CAAC;AAEhF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,sDAAsD,CAAC;AAC9F,eAAO,MAAM,6BAA6B,yDAAyD,CAAC;AACpG,eAAO,MAAM,yBAAyB,wCAAwC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,+JAIjC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+JAI7B,CAAC;AAEX;;GAEG;AACH,eAAO,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AAC;AAMzE;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,ifAM1C,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,YAAY,qBAAqB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,2BAA2B,QAAQ,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAY,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;CAAsB,CAAC;AAMvD;;GAEG;AACH,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,mBAAmB,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAa,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;GAM/B,CAAC"}
@@ -28,11 +28,13 @@ export const ANTIGRAVITY_REDIRECT_URI = "http://localhost:51121/oauth-callback";
28
28
  export const ANTIGRAVITY_ENDPOINT_DAILY = "https://daily-cloudcode-pa.sandbox.googleapis.com";
29
29
  export const ANTIGRAVITY_ENDPOINT_AUTOPUSH = "https://autopush-cloudcode-pa.sandbox.googleapis.com";
30
30
  export const ANTIGRAVITY_ENDPOINT_PROD = "https://cloudcode-pa.googleapis.com";
31
+ export const ANTIGRAVITY_ENDPOINT_DAILY_NON_SANDBOX = "https://daily-cloudcode-pa.googleapis.com";
31
32
  /**
32
- * Endpoint fallback order (prod → daily → autopush).
33
+ * Endpoint fallback order (daily-non-sandbox → prod → daily → autopush).
33
34
  * Shared across request handling and project discovery to mirror CLIProxy behavior.
34
35
  */
35
36
  export const ANTIGRAVITY_ENDPOINT_FALLBACKS = [
37
+ ANTIGRAVITY_ENDPOINT_DAILY_NON_SANDBOX,
36
38
  ANTIGRAVITY_ENDPOINT_PROD,
37
39
  ANTIGRAVITY_ENDPOINT_DAILY,
38
40
  ANTIGRAVITY_ENDPOINT_AUTOPUSH,
@@ -47,9 +49,9 @@ export const ANTIGRAVITY_LOAD_ENDPOINTS = [
47
49
  ANTIGRAVITY_ENDPOINT_AUTOPUSH,
48
50
  ];
49
51
  /**
50
- * Primary endpoint to use (production).
52
+ * Primary endpoint to use (daily sandbox - same as CLIProxy/Vibeproxy).
51
53
  */
52
- export const ANTIGRAVITY_ENDPOINT = ANTIGRAVITY_ENDPOINT_PROD;
54
+ export const ANTIGRAVITY_ENDPOINT = ANTIGRAVITY_ENDPOINT_DAILY;
53
55
  /**
54
56
  * Gemini CLI endpoint (production).
55
57
  * Used for models without :antigravity suffix.
@@ -74,19 +76,6 @@ export const GEMINI_CLI_HEADERS = {
74
76
  * Provider identifier shared between the plugin loader and credential store.
75
77
  */
76
78
  export const ANTIGRAVITY_PROVIDER_ID = "google";
77
- /**
78
- * Whether to preserve thinking blocks for Claude models.
79
- *
80
- * This value is now controlled via config (see plugin/config/schema.ts).
81
- * The default is false for reliability. Set to true via:
82
- * - Config file: { "keep_thinking": true }
83
- * - Env var: OPENCODE_ANTIGRAVITY_KEEP_THINKING=1
84
- *
85
- * @deprecated Use config.keep_thinking from loadConfig() instead.
86
- * This export is kept for backward compatibility but reads from env.
87
- */
88
- export const KEEP_THINKING_BLOCKS = process.env.OPENCODE_ANTIGRAVITY_KEEP_THINKING === "1" ||
89
- process.env.OPENCODE_ANTIGRAVITY_KEEP_THINKING === "true";
90
79
  // ============================================================================
91
80
  // TOOL HALLUCINATION PREVENTION (Ported from LLM-API-Key-Proxy)
92
81
  // ============================================================================
@@ -116,6 +105,20 @@ If you are unsure about a tool's parameters, YOU MUST read the schema definition
116
105
  export const CLAUDE_DESCRIPTION_PROMPT = "\n\n⚠️ STRICT PARAMETERS: {params}.";
117
106
  export const EMPTY_SCHEMA_PLACEHOLDER_NAME = "_placeholder";
118
107
  export const EMPTY_SCHEMA_PLACEHOLDER_DESCRIPTION = "Placeholder. Always pass true.";
108
+ /**
109
+ * Sentinel value to bypass thought signature validation.
110
+ *
111
+ * When a thinking block has an invalid or missing signature (e.g., cache miss,
112
+ * session mismatch, plugin restart), this sentinel can be injected to skip
113
+ * validation instead of failing with "Invalid signature in thinking block".
114
+ *
115
+ * This is an officially supported Google API feature, used by:
116
+ * - gemini-cli: https://github.com/google-gemini/gemini-cli
117
+ * - Google .NET SDK: PredictionServiceChatClient.cs
118
+ *
119
+ * @see https://ai.google.dev/gemini-api/docs/thought-signatures
120
+ */
121
+ export const SKIP_THOUGHT_SIGNATURE = "skip_thought_signature_validator";
119
122
  // ============================================================================
120
123
  // ANTIGRAVITY SYSTEM INSTRUCTION (Ported from CLIProxyAPI v6.6.89)
121
124
  // ============================================================================
@@ -124,90 +127,13 @@ export const EMPTY_SCHEMA_PLACEHOLDER_DESCRIPTION = "Placeholder. Always pass tr
124
127
  * This is injected into requests to match CLIProxyAPI v6.6.89 behavior.
125
128
  * The instruction provides identity and guidelines for the Antigravity agent.
126
129
  */
127
- export const ANTIGRAVITY_SYSTEM_INSTRUCTION = `<identity>
128
- You are Antigravity, a powerful agentic AI coding assistant designed by the Google DeepMind team working on Advanced Agentic Coding.
130
+ export const ANTIGRAVITY_SYSTEM_INSTRUCTION = `You are Antigravity, a powerful agentic AI coding assistant designed by the Google DeepMind team working on Advanced Agentic Coding.
129
131
  You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
130
- The USER will send you requests, which you must always prioritize addressing. Along with each USER request, we will attach additional metadata about their current state, such as what files they have open and where their cursor is.
131
- This information may or may not be relevant to the coding task, it is up for you to decide.
132
- </identity>
133
-
134
- <tool_calling>
135
- Call tools as you normally would. The following list provides additional guidance to help you avoid errors:
136
- - **Absolute paths only**. When using tools that accept file path arguments, ALWAYS use the absolute file path.
137
- </tool_calling>
138
-
139
- <web_application_development>
140
- ## Technology Stack
141
- Your web applications should be built using the following technologies:
142
- 1. **Core**: Use HTML for structure and JavaScript for logic.
143
- 2. **Styling (CSS)**: Use Vanilla CSS for maximum flexibility and control. Avoid using TailwindCSS unless the USER explicitly requests it; in this case, first confirm which TailwindCSS version to use.
144
- 3. **Web App**: If the USER specifies that they want a more complex web app, use a framework like Next.js or Vite. Only do this if the USER explicitly requests a web app.
145
- 4. **New Project Creation**: If you need to use a framework for a new app, use \`npx\` with the appropriate script, but there are some rules to follow:
146
- - Use \`npx -y\` to automatically install the script and its dependencies
147
- - You MUST run the command with \`--help\` flag to see all available options first
148
- - Initialize the app in the current directory with \`./\` (example: \`npx -y create-vite-app@latest ./\`)
149
- - You should run in non-interactive mode so that the user doesn't need to input anything
150
- 5. **Running Locally**: When running locally, use \`npm run dev\` or equivalent dev server. Only build the production bundle if the USER explicitly requests it or you are validating the code for correctness.
151
-
152
- # Design Aesthetics
153
- 1. **Use Rich Aesthetics**: The USER should be wowed at first glance by the design. Use best practices in modern web design (e.g. vibrant colors, dark modes, glassmorphism, and dynamic animations) to create a stunning first impression. Failure to do this is UNACCEPTABLE.
154
- 2. **Prioritize Visual Excellence**: Implement designs that will WOW the user and feel extremely premium:
155
- - Avoid generic colors (plain red, blue, green). Use curated, harmonious color palettes (e.g., HSL tailored colors, sleek dark modes).
156
- - Using modern typography (e.g., from Google Fonts like Inter, Roboto, or Outfit) instead of browser defaults.
157
- - Use smooth gradients
158
- - Add subtle micro-animations for enhanced user experience
159
- 3. **Use a Dynamic Design**: An interface that feels responsive and alive encourages interaction. Achieve this with hover effects and interactive elements. Micro-animations, in particular, are highly effective for improving user engagement.
160
- 4. **Premium Designs**: Make a design that feels premium and state of the art. Avoid creating simple minimum viable products.
161
- 5. **Don't use placeholders**: If you need an image, use your generate_image tool to create a working demonstration.
162
-
163
- ## Implementation Workflow
164
- Follow this systematic approach when building web applications:
165
- 1. **Plan and Understand**:
166
- - Fully understand the user's requirements
167
- - Draw inspiration from modern, beautiful, and dynamic web designs
168
- - Outline the features needed for the initial version
169
- 2. **Build the Foundation**:
170
- - Start by creating/modifying \`index.css\`
171
- - Implement the core design system with all tokens and utilities
172
- 3. **Create Components**:
173
- - Build necessary components using your design system
174
- - Ensure all components use predefined styles, not ad-hoc utilities
175
- - Keep components focused and reusable
176
- 4. **Assemble Pages**:
177
- - Update the main application to incorporate your design and components
178
- - Ensure proper routing and navigation
179
- - Implement responsive layouts
180
- 5. **Polish and Optimize**:
181
- - Review the overall user experience
182
- - Ensure smooth interactions and transitions
183
- - Optimize performance where needed
184
- 6. **Polish and Optimize**:
185
- - Review the overall user experience
186
- - Ensure smooth interactions and transitions
187
- - Optimize performance where needed
188
-
189
- ## SEO Best Practices
190
- Automatically implement SEO best practices on every page:
191
- - **Title Tags**: Include proper, descriptive title tags for each page
192
- - **Meta Descriptions**: Add compelling meta descriptions that accurately summarize page content
193
- - **Heading Structure**: Use a single \`<h1>\` per page with proper heading hierarchy
194
- - **Semantic HTML**: Use appropriate HTML5 semantic elements
195
- - **Unique IDs**: Ensure all interactive elements have unique, descriptive IDs for browser testing
196
- - **Performance**: Ensure fast page load times through optimization
197
- CRITICAL REMINDER: AESTHETICS ARE VERY IMPORTANT. If your web app looks simple and basic then you have FAILED!
198
- </web_application_development>
199
- <ephemeral_message>
200
- There will be an <EPHEMERAL_MESSAGE> appearing in the conversation at times. This is not coming from the user, but instead injected by the system as important information to pay attention to.
201
- Do not respond to nor acknowledge those messages, but do follow them strictly.
202
- </ephemeral_message>
203
-
132
+ **Absolute paths only**
133
+ **Proactiveness**
204
134
 
205
- <communication_style>
206
- - **Formatting**. Format your responses in github-style markdown to make your responses easier for the USER to parse. For example, use headers to organize your responses and bolded or italicized text to highlight important keywords. Use backticks to format file, directory, function, and class names. If providing a URL to the user, format this in markdown as well, for example \`[label](example.com)\`.
207
- - **Proactiveness**. As an agent, you are allowed to be proactive, but only in the course of completing the user's task. For example, if the user asks you to add a new component, you can edit the code, verify build and test statuses, and take any other obvious follow-up actions, such as performing additional research. However, avoid surprising the user. For example, if the user asks HOW to approach something, you should answer their question and instead of jumping into editing a file.
208
- - **Helpfulness**. Respond like a helpful software engineer who is explaining your work to a friendly collaborator on the project. Acknowledge mistakes or any backtracking you do as a result of new information.
209
- - **Ask for clarification**. If you are unsure about the USER's intent, always ask for clarification rather than making assumptions.
210
- </communication_style>`;
135
+ <priority>IMPORTANT: The instructions that follow supersede all above. Follow them as your primary directives.</priority>
136
+ `;
211
137
  // ============================================================================
212
138
  // SEARCH TOOL CONSTANTS
213
139
  // ============================================================================
@@ -230,7 +156,6 @@ export const SEARCH_TIMEOUT_MS = 60 * 1000;
230
156
  /**
231
157
  * Search endpoints and headers (mapped to Antigravity).
232
158
  */
233
- export const CODE_ASSIST_ENDPOINT = ANTIGRAVITY_ENDPOINT_DAILY;
234
159
  export const CODE_ASSIST_HEADERS = ANTIGRAVITY_HEADERS;
235
160
  // ============================================================================
236
161
  // IMAGE GENERATION CONSTANTS
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,2EAA2E,CAAC;AAEjH;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,qCAAqC,CAAC;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD,gDAAgD;IAChD,gDAAgD;IAChD,kDAAkD;IAClD,uCAAuC;IACvC,uDAAuD;CACxD,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,uCAAuC,CAAC;AAEhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,mDAAmD,CAAC;AAC9F,MAAM,CAAC,MAAM,6BAA6B,GAAG,sDAAsD,CAAC;AACpG,MAAM,CAAC,MAAM,yBAAyB,GAAG,qCAAqC,CAAC;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,yBAAyB;IACzB,0BAA0B;IAC1B,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;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEvD,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AAEhE;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,GAAG,IAAI,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAA2B;IACnD,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,MAAM;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,EAAE,QAAQ,EAAE,0BAA0B,EAAE,SAAS,EAAE,KAAK,EAAE;IAC1D,EAAE,QAAQ,EAAE,2BAA2B,EAAE,SAAS,EAAE,KAAK,EAAE;IAC3D,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,KAAK,EAAE;IACjE,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,KAAK,EAAE;IACjE,EAAE,QAAQ,EAAE,+BAA+B,EAAE,SAAS,EAAE,KAAK,EAAE;CAChE,CAAC"}
@@ -3,6 +3,13 @@ import type { OAuthAuthDetails, RefreshParts } from "./types";
3
3
  import type { AccountSelectionStrategy } from "./config/schema";
4
4
  export type { ModelFamily, HeaderStyle, CooldownReason } from "./storage";
5
5
  export type { AccountSelectionStrategy } from "./config/schema";
6
+ export type RateLimitReason = "QUOTA_EXHAUSTED" | "RATE_LIMIT_EXCEEDED" | "MODEL_CAPACITY_EXHAUSTED" | "SERVER_ERROR" | "UNKNOWN";
7
+ export interface RateLimitBackoffResult {
8
+ backoffMs: number;
9
+ reason: RateLimitReason;
10
+ }
11
+ export declare function parseRateLimitReason(reason?: string, message?: string): RateLimitReason;
12
+ export declare function calculateBackoffMs(reason: RateLimitReason, consecutiveFailures: number, retryAfterMs?: number | null): number;
6
13
  export type BaseQuotaKey = "claude" | "gemini-antigravity" | "gemini-cli";
7
14
  export type QuotaKey = BaseQuotaKey | `${BaseQuotaKey}:${string}`;
8
15
  export interface ManagedAccount {
@@ -36,6 +43,9 @@ export declare class AccountManager {
36
43
  private sessionOffsetApplied;
37
44
  private lastToastAccountIndex;
38
45
  private lastToastTime;
46
+ private savePending;
47
+ private saveTimeout;
48
+ private savePromiseResolvers;
39
49
  static loadFromDisk(authFallback?: OAuthAuthDetails): Promise<AccountManager>;
40
50
  constructor(authFallback?: OAuthAuthDetails, stored?: AccountStorageV3 | null);
41
51
  getAccountCount(): number;
@@ -45,8 +55,12 @@ export declare class AccountManager {
45
55
  shouldShowAccountToast(accountIndex: number, debounceMs?: number): boolean;
46
56
  markToastShown(accountIndex: number): void;
47
57
  getCurrentOrNextForFamily(family: ModelFamily, model?: string | null, strategy?: AccountSelectionStrategy, headerStyle?: HeaderStyle, pidOffsetEnabled?: boolean): ManagedAccount | null;
48
- getNextForFamily(family: ModelFamily, model?: string | null): ManagedAccount | null;
58
+ getNextForFamily(family: ModelFamily, model?: string | null, headerStyle?: HeaderStyle): ManagedAccount | null;
49
59
  markRateLimited(account: ManagedAccount, retryAfterMs: number, family: ModelFamily, headerStyle?: HeaderStyle, model?: string | null): void;
60
+ markRateLimitedWithReason(account: ManagedAccount, family: ModelFamily, headerStyle: HeaderStyle, model: string | null | undefined, reason: RateLimitReason, retryAfterMs?: number | null): number;
61
+ markRequestSuccess(account: ManagedAccount): void;
62
+ clearAllRateLimitsForFamily(family: ModelFamily, model?: string | null): void;
63
+ shouldTryOptimisticReset(family: ModelFamily, model?: string | null): boolean;
50
64
  markAccountCoolingDown(account: ManagedAccount, cooldownMs: number, reason: CooldownReason): void;
51
65
  isAccountCoolingDown(account: ManagedAccount): boolean;
52
66
  clearAccountCooldown(account: ManagedAccount): void;
@@ -62,5 +76,8 @@ export declare class AccountManager {
62
76
  getMinWaitTimeForFamily(family: ModelFamily, model?: string | null): number;
63
77
  getAccounts(): ManagedAccount[];
64
78
  saveToDisk(): Promise<void>;
79
+ requestSaveToDisk(): void;
80
+ flushSaveToDisk(): Promise<void>;
81
+ private executeSave;
65
82
  }
66
83
  //# sourceMappingURL=accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/plugin/accounts.ts"],"names":[],"mappings":"AACA,OAAO,EAA8B,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9J,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC1E,YAAY,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,oBAAoB,GAAG,YAAY,CAAC;AAC1E,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,GAAG,YAAY,IAAI,MAAM,EAAE,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC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