completed phase 2b

This commit is contained in:
2026-05-11 20:10:45 +02:00
parent 83d96d0a1e
commit 4002a3b84d
20 changed files with 1566 additions and 50 deletions
+1
View File
@@ -33,6 +33,7 @@ const (
SubjectJobCompleted = "job.completed"
SubjectJobFailed = "job.failed"
SubjectArtifactPublished = "artifact.published"
SubjectPipelineLog = "pipeline.log"
// Deployments (Phase 3A)
SubjectDeploymentStarted = "deployment.started"
+22
View File
@@ -57,6 +57,28 @@ type AuditEvent struct {
At time.Time `json:"at"`
}
type PipelineEvent struct {
RunID int64 `json:"runId"`
RepoID int64 `json:"repoId"`
Status string `json:"status"`
At time.Time `json:"at"`
}
type JobEvent struct {
RunID int64 `json:"runId"`
JobID int64 `json:"jobId"`
Status string `json:"status"`
At time.Time `json:"at"`
}
type LogChunkEvent struct {
RunID int64 `json:"runId"`
JobID int64 `json:"jobId"`
StepID int64 `json:"stepId"`
ChunkIndex int `json:"chunkIndex"`
Content string `json:"content"`
}
// WSEnvelope wraps any event for delivery over the WebSocket connection.
type WSEnvelope struct {
Subject string `json:"subject"`