- Execute all 6 migrations on Desk CRM production database - Create missing tables: cr_lsps, cr_agent_lsps, cr_lsp_usage - Create archive tables: cr_*_usage_archive (4 tables) - Create system tables: cr_migrations, cr_maintenance_log - Make all scripts executable (chmod +x) - Total cr_* tables: 38 Migration files: - 001_initial_schema.sql - 002_add_lsps.sql - 003_add_relationships.sql - 004_add_telemetry.sql - 005_add_archive_tables.sql - 006_add_maintenance_log.sql Scripts: - session-init.sh, session-end.sh - inject-context.sh, inject-agent-context.sh - record-usage.sh, db-backup.sh, sync-to-mysql.sh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
937 B
JSON
32 lines
937 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-init.sh",
|
|
"description": "Inicializa sessão com status da infraestrutura",
|
|
"timeout": 5000,
|
|
"statusMessage": "A inicializar infraestrutura Descomplicar..."
|
|
}
|
|
],
|
|
"SubagentStart": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/inject-agent-context.sh",
|
|
"description": "Injecciona contexto específico do agente (MCPs, skills, datasets)",
|
|
"timeout": 3000,
|
|
"statusMessage": "A injectar contexto do agente..."
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-end.sh",
|
|
"description": "Sync final e cleanup de sessão",
|
|
"timeout": 10000,
|
|
"statusMessage": "A sincronizar e finalizar sessão..."
|
|
}
|
|
]
|
|
}
|
|
}
|