@duvoai/cli 0.4.1 → 0.5.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 +33 -1
- package/dist/bin/duvo.js +1734 -984
- package/dist/bin/duvo.js.map +4 -4
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -10,6 +10,13 @@ npm install -g @duvoai/cli
|
|
|
10
10
|
|
|
11
11
|
Requires Node.js ≥ 22.22.0.
|
|
12
12
|
|
|
13
|
+
## Deprecation notices
|
|
14
|
+
|
|
15
|
+
When the API marks an endpoint as deprecated, this CLI prints a short
|
|
16
|
+
warning to stderr (with the sunset date and a link if the server provides
|
|
17
|
+
them). Deprecation warnings always show — they don't affect stdout and
|
|
18
|
+
can't be silenced.
|
|
19
|
+
|
|
13
20
|
## Quick start
|
|
14
21
|
|
|
15
22
|
```bash
|
|
@@ -60,7 +67,7 @@ duvo --profile team-2 whoami # one-off override for a single command
|
|
|
60
67
|
| `duvo agents case-triggers list <agent-id>` | List case triggers configured for an agent |
|
|
61
68
|
| `duvo agents case-triggers create <agent-id> --queue <id>` | Create a case trigger for an agent |
|
|
62
69
|
| `duvo agents case-triggers get <agent-id> <trigger-id>` | Get a case trigger by ID |
|
|
63
|
-
| `duvo agents case-triggers update <agent-id> <trigger-id>` | Update a case trigger
|
|
70
|
+
| `duvo agents case-triggers update <agent-id> <trigger-id>` | Update a case trigger (`--enable` / `--disable`, `--queue`, `--concurrency`) |
|
|
64
71
|
| `duvo agents case-triggers delete <agent-id> <trigger-id>` | Delete a case trigger |
|
|
65
72
|
| `duvo agent-folders list` | List agent folders for your team |
|
|
66
73
|
| `duvo agent-folders create` | Create an agent folder |
|
|
@@ -149,3 +156,28 @@ duvo --profile team-2 whoami # one-off override for a single command
|
|
|
149
156
|
| `duvo api <method> <path>` | Make a raw authenticated API request |
|
|
150
157
|
|
|
151
158
|
Run `duvo <command> --help` for full flags on any command.
|
|
159
|
+
|
|
160
|
+
## Details
|
|
161
|
+
|
|
162
|
+
### `cases create --from-file`
|
|
163
|
+
|
|
164
|
+
Pass a JSON file containing a single case object or an array of up to 100 case objects.
|
|
165
|
+
Each object has this shape:
|
|
166
|
+
|
|
167
|
+
```json
|
|
168
|
+
{
|
|
169
|
+
"title": "Case title",
|
|
170
|
+
"data": "Optional free-form data string passed to the assignment on claim",
|
|
171
|
+
"labels": [{ "key": "priority", "value": "high" }, { "value": "urgent" }]
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Labels in the `labels` array must each be a `{"key":"…","value":"…"}` object. The `key` field is
|
|
176
|
+
optional — omit it (or set it to `""`) for a simple tag-only label.
|
|
177
|
+
|
|
178
|
+
Read from stdin by passing `-` as the path:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
echo '[{"title":"Case A"},{"title":"Case B","labels":[{"key":"tier","value":"gold"}]}]' \
|
|
182
|
+
| duvo cases create --queue <id> --from-file -
|
|
183
|
+
```
|