@duvoai/cli 1.88.0 → 1.90.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 +2 -2
- package/dist/bin/duvo.js +14142 -11872
- package/guides/duvo.md +13 -5
- package/package.json +1 -1
package/guides/duvo.md
CHANGED
|
@@ -119,16 +119,24 @@ with `duvo pulse send-message <id> --message "…"` (creator only).
|
|
|
119
119
|
## Escape hatch — `duvo api`
|
|
120
120
|
|
|
121
121
|
Any public endpoint is reachable before it has a dedicated command, modelled
|
|
122
|
-
on `gh api
|
|
122
|
+
on `gh api`'s short flags. `duvo api` sends the path through verbatim —
|
|
123
|
+
unlike the high-level commands, it does not resolve `--team`/`DUVO_TEAM_ID`/
|
|
124
|
+
the profile default for you, so spell out whatever the endpoint's own path
|
|
125
|
+
is. Route shapes vary per resource — some collections are team-scoped, some
|
|
126
|
+
are flat (`/v2/artifacts`), and some by-ID routes stay team-scoped — so take
|
|
127
|
+
the exact path from `GET /v2/documentation/json` (the raw OpenAPI document —
|
|
128
|
+
`/v2/documentation` itself is the Swagger UI HTML) rather than inferring it:
|
|
123
129
|
|
|
124
130
|
```bash
|
|
125
|
-
duvo api GET /
|
|
126
|
-
duvo api POST /
|
|
127
|
-
cat body.json | duvo api POST /
|
|
131
|
+
duvo api GET "/v2/teams/$TEAM_ID/agents" -F limit=20 -F offset=0
|
|
132
|
+
duvo api POST "/v2/teams/$TEAM_ID/agents" -f name="Ops bot"
|
|
133
|
+
cat body.json | duvo api POST "/v2/teams/$TEAM_ID/agents" --input -
|
|
128
134
|
```
|
|
129
135
|
|
|
130
136
|
`-f key=value` always sends a string; `-F key=value` parses booleans, numbers,
|
|
131
|
-
JSON null, or `@file`.
|
|
137
|
+
JSON null, or `@file`. Prefer the short spellings: the long aliases are the
|
|
138
|
+
reverse of `gh api`'s (`--field` is the string form here, `--raw-field` the
|
|
139
|
+
typed one). Run `duvo api --help` for the full flag set.
|
|
132
140
|
|
|
133
141
|
## Discoverability
|
|
134
142
|
|