@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 +72 -0
- package/dist/commands/agent.js +853 -0
- package/dist/commands/auth.js +168 -0
- package/dist/commands/chat.js +233 -0
- package/dist/commands/doc.js +37 -0
- package/dist/commands/gql.js +106 -0
- package/dist/commands/invite.js +147 -0
- package/dist/commands/kb.js +155 -0
- package/dist/commands/key.js +87 -0
- package/dist/commands/mcp.js +56 -0
- package/dist/commands/member.js +103 -0
- package/dist/commands/profile.js +65 -0
- package/dist/commands/project.js +90 -0
- package/dist/commands/system.js +27 -0
- package/dist/commands/user.js +48 -0
- package/dist/commands/workspace.js +77 -0
- package/dist/index.js +56 -0
- package/dist/templates/basic-assistant.json +57 -0
- package/dist/templates/researcher.json +58 -0
- package/dist/utils/api.js +13 -0
- package/dist/utils/config.js +22 -0
- package/dist/utils/graphql.js +17 -0
- package/package.json +43 -0
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.
|