@builderos/create-agent-os 0.0.2

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 (194) hide show
  1. package/README.md +39 -0
  2. package/bin/cli.js +133 -0
  3. package/package.json +40 -0
  4. package/src/template/App.tsx +68 -0
  5. package/src/template/agent-os/commands/create-tasks/1-get-spec-requirements.md +19 -0
  6. package/src/template/agent-os/commands/create-tasks/2-create-tasks-list.md +234 -0
  7. package/src/template/agent-os/commands/create-tasks/create-tasks.md +254 -0
  8. package/src/template/agent-os/commands/design-screen/design-screen.md +32 -0
  9. package/src/template/agent-os/commands/design-shell/design-shell.md +34 -0
  10. package/src/template/agent-os/commands/design-tokens/design-tokens.md +36 -0
  11. package/src/template/agent-os/commands/export-product/export-product.md +44 -0
  12. package/src/template/agent-os/commands/implement-tasks/1-determine-tasks.md +13 -0
  13. package/src/template/agent-os/commands/implement-tasks/2-implement-tasks.md +63 -0
  14. package/src/template/agent-os/commands/implement-tasks/3-verify-implementation.md +113 -0
  15. package/src/template/agent-os/commands/implement-tasks/implement-tasks.md +207 -0
  16. package/src/template/agent-os/commands/initialize-design/initialize-design.md +54 -0
  17. package/src/template/agent-os/commands/orchestrate-tasks/orchestrate-tasks.md +180 -0
  18. package/src/template/agent-os/commands/plan-product/1-product-concept.md +53 -0
  19. package/src/template/agent-os/commands/plan-product/2-create-mission.md +78 -0
  20. package/src/template/agent-os/commands/plan-product/3-create-roadmap.md +73 -0
  21. package/src/template/agent-os/commands/plan-product/4-create-tech-stack.md +46 -0
  22. package/src/template/agent-os/commands/plan-product/plan-product.md +241 -0
  23. package/src/template/agent-os/commands/sample-data/sample-data.md +51 -0
  24. package/src/template/agent-os/commands/scaffold-implementation/scaffold-implementation.md +36 -0
  25. package/src/template/agent-os/commands/screenshot-design/screenshot-design.md +21 -0
  26. package/src/template/agent-os/commands/shape-spec/1-initialize-spec.md +95 -0
  27. package/src/template/agent-os/commands/shape-spec/2-shape-spec.md +300 -0
  28. package/src/template/agent-os/commands/shape-spec/shape-spec.md +40 -0
  29. package/src/template/agent-os/commands/write-spec/write-spec.md +134 -0
  30. package/src/template/agent-os/config.yml +13 -0
  31. package/src/template/agent-os/product/mission.md +29 -0
  32. package/src/template/agent-os/product/roadmap.md +9 -0
  33. package/src/template/agent-os/product/tech-stack.md +14 -0
  34. package/src/template/agent-os/specs/README.md +1 -0
  35. package/src/template/agent-os/standards/backend/api.md +10 -0
  36. package/src/template/agent-os/standards/backend/migrations.md +9 -0
  37. package/src/template/agent-os/standards/backend/models.md +10 -0
  38. package/src/template/agent-os/standards/backend/queries.md +9 -0
  39. package/src/template/agent-os/standards/frontend/accessibility.md +10 -0
  40. package/src/template/agent-os/standards/frontend/components.md +11 -0
  41. package/src/template/agent-os/standards/frontend/css.md +7 -0
  42. package/src/template/agent-os/standards/frontend/responsive.md +11 -0
  43. package/src/template/agent-os/standards/global/coding-style.md +10 -0
  44. package/src/template/agent-os/standards/global/commenting.md +5 -0
  45. package/src/template/agent-os/standards/global/conventions.md +11 -0
  46. package/src/template/agent-os/standards/global/error-handling.md +9 -0
  47. package/src/template/agent-os/standards/global/tech-stack.md +31 -0
  48. package/src/template/agent-os/standards/global/validation.md +11 -0
  49. package/src/template/agent-os/standards/testing/test-writing.md +9 -0
  50. package/src/template/agent-os-ui/README.md +73 -0
  51. package/src/template/agent-os-ui/package-lock.json +5028 -0
  52. package/src/template/agent-os-ui/package.json +52 -0
  53. package/src/template/agent-os-ui/postcss.config.js +6 -0
  54. package/src/template/agent-os-ui/src/components/AgentShell.tsx +31 -0
  55. package/src/template/agent-os-ui/src/components/AgentSidebar.tsx +65 -0
  56. package/src/template/agent-os-ui/src/components/GuidanceCard.tsx +75 -0
  57. package/src/template/agent-os-ui/src/components/MarkdownViewer.tsx +25 -0
  58. package/src/template/agent-os-ui/src/components/PromptButton.tsx +28 -0
  59. package/src/template/agent-os-ui/src/components/StatusItem.tsx +45 -0
  60. package/src/template/agent-os-ui/src/components/ThemeToggle.tsx +72 -0
  61. package/src/template/agent-os-ui/src/index.ts +11 -0
  62. package/src/template/agent-os-ui/src/style.css +3 -0
  63. package/src/template/agent-os-ui/tailwind.config.js +50 -0
  64. package/src/template/agent-os-ui/tsconfig.json +33 -0
  65. package/src/template/agent-os-ui/vite.config.ts +32 -0
  66. package/src/template/control-center/backend/backend.log +2 -0
  67. package/src/template/control-center/backend/index.js +228 -0
  68. package/src/template/control-center/backend/package-lock.json +951 -0
  69. package/src/template/control-center/backend/package.json +19 -0
  70. package/src/template/control-center/frontend/README.md +73 -0
  71. package/src/template/control-center/frontend/eslint.config.js +23 -0
  72. package/src/template/control-center/frontend/index.html +21 -0
  73. package/src/template/control-center/frontend/package-lock.json +5752 -0
  74. package/src/template/control-center/frontend/package.json +42 -0
  75. package/src/template/control-center/frontend/public/runtime-config.json +11 -0
  76. package/src/template/control-center/frontend/public/vite.svg +1 -0
  77. package/src/template/control-center/frontend/src/App.css +42 -0
  78. package/src/template/control-center/frontend/src/App.tsx +738 -0
  79. package/src/template/control-center/frontend/src/assets/react.svg +1 -0
  80. package/src/template/control-center/frontend/src/components/ThemeToggle.tsx +64 -0
  81. package/src/template/control-center/frontend/src/components/ui/ToastContext.tsx +81 -0
  82. package/src/template/control-center/frontend/src/index.css +194 -0
  83. package/src/template/control-center/frontend/src/main.tsx +14 -0
  84. package/src/template/control-center/frontend/src/vite-env.d.ts +1 -0
  85. package/src/template/control-center/frontend/tsconfig.app.json +28 -0
  86. package/src/template/control-center/frontend/tsconfig.json +7 -0
  87. package/src/template/control-center/frontend/tsconfig.node.json +26 -0
  88. package/src/template/control-center/frontend/vite.config.ts +22 -0
  89. package/src/template/design/.claude/commands/design-os/data-model.md +122 -0
  90. package/src/template/design/.claude/commands/design-os/design-screen.md +309 -0
  91. package/src/template/design/.claude/commands/design-os/design-shell.md +238 -0
  92. package/src/template/design/.claude/commands/design-os/design-tokens.md +166 -0
  93. package/src/template/design/.claude/commands/design-os/export-product.md +1105 -0
  94. package/src/template/design/.claude/commands/design-os/product-roadmap.md +121 -0
  95. package/src/template/design/.claude/commands/design-os/product-vision.md +99 -0
  96. package/src/template/design/.claude/commands/design-os/sample-data.md +263 -0
  97. package/src/template/design/.claude/commands/design-os/screenshot-design.md +112 -0
  98. package/src/template/design/.claude/commands/design-os/shape-section.md +138 -0
  99. package/src/template/design/.claude/skills/frontend-design/SKILL.md +42 -0
  100. package/src/template/design/.github/CODE_OF_CONDUCT.md +5 -0
  101. package/src/template/design/.github/CONTRIBUTING.md +51 -0
  102. package/src/template/design/.github/ISSUE_TEMPLATE/config.yml +22 -0
  103. package/src/template/design/.github/PULL_REQUEST_TEMPLATE.md +20 -0
  104. package/src/template/design/.github/SECURITY.yml +5 -0
  105. package/src/template/design/.github/SUPPORT.md +19 -0
  106. package/src/template/design/.github/workflows/pr-decline.yml +135 -0
  107. package/src/template/design/.github/workflows/stale.yml +25 -0
  108. package/src/template/design/CHANGELOG.md +13 -0
  109. package/src/template/design/LICENSE +21 -0
  110. package/src/template/design/README.md +54 -0
  111. package/src/template/design/agents.md +218 -0
  112. package/src/template/design/claude.md +1 -0
  113. package/src/template/design/components.json +22 -0
  114. package/src/template/design/docs/codebase-implementation.md +153 -0
  115. package/src/template/design/docs/design-section.md +135 -0
  116. package/src/template/design/docs/export.md +149 -0
  117. package/src/template/design/docs/getting-started.md +59 -0
  118. package/src/template/design/docs/index.md +56 -0
  119. package/src/template/design/docs/product-planning.md +113 -0
  120. package/src/template/design/docs/requirements.md +22 -0
  121. package/src/template/design/docs/usage.md +62 -0
  122. package/src/template/design/eslint.config.js +23 -0
  123. package/src/template/design/index.html +21 -0
  124. package/src/template/design/package-lock.json +5473 -0
  125. package/src/template/design/package.json +47 -0
  126. package/src/template/design/product-plan.zip +0 -0
  127. package/src/template/design/public/vite.svg +1 -0
  128. package/src/template/design/src/assets/react.svg +1 -0
  129. package/src/template/design/src/components/AppLayout.tsx +95 -0
  130. package/src/template/design/src/components/DataCard.tsx +139 -0
  131. package/src/template/design/src/components/DataModelPage.tsx +120 -0
  132. package/src/template/design/src/components/DesignPage.tsx +284 -0
  133. package/src/template/design/src/components/EmptyState.tsx +155 -0
  134. package/src/template/design/src/components/ExportPage.tsx +344 -0
  135. package/src/template/design/src/components/NextPhaseButton.tsx +33 -0
  136. package/src/template/design/src/components/PhaseNav.tsx +152 -0
  137. package/src/template/design/src/components/PhaseWarningBanner.tsx +81 -0
  138. package/src/template/design/src/components/ProductOverviewCard.tsx +102 -0
  139. package/src/template/design/src/components/ProductPage.tsx +97 -0
  140. package/src/template/design/src/components/ScreenDesignPage.tsx +370 -0
  141. package/src/template/design/src/components/ScreenDesignsCard.tsx +49 -0
  142. package/src/template/design/src/components/SectionPage.tsx +256 -0
  143. package/src/template/design/src/components/SectionsCard.tsx +47 -0
  144. package/src/template/design/src/components/SectionsPage.tsx +181 -0
  145. package/src/template/design/src/components/ShellCard.tsx +85 -0
  146. package/src/template/design/src/components/ShellDesignPage.tsx +242 -0
  147. package/src/template/design/src/components/SpecCard.tsx +121 -0
  148. package/src/template/design/src/components/StepIndicator.tsx +75 -0
  149. package/src/template/design/src/components/ThemeToggle.tsx +86 -0
  150. package/src/template/design/src/components/ui/ToastContext.tsx +81 -0
  151. package/src/template/design/src/components/ui/avatar.tsx +53 -0
  152. package/src/template/design/src/components/ui/badge.tsx +46 -0
  153. package/src/template/design/src/components/ui/button.tsx +60 -0
  154. package/src/template/design/src/components/ui/card.tsx +92 -0
  155. package/src/template/design/src/components/ui/collapsible.tsx +48 -0
  156. package/src/template/design/src/components/ui/dialog.tsx +143 -0
  157. package/src/template/design/src/components/ui/dropdown-menu.tsx +255 -0
  158. package/src/template/design/src/components/ui/input.tsx +21 -0
  159. package/src/template/design/src/components/ui/label.tsx +22 -0
  160. package/src/template/design/src/components/ui/progress.tsx +24 -0
  161. package/src/template/design/src/components/ui/scroll-area.tsx +18 -0
  162. package/src/template/design/src/components/ui/select.tsx +67 -0
  163. package/src/template/design/src/components/ui/separator.tsx +28 -0
  164. package/src/template/design/src/components/ui/sheet.tsx +137 -0
  165. package/src/template/design/src/components/ui/skeleton.tsx +13 -0
  166. package/src/template/design/src/components/ui/switch.tsx +46 -0
  167. package/src/template/design/src/components/ui/table.tsx +116 -0
  168. package/src/template/design/src/components/ui/tabs.tsx +64 -0
  169. package/src/template/design/src/index.css +284 -0
  170. package/src/template/design/src/lib/data-model-loader.ts +91 -0
  171. package/src/template/design/src/lib/design-system-loader.ts +101 -0
  172. package/src/template/design/src/lib/product-loader.ts +221 -0
  173. package/src/template/design/src/lib/router.tsx +52 -0
  174. package/src/template/design/src/lib/section-loader.ts +272 -0
  175. package/src/template/design/src/lib/shell-loader.ts +175 -0
  176. package/src/template/design/src/lib/utils.ts +6 -0
  177. package/src/template/design/src/main.tsx +15 -0
  178. package/src/template/design/src/sections/.gitkeep +0 -0
  179. package/src/template/design/src/sections/ai-orchestration-engine-oai/OrchestrationEngine.tsx +348 -0
  180. package/src/template/design/src/sections/core-platform-shell/AppShell.tsx +403 -0
  181. package/src/template/design/src/sections/gemini-live-integration/GeminiIntegration.tsx +332 -0
  182. package/src/template/design/src/sections/interactive-2d-canvas/WhiteboardCanvas.tsx +334 -0
  183. package/src/template/design/src/sections/participation-equity-tracker/EquityTracker.tsx +383 -0
  184. package/src/template/design/src/sections/persistent-memory-system/PersistentMemory.tsx +308 -0
  185. package/src/template/design/src/sections/real-time-communication-layer/VideoSession.tsx +342 -0
  186. package/src/template/design/src/sections/visual-intelligence-agents/VisualAgents.tsx +311 -0
  187. package/src/template/design/src/types/product.ts +97 -0
  188. package/src/template/design/src/types/section.ts +33 -0
  189. package/src/template/design/tsconfig.app.json +34 -0
  190. package/src/template/design/tsconfig.json +13 -0
  191. package/src/template/design/tsconfig.node.json +26 -0
  192. package/src/template/design/vite.config.ts +18 -0
  193. package/src/template/package.json +27 -0
  194. package/src/template/vite.config.ts +16 -0
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
@@ -0,0 +1,64 @@
1
+ import { useState, useEffect } from 'react'
2
+ import { Moon, Sun } from 'lucide-react'
3
+
4
+ type Theme = 'light' | 'dark' | 'system'
5
+
6
+ export function ThemeToggle({ onThemeChange }: { onThemeChange?: (theme: Theme) => void }) {
7
+ const [theme, setTheme] = useState<Theme>(() => {
8
+ if (typeof window !== 'undefined') {
9
+ return (localStorage.getItem('theme') as Theme) || 'system'
10
+ }
11
+ return 'system'
12
+ })
13
+
14
+ useEffect(() => {
15
+ const root = document.documentElement
16
+
17
+ const applyTheme = (theme: Theme) => {
18
+ if (theme === 'system') {
19
+ const systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches
20
+ root.classList.toggle('dark', systemDark)
21
+ } else {
22
+ root.classList.toggle('dark', theme === 'dark')
23
+ }
24
+ }
25
+
26
+ applyTheme(theme)
27
+ localStorage.setItem('theme', theme)
28
+
29
+ // Listen for system theme changes when in system mode
30
+ const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
31
+ const handleChange = () => {
32
+ if (theme === 'system') {
33
+ applyTheme('system')
34
+ }
35
+ }
36
+ mediaQuery.addEventListener('change', handleChange)
37
+
38
+ return () => mediaQuery.removeEventListener('change', handleChange)
39
+ }, [theme])
40
+
41
+ const toggleTheme = () => {
42
+ setTheme((prev) => {
43
+ if (prev === 'light') return 'dark'
44
+ if (prev === 'dark') return 'system'
45
+ return 'light'
46
+ })
47
+ }
48
+
49
+ const isDark = theme === 'dark' || (theme === 'system' && typeof window !== 'undefined' && window.matchMedia('(prefers-color-scheme: dark)').matches)
50
+
51
+ return (
52
+ <button
53
+ onClick={toggleTheme}
54
+ className="w-9 h-9 flex items-center justify-center rounded-md text-stone-500 hover:text-stone-900 dark:text-stone-400 dark:hover:text-stone-100 hover:bg-stone-100 dark:hover:bg-stone-800 transition-colors"
55
+ title={`Theme: ${theme}`}
56
+ >
57
+ {isDark ? (
58
+ <Moon className="w-5 h-5" strokeWidth={1.5} />
59
+ ) : (
60
+ <Sun className="w-5 h-5" strokeWidth={1.5} />
61
+ )}
62
+ </button>
63
+ )
64
+ }
@@ -0,0 +1,81 @@
1
+ import React, { createContext, useContext, useState, useCallback, ReactNode } from 'react';
2
+ import { X, CheckCircle, Info, AlertTriangle } from 'lucide-react';
3
+
4
+ type ToastType = 'success' | 'error' | 'info' | 'warning';
5
+
6
+ interface Toast {
7
+ id: string;
8
+ title: string;
9
+ description?: string;
10
+ type?: ToastType;
11
+ }
12
+
13
+ interface ToastContextType {
14
+ toast: (props: Omit<Toast, 'id'>) => void;
15
+ }
16
+
17
+ const ToastContext = createContext<ToastContextType | undefined>(undefined);
18
+
19
+ export function useToast() {
20
+ const context = useContext(ToastContext);
21
+ if (!context) {
22
+ throw new Error('useToast must be used within a ToastProvider');
23
+ }
24
+ return context;
25
+ }
26
+
27
+ export function ToastProvider({ children }: { children: ReactNode }) {
28
+ const [toasts, setToasts] = useState<Toast[]>([]);
29
+
30
+ const toast = useCallback(({ title, description, type = 'info' }: Omit<Toast, 'id'>) => {
31
+ const id = Math.random().toString(36).substring(2, 9);
32
+ setToasts((prev) => [...prev, { id, title, description, type }]);
33
+
34
+ // Auto dismiss
35
+ setTimeout(() => {
36
+ removeToast(id);
37
+ }, 3000);
38
+ }, []);
39
+
40
+ const removeToast = useCallback((id: string) => {
41
+ setToasts((prev) => prev.filter((t) => t.id !== id));
42
+ }, []);
43
+
44
+ return (
45
+ <ToastContext.Provider value={{ toast }}>
46
+ {children}
47
+ <div className="fixed bottom-4 right-4 z-[9999] flex flex-col gap-2">
48
+ {toasts.map((t) => (
49
+ <div
50
+ key={t.id}
51
+ className={`
52
+ min-w-[300px] border rounded-lg shadow-lg p-4 transition-all duration-300 animate-in slide-in-from-right
53
+ bg-white dark:bg-stone-900 border-stone-200 dark:border-stone-800
54
+ `}
55
+ >
56
+ <div className="flex items-start gap-3">
57
+ <div className="shrink-0 pt-0.5">
58
+ {t.type === 'success' && <CheckCircle size={18} className="text-emerald-500" />}
59
+ {t.type === 'error' && <AlertTriangle size={18} className="text-red-500" />}
60
+ {t.type === 'warning' && <AlertTriangle size={18} className="text-amber-500" />}
61
+ {t.type === 'info' && <Info size={18} className="text-blue-500" />}
62
+ </div>
63
+ <div className="flex-1">
64
+ <h4 className="text-sm font-semibold text-stone-900 dark:text-stone-100">{t.title}</h4>
65
+ {t.description && (
66
+ <p className="text-sm text-stone-500 dark:text-stone-400 mt-1">{t.description}</p>
67
+ )}
68
+ </div>
69
+ <button
70
+ onClick={() => removeToast(t.id)}
71
+ className="shrink-0 text-stone-400 hover:text-stone-600 dark:hover:text-stone-300"
72
+ >
73
+ <X size={16} />
74
+ </button>
75
+ </div>
76
+ </div>
77
+ ))}
78
+ </div>
79
+ </ToastContext.Provider>
80
+ );
81
+ }
@@ -0,0 +1,194 @@
1
+ @import "tailwindcss";
2
+ @plugin "tailwindcss-animate";
3
+ @plugin "@tailwindcss/typography";
4
+
5
+
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ /*
9
+ Control Center Theme (Aligned with Design OS)
10
+ Warm Neutrals / Stone Palette
11
+ */
12
+ @theme {
13
+ --font-display: "DM Sans", system-ui, sans-serif;
14
+ --font-body: "DM Sans", system-ui, sans-serif;
15
+ --font-sans: "DM Sans", system-ui, sans-serif;
16
+ --font-mono: "IBM Plex Mono", ui-monospace, monospace;
17
+ }
18
+
19
+ @theme inline {
20
+ --radius-sm: calc(var(--radius) - 4px);
21
+ --radius-md: calc(var(--radius) - 2px);
22
+ --radius-lg: var(--radius);
23
+ --radius-xl: calc(var(--radius) + 4px);
24
+ --color-background: var(--background);
25
+ --color-foreground: var(--foreground);
26
+ --color-card: var(--card);
27
+ --color-card-foreground: var(--card-foreground);
28
+ --color-popover: var(--popover);
29
+ --color-popover-foreground: var(--popover-foreground);
30
+ --color-primary: var(--primary);
31
+ --color-primary-foreground: var(--primary-foreground);
32
+ --color-secondary: var(--secondary);
33
+ --color-secondary-foreground: var(--secondary-foreground);
34
+ --color-muted: var(--muted);
35
+ --color-muted-foreground: var(--muted-foreground);
36
+ --color-accent: var(--accent);
37
+ --color-accent-foreground: var(--accent-foreground);
38
+ --color-destructive: var(--destructive);
39
+ --color-border: var(--border);
40
+ --color-input: var(--input);
41
+ --color-ring: var(--ring);
42
+ --color-chart-1: var(--chart-1);
43
+ --color-chart-2: var(--chart-2);
44
+ --color-chart-3: var(--chart-3);
45
+ --color-chart-4: var(--chart-4);
46
+ --color-chart-5: var(--chart-5);
47
+ --color-sidebar: var(--sidebar);
48
+ --color-sidebar-foreground: var(--sidebar-foreground);
49
+ --color-sidebar-primary: var(--sidebar-primary);
50
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
51
+ --color-sidebar-accent: var(--sidebar-accent);
52
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
53
+ --color-sidebar-border: var(--sidebar-border);
54
+ --color-sidebar-ring: var(--sidebar-ring);
55
+ }
56
+
57
+ /* Light theme - Warm Stone */
58
+ :root {
59
+ --radius: 0.5rem;
60
+ --background: oklch(0.985 0.001 106.424);
61
+ /* stone-50 */
62
+ --foreground: oklch(0.216 0.006 56.043);
63
+ /* stone-900 */
64
+ --card: oklch(1 0 0);
65
+ /* white */
66
+ --card-foreground: oklch(0.216 0.006 56.043);
67
+ /* stone-900 */
68
+ --popover: oklch(1 0 0);
69
+ /* white */
70
+ --popover-foreground: oklch(0.216 0.006 56.043);
71
+ /* stone-900 */
72
+ --primary: oklch(0.216 0.006 56.043);
73
+ /* stone-900 */
74
+ --primary-foreground: oklch(0.985 0.001 106.424);
75
+ /* stone-50 */
76
+ --secondary: oklch(0.970 0.001 106.424);
77
+ /* stone-100 */
78
+ --secondary-foreground: oklch(0.216 0.006 56.043);
79
+ /* stone-900 */
80
+ --muted: oklch(0.970 0.001 106.424);
81
+ /* stone-100 */
82
+ --muted-foreground: oklch(0.370 0.010 67.558);
83
+ /* stone-600 -> stone-700 variant for contrast */
84
+ --accent: oklch(0.970 0.001 106.424);
85
+ /* stone-100 */
86
+ --accent-foreground: oklch(0.216 0.006 56.043);
87
+ /* stone-900 */
88
+ --destructive: oklch(0.586 0.253 17.585);
89
+ /* rose-600 */
90
+ --border: oklch(0.923 0.003 48.717);
91
+ /* stone-200 */
92
+ --input: oklch(0.923 0.003 48.717);
93
+ /* stone-200 */
94
+ --ring: oklch(0.553 0.013 58.071);
95
+ /* stone-500 */
96
+ --chart-1: oklch(0.532 0.157 131.589);
97
+ /* lime-600 */
98
+ /* Sidebar */
99
+ --sidebar: oklch(0.985 0.001 106.424);
100
+ /* stone-50 */
101
+ --sidebar-foreground: oklch(0.216 0.006 56.043);
102
+ /* stone-900 */
103
+ --sidebar-primary: oklch(0.216 0.006 56.043);
104
+ /* stone-900 */
105
+ --sidebar-primary-foreground: oklch(0.985 0.001 106.424);
106
+ /* stone-50 */
107
+ --sidebar-accent: oklch(0.970 0.001 106.424);
108
+ /* stone-100 */
109
+ --sidebar-accent-foreground: oklch(0.216 0.006 56.043);
110
+ /* stone-900 */
111
+ --sidebar-border: oklch(0.923 0.003 48.717);
112
+ /* stone-200 */
113
+ --sidebar-ring: oklch(0.553 0.013 58.071);
114
+ /* stone-500 */
115
+ }
116
+
117
+ /* Dark theme (default for Control Center) - Warm Stone Dark */
118
+ .dark {
119
+ --background: oklch(0.216 0.006 56.043);
120
+ /* stone-900 */
121
+ --foreground: oklch(0.985 0.001 106.424);
122
+ /* stone-50 */
123
+ --card: oklch(0.268 0.007 34.298);
124
+ /* stone-800 */
125
+ --card-foreground: oklch(0.985 0.001 106.424);
126
+ /* stone-50 */
127
+ --popover: oklch(0.268 0.007 34.298);
128
+ /* stone-800 */
129
+ --popover-foreground: oklch(0.985 0.001 106.424);
130
+ /* stone-50 */
131
+ --primary: oklch(0.923 0.003 48.717);
132
+ /* stone-200 */
133
+ --primary-foreground: oklch(0.216 0.006 56.043);
134
+ /* stone-900 */
135
+ --secondary: oklch(0.318 0.008 43.185);
136
+ /* stone-700 */
137
+ --secondary-foreground: oklch(0.985 0.001 106.424);
138
+ /* stone-50 */
139
+ --muted: oklch(0.318 0.008 43.185);
140
+ /* stone-700 */
141
+ --muted-foreground: oklch(0.709 0.01 56.259);
142
+ /* stone-400 */
143
+ --accent: oklch(0.318 0.008 43.185);
144
+ /* stone-700 */
145
+ --accent-foreground: oklch(0.985 0.001 106.424);
146
+ /* stone-50 */
147
+ --destructive: oklch(0.712 0.194 13.428);
148
+ /* rose-400 */
149
+ --border: oklch(0.370 0.010 67.558);
150
+ /* stone-600 */
151
+ --input: oklch(0.370 0.010 67.558);
152
+ /* stone-600 */
153
+ --ring: oklch(0.553 0.013 58.071);
154
+ /* stone-500 */
155
+ --chart-1: oklch(0.648 0.2 131.684);
156
+ /* lime-500 */
157
+ /* Sidebar */
158
+ --sidebar: oklch(0.268 0.007 34.298);
159
+ /* stone-800 */
160
+ --sidebar-foreground: oklch(0.985 0.001 106.424);
161
+ /* stone-50 */
162
+ --sidebar-primary: oklch(0.648 0.2 131.684);
163
+ /* lime-500 */
164
+ --sidebar-primary-foreground: oklch(0.216 0.006 56.043);
165
+ /* stone-900 */
166
+ --sidebar-accent: oklch(0.318 0.008 43.185);
167
+ /* stone-700 */
168
+ --sidebar-accent-foreground: oklch(0.985 0.001 106.424);
169
+ /* stone-50 */
170
+ --sidebar-border: oklch(0.370 0.010 67.558);
171
+ /* stone-600 */
172
+ --sidebar-ring: oklch(0.553 0.013 58.071);
173
+ /* stone-500 */
174
+ }
175
+
176
+
177
+ @layer base {
178
+ * {
179
+ @apply border-border outline-ring/50;
180
+ }
181
+
182
+ body {
183
+ @apply bg-background text-foreground font-sans antialiased;
184
+ }
185
+
186
+ h1,
187
+ h2,
188
+ h3,
189
+ h4,
190
+ h5,
191
+ h6 {
192
+ @apply font-semibold tracking-tight;
193
+ }
194
+ }
@@ -0,0 +1,14 @@
1
+ import { StrictMode } from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
+ import './index.css'
4
+ import App from './App.tsx'
5
+
6
+ import { ToastProvider } from './components/ui/ToastContext.tsx'
7
+
8
+ createRoot(document.getElementById('root')!).render(
9
+ <StrictMode>
10
+ <ToastProvider>
11
+ <App />
12
+ </ToastProvider>
13
+ </StrictMode>,
14
+ )
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "types": ["vite/client"],
9
+ "skipLibCheck": true,
10
+
11
+ /* Bundler mode */
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "verbatimModuleSyntax": true,
15
+ "moduleDetection": "force",
16
+ "noEmit": true,
17
+ "jsx": "react-jsx",
18
+
19
+ /* Linting */
20
+ "strict": true,
21
+ "noUnusedLocals": true,
22
+ "noUnusedParameters": true,
23
+ "erasableSyntaxOnly": true,
24
+ "noFallthroughCasesInSwitch": true,
25
+ "noUncheckedSideEffectImports": true
26
+ },
27
+ "include": ["src"]
28
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2023",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "types": ["node"],
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": true,
13
+ "verbatimModuleSyntax": true,
14
+ "moduleDetection": "force",
15
+ "noEmit": true,
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "erasableSyntaxOnly": true,
22
+ "noFallthroughCasesInSwitch": true,
23
+ "noUncheckedSideEffectImports": true
24
+ },
25
+ "include": ["vite.config.ts"]
26
+ }
@@ -0,0 +1,22 @@
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+ import tailwindcss from '@tailwindcss/vite'
4
+
5
+ // https://vitejs.dev/config/
6
+ export default defineConfig({
7
+ plugins: [
8
+ react(),
9
+ tailwindcss(),
10
+ ],
11
+ server: {
12
+ port: parseInt(process.env.PORT || '5173'),
13
+ strictPort: true,
14
+ proxy: {
15
+ '/api': {
16
+ target: 'http://localhost:3003',
17
+ changeOrigin: true,
18
+ secure: false,
19
+ }
20
+ }
21
+ }
22
+ })
@@ -0,0 +1,122 @@
1
+ # Data Model
2
+
3
+ You are helping the user define the core data model for their product. This establishes the "nouns" of the system — the entities and their relationships.
4
+
5
+ ## Step 1: Check Prerequisites
6
+
7
+ First, verify that the product overview and roadmap exist:
8
+
9
+ 1. Read `/product/product-overview.md` to understand what the product does
10
+ 2. Read `/product/product-roadmap.md` to understand the planned sections
11
+
12
+ If either file is missing, let the user know:
13
+
14
+ "Before defining your data model, you'll need to establish your product vision. Please run `/product-vision` first, then `/product-roadmap` to define your sections."
15
+
16
+ Stop here if prerequisites are missing.
17
+
18
+ ## Step 2: Gather Initial Input
19
+
20
+ Review the product overview and roadmap, then present your initial analysis:
21
+
22
+ "Based on your product vision and roadmap, I can see you're building **[Product Name]** with sections for [list sections].
23
+
24
+ Let me help you define the core data model — the main "things" your app will work with.
25
+
26
+ Looking at your product, here are some entities I'm seeing:
27
+
28
+ - **[Entity 1]** — [Brief description based on product overview]
29
+ - **[Entity 2]** — [Brief description based on sections]
30
+ - **[Entity 3]** — [Brief description]
31
+
32
+ Does this capture the main things your app works with? What would you add, remove, or change?"
33
+
34
+ Wait for their response before proceeding.
35
+
36
+ ## Step 3: Refine Entities
37
+
38
+ Use the AskUserQuestion tool to clarify:
39
+
40
+ - "Are there any other core entities in your system that users will create, view, or manage?"
41
+ - "For [Entity], what are the most important pieces of information it contains? (Don't need every field, just the key ones)"
42
+ - "How do these entities relate to each other?"
43
+
44
+ Keep the conversation focused on:
45
+ - **Entity names** — What are the main nouns?
46
+ - **Plain-language descriptions** — What does each entity represent?
47
+ - **Relationships** — How do entities connect to each other?
48
+
49
+ **Important:** Do NOT define every field or database schema details. Keep it minimal and conceptual.
50
+
51
+ ## Step 4: Present Draft and Refine
52
+
53
+ Once you have enough information, present a draft:
54
+
55
+ "Here's your data model:
56
+
57
+ **Entities:**
58
+
59
+ - **[Entity1]** — [Description]
60
+ - **[Entity2]** — [Description]
61
+
62
+ **Relationships:**
63
+
64
+ - [Entity1] has many [Entity2]
65
+ - [Entity2] belongs to [Entity1]
66
+ - [Entity3] links [Entity1] and [Entity4]
67
+
68
+ Does this look right? Any adjustments?"
69
+
70
+ Iterate until the user is satisfied.
71
+
72
+ ## Step 5: Create the File
73
+
74
+ Once approved, create the file at `/product/data-model/data-model.md` with this format:
75
+
76
+ ```markdown
77
+ # Data Model
78
+
79
+ ## Entities
80
+
81
+ ### [EntityName]
82
+ [Plain-language description of what this entity represents and its purpose in the system.]
83
+
84
+ ### [AnotherEntity]
85
+ [Plain-language description.]
86
+
87
+ [Add more entities as needed]
88
+
89
+ ## Relationships
90
+
91
+ - [Entity1] has many [Entity2]
92
+ - [Entity2] belongs to [Entity1]
93
+ - [Entity3] belongs to both [Entity1] and [Entity2]
94
+ [Add more relationships as needed]
95
+ ```
96
+
97
+ **Important:** Keep descriptions minimal — focus on what each entity represents, not every field it contains. Leave room for the implementation agent to extend the model.
98
+
99
+ ## Step 6: Confirm Completion
100
+
101
+ Let the user know:
102
+
103
+ "I've created your data model at `/product/data-model/data-model.md`.
104
+
105
+ **Entities defined:**
106
+ - [List entities]
107
+
108
+ **Relationships:**
109
+ - [List key relationships]
110
+
111
+ This provides a shared vocabulary that will be used when generating sample data for your sections. When you run `/sample-data`, it will reference this model to ensure consistency.
112
+
113
+ Next step: Run `/design-tokens` to choose your color palette and typography."
114
+
115
+ ## Important Notes
116
+
117
+ - Keep the data model **minimal** — entity names, descriptions, and relationships
118
+ - Do NOT define detailed schemas, field types, or validation rules
119
+ - Use plain language that a non-technical person could understand
120
+ - Relationships should describe how entities connect conceptually
121
+ - The implementation agent will extend this with additional fields as needed
122
+ - Entity names should be singular (User, Invoice, Project — not Users, Invoices)