@commonlyai/cli 0.1.236 → 0.1.237
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.
package/package.json
CHANGED
|
@@ -422,7 +422,8 @@ const accessOnlyLogin = (text, { source, mustOutlastMs, apiKeyHint = true }) =>
|
|
|
422
422
|
if (typeof oauth.expiresAt === 'number' && oauth.expiresAt - Date.now() < mustOutlastMs) {
|
|
423
423
|
const minutes = Math.max(0, Math.floor((oauth.expiresAt - Date.now()) / 60000));
|
|
424
424
|
throw new Error(`the Claude login on this machine expires in ${minutes} min, before this turn could end. `
|
|
425
|
-
+
|
|
425
|
+
+ 'Sign in again in your own terminal on this machine, outside the agent: run `claude`, then /login'
|
|
426
|
+
+ `${apiKeyHint ? '. Or set ANTHROPIC_API_KEY for the agent' : ''}.`);
|
|
426
427
|
}
|
|
427
428
|
// An allowlist, not "everything but refreshToken": a field the host record
|
|
428
429
|
// gains later, secret or not, never reaches the seat's writable HOME.
|