41 lines
1.4 KiB
Go
41 lines
1.4 KiB
Go
package agents
|
|
|
|
import "time"
|
|
|
|
type AgentDefinition struct {
|
|
ID string `json:"id"`
|
|
FilePath string `json:"filePath"`
|
|
FileName string `json:"fileName"`
|
|
Content string `json:"content"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
DeveloperInstructions string `json:"developerInstructions"`
|
|
ExtraFields map[string]string `json:"extraFields"`
|
|
ModifiedAt time.Time `json:"modifiedAt"`
|
|
ParseStatus string `json:"parseStatus"`
|
|
ParseError string `json:"parseError,omitempty"`
|
|
DraftStatus string `json:"draftStatus"`
|
|
}
|
|
|
|
type FieldChange struct {
|
|
Field string `json:"field"`
|
|
Before string `json:"before"`
|
|
After string `json:"after"`
|
|
}
|
|
|
|
type DraftValidation struct {
|
|
Valid bool `json:"valid"`
|
|
Errors []string `json:"errors"`
|
|
Diff string `json:"diff"`
|
|
TargetPath string `json:"targetPath"`
|
|
CurrentHash string `json:"currentHash"`
|
|
FieldChanges []FieldChange `json:"fieldChanges"`
|
|
}
|
|
|
|
type WriteResult struct {
|
|
Status string `json:"status"`
|
|
TargetPath string `json:"targetPath"`
|
|
BackupPath string `json:"backupPath"`
|
|
CurrentHash string `json:"currentHash"`
|
|
}
|