@softdesignbrasil/productdock-cli 0.16.0 → 0.16.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 CHANGED
@@ -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