File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -337,7 +337,6 @@ export function isWorkspaceDisabledError(
337337
338338 if ( status === 402 ) {
339339 return (
340- normalizedCode === "deactivated_workspace" ||
341340 normalizedTokens . includes ( "deactivated_workspace" ) ||
342341 / \b d e a c t i v a t e d _ w o r k s p a c e \b / i. test ( bodyText )
343342 ) ;
Original file line number Diff line number Diff line change @@ -1212,8 +1212,7 @@ export async function startRuntimeRotationProxy(
12121212
12131213 if (
12141214 transientAttempts >= transientAttemptLimit &&
1215- attemptedIndexes . size < accountCount &&
1216- exhaustionReason !== "deactivated"
1215+ attemptedIndexes . size < accountCount
12171216 ) {
12181217 exhaustionReason = "budget" ;
12191218 } else if (
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ function resolveCliVersion() {
2121 return "" ;
2222}
2323
24+ /**
25+ * @param {string[] } args
26+ * @returns {string[] }
27+ */
2428function normalizeStandaloneArgs ( args ) {
2529 if ( args [ 0 ] === "auth" ) return args ;
2630 const firstArg = args [ 0 ] ?? "" ;
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ const AUTH_SUBCOMMANDS = new Set([
2626 "debug" ,
2727] ) ;
2828
29+ /**
30+ * @param {string[] } args
31+ * @returns {string[] }
32+ */
2933export function normalizeAuthAlias ( args ) {
3034 if ( args . length >= 2 && args [ 0 ] === "multi" && args [ 1 ] === "auth" ) {
3135 return [ "auth" , ...args . slice ( 2 ) ] ;
@@ -36,6 +40,10 @@ export function normalizeAuthAlias(args) {
3640 return args ;
3741}
3842
43+ /**
44+ * @param {string[] } args
45+ * @returns {boolean }
46+ */
3947export function shouldHandleMultiAuthAuth ( args ) {
4048 if ( args [ 0 ] !== "auth" ) return false ;
4149 if ( args . length === 1 ) return true ;
You can’t perform that action at this time.
0 commit comments