@hsafa/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 ADDED
@@ -0,0 +1,72 @@
1
+ # HSAFA CLI
2
+
3
+ A comprehensive CLI to control HSAFA without a UI.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ cd hsafa/cli
9
+ pnpm install
10
+ pnpm run build
11
+ npm link
12
+ ```
13
+
14
+ ## Configuration
15
+
16
+ Set the server URL (default: http://localhost:3900):
17
+
18
+ ```bash
19
+ hsafa config -s http://your-server:3900
20
+ ```
21
+
22
+ ## Commands
23
+
24
+ ### Authentication
25
+
26
+ ```bash
27
+ hsafa auth login
28
+ hsafa auth status
29
+ hsafa auth logout
30
+ ```
31
+
32
+ ### Workspaces & Projects
33
+
34
+ ```bash
35
+ hsafa workspace list
36
+ hsafa workspace projects <workspace-id>
37
+ ```
38
+
39
+ ### Agents
40
+
41
+ ```bash
42
+ hsafa agent list -p <project-id>
43
+ hsafa agent chat <agent-id>
44
+ ```
45
+
46
+ ### Knowledge Bases
47
+
48
+ ```bash
49
+ hsafa kb list
50
+ hsafa kb docs <kb-id>
51
+ hsafa kb create <name>
52
+ hsafa kb doc-add <kb-id> <file-path>
53
+ ```
54
+
55
+ ### Documents
56
+
57
+ ```bash
58
+ hsafa doc upload <file-path>
59
+ ```
60
+
61
+ ### System Status
62
+
63
+ ```bash
64
+ hsafa status
65
+ ```
66
+
67
+ ## Features
68
+
69
+ - **Interactive Chat**: Real-time streaming conversation with agents.
70
+ - **Project Navigation**: Easily list workspaces, projects, and agents.
71
+ - **Secure Auth**: Stores session tokens locally.
72
+ - **File Uploads**: Command-line file uploads to the server.