@chanl/cli 2.0.1
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 +78 -0
- package/bin/chanl.js +10 -0
- package/dist/__tests__/cli.test.js +2313 -0
- package/dist/__tests__/cli.test.js.map +1 -0
- package/dist/cli.js +72 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/agents.js +671 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/auth.js +294 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/call.js +166 -0
- package/dist/commands/call.js.map +1 -0
- package/dist/commands/calls.js +719 -0
- package/dist/commands/calls.js.map +1 -0
- package/dist/commands/chat.js +203 -0
- package/dist/commands/chat.js.map +1 -0
- package/dist/commands/config.js +231 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/health.js +55 -0
- package/dist/commands/health.js.map +1 -0
- package/dist/commands/index.js +39 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/knowledge.js +539 -0
- package/dist/commands/knowledge.js.map +1 -0
- package/dist/commands/mcp.js +589 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/memory.js +408 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/personas.js +356 -0
- package/dist/commands/personas.js.map +1 -0
- package/dist/commands/prompts.js +295 -0
- package/dist/commands/prompts.js.map +1 -0
- package/dist/commands/scenarios.js +591 -0
- package/dist/commands/scenarios.js.map +1 -0
- package/dist/commands/scorecards.js +570 -0
- package/dist/commands/scorecards.js.map +1 -0
- package/dist/commands/tools.js +632 -0
- package/dist/commands/tools.js.map +1 -0
- package/dist/commands/toolsets.js +464 -0
- package/dist/commands/toolsets.js.map +1 -0
- package/dist/commands/workspaces.js +170 -0
- package/dist/commands/workspaces.js.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/config-store.js +191 -0
- package/dist/utils/config-store.js.map +1 -0
- package/dist/utils/interactive.js +83 -0
- package/dist/utils/interactive.js.map +1 -0
- package/dist/utils/output.js +221 -0
- package/dist/utils/output.js.map +1 -0
- package/dist/utils/sdk-factory.js +34 -0
- package/dist/utils/sdk-factory.js.map +1 -0
- package/package.json +67 -0
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# @chanl/cli
|
|
2
|
+
|
|
3
|
+
Command-line interface for the [Chanl AI](https://chanl.ai) platform.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @chanl/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or run directly:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @chanl/cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Authenticate
|
|
21
|
+
chanl login
|
|
22
|
+
|
|
23
|
+
# Check health
|
|
24
|
+
chanl health
|
|
25
|
+
|
|
26
|
+
# List agents
|
|
27
|
+
chanl agents list
|
|
28
|
+
|
|
29
|
+
# Chat with an agent
|
|
30
|
+
chanl chat <agent-id>
|
|
31
|
+
|
|
32
|
+
# Run test scenarios
|
|
33
|
+
chanl scenarios list
|
|
34
|
+
chanl scenarios run <id>
|
|
35
|
+
|
|
36
|
+
# Manage tools
|
|
37
|
+
chanl tools list
|
|
38
|
+
chanl toolsets list
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Commands
|
|
42
|
+
|
|
43
|
+
| Command | Description |
|
|
44
|
+
|---------|-------------|
|
|
45
|
+
| `chanl login` | Authenticate with API key or browser |
|
|
46
|
+
| `chanl health` | Check API health |
|
|
47
|
+
| `chanl agents` | Manage AI agents |
|
|
48
|
+
| `chanl tools` | Manage MCP tools |
|
|
49
|
+
| `chanl toolsets` | Manage tool collections |
|
|
50
|
+
| `chanl scenarios` | Run test scenarios |
|
|
51
|
+
| `chanl calls` | Import and analyze calls |
|
|
52
|
+
| `chanl call <phone>` | Make an outbound AI call |
|
|
53
|
+
| `chanl chat <agent>` | Interactive chat session |
|
|
54
|
+
| `chanl kb` | Manage knowledge base |
|
|
55
|
+
| `chanl memory` | Manage agent memory |
|
|
56
|
+
| `chanl scorecards` | Manage evaluation scorecards |
|
|
57
|
+
| `chanl prompts` | Manage prompt templates |
|
|
58
|
+
| `chanl config` | CLI configuration |
|
|
59
|
+
| `chanl mcp` | MCP server status |
|
|
60
|
+
|
|
61
|
+
## Configuration
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
chanl config show # Show current config
|
|
65
|
+
chanl config set baseUrl <url> # Custom API endpoint
|
|
66
|
+
chanl config reset # Reset to production
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Default API: `https://platform.chanl.ai`
|
|
70
|
+
|
|
71
|
+
## Documentation
|
|
72
|
+
|
|
73
|
+
- [Chanl Platform](https://chanl.ai)
|
|
74
|
+
- [GitHub](https://github.com/chanl-ai/chanl-sdk)
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
MIT
|
package/bin/chanl.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Entry point for the Chanl CLI
|
|
4
|
+
// This file is used for local development with `npm link`
|
|
5
|
+
// In production, the compiled dist/index.js is used directly
|
|
6
|
+
|
|
7
|
+
import('../dist/index.js').catch((err) => {
|
|
8
|
+
console.error('Failed to load CLI:', err.message);
|
|
9
|
+
process.exit(1);
|
|
10
|
+
});
|