Rework omni search onto a typed search contract and add a TUI artifacts view
Protocol: replace the loose Query/Kind/Matches/Limit search fields with a Search request object and a SearchResults response, and have the server answer search from Store.Search over the shared run projections (runFrom/runStamps).
CLI: add the read-only 'pipelines search QUERY [--type KIND] [--limit N] [--json]' command with usage/help, and document the typed targets, ranking and bounds in docs/cli.md.
TUI: the '/' popup keeps type-to-search, up/down, Enter and Esc, renders one ranked list with kind badges and a bracketed (non-colour) match snippet, and Enter opens the matched pipeline, run, step, artifact or field; footer text updated to match.
TUI: add a dedicated run artifacts view ('A') with open/copy of recorded files, and move artifacts out of the run-detail File changes section (artifactCaptureNotes).
Tests: add Store.OpenReadOnly for read-only inspection of a live database plus pipeline/server/TUI search tests and artifacts tests, including env-gated live checks.
This commit is contained in:
+14
-7
@@ -13,6 +13,7 @@ AUTHOR
|
||||
|
||||
BROWSE
|
||||
list List registered pipelines
|
||||
search QUERY Search pipelines, versions, runs, steps, field text, artifacts
|
||||
show <name|id> Inspect graph, settings, source and history
|
||||
versions <name|id> List immutable versions
|
||||
export [name|id ...] Select/export definitions as ZIP; one name prints Markdown
|
||||
@@ -54,6 +55,13 @@ restart/doctor/logs and retained-data or --purge uninstallation.
|
||||
Options: --url ws://127.0.0.1:8080/connect --json --help
|
||||
Use pipelines help <command> for its flags. Names with spaces must be quoted.
|
||||
|
||||
Stage result format:
|
||||
Model and agent stages accept a line-oriented result. The first non-empty line
|
||||
is the declared outcome, followed by "# " sections. "# output" is required and
|
||||
short (a JSON object carrying the next stage's data); additional sections are
|
||||
free-form markdown evidence. The legacy {"outcome":...,"output":...} JSON
|
||||
envelope remains accepted for compatibility.
|
||||
|
||||
Examples:
|
||||
pipelines edit "bug fix" "Add a review step"
|
||||
pipelines new "release notes" "Summarize changes and notify my phone"
|
||||
@@ -75,11 +83,10 @@ Nothing is published automatically.
|
||||
Every submission is validated server-side. Submission activates any schedules.
|
||||
JSON mode never launches an editor or picker; supply explicit arguments.
|
||||
|
||||
Search: the TUI '/' popup and the protocol 'search' command (via 'pipelines rpc')
|
||||
find pipelines, versions, runs, stages/visits, artifact names and the text of stage
|
||||
inputs, outputs and evidence. A bare status word (queued, running, succeeded,
|
||||
failed, canceled, interrupted) or a date (today, yesterday, this week, or
|
||||
YYYY-MM-DD interpreted in UTC) selects runs. A leading prefix pipeline:, version:,
|
||||
run:, step:, field:, artifact: or match: (a field alias) narrows the result kind;
|
||||
unrecognised words stay text.
|
||||
Search: the 'pipelines search QUERY' command and the TUI '/' popup find pipelines,
|
||||
versions, runs, steps/visits, artifact names and the text of stage inputs,
|
||||
outputs and evidence. A bare status word (queued, running, succeeded, failed,
|
||||
canceled, interrupted) or a date (today, yesterday, this week, or YYYY-MM-DD in
|
||||
local time) selects runs. --type narrows to pipeline, version, run, step, field
|
||||
or artifact; unrecognised words stay text.
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user