clawmoney 0.13.6 → 0.13.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.
|
@@ -302,11 +302,16 @@ function extractTierId(data) {
|
|
|
302
302
|
return pick(data.paidTier) ?? pick(data.currentTier);
|
|
303
303
|
}
|
|
304
304
|
async function callLoadCodeAssist(accessToken) {
|
|
305
|
+
// loadCodeAssist metadata fields match sub2api exactly — Google's protobuf
|
|
306
|
+
// validator rejects "MACOS"/"WINDOWS" strings on the `platform` enum (it
|
|
307
|
+
// only accepts UPPERCASE enum values like PLATFORM_UNSPECIFIED / DARWIN /
|
|
308
|
+
// LINUX / WINDOWS_NT). sub2api sends ideVersion + ideName instead, which
|
|
309
|
+
// bypasses the platform field entirely.
|
|
305
310
|
const body = JSON.stringify({
|
|
306
311
|
metadata: {
|
|
307
312
|
ideType: "ANTIGRAVITY",
|
|
308
|
-
|
|
309
|
-
|
|
313
|
+
ideVersion: ANTIGRAVITY_VERSION,
|
|
314
|
+
ideName: "antigravity",
|
|
310
315
|
},
|
|
311
316
|
});
|
|
312
317
|
const headers = antigravitySetupHeaders(accessToken);
|
|
@@ -337,6 +342,9 @@ async function callLoadCodeAssist(accessToken) {
|
|
|
337
342
|
* onboarded first. Mirrors sub2api's Client.OnboardUser retry/poll logic.
|
|
338
343
|
*/
|
|
339
344
|
async function callOnboardUser(accessToken, tierId) {
|
|
345
|
+
// onboardUser metadata: mirrors sub2api (client.go:519-522) exactly. Unlike
|
|
346
|
+
// loadCodeAssist, this call *does* take `platform` + `pluginType`, but it
|
|
347
|
+
// wants the protobuf enum values — "PLATFORM_UNSPECIFIED" not "MACOS".
|
|
340
348
|
const body = JSON.stringify({
|
|
341
349
|
tierId,
|
|
342
350
|
metadata: {
|