wave-code 0.16.0 → 0.16.1

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.
@@ -73,7 +73,7 @@ export const LoginCommand = ({ onCancel }) => {
73
73
  await authService.login({
74
74
  onAuthUrl: (url) => {
75
75
  setAuthUrl(url);
76
- setMessage("Paste the token from your browser URL bar:");
76
+ setMessage("Paste the authorization code from your browser URL bar:");
77
77
  },
78
78
  readToken,
79
79
  });
@@ -98,5 +98,5 @@ export const LoginCommand = ({ onCancel }) => {
98
98
  const truncatedToken = token && token.length > 14
99
99
  ? `${token.substring(0, 10)}...${token.substring(token.length - 4)}`
100
100
  : (token ?? "");
101
- return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", borderLeft: false, borderRight: false, paddingX: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "cyan", bold: true, underline: true, children: "SSO Authentication" }) }), error && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "red", children: error }) })), message && !error && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: isLoading ? "yellow" : "green", children: [isLoading ? "⌛ " : "", message] }) })), authUrl && isLoading && (_jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { color: "cyan", children: "Open this URL in your browser:" }), _jsx(Text, { color: "white", children: authUrl })] })), isLoading && (_jsxs(Box, { marginBottom: 1, children: [_jsx(Text, { color: "cyan", children: "Token: " }), _jsx(Text, { color: "white", children: tokenInput || "..." })] })), !isAuthenticated && !isLoading && (_jsxs(_Fragment, { children: [_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Status:" }), _jsx(Text, { color: "white", children: " Not logged in" })] }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Press Enter to login" }) })] })), isAuthenticated && !isLoading && !message && (_jsxs(_Fragment, { children: [_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Status:" }), _jsx(Text, { color: "green", children: " Authenticated" })] }), _jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Token:" }), _jsxs(Text, { color: "white", children: [" ", truncatedToken] })] }), adminUrl && (_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Admin URL:" }), _jsxs(Text, { color: "white", children: [" ", adminUrl] })] })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Press Enter to logout" }) })] })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Esc to cancel" }) })] }));
101
+ return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", borderLeft: false, borderRight: false, paddingX: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "cyan", bold: true, underline: true, children: "SSO Authentication" }) }), error && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "red", children: error }) })), message && !error && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: isLoading ? "yellow" : "green", children: [isLoading ? "⌛ " : "", message] }) })), authUrl && isLoading && (_jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { color: "cyan", children: "Open this URL in your browser:" }), _jsx(Text, { color: "white", children: authUrl })] })), isLoading && (_jsxs(Box, { marginBottom: 1, children: [_jsx(Text, { color: "cyan", children: "Code: " }), _jsx(Text, { color: "white", children: tokenInput || "..." })] })), !isAuthenticated && !isLoading && (_jsxs(_Fragment, { children: [_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Status:" }), _jsx(Text, { color: "white", children: " Not logged in" })] }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Press Enter to login" }) })] })), isAuthenticated && !isLoading && !message && (_jsxs(_Fragment, { children: [_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Status:" }), _jsx(Text, { color: "green", children: " Authenticated" })] }), _jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Token:" }), _jsxs(Text, { color: "white", children: [" ", truncatedToken] })] }), adminUrl && (_jsxs(Box, { children: [_jsx(Text, { color: "yellow", children: "Admin URL:" }), _jsxs(Text, { color: "white", children: [" ", adminUrl] })] })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Press Enter to logout" }) })] })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Esc to cancel" }) })] }));
102
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-code",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "CLI-based code assistant powered by AI, built with React and Ink",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,7 +42,7 @@
42
42
  "semver": "^7.7.4",
43
43
  "yargs": "^17.7.2",
44
44
  "zod": "^3.23.8",
45
- "wave-agent-sdk": "0.16.0"
45
+ "wave-agent-sdk": "0.16.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/react": "^19.1.8",
@@ -91,7 +91,7 @@ export const LoginCommand: React.FC<LoginCommandProps> = ({ onCancel }) => {
91
91
  await authService.login({
92
92
  onAuthUrl: (url: string) => {
93
93
  setAuthUrl(url);
94
- setMessage("Paste the token from your browser URL bar:");
94
+ setMessage("Paste the authorization code from your browser URL bar:");
95
95
  },
96
96
  readToken,
97
97
  });
@@ -155,10 +155,10 @@ export const LoginCommand: React.FC<LoginCommandProps> = ({ onCancel }) => {
155
155
  </Box>
156
156
  )}
157
157
 
158
- {/* Token input field */}
158
+ {/* Authorization code input field */}
159
159
  {isLoading && (
160
160
  <Box marginBottom={1}>
161
- <Text color="cyan">Token: </Text>
161
+ <Text color="cyan">Code: </Text>
162
162
  <Text color="white">{tokenInput || "..."}</Text>
163
163
  </Box>
164
164
  )}