Files
daniel 41cbbea00c perf(dashboard): reducir payload del home 87% y restaurar caching en Cloudflare
- Split components.json: índice sin content (1.9 MB / 249 KB br vs 15.6 MB / 4.15 MB br).
  Generador produce component-content/{type}/{slug}.json por componente y auto-copia
  a dashboard/public/. Página de detalle carga contenido on-demand via fetchComponentContent().
- Restaurar cabeceras de caché y seguridad perdidas en la migración Vercel→Cloudflare:
  _headers con Cache-Control max-age=86400 para JSONs, immutable para _astro/*,
  y HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy en todas las rutas.
- Eliminar dashboard/vercel.json (config muerta desde migración a Cloudflare Pages).
- Diferir hidratación: ClerkIsland y AuthButton client:load → client:idle;
  SaveToCollectionButton → client:visible.
- Eliminar gpt-tokenizer del bundle del navegador: reemplazado por estimación chars/4.
- Actualizar .claude/rules/dashboard.md para reflejar hosting en Cloudflare Pages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 16:58:13 -04:00

1 line
1.9 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [sync-mode] | --full | --incremental | --dry-run | --conflict-strategy\ndescription: Enable comprehensive bidirectional GitHub-Linear synchronization with conflict resolution\n---\n\n# Bidirectional Sync\n\nEnable comprehensive bidirectional GitHub-Linear synchronization: **$ARGUMENTS**\n\n## Current Sync Environment\n\n- GitHub status: !`gh api user 2>/dev/null && echo \"✓ Authenticated\" || echo \"⚠ Not authenticated\"`\n- Linear MCP: Check if Linear MCP server is available and configured\n- Sync state: @.sync-state.json or @sync/ (if exists)\n- Webhooks: !`gh api repos/{owner}/{repo}/hooks 2>/dev/null | grep -c linear || echo \"0\"`\n\n## Task\n\nImplement robust bidirectional synchronization between GitHub Issues and Linear tasks:\n\n**Sync Mode**: Use $ARGUMENTS to specify full sync, incremental sync, dry-run preview, or conflict resolution strategy\n\n**Synchronization Framework**:\n1. **Sync State Management** - Initialize sync database, track entity relationships, maintain sync history\n2. **Conflict Detection** - Identify simultaneous changes, field-level conflicts, timing issues\n3. **Resolution Strategies** - NEWER_WINS, GITHUB_WINS, LINEAR_WINS, or intelligent field-level merge\n4. **Transaction Management** - Atomic operations, rollback capability, distributed locking\n5. **Webhook Integration** - Real-time event handling, sync loop prevention, automated triggers\n6. **Data Integrity** - Bidirectional validation, cross-reference maintenance, audit trails\n\n**Advanced Features**: Field-level merge rules, sync loop prevention, webhook automation, performance optimization, comprehensive monitoring.\n\n**Production Ready**: Transaction safety, conflict resolution, error recovery, performance monitoring, comprehensive logging.\n\n**Output**: Complete bidirectional sync system with conflict resolution, webhook integration, performance metrics, and comprehensive sync reporting."}