olakai-cli 0.1.2 → 0.1.4
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 +73 -1
- package/dist/index.js +754 -0
- package/dist/index.js.map +1 -1
- package/package.json +11 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Olakai CLI
|
|
2
2
|
|
|
3
|
-
Command-line interface tool for the Olakai platform.
|
|
3
|
+
Command-line interface tool for the Olakai platform. Designed for managing Olakai configuration and inspecting AI activity.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -14,6 +14,78 @@ npm install -g olakai-cli
|
|
|
14
14
|
olakai <command> [options]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
## Commands
|
|
18
|
+
|
|
19
|
+
### Authentication
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
olakai login # Login via browser (OAuth 2.0 Device Flow)
|
|
23
|
+
olakai logout # Clear credentials
|
|
24
|
+
olakai whoami # Show current user
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Agents
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
olakai agents list [--json] [--include-kpis]
|
|
31
|
+
olakai agents get <id> [--json]
|
|
32
|
+
olakai agents create --name <name> [--description <desc>] [--role <WORKER|COORDINATOR>] [--with-api-key]
|
|
33
|
+
olakai agents update <id> [--name <name>] [--description <desc>]
|
|
34
|
+
olakai agents delete <id> --force
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Workflows
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
olakai workflows list [--json] [--include-agents]
|
|
41
|
+
olakai workflows get <id> [--json]
|
|
42
|
+
olakai workflows create --name <name> [--description <desc>]
|
|
43
|
+
olakai workflows update <id> [--name <name>] [--description <desc>]
|
|
44
|
+
olakai workflows delete <id> --force
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### KPIs
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
olakai kpis list [--agent-id <id>] [--json]
|
|
51
|
+
olakai kpis get <id> [--json]
|
|
52
|
+
olakai kpis create --name <name> --calculator <formula|classifier|llm-data> [--formula <expr>]
|
|
53
|
+
olakai kpis update <id> [--name <name>]
|
|
54
|
+
olakai kpis delete <id> --force
|
|
55
|
+
olakai kpis validate --formula <expr> [--agent-id <id>]
|
|
56
|
+
olakai kpis context-variables [--agent-id <id>]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Activity
|
|
60
|
+
|
|
61
|
+
Inspect AI activity and prompt requests:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# List prompt requests with filters
|
|
65
|
+
olakai activity list [--agent-id <id>] [--workflow-id <id>] [--since <date>] [--until <date>] [--limit <n>] [--offset <n>] [--include-content] [--include-analytics] [--json]
|
|
66
|
+
|
|
67
|
+
# Get single prompt request details
|
|
68
|
+
olakai activity get <id> [--include-content] [--json]
|
|
69
|
+
|
|
70
|
+
# Get aggregated KPI values
|
|
71
|
+
olakai activity kpis --agent-id <id> | --workflow-id <id> [--since <date>] [--until <date>] [--period <hourly|daily|weekly>] [--include-atoms] [--json]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Environment
|
|
75
|
+
|
|
76
|
+
Set environment with `-e` flag or `OLAKAI_ENV` variable:
|
|
77
|
+
|
|
78
|
+
- `production` (default): https://app.olakai.ai
|
|
79
|
+
- `staging`: https://staging.app.olakai.ai
|
|
80
|
+
- `local`: http://localhost:3000
|
|
81
|
+
|
|
82
|
+
Example:
|
|
83
|
+
```bash
|
|
84
|
+
olakai -e local login
|
|
85
|
+
# or
|
|
86
|
+
OLAKAI_ENV=local olakai login
|
|
87
|
+
```
|
|
88
|
+
|
|
17
89
|
## Development
|
|
18
90
|
|
|
19
91
|
```bash
|