gitarsenal-cli 1.9.8 → 1.9.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/.venv_status.json CHANGED
@@ -1 +1 @@
1
- {"created":"2025-08-04T06:53:34.568Z","packages":["modal","gitingest","requests"],"uv_version":"uv 0.8.4 (e176e1714 2025-07-30)"}
1
+ {"created":"2025-08-04T08:44:42.614Z","packages":["modal","gitingest","requests"],"uv_version":"uv 0.8.4 (e176e1714 2025-07-30)"}
package/bin/gitarsenal.js CHANGED
@@ -110,7 +110,7 @@ async function sendUserData(userId, userName) {
110
110
  console.log(chalk.blue(`🔗 Attempting to register user: ${userName} (${userId})`));
111
111
 
112
112
  const userData = {
113
- id: userId,
113
+ email: userId, // Use userId as email (assuming it's an email)
114
114
  name: userName
115
115
  };
116
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitarsenal-cli",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "description": "CLI tool for creating Modal sandboxes with GitHub repositories",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -218,12 +218,22 @@ class AuthManager:
218
218
  # Get webhook URL from environment or use default
219
219
  webhook_url = os.getenv("GITARSENAL_WEBHOOK_URL", "https://www.gitarsenal.dev/api/users")
220
220
 
221
+ # Ensure we have valid email and name
222
+ if not email or not email.strip():
223
+ print(f"⚠️ No email provided for user {username}, skipping web app registration")
224
+ return
225
+
226
+ if not username or not username.strip():
227
+ print(f"⚠️ No username provided, skipping web app registration")
228
+ return
229
+
221
230
  user_data = {
222
- "id": username, # Use username as ID for consistency
223
- "name": username # Use username as name for now
231
+ "email": email.strip(), # Use email as the primary identifier
232
+ "name": username.strip() # Use username as the display name
224
233
  }
225
234
 
226
235
  print(f"🔗 Sending user data to web application: {username}")
236
+ print(f"📦 Data being sent: {user_data}")
227
237
 
228
238
  response = requests.post(
229
239
  webhook_url,
@@ -290,6 +300,9 @@ class AuthManager:
290
300
  print("✅ Login successful!")
291
301
  print(f"Welcome back, {username}!")
292
302
 
303
+ # Debug: Print user data to see what we have
304
+ print(f"🔍 User data for web app: username={username}, email={user_data.get('email', 'NOT_FOUND')}")
305
+
293
306
  # Send user data to web application
294
307
  self.send_user_data_to_webapp(username, user_data.get('email', ''))
295
308