@restregular/dsh-powerup 0.10.7 → 0.12.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 CHANGED
@@ -142,6 +142,18 @@ entries other plugins add) become an icon grid instead of a one-per-row list:
142
142
  its own (chat glyph + label) that calls `layout.selectPanel(null)` to return
143
143
  to the Conversation; it highlights when no global panel is selected and can be
144
144
  placed anywhere by dragging, including into a folder.
145
+ - **Task-aware restart and close.** `GET /dsh-powerup/api/restart|close` also
146
+ reports `runningTasks` (live running Agents and running background jobs). When
147
+ any task is unfinished the normal confirm is blocked: the dialog lists the
148
+ sessions and offers a **Force restart / Force close** path that stops every
149
+ running Agent and job first. That forced path has an extra **Resume tasks after
150
+ restart / Resume tasks on next launch** option (on by default, with an optional
151
+ custom continuation prompt). With resume enabled the Host cancels each running
152
+ Agent, kills running jobs, and records the affected sessions in
153
+ `~/.dsh/dsh-powerup/task-resume.json`; on the next successful startup it sends
154
+ each session a queued "continue" prompt through `sessionController.prompt`
155
+ (which resumes cold sessions), then removes the delivered records. With resume
156
+ disabled the forced path only stops the work and keeps no records.
145
157
  - **A synthetic "Restart DSH" tile.** A second Power-Up tile (a ring with the
146
158
  arrowhead tangent to the top, i.e. the arrow lines up with the arc) plus
147
159
  `重启` / `Restart` opens the same restart confirmation the pending-restart
@@ -408,6 +420,29 @@ record carrying its own workspace id, so the settings page can manage every
408
420
  workspace together. Older per-workspace files are migrated automatically on
409
421
  first access.
410
422
 
423
+ ### Task progress snapshot
424
+
425
+ A **Progress** button in the session header generates a structured view of
426
+ what the current task has accomplished so far, without blocking or disturbing
427
+ the running agent:
428
+
429
+ - **Off to the side.** Clicking the button asks the Host to start a separate
430
+ model call that reuses the session's own provider/model. That call reads a
431
+ compact copy of the recent conversation, runs under its own abort/timeout,
432
+ writes **nothing** to the session log, and never touches the agent's turn —
433
+ you can keep working while it runs. The panel polls until it settles.
434
+ - **Model picks the structure.** The report is one JSON object whose `mode`
435
+ the model chooses from `checklist`, `phases`, `milestones`, or `tree`, with
436
+ status badges, progress meter, blockers, and per-node details rendered for
437
+ that shape. The Host validates and normalizes the result before it reaches
438
+ the UI.
439
+ - **Model-rendered extras.** The report may include a `display` array of blocks
440
+ (`text`, `kv`, `callout`, `bars`, `code`) that the panel renders directly, so
441
+ the model can surface any additional user-facing content it finds useful
442
+ without the plugin needing to anticipate every format.
443
+ - The feature is on by default and can be switched off on the Power-Up page;
444
+ reports are cached per session in memory and marked stale after a minute.
445
+
411
446
  ### Dual send buttons
412
447
 
413
448
  When enabled on the Power-Up page, two compact controls appear at the right of