@nolto/cli 0.19.3 → 0.20.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 +5 -5
- package/dist/index.js +2050 -2024
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -217,14 +217,14 @@ Status/type/category accept case-insensitive exact names or UUIDs from the proje
|
|
|
217
217
|
|
|
218
218
|
List output is one line per issue plus `n / total (page p)`. View includes body and comments with API-token provenance. Writes print the issue key and URL. `--json` preserves API responses: list `{ issues, total, page, pageSize }`, view the full bundle, create `{ issue }`, update/close `{ issue, comment }`, comment `{ comment }`. Successful create with phase additionally returns `roadmap: { file, taskId }`. Human template creation adds `body: from template`. `whoami` adds scopes (null displayed as full) and project binding; JSON uses tokenScopes/tokenProject when introspection succeeds. Introspection failure is non-fatal and retains the old output.
|
|
219
219
|
|
|
220
|
-
`--phase`
|
|
220
|
+
`--phase` refers to a **task ID**, not a phase ID. After creation it adds the issue key to task.issues in the cached roadmap (`nolto roadmap path`), avoids duplicates, keeps schemaVersion and updatedAt unchanged, and runs `nolto roadmap sync` for that slug. If the key is already attached, nothing is written or synced. If multiple roadmaps are cached, use `--roadmap <slug>`. A failure after issue creation (missing task, roadmap selection, or sync) exits 2 and the error includes the created key; add it to task.issues in the cache and run `nolto roadmap sync` instead of repeating create.
|
|
221
221
|
|
|
222
222
|
| Exit | Meaning |
|
|
223
223
|
|---|---|
|
|
224
224
|
| 0 | Success |
|
|
225
|
-
| 2 | Invalid input, recognized API 404, HTTP 422 (details shown), or
|
|
225
|
+
| 2 | Invalid input, recognized API 404, HTTP 422 (details shown), or roadmap cache/sync failure after creation |
|
|
226
226
|
| 3 | HTTP 401/403; token_scope/token_project includes a token settings hint |
|
|
227
|
-
| 4 | HTTP 402
|
|
227
|
+
| 4 | Plan / quota limit (HTTP 402) or rate limit (HTTP 429); resolve or wait before retrying. Token writes: 60/minute; wait Retry-After seconds before retrying. |
|
|
228
228
|
| 5 | Network/generic HTTP errors, including a 404 without an API error string |
|
|
229
229
|
|
|
230
230
|
|
|
@@ -276,7 +276,7 @@ Precedence: CLI flags > environment variables > `nolto.json` > config file > def
|
|
|
276
276
|
|
|
277
277
|
## JSON Output
|
|
278
278
|
|
|
279
|
-
`nolto issue … --json` returns the original API response; `create --phase` adds
|
|
279
|
+
`nolto issue … --json` returns the original API response; `create --phase` adds `roadmap: { file, taskId }` metadata (file is the cache path). `whoami` includes `tokenScopes` / `tokenProject` when token introspection succeeds.
|
|
280
280
|
|
|
281
281
|
Use the global `--json` option for machine-readable command output:
|
|
282
282
|
|
|
@@ -308,7 +308,7 @@ Issue validation and API 404 with an error string exit 2; 422 includes details.
|
|
|
308
308
|
| 1 | Roadmap differences found (`nolto diff`) or unexpected command failure |
|
|
309
309
|
| 2 | Local input or file validation error |
|
|
310
310
|
| 3 | Authentication or authorization error |
|
|
311
|
-
| 4 |
|
|
311
|
+
| 4 | Action needed before retrying: roadmap sync conflict, expired base revision, unsynced local changes blocking `nolto pull` / `nolto init` / `nolto link` / `nolto roadmap` task updates (resolve with `nolto pull` / `nolto roadmap sync`, then retry), rate limit response (HTTP 429, including the `nolto link --rebind` cooldown), or plan / quota limit (HTTP 402). API token writes: 60/minute; server message and Retry-After are displayed. |
|
|
312
312
|
| 5 | Network, DNS, or server error |
|
|
313
313
|
|
|
314
314
|
## License
|