Validate providers and retain complete run debugging context

This commit is contained in:
2026-10-09 23:21:01 +01:00
parent f3d829bea5
commit 08b8647d5b
51 changed files with 1036 additions and 159 deletions
+2
View File
@@ -94,6 +94,8 @@ type PipelineSummary struct {
// Message is the JSON envelope shared by the server and client.
type Message struct {
DefaultModel string `json:"default_model,omitempty"`
Evidence []SessionEvidence `json:"evidence,omitempty"`
Usage *UsageStats `json:"usage,omitempty"`
Status *SystemStatus `json:"status,omitempty"`
Graph *Graph `json:"graph,omitempty"`
+19 -8
View File
@@ -1,16 +1,27 @@
package protocol
const (
RunPipeline = "run_pipeline"
RunStarted = "run_started"
ListRuns = "list_runs"
Runs = "runs"
GetRun = "get_run"
Run = "run"
CancelRun = "cancel_run"
RetryRun = "retry_run"
RunPipeline = "run_pipeline"
RunStarted = "run_started"
ListRuns = "list_runs"
Runs = "runs"
GetRun = "get_run"
Run = "run"
CancelRun = "cancel_run"
RetryRun = "retry_run"
GetRunEvidence = "get_run_evidence"
RunEvidence = "run_evidence"
)
type SessionEvidence struct {
Sequence int `json:"sequence"`
SessionID string `json:"session_id"`
Backend string `json:"backend"`
Directory string `json:"directory"`
Data string `json:"data,omitempty"`
Diagnostic string `json:"diagnostic,omitempty"`
}
type RunSummary struct {
ID int64 `json:"id"`
PipelineID int64 `json:"pipeline_id"`
+1
View File
@@ -23,5 +23,6 @@ type SystemStatus struct {
Server ServiceStatus `json:"server"`
Ntfy ServiceStatus `json:"ntfy"`
Topic string `json:"topic,omitempty"`
NtfyUser string `json:"ntfy_user,omitempty"`
Note string `json:"note"`
}