feat(escalate): align config schema with design doc
- Change EscalationConfig to use Routes map with action strings - Rename severity "normal" to "medium" per design doc - Move config from config/ to settings/escalation.json - Add --source flag for escalation source tracking - Add Source field to EscalationFields - Add executeExternalActions() for email/sms/slack with warnings - Add default escalation config creation in gt install - Add comprehensive unit tests for config loading - Update help text with correct severity levels and paths Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -268,6 +268,14 @@ func runInstall(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
// Create default escalation config in settings/escalation.json
|
||||
escalationPath := config.EscalationConfigPath(absPath)
|
||||
if err := config.SaveEscalationConfig(escalationPath, config.NewEscalationConfig()); err != nil {
|
||||
fmt.Printf(" %s Could not create escalation config: %v\n", style.Dim.Render("⚠"), err)
|
||||
} else {
|
||||
fmt.Printf(" ✓ Created settings/escalation.json\n")
|
||||
}
|
||||
|
||||
// Provision town-level slash commands (.claude/commands/)
|
||||
// All agents inherit these via Claude's directory traversal - no per-workspace copies needed.
|
||||
if err := templates.ProvisionCommands(absPath); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user