@rallycry/conveyor-agent 10.13.60 → 10.13.61
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.
|
@@ -5413,10 +5413,14 @@ function parseClaudeOauthEnv(blob) {
|
|
|
5413
5413
|
if (typeof parsed !== "object" || parsed === null) return null;
|
|
5414
5414
|
const record = parsed;
|
|
5415
5415
|
if (typeof record.access !== "string" || record.access === "") return null;
|
|
5416
|
+
const scopes = Array.isArray(record.scopes) ? record.scopes.filter((s) => typeof s === "string" && s.length > 0) : [];
|
|
5416
5417
|
return {
|
|
5417
5418
|
access: record.access,
|
|
5418
5419
|
refresh: typeof record.refresh === "string" && record.refresh ? record.refresh : void 0,
|
|
5419
|
-
expires: typeof record.expires === "number" ? record.expires : void 0
|
|
5420
|
+
expires: typeof record.expires === "number" ? record.expires : void 0,
|
|
5421
|
+
refreshExpires: typeof record.refreshExpires === "number" ? record.refreshExpires : void 0,
|
|
5422
|
+
scopes: scopes.length > 0 ? scopes : void 0,
|
|
5423
|
+
rateLimitTier: typeof record.rateLimitTier === "string" ? record.rateLimitTier : void 0
|
|
5420
5424
|
};
|
|
5421
5425
|
} catch {
|
|
5422
5426
|
return null;
|
|
@@ -5439,13 +5443,6 @@ function parseClaudeAiOauth(raw) {
|
|
|
5439
5443
|
return null;
|
|
5440
5444
|
}
|
|
5441
5445
|
}
|
|
5442
|
-
var LOGIN_SCOPES = [
|
|
5443
|
-
"user:inference",
|
|
5444
|
-
"user:profile",
|
|
5445
|
-
"user:sessions:claude_code",
|
|
5446
|
-
"user:mcp_servers",
|
|
5447
|
-
"user:file_upload"
|
|
5448
|
-
];
|
|
5449
5446
|
var LEGACY_SCOPES = ["user:inference", "user:profile"];
|
|
5450
5447
|
function buildCredentialsFile(material, now) {
|
|
5451
5448
|
const refresh = material.refresh;
|
|
@@ -5457,7 +5454,11 @@ function buildCredentialsFile(material, now) {
|
|
|
5457
5454
|
// the true one. Without, claim a far-future expiry (see SYNTH_TOKEN_TTL_MS)
|
|
5458
5455
|
// because a refresh attempt would be unrecoverable.
|
|
5459
5456
|
expiresAt: refresh && material.expires ? material.expires : now + SYNTH_TOKEN_TTL_MS,
|
|
5460
|
-
|
|
5457
|
+
// The refresh token has its own expiry; the CLI records it, so mirror it
|
|
5458
|
+
// when the grant told us rather than leaving the field off.
|
|
5459
|
+
...material.refreshExpires ? { refreshTokenExpiresAt: material.refreshExpires } : {},
|
|
5460
|
+
scopes: material.scopes?.length ? material.scopes : LEGACY_SCOPES,
|
|
5461
|
+
...material.rateLimitTier ? { rateLimitTier: material.rateLimitTier } : {},
|
|
5461
5462
|
subscriptionType: "max"
|
|
5462
5463
|
}
|
|
5463
5464
|
});
|
|
@@ -16529,4 +16530,4 @@ export {
|
|
|
16529
16530
|
loadConveyorConfig,
|
|
16530
16531
|
unshallowRepo
|
|
16531
16532
|
};
|
|
16532
|
-
//# sourceMappingURL=chunk-
|
|
16533
|
+
//# sourceMappingURL=chunk-LXSQ3AQN.js.map
|