codeant-cli 0.4.8 → 0.4.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeant-cli",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Code review CLI tool",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,6 +11,7 @@ export default function Login() {
11
11
  const { exit } = useApp();
12
12
  const [status, setStatus] = useState('opening');
13
13
  const [error, setError] = useState(null);
14
+ const [loginUrl, setLoginUrl] = useState('');
14
15
 
15
16
  useEffect(() => {
16
17
  // Check if already logged in
@@ -24,6 +25,7 @@ export default function Login() {
24
25
  const token = randomUUID();
25
26
  const baseUrl = getBaseUrl();
26
27
  const loginUrl = `https://app.codeant.ai?ideLoginToken=${token}`;
28
+ setLoginUrl(loginUrl);
27
29
  const pollUrl = `${baseUrl}/extension/login/status?apiKey=${token}`;
28
30
 
29
31
  // Open browser
@@ -94,7 +96,7 @@ export default function Login() {
94
96
  return React.createElement(
95
97
  Box,
96
98
  { flexDirection: 'column', padding: 1 },
97
- React.createElement(Text, { color: 'cyan' }, 'Waiting for login...'),
99
+ React.createElement(Text, { color: 'cyan' }, `Waiting for login. Open this URL in your browser: ${loginUrl}`),
98
100
  React.createElement(Text, { color: 'gray' }, 'Complete the login in your browser.'),
99
101
  React.createElement(Text, { color: 'gray' }, 'Checking every 10 seconds. Timeout in 10 minutes.')
100
102
  );