openprompt-lang 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +663 -0
  3. package/bin/cli.js +110 -0
  4. package/bin/lint.js +50 -0
  5. package/docs/COMMANDS.md +229 -0
  6. package/docs/COMMITS/INDEX.md +11 -0
  7. package/docs/COMMITS/v0.1.0-existing.md +31 -0
  8. package/docs/COMMITS/v0.1.0-inicial.md +50 -0
  9. package/docs/COMMITS/v0.1.0-readme.md +24 -0
  10. package/docs/COMMITS/v0.2.0-strict-db-templates.md +50 -0
  11. package/docs/COMMITS/v0.3.0-parser-fixes-vscode.md +67 -0
  12. package/docs/COMMITS/v0.3.0-versioning-component.md +44 -0
  13. package/docs/DEPENDENCIES.md +45 -0
  14. package/docs/FRAMEWORK.md +1741 -0
  15. package/docs/SYNTAX.md +359 -0
  16. package/docs/VERSIONING.md +150 -0
  17. package/docs/referencia-metodologia/Anexos Finales Documentos de Respaldo y Estandarizaci/303/263n.md" +90 -0
  18. package/docs/referencia-metodologia/Cotizaciones.md +84 -0
  19. package/docs/referencia-metodologia/Example.md +1 -0
  20. package/docs/referencia-metodologia/ExtractorInformacion.py +78 -0
  21. package/docs/referencia-metodologia/Fase - 1 .- Desarrollo de la Metodolog/303/255a.md" +67 -0
  22. package/docs/referencia-metodologia/Fase - 2 .- Levantamiento de requisitos generales y traduccion a la IA.md +64 -0
  23. package/docs/referencia-metodologia/Fase - 3 .- Prototipado visual con IA (Figma Maker o equivalentes).md +64 -0
  24. package/docs/referencia-metodologia/Fase - 4 .- Especificacion de requisitos e iteracion con el cliente.md +58 -0
  25. package/docs/referencia-metodologia/Fase - 5 .- Estructuracion y maquetado de funciones (Scaffolding).md +118 -0
  26. package/docs/referencia-metodologia/Fase - 6 .- Estructuracion del backlog y division de tareas.md +48 -0
  27. package/docs/referencia-metodologia/Fase - 7 .- Desarrollo activo, pruebas y control de versiones.md +98 -0
  28. package/docs/referencia-metodologia/Fase - 8 .- Entrega, capacitaci/303/263n y mantenimiento.md" +55 -0
  29. package/docs/referencia-metodologia/Figma prompt template.md +130 -0
  30. package/docs/referencia-metodologia/Framework de Desarrollo Asistido por IA.md +1741 -0
  31. package/docs/referencia-metodologia/Indice General.md +83 -0
  32. package/docs/referencia-metodologia/Prompt refactorizar o creacion desde cero.md +50 -0
  33. package/docs/referencia-metodologia/docs/CONVENCIONES_DB.md +410 -0
  34. package/docs/referencia-metodologia/docs/CONVENCIONES_DOCUMENTACION.md +209 -0
  35. package/docs/referencia-metodologia/docs/PROMPTS/INDEX.md +73 -0
  36. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/01-hook-supabase.md +79 -0
  37. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/02-componente-ui.md +82 -0
  38. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/03-pagina-feature.md +70 -0
  39. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/04-comando-tauri.md +56 -0
  40. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/05-store-zustand.md +74 -0
  41. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/06-servicio-supabase.md +74 -0
  42. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/07-formulario-validacion.md +63 -0
  43. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/08-hook-capacitor.md +65 -0
  44. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/09-refactor-division.md +51 -0
  45. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/10-scaffolding-inicial.md +79 -0
  46. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/11-supabase-crud-service.md +114 -0
  47. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/12-supabase-hook-usetable.md +143 -0
  48. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/13-tauri-command-rust.md +84 -0
  49. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/14-tauri-wrapper-typescript.md +92 -0
  50. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/15-documentar-tabla-db.md +50 -0
  51. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/16-diagrama-arquitectura.md +60 -0
  52. package/docs/referencia-metodologia/docs/PROMPTS/PLANTILLAS/17-documentar-api-rpc.md +56 -0
  53. package/docs/referencia-metodologia/docs/PROMPTS/STACK/ionic-capacitor.md +52 -0
  54. package/docs/referencia-metodologia/docs/PROMPTS/STACK/react-web-puro.md +46 -0
  55. package/docs/referencia-metodologia/docs/PROMPTS/STACK/tauri-desktop.md +53 -0
  56. package/package.json +56 -0
  57. package/schemas/prompt-lang.json +98 -0
  58. package/src/commands/component.js +326 -0
  59. package/src/commands/context.js +206 -0
  60. package/src/commands/figma.js +63 -0
  61. package/src/commands/init.js +373 -0
  62. package/src/commands/suggest.js +31 -0
  63. package/src/commands/validate.js +183 -0
  64. package/src/generators/figma-prompt.js +56 -0
  65. package/src/utils/ai.js +143 -0
  66. package/src/utils/annotations.js +510 -0
  67. package/src/utils/config.js +60 -0
  68. package/vscode-extension/README.md +31 -0
  69. package/vscode-extension/language-configuration.json +7 -0
  70. package/vscode-extension/package.json +62 -0
  71. package/vscode-extension/snippets/promptlang.json +105 -0
  72. package/vscode-extension/syntaxes/annotations.tmGrammar.json +39 -0
  73. package/vscode-extension/syntaxes/promptlang.tmGrammar.json +14 -0
