()
| 158 | } |
| 159 | |
| 160 | function emptyRuleForm(): ProjectHookRuleFormState { |
| 161 | return { |
| 162 | id: '', |
| 163 | name: '', |
| 164 | enabled: false, |
| 165 | triggerType: 'project.all_work_completed', |
| 166 | actionType: 'dispatch_agent', |
| 167 | dispatchAgentId: '', |
| 168 | dispatchPrompt: '', |
| 169 | dispatchFollowUp: null, |
| 170 | createTaskTitle: '', |
| 171 | createTaskDescription: '', |
| 172 | createTaskPriority: '', |
| 173 | createTaskType: null, |
| 174 | addCommentTargetTaskId: '', |
| 175 | addCommentContent: '', |
| 176 | notifyTitle: '', |
| 177 | notifyMessage: '', |
| 178 | notifySeverity: '', |
| 179 | cooldownSeconds: '', |
| 180 | maxConcurrentRuns: '1', |
| 181 | filters: null, |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | function compactId(value: string | null | undefined): string { |
| 186 | if (!value) return '-' |
no outgoing calls
no test coverage detected