@startanaicompany/cli 1.4.10 → 1.4.11

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": "@startanaicompany/cli",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "Official CLI for StartAnAiCompany.com - Deploy AI recruitment sites with ease",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -36,7 +36,7 @@ async function connect(host) {
36
36
  name: 'choice',
37
37
  message: 'Select Git provider:',
38
38
  choices: [
39
- { name: 'git.startanaicompany.com (Gitea)', value: 'git.startanaicompany.com' },
39
+ { name: 'git.startanaicompany.com (Git StartanAICompany)', value: 'git.startanaicompany.com' },
40
40
  { name: 'github.com', value: 'github.com' },
41
41
  { name: 'gitlab.com', value: 'gitlab.com' },
42
42
  { name: 'Custom host', value: 'custom' },
@@ -66,11 +66,18 @@ async function status() {
66
66
 
67
67
  // Show account info
68
68
  logger.field('User ID', userData.id);
69
- if (userData.git_username) {
70
- logger.field('Git Username', userData.git_username);
69
+
70
+ // Show OAuth connections
71
+ if (userData.git_connections && userData.git_connections.length > 0) {
72
+ // Show all OAuth connections
73
+ userData.git_connections.forEach((conn, index) => {
74
+ const label = index === 0 ? 'Git Connection' : ' '; // Align subsequent connections
75
+ logger.field(label, `${conn.gitUsername} @ ${conn.gitHost}`);
76
+ });
71
77
  } else {
72
- logger.field('Git Connection', 'Not connected (use OAuth to connect)');
78
+ logger.field('Git Connection', 'Not connected (use: saac git connect)');
73
79
  }
80
+
74
81
  logger.field('Applications', `${userData.application_count} / ${userData.max_applications}`);
75
82
 
76
83
  logger.newline();