feat(web): manage independent schedules and restore recorded stage navigation
This commit is contained in:
+24
@@ -320,6 +320,30 @@ aggregates. See `internal/protocol/message.go` for JSON envelopes. Mutating RPCs
|
||||
have real effects; they are not previews. TUI-only animation, scrolling, and
|
||||
transient client logs are presentation, not separate server capabilities.
|
||||
|
||||
## Saved run schedules
|
||||
|
||||
Schedules are independent pipeline/version + run-information + timer records,
|
||||
not workflow Markdown. See [saved schedules](schedules.md) for the web flow,
|
||||
JSON examples, clock semantics and legacy migration.
|
||||
|
||||
| Command | Payload | Reply |
|
||||
| --- | --- | --- |
|
||||
| `list_schedules` | optional `pipeline_id` | `schedules` array |
|
||||
| `save_schedule` | full `schedule` record, optional creation `request_key` | `schedule` |
|
||||
| `delete_schedule` | `schedule_id`, `expected_revision` | `schedule_deleted` |
|
||||
|
||||
The record contains `name`, `pipeline_id`, positive pinned `version`, `enabled`,
|
||||
`input` (nonempty string `prompt`), existing absolute server `workspace`, `rule`,
|
||||
and optional `model`, `stage_models`, `notify_mode`, `title`, `output_format`,
|
||||
`write_paths` and legacy `allow_tools`. Updates require the current `revision`.
|
||||
`next_due`, creation and update timestamps are server-owned. These are execution
|
||||
controls and do not enable workflow publication on an execution-only server.
|
||||
|
||||
Pipeline summaries carry `scheduled`, `schedule_count`, `enabled_schedule_count`.
|
||||
Run summaries and live frames carry actual timer provenance: `scheduled`,
|
||||
optional `schedule_id` and `schedule_name`. A manual/API run of a scheduled
|
||||
pipeline is not automatically scheduled. Historical provenance survives deletion.
|
||||
|
||||
## Chat sessions
|
||||
|
||||
Structured tools use `chat_answer` with
|
||||
|
||||
Reference in New Issue
Block a user