@solidactions/cli 2.0.0 → 2.0.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.
@@ -76,11 +76,13 @@ async function deviceLogin(options) {
76
76
  const host = resolved.host;
77
77
  console.log(chalk_1.default.blue('Requesting device authorization...'));
78
78
  const code = await requestDeviceCode(host);
79
- const verifyUrl = code.verification_uri_complete || code.verification_uri;
79
+ // Deliberately the bare verification_uri, never verification_uri_complete:
80
+ // the server ignores prefilled codes (phishing defense) — the user types
81
+ // the code shown here.
80
82
  console.log('');
81
83
  console.log(chalk_1.default.green('To finish signing in, visit:'));
82
- console.log(' ' + chalk_1.default.blue.underline(verifyUrl));
83
- console.log(chalk_1.default.gray(' Enter code: ') + chalk_1.default.bold(code.user_code));
84
+ console.log(' ' + chalk_1.default.blue.underline(code.verification_uri));
85
+ console.log(chalk_1.default.gray(' and enter code: ') + chalk_1.default.bold(code.user_code));
84
86
  console.log('');
85
87
  console.log(chalk_1.default.gray('Waiting for approval in your browser...'));
86
88
  let token;
@@ -123,7 +123,7 @@ async function selectWorkspaceInteractively(workspaces) {
123
123
  console.log(chalk_1.default.gray(`Auto-selected workspace: ${workspaces[0].name}`));
124
124
  return workspaces[0];
125
125
  }
126
- console.log(chalk_1.default.blue('\nSelect a workspace:\n'));
126
+ console.log(chalk_1.default.blue('\nSelect your default workspace (change anytime with `solidactions workspace set`):\n'));
127
127
  workspaces.forEach((ws, i) => {
128
128
  console.log(` ${chalk_1.default.white(`${i + 1}.`)} ${ws.name}`);
129
129
  });
package/dist/utils/api.js CHANGED
@@ -199,7 +199,7 @@ async function ensureWorkspaceSelected(config) {
199
199
  console.log(chalk_1.default.gray(`Auto-selected workspace: ${selected.name}`));
200
200
  }
201
201
  else {
202
- console.log(chalk_1.default.blue('\nSelect a workspace:\n'));
202
+ console.log(chalk_1.default.blue('\nSelect your default workspace (change anytime with `solidactions workspace set`):\n'));
203
203
  workspaces.forEach((ws, i) => {
204
204
  console.log(` ${chalk_1.default.white(`${i + 1}.`)} ${ws.name} ${chalk_1.default.gray(`(${ws.org_name}, ${ws.role})`)}`);
205
205
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidactions/cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "SolidActions CLI - Deploy and manage workflow automation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {