@duvoai/cli 0.4.0 → 0.4.2

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 CHANGED
@@ -50,7 +50,7 @@ duvo --profile team-2 whoami # one-off override for a single command
50
50
  | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
51
51
  | `duvo login` | Store an API key under a named profile |
52
52
  | `duvo logout` | Remove a profile |
53
- | `duvo whoami` | Show the active profile, API key owner, and masked key |
53
+ | `duvo whoami` | Show the active profile, API key owner, and auth type |
54
54
  | `duvo profiles <subcmd>` | `list`, `use`, `rename`, `remove` |
55
55
  | `duvo agents list` | List agents on your team |
56
56
  | `duvo agents get <id>` | Show details for one agent |
@@ -60,7 +60,7 @@ duvo --profile team-2 whoami # one-off override for a single command
60
60
  | `duvo agents case-triggers list <agent-id>` | List case triggers configured for an agent |
61
61
  | `duvo agents case-triggers create <agent-id> --queue <id>` | Create a case trigger for an agent |
62
62
  | `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 |
63
+ | `duvo agents case-triggers update <agent-id> <trigger-id>` | Update a case trigger (`--enable` / `--disable`, `--queue`, `--concurrency`) |
64
64
  | `duvo agents case-triggers delete <agent-id> <trigger-id>` | Delete a case trigger |
65
65
  | `duvo agent-folders list` | List agent folders for your team |
66
66
  | `duvo agent-folders create` | Create an agent folder |
@@ -149,3 +149,28 @@ duvo --profile team-2 whoami # one-off override for a single command
149
149
  | `duvo api <method> <path>` | Make a raw authenticated API request |
150
150
 
151
151
  Run `duvo <command> --help` for full flags on any command.
152
+
153
+ ## Details
154
+
155
+ ### `cases create --from-file`
156
+
157
+ Pass a JSON file containing a single case object or an array of up to 100 case objects.
158
+ Each object has this shape:
159
+
160
+ ```json
161
+ {
162
+ "title": "Case title",
163
+ "data": "Optional free-form data string passed to the assignment on claim",
164
+ "labels": [{ "key": "priority", "value": "high" }, { "value": "urgent" }]
165
+ }
166
+ ```
167
+
168
+ Labels in the `labels` array must each be a `{"key":"…","value":"…"}` object. The `key` field is
169
+ optional — omit it (or set it to `""`) for a simple tag-only label.
170
+
171
+ Read from stdin by passing `-` as the path:
172
+
173
+ ```bash
174
+ echo '[{"title":"Case A"},{"title":"Case B","labels":[{"key":"tier","value":"gold"}]}]' \
175
+ | duvo cases create --queue <id> --from-file -
176
+ ```