forked from NoeFabris/opencode-antigravity-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathantigravity.schema.json
More file actions
280 lines (280 loc) · 7.61 KB
/
Copy pathantigravity.schema.json
File metadata and controls
280 lines (280 loc) · 7.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"quiet_mode": {
"default": false,
"type": "boolean",
"description": "Suppress most toast notifications (rate limit, account switching). Recovery toasts always shown. Env: OPENCODE_ANTIGRAVITY_QUIET=1"
},
"debug": {
"default": false,
"type": "boolean",
"description": "Enable debug logging to file. Env: OPENCODE_ANTIGRAVITY_DEBUG=1 (or =2 for verbose)"
},
"log_dir": {
"type": "string",
"description": "Custom directory for debug logs. Env: OPENCODE_ANTIGRAVITY_LOG_DIR=/path/to/logs"
},
"keep_thinking": {
"default": false,
"type": "boolean",
"description": "Preserve thinking blocks for Claude models using signature caching. May cause signature errors. Env: OPENCODE_ANTIGRAVITY_KEEP_THINKING=1"
},
"session_recovery": {
"default": true,
"type": "boolean",
"description": "Enable automatic session recovery from tool_result_missing errors. Env: OPENCODE_ANTIGRAVITY_SESSION_RECOVERY=1"
},
"auto_resume": {
"default": false,
"type": "boolean",
"description": "Automatically send resume prompt after successful recovery. Env: OPENCODE_ANTIGRAVITY_AUTO_RESUME=1"
},
"resume_text": {
"default": "continue",
"type": "string",
"description": "Custom text to send when auto-resuming after recovery. Env: OPENCODE_ANTIGRAVITY_RESUME_TEXT=continue"
},
"signature_cache": {
"type": "object",
"properties": {
"enabled": {
"default": true,
"type": "boolean",
"description": "Enable disk caching of thinking block signatures."
},
"memory_ttl_seconds": {
"default": 3600,
"type": "number",
"minimum": 60,
"maximum": 86400,
"description": "In-memory TTL in seconds."
},
"disk_ttl_seconds": {
"default": 172800,
"type": "number",
"minimum": 3600,
"maximum": 604800,
"description": "Disk TTL in seconds."
},
"write_interval_seconds": {
"default": 60,
"type": "number",
"minimum": 10,
"maximum": 600,
"description": "Background write interval in seconds."
}
},
"required": [
"enabled",
"memory_ttl_seconds",
"disk_ttl_seconds",
"write_interval_seconds"
],
"additionalProperties": false,
"description": "Signature cache configuration for persisting thinking block signatures. Only used when keep_thinking is enabled."
},
"empty_response_max_attempts": {
"default": 4,
"type": "number",
"minimum": 1,
"maximum": 10,
"description": "Maximum retry attempts when Antigravity returns an empty response (no candidates)."
},
"empty_response_retry_delay_ms": {
"default": 2000,
"type": "number",
"minimum": 500,
"maximum": 10000,
"description": "Delay in milliseconds between empty response retries."
},
"tool_id_recovery": {
"default": true,
"type": "boolean",
"description": "Enable tool ID orphan recovery. Matches mismatched tool responses by function name or creates placeholders."
},
"claude_tool_hardening": {
"default": true,
"type": "boolean",
"description": "Enable tool hallucination prevention for Claude models. Injects parameter signatures and strict usage rules."
},
"proactive_token_refresh": {
"default": true,
"type": "boolean",
"description": "Enable proactive background token refresh before expiry, ensuring requests never block."
},
"proactive_refresh_buffer_seconds": {
"default": 1800,
"type": "number",
"minimum": 60,
"maximum": 7200,
"description": "Seconds before token expiry to trigger proactive refresh."
},
"proactive_refresh_check_interval_seconds": {
"default": 300,
"type": "number",
"minimum": 30,
"maximum": 1800,
"description": "Interval between proactive refresh checks in seconds."
},
"max_rate_limit_wait_seconds": {
"default": 300,
"type": "number",
"minimum": 0,
"maximum": 3600
},
"quota_fallback": {
"default": false,
"type": "boolean"
},
"account_selection_strategy": {
"default": "hybrid",
"type": "string",
"enum": [
"sticky",
"round-robin",
"hybrid"
]
},
"pid_offset_enabled": {
"default": false,
"type": "boolean"
},
"switch_on_first_rate_limit": {
"default": true,
"type": "boolean"
},
"default_retry_after_seconds": {
"default": 60,
"type": "number",
"minimum": 1,
"maximum": 300
},
"max_backoff_seconds": {
"default": 60,
"type": "number",
"minimum": 5,
"maximum": 300
},
"health_score": {
"type": "object",
"properties": {
"initial": {
"default": 70,
"type": "number",
"minimum": 0,
"maximum": 100
},
"success_reward": {
"default": 1,
"type": "number",
"minimum": 0,
"maximum": 10
},
"rate_limit_penalty": {
"default": -10,
"type": "number",
"minimum": -50,
"maximum": 0
},
"failure_penalty": {
"default": -20,
"type": "number",
"minimum": -100,
"maximum": 0
},
"recovery_rate_per_hour": {
"default": 2,
"type": "number",
"minimum": 0,
"maximum": 20
},
"min_usable": {
"default": 50,
"type": "number",
"minimum": 0,
"maximum": 100
},
"max_score": {
"default": 100,
"type": "number",
"minimum": 50,
"maximum": 100
}
},
"required": [
"initial",
"success_reward",
"rate_limit_penalty",
"failure_penalty",
"recovery_rate_per_hour",
"min_usable",
"max_score"
],
"additionalProperties": false
},
"token_bucket": {
"type": "object",
"properties": {
"max_tokens": {
"default": 50,
"type": "number",
"minimum": 1,
"maximum": 1000
},
"regeneration_rate_per_minute": {
"default": 6,
"type": "number",
"minimum": 0.1,
"maximum": 60
},
"initial_tokens": {
"default": 50,
"type": "number",
"minimum": 1,
"maximum": 1000
}
},
"required": [
"max_tokens",
"regeneration_rate_per_minute",
"initial_tokens"
],
"additionalProperties": false
},
"auto_update": {
"default": true,
"type": "boolean",
"description": "Enable automatic plugin updates. Env: OPENCODE_ANTIGRAVITY_AUTO_UPDATE=1"
},
"web_search": {
"type": "object",
"properties": {
"default_mode": {
"default": "off",
"type": "string",
"enum": [
"auto",
"off"
]
},
"grounding_threshold": {
"default": 0.3,
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"default_mode",
"grounding_threshold"
],
"additionalProperties": false
}
},
"additionalProperties": false
}