| 1 | package planning |
| 2 | |
| 3 | import ( |
| 4 | "amadan.net/oficina/equipo/internal/equipo/kernel" |
| 5 | "amadan.net/oficina/equipo/internal/equipo/team" |
| 6 | "amadan.net/oficina/equipo/internal/runnerproto" |
| 7 | "time" |
| 8 | ) |
| 9 | |
| 10 | type StepCard struct { |
| 11 | CategoryName, CategoryIcon string |
| 12 | FinishedAt time.Time |
| 13 | Key, Category, State, Model, Account, Actual, Person, Action, Reason string |
| 14 | Isolation team.IsolationSnapshot |
| 15 | Unconfined bool |
| 16 | UsageKnown bool |
| 17 | AllowanceKnown bool |
| 18 | AllowanceRemaining int64 |
| 19 | CountedTurns, InputTokens, OutputTokens int64 |
| 20 | } |
| 21 | type QuestionField = runnerproto.QuestionField |
| 22 | |
| 23 | type TaskQuestion struct { |
| 24 | Fields []QuestionField |
| 25 | ID, Text, State string |
| 26 | Revision int64 |
| 27 | CanAnswer bool |
| 28 | CanAllow bool |
| 29 | } |
| 30 | type TaskEvidence struct { |
| 31 | Actual string |
| 32 | Role, Hash, Detail string |
| 33 | Isolation team.IsolationSnapshot |
| 34 | Unconfined bool |
| 35 | } |
| 36 | type TaskViewData struct { |
| 37 | CanStopOldRunner bool |
| 38 | CreatedAt time.Time |
| 39 | ChatAge string |
| 40 | Isolation team.IsolationSnapshot |
| 41 | Task Task |
| 42 | Project kernel.Project |
| 43 | Steps []StepCard |
| 44 | Questions []TaskQuestion |
| 45 | Evidence []TaskEvidence |
| 46 | Logs []TaskEvidence |
| 47 | StateKey, Group, Topic, MergeReference string |
| 48 | Unconfined, NeedsYou, CanCancel, CanMerge, UsageKnown bool |
| 49 | CountedTurns, InputTokens, OutputTokens int64 |
| 50 | FinishedAt time.Time |
| 51 | } |
| 52 | type SpecialistWorkView struct { |
| 53 | Tasks []TaskViewData |
| 54 | Working, Queued, Finished, Waiting int |
| 55 | CountsKnown, UsageKnown bool |
| 56 | InputTokens, OutputTokens, CountedTurns int64 |
| 57 | } |
| 58 | |