@lssm/example.learning-journey-registry 0.0.0-canary-20251217083314 → 1.41.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 (379) hide show
  1. package/.turbo/turbo-build.log +53 -55
  2. package/dist/api.js +1 -170
  3. package/dist/docs/index.js +1 -1
  4. package/dist/docs/learning-journey-registry.docblock.js +1 -38
  5. package/dist/example.js +1 -34
  6. package/dist/index.js +1 -13
  7. package/dist/learning-journey-registry.feature.js +1 -66
  8. package/dist/libs/contracts/src/docs/PUBLISHING.docblock.js +76 -0
  9. package/dist/libs/contracts/src/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
  10. package/dist/libs/contracts/src/docs/index.js +1 -0
  11. package/dist/libs/contracts/src/docs/presentations.js +1 -0
  12. package/dist/libs/contracts/src/docs/registry.js +1 -0
  13. package/dist/libs/contracts/src/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
  14. package/dist/libs/contracts/src/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
  15. package/dist/libs/contracts/src/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
  16. package/dist/libs/contracts/src/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
  17. package/dist/libs/contracts/src/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
  18. package/dist/{examples/learning-journey-ui-coaching/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/auth/better-auth-nextjs.docblock.js +2 -23
  19. package/dist/{examples/learning-journey-ui-gamified/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/contracts/openapi-export.docblock.js +2 -20
  20. package/dist/libs/contracts/src/docs/tech/lifecycle-stage-system.docblock.js +213 -0
  21. package/dist/{examples/learning-journey-ui-gamified/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/llm/llm-integration.docblock.js +5 -72
  22. package/dist/libs/contracts/src/docs/tech/mcp-endpoints.docblock.js +1 -0
  23. package/dist/libs/contracts/src/docs/tech/presentation-runtime.docblock.js +1 -0
  24. package/dist/libs/contracts/src/docs/tech/schema/README.docblock.js +262 -0
  25. package/dist/libs/contracts/src/docs/tech/studio/learning-events.docblock.js +1 -0
  26. package/dist/{examples/learning-journey-ui-gamified/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/studio/learning-journeys.docblock.js +2 -23
  27. package/dist/{examples/learning-journey-ui-coaching/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/studio/platform-admin-panel.docblock.js +2 -22
  28. package/dist/libs/contracts/src/docs/tech/studio/project-access-teams.docblock.js +36 -0
  29. package/dist/libs/contracts/src/docs/tech/studio/project-routing.docblock.js +1 -0
  30. package/dist/libs/contracts/src/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
  31. package/dist/{examples/learning-journey-ui-coaching/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/studio/team-invitations.docblock.js +36 -39
  32. package/dist/libs/contracts/src/docs/tech/studio/workspace-ops.docblock.js +1 -0
  33. package/dist/{examples/learning-journey-ui-coaching/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/studio/workspaces.docblock.js +2 -22
  34. package/dist/{examples/learning-journey-ui-coaching/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/telemetry-ingest.docblock.js +3 -35
  35. package/dist/libs/contracts/src/docs/tech/templates/runtime.docblock.js +1 -0
  36. package/dist/{examples/learning-journey-ui-coaching/dist/libs/contracts/dist → libs/contracts/src}/docs/tech/vscode-extension.docblock.js +3 -35
  37. package/dist/libs/contracts/src/docs/tech/workflows/overview.docblock.js +1 -0
  38. package/dist/presentations/index.js +1 -64
  39. package/dist/progress-store.js +1 -30
  40. package/dist/tracks.js +1 -47
  41. package/dist/ui/LearningMiniApp.js +1 -82
  42. package/dist/ui/index.js +1 -3
  43. package/package.json +26 -30
  44. package/tsconfig.tsbuildinfo +1 -1
  45. package/tsdown.config.js +1 -11
  46. package/.turbo/turbo-build$colon$bundle.log +0 -424
  47. package/CHANGELOG.md +0 -24
  48. package/dist/api-types.d.ts +0 -40
  49. package/dist/api.d.ts +0 -12
  50. package/dist/docs/index.d.ts +0 -1
  51. package/dist/docs/learning-journey-registry.docblock.d.ts +0 -1
  52. package/dist/example.d.ts +0 -32
  53. package/dist/examples/learning-journey-ambient-coach/dist/track.js +0 -41
  54. package/dist/examples/learning-journey-crm-onboarding/dist/track.js +0 -98
  55. package/dist/examples/learning-journey-duo-drills/dist/track.js +0 -65
  56. package/dist/examples/learning-journey-platform-tour/dist/track.js +0 -105
  57. package/dist/examples/learning-journey-quest-challenges/dist/track.js +0 -35
  58. package/dist/examples/learning-journey-studio-onboarding/dist/track.js +0 -90
  59. package/dist/examples/learning-journey-ui-coaching/dist/CoachingMiniApp.js +0 -64
  60. package/dist/examples/learning-journey-ui-coaching/dist/components/EngagementMeter.js +0 -107
  61. package/dist/examples/learning-journey-ui-coaching/dist/components/TipCard.js +0 -75
  62. package/dist/examples/learning-journey-ui-coaching/dist/components/TipFeed.js +0 -65
  63. package/dist/examples/learning-journey-ui-coaching/dist/components/index.js +0 -3
  64. package/dist/examples/learning-journey-ui-coaching/dist/docs/index.js +0 -1
  65. package/dist/examples/learning-journey-ui-coaching/dist/docs/learning-journey-ui-coaching.docblock.js +0 -20
  66. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/components/BadgeDisplay.js +0 -44
  67. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/components/StreakCounter.js +0 -45
  68. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/components/ViewTabs.js +0 -48
  69. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/components/XpBar.js +0 -46
  70. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/components/index.js +0 -4
  71. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/docs/index.js +0 -1
  72. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/docs/learning-journey-ui-shared.docblock.js +0 -20
  73. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/hooks/index.js +0 -1
  74. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/hooks/useLearningProgress.js +0 -73
  75. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/index.js +0 -8
  76. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -15
  77. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -15
  78. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/index.js +0 -28
  79. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/presentations.js +0 -71
  80. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/registry.js +0 -44
  81. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -15
  82. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -15
  83. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -15
  84. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -15
  85. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -15
  86. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -79
  87. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -56
  88. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -15
  89. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -356
  90. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -36
  91. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -15
  92. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -19
  93. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -47
  94. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -78
  95. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -83
  96. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -44
  97. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -66
  98. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -39
  99. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -68
  100. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -46
  101. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -61
  102. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -154
  103. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -19
  104. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -100
  105. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -19
  106. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  107. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  108. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  109. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  110. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/progress.js +0 -23
  111. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  112. package/dist/examples/learning-journey-ui-coaching/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  113. package/dist/examples/learning-journey-ui-coaching/dist/index.js +0 -11
  114. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -15
  115. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -15
  116. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/index.js +0 -28
  117. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/presentations.js +0 -71
  118. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/registry.js +0 -44
  119. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -15
  120. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -15
  121. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -15
  122. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -15
  123. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -15
  124. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -56
  125. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -15
  126. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -356
  127. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -36
  128. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -15
  129. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -19
  130. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -47
  131. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -78
  132. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -44
  133. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -66
  134. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -39
  135. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -46
  136. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -19
  137. package/dist/examples/learning-journey-ui-coaching/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -19
  138. package/dist/examples/learning-journey-ui-coaching/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  139. package/dist/examples/learning-journey-ui-coaching/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  140. package/dist/examples/learning-journey-ui-coaching/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  141. package/dist/examples/learning-journey-ui-coaching/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  142. package/dist/examples/learning-journey-ui-coaching/dist/libs/ui-kit-web/dist/ui/card.js +0 -36
  143. package/dist/examples/learning-journey-ui-coaching/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  144. package/dist/examples/learning-journey-ui-coaching/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  145. package/dist/examples/learning-journey-ui-coaching/dist/views/Overview.js +0 -152
  146. package/dist/examples/learning-journey-ui-coaching/dist/views/Progress.js +0 -117
  147. package/dist/examples/learning-journey-ui-coaching/dist/views/Steps.js +0 -68
  148. package/dist/examples/learning-journey-ui-coaching/dist/views/Timeline.js +0 -112
  149. package/dist/examples/learning-journey-ui-coaching/dist/views/index.js +0 -4
  150. package/dist/examples/learning-journey-ui-gamified/dist/GamifiedMiniApp.js +0 -64
  151. package/dist/examples/learning-journey-ui-gamified/dist/components/DayCalendar.js +0 -32
  152. package/dist/examples/learning-journey-ui-gamified/dist/components/FlashCard.js +0 -79
  153. package/dist/examples/learning-journey-ui-gamified/dist/components/MasteryRing.js +0 -81
  154. package/dist/examples/learning-journey-ui-gamified/dist/components/index.js +0 -3
  155. package/dist/examples/learning-journey-ui-gamified/dist/docs/index.js +0 -1
  156. package/dist/examples/learning-journey-ui-gamified/dist/docs/learning-journey-ui-gamified.docblock.js +0 -20
  157. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/components/BadgeDisplay.js +0 -44
  158. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/components/StreakCounter.js +0 -45
  159. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/components/ViewTabs.js +0 -48
  160. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/components/XpBar.js +0 -46
  161. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/components/index.js +0 -4
  162. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/docs/index.js +0 -1
  163. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/docs/learning-journey-ui-shared.docblock.js +0 -20
  164. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/hooks/index.js +0 -1
  165. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/hooks/useLearningProgress.js +0 -73
  166. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/index.js +0 -8
  167. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -15
  168. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -15
  169. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/index.js +0 -28
  170. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/presentations.js +0 -71
  171. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/registry.js +0 -44
  172. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -15
  173. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -15
  174. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -15
  175. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -15
  176. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -15
  177. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -79
  178. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -56
  179. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -15
  180. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -356
  181. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -36
  182. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -15
  183. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -19
  184. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -47
  185. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -78
  186. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -83
  187. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -44
  188. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -66
  189. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -39
  190. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -68
  191. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -46
  192. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -61
  193. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -154
  194. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -19
  195. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -100
  196. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -19
  197. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  198. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  199. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  200. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  201. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/progress.js +0 -23
  202. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  203. package/dist/examples/learning-journey-ui-gamified/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  204. package/dist/examples/learning-journey-ui-gamified/dist/index.js +0 -11
  205. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -15
  206. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -15
  207. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/index.js +0 -28
  208. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/presentations.js +0 -71
  209. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/registry.js +0 -44
  210. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -15
  211. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -15
  212. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -15
  213. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -15
  214. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -15
  215. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -79
  216. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -15
  217. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -36
  218. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -15
  219. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -19
  220. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -47
  221. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -83
  222. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -44
  223. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -66
  224. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -39
  225. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -68
  226. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -46
  227. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -61
  228. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -154
  229. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -19
  230. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -100
  231. package/dist/examples/learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -19
  232. package/dist/examples/learning-journey-ui-gamified/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  233. package/dist/examples/learning-journey-ui-gamified/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  234. package/dist/examples/learning-journey-ui-gamified/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  235. package/dist/examples/learning-journey-ui-gamified/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  236. package/dist/examples/learning-journey-ui-gamified/dist/libs/ui-kit-web/dist/ui/card.js +0 -36
  237. package/dist/examples/learning-journey-ui-gamified/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  238. package/dist/examples/learning-journey-ui-gamified/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  239. package/dist/examples/learning-journey-ui-gamified/dist/views/Overview.js +0 -163
  240. package/dist/examples/learning-journey-ui-gamified/dist/views/Progress.js +0 -144
  241. package/dist/examples/learning-journey-ui-gamified/dist/views/Steps.js +0 -55
  242. package/dist/examples/learning-journey-ui-gamified/dist/views/Timeline.js +0 -132
  243. package/dist/examples/learning-journey-ui-gamified/dist/views/index.js +0 -4
  244. package/dist/examples/learning-journey-ui-onboarding/dist/OnboardingMiniApp.js +0 -64
  245. package/dist/examples/learning-journey-ui-onboarding/dist/components/CodeSnippet.js +0 -5
  246. package/dist/examples/learning-journey-ui-onboarding/dist/components/JourneyMap.js +0 -48
  247. package/dist/examples/learning-journey-ui-onboarding/dist/components/StepChecklist.js +0 -79
  248. package/dist/examples/learning-journey-ui-onboarding/dist/components/index.js +0 -3
  249. package/dist/examples/learning-journey-ui-onboarding/dist/docs/index.js +0 -1
  250. package/dist/examples/learning-journey-ui-onboarding/dist/docs/learning-journey-ui-onboarding.docblock.js +0 -20
  251. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/components/BadgeDisplay.js +0 -44
  252. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/components/StreakCounter.js +0 -4
  253. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/components/ViewTabs.js +0 -48
  254. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/components/XpBar.js +0 -46
  255. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/components/index.js +0 -4
  256. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/docs/index.js +0 -1
  257. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/docs/learning-journey-ui-shared.docblock.js +0 -20
  258. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/hooks/index.js +0 -1
  259. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/hooks/useLearningProgress.js +0 -73
  260. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/index.js +0 -8
  261. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -15
  262. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -15
  263. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/index.js +0 -28
  264. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/presentations.js +0 -71
  265. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/registry.js +0 -44
  266. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -15
  267. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -15
  268. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -15
  269. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -15
  270. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -15
  271. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -79
  272. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -56
  273. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -15
  274. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -356
  275. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -36
  276. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -15
  277. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -19
  278. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -47
  279. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -78
  280. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -83
  281. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -44
  282. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -66
  283. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -39
  284. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -68
  285. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -46
  286. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -61
  287. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -154
  288. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -19
  289. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -100
  290. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -19
  291. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  292. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  293. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  294. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  295. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/progress.js +0 -23
  296. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  297. package/dist/examples/learning-journey-ui-onboarding/dist/examples/learning-journey-ui-shared/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  298. package/dist/examples/learning-journey-ui-onboarding/dist/index.js +0 -11
  299. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -15
  300. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -15
  301. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/index.js +0 -28
  302. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/presentations.js +0 -71
  303. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/registry.js +0 -44
  304. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -15
  305. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -15
  306. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -15
  307. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -15
  308. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -15
  309. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -79
  310. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -56
  311. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -15
  312. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -356
  313. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -36
  314. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -15
  315. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -19
  316. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -47
  317. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -78
  318. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -83
  319. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -44
  320. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -66
  321. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -39
  322. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -68
  323. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -46
  324. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -61
  325. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -154
  326. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -19
  327. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -100
  328. package/dist/examples/learning-journey-ui-onboarding/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -19
  329. package/dist/examples/learning-journey-ui-onboarding/dist/libs/design-system/dist/_virtual/rolldown_runtime.js +0 -5
  330. package/dist/examples/learning-journey-ui-onboarding/dist/libs/design-system/dist/components/atoms/Button.js +0 -33
  331. package/dist/examples/learning-journey-ui-onboarding/dist/libs/design-system/dist/ui-kit-web/dist/ui/button.js +0 -55
  332. package/dist/examples/learning-journey-ui-onboarding/dist/libs/design-system/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -13
  333. package/dist/examples/learning-journey-ui-onboarding/dist/libs/ui-kit-core/dist/utils.js +0 -10
  334. package/dist/examples/learning-journey-ui-onboarding/dist/libs/ui-kit-web/dist/ui/card.js +0 -36
  335. package/dist/examples/learning-journey-ui-onboarding/dist/libs/ui-kit-web/dist/ui/progress.js +0 -23
  336. package/dist/examples/learning-journey-ui-onboarding/dist/libs/ui-kit-web/dist/ui/utils.js +0 -10
  337. package/dist/examples/learning-journey-ui-onboarding/dist/libs/ui-kit-web/dist/ui-kit-core/dist/utils.js +0 -10
  338. package/dist/examples/learning-journey-ui-onboarding/dist/views/Overview.js +0 -180
  339. package/dist/examples/learning-journey-ui-onboarding/dist/views/Progress.js +0 -162
  340. package/dist/examples/learning-journey-ui-onboarding/dist/views/Steps.js +0 -91
  341. package/dist/examples/learning-journey-ui-onboarding/dist/views/Timeline.js +0 -97
  342. package/dist/examples/learning-journey-ui-onboarding/dist/views/index.js +0 -4
  343. package/dist/index.d.ts +0 -8
  344. package/dist/learning-journey-registry.feature.d.ts +0 -11
  345. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  346. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  347. package/dist/libs/contracts/dist/docs/index.js +0 -29
  348. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  349. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  350. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  351. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  352. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  353. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  354. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  355. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  356. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  357. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  358. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  359. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  360. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  361. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  362. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  363. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  364. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  365. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  366. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  367. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  368. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  369. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  370. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  371. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  372. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  373. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  374. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  375. package/dist/presentations/index.d.ts +0 -9
  376. package/dist/progress-store.d.ts +0 -10
  377. package/dist/tracks.d.ts +0 -39
  378. package/dist/ui/LearningMiniApp.d.ts +0 -23
  379. package/dist/ui/index.d.ts +0 -2
@@ -1,15 +0,0 @@
1
- import { registerDocBlocks } from "../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.PHASE_5_ZERO_TOUCH_OPERATIONS",
6
- title: "Phase 5: Zero-Touch Operations",
7
- summary: "**Status**: In progress",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS",
11
- tags: ["tech", "PHASE_5_ZERO_TOUCH_OPERATIONS"],
12
- body: "# Phase 5: Zero-Touch Operations\n\n**Status**: In progress \n**Last updated**: 2025-11-21\n\nPhase 5 delivers progressive delivery, SLO intelligence, cost attribution, and anomaly-driven remediation so the platform can deploy continuously without pager rotations.\n\n---\n\n## 1. New Libraries\n\n### @lssm/lib.progressive-delivery\n- `DeploymentStrategy` types capture canary vs blue-green rollouts.\n- `CanaryController` + `CanaryAnalyzer` orchestrate stage evaluation against telemetry thresholds.\n- `TrafficShifter` keeps stable/candidate splits in sync with feature-flag or router state.\n- `DeploymentCoordinator` drives stage progression, emits events, and triggers rollbacks.\n- `RollbackManager` encapsulates safe revert hooks (spec version revert, traffic shift, etc.).\n\n### @lssm/lib.slo\n- Declarative `SLODefinition` with latency + availability targets per capability/spec.\n- `SLOTracker` stores rolling snapshots + error budget positions.\n- `BurnRateCalculator` implements multi-window burn computations (fast vs slow burn).\n- `SLOMonitor` pushes incidents to Ops tooling automatically when burn exceeds thresholds.\n\n### @lssm/lib.cost-tracking\n- `CostTracker` normalizes DB/API/compute metrics into per-operation cost totals.\n- `BudgetAlertManager` raises tenant budget warnings (80% default) with contextual payloads.\n- `OptimizationRecommender` suggests batching, caching, or contract tweaks to cut spend.\n\n### Observability Anomaly Toolkit\n- `BaselineCalculator` establishes rolling intent metrics (latency, error rate, throughput).\n- `AnomalyDetector` flags spikes/drops via relative deltas after 10+ samples.\n- `RootCauseAnalyzer` correlates anomalies with recent deployments.\n- `AlertManager` deduplicates notifications and feeds MCP/SRE transports.\n\n---\n\n## 2. Data Model Additions\n\nFile: `packages/libs/database/prisma/schema.prisma`\n\n| Model | Purpose |\n| --- | --- |\n| `SLODefinition`, `SLOSnapshot`, `ErrorBudget`, `SLOIncident` | Persist definitions, rolling windows, and incidents. |\n| `OperationCost`, `TenantBudget`, `CostAlert`, `OptimizationSuggestion` | Track per-operation costs, budgets, and generated recommendations. |\n| `Deployment`, `DeploymentStage`, `RollbackEvent` | Audit progressive delivery runs and automated rollbacks. |\n| `MetricBaseline`, `AnomalyEvent` | Store computed baselines and anomaly evidence for training/analytics. |\n\nRun `bun database generate` after pulling to refresh the Prisma client.\n\n---\n\n## 3. Operational Flow\n\n1. **Deploy**: Define a `DeploymentStrategy` and feed telemetry via `@lssm/lib.observability`. Canary stages run automatically.\n2. **Protect**: `CanaryAnalyzer` evaluates error rate + latency thresholds. Failures trigger `RollbackManager`.\n3. **Observe**: `SLOMonitor` consumes snapshots and opens incidents when burn rate exceeds thresholds.\n4. **Optimize**: `CostTracker` aggregates spend per tenant + capability, while `OptimizationRecommender` surfaces fixes.\n5. **Detect**: Anomaly signals route to `RootCauseAnalyzer`, which links them to specific deployments for auto-rollback.\n\n---\n\n## 4. Integration Checklist\n\n1. Instrument adapters with `createTracingMiddleware({ onSample })` to feed metric points into `AnomalyDetector`.\n2. Register SLOs per critical operation (`billing.charge`, `knowledge.search`) and wire monitors to Ops notifications.\n3. Attach `CostTracker.recordSample` to workflow runners (DB instrumentation + external call wrappers).\n4. Store deployment metadata using the new Prisma models for auditing + UI surfacing.\n5. Update `@lssm/app.ops-console` (next iteration) to list deployments, SLO status, costs, and anomalies in one timeline.\n\n---\n\n## 5. Next Steps\n\n- Wire `DeploymentCoordinator` into the Contracts CLI so `contractspec deploy` can run staged rollouts.\n- Add UI for SLO dashboards (burn rate sparkline + incident feed).\n- Ship budget suggestions into Growth Agent for automated cost optimizations.\n- Connect `AnomalyEvent` stream to MCP agents for root-cause playbooks.\n"
13
- }]);
14
-
15
- //#endregion
@@ -1,79 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.auth.better-auth-nextjs",
6
- title: "Better Auth + Next.js integration (ContractSpec)",
7
- summary: "How ContractSpec wires Better Auth into Next.js (server config, client singleton, and proxy cookie-only redirects).",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/auth/better-auth-nextjs",
11
- tags: [
12
- "auth",
13
- "better-auth",
14
- "nextjs",
15
- "cookies",
16
- "proxy",
17
- "hmr"
18
- ],
19
- body: `# Better Auth + Next.js integration (ContractSpec)
20
-
21
- This repo uses Better Auth as the primary auth layer (sessions, organizations, teams, API keys, and OAuth).
22
-
23
- ## Server config (Better Auth)
24
-
25
- - Source: \`packages/bundles/contractspec-studio/src/application/services/auth.ts\`
26
- - Important: \`nextCookies()\` must be the **last** plugin in the Better Auth plugin list so \`Set-Cookie\` is applied correctly in Next.js environments.
27
-
28
- ## Better Auth Admin plugin
29
-
30
- ContractSpec Studio enables the Better Auth **Admin plugin** to support platform-admin user operations (list users, impersonation, etc.).
31
-
32
- - Server: \`admin()\` plugin in \`packages/bundles/contractspec-studio/src/application/services/auth.ts\`
33
- - Client: \`adminClient()\` in \`packages/bundles/contractspec-studio/src/presentation/providers/auth/client.ts\`
34
-
35
- ### PLATFORM_ADMIN ⇒ Better Auth admin role
36
-
37
- Better Auth Admin endpoints authorize via \`user.role\`. ContractSpec enforces an org-driven rule:
38
-
39
- - If the **active organization** has \`type = PLATFORM_ADMIN\`, the signed-in user is ensured to have \`User.role\` containing \`admin\`.
40
- - This is applied in the session creation hook and re-checked in \`assertsPlatformAdmin()\`.
41
-
42
- This keeps admin enablement deterministic and avoids manual role backfills.
43
-
44
- ## Client config (React web + Expo)
45
-
46
- To avoid duplicate background refresh/polling loops in dev (Fast Refresh/HMR), the Better Auth client is implemented as a singleton cached on \`globalThis\`.
47
-
48
- - Web client: \`packages/bundles/contractspec-studio/src/presentation/providers/auth/client.ts\`
49
- - Native client: \`packages/bundles/contractspec-studio/src/presentation/providers/auth/client.native.ts\`
50
-
51
- Import guidance:
52
-
53
- - If you only need the context/hook, prefer importing from \`@lssm/bundle.contractspec-studio/presentation/providers/auth\`.
54
- - If you explicitly need the Better Auth client instance (e.g. admin impersonation, direct API calls), import from \`@lssm/bundle.contractspec-studio/presentation/providers/auth/client\`.
55
-
56
- ## Public routes (login / signup)
57
-
58
- Public auth pages should avoid eager \`authClient\` initialization.
59
-
60
- Pattern used:
61
-
62
- - In the submit handler, dynamically import \`@lssm/bundle.contractspec-studio/presentation/providers/auth/index.web\` and call \`authClient.signIn.*\` / \`authClient.signUp.*\`.
63
-
64
- This prevents session refresh behavior from starting just because a public page rendered.
65
-
66
- ## Next.js proxy auth (web-landing)
67
-
68
- The Next.js proxy/middleware is used for **redirect decisions only**. It must not perform DB-backed session reads on every request.
69
-
70
- - Source: \`packages/apps/web-landing/src/proxy.ts\`
71
- - Approach: cookie-only checks via Better Auth cookies helpers:
72
- - \`getSessionCookie(request)\`
73
- - \`getCookieCache(request)\`
74
-
75
- These checks are intentionally optimistic and should only gate routing. Full authorization must still be enforced on server-side actions/routes and GraphQL resolvers.
76
- `
77
- }]);
78
-
79
- //#endregion
@@ -1,15 +0,0 @@
1
- import { registerDocBlocks } from "../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.lifecycle-stage-system",
6
- title: "ContractSpec Lifecycle Stage System – Technical Design",
7
- summary: "This document describes how ContractSpec implements lifecycle detection and guidance. It covers architecture, module boundaries, scoring heuristics, and integration points so libraries, modules, bundles, and Studio surfaces stay synchronized.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/lifecycle-stage-system",
11
- tags: ["tech", "lifecycle-stage-system"],
12
- body: "## ContractSpec Lifecycle Stage System – Technical Design\n\nThis document describes how ContractSpec implements lifecycle detection and guidance. It covers architecture, module boundaries, scoring heuristics, and integration points so libraries, modules, bundles, and Studio surfaces stay synchronized.\n\n---\n\n### 1. Architecture Overview\n\n```\n┌──────────────────────┐\n│ @lssm/lib.lifecycle │ Types, enums, helpers (pure data)\n└───────────┬──────────┘\n │\n┌───────────▼──────────┐ ┌───────────────────────────┐\n│ modules/lifecycle- │ │ modules/lifecycle-advisor │\n│ core (detection) │ │ (guidance & ceremonies) │\n└───────────┬──────────┘ └───────────┬───────────────┘\n │ │\n ├────────────┬──────────────┤\n ▼ ▼ ▼\n Adapters: analytics, intent, questionnaires\n │\n┌───────────▼──────────┐\n│ bundles/lifecycle- │ Managed service for Studio\n│ managed │ (REST handlers, AI agent) │\n└───────────┬──────────┘\n │\n ContractSpec Studio surfaces\n (web/mobile APIs, CLI, docs)\n```\n\n- **Libraries** provide shared vocabulary.\n- **Modules** encapsulate logic, accepting adapters to avoid environment-specific code.\n- **Bundles** compose modules, register agents/events, and expose APIs for Studio.\n- **Apps** (web-landing, future Studio views) consume bundle APIs; they do not reimplement logic. For web-landing we now resolve `@lssm/bundle.contractspec-studio` and `@lssm/lib.database-contractspec-studio` directly from their `packages/.../src` folders via `tsconfig` path aliases so Prisma stays on the server build and Turbopack no longer pulls the prebundled `dist` artifacts into client chunks.\n\n---\n\n### 2. Core Library (`@lssm/lib.lifecycle`)\n\n- Stage enum (0–6) with metadata (`question`, `signals`, `traps`).\n- Axes types (`ProductPhase`, `CompanyPhase`, `CapitalPhase`).\n- `LifecycleSignal` (source, metric, value, timestamp).\n- `LifecycleMetricSnapshot` (aggregated numbers).\n- `LifecycleMilestone`, `LifecycleAction`, `LifecycleAssessment` interfaces.\n- Utility helpers:\n - `formatStageSummary(stage, assessment)`\n - `rankStageCandidates(scores)`\n\nThe library exports **no runtime dependencies** so it can be imported from apps, modules, and bundles alike.\n\n---\n\n### 3. Lifecycle Core Module\n\n**Location:** `packages/modules/lifecycle-core/`\n\n#### Components\n1. **StageSignalCollector**\n - Accepts adapter interfaces:\n - `AnalyticsAdapter` (pulls metrics from `@lssm/lib.analytics` or fixture streams).\n - `IntentAdapter` (hooks into `@lssm/lib.observability` intent detectors or logs).\n - `QuestionnaireAdapter` (loads JSON questionnaires and responses).\n - Produces normalized `LifecycleSignal[]`.\n\n2. **StageScorer**\n - Weighted scoring model:\n - Base weight per stage (reflecting expected maturity).\n - Feature weights (retention, revenue, team size, qualitative feedback).\n - Confidence computed via variance of contributing signals.\n - Supports pluggable scoring matrices via JSON config.\n - Accepts sparse metric snapshots; the orchestrator sanitizes metrics to numeric-only records before persisting assessments so downstream analytics stay consistent.\n\n3. **LifecycleOrchestrator**\n - Coordinates collectors + scorer.\n - Returns `LifecycleAssessment` with:\n - `stage`, `confidence`, `axisSnapshot`, `signalsUsed`.\n - Recommended focus areas (high-level categories only).\n - Emits events (internally) when stage confidence crosses thresholds (consumed later by bundle).\n\n4. **LifecycleMilestonePlanner**\n - Loads `milestones-catalog.json` (no DB).\n - Filters upcoming milestones per stage + axis.\n - Tracks completion using provided IDs (caller persists).\n\n#### Data Files\n- `configs/stage-weights.json`\n- `configs/milestones-catalog.json`\n- `questionnaires/stage-readiness.json`\n\n#### Extension Hooks\n- All adapters exported as TypeScript interfaces.\n- Implementations for analytics/intent can live in bundles or apps without modifying module code.\n\n---\n\n### 4. Lifecycle Advisor Module\n\n**Location:** `packages/modules/lifecycle-advisor/`\n\n#### Components\n1. **LifecycleRecommendationEngine**\n - Consumes `LifecycleAssessment`.\n - Maps gaps to `LifecycleAction[]` using rule tables (`stage-playbooks.ts`).\n - Supports override hooks for customer-specific rules.\n\n2. **ContractSpecLibraryRecommender**\n - Maintains mapping from stage → recommended libraries/modules/bundles.\n - Returns prioritized list with rationale and adoption prerequisites.\n\n3. **LifecycleCeremonyDesigner**\n - Provides textual/structural data for ceremonies (title, copy, animation cues, soundtrack references).\n - Ensures low-tech friendly instructions (clear copy, undo guidance).\n\n4. **AI Hooks**\n - Defines prompt templates and tool manifests for lifecycle advisor agents (consumed by bundles).\n - Keeps actual LLM integration outside module.\n\n---\n\n### 5. Managed Bundle (`lifecycle-managed`)\n\n**Responsibilities**\n- Wire modules together.\n- Provide HTTP/GraphQL handlers (exact transport optional).\n- Register LifecycleAdvisorAgent via `@lssm/lib.ai-agent`.\n- LifecycleAdvisorAgent meta: domain `operations`, owners `team-lifecycle`, stability `experimental`, tags `guide/lifecycle/ops` so ops tooling can route incidents quickly.\n- Emit lifecycle events through `@lssm/lib.bus` + `@lssm/lib.analytics`.\n- Integrate with `contractspec-studio` packages:\n - Use Studio contracts for authentication/tenant context (without accessing tenant DBs).\n - Store assessments in Studio-managed storage abstractions (in-memory or file-based for now).\n\n**APIs**\n- `POST /lifecycle/assessments`: Accepts metrics + optional questionnaire answers. Returns `LifecycleAssessment`.\n- `GET /lifecycle/playbooks/:stage`: Returns stage playbook + ceremonies.\n- `POST /lifecycle/advise`: Invokes LifecycleAdvisorAgent with context.\n\n**Events**\n- `LifecycleAssessmentCreated`\n- `LifecycleStageChanged`\n- `LifecycleGuidanceConsumed`\n\n---\n\n### 6. Library Enhancements\n\n| Library | Enhancement |\n| --- | --- |\n| `@lssm/lib.analytics` | Lifecycle metric collectors, helper to emit stage events, adapter implementation used by `StageSignalCollector`. |\n| `@lssm/lib.evolution` | Accepts `LifecycleContext` when ranking spec anomalies/suggestions. |\n| `@lssm/lib.growth` | Stage-specific experiment templates + guardrails referencing lifecycle enums. |\n| `@lssm/lib.observability` | Lifecycle KPI pipeline definitions (drift detection, regression alerts). |\n\nEach enhancement must import stage types from `@lssm/lib.lifecycle`.\n\n---\n\n### 7. Feature Flags & Progressive Delivery\n\n- Add new flags in progressive-delivery library:\n - `LIFECYCLE_DETECTION_ALPHA`\n - `LIFECYCLE_ADVISOR_ALPHA`\n - `LIFECYCLE_MANAGED_SERVICE`\n- Bundles/modules should check flags before enabling workflows.\n- Flags referenced in docs + Studio UI to avoid accidental exposure.\n\n---\n\n### 8. Analytics & Telemetry\n\n- Events defined in analytics library; consumed by bundle/app:\n - `lifecycle_assessment_run`\n - `lifecycle_stage_changed`\n - `lifecycle_guidance_consumed`\n- Observability pipeline includes:\n - Composite lifecycle health metric (weighted sum of KPIs).\n - Drift detection comparing stage predictions over time.\n - Alert manager recipes for regression (e.g., PMF drop).\n\n---\n\n### 9. Testing Strategy\n\n1. **Unit**\n - StageScorer weight matrix.\n - RecommendationEngine mapping.\n - Library recommender stage coverage.\n\n2. **Contract**\n - Adapters: ensure mock adapters satisfy interfaces.\n - Bundles: ensure HTTP handlers respect request/response contracts even without persistence.\n\n3. **Integration**\n - CLI example runs detection + guidance end-to-end on fixture data.\n - Dashboard example renders assessments, verifying JSON structures remain stable.\n\n---\n\n### 10. Implementation Checklist\n\n- [ ] Documentation (product, tech, ops, user).\n- [ ] Library creation (`@lssm/lib.lifecycle`).\n- [ ] Modules (`lifecycle-core`, `lifecycle-advisor`).\n- [ ] Bundle (`lifecycle-managed`) + Studio wiring.\n- [ ] Library enhancements (analytics/evolution/growth/observability).\n- [ ] Examples (CLI + dashboard).\n- [ ] Feature flags + telemetry.\n- [ ] Automated tests + fixtures.\n\nKeep this document in sync as modules evolve. When adding new stages or axes, update `@lssm/lib.lifecycle` first, then cascade to adapters, then refresh docs + Studio copy.*** End Patch*** End Patch\n\n\n"
13
- }]);
14
-
15
- //#endregion
@@ -1,36 +0,0 @@
1
- import { registerDocBlocks } from "../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.mcp.endpoints",
6
- title: "ContractSpec MCP endpoints",
7
- summary: "Dedicated MCP servers for docs, CLI usage, and internal development.",
8
- kind: "reference",
9
- visibility: "mixed",
10
- route: "/docs/tech/mcp/endpoints",
11
- tags: [
12
- "mcp",
13
- "docs",
14
- "cli",
15
- "internal"
16
- ],
17
- body: `# ContractSpec MCP endpoints
18
-
19
- Three dedicated MCP servers keep AI agents efficient and scoped:
20
-
21
- - **Docs MCP**: \`/api/mcp/docs\` — exposes DocBlocks as resources + presentations. Tool: \`docs.search\`.
22
- - **CLI MCP**: \`/api/mcp/cli\` — surfaces CLI quickstart/reference/README and suggests commands. Tool: \`cli.suggestCommand\`.
23
- - **Internal MCP**: \`/api/mcp/internal\` — internal routing hints, playbook, and example registry access. Tool: \`internal.describe\`.
24
-
25
- ### Usage notes
26
- - Transports are HTTP POST (streamable HTTP); SSE is disabled.
27
- - Resources are namespaced (\`docs://*\`, \`cli://*\`, \`internal://*\`) and are read-only.
28
- - Internal MCP also exposes the examples registry via \`examples://*\` resources:
29
- - \`examples://list?q=<query>\`
30
- - \`examples://example/<id>\`
31
- - Prompts mirror each surface (navigator, usage, bootstrap) for quick agent onboarding.
32
- - GraphQL remains at \`/graphql\`; health at \`/health\`.
33
- `
34
- }]);
35
-
36
- //#endregion
@@ -1,15 +0,0 @@
1
- import { registerDocBlocks } from "../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.presentation-runtime",
6
- title: "Presentation Runtime",
7
- summary: "Cross-platform runtime for list pages and presentation flows.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/presentation-runtime",
11
- tags: ["tech", "presentation-runtime"],
12
- body: "## Presentation Runtime\n\nCross-platform runtime for list pages and presentation flows.\n\n### Packages\n\n- `@lssm/lib.presentation-runtime-core`: shared types and config helpers\n- `@lssm/lib.presentation-runtime-react`: React hooks (web/native-compatible API)\n- `@lssm/lib.presentation-runtime-react-native`: Native entrypoint (re-exports React API for now)\n\n### Next.js config helper\n\n```ts\n// next.config.mjs\nimport { withPresentationNextAliases } from '@lssm/lib.presentation-runtime-core/next';\n\nconst nextConfig = {\n webpack: (config) => withPresentationNextAliases(config),\n};\n\nexport default nextConfig;\n```\n\n### Metro config helper\n\n```js\n// metro.config.js (CJS)\nconst { getDefaultConfig } = require('expo/metro-config');\nconst {\n withPresentationMetroAliases,\n} = require('@lssm/lib.presentation-runtime-core/src/metro.cjs');\n\nconst projectRoot = __dirname;\nconst config = getDefaultConfig(projectRoot);\n\nmodule.exports = withPresentationMetroAliases(config);\n```\n\n### React hooks\n\n- `useListCoordinator`: URL + RHF + derived variables (no fetching)\n- `usePresentationController`: Same plus `fetcher` integration\n- `DataViewRenderer` (design-system): render `DataViewSpec` projections (`list`, `table`, `detail`, `grid`) using shared UI atoms\n\nBoth accept a `useUrlState` adapter. On web, use `useListUrlState` (design-system) or a Next adapter.\n\n### KYC molecules (bundle)\n\n- `ComplianceBadge` in `@lssm/bundle.strit/presentation/components/kyc` renders a status badge for KYC/compliance snapshots. It accepts a `state` (missing_core | incomplete | complete | expiring | unknown) and optional localized `labels`. Prefer consuming apps to pass translated labels (e.g., via `useT('appPlatformAdmin')`).\n\n### Markdown routes and llms.txt\n\n- Each web app exposes `/llms` (and `/llms.txt`, `/llms.md`) via rewrites. See [llmstxt.org](https://llmstxt.org/).\n- Catch‑all markdown handler lives at `app/[...slug].md/route.ts`. It resolves a page descriptor from `app/.presentations.manifest.json` and renders via the `presentations.v2` engine (target: `markdown`).\n- Per‑page companion convention: add `app/<route>/ai.ts` exporting a `PresentationDescriptorV2`.\n- Build‑time tool: `tools/generate-presentations-manifest.mjs <app-root>` populates the manifest.\n- CI check: `pnpm llms:check` verifies coverage (% of pages with descriptors) and fails if below threshold.\n"
13
- }]);
14
-
15
- //#endregion
@@ -1,19 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.schema.README",
6
- title: "Multi‑File Prisma Schema Conventions (per database)",
7
- summary: "We adopt Prisma multi‑file schema (GA ≥ v6.7) to organize each database’s models by domain and to import core LSSM module schemas locally.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/schema/README",
11
- tags: [
12
- "tech",
13
- "schema",
14
- "README"
15
- ],
16
- body: "# Multi‑File Prisma Schema Conventions (per database)\n\nWe adopt Prisma multi‑file schema (GA ≥ v6.7) to organize each database’s models by domain and to import core LSSM module schemas locally.\n\nCanonical layout per DB:\n\n```\nprisma/\n schema/\n main.prisma # datasource + generators only\n imported/\n lssm_sigil/*.prisma # imported models/enums only (no datasource/generator)\n lssm_content/*.prisma # idem\n <domain>/*.prisma # vertical‑specific models split by bounded context\n```\n\nNotes:\n\n- Imported files contain only `model` and `enum` blocks (strip `datasource`/`generator`).\n- Preserve `@@schema(\"…\")` annotations to keep tables in their Postgres schemas; we now explicitly list schemas in `main.prisma` to avoid P1012: `schemas = [\"public\",\"lssm_sigil\",\"lssm_content\",\"lssm_featureflags\",\"lssm_ops\",\"lssm_planning\",\"lssm_quill\",\"lssm_geoterro\"]`.\n- Use `@lssm/app.cli-database` CLI: `database import|check|generate|migrate:*|seed` to manage a single DB; `@lssm/app.cli-databases` orchestrates multiple DBs.\n\n## Typed merger config\n\n- Define imported module list once per DB with a typed config:\n\n```ts\n// prisma-merger.config.ts\nimport { defineMergedPrismaConfig } from '@lssm/app.cli-database';\n\nexport default defineMergedPrismaConfig({\n modules: [\n '@lssm/app.cli-database-sigil',\n '@lssm/app.cli-database-content',\n // ...\n ],\n});\n```\n\n- Then run `database import --target .` (no need to pass `--modules`).\n\n## Prisma Config (prisma.config.ts)\n\nWe use Prisma Config per official docs to point Prisma to the multi-file schema folder and migrations:\n\n```ts\n// prisma.config.ts\nimport path from 'node:path';\nimport { defineConfig } from 'prisma/config';\n\nexport default defineConfig({\n schema: path.join('prisma', 'schema'),\n migrations: { path: path.join('prisma', 'migrations') },\n});\n```\n\nReference: Prisma blog – Organize Your Prisma Schema into Multiple Files: https://www.prisma.io/blog/organize-your-prisma-schema-with-multi-file-support\n\n---\n\n# LSSM Auth (Sigil) – Models & Integration\n\nThis document tracks the identity models and integration points used by the LSSM Sigil module.\n\n## Models (Prisma `lssm_sigil`)\n\n- `User` – core identity with email, optional phone, role, passkeys, apiKeys\n- `Session` – session tokens and metadata; includes `activeOrganizationId`\n- `Account` – external providers (password, OAuth)\n- `Organization` – tenant boundary; includes `type` additional field\n- `Member`, `Invitation`, `Team`, `TeamMember` – org/teams\n- `Role`, `Permission`, `PolicyBinding` – RBAC\n- `ApiKey`, `Passkey` – programmable access and WebAuthn\n- `SsoProvider` – OIDC/SAML provider configuration (org- or user-scoped)\n- `OAuthApplication`, `OAuthAccessToken`, `OAuthConsent` – first/third-party OAuth\n\nThese mirror STRIT additions so Better Auth advanced plugins (admin, organization, apiKey, passkey, genericOAuth) work uniformly across apps.\n\n## Better Auth (server)\n\nEnabled methods:\n\n- Email & password\n- Phone OTP (Telnyx)\n- Passkey (WebAuthn)\n- API keys\n- Organizations & Teams\n- Generic OAuth (FranceConnect+ via OIDC with JWE/JWS using JOSE)\n\nServer config lives at `packages/lssm/modules/sigil/src/application/services/auth.ts`.\n\n## Clients (Expo / React)\n\nClient config lives at `packages/lssm/modules/sigil/src/presentation/providers/auth/expo.ts` with plugins for admin, passkey, apiKey, organization, phone, genericOAuth.\n\n## Environment Variables\n\nTelnyx (phone OTP):\n\n- `TELNYX_API_KEY`\n- `TELNYX_MESSAGING_PROFILE_ID`\n- `TELNYX_FROM_NUMBER`\n\nFranceConnect+ (prefer LSSM*… but STRIT*… fallbacks are supported):\n\n- `LSSM_FRANCECONNECTPLUS_DISCOVERY_URL`\n- `LSSM_FRANCECONNECTPLUS_CLIENT_ID`\n- `LSSM_FRANCECONNECTPLUS_CLIENT_SECRET`\n- `LSSM_FRANCECONNECTPLUS_ENC_PRIVATE_KEY_PEM` (PKCS8; RSA-OAEP-256)\n\nGeneric:\n\n- `API_URL_IDENTITIES` – base URL for Better Auth server\n- `BETTER_AUTH_SECRET` – server secret\n\nKeep this in sync with code changes to avoid drift.\n\n## HCircle domain splits and auth removal\n\n- Auth/identity models are not defined locally anymore. They come from `@lssm/app.cli-database-sigil` under the `lssm_sigil` schema.\n- `packages/hcircle/libs/database-coliving/prisma/schema/domain/` is split by domain; newsletter/waiting list lives in `newsletter.prisma` and uses `@@map(\"waiting_list\")`.\n- To avoid collisions with module names, the local event models were renamed to `SocialEvent`, `SocialEventAttendee`, and `SocialEventRecurrence` with `@@map` pointing to existing table names.\n\n---\n\n## Vertical profiles (current)\n\n### STRIT\n\n- prisma-merger modules:\n - `@lssm/app.cli-database-sigil`, `@lssm/app.cli-database-content`, `@lssm/app.cli-database-ops`, `@lssm/app.cli-database-planning`, `@lssm/app.cli-database-quill`, `@lssm/app.cli-database-geoterro`\n- main.prisma schemas:\n - `schemas = [\"public\",\"lssm_sigil\",\"lssm_content\",\"lssm_ops\",\"lssm_planning\",\"lssm_quill\",\"lssm_geoterro\"]`\n- domain splits (`packages/strit/libs/database/prisma/schema/domain/`):\n - `bookings.prisma` (Booking, StritDocument + links to Content `File` and Sigil `Organization`)\n - `commerce.prisma` (Wholesale models; `sellerId` linked to Sigil `Organization`)\n - `files.prisma` (PublicFile, PublicFileAccessLog; `ownerId`→Organization, `uploadedBy`→User)\n - `geo.prisma` (PublicCountry, PublicAddress, City; links to Spots/Series)\n - `spots.prisma`, `urbanism.prisma`, `analytics.prisma`, `onboarding.prisma`, `referrals.prisma`, `subscriptions.prisma`, `content.prisma`\n- auth models are imported from Sigil (no local auth tables).\n- Back-relations for `Organization` (e.g., `files`, seller relations) are declared in the Sigil module to avoid scattering.\n\n### ARTISANOS\n\n- prisma-merger modules:\n - `@lssm/app.cli-database-sigil`, `@lssm/app.cli-database-content`, `@lssm/app.cli-database-featureflags`, `@lssm/app.cli-database-ops`, `@lssm/app.cli-database-planning`, `@lssm/app.cli-database-quill`, `@lssm/app.cli-database-geoterro`\n- main.prisma schemas:\n - `schemas = [\"public\",\"lssm_sigil\",\"lssm_content\",\"lssm_featureflags\",\"lssm_ops\",\"lssm_planning\",\"lssm_quill\",\"lssm_geoterro\"]`\n- domain splits (`packages/artisanos/libs/database-artisan/prisma/schema/domain/`):\n - `sales.prisma` (Client, Quote, QuoteTemplate, Invoice, FollowUps)\n - `subsidies.prisma` (SubsidyProgram, AidApplication, SupportingDocument)\n - `projects.prisma` (Project, ProjectPlanningSettings)\n - `crm.prisma` (OrganizationProfessionalProfile, OrganizationCertification)\n - `professions.prisma`, `products.prisma`, `templates.prisma`, `analytics.prisma`, `onboarding.prisma`, `referrals.prisma`, `subscriptions.prisma`, `files.prisma`\n- auth/organization/team models are provided by Sigil; local legacy copies were removed.\n- Where names collide with Content, local models are prefixed (e.g., `PublicFile`) and use `@@map` to keep existing table names where applicable.\n\n## Schema Dictionary: `@lssm/lib.schema`\n\n### Purpose\n\nDescribe operation I/O once and generate:\n\n- zod (runtime validation)\n- GraphQL (Pothos types/refs)\n- JSON Schema (via `zod-to-json-schema` or native descriptors)\n\n### Primitives\n\n- **FieldType<T>**: describes a scalar or composite field and carries:\n - `zod` schema for validation\n - optional JSON Schema descriptor\n - optional GraphQL scalar reference/name\n- **SchemaModel**: named object model composed of fields. Exposes helpers:\n - `getZod(): z.ZodObject<ZodShapeFromFields<Fields>> | z.ZodArray<z.ZodObject<...>>`\n - Preserves each field's schema, optionality, and array-ness\n - Top-level lists are supported via `config.isArray: true`\n - `getJsonSchema(): JSONSchema7` (export for docs, MCP, forms)\n - `getPothosInput()` (GraphQL input object name)\n\n### Conventions\n\n- Name models with PascalCase; suffix with `Input`/`Result` when ambiguous.\n- Use explicit enums for multi-value constants; reuse the same enum across input/output.\n- Define domain enums via `defineEnum('Name', [...])` in the relevant domain package (e.g., `packages/strit/libs/contracts-strit/src/enums/`), not in `ScalarTypeEnum`.\n- Reference those enums in `SchemaModel` fields directly (they expose `getZod`, `getPothos`, `getJsonSchema`).\n\n#### Example (STRIT)\n\n```ts\n// packages/strit/libs/contracts-strit/src/enums/recurrence.ts\nimport { defineEnum } from '@lssm/lib.schema';\nexport const SpotEnum = {\n Weekday: () =>\n defineEnum('Weekday', ['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU'] as const),\n RecurrenceFrequency: () =>\n defineEnum('RecurrenceFrequency', [\n 'DAILY',\n 'WEEKLY',\n 'MONTHLY',\n 'YEARLY',\n ] as const),\n} as const;\n```\n\n```ts\n// usage in contracts\nfrequency: { type: SpotEnum.RecurrenceFrequency(), isOptional: false },\nbyWeekday: { type: SpotEnum.Weekday(), isOptional: true, isArray: true },\n```\n\n- Use `Date` type for temporal values and ensure ISO strings in JSON transports where needed.\n\n### Mapping rules (summary)\n\n- Strings → GraphQL `String`\n- Numbers → `Int` if safe 32-bit integer else `Float`\n- Booleans → `Boolean`\n- Dates → custom `Date` scalar\n- Arrays<T> → list of mapped T (set `isArray: true` on the field)\n- Top-level arrays → set `isArray: true` on the model config\n- Objects → input/output object types with stable field order\n- Unions → supported for output; input unions map to JSON (structural input is not supported by GraphQL)\n\n### JSON Schema export\n\nPrefer `getZod()` + `zod-to-json-schema` for consistency. For advanced cases, provide a custom `getJsonSchema()` on the model.\n\n### Example\n\n```ts\nimport { ScalarTypeEnum, SchemaModel } from '@lssm/lib.schema';\n\n// Nested model\nconst Weekday = new SchemaModel({\n name: 'Weekday',\n fields: {\n value: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n// Parent model with array field and nested object\nconst Rule = new SchemaModel({\n name: 'Rule',\n fields: {\n timezone: { type: ScalarTypeEnum.TimeZone(), isOptional: false },\n byWeekday: { type: Weekday, isOptional: true, isArray: true },\n },\n});\n\nconst CreateThingInput = new SchemaModel({\n name: 'CreateThingInput',\n fields: {\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n rule: { type: Rule, isOptional: false },\n },\n});\n\n// zod\nconst z = CreateThingInput.getZod();\n```\n"
17
- }]);
18
-
19
- //#endregion
@@ -1,47 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.studio.learning-events",
6
- title: "Studio Learning Events",
7
- summary: "Studio persists learning/activity events to the database; Sandbox keeps learning local-first and unlogged.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/studio/learning-events",
11
- tags: [
12
- "studio",
13
- "learning",
14
- "events",
15
- "analytics",
16
- "sandbox"
17
- ],
18
- body: `# Studio Learning Events
19
-
20
- Studio emits lightweight **learning/activity events** to support onboarding, ambient coaching, and learning journeys.
21
-
22
- ## Persistence model
23
-
24
- - **Studio**: events are persisted to the database in \`StudioLearningEvent\` and are organization-scoped (optionally project-scoped).
25
- - **Sandbox**: events remain **local-only** (unlogged); they must never be sent to backend services.
26
-
27
- ## GraphQL API
28
-
29
- - \`recordLearningEvent(input: { name, projectId?, payload? })\`
30
- - \`myLearningEvents(projectId?, limit?)\`
31
- - \`myOnboardingTracks(productId?, includeProgress?)\`
32
- - \`myOnboardingProgress(trackKey)\`
33
- - \`dismissOnboardingTrack(trackKey)\`
34
-
35
- ## Common event names (convention)
36
-
37
- - \`module.navigated\` — user navigated to a Studio module (payload at minimum: \`{ moduleId }\`).
38
- - \`studio.template.instantiated\` — created a new Studio project (starter template). Payload commonly includes \`{ templateId, projectSlug }\`.
39
- - \`spec.changed\` — created or updated a Studio spec. Payload may include \`{ action: 'create' | 'update', specId?, specType? }\`.
40
- - \`regeneration.completed\` — finished a “regen/deploy” action (currently emitted on successful Studio deploy actions).
41
- - \`studio.evolution.applied\` — completed an Evolution session (payload commonly includes \`{ evolutionSessionId }\`).
42
-
43
- These events are intentionally minimal and must avoid PII/secrets in payloads.
44
- `
45
- }]);
46
-
47
- //#endregion
@@ -1,83 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.studio.platform-admin-panel",
6
- title: "Studio Platform Admin Panel",
7
- summary: "How PLATFORM_ADMIN organizations manage tenant orgs and integration connections without session switching.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/studio/platform-admin-panel",
11
- tags: [
12
- "studio",
13
- "admin",
14
- "multi-tenancy",
15
- "integrations",
16
- "better-auth"
17
- ],
18
- body: `# Studio Platform Admin Panel
19
-
20
- ContractSpec Studio exposes a dedicated **Platform Admin Panel** for users whose **active organization** has:
21
-
22
- - \`Organization.type = PLATFORM_ADMIN\`
23
-
24
- The UI route is:
25
-
26
- - \`/studio/admin\`
27
-
28
- ## Authorization model (no org switching)
29
-
30
- Platform admins **remain in their own organization**. Cross-tenant actions are always explicit and scoped:
31
-
32
- - Admin operations require an explicit \`targetOrganizationId\`.
33
- - No session / activeOrganizationId switching is performed as part of admin operations.
34
-
35
- ## Integrations management
36
-
37
- The admin panel manages the full ContractSpec Integrations system:
38
-
39
- - Lists all shipped \`IntegrationSpec\` entries (registry built via \`createDefaultIntegrationSpecRegistry()\`).
40
- - CRUD \`IntegrationConnection\` records for a selected tenant org.
41
-
42
- ### Secrets (reference-only + write-only)
43
-
44
- The admin UI supports two modes:
45
-
46
- - **Reference-only (BYOK)**: store only \`secretProvider\` + \`secretRef\`.
47
- - **Write-only provisioning/rotation**: paste a raw secret payload; server writes to the selected backend and stores the resulting reference. The secret value is **never returned or displayed**.
48
-
49
- Supported backends:
50
-
51
- - Env overrides (\`env://...\`)
52
- - Google Cloud Secret Manager (\`gcp://...\`)
53
- - AWS Secrets Manager (\`aws://secretsmanager/...\`)
54
- - Scaleway Secret Manager (\`scw://secret-manager/...\`)
55
-
56
- ## Better Auth Admin plugin
57
-
58
- The panel uses the Better Auth **Admin plugin** for user operations (list users, impersonation):
59
-
60
- - Client calls use \`authClient.admin.*\`.
61
- - Server-side, ContractSpec enforces that users in a PLATFORM_ADMIN active org have \`User.role\` containing \`admin\` so Better Auth Admin endpoints authorize.
62
-
63
- ## GraphQL surface
64
-
65
- The platform-admin GraphQL operations are guarded by the active org type and include:
66
-
67
- - \`platformAdminOrganizations(search, limit, offset)\`
68
- - \`platformAdminIntegrationSpecs\`
69
- - \`platformAdminIntegrationConnections(input: { targetOrganizationId, category?, status? })\`
70
- - \`platformAdminIntegrationConnectionCreate(input)\`
71
- - \`platformAdminIntegrationConnectionUpdate(input)\`
72
- - \`platformAdminIntegrationConnectionDelete(targetOrganizationId, connectionId)\`
73
-
74
- ## Key implementation files
75
-
76
- - Auth + role enforcement: \`packages/bundles/contractspec-studio/src/application/services/auth.ts\`
77
- - Admin GraphQL module: \`packages/bundles/contractspec-studio/src/infrastructure/graphql/modules/platform-admin.ts\`
78
- - Integrations admin service: \`packages/bundles/contractspec-studio/src/modules/platform-integrations/index.ts\`
79
- - Web route: \`packages/apps/web-landing/src/app/(app-customer)/studio/admin/*\`
80
- `
81
- }]);
82
-
83
- //#endregion
@@ -1,44 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.studio.project-access-teams",
6
- title: "Studio Project Access via Teams",
7
- summary: "Projects live under organizations; team sharing refines access with an admin/owner override.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/studio/project-access-teams",
11
- tags: [
12
- "studio",
13
- "projects",
14
- "teams",
15
- "rbac",
16
- "access-control"
17
- ],
18
- body: `# Studio Project Access via Teams
19
-
20
- Studio access control is **organization-first** with optional **team-based sharing**.
21
-
22
- ## Data model
23
-
24
- - \`Team\` and \`TeamMember\` define team membership inside an organization.
25
- - \`StudioProject\` is owned by an organization.
26
- - \`StudioProjectTeam\` links projects to 0..N teams.
27
-
28
- ## Access rules
29
-
30
- - **Admins/owners**: always have access to all projects in the organization.
31
- - **Org-wide projects**: if a project has **no team links**, all organization members can access it.
32
- - **Team-scoped projects**: if a project has **one or more team links**, a user must be a member of at least one linked team.
33
-
34
- ## GraphQL surfaces
35
-
36
- - Read:\n - \`myStudioProjects\` (returns only projects you can access)\n - \`studioProjectBySlug(slug)\` (enforces the same access rules)\n - \`myTeams\`\n - \`projectTeams(projectId)\`\n\n- Write:\n - \`createStudioProject(input.teamIds?)\` (teamIds optional)\n - \`setProjectTeams(projectId, teamIds)\` (admin-only)\n
37
- ## Related\n+\n+- Team administration + invitations: see \`/docs/tech/studio/team-invitations\`.\n+
38
- ## Notes
39
-
40
- Payloads and events must avoid secrets/PII. For Sandbox, the model remains local-first and unlogged.
41
- `
42
- }]);
43
-
44
- //#endregion
@@ -1,66 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.studio.project-routing",
6
- title: "Studio Project Routing",
7
- summary: "Studio uses slugged, project-first routes: /studio/{projectSlug}/* with canonical slug redirects and soft-deleted projects hidden.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/studio/project-routing",
11
- tags: [
12
- "studio",
13
- "routing",
14
- "projects",
15
- "slug",
16
- "redirects"
17
- ],
18
- body: `# Studio Project Routing
19
-
20
- ContractSpec Studio uses a **project-first URL scheme**:
21
-
22
- - \`/studio/projects\` — create, select, and delete projects.
23
- - \`/studio/{projectSlug}/*\` — project modules (canvas/specs/deploy/integrations/evolution/learning).
24
- - \`/studio/learning\` — learning hub that does not require selecting a project.
25
-
26
- ## Studio layout shell
27
-
28
- Studio routes are wrapped in a dedicated **Studio app shell** (header + footer) that provides in-app navigation (Projects/Learning/Teams), organization switching, and account actions.
29
-
30
- Project module routes (\`/studio/{projectSlug}/*\`) render their own module shell (\`WorkspaceProjectShellLayout\`). When combined with the global Studio header, the project shell uses a **sticky header offset** to avoid overlapping sticky headers.
31
-
32
- ## Slug behavior (rename-safe)
33
-
34
- - Each project has a \`slug\` stored in the database (\`StudioProject.slug\`).
35
- - When a project name changes, Studio **updates the slug** and stores the previous slug as an alias (\`StudioProjectSlugAlias\`).
36
- - Requests to an alias slug are **redirected to the canonical slug**.
37
-
38
- GraphQL entrypoint:
39
-
40
- - \`studioProjectBySlug(slug: String!)\` returns:
41
- - \`project\`
42
- - \`canonicalSlug\`
43
- - \`wasRedirect\`
44
-
45
- ## Deletion behavior (soft delete)
46
-
47
- Projects are **soft-deleted**:
48
-
49
- - \`deleteStudioProject(id: String!)\` sets \`StudioProject.deletedAt\`.
50
- - All listings and access checks filter \`deletedAt = null\`.
51
- - Soft-deleted projects are treated as “not found” in Studio routes and GraphQL access checks.
52
-
53
- ## Available modules for a selected project
54
-
55
- The following project modules are expected under \`/studio/{projectSlug}\`:
56
-
57
- - \`/canvas\` — Visual builder canvas (stored via overlays and canvas versions).
58
- - \`/specs\` — Spec editor (stored as \`StudioSpec\`).
59
- - \`/deploy\` — Deployments history + triggers (stored as \`StudioDeployment\`).
60
- - \`/integrations\` — Integrations scoped to project (stored as \`StudioIntegration\`).
61
- - \`/evolution\` — Evolution sessions (stored as \`EvolutionSession\`).
62
- - \`/learning\` — Project learning activity.
63
- `
64
- }]);
65
-
66
- //#endregion
@@ -1,39 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.studio.sandbox.unlogged",
6
- title: "Sandbox (unlogged) vs Studio (authenticated)",
7
- summary: "The sandbox is a lightweight, unlogged surface that mirrors Studio navigation without auth or analytics.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/studio/sandbox-unlogged",
11
- tags: [
12
- "studio",
13
- "sandbox",
14
- "privacy",
15
- "analytics"
16
- ],
17
- body: `## Sandbox guarantees
18
-
19
- - Route: \`/sandbox\`
20
- - **No auth requirement**
21
- - **No PostHog init**
22
- - **No Vercel Analytics**
23
- - Local-only state (in-browser runtime + localStorage where needed)
24
-
25
- ## What Sandbox is for
26
-
27
- - Try templates and feature modules safely
28
- - Preview specs/builder/evolution/learning
29
- - Produce copyable CLI commands (no side effects)
30
-
31
- ## What Sandbox is *not* for
32
-
33
- - Persisted projects/workspaces
34
- - Real deployments
35
- - Organization-scoped integrations (unless explicitly enabled later)
36
- `
37
- }]);
38
-
39
- //#endregion
@@ -1,68 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.studio.team-invitations",
6
- title: "Studio Teams & Invitations",
7
- summary: "Admin-only team management and email invitation flow to join an organization and optionally a team.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/tech/studio/team-invitations",
11
- tags: [
12
- "studio",
13
- "teams",
14
- "invitations",
15
- "access-control",
16
- "onboarding"
17
- ],
18
- body: `# Studio Teams & Invitations
19
-
20
- Studio uses **organization membership** as the base access model. Teams are optional and used to refine access to projects.
21
-
22
- ## Who can manage teams?
23
-
24
- - **Admins/owners only**: create, rename, delete teams; manage project team access; issue invitations.
25
-
26
- ## Invitation data model
27
-
28
- - \`Invitation\` rows are stored under an organization and target an **email** address.\n
29
- - An invitation can optionally target a \`teamId\`, which will grant the user membership in that team upon acceptance.
30
-
31
- Key fields:
32
- - \`email\`: invited address (must match the accepting user's account email)\n
33
- - \`status\`: \`pending | accepted | declined | expired\`\n
34
- - \`teamId?\`: optional team to join\n
35
- - \`inviterId\`: user who issued the invitation
36
-
37
- ## GraphQL surfaces
38
-
39
- - Team CRUD (admin-only):\n
40
- - \`createTeam(name)\`\n
41
- - \`renameTeam(teamId, name)\`\n
42
- - \`deleteTeam(teamId)\`\n
43
-
44
- - Invitations (admin-only):\n
45
- - \`organizationInvitations\`\n
46
- - \`inviteToOrganization(email, role?, teamId?)\` → returns \`inviteUrl\` and whether an email was sent
47
-
48
- ## Accepting an invitation
49
-
50
- The invite link is served as:\n
51
- - \`/invite/{invitationId}\`
52
-
53
- Acceptance rules:
54
- - The user must be authenticated.\n
55
- - The authenticated user’s email must match \`Invitation.email\`.\n
56
- - If not already a member, create \`Member(userId, organizationId, role)\`.\n
57
- - If \`teamId\` is present, ensure \`TeamMember(teamId, userId)\`.\n
58
- - Mark invitation \`status='accepted'\` and set \`acceptedAt\`.\n
59
- - Set \`activeOrganizationId\` for the session so \`/studio/*\` routes work immediately.
60
-
61
- ## Email delivery
62
-
63
- - If \`RESEND_API_KEY\` is set, the system attempts to send an email.\n
64
- - Otherwise, the UI uses the returned \`inviteUrl\` for manual copy/share.
65
- `
66
- }]);
67
-
68
- //#endregion
@@ -1,46 +0,0 @@
1
- import { registerDocBlocks } from "../../registry.js";
2
-
3
- //#region ../learning-journey-ui-gamified/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js
4
- registerDocBlocks([{
5
- id: "docs.tech.studio.workspace_ops",
6
- title: "Workspace ops (repo-linked): list / validate / deps / diff",
7
- summary: "Read-only repo operations used by Studio to inspect and validate a linked ContractSpec workspace.",
8
- kind: "reference",
9
- visibility: "mixed",
10
- route: "/docs/tech/studio/workspace-ops",
11
- tags: [
12
- "studio",
13
- "repo",
14
- "workspace",
15
- "validate",
16
- "diff"
17
- ],
18
- body: `## API surface (api-contractspec)
19
-
20
- Base: \`/api/workspace-ops\`
21
-
22
- These endpoints are **read-only** in v1 and never push to git:
23
-
24
- - \`GET /api/workspace-ops/:integrationId/config?organizationId=\`
25
- - \`GET /api/workspace-ops/:integrationId/specs?organizationId=\`
26
- - \`POST /api/workspace-ops/:integrationId/validate\` (body: organizationId, files?, pattern?)
27
- - \`POST /api/workspace-ops/:integrationId/deps\` (body: organizationId, pattern?)
28
- - \`POST /api/workspace-ops/:integrationId/diff\` (body: organizationId, specPath, baseline?, breakingOnly?)
29
-
30
- ## Repo resolution
31
-
32
- - The repo root is resolved from the Studio Integration (\`IntegrationProvider.GITHUB\`) config:
33
- - \`config.repoCachePath\` (preferred) or \`config.localPath\`
34
- - Resolution is constrained to \`CONTRACTSPEC_REPO_CACHE_DIR\` (default: \`/tmp/contractspec-repos\`)
35
-
36
- ## Intended UX
37
-
38
- - Studio Assistant can run these checks and present results as suggestions.
39
- - Users can copy equivalent CLI commands for local runs:
40
- - \`contractspec validate\`
41
- - \`contractspec deps\`
42
- - \`contractspec diff --baseline <ref>\`
43
- `
44
- }]);
45
-
46
- //#endregion