@startanaicompany/cli 1.4.1 → 1.4.2

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.1",
3
+ "version": "1.4.2",
4
4
  "description": "Official CLI for StartAnAiCompany.com - Deploy AI recruitment sites with ease",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -32,15 +32,13 @@ async function register(options) {
32
32
  process.exit(1);
33
33
  }
34
34
 
35
- const gitUsername = options.gitUsername || undefined;
36
-
37
35
  logger.section('Register for StartAnAiCompany');
38
36
 
39
- // Register via API
37
+ // Register via API (git_username no longer required - OAuth used instead)
40
38
  const spin = logger.spinner('Creating account...').start();
41
39
 
42
40
  try {
43
- const result = await api.register(email, gitUsername);
41
+ const result = await api.register(email);
44
42
 
45
43
  spin.succeed('Account created successfully!');
46
44
 
package/src/lib/api.js CHANGED
@@ -57,13 +57,11 @@ async function login(email, apiKey) {
57
57
 
58
58
  /**
59
59
  * Register a new user
60
+ * Note: git_username no longer required - users connect Git via OAuth separately
60
61
  */
61
- async function register(email, gitUsername) {
62
+ async function register(email) {
62
63
  const client = createClient();
63
- const response = await client.post('/users/register', {
64
- email,
65
- git_username: gitUsername,
66
- });
64
+ const response = await client.post('/users/register', { email });
67
65
  return response.data;
68
66
  }
69
67