hackmate-cli 1.0.0
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/README.md +420 -0
- package/dist/api.d.ts +3 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +14 -0
- package/dist/api.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +172 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/ComingSoon.d.ts +7 -0
- package/dist/commands/ComingSoon.d.ts.map +1 -0
- package/dist/commands/ComingSoon.js +4 -0
- package/dist/commands/ComingSoon.js.map +1 -0
- package/dist/commands/Config.d.ts +8 -0
- package/dist/commands/Config.d.ts.map +1 -0
- package/dist/commands/Config.js +42 -0
- package/dist/commands/Config.js.map +1 -0
- package/dist/commands/DataExport.d.ts +2 -0
- package/dist/commands/DataExport.d.ts.map +1 -0
- package/dist/commands/DataExport.js +49 -0
- package/dist/commands/DataExport.js.map +1 -0
- package/dist/commands/Discover.d.ts +2 -0
- package/dist/commands/Discover.d.ts.map +1 -0
- package/dist/commands/Discover.js +93 -0
- package/dist/commands/Discover.js.map +1 -0
- package/dist/commands/MatchList.d.ts +2 -0
- package/dist/commands/MatchList.d.ts.map +1 -0
- package/dist/commands/MatchList.js +118 -0
- package/dist/commands/MatchList.js.map +1 -0
- package/dist/commands/Presence.d.ts +7 -0
- package/dist/commands/Presence.d.ts.map +1 -0
- package/dist/commands/Presence.js +52 -0
- package/dist/commands/Presence.js.map +1 -0
- package/dist/commands/Privacy.d.ts +2 -0
- package/dist/commands/Privacy.d.ts.map +1 -0
- package/dist/commands/Privacy.js +38 -0
- package/dist/commands/Privacy.js.map +1 -0
- package/dist/commands/Settings.d.ts +2 -0
- package/dist/commands/Settings.d.ts.map +1 -0
- package/dist/commands/Settings.js +38 -0
- package/dist/commands/Settings.js.map +1 -0
- package/dist/commands/Stats.d.ts +2 -0
- package/dist/commands/Stats.d.ts.map +1 -0
- package/dist/commands/Stats.js +38 -0
- package/dist/commands/Stats.js.map +1 -0
- package/dist/commands/admin/admin.logic.d.ts +12 -0
- package/dist/commands/admin/admin.logic.d.ts.map +1 -0
- package/dist/commands/admin/admin.logic.js +41 -0
- package/dist/commands/admin/admin.logic.js.map +1 -0
- package/dist/commands/admin/admin.screen.d.ts +10 -0
- package/dist/commands/admin/admin.screen.d.ts.map +1 -0
- package/dist/commands/admin/admin.screen.js +19 -0
- package/dist/commands/admin/admin.screen.js.map +1 -0
- package/dist/commands/admin/index.d.ts +8 -0
- package/dist/commands/admin/index.d.ts.map +1 -0
- package/dist/commands/admin/index.js +8 -0
- package/dist/commands/admin/index.js.map +1 -0
- package/dist/commands/auth/Logout.d.ts +2 -0
- package/dist/commands/auth/Logout.d.ts.map +1 -0
- package/dist/commands/auth/Logout.js +15 -0
- package/dist/commands/auth/Logout.js.map +1 -0
- package/dist/commands/auth/Verify.d.ts +2 -0
- package/dist/commands/auth/Verify.d.ts.map +1 -0
- package/dist/commands/auth/Verify.js +16 -0
- package/dist/commands/auth/Verify.js.map +1 -0
- package/dist/commands/auth/auth.logic.d.ts +31 -0
- package/dist/commands/auth/auth.logic.d.ts.map +1 -0
- package/dist/commands/auth/auth.logic.js +147 -0
- package/dist/commands/auth/auth.logic.js.map +1 -0
- package/dist/commands/auth/index.d.ts +3 -0
- package/dist/commands/auth/index.d.ts.map +1 -0
- package/dist/commands/auth/index.js +17 -0
- package/dist/commands/auth/index.js.map +1 -0
- package/dist/commands/auth/login.screen.d.ts +15 -0
- package/dist/commands/auth/login.screen.d.ts.map +1 -0
- package/dist/commands/auth/login.screen.js +10 -0
- package/dist/commands/auth/login.screen.js.map +1 -0
- package/dist/commands/auth/signup.screen.d.ts +23 -0
- package/dist/commands/auth/signup.screen.d.ts.map +1 -0
- package/dist/commands/auth/signup.screen.js +13 -0
- package/dist/commands/auth/signup.screen.js.map +1 -0
- package/dist/commands/auth/verify.logic.d.ts +11 -0
- package/dist/commands/auth/verify.logic.d.ts.map +1 -0
- package/dist/commands/auth/verify.logic.js +56 -0
- package/dist/commands/auth/verify.logic.js.map +1 -0
- package/dist/commands/chat/ChatList.d.ts +2 -0
- package/dist/commands/chat/ChatList.d.ts.map +1 -0
- package/dist/commands/chat/ChatList.js +63 -0
- package/dist/commands/chat/ChatList.js.map +1 -0
- package/dist/commands/chat/chat.logic.d.ts +15 -0
- package/dist/commands/chat/chat.logic.d.ts.map +1 -0
- package/dist/commands/chat/chat.logic.js +139 -0
- package/dist/commands/chat/chat.logic.js.map +1 -0
- package/dist/commands/chat/chat.screen.d.ts +12 -0
- package/dist/commands/chat/chat.screen.d.ts.map +1 -0
- package/dist/commands/chat/chat.screen.js +12 -0
- package/dist/commands/chat/chat.screen.js.map +1 -0
- package/dist/commands/chat/index.d.ts +8 -0
- package/dist/commands/chat/index.d.ts.map +1 -0
- package/dist/commands/chat/index.js +9 -0
- package/dist/commands/chat/index.js.map +1 -0
- package/dist/commands/group/group.logic.d.ts +26 -0
- package/dist/commands/group/group.logic.d.ts.map +1 -0
- package/dist/commands/group/group.logic.js +73 -0
- package/dist/commands/group/group.logic.js.map +1 -0
- package/dist/commands/group/group.screen.d.ts +19 -0
- package/dist/commands/group/group.screen.d.ts.map +1 -0
- package/dist/commands/group/group.screen.js +22 -0
- package/dist/commands/group/group.screen.js.map +1 -0
- package/dist/commands/group/index.d.ts +9 -0
- package/dist/commands/group/index.d.ts.map +1 -0
- package/dist/commands/group/index.js +8 -0
- package/dist/commands/group/index.js.map +1 -0
- package/dist/commands/network/index.d.ts +8 -0
- package/dist/commands/network/index.d.ts.map +1 -0
- package/dist/commands/network/index.js +8 -0
- package/dist/commands/network/index.js.map +1 -0
- package/dist/commands/network/network.logic.d.ts +12 -0
- package/dist/commands/network/network.logic.d.ts.map +1 -0
- package/dist/commands/network/network.logic.js +69 -0
- package/dist/commands/network/network.logic.js.map +1 -0
- package/dist/commands/network/network.screen.d.ts +10 -0
- package/dist/commands/network/network.screen.d.ts.map +1 -0
- package/dist/commands/network/network.screen.js +17 -0
- package/dist/commands/network/network.screen.js.map +1 -0
- package/dist/commands/notification/index.d.ts +7 -0
- package/dist/commands/notification/index.d.ts.map +1 -0
- package/dist/commands/notification/index.js +8 -0
- package/dist/commands/notification/index.js.map +1 -0
- package/dist/commands/notification/notification.logic.d.ts +11 -0
- package/dist/commands/notification/notification.logic.d.ts.map +1 -0
- package/dist/commands/notification/notification.logic.js +33 -0
- package/dist/commands/notification/notification.logic.js.map +1 -0
- package/dist/commands/notification/notification.screen.d.ts +10 -0
- package/dist/commands/notification/notification.screen.d.ts.map +1 -0
- package/dist/commands/notification/notification.screen.js +13 -0
- package/dist/commands/notification/notification.screen.js.map +1 -0
- package/dist/commands/profile/index.d.ts +6 -0
- package/dist/commands/profile/index.d.ts.map +1 -0
- package/dist/commands/profile/index.js +14 -0
- package/dist/commands/profile/index.js.map +1 -0
- package/dist/commands/profile/profile-edit.screen.d.ts +12 -0
- package/dist/commands/profile/profile-edit.screen.d.ts.map +1 -0
- package/dist/commands/profile/profile-edit.screen.js +66 -0
- package/dist/commands/profile/profile-edit.screen.js.map +1 -0
- package/dist/commands/profile/profile-view.screen.d.ts +10 -0
- package/dist/commands/profile/profile-view.screen.d.ts.map +1 -0
- package/dist/commands/profile/profile-view.screen.js +12 -0
- package/dist/commands/profile/profile-view.screen.js.map +1 -0
- package/dist/commands/profile/profile.logic.d.ts +42 -0
- package/dist/commands/profile/profile.logic.d.ts.map +1 -0
- package/dist/commands/profile/profile.logic.js +74 -0
- package/dist/commands/profile/profile.logic.js.map +1 -0
- package/dist/commands/project/index.d.ts +9 -0
- package/dist/commands/project/index.d.ts.map +1 -0
- package/dist/commands/project/index.js +8 -0
- package/dist/commands/project/index.js.map +1 -0
- package/dist/commands/project/project.logic.d.ts +29 -0
- package/dist/commands/project/project.logic.d.ts.map +1 -0
- package/dist/commands/project/project.logic.js +92 -0
- package/dist/commands/project/project.logic.js.map +1 -0
- package/dist/commands/project/project.screen.d.ts +22 -0
- package/dist/commands/project/project.screen.d.ts.map +1 -0
- package/dist/commands/project/project.screen.js +27 -0
- package/dist/commands/project/project.screen.js.map +1 -0
- package/dist/commands/stubs/index.d.ts +9 -0
- package/dist/commands/stubs/index.d.ts.map +1 -0
- package/dist/commands/stubs/index.js +24 -0
- package/dist/commands/stubs/index.js.map +1 -0
- package/dist/config.d.ts +14 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +29 -0
- package/dist/config.js.map +1 -0
- package/dist/context/AuthContext.d.ts +18 -0
- package/dist/context/AuthContext.d.ts.map +1 -0
- package/dist/context/AuthContext.js +49 -0
- package/dist/context/AuthContext.js.map +1 -0
- package/dist/context/SocketContext.d.ts +12 -0
- package/dist/context/SocketContext.d.ts.map +1 -0
- package/dist/context/SocketContext.js +44 -0
- package/dist/context/SocketContext.js.map +1 -0
- package/dist/context/index.d.ts +7 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +9 -0
- package/dist/context/index.js.map +1 -0
- package/dist/features/admin/components/admin.screen.d.ts +10 -0
- package/dist/features/admin/components/admin.screen.d.ts.map +1 -0
- package/dist/features/admin/components/admin.screen.js +19 -0
- package/dist/features/admin/components/admin.screen.js.map +1 -0
- package/dist/features/admin/components/index.d.ts +8 -0
- package/dist/features/admin/components/index.d.ts.map +1 -0
- package/dist/features/admin/components/index.js +8 -0
- package/dist/features/admin/components/index.js.map +1 -0
- package/dist/features/admin/hooks/useAdmin.d.ts +12 -0
- package/dist/features/admin/hooks/useAdmin.d.ts.map +1 -0
- package/dist/features/admin/hooks/useAdmin.js +46 -0
- package/dist/features/admin/hooks/useAdmin.js.map +1 -0
- package/dist/features/admin/index.d.ts +3 -0
- package/dist/features/admin/index.d.ts.map +1 -0
- package/dist/features/admin/index.js +3 -0
- package/dist/features/admin/index.js.map +1 -0
- package/dist/features/chat/components/ChatList.d.ts +2 -0
- package/dist/features/chat/components/ChatList.d.ts.map +1 -0
- package/dist/features/chat/components/ChatList.js +63 -0
- package/dist/features/chat/components/ChatList.js.map +1 -0
- package/dist/features/chat/components/chat.screen.d.ts +12 -0
- package/dist/features/chat/components/chat.screen.d.ts.map +1 -0
- package/dist/features/chat/components/chat.screen.js +12 -0
- package/dist/features/chat/components/chat.screen.js.map +1 -0
- package/dist/features/chat/components/index.d.ts +9 -0
- package/dist/features/chat/components/index.d.ts.map +1 -0
- package/dist/features/chat/components/index.js +9 -0
- package/dist/features/chat/components/index.js.map +1 -0
- package/dist/features/chat/hooks/useChat.d.ts +15 -0
- package/dist/features/chat/hooks/useChat.d.ts.map +1 -0
- package/dist/features/chat/hooks/useChat.js +150 -0
- package/dist/features/chat/hooks/useChat.js.map +1 -0
- package/dist/features/chat/index.d.ts +4 -0
- package/dist/features/chat/index.d.ts.map +1 -0
- package/dist/features/chat/index.js +4 -0
- package/dist/features/chat/index.js.map +1 -0
- package/dist/features/group/components/group.screen.d.ts +19 -0
- package/dist/features/group/components/group.screen.d.ts.map +1 -0
- package/dist/features/group/components/group.screen.js +22 -0
- package/dist/features/group/components/group.screen.js.map +1 -0
- package/dist/features/group/components/index.d.ts +9 -0
- package/dist/features/group/components/index.d.ts.map +1 -0
- package/dist/features/group/components/index.js +8 -0
- package/dist/features/group/components/index.js.map +1 -0
- package/dist/features/group/hooks/useGroup.d.ts +26 -0
- package/dist/features/group/hooks/useGroup.d.ts.map +1 -0
- package/dist/features/group/hooks/useGroup.js +78 -0
- package/dist/features/group/hooks/useGroup.js.map +1 -0
- package/dist/features/group/index.d.ts +3 -0
- package/dist/features/group/index.d.ts.map +1 -0
- package/dist/features/group/index.js +3 -0
- package/dist/features/group/index.js.map +1 -0
- package/dist/features/network/components/UnfriendByUsername.d.ts +7 -0
- package/dist/features/network/components/UnfriendByUsername.d.ts.map +1 -0
- package/dist/features/network/components/UnfriendByUsername.js +40 -0
- package/dist/features/network/components/UnfriendByUsername.js.map +1 -0
- package/dist/features/network/components/index.d.ts +8 -0
- package/dist/features/network/components/index.d.ts.map +1 -0
- package/dist/features/network/components/index.js +9 -0
- package/dist/features/network/components/index.js.map +1 -0
- package/dist/features/network/components/network.screen.d.ts +10 -0
- package/dist/features/network/components/network.screen.d.ts.map +1 -0
- package/dist/features/network/components/network.screen.js +17 -0
- package/dist/features/network/components/network.screen.js.map +1 -0
- package/dist/features/network/hooks/useNetwork.d.ts +12 -0
- package/dist/features/network/hooks/useNetwork.d.ts.map +1 -0
- package/dist/features/network/hooks/useNetwork.js +74 -0
- package/dist/features/network/hooks/useNetwork.js.map +1 -0
- package/dist/features/network/hooks/useUnfriend.d.ts +7 -0
- package/dist/features/network/hooks/useUnfriend.d.ts.map +1 -0
- package/dist/features/network/hooks/useUnfriend.js +24 -0
- package/dist/features/network/hooks/useUnfriend.js.map +1 -0
- package/dist/features/network/index.d.ts +4 -0
- package/dist/features/network/index.d.ts.map +1 -0
- package/dist/features/network/index.js +4 -0
- package/dist/features/network/index.js.map +1 -0
- package/dist/features/notification/components/index.d.ts +7 -0
- package/dist/features/notification/components/index.d.ts.map +1 -0
- package/dist/features/notification/components/index.js +8 -0
- package/dist/features/notification/components/index.js.map +1 -0
- package/dist/features/notification/components/notification.screen.d.ts +10 -0
- package/dist/features/notification/components/notification.screen.d.ts.map +1 -0
- package/dist/features/notification/components/notification.screen.js +13 -0
- package/dist/features/notification/components/notification.screen.js.map +1 -0
- package/dist/features/notification/hooks/useNotification.d.ts +11 -0
- package/dist/features/notification/hooks/useNotification.d.ts.map +1 -0
- package/dist/features/notification/hooks/useNotification.js +38 -0
- package/dist/features/notification/hooks/useNotification.js.map +1 -0
- package/dist/features/notification/index.d.ts +3 -0
- package/dist/features/notification/index.d.ts.map +1 -0
- package/dist/features/notification/index.js +3 -0
- package/dist/features/notification/index.js.map +1 -0
- package/dist/features/profile/components/index.d.ts +6 -0
- package/dist/features/profile/components/index.d.ts.map +1 -0
- package/dist/features/profile/components/index.js +13 -0
- package/dist/features/profile/components/index.js.map +1 -0
- package/dist/features/profile/components/profile-edit.screen.d.ts +14 -0
- package/dist/features/profile/components/profile-edit.screen.d.ts.map +1 -0
- package/dist/features/profile/components/profile-edit.screen.js +182 -0
- package/dist/features/profile/components/profile-edit.screen.js.map +1 -0
- package/dist/features/profile/components/profile-view.screen.d.ts +10 -0
- package/dist/features/profile/components/profile-view.screen.d.ts.map +1 -0
- package/dist/features/profile/components/profile-view.screen.js +13 -0
- package/dist/features/profile/components/profile-view.screen.js.map +1 -0
- package/dist/features/profile/hooks/useProfile.d.ts +17 -0
- package/dist/features/profile/hooks/useProfile.d.ts.map +1 -0
- package/dist/features/profile/hooks/useProfile.js +148 -0
- package/dist/features/profile/hooks/useProfile.js.map +1 -0
- package/dist/features/profile/index.d.ts +3 -0
- package/dist/features/profile/index.d.ts.map +1 -0
- package/dist/features/profile/index.js +3 -0
- package/dist/features/profile/index.js.map +1 -0
- package/dist/features/project/components/index.d.ts +9 -0
- package/dist/features/project/components/index.d.ts.map +1 -0
- package/dist/features/project/components/index.js +8 -0
- package/dist/features/project/components/index.js.map +1 -0
- package/dist/features/project/components/project.screen.d.ts +22 -0
- package/dist/features/project/components/project.screen.d.ts.map +1 -0
- package/dist/features/project/components/project.screen.js +27 -0
- package/dist/features/project/components/project.screen.js.map +1 -0
- package/dist/features/project/hooks/useProject.d.ts +29 -0
- package/dist/features/project/hooks/useProject.d.ts.map +1 -0
- package/dist/features/project/hooks/useProject.js +97 -0
- package/dist/features/project/hooks/useProject.js.map +1 -0
- package/dist/features/project/index.d.ts +3 -0
- package/dist/features/project/index.d.ts.map +1 -0
- package/dist/features/project/index.js +3 -0
- package/dist/features/project/index.js.map +1 -0
- package/package.json +58 -0
package/README.md
ADDED
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
# 🚀 HackMate CLI
|
|
2
|
+
|
|
3
|
+
> **Terminal-based social network & dating platform for developers and hackers**
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/hackmate-cli)
|
|
6
|
+
[](https://nodejs.org)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://www.typescriptlang.org/)
|
|
9
|
+
|
|
10
|
+
Build connections, find collaborators, and discover talent—all from your terminal.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## ✨ Features
|
|
15
|
+
|
|
16
|
+
| Feature | Description |
|
|
17
|
+
|---------|-------------|
|
|
18
|
+
| 🎨 **Beautiful TUI** | Built with React + Ink for a modern terminal experience |
|
|
19
|
+
| 🔐 **Complete Auth** | Signup → Email verification → Profile setup |
|
|
20
|
+
| 💕 **Smart Matching** | Discover developers based on compatibility score & interests |
|
|
21
|
+
| 💬 **Real-time Chat** | DMs and group messaging powered by Socket.IO |
|
|
22
|
+
| 🤝 **Networking** | Connect with developers, send/accept friend requests |
|
|
23
|
+
| 🛠️ **Projects** | Browse open projects, apply to collaborations |
|
|
24
|
+
| 👥 **Communities** | Join groups based on tech stacks and interests |
|
|
25
|
+
| 🔔 **Notifications** | Get alerts for messages, requests, and matches |
|
|
26
|
+
| 📊 **User Stats** | View profile views, reputation, and engagement |
|
|
27
|
+
| ⚡ **Admin Tools** | Manage users and content (admin-only) |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 🚀 Quick Start
|
|
32
|
+
|
|
33
|
+
### 1. Install
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install -g hackmate-cli
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 2. Configure Server (auto)
|
|
40
|
+
|
|
41
|
+
The CLI now defaults to the hosted server:
|
|
42
|
+
`https://hackmateserver-huhcaec4g7eua0hf.centralindia-01.azurewebsites.net`
|
|
43
|
+
|
|
44
|
+
If you need a different backend, override anytime:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
hackmate config set https://your-server.example.com
|
|
48
|
+
# or per-shell
|
|
49
|
+
export API_URL=https://your-server.example.com
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 3. Sign Up
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
hackmate auth signup
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Follow the prompts to:
|
|
59
|
+
- Create your account
|
|
60
|
+
- Verify your email (OTP sent to console if SMTP not configured)
|
|
61
|
+
- Build your profile (bio, tech stack, interests, etc.)
|
|
62
|
+
|
|
63
|
+
### 4. Start Exploring
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Discover potential matches/collaborators
|
|
67
|
+
hackmate discover
|
|
68
|
+
|
|
69
|
+
# View your profile
|
|
70
|
+
hackmate profile view
|
|
71
|
+
|
|
72
|
+
# Find projects
|
|
73
|
+
hackmate project list
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 📖 Command Reference
|
|
79
|
+
|
|
80
|
+
### 🔐 Authentication
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
hackmate auth signup # Create new account
|
|
84
|
+
hackmate auth login # Login to existing account
|
|
85
|
+
hackmate auth logout # Logout
|
|
86
|
+
hackmate auth whoami # Check current user
|
|
87
|
+
hackmate auth verify # Verify email with OTP
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 👤 Profile
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
hackmate profile view [username] # View profile (yours or another user)
|
|
94
|
+
hackmate profile edit # Edit your profile
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 💕 Matching & Discovery
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
hackmate discover # Find compatible developers
|
|
101
|
+
hackmate match list # View your matches
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 🤝 Social Network
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
hackmate social list # List friends
|
|
108
|
+
hackmate social requests # View pending friend requests
|
|
109
|
+
hackmate social follow <username> # Send friend request
|
|
110
|
+
hackmate social unfollow <username> # Unfollow user
|
|
111
|
+
hackmate social block <username> # Block user
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### 💬 Chat & Messaging
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
hackmate chat list # List conversations
|
|
118
|
+
hackmate chat dm <username> # Direct message a user
|
|
119
|
+
hackmate chat group <groupname> # Open group chat
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### 🛠️ Projects
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
hackmate project list # Browse open projects
|
|
126
|
+
hackmate project create # Post a new project
|
|
127
|
+
hackmate project view <id> # View project details
|
|
128
|
+
hackmate project apply <id> # Apply to join project
|
|
129
|
+
hackmate project accept <id> <userId> # Accept applicant (owner only)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### 👥 Groups & Communities
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
hackmate group list # List available groups
|
|
136
|
+
hackmate group create # Create new community
|
|
137
|
+
hackmate group view <id> # View group details
|
|
138
|
+
hackmate group join <id> # Join a group
|
|
139
|
+
hackmate group accept <id> <userId> # Accept join request (admin only)
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### 🔔 Notifications
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
hackmate notification list # View all notifications
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### 📊 User Stats
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
hackmate stats # View your stats (messages, matches, views, etc.)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### ⚙️ Configuration
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
hackmate config get # Show current config
|
|
158
|
+
hackmate config set <url> # Set server URL
|
|
159
|
+
hackmate settings # Manage app settings
|
|
160
|
+
hackmate privacy # View privacy information
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### ⚡ Admin (requires admin role)
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
hackmate admin users list # List all users
|
|
167
|
+
hackmate admin users view <id> # View user details
|
|
168
|
+
hackmate admin users delete <id> # Delete user
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 🔧 Installation Options
|
|
174
|
+
|
|
175
|
+
### Option 1: Global Install (Recommended)
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
npm install -g hackmate-cli
|
|
179
|
+
|
|
180
|
+
# Use anywhere
|
|
181
|
+
hackmate --help
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Option 2: Local Development
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
git clone https://github.com/Sameer-Bagul/hackmate.git
|
|
188
|
+
cd hackmate/cli
|
|
189
|
+
|
|
190
|
+
npm install
|
|
191
|
+
npm run dev # Watch mode
|
|
192
|
+
npm run build # Build for production
|
|
193
|
+
npm start # Run built version
|
|
194
|
+
npm link # Link locally for testing
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## ⚙️ Configuration
|
|
200
|
+
|
|
201
|
+
### Environment Variables
|
|
202
|
+
|
|
203
|
+
Create `.env` in the CLI directory (or set globally):
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# HackMate Server URL (required after first use)
|
|
207
|
+
API_URL=https://your-server.azurewebsites.net
|
|
208
|
+
|
|
209
|
+
# Optional: Socket.IO server (defaults to API_URL)
|
|
210
|
+
SOCKET_URL=https://your-server.azurewebsites.net
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Local Config Storage
|
|
214
|
+
|
|
215
|
+
The CLI stores credentials and settings locally:
|
|
216
|
+
|
|
217
|
+
| OS | Location |
|
|
218
|
+
|----|----------|
|
|
219
|
+
| Linux | `~/.config/hackmate-cli/config.json` |
|
|
220
|
+
| macOS | `~/Library/Preferences/hackmate-cli/config.json` |
|
|
221
|
+
| Windows | `%APPDATA%\hackmate-cli\Config\config.json` |
|
|
222
|
+
|
|
223
|
+
To reset configuration:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Linux/macOS
|
|
227
|
+
rm -rf ~/.config/hackmate-cli/
|
|
228
|
+
|
|
229
|
+
# Windows PowerShell
|
|
230
|
+
Remove-Item -Recurse $env:APPDATA\hackmate-cli
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## 🎮 Usage Tips
|
|
236
|
+
|
|
237
|
+
| Tip | Shortcut |
|
|
238
|
+
|-----|----------|
|
|
239
|
+
| Navigate menus | ↑ ↓ arrows |
|
|
240
|
+
| Select option | Enter |
|
|
241
|
+
| Exit screen | Esc |
|
|
242
|
+
| Enter text | Type and Enter |
|
|
243
|
+
| Exit CLI | Ctrl+C |
|
|
244
|
+
|
|
245
|
+
### Interactive Menus
|
|
246
|
+
|
|
247
|
+
Most screens feature interactive menus:
|
|
248
|
+
- Use arrow keys to highlight options
|
|
249
|
+
- Press Enter to select
|
|
250
|
+
- Press Esc to go back
|
|
251
|
+
|
|
252
|
+
### Real-time Features
|
|
253
|
+
|
|
254
|
+
The CLI auto-refreshes:
|
|
255
|
+
- ✅ New messages appear instantly
|
|
256
|
+
- ✅ Notifications pop up in real-time
|
|
257
|
+
- ✅ Friend requests are live-updated
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## 🏗️ Architecture
|
|
262
|
+
|
|
263
|
+
```
|
|
264
|
+
cli/
|
|
265
|
+
├── src/
|
|
266
|
+
│ ├── features/ # Feature modules
|
|
267
|
+
│ │ ├── auth/ # Authentication (forms, logic)
|
|
268
|
+
│ │ ├── profile/ # Profile viewing & editing
|
|
269
|
+
│ │ ├── match/ # Matching & discovery
|
|
270
|
+
│ │ ├── chat/ # Messaging (DM & groups)
|
|
271
|
+
│ │ ├── network/ # Friend requests & connections
|
|
272
|
+
│ │ ├── project/ # Project browsing & applications
|
|
273
|
+
│ │ ├── group/ # Community management
|
|
274
|
+
│ │ ├── notification/ # Notifications
|
|
275
|
+
│ │ └── admin/ # Admin panel
|
|
276
|
+
│ ├── shared/ # Shared utilities
|
|
277
|
+
│ │ ├── components/ # Reusable UI components
|
|
278
|
+
│ │ ├── hooks/ # Custom React hooks
|
|
279
|
+
│ │ ├── utils/ # Helper functions
|
|
280
|
+
│ │ └── types/ # TypeScript types
|
|
281
|
+
│ ├── context/ # Global state
|
|
282
|
+
│ │ ├── AuthContext.tsx # Authentication state
|
|
283
|
+
│ │ └── SocketContext.tsx # Real-time Socket.IO
|
|
284
|
+
│ ├── api.ts # Axios HTTP client
|
|
285
|
+
│ ├── config.ts # Configuration management
|
|
286
|
+
│ └── cli.tsx # CLI entry point
|
|
287
|
+
├── scripts/
|
|
288
|
+
│ └── add-shebang.cjs # Build helper
|
|
289
|
+
├── dist/ # Compiled JavaScript
|
|
290
|
+
├── package.json
|
|
291
|
+
└── README.md
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## 🚨 Troubleshooting
|
|
297
|
+
|
|
298
|
+
### "Cannot connect to server"
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
# 1. Check if server is running
|
|
302
|
+
curl https://your-server.azurewebsites.net/health
|
|
303
|
+
|
|
304
|
+
# 2. Verify config is correct
|
|
305
|
+
hackmate config get
|
|
306
|
+
|
|
307
|
+
# 3. Reset config and try again
|
|
308
|
+
rm -rf ~/.config/hackmate-cli/
|
|
309
|
+
hackmate config set https://your-server.azurewebsites.net
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### "Login fails / Token expired"
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
# Clear session and login again
|
|
316
|
+
hackmate auth logout
|
|
317
|
+
hackmate auth login
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### "Socket.IO not working (real-time features slow)"
|
|
321
|
+
|
|
322
|
+
1. Check server logs for Socket.IO errors
|
|
323
|
+
2. Ensure WebSocket connections aren't blocked by firewall
|
|
324
|
+
3. Try restarting the CLI
|
|
325
|
+
|
|
326
|
+
### "OTP not received"
|
|
327
|
+
|
|
328
|
+
If SMTP is not configured on the server:
|
|
329
|
+
- The OTP will be printed in the **server console**
|
|
330
|
+
- Copy the code and enter it in the CLI prompt
|
|
331
|
+
|
|
332
|
+
For production servers with SMTP:
|
|
333
|
+
- Check spam/junk folder
|
|
334
|
+
- Verify email address during signup
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## 🤝 Contributing
|
|
339
|
+
|
|
340
|
+
We welcome contributions! Here's how to get started:
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
# 1. Clone and install
|
|
344
|
+
git clone https://github.com/Sameer-Bagul/hackmate.git
|
|
345
|
+
cd hackmate/cli
|
|
346
|
+
npm install
|
|
347
|
+
|
|
348
|
+
# 2. Create a feature branch
|
|
349
|
+
git checkout -b feature/amazing-feature
|
|
350
|
+
|
|
351
|
+
# 3. Make changes and test
|
|
352
|
+
npm run dev
|
|
353
|
+
npm run lint
|
|
354
|
+
|
|
355
|
+
# 4. Build and verify
|
|
356
|
+
npm run build
|
|
357
|
+
|
|
358
|
+
# 5. Push and create PR
|
|
359
|
+
git push origin feature/amazing-feature
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### Code Standards
|
|
363
|
+
|
|
364
|
+
- **Language**: TypeScript (strict mode)
|
|
365
|
+
- **UI Framework**: React + Ink
|
|
366
|
+
- **Linting**: ESLint
|
|
367
|
+
- **Format**: Prettier (optional, but recommended)
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## 📚 Resources
|
|
372
|
+
|
|
373
|
+
- **Server Repository**: [hackmate-server](https://github.com/Sameer-Bagul/hackmate-server)
|
|
374
|
+
- **API Documentation**: [API_ROUTES.md](../API_ROUTES.md)
|
|
375
|
+
- **Issue Tracker**: [GitHub Issues](https://github.com/Sameer-Bagul/hackmate/issues)
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## 📦 Deployment
|
|
380
|
+
|
|
381
|
+
### Publish to npm
|
|
382
|
+
|
|
383
|
+
**Via CI (Recommended):**
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
# Create a git tag
|
|
387
|
+
git tag cli-v1.0.1
|
|
388
|
+
git push origin cli-v1.0.1
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
This triggers automated publishing via GitHub Actions.
|
|
392
|
+
|
|
393
|
+
**Manual:**
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
cd cli
|
|
397
|
+
npm run build
|
|
398
|
+
npm publish --access public
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
Requires:
|
|
402
|
+
- npm account and `npm login`
|
|
403
|
+
- Package available on npm registry
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
407
|
+
## 📄 License
|
|
408
|
+
|
|
409
|
+
MIT © 2024 HackMate Contributors
|
|
410
|
+
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
## 🙌 Support
|
|
414
|
+
|
|
415
|
+
- 🐛 **Report Bugs**: [GitHub Issues](https://github.com/Sameer-Bagul/hackmate/issues)
|
|
416
|
+
- 💡 **Feature Requests**: [Discussions](https://github.com/Sameer-Bagul/hackmate/discussions)
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
**Made with ❤️ for developers, by developers.**
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,GAAG,+BAEP,CAAC;AAUH,eAAe,GAAG,CAAC"}
|
package/dist/api.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { getToken, getApiUrl } from './config.js';
|
|
3
|
+
const api = axios.create({
|
|
4
|
+
baseURL: `${getApiUrl()}/api`,
|
|
5
|
+
});
|
|
6
|
+
api.interceptors.request.use((config) => {
|
|
7
|
+
const token = getToken();
|
|
8
|
+
if (token) {
|
|
9
|
+
config.headers.Authorization = `Bearer ${token}`;
|
|
10
|
+
}
|
|
11
|
+
return config;
|
|
12
|
+
});
|
|
13
|
+
export default api;
|
|
14
|
+
//# sourceMappingURL=api.js.map
|
package/dist/api.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;IACrB,OAAO,EAAE,GAAG,SAAS,EAAE,MAAM;CAChC,CAAC,CAAC;AAEH,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;IACpC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAI,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,OAAO,CAAC,aAAa,GAAG,UAAU,KAAK,EAAE,CAAC;IACrD,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,eAAe,GAAG,CAAC"}
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.tsx"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC"}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import 'dotenv/config';
|
|
4
|
+
import { render, Text, Box } from 'ink';
|
|
5
|
+
import { Command } from 'commander';
|
|
6
|
+
import { AppProvider } from './context/index.js';
|
|
7
|
+
// Commands
|
|
8
|
+
import { Login, Signup } from './commands/auth/index.js';
|
|
9
|
+
import { Admin } from './features/admin/index.js';
|
|
10
|
+
import { Network, UnfriendByUsername } from './features/network/index.js';
|
|
11
|
+
import { Project } from './features/project/index.js';
|
|
12
|
+
import { Group } from './features/group/index.js';
|
|
13
|
+
import { Notification } from './features/notification/index.js';
|
|
14
|
+
import { ProfileView, ProfileEdit } from './features/profile/index.js';
|
|
15
|
+
import { Chat, ChatList } from './features/chat/index.js';
|
|
16
|
+
import { Discover } from './commands/Discover.js';
|
|
17
|
+
import { Config } from './commands/Config.js';
|
|
18
|
+
import { Stats } from './commands/Stats.js';
|
|
19
|
+
import { MatchList } from './commands/MatchList.js';
|
|
20
|
+
import { Privacy } from './commands/Privacy.js';
|
|
21
|
+
import { Settings } from './commands/Settings.js';
|
|
22
|
+
import { DataExport } from './commands/DataExport.js';
|
|
23
|
+
import { Presence } from './commands/Presence.js';
|
|
24
|
+
// import { ComingSoon } from './commands/ComingSoon.js'; // REMOVED
|
|
25
|
+
import { Logout } from './commands/auth/Logout.js';
|
|
26
|
+
import { Verify } from './commands/auth/Verify.js';
|
|
27
|
+
import { BotStub, ConfigStub } from './commands/stubs/index.js';
|
|
28
|
+
const program = new Command();
|
|
29
|
+
program
|
|
30
|
+
.name('hackmate')
|
|
31
|
+
.description('The Terminal Social Network and Dating CLI for Hackers and Developers')
|
|
32
|
+
.version('0.0.1')
|
|
33
|
+
.option('--json', 'Output formatted JSON')
|
|
34
|
+
.option('--debug', 'Enable debug mode')
|
|
35
|
+
.option('--config <path>', 'Path to custom config file')
|
|
36
|
+
.option('--no-color', 'Disable colored output'); // Commander/Ink handle this internally usually, but explicit docs help
|
|
37
|
+
// --- AUTH ---
|
|
38
|
+
const auth = program.command('auth').description('Authentication & Identity');
|
|
39
|
+
auth.command('login')
|
|
40
|
+
.description('Login to HackMate')
|
|
41
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Login, {}) })); });
|
|
42
|
+
auth.command('signup')
|
|
43
|
+
.description('Create a new account')
|
|
44
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Signup, {}) })); });
|
|
45
|
+
auth.command('logout')
|
|
46
|
+
.description('Logout of session')
|
|
47
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Logout, {}) })); });
|
|
48
|
+
auth.command('verify')
|
|
49
|
+
.description('Verify email with OTP')
|
|
50
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Verify, {}) })); });
|
|
51
|
+
auth.command('whoami')
|
|
52
|
+
.description('Current user status')
|
|
53
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(ProfileView, {}) })); }); // Reuse profile view
|
|
54
|
+
// --- PROFILE ---
|
|
55
|
+
const profile = program.command('profile').description('Manage your profile');
|
|
56
|
+
profile.command('view [username]')
|
|
57
|
+
.description('View profile')
|
|
58
|
+
.action((username) => {
|
|
59
|
+
render(_jsx(AppProvider, { children: _jsx(ProfileView, { username: username }) }));
|
|
60
|
+
});
|
|
61
|
+
profile.command('edit')
|
|
62
|
+
.description('Edit profile details')
|
|
63
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(ProfileEdit, {}) })); });
|
|
64
|
+
// --- DISCOVERY ---
|
|
65
|
+
const discover = program.command('discover').description('Find developers');
|
|
66
|
+
discover.action(() => { render(_jsx(AppProvider, { children: _jsx(Discover, {}) })); });
|
|
67
|
+
discover.command('smart').action(() => { render(_jsx(AppProvider, { children: _jsx(Discover, {}) })); }); // Alias
|
|
68
|
+
discover.command('nearby').action(() => { render(_jsx(AppProvider, { children: _jsx(Discover, {}) })); }); // Reuse discover for now
|
|
69
|
+
// --- MATCHING ---
|
|
70
|
+
const match = program.command('match').description('Matching system');
|
|
71
|
+
match.action(() => { render(_jsx(AppProvider, { children: _jsx(MatchList, {}) })); });
|
|
72
|
+
match.command('list')
|
|
73
|
+
.description('List matches')
|
|
74
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(MatchList, {}) })); });
|
|
75
|
+
// --- SOCIAL (Was Network) ---
|
|
76
|
+
const social = program.command('social').description('Social Graph (Friends/Followers)');
|
|
77
|
+
social.command('list') // Friends list
|
|
78
|
+
.description('List friends/following')
|
|
79
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Network, { action: "list" }) })); });
|
|
80
|
+
social.command('requests')
|
|
81
|
+
.description('View pending requests')
|
|
82
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Network, { action: "requests" }) })); });
|
|
83
|
+
social.command('follow <username>') // "Add Friend"
|
|
84
|
+
.description('Follow/Add user')
|
|
85
|
+
.action((username) => { render(_jsx(AppProvider, { children: _jsx(Network, { action: "add", target: username }) })); });
|
|
86
|
+
social.command('unfollow <username>')
|
|
87
|
+
.description('Unfollow user')
|
|
88
|
+
.action((username) => { render(_jsx(AppProvider, { children: _jsx(UnfriendByUsername, { username: username }) })); });
|
|
89
|
+
social.command('block <username>')
|
|
90
|
+
.description('Block user')
|
|
91
|
+
.action((username) => { render(_jsx(AppProvider, { children: _jsx(Network, { action: "block", target: username }) })); });
|
|
92
|
+
// --- CHAT ---
|
|
93
|
+
const chat = program.command('chat').description('Messaging');
|
|
94
|
+
chat.command('list')
|
|
95
|
+
.description('List conversations')
|
|
96
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(ChatList, {}) })); });
|
|
97
|
+
chat.command('dm <username>')
|
|
98
|
+
.description('Direct Message')
|
|
99
|
+
.action((username) => { render(_jsx(AppProvider, { children: _jsx(Chat, { targetUsername: username }) })); });
|
|
100
|
+
chat.command('group <groupname>')
|
|
101
|
+
.description('Group Chat')
|
|
102
|
+
.action((groupname) => { render(_jsx(AppProvider, { children: _jsx(Chat, { groupName: groupname }) })); });
|
|
103
|
+
// --- PROJECTS (Added from featuresTodo) ---
|
|
104
|
+
const project = program.command('project').description('Project Collaboration');
|
|
105
|
+
project.command('list')
|
|
106
|
+
.description('List open projects')
|
|
107
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Project, { action: "list" }) })); });
|
|
108
|
+
project.command('create')
|
|
109
|
+
.description('Post a project')
|
|
110
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Project, { action: "create" }) })); });
|
|
111
|
+
project.command('view <id>')
|
|
112
|
+
.description('View project details')
|
|
113
|
+
.action((id) => { render(_jsx(AppProvider, { children: _jsx(Project, { action: "view", id: id }) })); });
|
|
114
|
+
project.command('apply <id>')
|
|
115
|
+
.description('Apply to a project')
|
|
116
|
+
.action((id) => { render(_jsx(AppProvider, { children: _jsx(Project, { action: "apply", id: id }) })); });
|
|
117
|
+
project.command('accept <id> <userId>')
|
|
118
|
+
.description('Accept applicant')
|
|
119
|
+
.action((id, userId) => { render(_jsx(AppProvider, { children: _jsx(Project, { action: "accept", id: id, extraArg: userId }) })); });
|
|
120
|
+
// --- GROUP (Communities) (Added from featuresTodo) ---
|
|
121
|
+
const group = program.command('group').description('Communities');
|
|
122
|
+
group.command('list')
|
|
123
|
+
.description('List groups')
|
|
124
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Group, { action: "list" }) })); });
|
|
125
|
+
group.command('create')
|
|
126
|
+
.description('Create community')
|
|
127
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Group, { action: "create" }) })); });
|
|
128
|
+
group.command('view <id>')
|
|
129
|
+
.description('View group')
|
|
130
|
+
.action((id) => { render(_jsx(AppProvider, { children: _jsx(Group, { action: "view", id: id }) })); });
|
|
131
|
+
group.command('join <id>')
|
|
132
|
+
.description('Join group')
|
|
133
|
+
.action((id) => { render(_jsx(AppProvider, { children: _jsx(Group, { action: "join", id: id }) })); });
|
|
134
|
+
group.command('accept <id> <userId>')
|
|
135
|
+
.description('Accept member')
|
|
136
|
+
.action((id, userId) => { render(_jsx(AppProvider, { children: _jsx(Group, { action: "accept", id: id, extraArg: userId }) })); });
|
|
137
|
+
// --- NOTIFICATIONS ---
|
|
138
|
+
const notification = program.command('notification').description('System Alerts');
|
|
139
|
+
notification.command('list')
|
|
140
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Notification, { action: "list" }) })); });
|
|
141
|
+
// --- ADMIN ---
|
|
142
|
+
const admin = program.command('admin').description('God Mode');
|
|
143
|
+
const users = admin.command('users').description('User Management');
|
|
144
|
+
users.command('list')
|
|
145
|
+
.action(() => { render(_jsx(AppProvider, { children: _jsx(Admin, { action: "list" }) })); });
|
|
146
|
+
users.command('view <id>')
|
|
147
|
+
.action((id) => { render(_jsx(AppProvider, { children: _jsx(Admin, { action: "view", id: id }) })); });
|
|
148
|
+
users.command('delete <id>')
|
|
149
|
+
.action((id) => { render(_jsx(AppProvider, { children: _jsx(Admin, { action: "delete", id: id }) })); });
|
|
150
|
+
// --- COMING SOON SECTIONS -> NOW IMPLEMENTED ---
|
|
151
|
+
program.command('stats').action(() => { render(_jsx(AppProvider, { children: _jsx(Stats, {}) })); });
|
|
152
|
+
program.command('privacy').action(() => { render(_jsx(AppProvider, { children: _jsx(Privacy, {}) })); });
|
|
153
|
+
program.command('settings').action(() => { render(_jsx(AppProvider, { children: _jsx(Settings, {}) })); });
|
|
154
|
+
program.command('ui').action(() => { render(_jsx(AppProvider, { children: _jsx(ConfigStub, {}) })); }); // Show config for UI
|
|
155
|
+
program.command('data').action(() => { render(_jsx(AppProvider, { children: _jsx(DataExport, {}) })); });
|
|
156
|
+
program.command('dev').action(() => { render(_jsx(AppProvider, { children: _jsx(ConfigStub, {}) })); }); // Show config env
|
|
157
|
+
program.command('bot').action(() => { render(_jsx(AppProvider, { children: _jsx(BotStub, {}) })); });
|
|
158
|
+
// Configuration
|
|
159
|
+
const config = program.command('config').description('Configuration');
|
|
160
|
+
config.action(() => { render(_jsx(AppProvider, { children: _jsx(Config, { action: "get" }) })); });
|
|
161
|
+
config.command('get').action(() => { render(_jsx(AppProvider, { children: _jsx(Config, { action: "get" }) })); });
|
|
162
|
+
config.command('set <url>').action((url) => { render(_jsx(AppProvider, { children: _jsx(Config, { action: "set", value: url }) })); });
|
|
163
|
+
// Network Presence (from commands.md, distinct from 'social')
|
|
164
|
+
const net = program.command('network').description('Connection & Presence');
|
|
165
|
+
net.command('online').action(() => { render(_jsx(AppProvider, { children: _jsx(Presence, { status: "online" }) })); });
|
|
166
|
+
net.command('offline').action(() => { render(_jsx(AppProvider, { children: _jsx(Presence, { status: "offline" }) })); });
|
|
167
|
+
// Default
|
|
168
|
+
program.action(() => {
|
|
169
|
+
render(_jsxs(Box, { borderStyle: "round", borderColor: "green", padding: 1, flexDirection: "column", children: [_jsx(Text, { color: "green", bold: true, children: "HackMate CLI 1.0" }), _jsxs(Text, { children: ["Run ", _jsx(Text, { color: "cyan", children: "hackmate --help" }), " to see the new command tree."] })] }));
|
|
170
|
+
});
|
|
171
|
+
program.parse(process.argv);
|
|
172
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.tsx"],"names":[],"mappings":";;AACA,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,WAAW;AACX,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,QAAQ,E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,CACF,MAAC,GAAG,IAAC,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAC,OAAO,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ,aAC3E,KAAC,IAAI,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,uCAAwB,EAChD,MAAC,IAAI,uBAAK,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,gCAAuB,qCAAoC,IACrF,CACT,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComingSoon.d.ts","sourceRoot":"","sources":["../../src/commands/ComingSoon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,eAAe;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAMhD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text, Box } from 'ink';
|
|
3
|
+
export const ComingSoon = ({ feature }) => (_jsxs(Box, { borderStyle: "round", borderColor: "yellow", padding: 1, flexDirection: "column", children: [_jsxs(Text, { color: "yellow", bold: true, children: ["\uD83D\uDEA7 Feature Under Construction: ", feature] }), _jsx(Text, { children: "This command is part of the HackMate \"Best CLI\" spec but is not yet implemented." }), _jsx(Text, { color: "gray", children: "Stay tuned for updates!" })] }));
|
|
4
|
+
//# sourceMappingURL=ComingSoon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComingSoon.js","sourceRoot":"","sources":["../../src/commands/ComingSoon.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAMhC,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAClE,MAAC,GAAG,IAAC,WAAW,EAAC,OAAO,EAAC,WAAW,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ,aAC5E,MAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,gEAAiC,OAAO,IAAQ,EACzE,KAAC,IAAI,qGAAwF,EAC7F,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,wCAA+B,IAC/C,CACT,CAAC"}
|