@@ -0,0 +1,55 @@
1
+
2
+ ---
3
+ > [!abstract] Objetivo de la Fase
4
+ > Esta etapa marca el fin del ciclo de desarrollo del MVP y el comienzo de la operación en el mundo real. Su propósito es transferir el producto de forma ordenada, blindar legalmente al desarrollador frente a imprevistos de terceros y establecer las reglas claras del modelo de soporte (SaaS o Llave en mano).
5
+
6
+ ## a. Protocolo de Entrega y Cierre Administrativo
7
+
8
+ Nunca se hace un pase a producción en silencio ni "por WhatsApp". La entrega oficial requiere una validación formal para cerrar el alcance del proyecto y evitar que el cliente siga pidiendo cambios gratuitos.
9
+
10
+ - **Firma de Conformidad (Acta de Recepción):** Se envía un documento digital donde el cliente firma y acepta que el proyecto fue entregado según las condiciones y alcances acordados en la Fase 4.
11
+ - **Diferenciación por Modelo de Negocio:**
12
+ - *Proyectos de Compra Única (Llave en mano):* Se entrega el contrato final definiendo la propiedad del código, los plazos de garantía técnica y el finiquito de la relación de desarrollo activo.
13
+ - *Proyectos SaaS (Suscripción Mensual):* Se activa el Acuerdo de Nivel de Servicio (SLA) que rige la relación continua y el pago recurrente.
14
+
15
+ > [!warning] Límites de Responsabilidad (Disclaimer)
16
+ > Se estipula por escrito que el desarrollador **NO es responsable** por:
17
+ > 1. Mal uso del sistema por parte de empleados (Ej: borrar registros por error).
18
+ > 2. Caídas de servidores de terceros (Railway, Netlify, Supabase, Webpay).
19
+ > 3. Pérdida de acceso por compartir contraseñas de administrador.
20
+
21
+ ---
22
+
23
+ ## b. Capacitación y Onboarding del Cliente
24
+
25
+ El software carece de valor si el cliente no sabe utilizarlo. Se garantiza un proceso de adaptación para asegurar que la transición tecnológica sea un éxito y reducir la carga de soporte posterior.
26
+
27
+ - **Sesión de Lanzamiento:** Capacitación presencial o mediante videollamada dedicada exclusivamente a enseñar el uso del sistema en tiempo real.
28
+ - **Entregables de Apoyo:** Entrega de manuales de uso (PDF/Notion), tutoriales en video grabados de la pantalla y documentación en el formato de preferencia del cliente.
29
+ - **Periodo de Adaptación (Handover):** Se establece un margen de **hasta 1 semana** de acompañamiento intensivo para que el cliente y su equipo hagan la transición y resuelvan dudas de uso diario.
30
+
31
+ ---
32
+
33
+ ## c. Políticas de Soporte y Canales de Comunicación
34
+
35
+ Para evitar el agotamiento (*Burnout*) y el abuso de confianza (mensajes a las 2 AM un domingo), el soporte técnico se rige por reglas estrictas.
36
+
37
+ - **Canales Oficiales:** Toda comunicación de soporte se canaliza únicamente a través de WhatsApp, Correo Electrónico o Llamada Telefónica.
38
+ - **Horario de Atención:** El soporte estándar se brinda exclusivamente dentro de un horario laboral estipulado previamente en el contrato.
39
+ - **Protocolo de Emergencias:** En caso de caídas críticas fuera de horario, se podrá brindar atención inmediata, pero **sujeta a un cobro adicional por urgencia**, dependiendo del impacto del problema.
40
+ - **Soporte en Terreno:** De ser estrictamente necesario para resolver un bloqueo operativo, se incluye la asistencia presencial (con viáticos cubiertos si aplica).
41
+
42
+ ---
43
+
44
+ ## d. Mantenimiento, Monitoreo y Escalabilidad
45
+
46
+ El software es un ente vivo. El mantenimiento correctivo (bugs tuyos) se maneja distinto al mantenimiento evolutivo (mejoras o crecimiento del cliente).
47
+
48
+ - **Mantenimiento y Garantía:**
49
+ - *Bugs de Producción:* Cualquier error de lógica que provenga del desarrollo y haya escapado a las pruebas de la Fase 7, se repara **sin costo**.
50
+ - *Periodo de Gracia (Compra Única):* Dependiendo del presupuesto inicial, se otorgan hasta 3 meses de mantenimiento gratuito. Pasado ese tiempo, toda intervención técnica se cobra por hora o tarea.
51
+ - *Modelo SaaS:* En suscripciones, la mantención y correcciones están incluidas en la cuota mensual.
52
+
53
+ > [!tip] Monitoreo Proactivo y Upselling (Venta Cruzada)
54
+ > - **Alertas de Tráfico:** Se implementa un sistema (propio o revisando logs de Railway/Sentry) para detectar si los recursos del servidor están por saturarse debido a picos de usuarios.
55
+ > - **Escalabilidad Monetizada:** Si el negocio del cliente crece, se le avisa proactivamente sobre la necesidad de subir el plan del servidor (Tier). Esta reconfiguración de infraestructura conlleva un **costo extra por servicio técnico** (Setup fee), independientemente de lo que cobre la plataforma de hosting.
@@ -0,0 +1,130 @@
1
+ > [!example] Universal Figma Prompt Template for Project Workspace Design
2
+ > ```text
3
+ > Create a flexible, reusable workspace template that can be adapted to many types of software projects. The goal is to build a universal project execution environment where the user can define the project context, working area, and product idea, then customize the structure according to the specific project type.
4
+ >
5
+ > Main purpose:
6
+ > Design a modular workspace system that can serve as the foundation for different project types such as SaaS dashboards, internal tools, admin panels, MVPs, client projects, and product prototypes.
7
+ >
8
+ > Core concept:
9
+ > This is not a fixed application design. It is a universal work area template that includes:
10
+ > - Project context area.
11
+ > - Environment / setup area.
12
+ > - Idea / objective area.
13
+ > - Workspace layout.
14
+ > - Reusable task and content blocks.
15
+ > - Flexible sections that can be adapted to the project type.
16
+ >
17
+ > What the template must allow:
18
+ > The design should leave space for:
19
+ > - Project name and type.
20
+ > - Industry or domain.
21
+ > - Main objective.
22
+ > - Target users.
23
+ > - Current stage.
24
+ > - Stack or environment.
25
+ > - Main features or modules.
26
+ > - Task workflow.
27
+ > - Notes and decisions.
28
+ > - AI context / prompt section.
29
+ >
30
+ > Layout structure:
31
+ > 1. Project Context Panel
32
+ > - Project name
33
+ > - Project type
34
+ > - Short description
35
+ > - Status
36
+ > - Version or stage
37
+ >
38
+ > 2. Environment Panel
39
+ > - Stack or tools
40
+ > - Folder structure overview
41
+ > - Key dependencies
42
+ > - Environment notes
43
+ > - Technical constraints
44
+ >
45
+ > 3. Idea / Goal Panel
46
+ > - Problem to solve
47
+ > - Product vision
48
+ > - Expected outcome
49
+ > - Scope notes
50
+ > - Success criteria
51
+ >
52
+ > 4. Main Workspace Area
53
+ > - Central working panel
54
+ > - Active task or current focus
55
+ > - Editable content blocks
56
+ > - AI-generated context block
57
+ > - Action buttons
58
+ >
59
+ > 5. Supporting Panels
60
+ > - Task list
61
+ > - Status indicators
62
+ > - Notes
63
+ > - Progress tracking
64
+ > - Activity or history
65
+ >
66
+ > Design principles:
67
+ > - Make the system universal and adaptable.
68
+ > - Avoid hardcoding the design for one single app type.
69
+ > - Keep room for later customization depending on the project.
70
+ > - Use reusable components with variants.
71
+ > - Avoid inline styling decisions in the structure.
72
+ > - Keep the layout clean, modular, and easy to translate into React + Tailwind.
73
+ > - Use clear spacing, visual hierarchy, and flexible panels.
74
+ >
75
+ > Component system:
76
+ > - WorkspaceShell
77
+ > - ProjectContextCard
78
+ > - EnvironmentCard
79
+ > - IdeaCard
80
+ > - GoalCard
81
+ > - TaskCard
82
+ > - StatusBadge
83
+ > - StageBadge
84
+ > - ProgressCard
85
+ > - NotesPanel
86
+ > - ActivityPanel
87
+ > - AIContextPanel
88
+ > - ActionBar
89
+ > - TabNavigation
90
+ > - SidebarNavigation
91
+ > - EmptyState
92
+ >
93
+ > Variant system:
94
+ > Each component should support variants for:
95
+ > - default
96
+ > - compact
97
+ > - expanded
98
+ > - active
99
+ > - selected
100
+ > - blocked
101
+ > - completed
102
+ > - warning
103
+ > - informational
104
+ >
105
+ > Adaptability rules:
106
+ > - Leave areas that can be edited based on the project type.
107
+ > - Use placeholder text and flexible labels instead of fixed product-specific content.
108
+ > - Allow the same template to be used for different types of products and workflows.
109
+ > - Make the structure capable of supporting both technical and non-technical project contexts.
110
+ >
111
+ > Visual style:
112
+ > - Clean modern SaaS style.
113
+ > - Dark mode first.
114
+ > - Minimal but professional.
115
+ > - High readability.
116
+ > - Modular cards and panels.
117
+ > - No terminal style.
118
+ > - No decorative clutter.
119
+ > - No over-specific visual assumptions.
120
+ >
121
+ > React and Tailwind direction:
122
+ > The design should be easy to convert into:
123
+ > - React components.
124
+ > - Tailwind utility classes.
125
+ > - Shared primitives.
126
+ > - Separate domain-based folders.
127
+ >
128
+ > Final instruction:
129
+ > Build a universal workspace template that can later be specialized by project type. The design should help the user define the environment, the context, the goal, and the execution area before starting the actual product design or development process.
130
+ > ```