feat(v1.5.2): Execute database migrations and complete setup

- 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>
This commit is contained in:
2026-02-04 16:18:02 +00:00
commit 692475a315
55 changed files with 11950 additions and 0 deletions

124
CHANGELOG.md Normal file
View File

@@ -0,0 +1,124 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [1.5.2] - 2026-02-04
### Added
- Executed all 6 database migrations on Desk CRM production
- Created missing tables: cr_lsps, cr_agent_lsps, cr_lsp_usage
- Created archive tables: cr_*_usage_archive (4 tables)
- Created system tables: cr_migrations, cr_maintenance_log
- Made all scripts executable (chmod +x)
### Changed
- Total cr_* tables: 38 (was 29)
- Migration status tracked in cr_migrations table
## [1.5.1] - 2026-02-04
### Added
- Added ## Objectivo section to all 4 db-* commands
- Added ## Sintaxe section to all 4 db-* commands
- Added ## Output Esperado section to all 15 commands
### Changed
- All commands now have complete structure (Objectivo, Sintaxe, Output Esperado)
- Score Global: 100/100 (was 75/100)
## [1.5.0] - 2026-02-04
### Added
- New skill: db-maintenance-manager - manutenção automatizada das tabelas cr_*
- New command: /descomplicar:db-cleanup - limpeza de órfãos nas tabelas de relacionamento
- New command: /descomplicar:db-migrate - gestão de migrations do schema cr_*
- New command: /descomplicar:db-backup - backup selectivo das tabelas cr_*
- New command: /descomplicar:db-archive - archiving de telemetria antiga (>90 dias)
- Database maintenance capabilities: cleanup, migrations, backup, archiving
- Support for archive tables (*_archive) for telemetry data
- cr_maintenance_log table for tracking maintenance operations
- cr_migrations table for schema version control
### Changed
- plugin.json updated with 3 new keywords (database-maintenance, migrations, backup)
- Total skills: 8 (was 7)
- Total commands: 15 (was 11)
## [1.4.1] - 2026-02-04
### Added
- Added ## Limites section to all 7 skills for 100% compliance
- Added ## Limites section to all 2 agents for 100% compliance
- Added ## Exemplo de Uso section to infrastructure-manager skill
- Completed component-generator example
### Changed
- All components now score 95-100/100 (Production Ready)
## [1.4.0] - 2026-02-04
### Added
- New skill: component-generator - scaffold de skills, agents e commands com templates Descomplicar®
- New skill: quality-validator - validação de componentes, score 0-100, quality gates
- New command: /descomplicar:create - criação de componentes com registo MySQL e tarefa Desk
- New command: /descomplicar:validate - validação de qualidade com relatórios detalhados
- New command: /descomplicar:release - release controlado com quality gates, semver, CHANGELOG auto
### Changed
- hooks.json now includes timeout and statusMessage for all hooks
- .mcp.json populated with MCP dependencies and usage types
- plugin.json updated with 2 new keywords (quality-gates, scaffolding)
### Fixed
- Complete OBSERVADOR → GERADOR cycle now implemented
- Quality gates integrated in component lifecycle
## [1.3.0] - 2026-02-04
### Added
- YAML frontmatter to all 5 skills (infrastructure-manager, relationship-manager, plugin-curator, agent-context-injector, lsp-manager)
- YAML frontmatter to all 2 agents (infrastructure-orchestrator, plugin-evaluator)
- YAML frontmatter to all 8 commands (status, sync, discover, relationships, telemetry, decision-trees, agent-config, lsps)
- CHANGELOG.md file
- LICENSE file (MIT)
### Changed
- Improved plugin quality score compliance
## [1.2.0] - 2026-02-03
### Added
- Documentation folder with 8 best practices guides
- Updated STANDARDS.md with documentation references
- Added documentation section to README.md
### Changed
- Version bump to 1.2.0 in plugin.json
## [1.1.0] - 2026-02-02
### Added
- LSP Manager skill for Language Server Protocol management
- cr_lsps and cr_agent_lsps database schema
- /descomplicar:lsps command
- LSP telemetry support via cr_lsp_usage table
### Changed
- infrastructure-manager skill updated with LSP support
- STANDARDS.md updated with LSP naming conventions
## [1.0.0] - 2026-02-01
### Added
- Initial release of descomplicar-meta-plugin
- 5 core skills: infrastructure-manager, relationship-manager, plugin-curator, agent-context-injector, lsp-manager
- 2 agents: infrastructure-orchestrator, plugin-evaluator
- 8 commands for infrastructure management
- Database schema for MySQL integration
- Hooks for SessionStart, SubagentStart, and Stop events
- Integration with desk-crm-v3 MCP for database operations