@duvoai/cli 1.87.1 → 1.89.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.
Files changed (3) hide show
  1. package/dist/bin/duvo.js +15442 -12832
  2. package/guides/duvo.md +13 -5
  3. package/package.json +3 -3
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 /v1/agents -F limit=20 -F offset=0
126
- duvo api POST /v1/agents -f name="Ops bot"
127
- cat body.json | duvo api POST /v1/agents --input -
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`. Run `duvo api --help` for the full flag set.
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvoai/cli",
3
- "version": "1.87.1",
3
+ "version": "1.89.0",
4
4
  "description": "Command-line interface for the Duvo public API",
5
5
  "bin": {
6
6
  "duvo": "./dist/bin/duvo.js"
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@esbuild-plugins/tsconfig-paths": "^0.1.2",
22
+ "@taskcrew/shared": "1.0.0",
22
23
  "@types/node": "^24.3.0",
23
24
  "esbuild": "^0.25.6",
24
25
  "tsx": "^4.20.3",
25
26
  "typescript": "^5.7.2",
26
- "vitest": "^3.2.4",
27
- "@taskcrew/shared": "1.0.0"
27
+ "vitest": "^3.2.4"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.22.0"