Validate providers and retain complete run debugging context
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user