feat: add parameter preprocessing audit trail

This commit is contained in:
2026-05-12 13:54:51 +08:00
parent 9ea83be718
commit b9c9f457e9
17 changed files with 2323 additions and 28 deletions
+18
View File
@@ -488,6 +488,24 @@ type TaskAttempt struct {
FinishedAt string `json:"finishedAt,omitempty"`
}
type TaskParamPreprocessingLog struct {
ID string `json:"id"`
TaskID string `json:"taskId"`
AttemptID string `json:"attemptId,omitempty"`
AttemptNo int `json:"attemptNo,omitempty"`
ModelType string `json:"modelType,omitempty"`
PlatformID string `json:"platformId,omitempty"`
PlatformModelID string `json:"platformModelId,omitempty"`
ClientID string `json:"clientId,omitempty"`
Changed bool `json:"changed"`
ChangeCount int `json:"changeCount"`
ActualInput map[string]any `json:"actualInput,omitempty"`
ConvertedOutput map[string]any `json:"convertedOutput,omitempty"`
Changes []any `json:"changes,omitempty"`
ModelSnapshot map[string]any `json:"model,omitempty"`
CreatedAt time.Time `json:"createdAt"`
}
func (s *Store) ListPlatforms(ctx context.Context) ([]Platform, error) {
rows, err := s.pool.Query(ctx, `
SELECT id::text, provider, platform_key, name, COALESCE(internal_name, ''), COALESCE(base_url, ''), auth_type, status, priority,