@softdesignbrasil/productdock-cli 0.16.0 → 0.16.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 +28 -1
- package/dist/productdock.js +81 -79
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -485,7 +485,7 @@ summary goes to `stderr`.
|
|
|
485
485
|
| Subcommand | `data` |
|
|
486
486
|
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
487
487
|
| `prd` | `{ content, status, version, updated_at }` — the latest PRD version. A work item with no PRD returns `{ content: null, message }`, which is a **success**, not an error |
|
|
488
|
-
| `list` | `{ project_id, work_item_prefix, repository_id, has_more, items[] }`; each item is `{ id, item_number, title, description, type, status, flow_mode, current_phase, assigned_to, assigned_to_name, wave, affected_release }` — `assigned_to` is the assignee's user id and `assigned_to_name` the readable name, both `null` when nobody is assigned; `wave` is the item's wave `{ id, code, name }` and `affected_release` its affected version `{ id, version, status, repository: { id, name } }`, each `null` when the item has none (the keys are always present). Capped at 100 items — `has_more: true` says the cap was hit. Without `--json`, the summary shows next to each item the assignee (`(sem responsável)` when there is none), the wave by its `code` (`(sem onda)`) and the affected version by its `version` (`(sem versão)`) |
|
|
488
|
+
| `list` | `{ project_id, work_item_prefix, repository_id, has_more, items[] }`; each item is `{ id, item_number, title, description, type, status, flow_mode, uses_plan, prd_status, current_phase, assigned_to, assigned_to_name, wave, affected_release }` — `uses_plan` is the same flag `state phase` returns (`true` means the Plan track, `plan.md`; never `null`); `prd_status` is the status of the PRD version that counts for the IDE, as the API sends it (a draft over the approved version comes as `approved`), `null` when the work item has no PRD; `assigned_to` is the assignee's user id and `assigned_to_name` the readable name, both `null` when nobody is assigned; `wave` is the item's wave `{ id, code, name }` and `affected_release` its affected version `{ id, version, status, repository: { id, name } }`, each `null` when the item has none (the keys are always present). Capped at 100 items — `has_more: true` says the cap was hit. Without `--json`, the summary shows next to each item the assignee (`(sem responsável)` when there is none), the wave by its `code` (`(sem onda)`) and the affected version by its `version` (`(sem versão)`) |
|
|
489
489
|
| `spec-context` | `{ product_brief, product_brief_status, product_vision, domain_model, discovery_insights, non_functional_requirements, sibling_specs, skill_mode, current_state, repository_id }`. `skill_mode` is the project's Lite Mode toggle (`full` / `lite`) |
|
|
490
490
|
|
|
491
491
|
##### Exit codes
|
|
@@ -2195,6 +2195,33 @@ Checks performed:
|
|
|
2195
2195
|
10. Installed skills and agents are on the registry's latest version — a newer one is a warning, and `--fix` updates it
|
|
2196
2196
|
(skipping any skill modified locally, as `skill update` does)
|
|
2197
2197
|
|
|
2198
|
+
**After `--fix`, open a new agent session.** An agent session that is already open (Claude Code, Cursor, Copilot) loaded
|
|
2199
|
+
its skills when it started, and the IDE reads the MCP config when it opens — but agent files change on disk at once, so
|
|
2200
|
+
the session could dispatch a new agent from an old skill. When `--fix` updated a skill or an agent, or rewrote the MCP
|
|
2201
|
+
config, it ends with a `Sessão nova necessária` block listing what changed.
|
|
2202
|
+
|
|
2203
|
+
Under `--json`, `doctor` returns:
|
|
2204
|
+
|
|
2205
|
+
```json
|
|
2206
|
+
{
|
|
2207
|
+
"ok": true,
|
|
2208
|
+
"checks": [{ "status": "warn", "label": "Atualizações de skills", "detail": "…", "fix": "productdock skill update" }],
|
|
2209
|
+
"summary": { "errors": 0, "warnings": 1 },
|
|
2210
|
+
"fix": {
|
|
2211
|
+
"updated": { "skill": [{ "name": "pd-workflow", "current": "1.0.0", "latest": "1.2.0" }], "agent": [] },
|
|
2212
|
+
"skipped": [],
|
|
2213
|
+
"mcp_rewritten": false,
|
|
2214
|
+
"cli_update_command": null
|
|
2215
|
+
},
|
|
2216
|
+
"requires_new_session": true,
|
|
2217
|
+
"stale_session_reasons": ["skill(s) atualizada(s): pd-workflow (1.0.0 → 1.2.0)"]
|
|
2218
|
+
}
|
|
2219
|
+
```
|
|
2220
|
+
|
|
2221
|
+
`fix` is `null` without `--fix` (or when there was nothing to fix), and `requires_new_session` is then `false`.
|
|
2222
|
+
`skipped[]` lists what `--fix` did not update, with `reason` `modified` or `failed` (plus `detail`). The exit code
|
|
2223
|
+
is `0` whatever the checks found — read `summary` and `checks[]`.
|
|
2224
|
+
|
|
2198
2225
|
Outside `doctor`, any command run by a human in a terminal ends with a one-line notice when installed skills or agents
|
|
2199
2226
|
have a newer version (`productdock skill update` / `productdock agent update`). The registry is queried at most once a
|
|
2200
2227
|
day per project (cached in `~/.productdock/update-check.json`) with a 3s timeout; the notice goes to `stderr` and is
|